@tetacom/svg-charts 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chart/model/i-broadcast-message.d.ts +2 -0
- package/esm2020/chart/directives/brushable.directive.mjs +4 -2
- package/esm2020/chart/model/i-broadcast-message.mjs +2 -1
- package/fesm2015/tetacom-svg-charts.mjs +4 -1
- package/fesm2015/tetacom-svg-charts.mjs.map +1 -1
- package/fesm2020/tetacom-svg-charts.mjs +4 -1
- package/fesm2020/tetacom-svg-charts.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2002,6 +2002,7 @@ class BrushMessage {
|
|
|
2002
2002
|
constructor(options) {
|
|
2003
2003
|
this.chartId = options?.chartId;
|
|
2004
2004
|
this.selection = options?.selection;
|
|
2005
|
+
this.mode = options?.mode;
|
|
2005
2006
|
}
|
|
2006
2007
|
}
|
|
2007
2008
|
|
|
@@ -2238,6 +2239,7 @@ class BrushableDirective {
|
|
|
2238
2239
|
const brushMessage = new BrushMessage({
|
|
2239
2240
|
chartId: this.config.id,
|
|
2240
2241
|
selection: [this.config?.brush?.from, this.config?.brush?.to],
|
|
2242
|
+
mode: 'init'
|
|
2241
2243
|
});
|
|
2242
2244
|
this.brushService.setBrush(brushMessage);
|
|
2243
2245
|
}
|
|
@@ -2315,6 +2317,7 @@ class BrushableDirective {
|
|
|
2315
2317
|
const brushMessage = new BrushMessage({
|
|
2316
2318
|
chartId: this.config.id,
|
|
2317
2319
|
selection: [brushScale.invert(from), brushScale.invert(to)],
|
|
2320
|
+
mode: _.mode
|
|
2318
2321
|
});
|
|
2319
2322
|
this.brushService.setBrush(brushMessage);
|
|
2320
2323
|
}
|
|
@@ -2331,7 +2334,7 @@ class BrushableDirective {
|
|
|
2331
2334
|
}
|
|
2332
2335
|
this._container.call(this.brush.move, this.selection
|
|
2333
2336
|
? this.selection.map(brushScale)
|
|
2334
|
-
: domain.map(brushScale));
|
|
2337
|
+
: domain.map(brushScale), {});
|
|
2335
2338
|
}, 0);
|
|
2336
2339
|
});
|
|
2337
2340
|
}
|