@axdspub/axiom-charts 0.0.37 → 0.0.38
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/library/browser.js +4 -4
- package/library/browser.js.map +1 -1
- package/library/cjs.js +4 -4
- package/library/cjs.js.map +1 -1
- package/package.json +1 -1
package/library/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var AxiomCharts = (function (exports, axiomUiDataServices, d3Array,
|
|
1
|
+
var AxiomCharts = (function (exports, axiomUiDataServices, d3Array, _, require$$0) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/******************************************************************************
|
|
@@ -277,7 +277,7 @@ var AxiomCharts = (function (exports, axiomUiDataServices, d3Array, lodash, requ
|
|
|
277
277
|
return param;
|
|
278
278
|
}
|
|
279
279
|
getPlotImplementationGroups(plots, axis) {
|
|
280
|
-
const groups =
|
|
280
|
+
const groups = _.groupBy(plots, p => {
|
|
281
281
|
const param = this.getDimensionAxisParam(p, axis);
|
|
282
282
|
return `${param}${this.reversePlotAxis(p, axis) ? '.reverse' : ''}`;
|
|
283
283
|
});
|
|
@@ -317,13 +317,13 @@ var AxiomCharts = (function (exports, axiomUiDataServices, d3Array, lodash, requ
|
|
|
317
317
|
this.runtime.resizeEventHandler.cancel();
|
|
318
318
|
console.log('cancel');
|
|
319
319
|
}
|
|
320
|
-
this.runtime.resizeEventHandler =
|
|
320
|
+
this.runtime.resizeEventHandler = _.debounce(() => { this.onResize(this.runtime.prevWidth, this.runtime.prevHeight); }, 1000);
|
|
321
321
|
this.runtime.resizeEventHandler();
|
|
322
322
|
}
|
|
323
323
|
init(drawImmediately = false) {
|
|
324
324
|
var _a;
|
|
325
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
-
this.runtime.resizeEventHandler =
|
|
326
|
+
this.runtime.resizeEventHandler = _.debounce(() => { this.onResize(this.runtime.prevWidth, this.runtime.prevHeight); }, 1000);
|
|
327
327
|
window.addEventListener('resize', () => { this.debouncedResize(); });
|
|
328
328
|
(_a = this.plotImplementations) === null || _a === void 0 ? void 0 : _a.forEach(plot => { plot.destroy(); });
|
|
329
329
|
this.plotImplementations = this.createPlots();
|