@visactor/vtable-gantt 1.22.10-alpha.1 → 1.22.11-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.
@@ -36364,6 +36364,7 @@
36364
36364
  lineWidth: 1,
36365
36365
  lineDash: [5, 5]
36366
36366
  }, options?.dependency?.linkCreatingLineStyle);
36367
+ gantt.parsedOptions.dependencyLinkDistanceToTaskBar = options?.dependency?.distanceToTaskBar ?? 20;
36367
36368
  gantt.parsedOptions.eventOptions = options?.eventOptions;
36368
36369
  gantt.parsedOptions.keyboardOptions = options?.keyboardOptions;
36369
36370
  gantt.parsedOptions.markLineCreateOptions = options?.markLineCreateOptions;
@@ -38454,6 +38455,24 @@
38454
38455
  }, delay));
38455
38456
  };
38456
38457
  }
38458
+ function cancellableThrottle(func, delay) {
38459
+ let timer = null,
38460
+ lastArgs = null,
38461
+ context = null;
38462
+ return {
38463
+ throttled: function (...args) {
38464
+ lastArgs = args, context = this, timer || (timer = setTimeout(() => {
38465
+ lastArgs && func.apply(context, lastArgs), timer = null, lastArgs = null, context = null;
38466
+ }, delay));
38467
+ },
38468
+ cancel: () => {
38469
+ timer && (clearTimeout(timer), timer = null, lastArgs = null, context = null);
38470
+ },
38471
+ flush: () => {
38472
+ timer && lastArgs && (clearTimeout(timer), func.apply(context, lastArgs), timer = null, lastArgs = null, context = null);
38473
+ }
38474
+ };
38475
+ }
38457
38476
  function pad(num, totalChars) {
38458
38477
  for (num = `${num}`; num.length < totalChars;) num = "0" + num;
38459
38478
  return num;
@@ -47601,48 +47620,26 @@
47601
47620
  const cellGroup = table.scenegraph.getCell(col, i),
47602
47621
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47603
47622
  chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance), setTimeout(() => {
47604
- var _a, _b, _c, _d, _e, _f;
47623
+ var _a, _b, _c, _d;
47605
47624
  if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47606
47625
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
47607
47626
  let isShowTooltip = !isScatter;
47608
- if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === rowEnd && isShowTooltip) {
47609
- const heightLimitToShowTooltipForEdgeRow = null !== (_c = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _c ? _c : 0,
47610
- {
47611
- rowEnd: rowEnd1
47612
- } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
47613
- if (rowEnd1 === rowEnd) isShowTooltip = !0;else {
47614
- const {
47615
- rowEnd: rowEnd2
47616
- } = table.getBodyVisibleRowRange(0, 5);
47617
- isShowTooltip = rowEnd2 !== rowEnd;
47618
- }
47619
- } else if (i === rowStart && isShowTooltip) {
47620
- const heightLimitToShowTooltipForEdgeRow = null !== (_d = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _d ? _d : 0,
47621
- {
47622
- rowStart: rowStart1
47623
- } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
47624
- if (rowStart1 === rowStart) isShowTooltip = !0;else {
47625
- const {
47626
- rowStart: rowStart2
47627
- } = table.getBodyVisibleRowRange(0, -5);
47628
- isShowTooltip = rowStart2 !== rowStart;
47629
- }
47630
- }
47631
- if (isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_f = (_e = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _f || _f.call(_e, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47632
- const bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
47627
+ if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table)), isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_d = (_c = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47628
+ const cellBoundry = table.getCellRelativeRect(col, i),
47629
+ bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
47633
47630
  absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
47634
47631
  hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
47635
47632
  tooltip: !1,
47636
47633
  showTooltipOption: {
47637
- x: canvasXY.x,
47638
- y: absolutePositionTop,
47634
+ x: canvasXY.x - cellBoundry.left,
47635
+ y: absolutePositionTop - cellBoundry.top,
47639
47636
  activeType: "dimension"
47640
47637
  }
47641
47638
  })) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
47642
47639
  tooltip: isShowTooltip,
47643
47640
  showTooltipOption: {
47644
- x: canvasXY.x,
47645
- y: absolutePositionTop,
47641
+ x: canvasXY.x - cellBoundry.left,
47642
+ y: absolutePositionTop - cellBoundry.top,
47646
47643
  activeType: "dimension"
47647
47644
  }
47648
47645
  });
@@ -47683,44 +47680,22 @@
47683
47680
  if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
47684
47681
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
47685
47682
  let isShowTooltip = !isScatter;
47686
- if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === colEnd && isShowTooltip) {
47687
- const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47688
- {
47689
- colEnd: colEnd1
47690
- } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
47691
- if (colEnd1 === colEnd) isShowTooltip = !0;else {
47692
- const {
47693
- colEnd: colEnd2
47694
- } = table.getBodyVisibleColRange(0, 5);
47695
- isShowTooltip = colEnd2 !== colEnd;
47696
- }
47697
- } else if (i === colStart && isShowTooltip) {
47698
- const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47699
- {
47700
- colStart: colStart1
47701
- } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
47702
- if (colStart1 === colStart) isShowTooltip = !0;else {
47703
- const {
47704
- colStart: colStart2
47705
- } = table.getBodyVisibleColRange(0, -5);
47706
- isShowTooltip = colStart2 !== colStart;
47707
- }
47708
- }
47709
- if (isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47710
- const bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
47683
+ if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(i, table)), isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47684
+ const cellBoundry = table.getCellRelativeRect(i, row),
47685
+ bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
47711
47686
  absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
47712
47687
  hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
47713
47688
  tooltip: !1,
47714
47689
  showTooltipOption: {
47715
- x: absolutePositionLeft,
47716
- y: canvasXY.y,
47690
+ x: absolutePositionLeft - cellBoundry.left,
47691
+ y: canvasXY.y - cellBoundry.top,
47717
47692
  activeType: "dimension"
47718
47693
  }
47719
47694
  })) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
47720
47695
  tooltip: isShowTooltip,
47721
47696
  showTooltipOption: {
47722
- x: absolutePositionLeft,
47723
- y: canvasXY.y,
47697
+ x: absolutePositionLeft - cellBoundry.left,
47698
+ y: canvasXY.y - cellBoundry.top,
47724
47699
  activeType: "dimension"
47725
47700
  }
47726
47701
  });
@@ -47729,6 +47704,103 @@
47729
47704
  }, 0), table.scenegraph.updateNextFrame();
47730
47705
  }
47731
47706
  }
47707
+ function generateChartInstanceListByViewRange(datum, table, deactivate = !1) {
47708
+ var _a;
47709
+ const {
47710
+ rowStart: rowStart
47711
+ } = table.getBodyVisibleRowRange();
47712
+ let rowEnd = table.getBodyVisibleRowRange().rowEnd;
47713
+ rowEnd = Math.min(table.rowCount - 1 - table.bottomFrozenRowCount, rowEnd);
47714
+ const {
47715
+ colStart: colStart
47716
+ } = table.getBodyVisibleColRange();
47717
+ let colEnd = table.getBodyVisibleColRange().colEnd;
47718
+ colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
47719
+ for (let col = colStart; col <= colEnd; col++) {
47720
+ isValid$1(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47721
+ for (let i = rowStart; i <= rowEnd; i++) {
47722
+ const cellGroup = table.scenegraph.getCell(col, i),
47723
+ 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(() => {
47725
+ var _a, _b;
47726
+ if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47727
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47728
+ let isShowTooltip = !0;
47729
+ "object" == typeof chartDimensionLinkage && (deactivate ? (chartInstanceListColumnByColumnDirection[col][i].setHovered(), chartInstanceListColumnByColumnDirection[col][i].hideTooltip()) : (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table), isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(col, table), chartInstanceListColumnByColumnDirection[col][i].setHovered(datum), isShowTooltip && chartInstanceListColumnByColumnDirection[col][i].showTooltip(datum, {
47730
+ activeType: "mark"
47731
+ })));
47732
+ }
47733
+ }, 0), table.scenegraph.updateNextFrame();
47734
+ }
47735
+ }
47736
+ }
47737
+ function checkIsShowTooltipForEdgeRow(row, table) {
47738
+ var _a, _b;
47739
+ let isShowTooltip = !0;
47740
+ const {
47741
+ rowStart: rowStart
47742
+ } = table.getBodyVisibleRowRange();
47743
+ let rowEnd = table.getBodyVisibleRowRange().rowEnd;
47744
+ rowEnd = Math.min(table.rowCount - 1 - table.bottomFrozenRowCount, rowEnd);
47745
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47746
+ if (row === rowEnd && isShowTooltip) {
47747
+ const heightLimitToShowTooltipForEdgeRow = null !== (_a = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _a ? _a : 0,
47748
+ {
47749
+ rowEnd: rowEnd1
47750
+ } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
47751
+ if (rowEnd1 === rowEnd) isShowTooltip = !0;else {
47752
+ const {
47753
+ rowEnd: rowEnd2
47754
+ } = table.getBodyVisibleRowRange(0, 5);
47755
+ isShowTooltip = rowEnd2 !== rowEnd;
47756
+ }
47757
+ } else if (row === rowStart && isShowTooltip) {
47758
+ const heightLimitToShowTooltipForEdgeRow = null !== (_b = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _b ? _b : 0,
47759
+ {
47760
+ rowStart: rowStart1
47761
+ } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
47762
+ if (rowStart1 === rowStart) isShowTooltip = !0;else {
47763
+ const {
47764
+ rowStart: rowStart2
47765
+ } = table.getBodyVisibleRowRange(0, -5);
47766
+ isShowTooltip = rowStart2 !== rowStart;
47767
+ }
47768
+ }
47769
+ return isShowTooltip;
47770
+ }
47771
+ function checkIsShowTooltipForEdgeColumn(col, table) {
47772
+ let isShowTooltip = !0;
47773
+ const {
47774
+ colStart: colStart
47775
+ } = table.getBodyVisibleColRange();
47776
+ let colEnd = table.getBodyVisibleColRange().colEnd;
47777
+ colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
47778
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47779
+ if (col === colEnd && isShowTooltip) {
47780
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47781
+ {
47782
+ colEnd: colEnd1
47783
+ } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
47784
+ if (colEnd1 === colEnd) isShowTooltip = !0;else {
47785
+ const {
47786
+ colEnd: colEnd2
47787
+ } = table.getBodyVisibleColRange(0, 5);
47788
+ isShowTooltip = colEnd2 !== colEnd;
47789
+ }
47790
+ } else if (col === colStart && isShowTooltip) {
47791
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47792
+ {
47793
+ colStart: colStart1
47794
+ } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
47795
+ if (colStart1 === colStart) isShowTooltip = !0;else {
47796
+ const {
47797
+ colStart: colStart2
47798
+ } = table.getBodyVisibleColRange(0, -5);
47799
+ isShowTooltip = colStart2 !== colStart;
47800
+ }
47801
+ }
47802
+ return isShowTooltip;
47803
+ }
47732
47804
  function clearChartInstanceListByRowDirection(row, excludedCol, table) {
47733
47805
  var _a;
47734
47806
  if (isValid$1(chartInstanceListRowByRowDirection[row])) for (const i in chartInstanceListRowByRowDirection[row]) {
@@ -47743,6 +47815,10 @@
47743
47815
  }
47744
47816
  delete chartInstanceListRowByRowDirection[row];
47745
47817
  }
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);
47821
+ }
47746
47822
 
47747
47823
  function isValidAlignDomain(domain) {
47748
47824
  return 2 === domain.length && isValidNumber$1(domain[0]) && isValidNumber$1(domain[1]) && domain[1] >= domain[0];
@@ -48376,7 +48452,7 @@
48376
48452
  const CHART_NUMBER_TYPE = genNumberType();
48377
48453
  class Chart extends Rect$2 {
48378
48454
  constructor(isShareChartSpec, params) {
48379
- if (super(params), this.type = "chart", this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.delayRunDimensionHoverTimer = void 0, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
48455
+ if (super(params), this.type = "chart", this.activeChartInstanceLastViewBox = null, this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.delayRunDimensionHoverTimer = void 0, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
48380
48456
  const chartInstance = this.chartInstance = new params.ClassType(params.spec, merge({}, this.attribute.tableChartOption, {
48381
48457
  renderCanvas: params.canvas,
48382
48458
  mode: "node" === this.attribute.mode ? "node" : "desktop-browser",
@@ -48397,7 +48473,7 @@
48397
48473
  }
48398
48474
  }
48399
48475
  activate(table) {
48400
- var _a, _b, _c, _d, _e;
48476
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48401
48477
  if (this.activeChartInstance) return;
48402
48478
  const {
48403
48479
  col: col,
@@ -48450,7 +48526,7 @@
48450
48526
  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());
48451
48527
  }
48452
48528
  },
48453
- componentShowContent: table.options.chartDimensionLinkage && "scatter" !== this.attribute.spec.type ? {
48529
+ componentShowContent: (null === (_b = table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.showTooltip) && "scatter" !== this.attribute.spec.type ? {
48454
48530
  tooltip: {
48455
48531
  dimension: !1,
48456
48532
  mark: !0
@@ -48461,15 +48537,37 @@
48461
48537
  const chartStage = this.activeChartInstance.getStage(),
48462
48538
  matrix = this.globalTransMatrix.clone(),
48463
48539
  stageMatrix = this.stage.window.getViewBoxTransform();
48464
- 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 => {
48540
+ 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 => {
48465
48542
  var _a;
48466
- !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);
48467
- }), this.activeChartInstance.on("brushEnd", params => {
48543
+ !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 => {
48468
48545
  var _a;
48469
- table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
48546
+ brushChangeThrottle.throttled(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush");
48547
+ })), this.activeChartInstance.on("brushEnd", params => {
48548
+ var _a;
48549
+ 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(() => {
48470
48550
  Chart.temp = 1;
48471
48551
  }, 0);
48472
- }), table.options.chartDimensionLinkage && this.activeChartInstance.on("dimensionHover", params => {
48552
+ }), (null === (_h = table.options.chartDimensionLinkage) || void 0 === _h ? void 0 : _h.showTooltip) && ("pie" === this.attribute.spec.type && (this.activeChartInstance.on("pointerover", {
48553
+ markName: "pie"
48554
+ }, params => {
48555
+ var _a;
48556
+ const categoryField = this.attribute.spec.categoryField,
48557
+ datum = {
48558
+ [categoryField]: null === (_a = null == params ? void 0 : params.datum) || void 0 === _a ? void 0 : _a[categoryField]
48559
+ };
48560
+ generateChartInstanceListByViewRange(datum, table, !1);
48561
+ }), this.activeChartInstance.on("pointerout", {
48562
+ markName: "pie"
48563
+ }, params => {
48564
+ var _a;
48565
+ const categoryField = this.attribute.spec.categoryField,
48566
+ datum = {
48567
+ [categoryField]: null === (_a = null == params ? void 0 : params.datum) || void 0 === _a ? void 0 : _a[categoryField]
48568
+ };
48569
+ generateChartInstanceListByViewRange(datum, table, !0);
48570
+ })), this.activeChartInstance.on("dimensionHover", params => {
48473
48571
  var _a, _b;
48474
48572
  const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
48475
48573
  canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
@@ -48532,12 +48630,13 @@
48532
48630
  }
48533
48631
  }
48534
48632
  }
48535
- }), null === (_e = (_d = table)._bindChartEvent) || void 0 === _e || _e.call(_d, this.activeChartInstance);
48633
+ })), null === (_k = (_j = table)._bindChartEvent) || void 0 === _k || _k.call(_j, this.activeChartInstance);
48536
48634
  }
48537
48635
  deactivate(table, {
48538
48636
  releaseChartInstance = !0,
48539
48637
  releaseColumnChartInstance = !0,
48540
- releaseRowChartInstance = !0
48638
+ releaseRowChartInstance = !0,
48639
+ releaseAllChartInstance = !1
48541
48640
  } = {}) {
48542
48641
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48543
48642
  if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0, releaseChartInstance) {
@@ -48559,7 +48658,7 @@
48559
48658
  } = this.parent;
48560
48659
  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));
48561
48660
  }
48562
- 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);
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));
48563
48662
  }
48564
48663
  updateData(data) {
48565
48664
  this.attribute.data = data;
@@ -48574,13 +48673,14 @@
48574
48673
  y1: y1,
48575
48674
  x2: x2,
48576
48675
  y2: y2
48577
- } = cellGroup.globalAABBBounds;
48578
- return {
48579
- x1: Math.ceil(x1 + padding[3] + table.scrollLeft + (null !== (_b = null === (_a = table.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0)),
48580
- x2: Math.ceil(x1 + cellGroup.attribute.width - padding[1] + table.scrollLeft + (null !== (_d = null === (_c = table.options.viewBox) || void 0 === _c ? void 0 : _c.x1) && void 0 !== _d ? _d : 0)),
48581
- y1: Math.ceil(y1 + padding[0] + table.scrollTop + (null !== (_f = null === (_e = table.options.viewBox) || void 0 === _e ? void 0 : _e.y1) && void 0 !== _f ? _f : 0)),
48582
- y2: Math.ceil(y1 + cellGroup.attribute.height - padding[2] + table.scrollTop + (null !== (_h = null === (_g = table.options.viewBox) || void 0 === _g ? void 0 : _g.y1) && void 0 !== _h ? _h : 0))
48583
- };
48676
+ } = cellGroup.globalAABBBounds,
48677
+ viewBox = {
48678
+ x1: Math.ceil(x1 + padding[3] + table.scrollLeft + (null !== (_b = null === (_a = table.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0)),
48679
+ x2: Math.ceil(x1 + cellGroup.attribute.width - padding[1] + table.scrollLeft + (null !== (_d = null === (_c = table.options.viewBox) || void 0 === _c ? void 0 : _c.x1) && void 0 !== _d ? _d : 0)),
48680
+ y1: Math.ceil(y1 + padding[0] + table.scrollTop + (null !== (_f = null === (_e = table.options.viewBox) || void 0 === _e ? void 0 : _e.y1) && void 0 !== _f ? _f : 0)),
48681
+ y2: Math.ceil(y1 + cellGroup.attribute.height - padding[2] + table.scrollTop + (null !== (_h = null === (_g = table.options.viewBox) || void 0 === _g ? void 0 : _g.y1) && void 0 !== _h ? _h : 0))
48682
+ };
48683
+ return this.activeChartInstance ? this.activeChartInstanceLastViewBox = viewBox : this.activeChartInstanceLastViewBox = null, viewBox;
48584
48684
  }
48585
48685
  }
48586
48686
  function getTableBounds(col, row, table) {
@@ -48795,7 +48895,7 @@
48795
48895
  {
48796
48896
  width = groupAttribute.width,
48797
48897
  height = groupAttribute.height
48798
- } = (chart.getViewBox(), chart.attribute),
48898
+ } = chart.attribute,
48799
48899
  {
48800
48900
  table: table
48801
48901
  } = chart.getRootNode(),
@@ -48823,8 +48923,9 @@
48823
48923
  });
48824
48924
  }
48825
48925
  }
48826
- const viewBox = chart.getViewBox();
48827
- activeChartInstance.updateViewBox({
48926
+ const lastViewBox = chart.activeChartInstanceLastViewBox,
48927
+ viewBox = chart.getViewBox();
48928
+ lastViewBox && viewBox.x1 === lastViewBox.x1 && viewBox.x2 === lastViewBox.x2 && viewBox.y1 === lastViewBox.y1 && viewBox.y2 === lastViewBox.y2 || activeChartInstance.updateViewBox({
48828
48929
  x1: 0,
48829
48930
  x2: viewBox.x2 - viewBox.x1,
48830
48931
  y1: 0,
@@ -52342,9 +52443,10 @@
52342
52443
  });
52343
52444
  }
52344
52445
  }
52345
- function updateChartState(scenegraph, datum) {
52446
+ function updateChartState(scenegraph, datum, selectedDataMode) {
52346
52447
  const table = scenegraph.table;
52347
52448
  if (table.isPivotChart()) {
52449
+ table._selectedDataMode = selectedDataMode;
52348
52450
  const preSelectItemsCount = table._selectedDataItemsInChart.length;
52349
52451
  if ((null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) && 0 === preSelectItemsCount) return;
52350
52452
  const newSelectedDataItemsInChart = [];
@@ -53092,16 +53194,22 @@
53092
53194
  resetResidentHoverIcon(col, row) {
53093
53195
  resetResidentHoverIcon(col, row, this);
53094
53196
  }
53095
- deactivateChart(col, row) {
53096
- var _a, _b, _c;
53197
+ deactivateChart(col, row, forceRelease = !1) {
53198
+ var _a, _b, _c, _d, _e, _f;
53097
53199
  if (-1 === col || -1 === row) return;
53098
53200
  const cellGroup = this.getCell(col, row);
53099
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, {
53203
+ releaseChartInstance: !0,
53204
+ releaseColumnChartInstance: !0,
53205
+ releaseRowChartInstance: !0,
53206
+ releaseAllChartInstance: !0
53207
+ }));
53100
53208
  const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
53101
- 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 ? {
53102
- 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,
53103
- 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,
53104
- 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
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) ? {
53210
+ 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
+ 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
+ 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)
53105
53213
  } : void 0);
53106
53214
  }
53107
53215
  }
@@ -53149,8 +53257,8 @@
53149
53257
  updateChartSizeForResizeRowHeight(row) {
53150
53258
  updateChartSizeForResizeRowHeight(this, row);
53151
53259
  }
53152
- updateChartState(datum) {
53153
- this.table.isPivotChart() && updateChartState(this, datum);
53260
+ updateChartState(datum, selectedDataMode) {
53261
+ this.table.isPivotChart() && updateChartState(this, datum, selectedDataMode);
53154
53262
  }
53155
53263
  updateCheckboxCellState(col, row, checked) {
53156
53264
  var _a, _b;
@@ -56177,7 +56285,7 @@
56177
56285
  }, 0 !== e.button) return;
56178
56286
  const eventArgsSet = getCellEventArgsSet(e);
56179
56287
  if (eventManager.downIcon = void 0, stateManager.interactionState !== InteractionState.default) return;
56180
- if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null), (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;
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;
56181
56289
  const isCompleteEdit = null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.completeEdit(e.nativeEvent);
56182
56290
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
56183
56291
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
@@ -56205,7 +56313,7 @@
56205
56313
  }
56206
56314
  eventManager.dealTableHover(eventArgsSet);
56207
56315
  } else {
56208
- if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null), void stateManager.updateInteractionState(InteractionState.grabing);
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);
56209
56317
  if (eventManager.checkColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56210
56318
  if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56211
56319
  eventManager.dealTableSelect(eventArgsSet) && stateManager.updateInteractionState(InteractionState.grabing);
@@ -56357,7 +56465,7 @@
56357
56465
  if (!(null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a.selectCellWhenCellEditorNotExists) && !1 === isCompleteEdit) return;
56358
56466
  const hitIcon = (null === (_b = e.target.role) || void 0 === _b ? void 0 : _b.startsWith("icon")) ? e.target : void 0;
56359
56467
  if (eventManager.downIcon = hitIcon, "touch" === e.pointerType || hitIcon || eventManager.checkCellFillhandle(eventArgsSet) || stateManager.columnResize.resizing || !eventManager.checkColumnResize(eventArgsSet, !0)) ;else {
56360
- table.scenegraph.updateChartState(null), stateManager.updateInteractionState(InteractionState.grabing);
56468
+ table.scenegraph.updateChartState(null, void 0), stateManager.updateInteractionState(InteractionState.grabing);
56361
56469
  const {
56362
56470
  eventArgs: eventArgs
56363
56471
  } = eventArgsSet;
@@ -56376,7 +56484,7 @@
56376
56484
  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 {
56377
56485
  stateManager.updateInteractionState(InteractionState.default), eventManager.dealTableHover();
56378
56486
  const isHasSelected = !!(null === (_a = stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
56379
- (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);
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);
56380
56488
  }
56381
56489
  }), table.scenegraph.stage.addEventListener("pointermove", e => {
56382
56490
  var _a, _b, _c;
@@ -56494,7 +56602,15 @@
56494
56602
  table.stateManager.setCheckedState(col, row, cellInfo.field, e.detail.checked), table.fireListeners(TABLE_EVENT_TYPE.SWITCH_STATE_CHANGE, cellsEvent), table.scenegraph.updateNextFrame();
56495
56603
  }), table.scenegraph.stage.addEventListener("wheel", e => {
56496
56604
  var _a;
56497
- e.path.find(node => "legend" === node.name) || (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit(), table.eventManager._enableTableScroll && handleWhell(e, stateManager));
56605
+ if (!e.path.find(node => "legend" === node.name)) {
56606
+ null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit();
56607
+ const {
56608
+ cellPos: cellPos
56609
+ } = table.stateManager.hover,
56610
+ prevHoverCellCol = cellPos.col,
56611
+ prevHoverCellRow = cellPos.row;
56612
+ table.scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow, !0), table.eventManager._enableTableScroll && handleWhell(e, stateManager);
56613
+ }
56498
56614
  });
56499
56615
  }
56500
56616
  function bindGesture(eventManager) {
@@ -59906,7 +60022,7 @@
59906
60022
  }
59907
60023
  constructor(container, options = {}) {
59908
60024
  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;
59909
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.10-alpha.1", 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");
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");
59910
60026
  this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
59911
60027
  options: options,
59912
60028
  container: container
@@ -64987,7 +65103,7 @@
64987
65103
  if (lastSelectedCellEditor) return lastSelectedCellEditor;
64988
65104
  Object.values(this.editorManager.cacheLastSelectedCellEditor).forEach(editor => {
64989
65105
  var _a;
64990
- return null === (_a = editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
65106
+ return null === (_a = null == editor ? void 0 : editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
64991
65107
  }), this.editorManager.cacheLastSelectedCellEditor = {};
64992
65108
  const define = this.getBodyColumnDefine(col, row);
64993
65109
  let editor = this.isHeader(col, row) ? null !== (_a = null == define ? void 0 : define.headerEditor) && void 0 !== _a ? _a : this.options.headerEditor : null !== (_b = null == define ? void 0 : define.editor) && void 0 !== _b ? _b : this.options.editor;
@@ -65000,7 +65116,7 @@
65000
65116
  table: this
65001
65117
  });
65002
65118
  }
65003
- return "string" == typeof editor && (editor = get(editor)), this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor, editor;
65119
+ return "string" == typeof editor && (editor = get(editor)), editor && (this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor), editor;
65004
65120
  }
65005
65121
  isHasEditorDefine(col, row) {
65006
65122
  var _a, _b;
@@ -70592,7 +70708,7 @@
70592
70708
  const { unit, step } = gantt.parsedOptions.reverseSortedTimelineScales[0];
70593
70709
  const { minDate, rowHeight, timelineColWidth } = gantt.parsedOptions;
70594
70710
  const taskBarMilestoneHypotenuse = gantt.parsedOptions.taskBarMilestoneHypotenuse;
70595
- const distanceToTaskBar = 20;
70711
+ const distanceToTaskBar = gantt.parsedOptions.dependencyLinkDistanceToTaskBar ?? 20;
70596
70712
  const arrowWidth = 10;
70597
70713
  const arrowHeight = 5;
70598
70714
  let linePoints = [];
@@ -70862,7 +70978,7 @@
70862
70978
  const { minDate, rowHeight, timelineColWidth } = gantt.parsedOptions;
70863
70979
  const taskBarMilestoneHypotenuse = gantt.parsedOptions.taskBarMilestoneHypotenuse;
70864
70980
  const milestoneTaskbarHeight = gantt.parsedOptions.taskBarMilestoneStyle.width;
70865
- const distanceToTaskBar = 20;
70981
+ const distanceToTaskBar = gantt.parsedOptions.dependencyLinkDistanceToTaskBar ?? 20;
70866
70982
  const arrowWidth = 10;
70867
70983
  const arrowHeight = 5;
70868
70984
  let linePoints = [];
@@ -76211,7 +76327,7 @@
76211
76327
  PluginManager: PluginManager
76212
76328
  });
76213
76329
 
76214
- const version = "1.22.10-alpha.1";
76330
+ const version = "1.22.11-alpha.0";
76215
76331
 
76216
76332
  exports.Gantt = Gantt;
76217
76333
  exports.TYPES = index$4;