@visactor/vtable-calendar 1.13.3-alpha.6 → 1.13.3-alpha.7

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.
@@ -31797,7 +31797,7 @@
31797
31797
  const range = getUpdateCustomCellRangeInListTable(componentId, table, isHeaderCustomLayout);
31798
31798
  for (let col = range.start.col; col <= range.end.col; col++) for (let row = range.start.row; row <= range.end.row; row++) table.scenegraph.updateCellContent(col, row);
31799
31799
  }
31800
- "autoWidth" === table.widthMode && table.scenegraph.recalculateColWidths(), table.isAutoRowHeight() && table.scenegraph.recalculateRowHeights(), table.scenegraph.renderSceneGraph();
31800
+ "autoWidth" === table.widthMode && table.scenegraph.recalculateColWidths(), "autoHeight" === table.heightMode && table.scenegraph.recalculateRowHeights(), table.scenegraph.renderSceneGraph();
31801
31801
  }
31802
31802
  getCustomLayoutFunc(col, row) {
31803
31803
  var _a;
@@ -33626,7 +33626,7 @@
33626
33626
  col: col,
33627
33627
  row: row
33628
33628
  } = reactGroup;
33629
- isNumber$2(col) && isNumber$2(row) && table.reactCustomLayout.removeCustomCell(col, row);
33629
+ table.reactCustomLayout.removeCustomCell(col, row);
33630
33630
  }
33631
33631
  }
33632
33632
  const newCellGroup = createCell(type, value, define, table, col, row, table.getColWidth(col), cellWidth, cellHeight, addNew ? table.scenegraph.getColGroup(col) : oldCellGroup.parent, addNew ? 0 : table.scenegraph.getCellGroupY(row), padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult);
@@ -33996,7 +33996,7 @@
33996
33996
  const layoutMap = table.internalProps.layoutMap;
33997
33997
  table.isPivotTable() && (layoutMap.enableUseGetBodyCache(), layoutMap.enableUseHeaderPathCache()), table.defaultHeaderRowHeight, table.defaultHeaderColWidth;
33998
33998
  const isDefaultHeaderHasAuto = "auto" === table.defaultHeaderRowHeight || isArray$1(table.defaultHeaderRowHeight) && table.defaultHeaderRowHeight.some(item => "auto" === item),
33999
- isAllRowsAuto = table.isAutoRowHeight() || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode,
33999
+ isAllRowsAuto = "autoHeight" === table.heightMode || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode,
34000
34000
  isDefaultRowHeightIsAuto = "auto" === table.options.defaultRowHeight;
34001
34001
  if (isAllRowsAuto || isDefaultHeaderHasAuto || isDefaultRowHeightIsAuto) {
34002
34002
  rowStart = null != rowStart ? rowStart : 0, rowEnd = null != rowEnd ? rowEnd : table.rowCount - 1, (0 === rowStart && rowEnd === table.rowCount - 1 || isClearRowRangeHeightsMap) && table._clearRowRangeHeightsMap();
@@ -34088,16 +34088,12 @@
34088
34088
  }
34089
34089
  function computeRowHeight(row, startCol, endCol, table) {
34090
34090
  var _a;
34091
- if (!(table.isAutoRowHeight() || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
34091
+ if (!("autoHeight" === table.heightMode || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
34092
34092
  let maxHeight;
34093
- if (table.options.customComputeRowHeight) {
34094
- const customRowHeight = table.options.customComputeRowHeight({
34095
- row: row,
34096
- table: table
34097
- });
34098
- if ("number" == typeof customRowHeight) return customRowHeight;
34099
- if ("auto" !== customRowHeight) return table.getDefaultRowHeight(row);
34100
- }
34093
+ if (table.options.customComputeRowHeight) return table.options.customComputeRowHeight({
34094
+ row: row,
34095
+ table: table
34096
+ });
34101
34097
  if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) if (table.internalProps.layoutMap.indicatorsAsCol) {
34102
34098
  const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row);
34103
34099
  if (optimunHeight > 0) return optimunHeight;
@@ -34132,7 +34128,7 @@
34132
34128
  layoutMap: layoutMap
34133
34129
  } = table.internalProps,
34134
34130
  row = table.columnHeaderLevelCount;
34135
- if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak || table.isPivotChart()) && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
34131
+ if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak || table.isPivotChart()) && ("autoHeight" === table.options.heightMode || "adaptive" === table.options.heightMode)) return !1;
34136
34132
  for (let col = 0; col < table.colCount; col++) {
34137
34133
  const cellDefine = layoutMap.getBody(col, row);
34138
34134
  if ("radio" === cellDefine.cellType) return !1;
@@ -34147,7 +34143,7 @@
34147
34143
  const {
34148
34144
  layoutMap: layoutMap
34149
34145
  } = table.internalProps;
34150
- if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak) && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
34146
+ if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak) && ("autoHeight" === table.options.heightMode || "adaptive" === table.options.heightMode)) return !1;
34151
34147
  const cellDefine = layoutMap.getBody(table.rowHeaderLevelCount, row);
34152
34148
  if ("function" == typeof cellDefine.style || "function" == typeof cellDefine.icon || (null === (_a = cellDefine.define) || void 0 === _a ? void 0 : _a.customRender) || (null === (_b = cellDefine.define) || void 0 === _b ? void 0 : _b.customLayout) || "function" == typeof (null === (_c = cellDefine.define) || void 0 === _c ? void 0 : _c.icon)) return !1;
34153
34149
  const cellStyle = table._getCellStyle(table.rowHeaderLevelCount, row);
@@ -34158,7 +34154,7 @@
34158
34154
  const {
34159
34155
  layoutMap: layoutMap
34160
34156
  } = table.internalProps;
34161
- if (table.internalProps.autoWrapText && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
34157
+ if (table.internalProps.autoWrapText && ("autoHeight" === table.options.heightMode || "adaptive" === table.options.heightMode)) return !1;
34162
34158
  const headerDefine = layoutMap.getHeader(table.rowHeaderLevelCount, row);
34163
34159
  if ("function" == typeof headerDefine.style || "function" == typeof headerDefine.icons || (null === (_a = headerDefine.define) || void 0 === _a ? void 0 : _a.headerCustomRender) || (null === (_b = headerDefine.define) || void 0 === _b ? void 0 : _b.headerCustomLayout) || "function" == typeof (null === (_c = headerDefine.define) || void 0 === _c ? void 0 : _c.icon)) return !1;
34164
34160
  const headerStyle = table._getCellStyle(table.rowHeaderLevelCount, row);
@@ -34210,7 +34206,7 @@
34210
34206
  }
34211
34207
  }
34212
34208
  function computeTextHeight(col, row, cellType, table) {
34213
- var _a, _b, _c, _d;
34209
+ var _a, _b, _c;
34214
34210
  let maxHeight = 0;
34215
34211
  const cellValue = table.getCellValue(col, row),
34216
34212
  actStyle = table._getCellStyle(col, row);
@@ -34245,9 +34241,7 @@
34245
34241
  lineHeight = null !== (_b = getProp("lineHeight", actStyle, col, row, table)) && void 0 !== _b ? _b : fontSize,
34246
34242
  fontFamily = getProp("fontFamily", actStyle, col, row, table),
34247
34243
  autoWrapText = getProp("autoWrapText", actStyle, col, row, table),
34248
- lineClamp = getProp("lineClamp", actStyle, col, row, table),
34249
- underline = getProp("underline", actStyle, col, row, table),
34250
- underlineOffset = null !== (_c = getProp("underlineOffset", actStyle, col, row, table)) && void 0 !== _c ? _c : 0;
34244
+ lineClamp = getProp("lineClamp", actStyle, col, row, table);
34251
34245
  let text;
34252
34246
  if ("text" !== cellType && "link" !== cellType && "progressbar" !== cellType && "checkbox" !== cellType && "radio" !== cellType) maxHeight = lineHeight;else if ("checkbox" === cellType) maxHeight = computeCheckboxCellHeight(cellValue, col, row, endCol, actStyle, autoWrapText, iconWidth, fontSize, fontStyle, fontWeight, fontFamily, lineHeight, lineClamp, padding, table);else if ("radio" === cellType) maxHeight = computeRadioCellHeight(cellValue, col, row, endCol, actStyle, autoWrapText, iconWidth, fontSize, fontStyle, fontWeight, fontFamily, lineHeight, lineClamp, padding, table);else {
34253
34247
  text = cellValue;
@@ -34289,8 +34283,8 @@
34289
34283
  whiteSpace: 1 !== lines.length || autoWrapText ? "normal" : "no-wrap",
34290
34284
  lineClamp: lineClamp
34291
34285
  });
34292
- maxHeight = (bounds.height() || ("number" == typeof lineHeight ? lineHeight : fontSize)) + (underline ? underlineOffset : 0);
34293
- } else maxHeight = (null === (_d = table.options.customConfig) || void 0 === _d ? void 0 : _d.multilinesForXTable) ? lineHeight : lines.length * lineHeight;
34286
+ maxHeight = bounds.height() || ("number" == typeof lineHeight ? lineHeight : fontSize);
34287
+ } else maxHeight = (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.multilinesForXTable) ? lineHeight : lines.length * lineHeight;
34294
34288
  }
34295
34289
  return (Math.max(maxHeight, iconHeight) + padding[0] + padding[2]) / spanRow;
34296
34290
  }
@@ -36004,7 +35998,7 @@
36004
35998
  }
36005
35999
  }
36006
36000
  if (!updateSpec) if (null == axes || axes.forEach((axis, index) => {
36007
- var _a, _b, _c, _d, _e;
36001
+ var _a, _b, _c, _d;
36008
36002
  "band" === axis.type ? chartInstance.updateModelSpec({
36009
36003
  type: "axes",
36010
36004
  index: index
@@ -36015,10 +36009,7 @@
36015
36009
  index: index
36016
36010
  }, {
36017
36011
  min: null !== (_b = null === (_a = axis.range) || void 0 === _a ? void 0 : _a.min) && void 0 !== _b ? _b : 0,
36018
- max: null !== (_d = null === (_c = axis.range) || void 0 === _c ? void 0 : _c.max) && void 0 !== _d ? _d : 0,
36019
- tick: {
36020
- tickMode: null === (_e = axis.tick) || void 0 === _e ? void 0 : _e.tickMode
36021
- }
36012
+ max: null !== (_d = null === (_c = axis.range) || void 0 === _c ? void 0 : _c.max) && void 0 !== _d ? _d : 0
36022
36013
  }, !0);
36023
36014
  }), null === (_b = null === (_a = table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.updateDataStateToActiveChartInstance) || void 0 === _b || _b.call(_a, chartInstance), "string" == typeof dataId) chartInstance.updateDataSync(dataId, null != data ? data : []);else {
36024
36015
  const dataBatch = [];
@@ -37439,7 +37430,7 @@
37439
37430
  rightBottomCornerGroup: rightBottomCornerGroup
37440
37431
  } = table.scenegraph;
37441
37432
  let distCol, distRow, distColForCompute, distRowForCompute;
37442
- proxy.setParamsForRow(), proxy.setParamsForColumn(), "adaptive" === table.widthMode || table.options.autoWrapText && ("adaptive" === table.heightMode || table.isAutoRowHeight()) ? (distColForCompute = table.colCount - 1, distCol = Math.min(proxy.firstScreenColLimit, table.colCount - 1)) : distCol = Math.min(proxy.firstScreenColLimit, table.colCount - 1), "adaptive" === table.heightMode ? (distRowForCompute = table.rowCount - 1, distRow = Math.min(proxy.firstScreenRowLimit, table.rowCount - 1)) : distRow = Math.min(proxy.firstScreenRowLimit, table.rowCount - 1), 0 === table.internalProps._widthResizedColMap.size && computeColsWidth(table, 0, null != distColForCompute ? distColForCompute : distCol), 0 === table.internalProps._heightResizedRowMap.size && computeRowsHeight(table, 0, null != distRowForCompute ? distRowForCompute : distRow), distCol < table.colCount - table.rightFrozenColCount && computeColsWidth(table, table.colCount - table.rightFrozenColCount, table.colCount - 1), distRow < table.rowCount - table.bottomFrozenRowCount && computeRowsHeight(table, table.rowCount - table.bottomFrozenRowCount, table.rowCount - 1), table.scenegraph.colHeaderGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rowHeaderGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bottomFrozenGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rightFrozenGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bodyGroup.setAttributes({
37433
+ proxy.setParamsForRow(), proxy.setParamsForColumn(), "adaptive" === table.widthMode || table.options.autoWrapText && ("adaptive" === table.heightMode || "autoHeight" === table.heightMode) ? (distColForCompute = table.colCount - 1, distCol = Math.min(proxy.firstScreenColLimit, table.colCount - 1)) : distCol = Math.min(proxy.firstScreenColLimit, table.colCount - 1), "adaptive" === table.heightMode ? (distRowForCompute = table.rowCount - 1, distRow = Math.min(proxy.firstScreenRowLimit, table.rowCount - 1)) : distRow = Math.min(proxy.firstScreenRowLimit, table.rowCount - 1), 0 === table.internalProps._widthResizedColMap.size && computeColsWidth(table, 0, null != distColForCompute ? distColForCompute : distCol), 0 === table.internalProps._heightResizedRowMap.size && computeRowsHeight(table, 0, null != distRowForCompute ? distRowForCompute : distRow), distCol < table.colCount - table.rightFrozenColCount && computeColsWidth(table, table.colCount - table.rightFrozenColCount, table.colCount - 1), distRow < table.rowCount - table.bottomFrozenRowCount && computeRowsHeight(table, table.rowCount - table.bottomFrozenRowCount, table.rowCount - 1), table.scenegraph.colHeaderGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rowHeaderGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bottomFrozenGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rightFrozenGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bodyGroup.setAttributes({
37443
37434
  x: table.getFrozenColsWidth(),
37444
37435
  y: table.getFrozenRowsHeight()
37445
37436
  }), createColGroup(cornerHeaderGroup, xOrigin, yOrigin, 0, table.frozenColCount - 1, 0, table.frozenRowCount - 1, table.isListTable() ? "columnHeader" : "cornerHeader", table), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(colHeaderGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, 0, table.frozenRowCount - 1, "columnHeader", table), table.frozenColCount > 0 && (table.leftRowSeriesNumberCount > 0 && createColGroup(rowHeaderGroup, xOrigin, yOrigin, 0, table.leftRowSeriesNumberCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "rowHeader", table), table.rowHeaderLevelCount > 0 && createColGroup(rowHeaderGroup, xOrigin, yOrigin, table.leftRowSeriesNumberCount, table.leftRowSeriesNumberCount + table.rowHeaderLevelCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "rowHeader", table), table.frozenColCount > table.rowHeaderLevelCount + table.leftRowSeriesNumberCount && createColGroup(rowHeaderGroup, xOrigin, yOrigin, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, table.frozenColCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "body", table)), table.bottomFrozenRowCount > 0 && (table.frozenColCount > 0 && (table.leftRowSeriesNumberCount > 0 && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, 0, table.leftRowSeriesNumberCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "rowHeader", table), table.rowHeaderLevelCount > 0 && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, table.leftRowSeriesNumberCount, table.leftRowSeriesNumberCount + table.rowHeaderLevelCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "rowHeader", table), table.frozenColCount > table.rowHeaderLevelCount + table.leftRowSeriesNumberCount && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, table.frozenColCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "body", table)), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(bottomFrozenGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, table.isPivotChart() ? "rowHeader" : "body", table)), table.rightFrozenColCount > 0 && (createColGroup(rightTopCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, 0, table.frozenRowCount - 1, "columnHeader", table), createColGroup(rightFrozenGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, table.isPivotChart() ? "rowHeader" : "body", table)), table.bottomFrozenRowCount > 0 && table.rightFrozenColCount > 0 && createColGroup(rightBottomCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "body", table), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(bodyGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "body", table), bodyGroup.firstChild || colHeaderGroup.firstChild || cornerHeaderGroup.firstChild || rowHeaderGroup.firstChild ? (proxy.currentRow = null !== (_d = null !== (_b = null === (_a = bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.rowNumber) && void 0 !== _b ? _b : null === (_c = rowHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.rowNumber) && void 0 !== _d ? _d : proxy.totalRow, proxy.rowEnd = proxy.currentRow, proxy.rowUpdatePos = proxy.rowEnd + 1, proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.currentCol = null !== (_m = null !== (_k = null !== (_h = null !== (_f = null === (_e = bodyGroup.lastChild) || void 0 === _e ? void 0 : _e.col) && void 0 !== _f ? _f : null === (_g = colHeaderGroup.lastChild) || void 0 === _g ? void 0 : _g.col) && void 0 !== _h ? _h : null === (_j = rowHeaderGroup.lastChild) || void 0 === _j ? void 0 : _j.col) && void 0 !== _k ? _k : null === (_l = cornerHeaderGroup.lastChild) || void 0 === _l ? void 0 : _l.col) && void 0 !== _m ? _m : proxy.totalCol, proxy.colEnd = proxy.currentCol, proxy.colUpdatePos = proxy.colEnd + 1, proxy.referenceCol = proxy.colStart + Math.floor((proxy.colEnd - proxy.colStart) / 2), proxy.progress()) : (proxy.currentRow = proxy.totalRow, proxy.rowEnd = proxy.currentRow, proxy.rowUpdatePos = proxy.rowEnd + 1, proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.currentCol = proxy.totalCol, proxy.colEnd = proxy.currentCol, proxy.colUpdatePos = proxy.colEnd + 1, proxy.referenceCol = proxy.colStart + Math.floor((proxy.colEnd - proxy.colStart) / 2));
@@ -37711,20 +37702,20 @@
37711
37702
  distStartRow = "up" === direction ? proxy.rowEnd + 1 : proxy.rowStart - count,
37712
37703
  distEndRow = "up" === direction ? proxy.rowEnd + count : proxy.rowStart - 1;
37713
37704
  let syncTopRow, syncBottomRow;
37714
- if (proxy.table.isAutoRowHeight()) syncTopRow = distStartRow, syncBottomRow = distEndRow;else {
37705
+ if ("autoHeight" === proxy.table.heightMode) syncTopRow = distStartRow, syncBottomRow = distEndRow;else {
37715
37706
  syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1);
37716
37707
  }
37717
37708
  computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updatePartRowPosition(startRow, endRow, direction, proxy), proxy.rowStart = "up" === direction ? proxy.rowStart + count : proxy.rowStart - count, proxy.rowEnd = "up" === direction ? proxy.rowEnd + count : proxy.rowEnd - count;
37718
37709
  const sync = updateRowContent(syncTopRow, syncBottomRow, proxy, !0);
37719
- proxy.table.isAutoRowHeight() && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0)), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight() && sync ? proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, proxy.rowEnd + 1) : proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, distStartRow), proxy.rowUpdateDirection = direction, proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
37710
+ "autoHeight" === proxy.table.heightMode && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0)), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), "autoHeight" === proxy.table.heightMode && sync ? proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, proxy.rowEnd + 1) : proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, distStartRow), proxy.rowUpdateDirection = direction, proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
37720
37711
  } else {
37721
37712
  const distStartRow = "up" === direction ? proxy.rowStart + count : proxy.rowStart - count,
37722
37713
  distEndRow = Math.min(proxy.table.rowCount - 1, "up" === direction ? proxy.rowEnd + count : proxy.rowEnd - count),
37723
37714
  distStartRowY = proxy.table.getRowsHeight(proxy.bodyTopRow, distStartRow - 1);
37724
37715
  let syncTopRow, syncBottomRow;
37725
- proxy.table.isAutoRowHeight() ? (syncTopRow = distStartRow, syncBottomRow = distEndRow) : (syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1)), computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updateAllRowPosition(distStartRowY, count, direction, proxy), proxy.rowStart = distStartRow, proxy.rowEnd = distEndRow;
37716
+ "autoHeight" === proxy.table.heightMode ? (syncTopRow = distStartRow, syncBottomRow = distEndRow) : (syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1)), computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updateAllRowPosition(distStartRowY, count, direction, proxy), proxy.rowStart = distStartRow, proxy.rowEnd = distEndRow;
37726
37717
  const sync = updateRowContent(syncTopRow, syncBottomRow, proxy, !0);
37727
- proxy.table.isAutoRowHeight() && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up")), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight() && sync ? proxy.rowUpdatePos = proxy.rowEnd + 1 : proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
37718
+ "autoHeight" === proxy.table.heightMode && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up")), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), "autoHeight" === proxy.table.heightMode && sync ? proxy.rowUpdatePos = proxy.rowEnd + 1 : proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
37728
37719
  }
37729
37720
  });
37730
37721
  }
@@ -37828,7 +37819,7 @@
37828
37819
  "group" === colGroup.type && (colGroup.needUpdate = !0, null == colGroup || colGroup.forEachChildren(cellGroup => {
37829
37820
  cellGroup.needUpdate = !0;
37830
37821
  }));
37831
- }), proxy.table.isAutoRowHeight() ? (syncTopRow = proxy.rowStart, syncBottomRow = proxy.rowEnd) : (syncTopRow = Math.max(proxy.bodyTopRow, proxy.screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, proxy.screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1));
37822
+ }), "autoHeight" === proxy.table.heightMode ? (syncTopRow = proxy.rowStart, syncBottomRow = proxy.rowEnd) : (syncTopRow = Math.max(proxy.bodyTopRow, proxy.screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, proxy.screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1));
37832
37823
  const oldBodyHeight = proxy.table.getAllRowsHeight();
37833
37824
  computeRowsHeight(proxy.table, syncTopRow, syncBottomRow);
37834
37825
  const newBodyHeight = proxy.table.getAllRowsHeight();
@@ -37850,7 +37841,7 @@
37850
37841
  for (let row = proxy.rowStart; row <= proxy.rowEnd; row++) proxy.table.scenegraph.updateCellContent(col, row);
37851
37842
  for (let row = proxy.table.rowCount - proxy.table.bottomFrozenRowCount; row < proxy.table.rowCount; row++) proxy.table.scenegraph.updateCellContent(col, row);
37852
37843
  }
37853
- updateRowContent(syncTopRow, syncBottomRow, proxy), proxy.table.isAutoRowHeight() && updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), proxy.table.isAutoRowHeight() || (yield proxy.progress());
37844
+ updateRowContent(syncTopRow, syncBottomRow, proxy), "autoHeight" === proxy.table.heightMode && updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), "autoHeight" !== proxy.table.heightMode && (yield proxy.progress());
37854
37845
  });
37855
37846
  }
37856
37847
 
@@ -38143,7 +38134,7 @@
38143
38134
  };
38144
38135
  class SceneProxy {
38145
38136
  constructor(table) {
38146
- this.isRelease = !1, this.mode = "column", this.rowLimit = 200, this.currentRow = 0, this.rowStart = 0, this.rowEnd = 0, this.referenceRow = 0, this.screenTopRow = 0, this.deltaY = 0, this.deltaHeight = 0, this.colLimit = 100, this.screenLeftCol = 0, this.deltaX = 0, this.deltaWidth = 0, this.cellCache = new Map(), this.table = table, this.table.isPivotChart() ? (this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))) : this.table.isAutoRowHeight() ? this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)) : ("autoWidth" === this.table.widthMode || (this.rowLimit = Math.max(200, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight))), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))), this.table.internalProps.transpose ? this.mode = "row" : this.table.isPivotTable() && (this.mode = "pivot"), this.table.options.maintainedDataCount && (this.rowLimit = this.table.options.maintainedDataCount);
38137
+ this.isRelease = !1, this.mode = "column", this.rowLimit = 200, this.currentRow = 0, this.rowStart = 0, this.rowEnd = 0, this.referenceRow = 0, this.screenTopRow = 0, this.deltaY = 0, this.deltaHeight = 0, this.colLimit = 100, this.screenLeftCol = 0, this.deltaX = 0, this.deltaWidth = 0, this.cellCache = new Map(), this.table = table, this.table.isPivotChart() ? (this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))) : "autoHeight" === this.table.heightMode ? this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)) : ("autoWidth" === this.table.widthMode || (this.rowLimit = Math.max(200, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight))), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))), this.table.internalProps.transpose ? this.mode = "row" : this.table.isPivotTable() && (this.mode = "pivot"), this.table.options.maintainedDataCount && (this.rowLimit = this.table.options.maintainedDataCount);
38147
38138
  }
38148
38139
  get bodyLeftCol() {
38149
38140
  return this.table.frozenColCount;
@@ -38279,7 +38270,7 @@
38279
38270
  const yLimitTop = this.table.getRowsHeight(this.bodyTopRow, this.bodyTopRow + (this.rowEnd - this.rowStart + 1)) / 2,
38280
38271
  yLimitBottom = this.table.getAllRowsHeight() - yLimitTop,
38281
38272
  screenTop = this.table.getTargetRowAt(y + this.table.scenegraph.colHeaderGroup.attribute.height);
38282
- screenTop && (this.screenTopRow = screenTop.row), y < yLimitTop && this.rowStart === this.bodyTopRow || y > yLimitBottom && this.rowEnd === this.bodyBottomRow ? (this.updateDeltaY(y), this.updateBody(y - this.deltaY)) : this.table.scenegraph.bodyGroup.firstChild && "group" === this.table.scenegraph.bodyGroup.firstChild.type && 0 !== this.table.scenegraph.bodyGroup.firstChild.childrenCount || this.table.scenegraph.rowHeaderGroup.firstChild && "group" === this.table.scenegraph.rowHeaderGroup.firstChild.type && 0 !== this.table.scenegraph.rowHeaderGroup.firstChild.childrenCount ? this.dynamicSetY(y, screenTop, isEnd) : (this.updateDeltaY(y), this.updateBody(y - this.deltaY));
38273
+ screenTop && (this.screenTopRow = screenTop.row), y < yLimitTop && this.rowStart === this.bodyTopRow || y > yLimitBottom && this.rowEnd === this.bodyBottomRow ? (this.updateDeltaY(y), this.updateBody(y - this.deltaY)) : this.table.scenegraph.bodyGroup.firstChild && 0 !== this.table.scenegraph.bodyGroup.firstChild.childrenCount || this.table.scenegraph.rowHeaderGroup.firstChild && 0 !== this.table.scenegraph.rowHeaderGroup.firstChild.childrenCount ? this.dynamicSetY(y, screenTop, isEnd) : (this.updateDeltaY(y), this.updateBody(y - this.deltaY));
38283
38274
  });
38284
38275
  }
38285
38276
  setX(x) {
@@ -38288,7 +38279,7 @@
38288
38279
  const xLimitLeft = this.table.getColsWidth(this.bodyLeftCol, this.bodyLeftCol + (this.colEnd - this.colStart + 1)) / 2,
38289
38280
  xLimitRight = this.table.getAllColsWidth() - xLimitLeft,
38290
38281
  screenLeft = this.table.getTargetColAt(x + this.table.scenegraph.rowHeaderGroup.attribute.width);
38291
- screenLeft && (this.screenLeftCol = screenLeft.col), x < xLimitLeft && this.colStart === this.bodyLeftCol || x > xLimitRight && this.colEnd === this.bodyRightCol || this.table.scenegraph.bodyGroup.firstChild && "group" === this.table.scenegraph.bodyGroup.firstChild.type && 0 === this.table.scenegraph.bodyGroup.firstChild.childrenCount ? (this.updateDeltaX(x), this.table.scenegraph.setBodyAndColHeaderX(-x + this.deltaX)) : this.dynamicSetX(x, screenLeft, isEnd);
38282
+ screenLeft && (this.screenLeftCol = screenLeft.col), x < xLimitLeft && this.colStart === this.bodyLeftCol || x > xLimitRight && this.colEnd === this.bodyRightCol || this.table.scenegraph.bodyGroup.firstChild && 0 === this.table.scenegraph.bodyGroup.firstChild.childrenCount ? (this.updateDeltaX(x), this.table.scenegraph.setBodyAndColHeaderX(-x + this.deltaX)) : this.dynamicSetX(x, screenLeft, isEnd);
38292
38283
  });
38293
38284
  }
38294
38285
  dynamicSetY(y, screenTop) {
@@ -38313,17 +38304,17 @@
38313
38304
  }
38314
38305
  updateCellGroups(count) {
38315
38306
  const distRow = Math.min(this.bodyBottomRow, this.rowUpdatePos + count);
38316
- this.table.isAutoRowHeight() && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), this.table.isAutoRowHeight() && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
38307
+ "autoHeight" === this.table.heightMode && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
38317
38308
  }
38318
38309
  updateBottomFrozenCellGroups() {
38319
38310
  const startRow = this.table.rowCount - this.table.bottomFrozenRowCount,
38320
38311
  endRow = this.table.rowCount - 1;
38321
- this.table.isAutoRowHeight() && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), this.table.isAutoRowHeight() && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
38312
+ "autoHeight" === this.table.heightMode && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
38322
38313
  }
38323
38314
  updateRightFrozenCellGroups() {
38324
38315
  const startCol = this.table.colCount - this.table.rightFrozenColCount,
38325
38316
  endCol = this.table.colCount - 1;
38326
- "autoWidth" === this.table.widthMode && computeColsWidth(this.table, startCol, endCol, !1), updateColContent(startCol, endCol, this), this.table.isAutoRowHeight() && updateAutoColumn(startCol, endCol, this.table, this.colUpdateDirection);
38317
+ "autoWidth" === this.table.widthMode && computeColsWidth(this.table, startCol, endCol, !1), updateColContent(startCol, endCol, this), "autoHeight" === this.table.heightMode && updateAutoColumn(startCol, endCol, this.table, this.colUpdateDirection);
38327
38318
  }
38328
38319
  updateColCellGroupsAsync() {
38329
38320
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -39032,22 +39023,22 @@
39032
39023
  beforeCell.mergeStartRow && beforeCell.mergeEndRow && beforeCell.mergeEndRow > beforeRow && (addNeedUpdateTag({
39033
39024
  start: {
39034
39025
  row: beforeCell.mergeStartRow,
39035
- col: scene.table.isAutoRowHeight() ? 0 : beforeCell.mergeStartCol
39026
+ col: "autoHeight" === scene.table.heightMode ? 0 : beforeCell.mergeStartCol
39036
39027
  },
39037
39028
  end: {
39038
39029
  row: beforeCell.mergeEndRow,
39039
- col: scene.table.isAutoRowHeight() ? scene.table.colCount - 1 : beforeCell.mergeEndCol
39030
+ col: "autoHeight" === scene.table.heightMode ? scene.table.colCount - 1 : beforeCell.mergeEndCol
39040
39031
  }
39041
39032
  }, scene), row = beforeCell.mergeStartRow);
39042
39033
  const afterCell = scene.highPerformanceGetCell(col, afterRow);
39043
39034
  afterCell.mergeStartRow && afterCell.mergeEndRow && afterCell.mergeStartRow < afterRow && (addNeedUpdateTag({
39044
39035
  start: {
39045
39036
  row: afterCell.mergeStartRow,
39046
- col: scene.table.isAutoRowHeight() ? 0 : afterCell.mergeStartCol
39037
+ col: "autoHeight" === scene.table.heightMode ? 0 : afterCell.mergeStartCol
39047
39038
  },
39048
39039
  end: {
39049
39040
  row: afterCell.mergeEndRow,
39050
- col: scene.table.isAutoRowHeight() ? scene.table.colCount - 1 : afterCell.mergeEndCol
39041
+ col: "autoHeight" === scene.table.heightMode ? scene.table.colCount - 1 : afterCell.mergeEndCol
39051
39042
  }
39052
39043
  }, scene), row = afterCell.mergeStartRow), isValid$1(row) && (updateRow = isValid$1(updateRow) ? Math.min(updateRow, row) : row);
39053
39044
  }
@@ -40651,7 +40642,7 @@
40651
40642
  const addRows = deduplication$1(addCells.map(cell => cell.row)).sort((a, b) => a - b),
40652
40643
  updateRows = deduplication$1(updateCells.map(cell => cell.row)).sort((a, b) => a - b),
40653
40644
  isNotFillHeight = this.table.getAllRowsHeight() - [...addRows, ...updateRows].reduce((tolHeight, rowNumber) => tolHeight + this.table.getRowHeight(rowNumber), 0) <= this.table.tableNoFrameHeight;
40654
- if (updateRow(removeCells, addCells, updateCells, this.table, skipUpdateProxy), recalculateColWidths && this.recalculateColWidths(), "adaptive" === this.table.heightMode || this.table.autoFillHeight && (this.table.getAllRowsHeight() <= this.table.tableNoFrameHeight || isNotFillHeight)) this.table.scenegraph.recalculateRowHeights();else if (this.table.isAutoRowHeight()) for (let i = 0; i < updateRows.length; i++) {
40645
+ if (updateRow(removeCells, addCells, updateCells, this.table, skipUpdateProxy), recalculateColWidths && this.recalculateColWidths(), "adaptive" === this.table.heightMode || this.table.autoFillHeight && (this.table.getAllRowsHeight() <= this.table.tableNoFrameHeight || isNotFillHeight)) this.table.scenegraph.recalculateRowHeights();else if ("autoHeight" === this.table.heightMode) for (let i = 0; i < updateRows.length; i++) {
40655
40646
  const row = updateRows[i],
40656
40647
  oldHeight = this.table.getRowHeight(row),
40657
40648
  newHeight = computeRowHeight(row, 0, this.table.colCount - 1, this.table);
@@ -41553,10 +41544,8 @@
41553
41544
  function setCheckedState(col, row, field, checked, state) {
41554
41545
  const recordIndex = state.table.getRecordShowIndexByCell(col, row);
41555
41546
  if (recordIndex >= 0) {
41556
- const dataIndex = state.table.dataSource.getIndexKey(recordIndex).toString();
41557
- state.checkedState.has(dataIndex) ? state.checkedState.get(dataIndex)[field] = checked : state.checkedState.set(dataIndex, {
41558
- [field]: checked
41559
- });
41547
+ const dataIndex = state.table.dataSource.getIndexKey(recordIndex);
41548
+ state.checkedState[dataIndex] || (state.checkedState[dataIndex] = {}), state.checkedState[dataIndex][field] = checked;
41560
41549
  }
41561
41550
  }
41562
41551
  function setHeaderCheckedState(field, checked, state) {
@@ -41570,23 +41559,21 @@
41570
41559
  if (state.table.isHeader(col, row)) {
41571
41560
  if (isValid$1(state.headerCheckedState[field])) return state.headerCheckedState[field];
41572
41561
  if ("function" == typeof checked) return;
41573
- if (isValid$1(checked)) state.headerCheckedState[field] = checked;else if ((null === (_a = state.checkedState) || void 0 === _a ? void 0 : _a.size) > 0) {
41562
+ if (isValid$1(checked)) state.headerCheckedState[field] = checked;else if ((null === (_a = state.checkedState) || void 0 === _a ? void 0 : _a.length) > 0) {
41574
41563
  return state.updateHeaderCheckedState(field, col, row);
41575
41564
  }
41576
41565
  return state.headerCheckedState[field];
41577
41566
  }
41578
41567
  const recordIndex = state.table.getRecordShowIndexByCell(col, row);
41579
41568
  if (recordIndex >= 0) {
41580
- const dataIndex = state.table.dataSource.getIndexKey(recordIndex).toString();
41581
- if (isValid$1(null === (_b = state.checkedState.get(dataIndex)) || void 0 === _b ? void 0 : _b[field])) return state.checkedState.get(dataIndex)[field];
41582
- state.checkedState.has(dataIndex) ? state.checkedState.get(dataIndex)[field] = checked : state.checkedState.set(dataIndex, {
41583
- [field]: checked
41584
- });
41569
+ const dataIndex = state.table.dataSource.getIndexKey(recordIndex);
41570
+ if (isValid$1(null === (_b = state.checkedState[dataIndex]) || void 0 === _b ? void 0 : _b[field])) return state.checkedState[dataIndex][field];
41571
+ state.checkedState[dataIndex] || (state.checkedState[dataIndex] = {}), state.checkedState[dataIndex][field] = checked;
41585
41572
  }
41586
41573
  return checked;
41587
41574
  }
41588
41575
  function initCheckedState(records, state) {
41589
- state.checkedState.clear(), state.headerCheckedState = {}, state.radioState = {};
41576
+ state.checkedState = [], state.headerCheckedState = {}, state.radioState = {};
41590
41577
  let isNeedInitHeaderCheckedStateFromRecord = !1;
41591
41578
  if (state._checkboxCellTypeFields = [], state._headerCheckFuncs = {}, state.table.internalProps.layoutMap.headerObjects.forEach((hd, index) => {
41592
41579
  if ("checkbox" === hd.headerType) {
@@ -41597,29 +41584,46 @@
41597
41584
  for (let i = 0; i < state.table.leftRowSeriesNumberCount; i++) state.headerCheckedState[`_vtable_rowSeries_number_${i}`] = !1, state._checkboxCellTypeFields.push(`_vtable_rowSeries_number_${i}`);
41598
41585
  isNeedInitHeaderCheckedStateFromRecord = !0;
41599
41586
  }
41600
- isNeedInitHeaderCheckedStateFromRecord && initRecordCheckState(state);
41587
+ isNeedInitHeaderCheckedStateFromRecord && (null == records || records.forEach((record, index) => {
41588
+ state._checkboxCellTypeFields.forEach(field => {
41589
+ const value = record[field];
41590
+ let isChecked;
41591
+ if (isObject$4(value) ? isChecked = value.checked : "boolean" == typeof value && (isChecked = value), null == isChecked) {
41592
+ const headerCheckFunc = state._headerCheckFuncs[field];
41593
+ if (headerCheckFunc) {
41594
+ const cellAddr = state.table.getCellAddrByFieldRecord(field, index);
41595
+ isChecked = getOrApply(headerCheckFunc, {
41596
+ col: cellAddr.col,
41597
+ row: cellAddr.row,
41598
+ table: state.table,
41599
+ context: null,
41600
+ value: value
41601
+ });
41602
+ }
41603
+ }
41604
+ state.checkedState[index] || (state.checkedState[index] = {}), state.checkedState[index][field] = isChecked;
41605
+ });
41606
+ }));
41601
41607
  }
41602
41608
  function updateHeaderCheckedState(field, state, col, row) {
41603
- let allChecked = !0,
41604
- allUnChecked = !0,
41605
- hasChecked = !1;
41606
- return state.checkedState.forEach((check_state, index) => {
41607
- index = index.includes(",") ? index.split(",").map(item => Number(item)) : Number(index);
41608
- const tableIndex = state.table.getTableIndexByRecordIndex(index),
41609
- mergeCell = state.table.transpose ? state.table.getCustomMerge(tableIndex, row) : state.table.getCustomMerge(col, tableIndex),
41610
- data = state.table.dataSource.get(index);
41611
- mergeCell || data.vtableMerge || (!0 !== (null == check_state ? void 0 : check_state[field]) ? allChecked = !1 : (allUnChecked = !1, hasChecked = !0));
41612
- }), allChecked ? (state.headerCheckedState[field] = !0, allChecked) : allUnChecked ? (state.headerCheckedState[field] = !1, !1) : !!hasChecked && (state.headerCheckedState[field] = "indeterminate", "indeterminate");
41609
+ const allChecked = state.checkedState.every((check_state, index) => {
41610
+ const tableIndex = state.table.getTableIndexByRecordIndex(index);
41611
+ return !!(state.table.transpose ? state.table.getCustomMerge(tableIndex, row) : state.table.getCustomMerge(col, tableIndex)) || !0 === (null == check_state ? void 0 : check_state[field]);
41612
+ });
41613
+ if (allChecked) return state.headerCheckedState[field] = !0, allChecked;
41614
+ if (state.checkedState.every((check_state, index) => {
41615
+ const tableIndex = state.table.getTableIndexByRecordIndex(index);
41616
+ return !!(state.table.transpose ? state.table.getCustomMerge(tableIndex, row) : state.table.getCustomMerge(col, tableIndex)) || !1 === (null == check_state ? void 0 : check_state[field]);
41617
+ })) return state.headerCheckedState[field] = !1, !1;
41618
+ return !!state.checkedState.find(check_state => !0 === (null == check_state ? void 0 : check_state[field])) && (state.headerCheckedState[field] = "indeterminate", "indeterminate");
41613
41619
  }
41614
41620
  function initLeftRecordsCheckState(records, state) {
41615
- for (let index = state.checkedState.size; index < records.length; index++) {
41621
+ for (let index = state.checkedState.length; index < records.length; index++) {
41616
41622
  const record = records[index];
41617
41623
  state._checkboxCellTypeFields.forEach(field => {
41618
41624
  const value = record[field];
41619
41625
  let isChecked;
41620
- isObject$4(value) ? isChecked = value.checked : "boolean" == typeof value && (isChecked = value);
41621
- const dataIndex = index.toString();
41622
- state.checkedState.get(dataIndex) || state.checkedState.set(dataIndex, {}), state.checkedState.get(dataIndex)[field] = isChecked;
41626
+ isObject$4(value) ? isChecked = value.checked : "boolean" == typeof value && (isChecked = value), state.checkedState[index] || (state.checkedState[index] = {}), state.checkedState[index][field] = isChecked;
41623
41627
  });
41624
41628
  }
41625
41629
  }
@@ -41652,35 +41656,14 @@
41652
41656
  checkedState: checkedState,
41653
41657
  table: table
41654
41658
  } = state;
41655
- let source, target;
41656
- if (table.internalProps.transpose ? (sourceIndex = table.getRecordShowIndexByCell(sourceIndex, 0), targetIndex = table.getRecordShowIndexByCell(targetIndex, 0)) : (source = table.getRecordIndexByCell(0, sourceIndex), target = table.getRecordIndexByCell(0, targetIndex)), isNumber$2(source) && isNumber$2(target)) {
41657
- if (sourceIndex > targetIndex) {
41658
- const sourceRecord = checkedState.get(sourceIndex.toString());
41659
- for (let i = sourceIndex; i > targetIndex; i--) checkedState.set(i.toString(), checkedState.get((i - 1).toString()));
41660
- checkedState.set(targetIndex.toString(), sourceRecord);
41661
- } else if (sourceIndex < targetIndex) {
41662
- const sourceRecord = checkedState.get(sourceIndex.toString());
41663
- for (let i = sourceIndex; i < targetIndex; i++) checkedState.set(i.toString(), checkedState.get((i + 1).toString()));
41664
- checkedState.set(targetIndex.toString(), sourceRecord);
41665
- }
41666
- } else if (isArray$1(source) && isArray$1(target)) if ((sourceIndex = source[source.length - 1]) > (targetIndex = target[target.length - 1])) {
41667
- const sourceRecord = checkedState.get(source.toString());
41668
- for (let i = sourceIndex; i > targetIndex; i--) {
41669
- const now = [...source];
41670
- now[now.length - 1] = i;
41671
- const last = [...source];
41672
- last[last.length - 1] = i - 1, checkedState.set(now.toString(), checkedState.get(last.toString()));
41673
- }
41674
- checkedState.set(target.toString(), sourceRecord);
41659
+ if (table.internalProps.transpose ? (sourceIndex = table.getRecordShowIndexByCell(sourceIndex, 0), targetIndex = table.getRecordShowIndexByCell(targetIndex, 0)) : (sourceIndex = table.getRecordShowIndexByCell(0, sourceIndex), targetIndex = table.getRecordShowIndexByCell(0, targetIndex)), sourceIndex > targetIndex) {
41660
+ const sourceRecord = checkedState[sourceIndex];
41661
+ for (let i = sourceIndex; i > targetIndex; i--) checkedState[i] = checkedState[i - 1];
41662
+ checkedState[targetIndex] = sourceRecord;
41675
41663
  } else if (sourceIndex < targetIndex) {
41676
- const sourceRecord = checkedState.get(source.toString());
41677
- for (let i = sourceIndex; i < targetIndex; i++) {
41678
- const now = [...source];
41679
- now[now.length - 1] = i;
41680
- const next = [...source];
41681
- next[next.length - 1] = i + 1, checkedState.set(now.toString(), checkedState.get(next.toString()));
41682
- }
41683
- checkedState.set(target.toString(), sourceRecord);
41664
+ const sourceRecord = checkedState[sourceIndex];
41665
+ for (let i = sourceIndex; i < targetIndex; i++) checkedState[i] = checkedState[i + 1];
41666
+ checkedState[targetIndex] = sourceRecord;
41684
41667
  }
41685
41668
  }
41686
41669
  function getGroupCheckboxState(table) {
@@ -41692,37 +41675,10 @@
41692
41675
  const {
41693
41676
  vtableOriginIndex: vtableOriginIndex
41694
41677
  } = dataSource.getRawRecord(indexArr);
41695
- result[vtableOriginIndex] = table.stateManager.checkedState.get(indexArr.toString());
41678
+ result[vtableOriginIndex] = table.stateManager.checkedState[indexArr];
41696
41679
  }
41697
41680
  }), result;
41698
41681
  }
41699
- function initRecordCheckState(state) {
41700
- const table = state.table,
41701
- start = table.internalProps.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount,
41702
- end = table.internalProps.transpose ? table.colCount : table.rowCount;
41703
- for (let index = 0; index + start < end; index++) {
41704
- const record = table.dataSource.get(index);
41705
- state._checkboxCellTypeFields.forEach(field => {
41706
- const value = record[field];
41707
- let isChecked;
41708
- if (isObject$4(value) ? isChecked = value.checked : "boolean" == typeof value && (isChecked = value), null == isChecked) {
41709
- const headerCheckFunc = state._headerCheckFuncs[field];
41710
- if (headerCheckFunc) {
41711
- const cellAddr = state.table.getCellAddrByFieldRecord(field, index);
41712
- isChecked = getOrApply(headerCheckFunc, {
41713
- col: cellAddr.col,
41714
- row: cellAddr.row,
41715
- table: state.table,
41716
- context: null,
41717
- value: value
41718
- });
41719
- }
41720
- }
41721
- const dataIndex = state.table.dataSource.getIndexKey(index).toString();
41722
- state.checkedState.get(dataIndex) || state.checkedState.set(dataIndex, {}), state.checkedState.get(dataIndex)[field] = isChecked;
41723
- });
41724
- }
41725
- }
41726
41682
 
41727
41683
  function updateResizeRow(xInTable, yInTable, state) {
41728
41684
  xInTable = Math.ceil(xInTable), yInTable = Math.ceil(yInTable);
@@ -41810,7 +41766,7 @@
41810
41766
 
41811
41767
  class StateManager {
41812
41768
  constructor(table) {
41813
- this.fastScrolling = !1, this.checkedState = new Map(), this.headerCheckedState = {}, this._checkboxCellTypeFields = [], this._headerCheckFuncs = {}, this.radioState = {}, this.resetInteractionState = debounce(state => {
41769
+ this.fastScrolling = !1, this.checkedState = [], this.headerCheckedState = {}, this._checkboxCellTypeFields = [], this._headerCheckFuncs = {}, this.radioState = {}, this.resetInteractionState = debounce(state => {
41814
41770
  this.updateInteractionState(null != state ? state : InteractionState.default);
41815
41771
  }, 100), this.table = table, this.initState(), this.updateVerticalScrollBar = this.updateVerticalScrollBar.bind(this), this.updateHorizontalScrollBar = this.updateHorizontalScrollBar.bind(this);
41816
41772
  }
@@ -42490,7 +42446,7 @@
42490
42446
  return syncRadioState(col, row, field, radioType, indexInCell, isChecked, this);
42491
42447
  }
42492
42448
  changeCheckboxAndRadioOrder(sourceIndex, targetIndex) {
42493
- this.checkedState.size && changeCheckboxOrder(sourceIndex, targetIndex, this), this.radioState.length && changeRadioOrder(sourceIndex, targetIndex, this);
42449
+ this.checkedState.length && changeCheckboxOrder(sourceIndex, targetIndex, this), this.radioState.length && changeRadioOrder(sourceIndex, targetIndex, this);
42494
42450
  }
42495
42451
  setCustomSelectRanges(customSelectRanges) {
42496
42452
  deletaCustomSelectRanges(this), addCustomSelectRanges(customSelectRanges, this);
@@ -42515,12 +42471,11 @@
42515
42471
  linkDetect = !1 !== columnDefine.linkDetect;
42516
42472
  let url;
42517
42473
  if (templateLink) {
42518
- const rowData = table.getCellOriginRecord(col, row);
42519
- if (rowData.vtableMerge) return;
42520
- const data = Object.assign({
42521
- __value: cellValue,
42522
- __dataValue: cellOriginValue
42523
- }, rowData);
42474
+ const rowData = table.getCellOriginRecord(col, row),
42475
+ data = Object.assign({
42476
+ __value: cellValue,
42477
+ __dataValue: cellOriginValue
42478
+ }, rowData);
42524
42479
  if (isFunction$1(templateLink)) url = templateLink(data, col, row, table);else {
42525
42480
  const re = /\{\s*(\S+?)\s*\}/g;
42526
42481
  url = templateLink.replace(re, (matchs, key) => data[key]);
@@ -42529,7 +42484,6 @@
42529
42484
  if (!regUrl.test(cellValue)) return;
42530
42485
  url = cellValue;
42531
42486
  } else url = cellValue;
42532
- if (!url) return;
42533
42487
  const linkTarget = columnDefine.linkTarget,
42534
42488
  linkWindowFeatures = columnDefine.linkWindowFeatures;
42535
42489
  window.open(url, linkTarget, linkWindowFeatures);
@@ -43125,7 +43079,7 @@
43125
43079
  table.fireListeners(TABLE_EVENT_TYPE.RADIO_STATE_CHANGE, cellsEvent), table.scenegraph.updateNextFrame();
43126
43080
  }), table.scenegraph.stage.addEventListener("wheel", e => {
43127
43081
  var _a;
43128
- e.path.find(node => "legend" === node.name) || (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit(), table.eventManager._enableTableScroll && handleWhell(e, stateManager));
43082
+ e.path.find(node => "table" === node.role) && (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit(), table.eventManager._enableTableScroll && handleWhell(e, stateManager));
43129
43083
  });
43130
43084
  }
43131
43085
  function bindGesture(eventManager) {
@@ -45544,13 +45498,15 @@
45544
45498
  })(candCol, right);
45545
45499
  }
45546
45500
  function getTargetRowAt(absoluteY, _this) {
45501
+ var _a;
45547
45502
  if (0 === absoluteY) return {
45548
45503
  top: 0,
45549
45504
  row: 0,
45550
45505
  bottom: 0,
45551
45506
  height: 0
45552
45507
  };
45553
- const candRow = computeTargetRowByY(absoluteY, _this),
45508
+ const floorOrRound = !0 === (null === (_a = _this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? Math.floor : Math.round,
45509
+ candRow = computeTargetRowByY(absoluteY, _this),
45554
45510
  bottom = _this.getRowsHeight(0, candRow);
45555
45511
  return absoluteY >= bottom ? ((startRow, startBottom) => {
45556
45512
  let top = startBottom - _this.getRowHeight(startRow);
@@ -45560,7 +45516,7 @@
45560
45516
  for (let row = startRow; row < rowCount; row++) {
45561
45517
  const height = _this.getRowHeight(row),
45562
45518
  bottom = top + height;
45563
- if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
45519
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
45564
45520
  top: top,
45565
45521
  row: row,
45566
45522
  bottom: bottom,
@@ -45574,7 +45530,7 @@
45574
45530
  for (let row = startRow; row >= 0; row--) {
45575
45531
  const height = _this.getRowHeight(row),
45576
45532
  top = bottom - height;
45577
- if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
45533
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
45578
45534
  top: top,
45579
45535
  row: row,
45580
45536
  bottom: bottom,
@@ -45836,25 +45792,6 @@
45836
45792
  };
45837
45793
  }
45838
45794
 
45839
- function getZeroAlignTickAlignTicks(targetRange, col, row, index, position, layout) {
45840
- const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
45841
- {
45842
- axisOption: axisOption,
45843
- isZeroAlign: isZeroAlign
45844
- } = getAxisOption(col, row, 0 === index ? "right" : "left", layout),
45845
- {
45846
- ticks: ticks
45847
- } = getAxisDomainRangeAndLabels(targetRange.min, targetRange.max, axisOption, isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight);
45848
- return ticks;
45849
- }
45850
- function getTickModeFunction(targetTicks, targetRange, range, indicatorIndex) {
45851
- return 0 !== indicatorIndex && targetTicks ? () => targetTicks.map(value => {
45852
- const percent = (value - targetRange.min) / (targetRange.max - targetRange.min),
45853
- tick = (range.max - range.min) * percent + range.min;
45854
- return Math.round(100 * tick) / 100;
45855
- }) : void 0;
45856
- }
45857
-
45858
45795
  function getAxisConfigInPivotChart(col, row, layout) {
45859
45796
  var _a, _b, _c, _d, _e, _f, _g;
45860
45797
  if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
@@ -45867,11 +45804,19 @@
45867
45804
  range: range,
45868
45805
  ticks: ticks,
45869
45806
  axisOption: axisOption,
45870
- targetTicks: targetTicks,
45871
- targetRange: targetRange,
45872
- index: index,
45807
+ isZeroAlign: isZeroAlign,
45873
45808
  theme: theme
45874
45809
  } = axisRange;
45810
+ if (isZeroAlign) {
45811
+ const subAxisRange = getRange("bottom", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 0, layout);
45812
+ if (subAxisRange) {
45813
+ const {
45814
+ range: subRange
45815
+ } = subAxisRange,
45816
+ align = getNewRangeToAlign(range, subRange);
45817
+ align && (range.min = align.range1[0], range.max = align.range1[1]);
45818
+ }
45819
+ }
45875
45820
  return isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge({
45876
45821
  range: range
45877
45822
  }, axisOption, {
@@ -45880,16 +45825,13 @@
45880
45825
  label: {
45881
45826
  flush: !0
45882
45827
  },
45883
- tick: {
45884
- tickMode: getTickModeFunction(targetTicks, targetRange, range, index)
45885
- },
45886
45828
  __ticksForVTable: ticks,
45887
45829
  __vtableChartTheme: theme,
45888
45830
  __vtablePadding: padding
45889
45831
  });
45890
45832
  }
45891
45833
  if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
45892
- const indicatorKeys = layout.getIndicatorKeyInChartSpec(col, row);
45834
+ const indicatorKeys = layout.getIndicatorKeyInChartSpec(col, row).slice(0, 2);
45893
45835
  let indicatorInfo = null;
45894
45836
  null == indicatorKeys || indicatorKeys.forEach(key => {
45895
45837
  const info = layout.getIndicatorInfo(key);
@@ -45903,11 +45845,19 @@
45903
45845
  range: range,
45904
45846
  ticks: ticks,
45905
45847
  axisOption: axisOption,
45906
- index: index,
45907
- targetTicks: targetTicks,
45908
- targetRange: targetRange,
45848
+ isZeroAlign: isZeroAlign,
45909
45849
  theme: theme
45910
45850
  } = axisRange;
45851
+ if (isZeroAlign) {
45852
+ const subAxisRange = getRange("top", col, row - 1, col, row, col, row, 1, layout);
45853
+ if (subAxisRange) {
45854
+ const {
45855
+ range: subRange
45856
+ } = subAxisRange,
45857
+ align = getNewRangeToAlign(range, subRange);
45858
+ align && (range.min = align.range1[0], range.max = align.range1[1]);
45859
+ }
45860
+ }
45911
45861
  return isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge({
45912
45862
  title: {
45913
45863
  visible: !0,
@@ -45920,9 +45870,6 @@
45920
45870
  label: {
45921
45871
  flush: !0
45922
45872
  },
45923
- tick: {
45924
- tickMode: getTickModeFunction(targetTicks, targetRange, range, index)
45925
- },
45926
45873
  __ticksForVTable: ticks,
45927
45874
  __vtableChartTheme: theme,
45928
45875
  __vtablePadding: padding
@@ -45959,7 +45906,7 @@
45959
45906
  }
45960
45907
  } else {
45961
45908
  if (col === layout.rowHeaderLevelCount - 1 && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
45962
- const indicatorKeys = layout.getIndicatorKeyInChartSpec(col, row);
45909
+ const indicatorKeys = layout.getIndicatorKeyInChartSpec(col, row).slice(0, 2);
45963
45910
  let indicatorInfo = null;
45964
45911
  null == indicatorKeys || indicatorKeys.forEach(key => {
45965
45912
  const info = layout.getIndicatorInfo(key);
@@ -45973,11 +45920,19 @@
45973
45920
  range: range,
45974
45921
  ticks: ticks,
45975
45922
  axisOption: axisOption,
45976
- index: index,
45977
- targetTicks: targetTicks,
45978
- targetRange: targetRange,
45923
+ isZeroAlign: isZeroAlign,
45979
45924
  theme: theme
45980
45925
  } = axisRange;
45926
+ if (isZeroAlign) {
45927
+ const subAxisRange = getRange("right", col + 1, row, col, row, col, row, 1, layout);
45928
+ if (subAxisRange) {
45929
+ const {
45930
+ range: subRange
45931
+ } = subAxisRange,
45932
+ align = getNewRangeToAlign(range, subRange);
45933
+ align && (range.min = align.range1[0], range.max = align.range1[1]);
45934
+ }
45935
+ }
45981
45936
  return isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge({
45982
45937
  title: {
45983
45938
  visible: !0,
@@ -45991,9 +45946,6 @@
45991
45946
  label: {
45992
45947
  flush: !0
45993
45948
  },
45994
- tick: {
45995
- tickMode: getTickModeFunction(targetTicks, targetRange, range, index)
45996
- },
45997
45949
  __ticksForVTable: ticks,
45998
45950
  __vtableChartTheme: theme,
45999
45951
  __vtablePadding: padding
@@ -46008,11 +45960,19 @@
46008
45960
  range: range,
46009
45961
  ticks: ticks,
46010
45962
  axisOption: axisOption,
46011
- index: index,
46012
- targetTicks: targetTicks,
46013
- targetRange: targetRange,
45963
+ isZeroAlign: isZeroAlign,
46014
45964
  theme: theme
46015
45965
  } = axisRange;
45966
+ if (isZeroAlign) {
45967
+ const subAxisRange = getRange("left", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 0, layout);
45968
+ if (subAxisRange) {
45969
+ const {
45970
+ range: subRange
45971
+ } = subAxisRange,
45972
+ align = getNewRangeToAlign(range, subRange);
45973
+ align && (range.min = align.range1[0], range.max = align.range1[1]);
45974
+ }
45975
+ }
46016
45976
  return isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge({
46017
45977
  range: range,
46018
45978
  title: {
@@ -46024,9 +45984,6 @@
46024
45984
  label: {
46025
45985
  flush: !0
46026
45986
  },
46027
- tick: {
46028
- tickMode: getTickModeFunction(targetTicks, targetRange, range, index)
46029
- },
46030
45987
  __ticksForVTable: ticks,
46031
45988
  __vtableChartTheme: theme,
46032
45989
  __vtablePadding: padding
@@ -46073,35 +46030,23 @@
46073
46030
  seriesId: seriesId
46074
46031
  } = axisOption;
46075
46032
  let seriesIndice, seriesSpec;
46076
- isValid$1(seriesId) && isArray$1(spec.series) ? seriesIndice = (isArray$1(seriesId) ? seriesId : [seriesId]).map(id => {
46033
+ return isValid$1(seriesId) && isArray$1(spec.series) ? seriesIndice = (isArray$1(seriesId) ? seriesId : [seriesId]).map(id => {
46077
46034
  const index = spec.series.findIndex(s => s.id === id);
46078
46035
  return index >= 0 && (seriesSpec = spec.series[index]), index;
46079
- }) : isValid$1(seriesIndex) && isArray$1(spec.series) && (seriesIndice = seriesIndex);
46080
- const {
46081
- isZeroAlign: isZeroAlign,
46082
- isTickAlign: isTickAlign
46083
- } = checkZeroAlign(spec, orient, layout);
46084
- return {
46036
+ }) : isValid$1(seriesIndex) && isArray$1(spec.series) && (seriesIndice = seriesIndex), {
46085
46037
  axisOption: axisOption,
46086
46038
  isPercent: spec.percent,
46087
- isZeroAlign: isZeroAlign,
46088
- isTickAlign: isTickAlign,
46039
+ isZeroAlign: checkZeroAlign(spec, orient, layout),
46089
46040
  seriesIndice: seriesIndice,
46090
46041
  theme: spec.theme,
46091
46042
  chartType: null !== (_b = null == seriesSpec ? void 0 : seriesSpec.type) && void 0 !== _b ? _b : spec.type
46092
46043
  };
46093
46044
  }
46094
46045
  }
46095
- const axisOption = layout._table.pivotChartAxes.find(axisOption => axisOption.orient === orient),
46096
- {
46097
- isZeroAlign: isZeroAlign,
46098
- isTickAlign: isTickAlign
46099
- } = checkZeroAlign(spec, orient, layout);
46100
46046
  return {
46101
- axisOption: axisOption,
46047
+ axisOption: layout._table.pivotChartAxes.find(axisOption => axisOption.orient === orient),
46102
46048
  isPercent: !1,
46103
- isZeroAlign: isZeroAlign,
46104
- isTickAlign: isTickAlign,
46049
+ isZeroAlign: checkZeroAlign(spec, orient, layout),
46105
46050
  theme: spec.theme,
46106
46051
  chartType: spec.type
46107
46052
  };
@@ -46109,23 +46054,17 @@
46109
46054
  function checkZeroAlign(spec, orient, layout) {
46110
46055
  const orients = [];
46111
46056
  let axesSpec;
46112
- "left" === orient || "right" === orient ? orients.push("left", "right") : "top" !== orient && "bottom" !== orient || orients.push("top", "bottom"), axesSpec = spec && isArray$1(spec.axes) ? spec.axes : layout._table.pivotChartAxes;
46113
- let isZeroAlign = !1,
46114
- isTickAlign = !1;
46115
- if (isArray$1(axesSpec)) {
46057
+ if ("left" === orient || "right" === orient ? orients.push("left", "right") : "top" !== orient && "bottom" !== orient || orients.push("top", "bottom"), axesSpec = spec && isArray$1(spec.axes) ? spec.axes : layout._table.pivotChartAxes, isArray$1(axesSpec)) {
46116
46058
  const axes = [];
46117
46059
  axesSpec.forEach(axis => {
46118
46060
  orients.includes(axis.orient) && axes.push(axis);
46119
46061
  });
46120
46062
  for (let i = 0; i < axes.length; i++) {
46121
46063
  const axis = axes[i];
46122
- axis.sync && axis.sync.axisId && axes.find(axisSync => axisSync.id === axis.sync.axisId) && (isZeroAlign = isZeroAlign || axis.sync.zeroAlign, isTickAlign = isTickAlign || axis.sync.tickAlign);
46064
+ if (axis.sync && axis.sync.zeroAlign && axis.sync.axisId && axes.find(axisSync => axisSync.id === axis.sync.axisId)) return !0;
46123
46065
  }
46124
46066
  }
46125
- return {
46126
- isZeroAlign: isZeroAlign,
46127
- isTickAlign: isTickAlign
46128
- };
46067
+ return !1;
46129
46068
  }
46130
46069
  function getAxisRange(collectedValues, indicatorKeys, isZeroAlign, colPath, seriesId) {
46131
46070
  var _a;
@@ -46149,6 +46088,36 @@
46149
46088
  });
46150
46089
  return range.positiveMax && range.positiveMax > range.max && (range.max = range.positiveMax), range.negativeMin && range.negativeMin < range.min && (range.min = range.negativeMin), range.min === range.max && (range.min > 0 ? range.min = 0 : range.max = 0), range;
46151
46090
  }
46091
+ function getRange(position, colForAxisOption, rowForAxisOption, colForIndicatorKey, rowForIndicatorKey, col, row, defaultSeriesIndice, layout) {
46092
+ const {
46093
+ axisOption: axisOption,
46094
+ isPercent: isPercent,
46095
+ isZeroAlign: isZeroAlign,
46096
+ seriesIndice: seriesIndice,
46097
+ theme: theme,
46098
+ chartType: chartType
46099
+ } = getAxisOption(colForAxisOption, rowForAxisOption, position, layout);
46100
+ if (!1 === (null == axisOption ? void 0 : axisOption.visible)) return;
46101
+ const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey, rowForIndicatorKey).slice(0, 2);
46102
+ let path;
46103
+ path = "top" === position || "bottom" === position ? layout.getColKeysPath(col, row) : layout.getRowKeysPath(col, row);
46104
+ const range = getAxisRange(layout.dataset.collectedValues, indicatorKeys, isZeroAlign, path, null != seriesIndice ? seriesIndice : defaultSeriesIndice);
46105
+ if (!range) return;
46106
+ isPercent && (range.min = range.min < 0 ? -1 : 0, range.max = range.max > 0 ? 1 : 0);
46107
+ const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
46108
+ {
46109
+ range: niceRange,
46110
+ ticks: ticks
46111
+ } = getAxisDomainRangeAndLabels(range.min, range.max, axisOption, isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight);
46112
+ return range.min = isNaN(niceRange[0]) ? 0 : niceRange[0], range.max = isNaN(niceRange[1]) ? 1 : niceRange[1], isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), {
46113
+ axisOption: axisOption,
46114
+ isZeroAlign: isZeroAlign,
46115
+ range: range,
46116
+ ticks: ticks,
46117
+ theme: theme,
46118
+ chartType: chartType
46119
+ };
46120
+ }
46152
46121
  function isTopOrBottomAxis(col, row, layout) {
46153
46122
  if (!layout._table.isPivotChart()) return !1;
46154
46123
  if (layout.indicatorsAsCol) {
@@ -46178,85 +46147,6 @@
46178
46147
  !function (Direction) {
46179
46148
  Direction.vertical = "vertical", Direction.horizontal = "horizontal";
46180
46149
  }(Direction || (Direction = {}));
46181
- function getRange(position, colForAxisOption, rowForAxisOption, colForIndicatorKey, rowForIndicatorKey, col, row, defaultSeriesIndice, layout) {
46182
- const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey, rowForIndicatorKey);
46183
- let path;
46184
- path = "top" === position || "bottom" === position ? layout.getColKeysPath(col, row) : layout.getRowKeysPath(col, row);
46185
- const rangeConfig = getChartAxisRange(colForAxisOption, rowForAxisOption, defaultSeriesIndice, position, indicatorKeys, path, layout);
46186
- if (!rangeConfig) return;
46187
- const subAxisPosition = "bottom" === position ? "top" : "top" === position ? "bottom" : "left" === position ? "right" : "left",
46188
- {
46189
- targetRange: targetRange,
46190
- targetTicks: targetTicks
46191
- } = getTargetRangeAndTicks(colForAxisOption, rowForAxisOption, rangeConfig.index, rangeConfig.isZeroAlign, rangeConfig.isTickAlign, rangeConfig.range, indicatorKeys, subAxisPosition, path, layout);
46192
- if (0 !== rangeConfig.index && targetTicks) {
46193
- const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
46194
- {
46195
- range: newRange,
46196
- ticks: newTicks
46197
- } = getAxisDomainRangeAndLabels(rangeConfig.range.min, rangeConfig.range.max, rangeConfig.axisOption, rangeConfig.isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight, {
46198
- targetTicks: targetTicks,
46199
- targetRange: targetRange
46200
- });
46201
- rangeConfig.range.min = newRange[0], rangeConfig.range.max = newRange[1], rangeConfig.ticks = newTicks;
46202
- }
46203
- return rangeConfig.targetRange = targetRange, rangeConfig.targetTicks = targetTicks, rangeConfig;
46204
- }
46205
- function getChartAxisRange(col, row, index, position, indicatorKeys, path, layout) {
46206
- const {
46207
- axisOption: axisOption,
46208
- isPercent: isPercent,
46209
- isZeroAlign: isZeroAlign,
46210
- isTickAlign: isTickAlign,
46211
- seriesIndice: seriesIndice,
46212
- theme: theme,
46213
- chartType: chartType
46214
- } = getAxisOption(col, row, position, layout),
46215
- range = getAxisRange(layout.dataset.collectedValues, indicatorKeys, isZeroAlign, path, null != seriesIndice ? seriesIndice : index);
46216
- if (!range) return;
46217
- let ticks;
46218
- if (isPercent && (range.min = range.min < 0 ? -1 : 0, range.max = range.max > 0 ? 1 : 0), ((null == axisOption ? void 0 : axisOption.zero) || range.min === range.max) && (range.min = Math.min(range.min, 0), range.max = Math.max(range.max, 0)), (null == axisOption ? void 0 : axisOption.nice) || isTickAlign) {
46219
- const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
46220
- {
46221
- range: axisRange,
46222
- ticks: selfTicks
46223
- } = getAxisDomainRangeAndLabels(range.min, range.max, axisOption, isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight);
46224
- (null == axisOption ? void 0 : axisOption.nice) && (range.min = axisRange[0], range.max = axisRange[1]), ticks = selfTicks;
46225
- }
46226
- return isNumber$2(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max), {
46227
- index: null != seriesIndice ? seriesIndice : index,
46228
- range: range,
46229
- ticks: ticks,
46230
- isZeroAlign: isZeroAlign,
46231
- isTickAlign: isTickAlign,
46232
- axisOption: axisOption,
46233
- theme: theme,
46234
- chartType: chartType
46235
- };
46236
- }
46237
- function getTargetRangeAndTicks(col, row, index, isZeroAlign, isTickAlign, range, indicatorKeys, subAxisPosition, path, layout) {
46238
- let targetTicks, targetRange;
46239
- if (!isZeroAlign && !isTickAlign) return {
46240
- targetTicks: targetTicks,
46241
- targetRange: targetRange
46242
- };
46243
- const subAxisRange = getChartAxisRange(col, row, indicatorKeys.length - 1 - index, subAxisPosition, indicatorKeys, path, layout);
46244
- if (subAxisRange) {
46245
- const {
46246
- range: subRange,
46247
- ticks: subTicks
46248
- } = subAxisRange;
46249
- if (targetRange = subRange, isZeroAlign) {
46250
- const align = getNewRangeToAlign(range, subRange);
46251
- align && (range.min = align.range1[0], range.max = align.range1[1], targetRange.min = align.range2[0], targetRange.max = align.range2[1]);
46252
- }
46253
- isTickAlign && (targetTicks = isZeroAlign ? getZeroAlignTickAlignTicks(targetRange, col, row, index, subAxisPosition, layout) : subTicks);
46254
- }
46255
- return {
46256
- targetTicks: targetTicks,
46257
- targetRange: targetRange
46258
- };
46259
- }
46260
46150
 
46261
46151
  class CustomCellStylePlugin {
46262
46152
  constructor(table, customCellStyle, customCellStyleArrangement) {
@@ -46341,7 +46231,7 @@
46341
46231
  cacheStyle = cacheStyle.clone();
46342
46232
  for (const key in customCellStyle) {
46343
46233
  const value = customCellStyle[key];
46344
- isValid$1(value) && (cacheStyle[`_${key}`] = value);
46234
+ value && (cacheStyle[`_${key}`] = value);
46345
46235
  }
46346
46236
  return cacheStyle;
46347
46237
  }
@@ -46484,7 +46374,7 @@
46484
46374
  constructor(container) {
46485
46375
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46486
46376
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46487
- if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.6", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46377
+ if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.7", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46488
46378
  const {
46489
46379
  frozenColCount = 0,
46490
46380
  frozenRowCount: frozenRowCount,
@@ -46789,13 +46679,15 @@
46789
46679
  heightWithoutPadding = 0;
46790
46680
  if (this.canvasSizeSeted) widthWithoutPadding = this.canvasWidth, heightWithoutPadding = this.canvasHeight;else if (element.parentElement) {
46791
46681
  const computedStyle = element.parentElement.style || window.getComputedStyle(element.parentElement);
46792
- widthWithoutPadding = element.parentElement.offsetWidth - parseInt(computedStyle.paddingLeft || "0px", 10) - parseInt(computedStyle.paddingRight || "0px", 10), heightWithoutPadding = element.parentElement.offsetHeight - parseInt(computedStyle.paddingTop || "0px", 10) - parseInt(computedStyle.paddingBottom || "0px", 20), widthWithoutPadding = (null != widthWithoutPadding ? widthWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightWithoutPadding = (null != heightWithoutPadding ? heightWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
46682
+ widthWithoutPadding = element.parentElement.offsetWidth - parseInt(computedStyle.paddingLeft || "0px", 10) - parseInt(computedStyle.paddingRight || "0px", 10), heightWithoutPadding = element.parentElement.offsetHeight - parseInt(computedStyle.paddingTop || "0px", 10) - parseInt(computedStyle.paddingBottom || "0px", 20);
46793
46683
  }
46794
- element.style.width = widthWithoutPadding && widthWithoutPadding - padding.left - padding.right + "px" || "0px", element.style.height = heightWithoutPadding && heightWithoutPadding - padding.top - padding.bottom + "px" || "0px";
46684
+ const width1 = null != widthWithoutPadding ? widthWithoutPadding : 0,
46685
+ height1 = null != heightWithoutPadding ? heightWithoutPadding : 0;
46686
+ element.style.width = width1 && width1 - padding.left - padding.right + "px" || "0px", element.style.height = height1 && height1 - padding.top - padding.bottom + "px" || "0px";
46795
46687
  const {
46796
46688
  canvas: canvas
46797
46689
  } = this.internalProps;
46798
- widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`);
46690
+ widthP = null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 0, heightP = null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 0, (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`);
46799
46691
  } else "node" === Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
46800
46692
  const width = Math.floor(widthP - getVerticalScrollBarSize(this.getTheme().scrollStyle)),
46801
46693
  height = Math.floor(heightP - getHorizontalScrollBarSize(this.getTheme().scrollStyle));
@@ -46868,7 +46760,7 @@
46868
46760
  startRow = Math.max(startRow, 0), endRow = Math.min(endRow, (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 1 / 0) - 1);
46869
46761
  let h = 0;
46870
46762
  const isDefaultRowHeightIsAuto = "auto" === this.options.defaultRowHeight;
46871
- if ("standard" !== this.heightMode || this.options.customComputeRowHeight || this.autoFillHeight || !this.internalProps.layoutMap || this.hasAutoImageColumn() || isDefaultRowHeightIsAuto || 0 !== this.internalProps._heightResizedRowMap.size) {
46763
+ if ("standard" !== this.heightMode || this.autoFillHeight || !this.internalProps.layoutMap || this.hasAutoImageColumn() || isDefaultRowHeightIsAuto || 0 !== this.internalProps._heightResizedRowMap.size) {
46872
46764
  if (null === (_b = this.options.customConfig) || void 0 === _b ? void 0 : _b._disableColumnAndRowSizeRound) {
46873
46765
  const tempH = this.rowHeightsMap.getSumInRange(startRow, endRow);
46874
46766
  let heightRange;
@@ -46898,7 +46790,7 @@
46898
46790
  return this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
46899
46791
  }
46900
46792
  isAutoRowHeight(row) {
46901
- return "autoHeight" === this.heightMode || !!this.options.customComputeRowHeight || row >= 0 && row < this.columnHeaderLevelCount && "auto" === this.getDefaultRowHeight(row);
46793
+ return "autoHeight" === this.heightMode || row >= 0 && row < this.columnHeaderLevelCount && "auto" === this.getDefaultRowHeight(row);
46902
46794
  }
46903
46795
  getColWidth(col) {
46904
46796
  var _a;
@@ -48857,34 +48749,14 @@
48857
48749
  const last_Value = layout._table.getCellValue(col, r);
48858
48750
  if ("boolean" == typeof layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell) {
48859
48751
  if (value !== last_Value) break;
48860
- } else if (!layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell(value, last_Value, {
48861
- source: {
48862
- col: col,
48863
- row: row
48864
- },
48865
- target: {
48866
- col: col,
48867
- row: r
48868
- },
48869
- table: layout._table
48870
- })) break;
48752
+ } else if (!layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell(value, last_Value)) break;
48871
48753
  cellRange.start.row = r;
48872
48754
  }
48873
48755
  for (let r = row + 1; r < layout.rowCount; r++) {
48874
48756
  const next_Value = layout._table.getCellValue(col, r);
48875
48757
  if ("boolean" == typeof layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell) {
48876
48758
  if (value !== next_Value) break;
48877
- } else if (!layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell(value, next_Value, {
48878
- source: {
48879
- col: col,
48880
- row: row
48881
- },
48882
- target: {
48883
- col: col,
48884
- row: r
48885
- },
48886
- table: layout._table
48887
- })) break;
48759
+ } else if (!layout.columnObjects[col - layout.leftRowSeriesNumberColumnCount].define.mergeCell(value, next_Value)) break;
48888
48760
  cellRange.end.row = r;
48889
48761
  }
48890
48762
  }
@@ -48922,34 +48794,14 @@
48922
48794
  const last_Value = layout._table.getCellValue(c, row);
48923
48795
  if ("boolean" == typeof layout.columnObjects[row].define.mergeCell) {
48924
48796
  if (value !== last_Value) break;
48925
- } else if (!layout.columnObjects[row].define.mergeCell(value, last_Value, {
48926
- source: {
48927
- col: col,
48928
- row: row
48929
- },
48930
- target: {
48931
- col: c,
48932
- row: row
48933
- },
48934
- table: layout._table
48935
- })) break;
48797
+ } else if (!layout.columnObjects[row].define.mergeCell(value, last_Value)) break;
48936
48798
  result.start.col = c;
48937
48799
  }
48938
48800
  for (let c = col + 1; c < (null !== (_c = layout.colCount) && void 0 !== _c ? _c : 0); c++) {
48939
48801
  const next_Value = layout._table.getCellValue(c, row);
48940
48802
  if ("boolean" == typeof layout.columnObjects[row].define.mergeCell) {
48941
48803
  if (value !== next_Value) break;
48942
- } else if (!layout.columnObjects[row].define.mergeCell(value, next_Value, {
48943
- source: {
48944
- col: col,
48945
- row: row
48946
- },
48947
- target: {
48948
- col: c,
48949
- row: row
48950
- },
48951
- table: layout._table
48952
- })) break;
48804
+ } else if (!layout.columnObjects[row].define.mergeCell(value, next_Value)) break;
48953
48805
  result.end.col = c;
48954
48806
  }
48955
48807
  }
@@ -49781,14 +49633,15 @@
49781
49633
  if (editor.targetIsOnEditor(target)) return !1;
49782
49634
  } else if (!editor.isEditorElement || editor.isEditorElement(target)) return !1;
49783
49635
  if (this.editingEditor.getValue, this.editingEditor.validateValue) {
49636
+ this.isValidatingValue = !0;
49784
49637
  const maybePromiseOrValue = null === (_b = (_a = this.editingEditor).validateValue) || void 0 === _b ? void 0 : _b.call(_a);
49785
- return isPromise(maybePromiseOrValue) ? (this.isValidatingValue = !0, new Promise((resolve, reject) => {
49638
+ return isPromise(maybePromiseOrValue) ? new Promise((resolve, reject) => {
49786
49639
  maybePromiseOrValue.then(result => {
49787
49640
  result ? (this.doExit(), resolve(!0)) : (this.isValidatingValue = !1, resolve(!1));
49788
49641
  }).catch(err => {
49789
49642
  this.isValidatingValue = !1, reject(err);
49790
49643
  });
49791
- })) : !!maybePromiseOrValue && (this.doExit(), !0);
49644
+ }) : !!maybePromiseOrValue && (this.doExit(), !0);
49792
49645
  }
49793
49646
  return this.doExit(), !0;
49794
49647
  }
@@ -49847,7 +49700,7 @@
49847
49700
  newWidth = computeColWidth(col, 0, table.rowCount - 1, table, !1);
49848
49701
  newWidth !== oldWidth && table.scenegraph.updateColWidth(col, newWidth - oldWidth);
49849
49702
  }
49850
- if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) 0 === table.internalProps._heightResizedRowMap.size && table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight() && !table.internalProps._heightResizedRowMap.has(row)) {
49703
+ if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) 0 === table.internalProps._heightResizedRowMap.size && table.scenegraph.recalculateRowHeights();else if ("autoHeight" === table.heightMode && !table.internalProps._heightResizedRowMap.has(row)) {
49851
49704
  const oldHeight = table.getRowHeight(row),
49852
49705
  newHeight = computeRowHeight(row, 0, table.colCount - 1, table);
49853
49706
  table.scenegraph.updateRowHeight(row, newHeight - oldHeight);
@@ -49934,7 +49787,7 @@
49934
49787
  newWidth = computeColWidth(sCol, 0, table.rowCount - 1, table, !1);
49935
49788
  newWidth !== oldWidth && table.scenegraph.updateColWidth(sCol, newWidth - oldWidth);
49936
49789
  }
49937
- if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight()) {
49790
+ if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) table.scenegraph.recalculateRowHeights();else if ("autoHeight" === table.heightMode) {
49938
49791
  const rows = [],
49939
49792
  deltaYs = [];
49940
49793
  for (let sRow = startRow; sRow <= range.end.row; sRow++) if (table.rowHeightsMap.get(sRow)) {
@@ -50269,7 +50122,8 @@
50269
50122
  proxy = table.scenegraph.proxy,
50270
50123
  {
50271
50124
  rowStart: rowStart,
50272
- rowLimit: rowLimit
50125
+ rowLimit: rowLimit,
50126
+ bodyBottomRow: bodyBottomRow
50273
50127
  } = proxy;
50274
50128
  let {
50275
50129
  rowEnd: rowEnd
@@ -50284,15 +50138,14 @@
50284
50138
  row: cellRow
50285
50139
  }), rowEnd++);
50286
50140
  }
50287
- const newRowEnd = Math.min(rowStart + rowLimit, table.rowCount - 1 - table.bottomFrozenRowCount);
50288
50141
  for (let i = 0; i < removeCellPositions.length; i++) {
50289
50142
  const {
50290
50143
  row: cellRow
50291
- } = removeCellPositions[removeCellPositions.length - i - 1];
50292
- cellRow < rowStart || cellRow > rowEnd || (cellRow > newRowEnd ? (removeCells.push({
50144
+ } = removeCellPositions[i];
50145
+ cellRow < rowStart || cellRow > rowEnd || (rowEnd === bodyBottomRow ? removeCells.push({
50293
50146
  col: col,
50294
50147
  row: cellRow
50295
- }), updateRow--) : updateRow = Math.min(updateRow, cellRow));
50148
+ }) : updateRow = Math.min(updateRow, cellRow));
50296
50149
  }
50297
50150
  if (updateRow !== 1 / 0) for (let i = updateRow; i <= rowEnd; i++) updateCells.push({
50298
50151
  col: col,
@@ -50386,8 +50239,10 @@
50386
50239
  return title;
50387
50240
  }
50388
50241
  if (this.options.groupBy) {
50389
- const record = table.getCellRawRecord(col, row);
50390
- if (null == record ? void 0 : record.vtableMerge) return "";
50242
+ const {
50243
+ vtableMerge: vtableMerge
50244
+ } = table.getCellRawRecord(col, row);
50245
+ if (vtableMerge) return "";
50391
50246
  const indexs = this.dataSource.currentIndexedData[row - this.columnHeaderLevelCount];
50392
50247
  return indexs[indexs.length - 1] + 1;
50393
50248
  }
@@ -50721,11 +50576,11 @@
50721
50576
  this.scenegraph.clearCells(), this.sortState ? (this.dataSource.updateFilterRulesForSorted(filterRules), sortRecords(this)) : this.dataSource.updateFilterRules(filterRules), this.refreshRowColCount(), this.stateManager.initCheckedState(this.records), this.scenegraph.createSceneGraph();
50722
50577
  }
50723
50578
  getCheckboxState(field) {
50724
- if (this.stateManager.checkedState.size < this.rowCount - this.columnHeaderLevelCount && this.stateManager.initLeftRecordsCheckState(this.records), isValid$1(field)) {
50725
- let stateArr = this.stateManager.checkedState.values();
50579
+ if (this.stateManager.checkedState.length < this.rowCount - this.columnHeaderLevelCount && this.stateManager.initLeftRecordsCheckState(this.records), isValid$1(field)) {
50580
+ let stateArr = this.stateManager.checkedState;
50726
50581
  return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), stateArr.map(state => state[field]);
50727
50582
  }
50728
- return new Array(...this.stateManager.checkedState.values());
50583
+ return this.stateManager.checkedState;
50729
50584
  }
50730
50585
  getCellCheckboxState(col, row) {
50731
50586
  var _a;
@@ -50733,8 +50588,8 @@
50733
50588
  field = null == define ? void 0 : define.field,
50734
50589
  cellType = this.getCellType(col, row);
50735
50590
  if (isValid$1(field) && "checkbox" === cellType) {
50736
- const dataIndex = this.dataSource.getIndexKey(this.getRecordShowIndexByCell(col, row)).toString();
50737
- return null === (_a = this.stateManager.checkedState.get(dataIndex)) || void 0 === _a ? void 0 : _a[field];
50591
+ const dataIndex = this.dataSource.getIndexKey(this.getRecordShowIndexByCell(col, row));
50592
+ return null === (_a = this.stateManager.checkedState[dataIndex]) || void 0 === _a ? void 0 : _a[field];
50738
50593
  }
50739
50594
  }
50740
50595
  getRadioState(field) {
@@ -52284,7 +52139,7 @@
52284
52139
  }
52285
52140
 
52286
52141
  function computeAxisComponentWidth(config, table) {
52287
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
52142
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
52288
52143
  const attribute = merge({}, commonAxis, config);
52289
52144
  let tickWidth = 0;
52290
52145
  !1 !== attribute.tick.visible && (tickWidth = null !== (_a = attribute.tick.width) && void 0 !== _a ? _a : 4);
@@ -52308,7 +52163,7 @@
52308
52163
  });
52309
52164
  } else {
52310
52165
  let ticks;
52311
- if ((null === (_b = config.sync) || void 0 === _b ? void 0 : _b.tickAlign) && isFunction$1(null === (_c = config.tick) || void 0 === _c ? void 0 : _c.tickMode)) ticks = config.tick.tickMode();else if (isArray$1(config.__ticksForVTable)) ticks = config.__ticksForVTable;else {
52166
+ if (isArray$1(config.__ticksForVTable)) ticks = config.__ticksForVTable;else {
52312
52167
  const range = attribute.range,
52313
52168
  minNumber = Math.abs(range.min) > 1 ? Math.round(range.min) : range.min,
52314
52169
  maxNumber = Math.abs(range.max) > 1 ? Math.round(range.max) : range.max;
@@ -52330,7 +52185,7 @@
52330
52185
  labelWidth = Math.max(labelWidth, getSizeAfterResize(Math.min(width, widthLimit), height, angle).width);
52331
52186
  });
52332
52187
  }
52333
- labelWidth += null !== (_d = attribute.label.space) && void 0 !== _d ? _d : 4;
52188
+ labelWidth += null !== (_b = attribute.label.space) && void 0 !== _b ? _b : 4;
52334
52189
  }
52335
52190
  let titleWidth = 0;
52336
52191
  if (attribute.title.visible && isString$2(attribute.title.text)) {
@@ -52338,18 +52193,18 @@
52338
52193
  width: width,
52339
52194
  height: height
52340
52195
  } = table.measureText(attribute.title.text, {
52341
- fontSize: null !== (_g = null === (_f = null === (_e = attribute.title) || void 0 === _e ? void 0 : _e.style) || void 0 === _f ? void 0 : _f.fontSize) && void 0 !== _g ? _g : DEFAULT_TEXT_FONT_SIZE,
52342
- fontWeight: null !== (_k = null === (_j = null === (_h = attribute.title) || void 0 === _h ? void 0 : _h.style) || void 0 === _j ? void 0 : _j.fontWeight) && void 0 !== _k ? _k : "normal",
52343
- fontFamily: null !== (_o = null === (_m = null === (_l = attribute.title) || void 0 === _l ? void 0 : _l.style) || void 0 === _m ? void 0 : _m.fontFamily) && void 0 !== _o ? _o : DEFAULT_TEXT_FONT_FAMILY
52196
+ fontSize: null !== (_e = null === (_d = null === (_c = attribute.title) || void 0 === _c ? void 0 : _c.style) || void 0 === _d ? void 0 : _d.fontSize) && void 0 !== _e ? _e : DEFAULT_TEXT_FONT_SIZE,
52197
+ fontWeight: null !== (_h = null === (_g = null === (_f = attribute.title) || void 0 === _f ? void 0 : _f.style) || void 0 === _g ? void 0 : _g.fontWeight) && void 0 !== _h ? _h : "normal",
52198
+ fontFamily: null !== (_l = null === (_k = null === (_j = attribute.title) || void 0 === _j ? void 0 : _j.style) || void 0 === _k ? void 0 : _k.fontFamily) && void 0 !== _l ? _l : DEFAULT_TEXT_FONT_FAMILY
52344
52199
  }),
52345
- widthLimit = (null === (_q = null === (_p = attribute.label) || void 0 === _p ? void 0 : _p.style) || void 0 === _q ? void 0 : _q.maxLineWidth) || 1 / 0,
52346
- size = getSizeAfterResize(Math.min(width, widthLimit), height, null === (_s = null === (_r = attribute.title) || void 0 === _r ? void 0 : _r.style) || void 0 === _s ? void 0 : _s.angle);
52347
- titleWidth = "left" !== config.orient && "right" !== config.orient || !attribute.title.autoRotate ? size.width : size.height, titleWidth += null !== (_t = attribute.title.space) && void 0 !== _t ? _t : 4;
52200
+ widthLimit = (null === (_o = null === (_m = attribute.label) || void 0 === _m ? void 0 : _m.style) || void 0 === _o ? void 0 : _o.maxLineWidth) || 1 / 0,
52201
+ size = getSizeAfterResize(Math.min(width, widthLimit), height, null === (_q = null === (_p = attribute.title) || void 0 === _p ? void 0 : _p.style) || void 0 === _q ? void 0 : _q.angle);
52202
+ titleWidth = "left" !== config.orient && "right" !== config.orient || !attribute.title.autoRotate ? size.width : size.height, titleWidth += null !== (_r = attribute.title.space) && void 0 !== _r ? _r : 4;
52348
52203
  }
52349
52204
  return tickWidth + labelWidth + titleWidth + 1;
52350
52205
  }
52351
52206
  function computeAxisComponentHeight(config, table) {
52352
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
52207
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
52353
52208
  const attribute = merge({}, commonAxis, config);
52354
52209
  let tickHeight = 0;
52355
52210
  !1 !== attribute.tick.visible && (tickHeight = null !== (_a = attribute.tick.width) && void 0 !== _a ? _a : 4);
@@ -52373,7 +52228,7 @@
52373
52228
  });
52374
52229
  } else {
52375
52230
  let ticks;
52376
- if ((null === (_b = config.sync) || void 0 === _b ? void 0 : _b.tickAlign) && isFunction$1(null === (_c = config.tick) || void 0 === _c ? void 0 : _c.tickMode)) ticks = config.tick.tickMode();else if (isArray$1(config.__ticksForVTable)) ticks = config.__ticksForVTable;else {
52231
+ if (isArray$1(config.__ticksForVTable)) ticks = config.__ticksForVTable;else {
52377
52232
  const range = attribute.range,
52378
52233
  minNumber = Math.abs(range.min) > 1 ? Math.round(range.min) : range.min,
52379
52234
  maxNumber = Math.abs(range.max) > 1 ? Math.round(range.max) : range.max;
@@ -52395,7 +52250,7 @@
52395
52250
  labelHeight = Math.max(labelHeight, getSizeAfterResize(Math.min(width, widthLimit), height, angle).height);
52396
52251
  });
52397
52252
  }
52398
- labelHeight += null !== (_d = attribute.label.space) && void 0 !== _d ? _d : 4;
52253
+ labelHeight += null !== (_b = attribute.label.space) && void 0 !== _b ? _b : 4;
52399
52254
  }
52400
52255
  let titleHeight = 0;
52401
52256
  if (attribute.title.visible && attribute.title.text) {
@@ -52403,13 +52258,13 @@
52403
52258
  width: width,
52404
52259
  height: height
52405
52260
  } = table.measureText(attribute.title.text, {
52406
- fontSize: null !== (_g = null === (_f = null === (_e = attribute.title) || void 0 === _e ? void 0 : _e.style) || void 0 === _f ? void 0 : _f.fontSize) && void 0 !== _g ? _g : DEFAULT_TEXT_FONT_SIZE,
52407
- fontWeight: null !== (_k = null === (_j = null === (_h = attribute.title) || void 0 === _h ? void 0 : _h.style) || void 0 === _j ? void 0 : _j.fontWeight) && void 0 !== _k ? _k : "normal",
52408
- fontFamily: null !== (_o = null === (_m = null === (_l = attribute.title) || void 0 === _l ? void 0 : _l.style) || void 0 === _m ? void 0 : _m.fontFamily) && void 0 !== _o ? _o : DEFAULT_TEXT_FONT_FAMILY
52261
+ fontSize: null !== (_e = null === (_d = null === (_c = attribute.title) || void 0 === _c ? void 0 : _c.style) || void 0 === _d ? void 0 : _d.fontSize) && void 0 !== _e ? _e : DEFAULT_TEXT_FONT_SIZE,
52262
+ fontWeight: null !== (_h = null === (_g = null === (_f = attribute.title) || void 0 === _f ? void 0 : _f.style) || void 0 === _g ? void 0 : _g.fontWeight) && void 0 !== _h ? _h : "normal",
52263
+ fontFamily: null !== (_l = null === (_k = null === (_j = attribute.title) || void 0 === _j ? void 0 : _j.style) || void 0 === _k ? void 0 : _k.fontFamily) && void 0 !== _l ? _l : DEFAULT_TEXT_FONT_FAMILY
52409
52264
  }),
52410
- widthLimit = (null === (_q = null === (_p = attribute.label) || void 0 === _p ? void 0 : _p.style) || void 0 === _q ? void 0 : _q.maxLineWidth) || 1 / 0,
52411
- size = getSizeAfterResize(Math.min(width, widthLimit), height, null === (_s = null === (_r = attribute.title) || void 0 === _r ? void 0 : _r.style) || void 0 === _s ? void 0 : _s.angle);
52412
- titleHeight = "bottom" !== config.orient && "top" !== config.orient || !attribute.title.autoRotate ? size.height : size.width, titleHeight += null !== (_t = attribute.title.space) && void 0 !== _t ? _t : 4;
52265
+ widthLimit = (null === (_o = null === (_m = attribute.label) || void 0 === _m ? void 0 : _m.style) || void 0 === _o ? void 0 : _o.maxLineWidth) || 1 / 0,
52266
+ size = getSizeAfterResize(Math.min(width, widthLimit), height, null === (_q = null === (_p = attribute.title) || void 0 === _p ? void 0 : _p.style) || void 0 === _q ? void 0 : _q.angle);
52267
+ titleHeight = "bottom" !== config.orient && "top" !== config.orient || !attribute.title.autoRotate ? size.height : size.width, titleHeight += null !== (_r = attribute.title.space) && void 0 !== _r ? _r : 4;
52413
52268
  }
52414
52269
  return tickHeight + labelHeight + titleHeight + 1;
52415
52270
  }
@@ -54161,7 +54016,7 @@
54161
54016
  lineClamp: lineClamp
54162
54017
  } = cellStyle,
54163
54018
  autoColWidth = "auto" === colWidth,
54164
- autoRowHeight = table.isAutoRowHeight(),
54019
+ autoRowHeight = "autoHeight" === table.heightMode,
54165
54020
  attribute = {
54166
54021
  maxLineWidth: autoColWidth ? 1 / 0 : cellWidth - (padding[1] + padding[3] + hierarchyOffset) - size - spaceBetweenTextAndIcon,
54167
54022
  textAlign: "left",
@@ -55038,15 +54893,15 @@
55038
54893
  return percentCompleteBarGroup;
55039
54894
  }
55040
54895
 
55041
- function getAxisDomainRangeAndLabels(min, max, axisOption, isZeroAlign, axisLength, target) {
55042
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
54896
+ function getAxisDomainRangeAndLabels(min, max, axisOption, isZeroAlign, axisLength, skipTick) {
54897
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
55043
54898
  if ((null == axisOption ? void 0 : axisOption.zero) && (min = Math.min(min, 0), max = Math.max(max, 0)), null == axisOption ? void 0 : axisOption.expand) {
55044
54899
  const domainMin = min,
55045
54900
  domainMax = max;
55046
54901
  isValid$1(axisOption.expand.min) && (min = domainMin - (domainMax - domainMin) * axisOption.expand.min), isValid$1(axisOption.expand.max) && (max = domainMax + (domainMax - domainMin) * axisOption.expand.max);
55047
54902
  }
55048
54903
  let scale, scaleTicks;
55049
- if (isNumber$2(null == axisOption ? void 0 : axisOption.min) && (min = axisOption.min), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (max = axisOption.max), "log" === (null == axisOption ? void 0 : axisOption.type) ? (scale = new LogScale(), scale.base(null !== (_a = null == axisOption ? void 0 : axisOption.base) && void 0 !== _a ? _a : 10)) : "symlog" === (null == axisOption ? void 0 : axisOption.type) ? (scale = new SymlogScale(), scale.constant(null !== (_b = null == axisOption ? void 0 : axisOption.constant) && void 0 !== _b ? _b : 10)) : scale = new LinearScale(), scale.domain([min, max], !!(null == axisOption ? void 0 : axisOption.nice)), target) forceTickCountNice(scale, target);else if (null == axisOption ? void 0 : axisOption.nice) {
54904
+ if (isNumber$2(null == axisOption ? void 0 : axisOption.min) && (min = axisOption.min), isNumber$2(null == axisOption ? void 0 : axisOption.max) && (max = axisOption.max), "log" === (null == axisOption ? void 0 : axisOption.type) ? (scale = new LogScale(), scale.base(null !== (_a = null == axisOption ? void 0 : axisOption.base) && void 0 !== _a ? _a : 10)) : "symlog" === (null == axisOption ? void 0 : axisOption.type) ? (scale = new SymlogScale(), scale.constant(null !== (_b = null == axisOption ? void 0 : axisOption.constant) && void 0 !== _b ? _b : 10)) : scale = new LinearScale(), scale.domain([min, max], !!(null == axisOption ? void 0 : axisOption.nice)), null == axisOption ? void 0 : axisOption.nice) {
55050
54905
  let tickCount = null !== (_f = null !== (_d = null === (_c = axisOption.tick) || void 0 === _c ? void 0 : _c.forceTickCount) && void 0 !== _d ? _d : null === (_e = axisOption.tick) || void 0 === _e ? void 0 : _e.tickCount) && void 0 !== _f ? _f : 10;
55051
54906
  isFunction$1(tickCount) && (tickCount = tickCount({
55052
54907
  axisLength: axisLength,
@@ -55055,16 +54910,13 @@
55055
54910
  }
55056
54911
  })), "accurateFirst" === axisOption.niceType && (tickCount = Math.max(10, tickCount)), isNil$1(axisOption.min) && isNil$1(axisOption.max) ? scale.nice(tickCount) : isValid$1(axisOption.min) && isNil$1(axisOption.max) ? scale.niceMax(tickCount) : isNil$1(axisOption.min) && isValid$1(axisOption.max) && scale.niceMin(tickCount);
55057
54912
  }
55058
- return delete scale._niceType, scaleTicks = (null !== (_k = null === (_j = null == target ? void 0 : target.targetTicks) || void 0 === _j ? void 0 : _j.length) && void 0 !== _k ? _k : null === (_l = null == axisOption ? void 0 : axisOption.tick) || void 0 === _l ? void 0 : _l.forceTickCount) ? scale.forceTicks(null !== (_o = null === (_m = null == target ? void 0 : target.targetTicks) || void 0 === _m ? void 0 : _m.length) && void 0 !== _o ? _o : null === (_p = null == axisOption ? void 0 : axisOption.tick) || void 0 === _p ? void 0 : _p.forceTickCount) : scale.ticks(null !== (_r = null === (_q = null == axisOption ? void 0 : axisOption.tick) || void 0 === _q ? void 0 : _q.tickCount) && void 0 !== _r ? _r : 5, {
55059
- noDecimals: null === (_s = null == axisOption ? void 0 : axisOption.tick) || void 0 === _s ? void 0 : _s.noDecimals
55060
- }), {
54913
+ return delete scale._niceType, skipTick || (scaleTicks = scale.ticks(isNumber$2(null == axisOption ? void 0 : axisOption.tickCount) ? null == axisOption ? void 0 : axisOption.tickCount : 5, {
54914
+ noDecimals: null === (_j = null == axisOption ? void 0 : axisOption.tick) || void 0 === _j ? void 0 : _j.noDecimals
54915
+ })), {
55061
54916
  range: scale.domain(),
55062
54917
  ticks: scaleTicks
55063
54918
  };
55064
54919
  }
55065
- function forceTickCountNice(scale, target) {
55066
- scale.niceMax(target.targetTicks.length);
55067
- }
55068
54920
 
55069
54921
  const registerChartCell = () => {
55070
54922
  Factory.registerFunction("createChartCellGroup", createChartCellGroup), Factory.registerFunction("getAxisDomainRangeAndLabels", getAxisDomainRangeAndLabels);