@visactor/vtable-calendar 1.22.9 → 1.22.10-alpha.0

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.
@@ -44545,7 +44545,7 @@
44545
44545
  }
44546
44546
  }
44547
44547
  activate(table) {
44548
- var _a, _b, _c, _d, _e;
44548
+ var _a, _b, _c, _d, _e, _f, _g;
44549
44549
  if (this.activeChartInstance) return;
44550
44550
  const {
44551
44551
  col: col,
@@ -44598,7 +44598,7 @@
44598
44598
  layer.main && drawParams.clear && hoverColor && (context.beginPath(), context.fillStyle = hoverColor, context.rect(viewBox.x1, viewBox.y1, viewBox.x2 - viewBox.x1, viewBox.y2 - viewBox.y1), context.fill());
44599
44599
  }
44600
44600
  },
44601
- componentShowContent: table.options.chartDimensionLinkage && "scatter" !== this.attribute.spec.type ? {
44601
+ componentShowContent: (null === (_b = table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.showTooltip) && "scatter" !== this.attribute.spec.type ? {
44602
44602
  tooltip: {
44603
44603
  dimension: !1,
44604
44604
  mark: !0
@@ -44609,7 +44609,7 @@
44609
44609
  const chartStage = this.activeChartInstance.getStage(),
44610
44610
  matrix = this.globalTransMatrix.clone(),
44611
44611
  stageMatrix = this.stage.window.getViewBoxTransform();
44612
- 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 => {
44612
+ 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 === (_d = null === (_c = table.internalProps.layoutMap) || void 0 === _c ? void 0 : _c.updateDataStateToActiveChartInstance) || void 0 === _d || _d.call(_c, this.activeChartInstance), this.activeChartInstance.on("click", params => {
44613
44613
  var _a;
44614
44614
  !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);
44615
44615
  }), this.activeChartInstance.on("brushEnd", params => {
@@ -44617,7 +44617,7 @@
44617
44617
  table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
44618
44618
  Chart.temp = 1;
44619
44619
  }, 0);
44620
- }), table.options.chartDimensionLinkage && this.activeChartInstance.on("dimensionHover", params => {
44620
+ }), (null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.showTooltip) && this.activeChartInstance.on("dimensionHover", params => {
44621
44621
  var _a, _b;
44622
44622
  const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
44623
44623
  canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
@@ -44680,7 +44680,7 @@
44680
44680
  }
44681
44681
  }
44682
44682
  }
44683
- }), null === (_e = (_d = table)._bindChartEvent) || void 0 === _e || _e.call(_d, this.activeChartInstance);
44683
+ }), null === (_g = (_f = table)._bindChartEvent) || void 0 === _g || _g.call(_f, this.activeChartInstance);
44684
44684
  }
44685
44685
  deactivate(table, {
44686
44686
  releaseChartInstance = !0,
@@ -49241,12 +49241,12 @@
49241
49241
  resetResidentHoverIcon(col, row, this);
49242
49242
  }
49243
49243
  deactivateChart(col, row) {
49244
- var _a, _b, _c;
49244
+ var _a, _b, _c, _d;
49245
49245
  if (-1 === col || -1 === row) return;
49246
49246
  const cellGroup = this.getCell(col, row);
49247
49247
  if (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) {
49248
49248
  const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
49249
- null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, this.table.options.chartDimensionLinkage ? {
49249
+ null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, (null === (_d = this.table.options.chartDimensionLinkage) || void 0 === _d ? void 0 : _d.showTooltip) ? {
49250
49250
  releaseChartInstance: "scatter" === chartType ? col !== this.table.stateManager.hover.cellPos.col && row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : this.table.options.indicatorsAsCol ? row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
49251
49251
  releaseColumnChartInstance: col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
49252
49252
  releaseRowChartInstance: row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount
@@ -56054,7 +56054,7 @@
56054
56054
  }
56055
56055
  constructor(container, options = {}) {
56056
56056
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
56057
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.9", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
56057
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.10-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
56058
56058
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
56059
56059
  options: options,
56060
56060
  container: container