@visactor/vtable-calendar 1.16.2 → 1.16.3-alpha.1

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.
@@ -36132,7 +36132,7 @@
36132
36132
  }
36133
36133
  }
36134
36134
  activate(table) {
36135
- var _a, _b, _c, _d;
36135
+ var _a, _b, _c, _d, _e;
36136
36136
  this.active = !0;
36137
36137
  const {
36138
36138
  col: col,
@@ -36150,7 +36150,7 @@
36150
36150
  y1: y1 - table.scrollTop,
36151
36151
  y2: y2 - table.scrollTop
36152
36152
  });
36153
- this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge$1({}, this.attribute.tableChartOption, {
36153
+ null === (_a = this.activeChartInstance) || void 0 === _a || _a.release(), this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge$1({}, this.attribute.tableChartOption, {
36154
36154
  renderCanvas: this.attribute.canvas,
36155
36155
  mode: "desktop-browser",
36156
36156
  canvasControled: !1,
@@ -36178,7 +36178,7 @@
36178
36178
  const chartStage = this.activeChartInstance.getStage(),
36179
36179
  matrix = this.globalTransMatrix.clone(),
36180
36180
  stageMatrix = this.stage.window.getViewBoxTransform();
36181
- matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_b = null === (_a = table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.updateDataStateToActiveChartInstance) || void 0 === _b || _b.call(_a, this.activeChartInstance), this.activeChartInstance.on("click", params => {
36181
+ matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, this.activeChartInstance), this.activeChartInstance.on("click", params => {
36182
36182
  var _a;
36183
36183
  !1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum);
36184
36184
  }), this.activeChartInstance.on("brushEnd", params => {
@@ -36186,7 +36186,7 @@
36186
36186
  table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
36187
36187
  Chart.temp = 1;
36188
36188
  }, 0);
36189
- }), null === (_d = (_c = table)._bindChartEvent) || void 0 === _d || _d.call(_c, this.activeChartInstance);
36189
+ }), null === (_e = (_d = table)._bindChartEvent) || void 0 === _e || _e.call(_d, this.activeChartInstance);
36190
36190
  }
36191
36191
  deactivate() {
36192
36192
  var _a, _b;
@@ -40589,10 +40589,10 @@
40589
40589
  null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) || void 0 === _b || _b.call(_a);
40590
40590
  }
40591
40591
  activateChart(col, row) {
40592
- var _a, _b;
40592
+ var _a, _b, _c;
40593
40593
  if (-1 === col || -1 === row) return;
40594
40594
  const cellGroup = this.getCell(col, row);
40595
- null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table);
40595
+ return null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table), null === (_c = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _c ? void 0 : _c.activeChartInstance;
40596
40596
  }
40597
40597
  removeInteractionBorder(col, row) {
40598
40598
  const cellGroup = this.getCell(col, row);
@@ -46990,7 +46990,7 @@
46990
46990
  constructor(container) {
46991
46991
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46992
46992
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
46993
- if (super(), this.showFrozenIcon = !0, this.version = "1.16.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46993
+ if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46994
46994
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
46995
46995
  const {
46996
46996
  frozenColCount = 0,