@visactor/vtable 0.20.4-alpha.3 → 0.21.1

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 (239) hide show
  1. package/cjs/ListTable.d.ts +9 -2
  2. package/cjs/ListTable.js +25 -9
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotChart.d.ts +7 -1
  5. package/cjs/PivotChart.js +7 -7
  6. package/cjs/PivotChart.js.map +1 -1
  7. package/cjs/PivotTable.d.ts +9 -2
  8. package/cjs/PivotTable.js +26 -11
  9. package/cjs/PivotTable.js.map +1 -1
  10. package/cjs/body-helper/style/Style.d.ts +3 -0
  11. package/cjs/body-helper/style/Style.js +16 -9
  12. package/cjs/body-helper/style/Style.js.map +1 -1
  13. package/cjs/core/BaseTable.d.ts +7 -1
  14. package/cjs/core/BaseTable.js +4 -2
  15. package/cjs/core/BaseTable.js.map +1 -1
  16. package/cjs/core/tableHelper.js +3 -1
  17. package/cjs/core/tableHelper.js.map +1 -1
  18. package/cjs/edit/edit-manager.js +3 -1
  19. package/cjs/edit/edit-manager.js.map +1 -1
  20. package/cjs/event/listener/container-dom.js +58 -12
  21. package/cjs/event/listener/container-dom.js.map +1 -1
  22. package/cjs/event/listener/table-group.js +2 -1
  23. package/cjs/event/listener/table-group.js.map +1 -1
  24. package/cjs/header-helper/style/Style.d.ts +3 -0
  25. package/cjs/header-helper/style/Style.js +15 -8
  26. package/cjs/header-helper/style/Style.js.map +1 -1
  27. package/cjs/index.d.ts +3 -2
  28. package/cjs/index.js +16 -2
  29. package/cjs/index.js.map +1 -1
  30. package/cjs/layout/pivot-header-layout.d.ts +3 -2
  31. package/cjs/layout/pivot-header-layout.js +24 -18
  32. package/cjs/layout/pivot-header-layout.js.map +1 -1
  33. package/cjs/layout/row-height-map.d.ts +1 -0
  34. package/cjs/layout/row-height-map.js +25 -1
  35. package/cjs/layout/row-height-map.js.map +1 -1
  36. package/cjs/layout/simple-header-layout.d.ts +3 -3
  37. package/cjs/layout/simple-header-layout.js +22 -23
  38. package/cjs/layout/simple-header-layout.js.map +1 -1
  39. package/cjs/plugins/custom-cell-style.js +11 -8
  40. package/cjs/plugins/custom-cell-style.js.map +1 -1
  41. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +29 -7
  42. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  43. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +5 -2
  44. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  45. package/cjs/scenegraph/group-creater/cell-helper.js +11 -4
  46. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  47. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +22 -19
  48. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  49. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +21 -18
  50. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  51. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +7 -7
  52. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  53. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +21 -18
  54. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  55. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +11 -10
  56. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  57. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +7 -7
  58. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  59. package/cjs/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  60. package/cjs/scenegraph/group-creater/progress/default-width-height.js +24 -0
  61. package/cjs/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  62. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +8 -4
  63. package/cjs/scenegraph/group-creater/progress/proxy.js +50 -10
  64. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  65. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +1 -1
  66. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +14 -16
  67. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
  68. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +1 -1
  69. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +28 -30
  70. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  71. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js +1 -1
  72. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -1
  73. package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
  74. package/cjs/scenegraph/layout/compute-row-height.js +3 -2
  75. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  76. package/cjs/scenegraph/layout/move-cell.d.ts +1 -2
  77. package/cjs/scenegraph/layout/move-cell.js +3 -16
  78. package/cjs/scenegraph/layout/move-cell.js.map +1 -1
  79. package/cjs/scenegraph/scenegraph.d.ts +4 -4
  80. package/cjs/scenegraph/scenegraph.js +12 -7
  81. package/cjs/scenegraph/scenegraph.js.map +1 -1
  82. package/cjs/scenegraph/stick-text/index.js +1 -1
  83. package/cjs/scenegraph/stick-text/index.js.map +1 -1
  84. package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  85. package/cjs/scenegraph/utils/cell-border-stroke-width.js +16 -0
  86. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  87. package/cjs/scenegraph/utils/get-prop.js +3 -3
  88. package/cjs/scenegraph/utils/get-prop.js.map +1 -1
  89. package/cjs/scenegraph/utils/text-icon-layout.js +9 -3
  90. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  91. package/cjs/scenegraph/utils/text-measure.d.ts +4 -2
  92. package/cjs/scenegraph/utils/text-measure.js +20 -5
  93. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  94. package/cjs/state/cell-move/index.js +6 -6
  95. package/cjs/state/cell-move/index.js.map +1 -1
  96. package/cjs/state/state.js +2 -2
  97. package/cjs/state/state.js.map +1 -1
  98. package/cjs/themes/theme.d.ts +3 -0
  99. package/cjs/themes/theme.js +20 -0
  100. package/cjs/themes/theme.js.map +1 -1
  101. package/cjs/tools/NumberMap.d.ts +1 -0
  102. package/cjs/tools/NumberMap.js +21 -0
  103. package/cjs/tools/NumberMap.js.map +1 -1
  104. package/cjs/ts-types/base-table.d.ts +7 -0
  105. package/cjs/ts-types/base-table.js.map +1 -1
  106. package/cjs/ts-types/column/style.d.ts +1 -0
  107. package/cjs/ts-types/column/style.js.map +1 -1
  108. package/cjs/ts-types/common.d.ts +5 -3
  109. package/cjs/ts-types/common.js.map +1 -1
  110. package/cjs/ts-types/customElement.d.ts +2 -0
  111. package/cjs/ts-types/customElement.js.map +1 -1
  112. package/cjs/ts-types/style-define.d.ts +2 -0
  113. package/cjs/ts-types/style-define.js.map +1 -1
  114. package/cjs/ts-types/table-engine.d.ts +1 -1
  115. package/cjs/ts-types/table-engine.js.map +1 -1
  116. package/cjs/ts-types/theme.d.ts +3 -0
  117. package/cjs/ts-types/theme.js.map +1 -1
  118. package/cjs/vrender.js.map +1 -1
  119. package/dist/vtable.js +4376 -2132
  120. package/dist/vtable.min.js +2 -2
  121. package/es/ListTable.d.ts +9 -2
  122. package/es/ListTable.js +25 -9
  123. package/es/ListTable.js.map +1 -1
  124. package/es/PivotChart.d.ts +7 -1
  125. package/es/PivotChart.js +7 -7
  126. package/es/PivotChart.js.map +1 -1
  127. package/es/PivotTable.d.ts +9 -2
  128. package/es/PivotTable.js +27 -12
  129. package/es/PivotTable.js.map +1 -1
  130. package/es/body-helper/style/Style.d.ts +3 -0
  131. package/es/body-helper/style/Style.js +16 -9
  132. package/es/body-helper/style/Style.js.map +1 -1
  133. package/es/core/BaseTable.d.ts +7 -1
  134. package/es/core/BaseTable.js +4 -2
  135. package/es/core/BaseTable.js.map +1 -1
  136. package/es/core/tableHelper.js +3 -1
  137. package/es/core/tableHelper.js.map +1 -1
  138. package/es/edit/edit-manager.js +3 -1
  139. package/es/edit/edit-manager.js.map +1 -1
  140. package/es/event/listener/container-dom.js +57 -13
  141. package/es/event/listener/container-dom.js.map +1 -1
  142. package/es/event/listener/table-group.js +1 -1
  143. package/es/event/listener/table-group.js.map +1 -1
  144. package/es/header-helper/style/Style.d.ts +3 -0
  145. package/es/header-helper/style/Style.js +15 -8
  146. package/es/header-helper/style/Style.js.map +1 -1
  147. package/es/index.d.ts +3 -2
  148. package/es/index.js +4 -2
  149. package/es/index.js.map +1 -1
  150. package/es/layout/pivot-header-layout.d.ts +3 -2
  151. package/es/layout/pivot-header-layout.js +24 -18
  152. package/es/layout/pivot-header-layout.js.map +1 -1
  153. package/es/layout/row-height-map.d.ts +1 -0
  154. package/es/layout/row-height-map.js +25 -1
  155. package/es/layout/row-height-map.js.map +1 -1
  156. package/es/layout/simple-header-layout.d.ts +3 -3
  157. package/es/layout/simple-header-layout.js +22 -23
  158. package/es/layout/simple-header-layout.js.map +1 -1
  159. package/es/plugins/custom-cell-style.js +11 -8
  160. package/es/plugins/custom-cell-style.js.map +1 -1
  161. package/es/scenegraph/graphic/contributions/group-contribution-render.js +29 -6
  162. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  163. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +5 -2
  164. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  165. package/es/scenegraph/group-creater/cell-helper.js +11 -4
  166. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  167. package/es/scenegraph/group-creater/cell-type/chart-cell.js +23 -18
  168. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  169. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +22 -17
  170. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  171. package/es/scenegraph/group-creater/cell-type/image-cell.js +8 -6
  172. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  173. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +22 -17
  174. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  175. package/es/scenegraph/group-creater/cell-type/text-cell.js +11 -9
  176. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  177. package/es/scenegraph/group-creater/cell-type/video-cell.js +8 -6
  178. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  179. package/es/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  180. package/es/scenegraph/group-creater/progress/default-width-height.js +18 -0
  181. package/es/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  182. package/es/scenegraph/group-creater/progress/proxy.d.ts +8 -4
  183. package/es/scenegraph/group-creater/progress/proxy.js +51 -11
  184. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  185. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +1 -1
  186. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +14 -16
  187. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
  188. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +1 -1
  189. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +28 -31
  190. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  191. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js +1 -1
  192. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -1
  193. package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
  194. package/es/scenegraph/layout/compute-row-height.js +3 -1
  195. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  196. package/es/scenegraph/layout/move-cell.d.ts +1 -2
  197. package/es/scenegraph/layout/move-cell.js +3 -16
  198. package/es/scenegraph/layout/move-cell.js.map +1 -1
  199. package/es/scenegraph/scenegraph.d.ts +4 -4
  200. package/es/scenegraph/scenegraph.js +12 -7
  201. package/es/scenegraph/scenegraph.js.map +1 -1
  202. package/es/scenegraph/stick-text/index.js +1 -1
  203. package/es/scenegraph/stick-text/index.js.map +1 -1
  204. package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  205. package/es/scenegraph/utils/cell-border-stroke-width.js +10 -0
  206. package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  207. package/es/scenegraph/utils/get-prop.js +3 -3
  208. package/es/scenegraph/utils/get-prop.js.map +1 -1
  209. package/es/scenegraph/utils/text-icon-layout.js +9 -3
  210. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  211. package/es/scenegraph/utils/text-measure.d.ts +4 -2
  212. package/es/scenegraph/utils/text-measure.js +19 -5
  213. package/es/scenegraph/utils/text-measure.js.map +1 -1
  214. package/es/state/cell-move/index.js +6 -6
  215. package/es/state/cell-move/index.js.map +1 -1
  216. package/es/state/state.js +2 -2
  217. package/es/state/state.js.map +1 -1
  218. package/es/themes/theme.d.ts +3 -0
  219. package/es/themes/theme.js +20 -0
  220. package/es/themes/theme.js.map +1 -1
  221. package/es/tools/NumberMap.d.ts +1 -0
  222. package/es/tools/NumberMap.js +21 -0
  223. package/es/tools/NumberMap.js.map +1 -1
  224. package/es/ts-types/base-table.d.ts +7 -0
  225. package/es/ts-types/base-table.js.map +1 -1
  226. package/es/ts-types/column/style.d.ts +1 -0
  227. package/es/ts-types/column/style.js.map +1 -1
  228. package/es/ts-types/common.d.ts +5 -3
  229. package/es/ts-types/common.js.map +1 -1
  230. package/es/ts-types/customElement.d.ts +2 -0
  231. package/es/ts-types/customElement.js.map +1 -1
  232. package/es/ts-types/style-define.d.ts +2 -0
  233. package/es/ts-types/style-define.js.map +1 -1
  234. package/es/ts-types/table-engine.d.ts +1 -1
  235. package/es/ts-types/table-engine.js.map +1 -1
  236. package/es/ts-types/theme.d.ts +3 -0
  237. package/es/ts-types/theme.js.map +1 -1
  238.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,mBAAmB,EAAE,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;YAE3F,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtD,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;YACtD,KAAK,IAAI,GAAG,GAAG,cAAc,EAAE,GAAG,IAAI,YAAY,EAAE,GAAG,EAAE,EAAE;gBACzD,KAAK,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACnC;SACF;KACF;AACH,CAAC;AApKD,gDAoKC","file":"move-cell.js","sourcesContent":["import type { Group } from './../../vrender';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport type { CellRange } from '../../ts-types';\nexport function moveHeaderPosition(\n colSource: number,\n rowSource: number,\n colTarget: number,\n rowTarget: number,\n sourceMergeInfo: false | CellRange,\n targetMergeInfo: false | CellRange,\n table: BaseTableAPI\n) {\n const scene = table.scenegraph;\n\n // 判断方向\n const cellLocation = table.getCellLocation(colTarget, rowTarget);\n const direction = cellLocation === 'columnHeader' ? 'column' : cellLocation === 'rowHeader' ? 'row' : undefined;\n\n let sourceColStart = 0;\n let sourceRowStart = 0;\n let sourceColEnd = 0;\n let sourceRowEnd = 0;\n let targetColStart = 0;\n let targetRowStart = 0;\n let targetColEnd = 0;\n let targetRowEnd = 0;\n if (direction === 'column') {\n if (sourceMergeInfo && targetMergeInfo) {\n sourceColStart = sourceMergeInfo.start.col;\n sourceColEnd = sourceMergeInfo.end.col;\n targetColStart = targetMergeInfo.start.col;\n targetColEnd = targetMergeInfo.end.col;\n\n sourceRowStart = sourceMergeInfo.start.row;\n targetRowStart = targetMergeInfo.start.row;\n } else {\n sourceColStart = colSource;\n sourceColEnd = colSource;\n targetColStart = colTarget;\n targetColEnd = colTarget;\n\n sourceRowStart = rowSource;\n targetRowStart = rowTarget;\n }\n // sourceRowStart = rowSource;\n sourceRowEnd = table.rowCount - 1;\n // targetRowStart = rowTarget;\n targetRowEnd = table.rowCount - 1;\n } else if (direction === 'row') {\n if (sourceMergeInfo && targetMergeInfo) {\n sourceRowStart = sourceMergeInfo.start.row;\n sourceRowEnd = sourceMergeInfo.end.row;\n targetRowStart = targetMergeInfo.start.row;\n targetRowEnd = targetMergeInfo.end.row;\n\n sourceColStart = sourceMergeInfo.start.col;\n targetColStart = targetMergeInfo.start.col;\n } else {\n sourceRowStart = rowSource;\n sourceRowEnd = rowSource;\n targetRowStart = rowTarget;\n targetRowEnd = rowTarget;\n\n sourceColStart = colSource;\n targetColStart = colTarget;\n }\n // sourceColStart = colSource;\n sourceColEnd = table.colCount - 1;\n // targetColStart = colTarget;\n targetColEnd = table.colCount - 1;\n }\n\n const updateColStart = Math.min(sourceColStart, targetColStart);\n const updateColEnd = Math.max(sourceColEnd, targetColEnd);\n const updateRowStart = Math.min(sourceRowStart, targetRowStart);\n const updateRowEnd = Math.max(sourceRowEnd, targetRowEnd);\n\n // 更新columnGroup列宽\n for (let col = updateColStart; col <= updateColEnd; col++) {\n const columnWidth = table.getColWidth(col);\n const columnHeaderGroup = table.scenegraph.getColGroup(col, true);\n const columnGroup = table.scenegraph.getColGroup(col);\n const columnBottomGroup = table.scenegraph.getColGroupInBottom(col);\n const columnLeftBottomGroup = table.scenegraph.getColGroupInLeftBottomCorner(col);\n const columnRightBottomGroup = table.scenegraph.getColGroupInRightBottomCorner(col);\n if (columnHeaderGroup) {\n columnHeaderGroup.setAttribute('width', columnWidth);\n columnHeaderGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnGroup) {\n columnGroup.setAttribute('width', columnWidth);\n columnGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnBottomGroup) {\n columnBottomGroup.setAttribute('width', columnWidth);\n columnBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnRightBottomGroup) {\n columnRightBottomGroup.setAttribute('width', columnWidth);\n columnRightBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnLeftBottomGroup) {\n columnLeftBottomGroup.setAttribute('width', columnWidth);\n columnLeftBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n }\n\n // 更新容器尺寸\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer();\n\n if (direction === 'column') {\n for (let col = updateColStart; col <= updateColEnd; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n\n // 将上下表头 和中间body部分分别更新\n for (let row = 0; row <= table.frozenRowCount - 1; row++) {\n scene.updateCellContent(col, row);\n }\n for (let row = scene.bodyRowStart; row <= scene.bodyRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n for (let row = table.rowCount - table.bottomFrozenRowCount; row <= table.rowCount - 1; row++) {\n scene.updateCellContent(col, row);\n }\n }\n } else {\n // 将左侧冻结列or行表头的单元格更新\n for (let col = 0; col <= table.frozenColCount - 1; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n // 将中间body的单元格更新\n for (let col = scene.bodyColStart; col <= scene.bodyColEnd; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n // 将右侧冻结列的单元格更新\n for (let col = table.colCount - table.rightFrozenColCount; col <= table.colCount - 1; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/scenegraph/layout/move-cell.ts"],"names":[],"mappings":";;;AAGA,SAAgB,kBAAkB,CAChC,cAAsB,EACtB,YAAoB,EACpB,cAAsB,EACtB,YAAoB,EACpB,QAA0B,EAG1B,KAAmB;IAEnB,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC;IAG/B,KAAK,IAAI,GAAG,GAAG,cAAc,EAAE,GAAG,IAAI,YAAY,EAAE,GAAG,EAAE,EAAE;QACzD,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACtD,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACpE,MAAM,qBAAqB,GAAG,KAAK,CAAC,UAAU,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAAC;QAClF,MAAM,sBAAsB,GAAG,KAAK,CAAC,UAAU,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;QACpF,IAAI,iBAAiB,EAAE;YACrB,iBAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YACrD,iBAAiB,CAAC,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE;gBACjD,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;SACJ;QACD,IAAI,WAAW,EAAE;YACf,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC/C,WAAW,CAAC,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE;gBAC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,GAAG,IAAI,YAAY,EAAE,GAAG,EAAE,EAAE;gBACzD,KAAK,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACnC;SACF;QAED,KAAK,IAAI,GAAG,GAAG,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,mBAAmB,EAAE,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;YAE3F,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtD,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;YACtD,KAAK,IAAI,GAAG,GAAG,cAAc,EAAE,GAAG,IAAI,YAAY,EAAE,GAAG,EAAE,EAAE;gBACzD,KAAK,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACnC;SACF;KACF;AACH,CAAC;AAtGD,gDAsGC","file":"move-cell.js","sourcesContent":["import type { Group } from './../../vrender';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport type { CellRange } from '../../ts-types';\nexport function moveHeaderPosition(\n updateColStart: number,\n updateColEnd: number,\n updateRowStart: number,\n updateRowEnd: number,\n moveType: 'column' | 'row',\n // sourceMergeInfo: false | CellRange,\n // targetMergeInfo: false | CellRange,\n table: BaseTableAPI\n) {\n const scene = table.scenegraph;\n\n // 更新columnGroup列宽\n for (let col = updateColStart; col <= updateColEnd; col++) {\n const columnWidth = table.getColWidth(col);\n const columnHeaderGroup = table.scenegraph.getColGroup(col, true);\n const columnGroup = table.scenegraph.getColGroup(col);\n const columnBottomGroup = table.scenegraph.getColGroupInBottom(col);\n const columnLeftBottomGroup = table.scenegraph.getColGroupInLeftBottomCorner(col);\n const columnRightBottomGroup = table.scenegraph.getColGroupInRightBottomCorner(col);\n if (columnHeaderGroup) {\n columnHeaderGroup.setAttribute('width', columnWidth);\n columnHeaderGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnGroup) {\n columnGroup.setAttribute('width', columnWidth);\n columnGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnBottomGroup) {\n columnBottomGroup.setAttribute('width', columnWidth);\n columnBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnRightBottomGroup) {\n columnRightBottomGroup.setAttribute('width', columnWidth);\n columnRightBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n if (columnLeftBottomGroup) {\n columnLeftBottomGroup.setAttribute('width', columnWidth);\n columnLeftBottomGroup.forEachChildren((child: Group) => {\n child.setAttribute('width', columnWidth);\n });\n }\n }\n\n // 更新容器尺寸\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer();\n\n if (moveType === 'column') {\n for (let col = updateColStart; col <= updateColEnd; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n\n // 将上下表头 和中间body部分分别更新\n for (let row = 0; row <= table.frozenRowCount - 1; row++) {\n scene.updateCellContent(col, row);\n }\n for (let row = scene.bodyRowStart; row <= scene.bodyRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n for (let row = table.rowCount - table.bottomFrozenRowCount; row <= table.rowCount - 1; row++) {\n scene.updateCellContent(col, row);\n }\n }\n } else {\n // 将左侧冻结列or行表头的单元格更新\n for (let col = 0; col <= table.frozenColCount - 1; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n // 将中间body的单元格更新\n for (let col = scene.bodyColStart; col <= scene.bodyColEnd; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n // 将右侧冻结列的单元格更新\n for (let col = table.colCount - table.rightFrozenColCount; col <= table.colCount - 1; col++) {\n // 将该列的chartInstance清除掉\n const columnGroup = table.scenegraph.getColGroup(col);\n columnGroup?.setAttribute('chartInstance', undefined);\n for (let row = updateRowStart; row <= updateRowEnd; row++) {\n scene.updateCellContent(col, row);\n }\n }\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { IStage, IRect } from './../vrender';
2
- import type { CellRange, CellSubLocation } from '../ts-types';
2
+ import type { CellSubLocation } from '../ts-types';
3
3
  import { type CellAddress, type SortOrder } from '../ts-types';
4
4
  import type { Group } from './graphic/group';
5
5
  import type { Icon } from './graphic/icon';
@@ -110,8 +110,8 @@ export declare class Scenegraph {
110
110
  updateContainerHeight(row: number, detaY: number): void;
111
111
  setColWidth(col: number, width: number): void;
112
112
  setRowHeight(row: number, height: number): void;
113
- setX(x: number): void;
114
- setY(y: number): void;
113
+ setX(x: number, isEnd?: boolean): void;
114
+ setY(y: number, isEnd?: boolean): void;
115
115
  setBodyAndRowHeaderY(y: number): void;
116
116
  setBodyAndColHeaderX(x: number): void;
117
117
  afterScenegraphCreated(): void;
@@ -120,7 +120,7 @@ export declare class Scenegraph {
120
120
  dealFrozen(): void;
121
121
  resetFrozen(): void;
122
122
  updateCellLayoutWidthCertainWidth(columnGroup: Group, detaRow: number, col: number): boolean;
123
- updateHeaderPosition(colSource: number, rowSource: number, colTarget: number, rowTarget: number, sourceMergeInfo: false | CellRange, targetMergeInfo: false | CellRange): void;
123
+ updateHeaderPosition(updateColStart: number, updateColEnd: number, updateRowStart: number, updateRowEnd: number, moveType: 'column' | 'row'): void;
124
124
  updateContainerAttrWidthAndX(): void;
125
125
  updateContainer(): void;
126
126
  updateCellContentWhileResize(col: number, row: number): void;
@@ -154,7 +154,7 @@ class Scenegraph {
154
154
  this.component.updateStyle();
155
155
  }
156
156
  createSceneGraph() {
157
- (this.table.isPivotChart() || this.table._hasCustomRenderOrLayout()) && this.stage.pluginService.autoEnablePlugins.getContributions().forEach((p => {
157
+ this.table.rowHeightsMap.clear(), (this.table.isPivotChart() || this.table._hasCustomRenderOrLayout()) && this.stage.pluginService.autoEnablePlugins.getContributions().forEach((p => {
158
158
  "poptipForText" === p.name && this.stage.pluginService.register(p);
159
159
  })), this.clear = !1, this.frozenColCount = this.table.frozenColCount, this.frozenRowCount = this.table.columnHeaderLevelCount,
160
160
  this.proxy = new proxy_1.SceneProxy(this.table), (0, frame_border_1.createFrameBorder)(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, void 0, !0),
@@ -446,19 +446,24 @@ class Scenegraph {
446
446
  oldHeight !== height && ((row >= this.proxy.rowStart && row <= this.proxy.rowEnd || row >= this.table.rowCount - this.table.bottomFrozenRowCount && row <= this.table.rowCount - 1) && this.updateRowHeight(row, height - oldHeight),
447
447
  this.table._clearRowRangeHeightsMap(row));
448
448
  }
449
- setX(x) {
450
- this.table.scenegraph.proxy.setX(-x);
449
+ setX(x, isEnd = !1) {
450
+ this.table.scenegraph.proxy.setX(-x, isEnd);
451
451
  }
452
- setY(y) {
453
- this.table.scenegraph.proxy.setY(-y);
452
+ setY(y, isEnd = !1) {
453
+ this.table.scenegraph.proxy.setY(-y, isEnd);
454
454
  }
455
455
  setBodyAndRowHeaderY(y) {
456
+ var _a, _b;
457
+ const firstBodyCell = null === (_a = this.bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.firstChild, lastBodyCell = null === (_b = this.bodyGroup.firstChild) || void 0 === _b ? void 0 : _b.lastChild;
458
+ 0 === y && firstBodyCell && firstBodyCell.row === this.table.frozenRowCount && firstBodyCell.attribute.y + y < 0 ? y = -firstBodyCell.attribute.y : lastBodyCell && this.table.tableNoFrameHeight < this.table.getAllRowsHeight() && lastBodyCell.row === this.table.rowCount - this.table.bottomFrozenRowCount - 1 && lastBodyCell.attribute.y + lastBodyCell.attribute.height + y < this.table.tableNoFrameHeight - this.table.getFrozenRowsHeight() - this.table.getBottomFrozenRowsHeight() && (y = this.table.tableNoFrameHeight - this.table.getFrozenRowsHeight() - this.table.getBottomFrozenRowsHeight() - lastBodyCell.attribute.y - lastBodyCell.attribute.height),
456
459
  this.colHeaderGroup.attribute.height + y !== this.bodyGroup.attribute.y && (this.bodyGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
457
460
  this.rowHeaderGroup.setAttribute("y", this.cornerHeaderGroup.attribute.height + y),
458
461
  this.table.rightFrozenColCount > 0 && this.rightFrozenGroup.setAttribute("y", this.rightTopCornerGroup.attribute.height + y),
459
462
  this.updateNextFrame());
460
463
  }
461
464
  setBodyAndColHeaderX(x) {
465
+ const firstBodyCol = this.bodyGroup.firstChild, lastBodyCol = this.bodyGroup.lastChild;
466
+ 0 === x && firstBodyCol && firstBodyCol.col === this.table.frozenColCount && firstBodyCol.attribute.x + x < 0 ? x = -firstBodyCol.attribute.x : lastBodyCol && this.table.tableNoFrameWidth < this.table.getAllColsWidth() && lastBodyCol.col === this.table.colCount - this.table.rightFrozenColCount - 1 && lastBodyCol.attribute.x + lastBodyCol.attribute.width + x < this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() && (x = this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() - lastBodyCol.attribute.x - lastBodyCol.attribute.width),
462
467
  this.table.getFrozenColsWidth() + x !== this.bodyGroup.attribute.x && (this.bodyGroup.setAttribute("x", this.table.getFrozenColsWidth() + x),
463
468
  this.colHeaderGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.table.bottomFrozenRowCount > 0 && this.bottomFrozenGroup.setAttribute("x", this.table.getFrozenColsWidth() + x),
464
469
  this.updateNextFrame());
@@ -576,8 +581,8 @@ class Scenegraph {
576
581
  (rowHeight === oldCellHeight || newCellHeight > rowHeight) && (isUpdate = !0));
577
582
  })), isUpdate;
578
583
  }
579
- updateHeaderPosition(colSource, rowSource, colTarget, rowTarget, sourceMergeInfo, targetMergeInfo) {
580
- (0, move_cell_1.moveHeaderPosition)(colSource, rowSource, colTarget, rowTarget, sourceMergeInfo, targetMergeInfo, this.table);
584
+ updateHeaderPosition(updateColStart, updateColEnd, updateRowStart, updateRowEnd, moveType) {
585
+ (0, move_cell_1.moveHeaderPosition)(updateColStart, updateColEnd, updateRowStart, updateRowEnd, moveType, this.table);
581
586
  }
582
587
  updateContainerAttrWidthAndX() {
583
588
  var _a, _b, _c;