Revert codestyle changes (#40)

* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970"

Code style changes should probably be part of a PR
This commit is contained in:
Eliot Partridge
2019-08-30 10:53:14 -05:00
committed by GitHub
parent eefd9e9a2c
commit caf70a864f
446 changed files with 70667 additions and 70655 deletions
@@ -2,20 +2,20 @@ import { Component, Input, Output, EventEmitter } from '@angular/core';
import { times } from 'lodash';
@Component({
selector: 'scale-picker',
templateUrl: 'scale-picker.pug',
selector: 'scale-picker',
templateUrl: 'scale-picker.pug',
})
export class ScalePicker {
@Input() scale = 1;
@Output() scaleChange = new EventEmitter<number>();
scales = [1, 2, 3, 4];
@Input() set maxScale(value: number) {
this.scales = times(value, i => i + 1);
}
setScale(value: number) {
if (value !== this.scale) {
this.scale = value;
this.scaleChange.emit(value);
}
}
@Input() scale = 1;
@Output() scaleChange = new EventEmitter<number>();
scales = [1, 2, 3, 4];
@Input() set maxScale(value: number) {
this.scales = times(value, i => i + 1);
}
setScale(value: number) {
if (value !== this.scale) {
this.scale = value;
this.scaleChange.emit(value);
}
}
}