@visactor/vtable-gantt 1.22.11-alpha.0 → 1.22.11-alpha.10

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/index.d.ts CHANGED
@@ -6,5 +6,5 @@ import * as tools from './tools';
6
6
  import * as VRender from './vrender';
7
7
  import * as VTable from './vtable';
8
8
  import * as plugins from './plugins';
9
- export declare const version = "1.22.11-alpha.0";
9
+ export declare const version = "1.22.11-alpha.10";
10
10
  export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable, plugins };
package/cjs/index.js CHANGED
@@ -56,5 +56,5 @@ exports.VTable = VTable;
56
56
 
57
57
  const plugins = __importStar(require("./plugins"));
58
58
 
59
- exports.plugins = plugins, exports.version = "1.22.11-alpha.0";
59
+ exports.plugins = plugins, exports.version = "1.22.11-alpha.10";
60
60
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nimport * as plugins from './plugins';\nexport const version = \"1.22.11-alpha.0\";\n/**\n * @namespace VTableGantt\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable,\n plugins\n};\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,kBAAkB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nimport * as plugins from './plugins';\nexport const version = \"1.22.11-alpha.10\";\n/**\n * @namespace VTableGantt\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable,\n plugins\n};\n"]}
@@ -39756,6 +39756,9 @@
39756
39756
  var _a;
39757
39757
  return null !== (_a = defaultStyle.textAlign) && void 0 !== _a ? _a : "left";
39758
39758
  },
39759
+ get textStickBaseOnAlign() {
39760
+ return defaultStyle.textStickBaseOnAlign;
39761
+ },
39759
39762
  get textBaseline() {
39760
39763
  var _a;
39761
39764
  return null !== (_a = defaultStyle.textBaseline) && void 0 !== _a ? _a : "middle";
@@ -40439,6 +40442,9 @@
40439
40442
  get textStick() {
40440
40443
  return style.textStick;
40441
40444
  },
40445
+ get textStickBaseOnAlign() {
40446
+ return style.textStickBaseOnAlign;
40447
+ },
40442
40448
  get marked() {
40443
40449
  return style.marked;
40444
40450
  },
@@ -47606,11 +47612,35 @@
47606
47612
  return hoverMode;
47607
47613
  }
47608
47614
 
47615
+ let brushingChartInstance,
47616
+ brushingChartInstanceCellPos = {
47617
+ col: -1,
47618
+ row: -1
47619
+ };
47620
+ function setBrushingChartInstance(chartInstance, col, row) {
47621
+ brushingChartInstance = chartInstance, brushingChartInstanceCellPos = {
47622
+ col: col,
47623
+ row: row
47624
+ };
47625
+ }
47626
+ function clearBrushingChartInstance() {
47627
+ brushingChartInstance = void 0, brushingChartInstanceCellPos = {
47628
+ col: -1,
47629
+ row: -1
47630
+ };
47631
+ }
47632
+ function getBrushingChartInstance() {
47633
+ return brushingChartInstance;
47634
+ }
47635
+ function getBrushingChartInstanceCellPos() {
47636
+ return brushingChartInstanceCellPos;
47637
+ }
47609
47638
  const chartInstanceListColumnByColumnDirection = {};
47610
47639
  const chartInstanceListRowByRowDirection = {};
47640
+ const delayRunDimensionHoverTimer = [];
47611
47641
  function generateChartInstanceListByColumnDirection(col, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
47612
47642
  var _a;
47613
- isValid$1(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47643
+ clearDelayRunDimensionHoverTimers(), isValid$1(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47614
47644
  const {
47615
47645
  rowStart: rowStart
47616
47646
  } = table.getBodyVisibleRowRange();
@@ -47619,7 +47649,8 @@
47619
47649
  for (let i = rowStart; i <= rowEnd; i++) {
47620
47650
  const cellGroup = table.scenegraph.getCell(col, i),
47621
47651
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47622
- chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance), setTimeout(() => {
47652
+ chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
47653
+ const timer = setTimeout(() => {
47623
47654
  var _a, _b, _c, _d;
47624
47655
  if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47625
47656
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
@@ -47645,28 +47676,13 @@
47645
47676
  });
47646
47677
  }
47647
47678
  }
47648
- }, 0), table.scenegraph.updateNextFrame();
47649
- }
47650
- }
47651
- function clearChartInstanceListByColumnDirection(col, excludedRow, table) {
47652
- var _a;
47653
- if (isValid$1(chartInstanceListColumnByColumnDirection[col])) {
47654
- for (const i in chartInstanceListColumnByColumnDirection[col]) {
47655
- if (isValid$1(excludedRow) && Number(i) === excludedRow) continue;
47656
- const cellGroup = table.scenegraph.getCell(col, Number(i)),
47657
- chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47658
- chartNode.addUpdateShapeAndBoundsTag(), isValid$1(chartNode) && (chartNode.deactivate(table, {
47659
- releaseChartInstance: !0,
47660
- releaseColumnChartInstance: !1,
47661
- releaseRowChartInstance: !1
47662
- }), chartInstanceListColumnByColumnDirection[col][i] = null);
47663
- }
47664
- delete chartInstanceListColumnByColumnDirection[col];
47679
+ }, 0);
47680
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47665
47681
  }
47666
47682
  }
47667
47683
  function generateChartInstanceListByRowDirection(row, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
47668
47684
  var _a;
47669
- isValid$1(chartInstanceListRowByRowDirection[row]) || (chartInstanceListRowByRowDirection[row] = {});
47685
+ clearDelayRunDimensionHoverTimers(), isValid$1(chartInstanceListRowByRowDirection[row]) || (chartInstanceListRowByRowDirection[row] = {});
47670
47686
  const {
47671
47687
  colStart: colStart
47672
47688
  } = table.getBodyVisibleColRange();
@@ -47675,7 +47691,8 @@
47675
47691
  for (let i = colStart; i <= colEnd; i++) {
47676
47692
  const cellGroup = table.scenegraph.getCell(i, row),
47677
47693
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47678
- chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListRowByRowDirection[row][i] || isValid$1(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance), setTimeout(() => {
47694
+ chartInstanceListRowByRowDirection[row][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
47695
+ const timer = setTimeout(() => {
47679
47696
  var _a, _b, _c, _d;
47680
47697
  if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
47681
47698
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
@@ -47701,11 +47718,13 @@
47701
47718
  });
47702
47719
  }
47703
47720
  }
47704
- }, 0), table.scenegraph.updateNextFrame();
47721
+ }, 0);
47722
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47705
47723
  }
47706
47724
  }
47707
47725
  function generateChartInstanceListByViewRange(datum, table, deactivate = !1) {
47708
47726
  var _a;
47727
+ clearDelayRunDimensionHoverTimers();
47709
47728
  const {
47710
47729
  rowStart: rowStart
47711
47730
  } = table.getBodyVisibleRowRange();
@@ -47721,7 +47740,8 @@
47721
47740
  for (let i = rowStart; i <= rowEnd; i++) {
47722
47741
  const cellGroup = table.scenegraph.getCell(col, i),
47723
47742
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47724
- chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.activeChartInstance ? chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance)), setTimeout(() => {
47743
+ chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance ? chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance));
47744
+ const timer = setTimeout(() => {
47725
47745
  var _a, _b;
47726
47746
  if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47727
47747
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
@@ -47730,7 +47750,8 @@
47730
47750
  activeType: "mark"
47731
47751
  })));
47732
47752
  }
47733
- }, 0), table.scenegraph.updateNextFrame();
47753
+ }, 0);
47754
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47734
47755
  }
47735
47756
  }
47736
47757
  }
@@ -47801,13 +47822,31 @@
47801
47822
  }
47802
47823
  return isShowTooltip;
47803
47824
  }
47804
- function clearChartInstanceListByRowDirection(row, excludedCol, table) {
47825
+ function clearChartInstanceListByColumnDirection(col, excludedRow, table, forceRelease = !1) {
47826
+ var _a;
47827
+ if (isValid$1(chartInstanceListColumnByColumnDirection[col])) {
47828
+ for (const i in chartInstanceListColumnByColumnDirection[col]) {
47829
+ if (isValid$1(excludedRow) && Number(i) === excludedRow) continue;
47830
+ const cellGroup = table.scenegraph.getCell(col, Number(i)),
47831
+ chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47832
+ isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.deactivate(table, {
47833
+ forceRelease: forceRelease,
47834
+ releaseChartInstance: !0,
47835
+ releaseColumnChartInstance: !1,
47836
+ releaseRowChartInstance: !1
47837
+ }), chartInstanceListColumnByColumnDirection[col][i] = null);
47838
+ }
47839
+ delete chartInstanceListColumnByColumnDirection[col];
47840
+ }
47841
+ }
47842
+ function clearChartInstanceListByRowDirection(row, excludedCol, table, forceRelease = !1) {
47805
47843
  var _a;
47806
47844
  if (isValid$1(chartInstanceListRowByRowDirection[row])) for (const i in chartInstanceListRowByRowDirection[row]) {
47807
47845
  if (isValid$1(excludedCol) && Number(i) === excludedCol) continue;
47808
47846
  const cellGroup = table.scenegraph.getCell(Number(i), row),
47809
47847
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47810
- chartNode.addUpdateShapeAndBoundsTag(), isValid$1(chartNode) && (chartNode.deactivate(table, {
47848
+ isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.deactivate(table, {
47849
+ forceRelease: forceRelease,
47811
47850
  releaseChartInstance: !0,
47812
47851
  releaseColumnChartInstance: !1,
47813
47852
  releaseRowChartInstance: !1
@@ -47815,9 +47854,18 @@
47815
47854
  }
47816
47855
  delete chartInstanceListRowByRowDirection[row];
47817
47856
  }
47818
- function clearAllChartInstanceList(table) {
47819
- for (const col in chartInstanceListColumnByColumnDirection) clearChartInstanceListByColumnDirection(Number(col), void 0, table);
47820
- for (const row in chartInstanceListRowByRowDirection) clearChartInstanceListByRowDirection(Number(row), void 0, table);
47857
+ function clearDelayRunDimensionHoverTimers() {
47858
+ for (const timer of delayRunDimensionHoverTimer) clearTimeout(timer);
47859
+ delayRunDimensionHoverTimer.length = 0;
47860
+ }
47861
+ function clearAllChartInstanceList(table, forceRelease = !1) {
47862
+ clearDelayRunDimensionHoverTimers();
47863
+ for (const col in chartInstanceListColumnByColumnDirection) clearChartInstanceListByColumnDirection(Number(col), void 0, table, forceRelease);
47864
+ for (const row in chartInstanceListRowByRowDirection) clearChartInstanceListByRowDirection(Number(row), void 0, table, forceRelease);
47865
+ }
47866
+ let disabledTooltipToAllChartInstances = !1;
47867
+ function isDisabledTooltipToAllChartInstances() {
47868
+ return disabledTooltipToAllChartInstances;
47821
47869
  }
47822
47870
 
47823
47871
  function isValidAlignDomain(domain) {
@@ -48473,7 +48521,7 @@
48473
48521
  }
48474
48522
  }
48475
48523
  activate(table) {
48476
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48524
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48477
48525
  if (this.activeChartInstance) return;
48478
48526
  const {
48479
48527
  col: col,
@@ -48492,7 +48540,7 @@
48492
48540
  y1: y1 - table.scrollTop,
48493
48541
  y2: y2 - table.scrollTop
48494
48542
  });
48495
- null === (_a = this.activeChartInstance) || void 0 === _a || _a.release(), this.attribute.ClassType.globalConfig.uniqueTooltip = !1, this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge({}, this.attribute.tableChartOption, {
48543
+ this.attribute.ClassType.globalConfig.uniqueTooltip = !1, this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge({}, this.attribute.tableChartOption, {
48496
48544
  renderCanvas: this.attribute.canvas,
48497
48545
  mode: "desktop-browser",
48498
48546
  canvasControled: !1,
@@ -48526,7 +48574,7 @@
48526
48574
  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());
48527
48575
  }
48528
48576
  },
48529
- componentShowContent: (null === (_b = table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.showTooltip) && "scatter" !== this.attribute.spec.type ? {
48577
+ componentShowContent: (null === (_a = table.options.chartDimensionLinkage) || void 0 === _a ? void 0 : _a.showTooltip) && "scatter" !== this.attribute.spec.type ? {
48530
48578
  tooltip: {
48531
48579
  dimension: !1,
48532
48580
  mark: !0
@@ -48538,18 +48586,22 @@
48538
48586
  matrix = this.globalTransMatrix.clone(),
48539
48587
  stageMatrix = this.stage.window.getViewBoxTransform();
48540
48588
  let brushChangeThrottle;
48541
- 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 => {
48589
+ 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 => {
48542
48590
  var _a;
48543
48591
  !1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null, void 0) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "click");
48544
- }), (null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.listenBrushChange) && (brushChangeThrottle = cancellableThrottle(table.scenegraph.updateChartState.bind(table.scenegraph), null !== (_g = null === (_f = table.options.chartDimensionLinkage) || void 0 === _f ? void 0 : _f.brushChangeDelay) && void 0 !== _g ? _g : 100), this.activeChartInstance.on("brushChange", params => {
48592
+ }), (null === (_d = table.options.chartDimensionLinkage) || void 0 === _d ? void 0 : _d.listenBrushChange) && (brushChangeThrottle = cancellableThrottle(table.scenegraph.updateChartState.bind(table.scenegraph), null !== (_f = null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.brushChangeDelay) && void 0 !== _f ? _f : 100), this.activeChartInstance.on("brushChange", params => {
48545
48593
  var _a;
48546
48594
  brushChangeThrottle.throttled(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush");
48547
- })), this.activeChartInstance.on("brushEnd", params => {
48595
+ })), this.activeChartInstance.on("brushStart", params => {
48596
+ var _a;
48597
+ const brushingChartInstance = getBrushingChartInstance();
48598
+ brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && (null === (_a = brushingChartInstance.getChart()) || void 0 === _a || _a.getComponentsByKey("brush")[0].clearBrushStateAndMask()), setBrushingChartInstance(this.activeChartInstance, col, row));
48599
+ }), this.activeChartInstance.on("brushEnd", params => {
48548
48600
  var _a;
48549
48601
  null == brushChangeThrottle || brushChangeThrottle.cancel(), table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush"), Chart.temp = 0, setTimeout(() => {
48550
48602
  Chart.temp = 1;
48551
48603
  }, 0);
48552
- }), (null === (_h = table.options.chartDimensionLinkage) || void 0 === _h ? void 0 : _h.showTooltip) && ("pie" === this.attribute.spec.type && (this.activeChartInstance.on("pointerover", {
48604
+ }), (null === (_g = table.options.chartDimensionLinkage) || void 0 === _g ? void 0 : _g.showTooltip) && ("pie" === this.attribute.spec.type && (this.activeChartInstance.on("pointerover", {
48553
48605
  markName: "pie"
48554
48606
  }, params => {
48555
48607
  var _a;
@@ -48569,6 +48621,8 @@
48569
48621
  generateChartInstanceListByViewRange(datum, table, !0);
48570
48622
  })), this.activeChartInstance.on("dimensionHover", params => {
48571
48623
  var _a, _b;
48624
+ if (isDisabledTooltipToAllChartInstances()) return;
48625
+ this.activeChartInstance.disableTooltip(!1);
48572
48626
  const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
48573
48627
  canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
48574
48628
  viewport = null === (_b = null == params ? void 0 : params.event) || void 0 === _b ? void 0 : _b.viewport;
@@ -48585,11 +48639,11 @@
48585
48639
  prev_justShowMarkTooltip = this.justShowMarkTooltip;
48586
48640
  params.mark && params.datum && !Array.isArray(params.datum) ? (this.activeChartInstanceHoverOnMark = params.mark, justShowMarkTooltip = !0) : (this.activeChartInstanceHoverOnMark = null, justShowMarkTooltip = !1), this.justShowMarkTooltip = justShowMarkTooltip;
48587
48641
  let delayRunDimensionHover = !1;
48588
- if (!1 !== prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? (this.justShowMarkTooltipTimer = Date.now(), delayRunDimensionHover = !0) : !1 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? delayRunDimensionHover = Date.now() - this.justShowMarkTooltipTimer < 100 : (!1 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip || !0 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip) && (delayRunDimensionHover = !1, clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0), "enter" === params.action || "move" === params.action || preMark !== this.activeChartInstanceHoverOnMark) {
48642
+ if (!1 !== prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? (this.justShowMarkTooltipTimer = Date.now(), delayRunDimensionHover = !0) : !1 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? delayRunDimensionHover = Date.now() - this.justShowMarkTooltipTimer < 100 : (!1 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip || !0 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip) && (delayRunDimensionHover = !1, this.clearDelayRunDimensionHoverTimer()), "enter" === params.action || "move" === params.action || preMark !== this.activeChartInstanceHoverOnMark) {
48589
48643
  const dimensionValue = dimensionInfo.value,
48590
48644
  indicatorsAsCol = table.options.indicatorsAsCol;
48591
- if (delayRunDimensionHover ? (clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = setTimeout(() => {
48592
- indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1);
48645
+ if (delayRunDimensionHover ? (this.clearDelayRunDimensionHoverTimer(), this.delayRunDimensionHoverTimer = setTimeout(() => {
48646
+ isDisabledTooltipToAllChartInstances() || (indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1));
48593
48647
  }, 100)) : indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1), indicatorsAsCol) {
48594
48648
  const series = dimensionInfo.data[0].series,
48595
48649
  width = "histogram" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getYAxisHelper().getBandwidth(0);
@@ -48630,22 +48684,26 @@
48630
48684
  }
48631
48685
  }
48632
48686
  }
48633
- })), null === (_k = (_j = table)._bindChartEvent) || void 0 === _k || _k.call(_j, this.activeChartInstance);
48687
+ })), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance), isDisabledTooltipToAllChartInstances() && this.activeChartInstance.disableTooltip(!0);
48688
+ }
48689
+ clearDelayRunDimensionHoverTimer() {
48690
+ clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0;
48634
48691
  }
48635
48692
  deactivate(table, {
48693
+ forceRelease = !1,
48636
48694
  releaseChartInstance = !0,
48637
48695
  releaseColumnChartInstance = !0,
48638
48696
  releaseRowChartInstance = !0,
48639
48697
  releaseAllChartInstance = !1
48640
48698
  } = {}) {
48641
48699
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48642
- if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0, releaseChartInstance) {
48643
- null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
48700
+ if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.clearDelayRunDimensionHoverTimer(), releaseChartInstance) {
48701
+ !this.activeChartInstance || !forceRelease && getBrushingChartInstance() && getBrushingChartInstance() === this.activeChartInstance || (null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
48644
48702
  x1: -1e3,
48645
48703
  x2: -800,
48646
48704
  y1: -1e3,
48647
48705
  y2: -800
48648
- }, !1, !1), null === (_b = this.activeChartInstance) || void 0 === _b || _b.release(), this.activeChartInstance = null;
48706
+ }, !1, !1), null === (_b = this.activeChartInstance) || void 0 === _b || _b.release(), this.activeChartInstance = null);
48649
48707
  const {
48650
48708
  col: col,
48651
48709
  row: row
@@ -48658,7 +48716,7 @@
48658
48716
  } = this.parent;
48659
48717
  releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_h = null === (_g = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild) || void 0 === _g ? void 0 : _g.hideLabelHoverOnAxis) || void 0 === _h || _h.call(_g)), releaseRowChartInstance && table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_k = null === (_j = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild) || void 0 === _j ? void 0 : _j.hideLabelHoverOnAxis) || void 0 === _k || _k.call(_j));
48660
48718
  }
48661
- releaseAllChartInstance ? clearAllChartInstanceList(table) : (releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table));
48719
+ releaseAllChartInstance ? clearAllChartInstanceList(table, forceRelease) : (releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table, forceRelease), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table, forceRelease));
48662
48720
  }
48663
48721
  updateData(data) {
48664
48722
  this.attribute.data = data;
@@ -52434,15 +52492,21 @@
52434
52492
  }
52435
52493
  function clearChartCacheImage(scenegraph) {
52436
52494
  var _a;
52495
+ const brushingCellPos = getBrushingChartInstanceCellPos();
52437
52496
  for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
52438
52497
  const columnGroup = scenegraph.getColGroup(c);
52439
52498
  null === (_a = null == columnGroup ? void 0 : columnGroup.getChildren()) || void 0 === _a || _a.forEach(cellNode => {
52440
- cellNode.children.forEach(node => {
52499
+ brushingCellPos && brushingCellPos.col === cellNode.col && brushingCellPos.row === cellNode.row || cellNode.children.forEach(node => {
52441
52500
  "chart" === node.type && (node.cacheCanvas = null, node.addUpdateBoundTag());
52442
52501
  });
52443
52502
  });
52444
52503
  }
52445
52504
  }
52505
+ function clearCellChartCacheImage(col, row, scenegraph) {
52506
+ scenegraph.getCell(col, row).children.forEach(node => {
52507
+ "chart" === node.type && (node.cacheCanvas = null, node.addUpdateBoundTag());
52508
+ });
52509
+ }
52446
52510
  function updateChartState(scenegraph, datum, selectedDataMode) {
52447
52511
  const table = scenegraph.table;
52448
52512
  if (table.isPivotChart()) {
@@ -53195,18 +53259,33 @@
53195
53259
  resetResidentHoverIcon(col, row, this);
53196
53260
  }
53197
53261
  deactivateChart(col, row, forceRelease = !1) {
53198
- var _a, _b, _c, _d, _e, _f;
53262
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
53263
+ if (forceRelease) {
53264
+ const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(),
53265
+ brushingChartInstance = getBrushingChartInstance();
53266
+ if (brushingChartInstanceCellPos && brushingChartInstance) {
53267
+ const cellGroup = this.getCell(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row);
53268
+ (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) && (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, {
53269
+ forceRelease: !0,
53270
+ releaseChartInstance: !0,
53271
+ releaseColumnChartInstance: !0,
53272
+ releaseRowChartInstance: !0,
53273
+ releaseAllChartInstance: !0
53274
+ })), clearCellChartCacheImage(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row, this), clearBrushingChartInstance();
53275
+ }
53276
+ }
53199
53277
  if (-1 === col || -1 === row) return;
53200
53278
  const cellGroup = this.getCell(col, row);
53201
- if (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) {
53202
- if (forceRelease) return void (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, {
53279
+ if (null === (_d = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _d ? void 0 : _d.deactivate) {
53280
+ if (forceRelease) return void (null === (_f = null === (_e = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _e ? void 0 : _e.deactivate) || void 0 === _f || _f.call(_e, this.table, {
53281
+ forceRelease: !0,
53203
53282
  releaseChartInstance: !0,
53204
53283
  releaseColumnChartInstance: !0,
53205
53284
  releaseRowChartInstance: !0,
53206
53285
  releaseAllChartInstance: !0
53207
53286
  }));
53208
53287
  const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
53209
- null === (_e = null === (_d = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _d ? void 0 : _d.deactivate) || void 0 === _e || _e.call(_d, this.table, (null === (_f = this.table.options.chartDimensionLinkage) || void 0 === _f ? void 0 : _f.showTooltip) ? {
53288
+ null === (_h = null === (_g = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _g ? void 0 : _g.deactivate) || void 0 === _h || _h.call(_g, this.table, (null === (_j = this.table.options.chartDimensionLinkage) || void 0 === _j ? void 0 : _j.showTooltip) ? {
53210
53289
  releaseChartInstance: "pie" !== chartType && ("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),
53211
53290
  releaseColumnChartInstance: "pie" !== chartType && (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),
53212
53291
  releaseRowChartInstance: "pie" !== chartType && (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)
@@ -53258,7 +53337,14 @@
53258
53337
  updateChartSizeForResizeRowHeight(this, row);
53259
53338
  }
53260
53339
  updateChartState(datum, selectedDataMode) {
53261
- this.table.isPivotChart() && updateChartState(this, datum, selectedDataMode);
53340
+ var _a, _b, _c;
53341
+ if (this.table.isPivotChart()) {
53342
+ if (null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) {
53343
+ const brushingChartInstance = getBrushingChartInstance();
53344
+ brushingChartInstance && (null === (_a = brushingChartInstance.getChart()) || void 0 === _a || _a.getComponentsByKey("brush")[0].clearBrushStateAndMask()), null === (_c = null === (_b = this.table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.clearChartState) || void 0 === _c || _c.call(_b);
53345
+ }
53346
+ updateChartState(this, datum, selectedDataMode);
53347
+ }
53262
53348
  }
53263
53349
  updateCheckboxCellState(col, row, checked) {
53264
53350
  var _a, _b;
@@ -56285,7 +56371,7 @@
56285
56371
  }, 0 !== e.button) return;
56286
56372
  const eventArgsSet = getCellEventArgsSet(e);
56287
56373
  if (eventManager.downIcon = void 0, stateManager.interactionState !== InteractionState.default) return;
56288
- if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null, void 0), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
56374
+ if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && (table.scenegraph.updateChartState(null, void 0), table.scenegraph.deactivateChart(-1, -1, !0)), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
56289
56375
  const isCompleteEdit = null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.completeEdit(e.nativeEvent);
56290
56376
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
56291
56377
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
@@ -56313,7 +56399,7 @@
56313
56399
  }
56314
56400
  eventManager.dealTableHover(eventArgsSet);
56315
56401
  } else {
56316
- if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null, void 0), void stateManager.updateInteractionState(InteractionState.grabing);
56402
+ if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null, void 0), table.scenegraph.deactivateChart(-1, -1, !0), void stateManager.updateInteractionState(InteractionState.grabing);
56317
56403
  if (eventManager.checkColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56318
56404
  if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56319
56405
  eventManager.dealTableSelect(eventArgsSet) && stateManager.updateInteractionState(InteractionState.grabing);
@@ -56465,7 +56551,7 @@
56465
56551
  if (!(null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a.selectCellWhenCellEditorNotExists) && !1 === isCompleteEdit) return;
56466
56552
  const hitIcon = (null === (_b = e.target.role) || void 0 === _b ? void 0 : _b.startsWith("icon")) ? e.target : void 0;
56467
56553
  if (eventManager.downIcon = hitIcon, "touch" === e.pointerType || hitIcon || eventManager.checkCellFillhandle(eventArgsSet) || stateManager.columnResize.resizing || !eventManager.checkColumnResize(eventArgsSet, !0)) ;else {
56468
- table.scenegraph.updateChartState(null, void 0), stateManager.updateInteractionState(InteractionState.grabing);
56554
+ table.scenegraph.updateChartState(null, void 0), table.scenegraph.deactivateChart(-1, -1, !0), stateManager.updateInteractionState(InteractionState.grabing);
56469
56555
  const {
56470
56556
  eventArgs: eventArgs
56471
56557
  } = eventArgsSet;
@@ -56484,7 +56570,7 @@
56484
56570
  if (table.eventManager.isDraging || !target || !target.isDescendantsOf(table.scenegraph.stage) && target.stage !== target || target.isDescendantsOf(table.scenegraph.tableGroup)) table.eventManager.isDraging && stateManager.isSelecting() && stateManager.endSelectCells();else {
56485
56571
  stateManager.updateInteractionState(InteractionState.default), eventManager.dealTableHover();
56486
56572
  const isHasSelected = !!(null === (_a = stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
56487
- (null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.cancelSelectCellHook) ? (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.cancelSelectCellHook(e)) && eventManager.dealTableSelect() : (null === (_e = null === (_d = table.options.select) || void 0 === _d ? void 0 : _d.blankAreaClickDeselect) || void 0 === _e || _e) && eventManager.dealTableSelect(), stateManager.endSelectCells(!0, isHasSelected), stateManager.updateCursor(), table.scenegraph.updateChartState(null, void 0);
56573
+ (null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.cancelSelectCellHook) ? (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.cancelSelectCellHook(e)) && eventManager.dealTableSelect() : (null === (_e = null === (_d = table.options.select) || void 0 === _d ? void 0 : _d.blankAreaClickDeselect) || void 0 === _e || _e) && eventManager.dealTableSelect(), stateManager.endSelectCells(!0, isHasSelected), stateManager.updateCursor(), table.scenegraph.updateChartState(null, void 0), table.scenegraph.deactivateChart(-1, -1, !0);
56488
56574
  }
56489
56575
  }), table.scenegraph.stage.addEventListener("pointermove", e => {
56490
56576
  var _a, _b, _c;
@@ -56725,11 +56811,13 @@
56725
56811
  const throttleVerticalWheel = throttle(stateManager.updateVerticalScrollBar, 20),
56726
56812
  throttleHorizontalWheel = throttle(stateManager.updateHorizontalScrollBar, 20);
56727
56813
  scenegraph.component.vScrollBar.addEventListener("scrollDrag", e => {
56728
- scenegraph.table.eventManager.isDown && (scenegraph.table.eventManager.isDraging = !0), stateManager.fastScrolling = !0, stateManager.interactionState !== InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.scrolling);
56814
+ var _a;
56815
+ scenegraph.table.eventManager.isDown && (scenegraph.table.eventManager.isDraging = !0), stateManager.fastScrolling = !0, stateManager.interactionState !== InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.scrolling), scenegraph.table.stateManager.hideMenu(), null === (_a = scenegraph.table.editorManager) || void 0 === _a || _a.completeEdit(), table.scenegraph.deactivateChart(-1, -1, !0);
56729
56816
  const ratio = e.detail.value[0] / (1 - e.detail.value[1] + e.detail.value[0]);
56730
56817
  throttleVerticalWheel(ratio, e);
56731
56818
  }), scenegraph.component.hScrollBar.addEventListener("scrollDrag", e => {
56732
- scenegraph.table.eventManager.isDown && (scenegraph.table.eventManager.isDraging = !0), stateManager.fastScrolling = !0, stateManager.interactionState !== InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.scrolling);
56819
+ var _a;
56820
+ scenegraph.table.eventManager.isDown && (scenegraph.table.eventManager.isDraging = !0), stateManager.fastScrolling = !0, stateManager.interactionState !== InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.scrolling), scenegraph.table.stateManager.hideMenu(), null === (_a = scenegraph.table.editorManager) || void 0 === _a || _a.completeEdit(), table.scenegraph.deactivateChart(-1, -1, !0);
56733
56821
  const ratio = e.detail.value[0] / (1 - e.detail.value[1] + e.detail.value[0]);
56734
56822
  throttleHorizontalWheel(ratio);
56735
56823
  });
@@ -56879,7 +56967,7 @@
56879
56967
  const isHasSelected = !!(null === (_b = stateManager.select.ranges) || void 0 === _b ? void 0 : _b.length);
56880
56968
  eventManager.dealTableSelect(), stateManager.endSelectCells(!0, isHasSelected);
56881
56969
  }
56882
- });
56970
+ }), table.scenegraph.updateChartState(null, void 0), table.scenegraph.deactivateChart(-1, -1, !0);
56883
56971
  }
56884
56972
  };
56885
56973
  eventManager.globalEventListeners.push({
@@ -60022,7 +60110,7 @@
60022
60110
  }
60023
60111
  constructor(container, options = {}) {
60024
60112
  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;
60025
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-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");
60113
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-alpha.10", 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");
60026
60114
  this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
60027
60115
  options: options,
60028
60116
  container: container
@@ -63682,9 +63770,9 @@
63682
63770
  };
63683
63771
  col === this.table.colCount - 1 ? referencePosition.rect.width = rect.width - 1 : referencePosition.rect.width = rect.width + 1, row === this.table.rowCount - 1 ? referencePosition.rect.height = rect.height - 1 : referencePosition.rect.height = rect.height + 1;
63684
63772
  const editor = this.table.getEditor(col, row);
63685
- setTimeout(() => {
63773
+ editor && setTimeout(() => {
63686
63774
  var _a;
63687
- this.editingEditor !== editor && (null === (_a = editor.prepareEdit) || void 0 === _a || _a.call(editor, {
63775
+ editor && this.editingEditor !== editor && (null === (_a = editor.prepareEdit) || void 0 === _a || _a.call(editor, {
63688
63776
  referencePosition: referencePosition,
63689
63777
  container: this.table.getElement(),
63690
63778
  table: this.table,
@@ -76327,7 +76415,7 @@
76327
76415
  PluginManager: PluginManager
76328
76416
  });
76329
76417
 
76330
- const version = "1.22.11-alpha.0";
76418
+ const version = "1.22.11-alpha.10";
76331
76419
 
76332
76420
  exports.Gantt = Gantt;
76333
76421
  exports.TYPES = index$4;