diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-26 09:28:35 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-26 09:28:35 -0400 |
| commit | 731cab330389b1730d9700b5452ac75975b79b3c (patch) | |
| tree | bbce49155a0879b9e607f5306bd208c3f169df2e /src/client/northstar/operations | |
| parent | 970ecdb7158340cec2ea9e9a381d86afa8a59430 (diff) | |
minor restructure
Diffstat (limited to 'src/client/northstar/operations')
| -rw-r--r-- | src/client/northstar/operations/HistogramOperation.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/northstar/operations/HistogramOperation.ts b/src/client/northstar/operations/HistogramOperation.ts index 8367cc725..cf2571285 100644 --- a/src/client/northstar/operations/HistogramOperation.ts +++ b/src/client/northstar/operations/HistogramOperation.ts @@ -8,14 +8,19 @@ import { AttributeTransformationModel } from "../core/attribute/AttributeTransfo import { BaseOperation } from "./BaseOperation"; import { CurrentUserUtils } from "../../../server/authentication/models/current_user_utils"; import { FilterModel } from "../core/filter/FilterModel"; +import { BrushLinkModel } from "../core/brusher/BrushLinkModel"; export class HistogramOperation extends BaseOperation { + @observable public BrushColors: number[] = []; @observable public Normalization: number = -1; @observable public FilterModels: FilterModel[] = []; @observable public X: AttributeTransformationModel; @observable public Y: AttributeTransformationModel; @observable public V: AttributeTransformationModel; + @observable public BrusherModels: BrushLinkModel<HistogramOperation>[] = []; + @observable public BrushableModels: BrushLinkModel<HistogramOperation>[] = []; + constructor(x: AttributeTransformationModel, y: AttributeTransformationModel, v: AttributeTransformationModel) { super(); this.X = x; @@ -106,7 +111,7 @@ export class HistogramOperation extends BaseOperation { @action public async Update(): Promise<void> { - // this.TypedViewModel.BrushColors = this.TypedViewModel.BrusherModels.map(e => e.Color); + this.BrushColors = this.BrusherModels.map(e => e.Color); return super.Update(); } } |
