@visactor/vtable 1.26.3-alpha.0 → 1.26.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/cjs/ListTable.d.ts +1 -0
  2. package/cjs/ListTable.js +25 -4
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotTable.js +7 -6
  5. package/cjs/PivotTable.js.map +1 -1
  6. package/cjs/body-helper/style.js +2 -1
  7. package/cjs/core/BaseTable.js +9 -8
  8. package/cjs/core/BaseTable.js.map +1 -1
  9. package/cjs/core/FouseInput.js +1 -2
  10. package/cjs/core/tableHelper.d.ts +2 -0
  11. package/cjs/core/tableHelper.js +13 -8
  12. package/cjs/core/tableHelper.js.map +1 -1
  13. package/cjs/data/CachedDataSource.d.ts +1 -0
  14. package/cjs/data/CachedDataSource.js +22 -0
  15. package/cjs/data/CachedDataSource.js.map +1 -1
  16. package/cjs/dataset/DataStatistics.js +2 -1
  17. package/cjs/dataset/flatDataToObject.js +1 -2
  18. package/cjs/event/EventHandler.js +1 -1
  19. package/cjs/event/EventTarget.js +1 -1
  20. package/cjs/event/drill.js +1 -1
  21. package/cjs/event/event.js +1 -1
  22. package/cjs/layout/pivot-header-layout.d.ts +2 -2
  23. package/cjs/layout/pivot-header-layout.js +1 -0
  24. package/cjs/plugins/interface.js +1 -2
  25. package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -1
  26. package/cjs/scenegraph/group-creater/cell-helper.js +5 -5
  27. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  28. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  29. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +3 -2
  30. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  31. package/cjs/scenegraph/group-creater/column-helper.js +9 -6
  32. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  33. package/cjs/scenegraph/layout/frozen.js +7 -3
  34. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  35. package/cjs/scenegraph/scenegraph.js +23 -14
  36. package/cjs/scenegraph/scenegraph.js.map +1 -1
  37. package/cjs/scenegraph/utils/padding.d.ts +5 -2
  38. package/cjs/scenegraph/utils/padding.js +16 -13
  39. package/cjs/scenegraph/utils/padding.js.map +1 -1
  40. package/cjs/scenegraph/utils/text-icon-layout.js +4 -4
  41. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  42. package/cjs/state/state.js +1 -1
  43. package/cjs/themes/ARCO.js +1 -1
  44. package/cjs/themes/BRIGHT.js +1 -1
  45. package/dist/vtable.js +239 -89
  46. package/dist/vtable.min.js +1 -1
  47. package/es/ListTable.d.ts +1 -0
  48. package/es/ListTable.js +26 -6
  49. package/es/ListTable.js.map +1 -1
  50. package/es/PivotTable.js +7 -6
  51. package/es/PivotTable.js.map +1 -1
  52. package/es/body-helper/style.js +2 -1
  53. package/es/core/BaseTable.js +7 -7
  54. package/es/core/BaseTable.js.map +1 -1
  55. package/es/core/FouseInput.js +1 -2
  56. package/es/core/tableHelper.d.ts +2 -0
  57. package/es/core/tableHelper.js +11 -7
  58. package/es/core/tableHelper.js.map +1 -1
  59. package/es/data/CachedDataSource.d.ts +1 -0
  60. package/es/data/CachedDataSource.js +22 -0
  61. package/es/data/CachedDataSource.js.map +1 -1
  62. package/es/dataset/DataStatistics.js +2 -1
  63. package/es/dataset/flatDataToObject.js +1 -2
  64. package/es/event/EventHandler.js +1 -1
  65. package/es/event/EventTarget.js +1 -1
  66. package/es/event/drill.js +1 -1
  67. package/es/event/event.js +1 -1
  68. package/es/layout/pivot-header-layout.d.ts +2 -2
  69. package/es/layout/pivot-header-layout.js +2 -1
  70. package/es/plugins/interface.js +1 -2
  71. package/es/scenegraph/group-creater/cell-helper.d.ts +1 -1
  72. package/es/scenegraph/group-creater/cell-helper.js +5 -5
  73. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  74. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  75. package/es/scenegraph/group-creater/cell-type/text-cell.js +3 -2
  76. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  77. package/es/scenegraph/group-creater/column-helper.js +9 -6
  78. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  79. package/es/scenegraph/layout/frozen.js +7 -3
  80. package/es/scenegraph/layout/frozen.js.map +1 -1
  81. package/es/scenegraph/scenegraph.js +23 -11
  82. package/es/scenegraph/scenegraph.js.map +1 -1
  83. package/es/scenegraph/utils/padding.d.ts +5 -2
  84. package/es/scenegraph/utils/padding.js +13 -9
  85. package/es/scenegraph/utils/padding.js.map +1 -1
  86. package/es/scenegraph/utils/text-icon-layout.js +4 -4
  87. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  88. package/es/state/state.js +1 -1
  89. package/es/themes/ARCO.js +1 -1
  90. package/es/themes/BRIGHT.js +1 -1
  91. package/package.json +4 -4
@@ -25,4 +25,5 @@ export function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style, glob
25
25
  return columnStyle || bodyStyle ? columnStyle instanceof Style ? columnStyle : "function" == typeof columnStyle ? of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText, theme) : (columnStyle || (columnStyle = {}),
26
26
  globalAutoWrapText && !isValid(columnStyle.autoWrapText) && (columnStyle.autoWrapText = !0),
27
27
  StyleClassDef === CheckboxStyle ? new CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle ? new RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle ? new SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle ? new ButtonStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_d = theme.buttonStyle) && void 0 !== _d ? _d : {}) : new StyleClassDef(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {})) : StyleClassDef.DEFAULT;
28
- }
28
+ }
29
+ //# sourceMappingURL=style.js.map
@@ -1129,7 +1129,7 @@ export class BaseTable extends EventTarget {
1129
1129
  null == legend || legend.release();
1130
1130
  })), null === (_t = internalProps.title) || void 0 === _t || _t.release(), internalProps.title = null,
1131
1131
  null === (_u = internalProps.emptyTip) || void 0 === _u || _u.release(), internalProps.emptyTip = null,
1132
- internalProps.layoutMap.release(), clearChartRenderQueue(), this.scenegraph.clearCells(),
1132
+ internalProps.layoutMap.release(), clearChartRenderQueue(), (null == updateConfig ? void 0 : updateConfig.skipClearCells) || this.scenegraph.clearCells(),
1133
1133
  this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(),
1134
1134
  this.eventManager.updateEventBinder(), options.legends) {
1135
1135
  internalProps.legends = [];
@@ -2227,16 +2227,16 @@ export class BaseTable extends EventTarget {
2227
2227
  }
2228
2228
  scrollToRow(row, animationOption) {
2229
2229
  var _a;
2230
- const targetRow = Math.min(Math.max(Math.floor(row), 0), this.rowCount - 1);
2230
+ const targetRow = Math.min(Math.max(row, 0), this.rowCount - 1), targetRowInt = Math.floor(targetRow);
2231
2231
  if (this.clearCorrectTimer(), !animationOption) return this.scrollToCell({
2232
- row: targetRow
2233
- }), void this._scheduleScrollToRowCorrect(targetRow);
2232
+ row: targetRowInt
2233
+ }), void this._scheduleScrollToRowCorrect(targetRowInt);
2234
2234
  const duration = isBoolean(animationOption) ? 3e3 : null !== (_a = null == animationOption ? void 0 : animationOption.duration) && void 0 !== _a ? _a : 3e3;
2235
2235
  this.animationManager.scrollTo({
2236
2236
  row: targetRow
2237
- }, animationOption), this._scrollToRowCorrectTimer = setTimeout((() => {
2238
- this.scrollToRow(targetRow, !1);
2239
- }), duration);
2237
+ }, animationOption), targetRowInt === targetRow && (this._scrollToRowCorrectTimer = setTimeout((() => {
2238
+ this.scrollToRow(targetRowInt, !1);
2239
+ }), duration));
2240
2240
  }
2241
2241
  scrollToCol(col, animationOption) {
2242
2242
  animationOption ? this.animationManager.scrollTo({