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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/cjs/ListTable.js +2 -3
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/body-helper/body-helper.js +1 -2
  4. package/cjs/body-helper/style.js +2 -1
  5. package/cjs/core/BaseTable.d.ts +2 -2
  6. package/cjs/core/BaseTable.js +7 -9
  7. package/cjs/core/BaseTable.js.map +1 -1
  8. package/cjs/core/TABLE_EVENT_TYPE.d.ts +0 -2
  9. package/cjs/core/TABLE_EVENT_TYPE.js +1 -3
  10. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  11. package/cjs/dataset/dataset-pivot-table.js +2 -1
  12. package/cjs/dataset/flatDataToObject.js +1 -2
  13. package/cjs/header-helper/header-helper.js +1 -1
  14. package/cjs/header-helper/style.js +1 -1
  15. package/cjs/index.d.ts +1 -1
  16. package/cjs/index.js +1 -1
  17. package/cjs/index.js.map +1 -1
  18. package/cjs/layout/index.js +2 -1
  19. package/cjs/layout/simple-header-layout.js +1 -1
  20. package/cjs/layout/tree-helper.js +1 -1
  21. package/cjs/plugins/interface.js +1 -2
  22. package/cjs/plugins/invert-highlight.js +1 -1
  23. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  24. package/cjs/plugins/plugin-manager.d.ts +0 -2
  25. package/cjs/plugins/plugin-manager.js +7 -14
  26. package/cjs/plugins/plugin-manager.js.map +1 -1
  27. package/cjs/scenegraph/graphic/active-cell-chart-list.js +63 -45
  28. package/cjs/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
  29. package/cjs/scenegraph/graphic/chart.js +10 -3
  30. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  31. package/cjs/ts-types/base-table.d.ts +2 -2
  32. package/cjs/ts-types/base-table.js.map +1 -1
  33. package/cjs/ts-types/events.d.ts +0 -8
  34. package/cjs/ts-types/events.js.map +1 -1
  35. package/cjs/ts-types/table-engine.d.ts +2 -2
  36. package/cjs/ts-types/table-engine.js.map +1 -1
  37. package/cjs/vrender.js.map +1 -1
  38. package/dist/vtable.js +153 -117
  39. package/dist/vtable.min.js +2 -2
  40. package/es/ListTable.js +2 -3
  41. package/es/ListTable.js.map +1 -1
  42. package/es/body-helper/body-helper.js +1 -2
  43. package/es/body-helper/style.js +2 -1
  44. package/es/core/BaseTable.d.ts +2 -2
  45. package/es/core/BaseTable.js +7 -9
  46. package/es/core/BaseTable.js.map +1 -1
  47. package/es/core/TABLE_EVENT_TYPE.d.ts +0 -2
  48. package/es/core/TABLE_EVENT_TYPE.js +1 -3
  49. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  50. package/es/dataset/dataset-pivot-table.js +2 -1
  51. package/es/dataset/flatDataToObject.js +1 -2
  52. package/es/header-helper/header-helper.js +1 -1
  53. package/es/header-helper/style.js +1 -1
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +1 -1
  56. package/es/index.js.map +1 -1
  57. package/es/layout/index.js +2 -1
  58. package/es/layout/simple-header-layout.js +1 -1
  59. package/es/layout/tree-helper.js +1 -1
  60. package/es/plugins/interface.js +1 -2
  61. package/es/plugins/invert-highlight.js +1 -1
  62. package/es/plugins/list-tree-stick-cell.js +1 -1
  63. package/es/plugins/plugin-manager.d.ts +0 -2
  64. package/es/plugins/plugin-manager.js +7 -14
  65. package/es/plugins/plugin-manager.js.map +1 -1
  66. package/es/scenegraph/graphic/active-cell-chart-list.js +63 -45
  67. package/es/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
  68. package/es/scenegraph/graphic/chart.js +10 -3
  69. package/es/scenegraph/graphic/chart.js.map +1 -1
  70. package/es/ts-types/base-table.d.ts +2 -2
  71. package/es/ts-types/base-table.js.map +1 -1
  72. package/es/ts-types/events.d.ts +0 -8
  73. package/es/ts-types/events.js.map +1 -1
  74. package/es/ts-types/table-engine.d.ts +2 -2
  75. package/es/ts-types/table-engine.js.map +1 -1
  76. package/es/vrender.js.map +1 -1
  77. package/package.json +9 -9
package/dist/vtable.js CHANGED
@@ -9498,7 +9498,7 @@
9498
9498
  }
9499
9499
  }]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
9500
9500
  type: AttributeUpdateType.STATE
9501
- });
9501
+ }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
9502
9502
  } else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
9503
9503
  type: AttributeUpdateType.STATE
9504
9504
  }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
@@ -9524,7 +9524,7 @@
9524
9524
  getNormalAttribute(key) {
9525
9525
  var _a, _b;
9526
9526
  const value = this.attribute[key];
9527
- return this.animates ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
9527
+ return this.animates && this.animates.size ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
9528
9528
  }
9529
9529
  clearStates(hasAnimation) {
9530
9530
  this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
@@ -36463,9 +36463,7 @@
36463
36463
  DELETE_RECORD: 'delete_record',
36464
36464
  UPDATE_RECORD: 'update_record',
36465
36465
  ADD_COLUMN: 'add_column',
36466
- DELETE_COLUMN: 'delete_column',
36467
- FILTER_MENU_SHOW: 'filter_menu_show',
36468
- FILTER_MENU_HIDE: 'filter_menu_hide'
36466
+ DELETE_COLUMN: 'delete_column'
36469
36467
  };
36470
36468
 
36471
36469
  const judgeType = (value) => {
@@ -49028,32 +49026,47 @@
49028
49026
  chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance;
49029
49027
  }
49030
49028
  }
49031
- if (table.stateManager.hover.cellPos.col !== col || table.stateManager.hover.cellPos.row !== i) {
49032
- setTimeout(() => {
49033
- if (chartInstanceListColumnByColumnDirection[col]?.[i]) {
49034
- const absolutePosition = table.getCellRelativeRect(col, i);
49035
- const chartDimensionLinkage = table.options.chartDimensionLinkage;
49036
- let isShowTooltip = !isScatter;
49037
- if (!isScatter && typeof chartDimensionLinkage === 'object') {
49038
- isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
49039
- if (i === rowEnd && isShowTooltip) {
49040
- const heightLimitToShowTooltipForLastRow = chartDimensionLinkage.heightLimitToShowTooltipForLastRow;
49041
- const { rowEnd: rowEnd1 } = table.getBodyVisibleRowRange(-heightLimitToShowTooltipForLastRow);
49042
- if (rowEnd1 === rowEnd) {
49029
+ setTimeout(() => {
49030
+ if (chartInstanceListColumnByColumnDirection[col]?.[i]) {
49031
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
49032
+ let isShowTooltip = !isScatter;
49033
+ if (!isScatter && typeof chartDimensionLinkage === 'object') {
49034
+ isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
49035
+ if (i === rowEnd && isShowTooltip) {
49036
+ const heightLimitToShowTooltipForEdgeRow = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow ?? 0;
49037
+ const { rowEnd: rowEnd1 } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
49038
+ if (rowEnd1 === rowEnd) {
49039
+ isShowTooltip = true;
49040
+ }
49041
+ else {
49042
+ const { rowEnd: rowEnd2 } = table.getBodyVisibleRowRange(0, 5);
49043
+ if (rowEnd2 !== rowEnd) {
49043
49044
  isShowTooltip = true;
49044
49045
  }
49045
49046
  else {
49046
- const { rowEnd: rowEnd2 } = table.getBodyVisibleRowRange(5);
49047
- if (rowEnd2 !== rowEnd) {
49048
- isShowTooltip = true;
49049
- }
49050
- else {
49051
- isShowTooltip = false;
49052
- }
49047
+ isShowTooltip = false;
49048
+ }
49049
+ }
49050
+ }
49051
+ else if (i === rowStart && isShowTooltip) {
49052
+ const heightLimitToShowTooltipForEdgeRow = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow ?? 0;
49053
+ const { rowStart: rowStart1 } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
49054
+ if (rowStart1 === rowStart) {
49055
+ isShowTooltip = true;
49056
+ }
49057
+ else {
49058
+ const { rowStart: rowStart2 } = table.getBodyVisibleRowRange(0, -5);
49059
+ if (rowStart2 !== rowStart) {
49060
+ isShowTooltip = true;
49061
+ }
49062
+ else {
49063
+ isShowTooltip = false;
49053
49064
  }
49054
49065
  }
49055
49066
  }
49056
- if (isScatter) {
49067
+ }
49068
+ if (isScatter) {
49069
+ if (table.stateManager.hover.cellPos.col !== col || table.stateManager.hover.cellPos.row !== i) {
49057
49070
  chartInstanceListColumnByColumnDirection[col][i].showCrosshair?.((axis) => {
49058
49071
  if (axis.layoutOrient === 'left') {
49059
49072
  return positionValueOrYValue;
@@ -49061,24 +49074,30 @@
49061
49074
  return dimensionValueOrXValue;
49062
49075
  });
49063
49076
  }
49064
- else {
49065
- if (hideTooltip) {
49077
+ }
49078
+ else {
49079
+ const bodyBoundryTop = table.frozenRowCount
49080
+ ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom
49081
+ : 0;
49082
+ const absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
49083
+ if (hideTooltip) {
49084
+ if (table.stateManager.hover.cellPos.col !== col || table.stateManager.hover.cellPos.row !== i) {
49066
49085
  chartInstanceListColumnByColumnDirection[col][i].hideTooltip();
49067
- chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
49068
- tooltip: false,
49069
- showTooltipOption: { x: canvasXY.x, y: absolutePosition.top + 3, activeType: 'dimension' }
49070
- });
49071
- }
49072
- else {
49073
- chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
49074
- tooltip: isShowTooltip,
49075
- showTooltipOption: { x: canvasXY.x, y: absolutePosition.top + 3, activeType: 'dimension' }
49076
- });
49077
49086
  }
49087
+ chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
49088
+ tooltip: false,
49089
+ showTooltipOption: { x: canvasXY.x, y: absolutePositionTop, activeType: 'dimension' }
49090
+ });
49091
+ }
49092
+ else {
49093
+ chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
49094
+ tooltip: isShowTooltip,
49095
+ showTooltipOption: { x: canvasXY.x, y: absolutePositionTop, activeType: 'dimension' }
49096
+ });
49078
49097
  }
49079
49098
  }
49080
- }, 0);
49081
- }
49099
+ }
49100
+ }, 0);
49082
49101
  table.scenegraph.updateNextFrame();
49083
49102
  }
49084
49103
  }
@@ -49124,32 +49143,47 @@
49124
49143
  chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance;
49125
49144
  }
49126
49145
  }
49127
- if (table.stateManager.hover.cellPos.col !== i || table.stateManager.hover.cellPos.row !== row) {
49128
- setTimeout(() => {
49129
- if (chartInstanceListRowByRowDirection[row]?.[i]) {
49130
- const absolutePosition = table.getCellRelativeRect(i, row);
49131
- const chartDimensionLinkage = table.options.chartDimensionLinkage;
49132
- let isShowTooltip = !isScatter;
49133
- if (!isScatter && typeof chartDimensionLinkage === 'object') {
49134
- isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
49135
- if (i === colEnd && isShowTooltip) {
49136
- const widthLimitToShowTooltipForLastColumn = chartDimensionLinkage.widthLimitToShowTooltipForLastColumn;
49137
- const { colEnd: colEnd1 } = table.getBodyVisibleColRange(-widthLimitToShowTooltipForLastColumn);
49138
- if (colEnd1 === colEnd) {
49146
+ setTimeout(() => {
49147
+ if (chartInstanceListRowByRowDirection[row]?.[i]) {
49148
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
49149
+ let isShowTooltip = !isScatter;
49150
+ if (!isScatter && typeof chartDimensionLinkage === 'object') {
49151
+ isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
49152
+ if (i === colEnd && isShowTooltip) {
49153
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn;
49154
+ const { colEnd: colEnd1 } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
49155
+ if (colEnd1 === colEnd) {
49156
+ isShowTooltip = true;
49157
+ }
49158
+ else {
49159
+ const { colEnd: colEnd2 } = table.getBodyVisibleColRange(0, 5);
49160
+ if (colEnd2 !== colEnd) {
49139
49161
  isShowTooltip = true;
49140
49162
  }
49141
49163
  else {
49142
- const { colEnd: colEnd2 } = table.getBodyVisibleColRange(5);
49143
- if (colEnd2 !== colEnd) {
49144
- isShowTooltip = true;
49145
- }
49146
- else {
49147
- isShowTooltip = false;
49148
- }
49164
+ isShowTooltip = false;
49149
49165
  }
49150
49166
  }
49151
49167
  }
49152
- if (isScatter) {
49168
+ else if (i === colStart && isShowTooltip) {
49169
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn;
49170
+ const { colStart: colStart1 } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
49171
+ if (colStart1 === colStart) {
49172
+ isShowTooltip = true;
49173
+ }
49174
+ else {
49175
+ const { colStart: colStart2 } = table.getBodyVisibleColRange(0, -5);
49176
+ if (colStart2 !== colStart) {
49177
+ isShowTooltip = true;
49178
+ }
49179
+ else {
49180
+ isShowTooltip = false;
49181
+ }
49182
+ }
49183
+ }
49184
+ }
49185
+ if (isScatter) {
49186
+ if (table.stateManager.hover.cellPos.col !== i || table.stateManager.hover.cellPos.row !== row) {
49153
49187
  chartInstanceListRowByRowDirection[row][i].showCrosshair?.((axis) => {
49154
49188
  if (axis.layoutOrient === 'left') {
49155
49189
  return positionValueOrYValue;
@@ -49157,24 +49191,30 @@
49157
49191
  return dimensionValueOrXValue;
49158
49192
  });
49159
49193
  }
49160
- else {
49161
- if (hideTooltip) {
49194
+ }
49195
+ else {
49196
+ const bodyBoundryLeft = table.frozenColCount
49197
+ ? table.getCellRelativeRect(table.frozenColCount - 1, row).right
49198
+ : 0;
49199
+ const absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
49200
+ if (hideTooltip) {
49201
+ if (table.stateManager.hover.cellPos.col !== i || table.stateManager.hover.cellPos.row !== row) {
49162
49202
  chartInstanceListRowByRowDirection[row][i].hideTooltip();
49163
- chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
49164
- tooltip: false,
49165
- showTooltipOption: { x: absolutePosition.left + 3, y: canvasXY.y, activeType: 'dimension' }
49166
- });
49167
- }
49168
- else {
49169
- chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
49170
- tooltip: isShowTooltip,
49171
- showTooltipOption: { x: absolutePosition.left + 3, y: canvasXY.y, activeType: 'dimension' }
49172
- });
49173
49203
  }
49204
+ chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
49205
+ tooltip: false,
49206
+ showTooltipOption: { x: absolutePositionLeft, y: canvasXY.y, activeType: 'dimension' }
49207
+ });
49208
+ }
49209
+ else {
49210
+ chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
49211
+ tooltip: isShowTooltip,
49212
+ showTooltipOption: { x: absolutePositionLeft, y: canvasXY.y, activeType: 'dimension' }
49213
+ });
49174
49214
  }
49175
49215
  }
49176
- }, 0);
49177
- }
49216
+ }
49217
+ }, 0);
49178
49218
  table.scenegraph.updateNextFrame();
49179
49219
  }
49180
49220
  }
@@ -50244,7 +50284,17 @@
50244
50284
  context.fill();
50245
50285
  }
50246
50286
  }
50247
- }
50287
+ },
50288
+ componentShowContent: table.options.chartDimensionLinkage &&
50289
+ this.attribute.spec.type !== 'scatter'
50290
+ ? {
50291
+ tooltip: {
50292
+ dimension: false,
50293
+ mark: true
50294
+ },
50295
+ crosshair: false
50296
+ }
50297
+ : undefined
50248
50298
  }));
50249
50299
  const chartStage = this.activeChartInstance.getStage();
50250
50300
  const matrix = this.globalTransMatrix.clone();
@@ -50355,10 +50405,7 @@
50355
50405
  }
50356
50406
  if (indicatorsAsCol) {
50357
50407
  const series = dimensionInfo.data[0].series;
50358
- const width = this.attribute.spec.type === 'histogram' ||
50359
- this.attribute.spec.type === 'boxPlot' ||
50360
- series.type === 'line' ||
50361
- series.type === 'area'
50408
+ const width = this.attribute.spec.type === 'histogram' || series.type === 'line' || series.type === 'area'
50362
50409
  ? 0
50363
50410
  : series.getYAxisHelper().getBandwidth(0);
50364
50411
  let y = series.valueToPositionY(dimensionValue);
@@ -50381,10 +50428,7 @@
50381
50428
  }
50382
50429
  else {
50383
50430
  const series = dimensionInfo.data[0].series;
50384
- const width = this.attribute.spec.type === 'histogram' ||
50385
- this.attribute.spec.type === 'boxPlot' ||
50386
- series.type === 'line' ||
50387
- series.type === 'area'
50431
+ const width = this.attribute.spec.type === 'histogram' || series.type === 'line' || series.type === 'area'
50388
50432
  ? 0
50389
50433
  : series.getXAxisHelper().getBandwidth(0);
50390
50434
  let x = series.valueToPositionX(dimensionValue);
@@ -70024,7 +70068,6 @@
70024
70068
  class PluginManager {
70025
70069
  plugins = new Map();
70026
70070
  table;
70027
- pluginEventMap = new Map();
70028
70071
  constructor(table, options) {
70029
70072
  this.table = table;
70030
70073
  options.plugins?.map(plugin => {
@@ -70045,35 +70088,29 @@
70045
70088
  return Array.from(this.plugins.values()).find(plugin => plugin.name === name);
70046
70089
  }
70047
70090
  _bindTableEventForPlugin(plugin) {
70048
- plugin.runTime?.forEach((runTime) => {
70049
- const id = this.table.on(runTime, (...args) => {
70091
+ plugin.runTime?.forEach(runTime => {
70092
+ this.table.on(runTime, (...args) => {
70050
70093
  plugin.run?.(...args, runTime, this.table);
70051
70094
  });
70052
- this.pluginEventMap.set(plugin.id, [...(this.pluginEventMap.get(plugin.id) || []), id]);
70053
70095
  });
70054
70096
  }
70055
- removeOrAddPlugins(plugins) {
70097
+ updatePlugins(plugins) {
70056
70098
  const removedPlugins = Array.from(this.plugins.values()).filter(plugin => !plugins?.some(p => p.id === plugin.id));
70057
70099
  removedPlugins.forEach(plugin => {
70058
- this.pluginEventMap.get(plugin.id)?.forEach(id => {
70059
- this.table.off(id);
70060
- });
70061
70100
  this.release();
70062
70101
  this.plugins.delete(plugin.id);
70063
70102
  });
70103
+ this.plugins.forEach(plugin => {
70104
+ if (plugin.update) {
70105
+ plugin.update();
70106
+ }
70107
+ });
70064
70108
  const addedPlugins = plugins?.filter(plugin => !this.plugins.has(plugin.id));
70065
70109
  addedPlugins?.forEach(plugin => {
70066
70110
  this.register(plugin);
70067
70111
  this._bindTableEventForPlugin(plugin);
70068
70112
  });
70069
70113
  }
70070
- updatePlugins(plugins) {
70071
- plugins?.forEach(plugin => {
70072
- if (plugin.update) {
70073
- plugin.update();
70074
- }
70075
- });
70076
- }
70077
70114
  release() {
70078
70115
  this.plugins.forEach(plugin => {
70079
70116
  plugin.release?.(this.table);
@@ -70118,7 +70155,7 @@
70118
70155
  return TABLE_EVENT_TYPE;
70119
70156
  }
70120
70157
  options;
70121
- version = "1.22.7-alpha.3";
70158
+ version = "1.22.7-alpha.5";
70122
70159
  pagination;
70123
70160
  id = `VTable${Date.now()}`;
70124
70161
  headerStyleCache;
@@ -70996,13 +71033,13 @@
70996
71033
  getDefaultColumnWidth(col) {
70997
71034
  if (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0)) {
70998
71035
  return Array.isArray(this.defaultHeaderColWidth)
70999
- ? (this.defaultHeaderColWidth[col] ?? this.defaultColWidth)
71036
+ ? this.defaultHeaderColWidth[col] ?? this.defaultColWidth
71000
71037
  : this.defaultHeaderColWidth;
71001
71038
  }
71002
71039
  else if (this.isRightFrozenColumn(col, this.columnHeaderLevelCount)) {
71003
71040
  if (this.isPivotTable()) {
71004
71041
  return Array.isArray(this.defaultHeaderColWidth)
71005
- ? (this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount] ?? this.defaultColWidth)
71042
+ ? this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount] ?? this.defaultColWidth
71006
71043
  : this.defaultHeaderColWidth;
71007
71044
  }
71008
71045
  return this.defaultColWidth;
@@ -71012,12 +71049,12 @@
71012
71049
  getDefaultRowHeight(row) {
71013
71050
  if (this.isColumnHeader(0, row) || this.isCornerHeader(0, row) || this.isSeriesNumberInHeader(0, row)) {
71014
71051
  return Array.isArray(this.defaultHeaderRowHeight)
71015
- ? (this.defaultHeaderRowHeight[row] ?? this.internalProps.defaultRowHeight)
71052
+ ? this.defaultHeaderRowHeight[row] ?? this.internalProps.defaultRowHeight
71016
71053
  : this.defaultHeaderRowHeight;
71017
71054
  }
71018
71055
  if (this.isBottomFrozenRow(row)) {
71019
71056
  return Array.isArray(this.defaultHeaderRowHeight)
71020
- ? (this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0] ?? this.internalProps.defaultRowHeight)
71057
+ ? this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0] ?? this.internalProps.defaultRowHeight
71021
71058
  : this.defaultHeaderRowHeight;
71022
71059
  }
71023
71060
  return this.internalProps.defaultRowHeight;
@@ -71221,14 +71258,14 @@
71221
71258
  this.colContentWidthsMap.put(col, width);
71222
71259
  }
71223
71260
  getAllRowsHeight() {
71224
- if (!this.internalProps?.rowCount || this.internalProps.rowCount <= 0) {
71261
+ if (this.internalProps.rowCount <= 0) {
71225
71262
  return 0;
71226
71263
  }
71227
71264
  const h = this.getRowsHeight(0, this.internalProps.rowCount - 1);
71228
71265
  return h;
71229
71266
  }
71230
71267
  getAllColsWidth() {
71231
- if (!this.internalProps?.colCount || this.internalProps.colCount <= 0) {
71268
+ if (this.internalProps.colCount <= 0) {
71232
71269
  return 0;
71233
71270
  }
71234
71271
  const w = this.getColsWidth(0, this.internalProps.colCount - 1);
@@ -71590,26 +71627,26 @@
71590
71627
  }
71591
71628
  return { rowStart, colStart, rowEnd, colEnd };
71592
71629
  }
71593
- getBodyVisibleRowRange(deltaY = 0) {
71630
+ getBodyVisibleRowRange(start_deltaY = 0, end_deltaY = 0) {
71594
71631
  const { scrollTop } = this;
71595
71632
  const frozenRowsHeight = this.getFrozenRowsHeight();
71596
71633
  const bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight();
71597
- const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1);
71634
+ const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1 + start_deltaY);
71598
71635
  const rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight
71599
- ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + deltaY).row
71636
+ ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY).row
71600
71637
  : this.rowCount - 1;
71601
71638
  if (rowEnd < 0) {
71602
71639
  return null;
71603
71640
  }
71604
71641
  return { rowStart, rowEnd };
71605
71642
  }
71606
- getBodyVisibleColRange(deltaX = 0) {
71643
+ getBodyVisibleColRange(start_deltaX = 0, end_deltaX = 0) {
71607
71644
  const { scrollLeft } = this;
71608
71645
  const frozenColsWidth = this.getFrozenColsWidth();
71609
71646
  const rightFrozenColsWidth = this.getRightFrozenColsWidth();
71610
- const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1);
71647
+ const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1 + start_deltaX);
71611
71648
  const colEnd = this.getAllColsWidth() > this.tableNoFrameWidth
71612
- ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + deltaX).col
71649
+ ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + end_deltaX).col
71613
71650
  : this.colCount - 1;
71614
71651
  if (colEnd < 0) {
71615
71652
  return null;
@@ -78283,7 +78320,6 @@
78283
78320
  clearRowHeightCache: true
78284
78321
  }) {
78285
78322
  const internalProps = this.internalProps;
78286
- this.pluginManager.removeOrAddPlugins(options.plugins);
78287
78323
  super.updateOption(options, updateConfig);
78288
78324
  internalProps.frozenColDragHeaderMode =
78289
78325
  options.dragOrder?.frozenColDragHeaderMode ?? options.frozenColDragHeaderMode;
@@ -78779,7 +78815,7 @@
78779
78815
  return state && state[field];
78780
78816
  });
78781
78817
  }
78782
- return [...this.stateManager.checkedState.values()];
78818
+ return new Array(...this.stateManager.checkedState.values());
78783
78819
  }
78784
78820
  getCellCheckboxState(col, row) {
78785
78821
  const define = this.getBodyColumnDefine(col, row);
@@ -78914,8 +78950,8 @@
78914
78950
  getEditor(col, row) {
78915
78951
  const define = this.getBodyColumnDefine(col, row);
78916
78952
  let editorDefine = this.isHeader(col, row)
78917
- ? (define?.headerEditor ?? this.options.headerEditor)
78918
- : (define?.editor ?? this.options.editor);
78953
+ ? define?.headerEditor ?? this.options.headerEditor
78954
+ : define?.editor ?? this.options.editor;
78919
78955
  if (typeof editorDefine === 'function') {
78920
78956
  const arg = {
78921
78957
  col,
@@ -78934,8 +78970,8 @@
78934
78970
  isHasEditorDefine(col, row) {
78935
78971
  const define = this.getBodyColumnDefine(col, row);
78936
78972
  let editorDefine = this.isHeader(col, row)
78937
- ? (define?.headerEditor ?? this.options.headerEditor)
78938
- : (define?.editor ?? this.options.editor);
78973
+ ? define?.headerEditor ?? this.options.headerEditor
78974
+ : define?.editor ?? this.options.editor;
78939
78975
  if (typeof editorDefine === 'function') {
78940
78976
  const arg = {
78941
78977
  col,
@@ -94851,7 +94887,7 @@
94851
94887
  }
94852
94888
 
94853
94889
  registerForVrender();
94854
- const version = "1.22.7-alpha.3";
94890
+ const version = "1.22.7-alpha.5";
94855
94891
  function getIcons() {
94856
94892
  return get$2();
94857
94893
  }