@visactor/vtable 1.22.12-alpha.3 → 1.22.12-alpha.5

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/cjs/PivotChart.js CHANGED
@@ -775,8 +775,8 @@ class PivotChart extends BaseTable_1.BaseTable {
775
775
  var _a, _b;
776
776
  const hoverCell = this.stateManager.hover.cellPos;
777
777
  if (-1 !== hoverCell.col && -1 !== hoverCell.row) {
778
- const cellGroup = this.scenegraph.getCell(hoverCell.col, hoverCell.row);
779
- null === (_b = (null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0]).activeChartInstance) || void 0 === _b || _b.disableTooltip(!0);
778
+ const cellGroup = this.scenegraph.getCell(hoverCell.col, hoverCell.row), chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
779
+ null === (_b = null == chartNode ? void 0 : chartNode.activeChartInstance) || void 0 === _b || _b.disableTooltip(!0);
780
780
  }
781
781
  (0, active_cell_chart_list_1.disableTooltipToAllChartInstances)(this.scenegraph);
782
782
  }
@@ -784,8 +784,8 @@ class PivotChart extends BaseTable_1.BaseTable {
784
784
  var _a, _b;
785
785
  const hoverCell = this.stateManager.hover.cellPos;
786
786
  if (-1 !== hoverCell.col && -1 !== hoverCell.row) {
787
- const cellGroup = this.scenegraph.getCell(hoverCell.col, hoverCell.row);
788
- null === (_b = (null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0]).activeChartInstance) || void 0 === _b || _b.disableTooltip(!1);
787
+ const cellGroup = this.scenegraph.getCell(hoverCell.col, hoverCell.row), chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
788
+ null === (_b = null == chartNode ? void 0 : chartNode.activeChartInstance) || void 0 === _b || _b.disableTooltip(!1);
789
789
  }
790
790
  (0, active_cell_chart_list_1.enableTooltipToAllChartInstances)(this.scenegraph);
791
791
  }