aboutsummaryrefslogtreecommitdiff
path: root/src/client/northstar
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-26 09:28:35 -0400
committerbob <bcz@cs.brown.edu>2019-03-26 09:28:35 -0400
commit731cab330389b1730d9700b5452ac75975b79b3c (patch)
treebbce49155a0879b9e607f5306bd208c3f169df2e /src/client/northstar
parent970ecdb7158340cec2ea9e9a381d86afa8a59430 (diff)
minor restructure
Diffstat (limited to 'src/client/northstar')
-rw-r--r--src/client/northstar/model/ModelHelpers.ts4
-rw-r--r--src/client/northstar/operations/HistogramOperation.ts7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/client/northstar/model/ModelHelpers.ts b/src/client/northstar/model/ModelHelpers.ts
index 914e03255..8de0bd260 100644
--- a/src/client/northstar/model/ModelHelpers.ts
+++ b/src/client/northstar/model/ModelHelpers.ts
@@ -64,10 +64,10 @@ export class ModelHelpers {
if (aggParams) {
aggregateParameters.push(aggParams);
- var margin = new MarginAggregateParameters();
+ var margin = new MarginAggregateParameters()
+ margin.aggregateFunction = agg.AggregateFunction;
margin.attributeParameters = ModelHelpers.GetAttributeParameters(agg.AttributeModel);
margin.distinctAttributeParameters = CurrentUserUtils.ActiveSchema!.distinctAttributeParameters;
- margin.aggregateFunction = agg.AggregateFunction;
aggregateParameters.push(margin);
}
});
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();
}
}