@visactor/vtable 1.17.3-alpha.12 → 1.17.3-alpha.13

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 (111) hide show
  1. package/cjs/PivotTable.js +2 -2
  2. package/cjs/PivotTable.js.map +1 -1
  3. package/cjs/components/react/react-custom-layout.js +3 -2
  4. package/cjs/components/react/react-custom-layout.js.map +1 -1
  5. package/cjs/core/BaseTable.js +14 -3
  6. package/cjs/core/BaseTable.js.map +1 -1
  7. package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
  8. package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
  9. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  10. package/cjs/core/record-helper.js +2 -2
  11. package/cjs/core/record-helper.js.map +1 -1
  12. package/cjs/index.d.ts +1 -1
  13. package/cjs/index.js +1 -1
  14. package/cjs/index.js.map +1 -1
  15. package/cjs/scenegraph/graphic/chart.d.ts +2 -2
  16. package/cjs/scenegraph/graphic/chart.js +1 -1
  17. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  18. package/cjs/scenegraph/graphic/contributions/index.js +4 -2
  19. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
  20. package/cjs/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
  21. package/cjs/scenegraph/graphic/contributions/picker-interceptor.js +42 -0
  22. package/cjs/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
  23. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
  24. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js +39 -0
  25. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
  26. package/cjs/scenegraph/group-creater/cell-helper.js +3 -1
  27. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  28. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +1 -1
  29. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  30. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +4 -2
  31. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  32. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +1 -1
  33. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  34. package/cjs/scenegraph/group-creater/progress/proxy.js +6 -6
  35. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  36. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -6
  37. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  38. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +5 -4
  39. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -1
  40. package/cjs/scenegraph/layout/compute-col-width.js +2 -1
  41. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  42. package/cjs/scenegraph/layout/compute-row-height.js +9 -8
  43. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  44. package/cjs/scenegraph/layout/update-row.js +4 -4
  45. package/cjs/scenegraph/layout/update-row.js.map +1 -1
  46. package/cjs/scenegraph/scenegraph.js +1 -1
  47. package/cjs/scenegraph/scenegraph.js.map +1 -1
  48. package/cjs/state/state.js +63 -15
  49. package/cjs/state/state.js.map +1 -1
  50. package/cjs/ts-types/customElement.d.ts +1 -0
  51. package/cjs/ts-types/customElement.js.map +1 -1
  52. package/cjs/ts-types/events.d.ts +16 -1
  53. package/cjs/ts-types/events.js.map +1 -1
  54. package/cjs/vrender.js.map +1 -1
  55. package/dist/vtable.js +169 -52
  56. package/dist/vtable.min.js +2 -2
  57. package/es/PivotTable.js +2 -2
  58. package/es/PivotTable.js.map +1 -1
  59. package/es/components/react/react-custom-layout.js +3 -2
  60. package/es/components/react/react-custom-layout.js.map +1 -1
  61. package/es/core/BaseTable.js +14 -3
  62. package/es/core/BaseTable.js.map +1 -1
  63. package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
  64. package/es/core/TABLE_EVENT_TYPE.js +1 -0
  65. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  66. package/es/core/record-helper.js +2 -2
  67. package/es/core/record-helper.js.map +1 -1
  68. package/es/index.d.ts +1 -1
  69. package/es/index.js +1 -1
  70. package/es/index.js.map +1 -1
  71. package/es/scenegraph/graphic/chart.d.ts +2 -2
  72. package/es/scenegraph/graphic/chart.js +2 -2
  73. package/es/scenegraph/graphic/chart.js.map +1 -1
  74. package/es/scenegraph/graphic/contributions/index.js +5 -2
  75. package/es/scenegraph/graphic/contributions/index.js.map +1 -1
  76. package/es/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
  77. package/es/scenegraph/graphic/contributions/picker-interceptor.js +37 -0
  78. package/es/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
  79. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
  80. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js +37 -0
  81. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
  82. package/es/scenegraph/group-creater/cell-helper.js +3 -1
  83. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  84. package/es/scenegraph/group-creater/cell-type/radio-cell.js +1 -1
  85. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  86. package/es/scenegraph/group-creater/cell-type/video-cell.js +4 -2
  87. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  88. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +1 -1
  89. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  90. package/es/scenegraph/group-creater/progress/proxy.js +6 -6
  91. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  92. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -6
  93. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  94. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +5 -4
  95. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -1
  96. package/es/scenegraph/layout/compute-col-width.js +2 -1
  97. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  98. package/es/scenegraph/layout/compute-row-height.js +9 -8
  99. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  100. package/es/scenegraph/layout/update-row.js +4 -4
  101. package/es/scenegraph/layout/update-row.js.map +1 -1
  102. package/es/scenegraph/scenegraph.js +1 -1
  103. package/es/scenegraph/scenegraph.js.map +1 -1
  104. package/es/state/state.js +63 -15
  105. package/es/state/state.js.map +1 -1
  106. package/es/ts-types/customElement.d.ts +1 -0
  107. package/es/ts-types/customElement.js.map +1 -1
  108. package/es/ts-types/events.d.ts +16 -1
  109. package/es/ts-types/events.js.map +1 -1
  110. package/es/vrender.js.map +1 -1
  111. package/package.json +4 -4
package/cjs/PivotTable.js CHANGED
@@ -822,7 +822,7 @@ class PivotTable extends BaseTable_1.BaseTable {
822
822
  const oldWidth = this.getColWidth(col), newWidth = (0, compute_col_width_1.computeColWidth)(col, 0, this.rowCount - 1, this, !1);
823
823
  newWidth !== oldWidth && this.scenegraph.updateColWidth(col, newWidth - oldWidth);
824
824
  }
825
- if ("adaptive" === this.heightMode || this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight) 0 === this.internalProps._heightResizedRowMap.size && this.scenegraph.recalculateRowHeights(); else if (this.isAutoRowHeight() && !this.internalProps._heightResizedRowMap.has(row)) {
825
+ if ("adaptive" === this.heightMode || this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight) 0 === this.internalProps._heightResizedRowMap.size && this.scenegraph.recalculateRowHeights(); else if (this.isAutoRowHeight(row) && !this.internalProps._heightResizedRowMap.has(row)) {
826
826
  const oldHeight = this.getRowHeight(row), newHeight = (0, compute_row_height_1.computeRowHeight)(row, 0, this.colCount - 1, this);
827
827
  this.scenegraph.updateRowHeight(row, newHeight - oldHeight);
828
828
  }
@@ -876,7 +876,7 @@ class PivotTable extends BaseTable_1.BaseTable {
876
876
  const oldWidth = this.getColWidth(sCol), newWidth = (0, compute_col_width_1.computeColWidth)(sCol, 0, this.rowCount - 1, this, !1);
877
877
  newWidth !== oldWidth && this.scenegraph.updateColWidth(sCol, newWidth - oldWidth);
878
878
  }
879
- if ("adaptive" === this.heightMode || this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight) this.scenegraph.recalculateRowHeights(); else if (this.isAutoRowHeight()) {
879
+ if ("adaptive" === this.heightMode || this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight) this.scenegraph.recalculateRowHeights(); else if (this.isAutoRowHeight(startRow)) {
880
880
  const rows = [], deltaYs = [];
881
881
  for (let sRow = startRow; sRow <= range.end.row; sRow++) if (this.rowHeightsMap.get(sRow)) {
882
882
  const oldHeight = this.getRowHeight(sRow), newHeight = (0, compute_row_height_1.computeRowHeight)(sRow, 0, this.colCount - 1, this);