@visactor/vtable 1.19.9-alpha.3 → 1.20.0-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 (212) hide show
  1. package/cjs/ListTable.d.ts +8 -2
  2. package/cjs/ListTable.js +58 -11
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotChart.d.ts +4 -1
  5. package/cjs/PivotChart.js +8 -3
  6. package/cjs/PivotChart.js.map +1 -1
  7. package/cjs/PivotTable.d.ts +4 -1
  8. package/cjs/PivotTable.js +8 -3
  9. package/cjs/PivotTable.js.map +1 -1
  10. package/cjs/core/BaseTable.d.ts +14 -1
  11. package/cjs/core/BaseTable.js +121 -28
  12. package/cjs/core/BaseTable.js.map +1 -1
  13. package/cjs/core/TABLE_EVENT_TYPE.d.ts +4 -0
  14. package/cjs/core/TABLE_EVENT_TYPE.js +5 -1
  15. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  16. package/cjs/core/animation.js.map +1 -1
  17. package/cjs/core/group-helper.d.ts +3 -1
  18. package/cjs/core/group-helper.js +8 -4
  19. package/cjs/core/group-helper.js.map +1 -1
  20. package/cjs/core/utils/get-cell-position.js +2 -2
  21. package/cjs/core/utils/get-cell-position.js.map +1 -1
  22. package/cjs/data/DataSource.d.ts +1 -0
  23. package/cjs/data/DataSource.js +21 -12
  24. package/cjs/data/DataSource.js.map +1 -1
  25. package/cjs/edit/edit-manager.js +5 -4
  26. package/cjs/edit/edit-manager.js.map +1 -1
  27. package/cjs/event/drill.js +2 -1
  28. package/cjs/event/event.d.ts +17 -0
  29. package/cjs/event/event.js +238 -4
  30. package/cjs/event/event.js.map +1 -1
  31. package/cjs/event/listener/container-dom.js +8 -153
  32. package/cjs/event/listener/container-dom.js.map +1 -1
  33. package/cjs/event/listener/scroll-bar.js +1 -1
  34. package/cjs/event/listener/scroll-bar.js.map +1 -1
  35. package/cjs/event/listener/table-group.js +27 -25
  36. package/cjs/event/listener/table-group.js.map +1 -1
  37. package/cjs/index.d.ts +1 -1
  38. package/cjs/index.js +1 -1
  39. package/cjs/index.js.map +1 -1
  40. package/cjs/layout/pivot-header-layout.js +1 -1
  41. package/cjs/layout/pivot-layout.js +2 -0
  42. package/cjs/layout/row-height-map.js +1 -1
  43. package/cjs/layout/simple-header-layout.js +1 -1
  44. package/cjs/layout/tree-helper.js +1 -1
  45. package/cjs/plugins/custom-cell-style.js +1 -2
  46. package/cjs/plugins/index.js +1 -1
  47. package/cjs/plugins/interface.js +1 -1
  48. package/cjs/plugins/invert-highlight.js +1 -1
  49. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  50. package/cjs/plugins/plugin-manager.js +1 -1
  51. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +1 -4
  52. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  53. package/cjs/scenegraph/graphic/contributions/chart-render.js +1 -4
  54. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  55. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js +1 -7
  56. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -1
  57. package/cjs/scenegraph/group-creater/cell-helper.js +2 -1
  58. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  59. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  60. package/cjs/scenegraph/layout/compute-col-width.js +3 -1
  61. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  62. package/cjs/scenegraph/layout/frozen.js +7 -4
  63. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  64. package/cjs/scenegraph/scenegraph.d.ts +6 -2
  65. package/cjs/scenegraph/scenegraph.js +31 -7
  66. package/cjs/scenegraph/scenegraph.js.map +1 -1
  67. package/cjs/scenegraph/select/create-select-border.d.ts +2 -0
  68. package/cjs/scenegraph/select/create-select-border.js +2 -2
  69. package/cjs/scenegraph/select/create-select-border.js.map +1 -1
  70. package/cjs/scenegraph/select/update-custom-select-border.d.ts +6 -0
  71. package/cjs/scenegraph/select/update-custom-select-border.js +69 -0
  72. package/cjs/scenegraph/select/update-custom-select-border.js.map +1 -0
  73. package/cjs/scenegraph/select/update-select-border.js +4 -12
  74. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  75. package/cjs/scenegraph/utils/cell-pos.d.ts +12 -0
  76. package/cjs/scenegraph/utils/cell-pos.js +26 -1
  77. package/cjs/scenegraph/utils/cell-pos.js.map +1 -1
  78. package/cjs/scenegraph/utils/update-container.d.ts +1 -0
  79. package/cjs/scenegraph/utils/update-container.js +8 -1
  80. package/cjs/scenegraph/utils/update-container.js.map +1 -1
  81. package/cjs/state/select/custom-select.d.ts +2 -2
  82. package/cjs/state/select/custom-select.js +2 -14
  83. package/cjs/state/select/custom-select.js.map +1 -1
  84. package/cjs/state/select/update-position.js +1 -1
  85. package/cjs/state/select/update-position.js.map +1 -1
  86. package/cjs/state/state.d.ts +4 -7
  87. package/cjs/state/state.js +14 -2
  88. package/cjs/state/state.js.map +1 -1
  89. package/cjs/themes/theme-define.js +1 -1
  90. package/cjs/themes/theme-define.js.map +1 -1
  91. package/cjs/tools/style.d.ts +3 -1
  92. package/cjs/tools/style.js +23 -2
  93. package/cjs/tools/style.js.map +1 -1
  94. package/cjs/ts-types/base-table.d.ts +6 -0
  95. package/cjs/ts-types/base-table.js.map +1 -1
  96. package/cjs/ts-types/events.d.ts +21 -1
  97. package/cjs/ts-types/events.js.map +1 -1
  98. package/cjs/ts-types/new-data-set.d.ts +1 -0
  99. package/cjs/ts-types/new-data-set.js.map +1 -1
  100. package/cjs/ts-types/style-define.d.ts +6 -0
  101. package/cjs/ts-types/style-define.js.map +1 -1
  102. package/cjs/ts-types/table-engine.d.ts +3 -0
  103. package/cjs/ts-types/table-engine.js.map +1 -1
  104. package/cjs/vrender.js.map +1 -1
  105. package/dist/vtable.js +2402 -465
  106. package/dist/vtable.min.js +2 -2
  107. package/es/ListTable.d.ts +8 -2
  108. package/es/ListTable.js +59 -9
  109. package/es/ListTable.js.map +1 -1
  110. package/es/PivotChart.d.ts +4 -1
  111. package/es/PivotChart.js +8 -3
  112. package/es/PivotChart.js.map +1 -1
  113. package/es/PivotTable.d.ts +4 -1
  114. package/es/PivotTable.js +8 -3
  115. package/es/PivotTable.js.map +1 -1
  116. package/es/core/BaseTable.d.ts +14 -1
  117. package/es/core/BaseTable.js +116 -24
  118. package/es/core/BaseTable.js.map +1 -1
  119. package/es/core/TABLE_EVENT_TYPE.d.ts +4 -0
  120. package/es/core/TABLE_EVENT_TYPE.js +5 -1
  121. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  122. package/es/core/animation.js +1 -1
  123. package/es/core/animation.js.map +1 -1
  124. package/es/core/group-helper.d.ts +3 -1
  125. package/es/core/group-helper.js +8 -4
  126. package/es/core/group-helper.js.map +1 -1
  127. package/es/core/utils/get-cell-position.js +2 -2
  128. package/es/core/utils/get-cell-position.js.map +1 -1
  129. package/es/data/DataSource.d.ts +1 -0
  130. package/es/data/DataSource.js +21 -12
  131. package/es/data/DataSource.js.map +1 -1
  132. package/es/edit/edit-manager.js +5 -4
  133. package/es/edit/edit-manager.js.map +1 -1
  134. package/es/event/drill.js +2 -1
  135. package/es/event/event.d.ts +17 -0
  136. package/es/event/event.js +240 -3
  137. package/es/event/event.js.map +1 -1
  138. package/es/event/listener/container-dom.js +9 -154
  139. package/es/event/listener/container-dom.js.map +1 -1
  140. package/es/event/listener/scroll-bar.js +1 -1
  141. package/es/event/listener/scroll-bar.js.map +1 -1
  142. package/es/event/listener/table-group.js +27 -25
  143. package/es/event/listener/table-group.js.map +1 -1
  144. package/es/index.d.ts +1 -1
  145. package/es/index.js +1 -1
  146. package/es/index.js.map +1 -1
  147. package/es/layout/pivot-header-layout.js +1 -1
  148. package/es/layout/pivot-layout.js +2 -0
  149. package/es/layout/row-height-map.js +1 -1
  150. package/es/layout/simple-header-layout.js +1 -1
  151. package/es/layout/tree-helper.js +1 -1
  152. package/es/plugins/custom-cell-style.js +1 -2
  153. package/es/plugins/index.js +1 -1
  154. package/es/plugins/interface.js +1 -1
  155. package/es/plugins/invert-highlight.js +1 -1
  156. package/es/plugins/list-tree-stick-cell.js +1 -1
  157. package/es/plugins/plugin-manager.js +1 -1
  158. package/es/scenegraph/graphic/contributions/chart-render-helper.js +1 -4
  159. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  160. package/es/scenegraph/graphic/contributions/chart-render.js +1 -4
  161. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  162. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js +1 -7
  163. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -1
  164. package/es/scenegraph/group-creater/cell-helper.js +2 -1
  165. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  166. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  167. package/es/scenegraph/layout/compute-col-width.js +3 -1
  168. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  169. package/es/scenegraph/layout/frozen.js +7 -4
  170. package/es/scenegraph/layout/frozen.js.map +1 -1
  171. package/es/scenegraph/scenegraph.d.ts +6 -2
  172. package/es/scenegraph/scenegraph.js +29 -8
  173. package/es/scenegraph/scenegraph.js.map +1 -1
  174. package/es/scenegraph/select/create-select-border.d.ts +2 -0
  175. package/es/scenegraph/select/create-select-border.js +1 -1
  176. package/es/scenegraph/select/create-select-border.js.map +1 -1
  177. package/es/scenegraph/select/update-custom-select-border.d.ts +6 -0
  178. package/es/scenegraph/select/update-custom-select-border.js +63 -0
  179. package/es/scenegraph/select/update-custom-select-border.js.map +1 -0
  180. package/es/scenegraph/select/update-select-border.js +4 -11
  181. package/es/scenegraph/select/update-select-border.js.map +1 -1
  182. package/es/scenegraph/utils/cell-pos.d.ts +12 -0
  183. package/es/scenegraph/utils/cell-pos.js +24 -0
  184. package/es/scenegraph/utils/cell-pos.js.map +1 -1
  185. package/es/scenegraph/utils/update-container.d.ts +1 -0
  186. package/es/scenegraph/utils/update-container.js +6 -0
  187. package/es/scenegraph/utils/update-container.js.map +1 -1
  188. package/es/state/select/custom-select.d.ts +2 -2
  189. package/es/state/select/custom-select.js +3 -15
  190. package/es/state/select/custom-select.js.map +1 -1
  191. package/es/state/select/update-position.js +1 -1
  192. package/es/state/select/update-position.js.map +1 -1
  193. package/es/state/state.d.ts +4 -7
  194. package/es/state/state.js +14 -2
  195. package/es/state/state.js.map +1 -1
  196. package/es/themes/theme-define.js +1 -1
  197. package/es/themes/theme-define.js.map +1 -1
  198. package/es/tools/style.d.ts +3 -1
  199. package/es/tools/style.js +20 -0
  200. package/es/tools/style.js.map +1 -1
  201. package/es/ts-types/base-table.d.ts +6 -0
  202. package/es/ts-types/base-table.js.map +1 -1
  203. package/es/ts-types/events.d.ts +21 -1
  204. package/es/ts-types/events.js.map +1 -1
  205. package/es/ts-types/new-data-set.d.ts +1 -0
  206. package/es/ts-types/new-data-set.js.map +1 -1
  207. package/es/ts-types/style-define.d.ts +6 -0
  208. package/es/ts-types/style-define.js.map +1 -1
  209. package/es/ts-types/table-engine.d.ts +3 -0
  210. package/es/ts-types/table-engine.js.map +1 -1
  211. package/es/vrender.js.map +1 -1
  212. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/scenegraph/layout/frozen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,UAAU,UAAU,CAAC,KAAiB;;IAC1C,IAAI,KAAK,CAAC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE;QAEhE,KAAK,CA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mB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAC3B,SAAS;SACV;QACD,MAAM,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAU,CAAC;QAC3D,IAAI,CAAC,MAAM,EAAE;YACX,SAAS;SACV;QACD,MAAM,OAAO,GAAG,KAAK,CAAC,SAAkB,CAAC;QAEzC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,UAAmB,CAAC,CAAC;QAE1D,IAAI,CAAC,cAAc,EAAE;YACnB,KAAK,CAAC,mBAAmB,CAAC,YAAY,CACpC,QAAQ,EACR,KAAK,CAAC,mBAAmB,CAAC,SAAS,CAAC,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CACtE,CAAC;YACF,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAClH,cAAc,GAAG,IAAI,CAAC;SACvB;KACF;AACH,CAAC;AAED,SAAS,eAAe,CAAC,KAAU;IAEjC,OAAO,KAAK,YAAY,KAAK,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,mBAAmB,CAAC;AACvE,CAAC","file":"frozen.js","sourcesContent":["import { getStyleTheme } from '../../core/tableHelper';\nimport { getTargetCell } from '../../event/util';\nimport { Group } from '../graphic/group';\nimport { createColGroup } from '../group-creater/column';\nimport type { Scenegraph } from '../scenegraph';\nimport { getProp } from '../utils/get-prop';\nimport { table } from 'console';\nimport { updateReactComponentContainer } from './frozen-react';\n\nexport function dealFrozen(scene: Scenegraph) {\n if (scene.table.frozenColCount > scene.table.rowHeaderLevelCount) {\n // 将对应列移入rowHeaderGroup\n scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);\n scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.frozenColCount - scene.table.rowHeaderLevelCount; i++) {\n moveColumnFromBodyToRowHeader(scene);\n moveColumnFromColHeaderToCornerHeader(scene);\n moveColumnFromBottomToLeftBottomCorner(scene);\n }\n } else if (scene.table.frozenColCount < scene.table.rowHeaderLevelCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);\n scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);\n scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.table.frozenColCount; i++) {\n moveColumnFromRowHeaderToBody(scene);\n moveColumnFromCornerHeaderToColHeader(scene);\n moveColumnFromLeftBottomCornerToBottom(scene);\n }\n }\n scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);\n\n scene.updateContainer();\n scene.updateBorderSizeAndPosition();\n\n if (!scene.isPivot && !(scene.table as any).transpose) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n }\n scene.hasFrozen = true;\n\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenColCount = scene.table.frozenColCount;\n scene.frozenRowCount =\n scene.colHeaderGroup.firstChild?.childrenCount ??\n scene.cornerHeaderGroup.firstChild?.childrenCount ??\n scene.table.frozenRowCount;\n}\n\nexport function resetFrozen(scene: Scenegraph) {\n if (scene.frozenColCount > scene.table.frozenColCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);\n scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);\n scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);\n for (let i = 0; i < scene.frozenColCount - scene.table.frozenColCount; i++) {\n moveColumnFromRowHeaderToBody(scene);\n moveColumnFromCornerHeaderToColHeader(scene);\n moveColumnFromLeftBottomCornerToBottom(scene);\n }\n } else if (scene.frozenColCount < scene.table.frozenColCount) {\n // move columnGroup from bodyGroup into rowHeaderGroup(from colHeaderGroup into cornerHeaderGroup)\n scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);\n scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.frozenColCount - scene.frozenColCount; i++) {\n moveColumnFromBodyToRowHeader(scene);\n moveColumnFromColHeaderToCornerHeader(scene);\n moveColumnFromBottomToLeftBottomCorner(scene);\n }\n }\n\n updateReactComponentContainer(scene);\n scene.recreateAllSelectRangeComponents();\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenColCount = scene.table.frozenColCount;\n scene.frozenRowCount =\n scene.colHeaderGroup.firstChild?.childrenCount ??\n scene.cornerHeaderGroup.firstChild?.childrenCount ??\n scene.table.frozenRowCount;\n // scene.proxy.colStart = scene.table.frozenColCount;\n scene.proxy.colStart = (scene.bodyGroup.firstChild as any)?.col ?? scene.table.frozenColCount;\n\n scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer();\n scene.updateBorderSizeAndPosition();\n\n if (!scene.isPivot && !(scene.table as any).transpose) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n } else if (scene.table.options.rightFrozenColCount) {\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n }\n scene.hasFrozen = true;\n}\n\nfunction moveColumnFromBodyToRowHeader(scene: Scenegraph) {\n // deal with bodyGroup\n const column = scene.bodyGroup.firstChild instanceof Group ? scene.bodyGroup.firstChild : null;\n if (column) {\n scene.rowHeaderGroup.appendChild(column);\n // update container width\n scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width + column.attribute.width);\n scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width - column.attribute.width);\n }\n}\n\nfunction moveColumnFromColHeaderToCornerHeader(scene: Scenegraph) {\n // deal width colHeaderGroup\n const headerColumn = scene.colHeaderGroup.firstChild instanceof Group ? scene.colHeaderGroup.firstChild : null;\n if (headerColumn) {\n scene.cornerHeaderGroup.appendChild(headerColumn);\n scene.cornerHeaderGroup.setAttribute(\n 'width',\n scene.cornerHeaderGroup.attribute.width + headerColumn.attribute.width\n );\n scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width - headerColumn.attribute.width);\n }\n}\n\nfunction moveColumnFromRowHeaderToBody(scene: Scenegraph) {\n const column =\n scene.rowHeaderGroup.lastChild instanceof Group\n ? scene.rowHeaderGroup.lastChild\n : (scene.rowHeaderGroup.lastChild?._prev as Group);\n if (column) {\n insertBefore(scene.bodyGroup, column, scene.bodyGroup.firstChild as Group);\n // 更新容器宽度\n scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width + column.attribute.width);\n scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width - column.attribute.width);\n }\n}\n\nfunction moveColumnFromCornerHeaderToColHeader(scene: Scenegraph) {\n // 处理列表头\n const headerColumn =\n scene.cornerHeaderGroup.lastChild instanceof Group\n ? scene.cornerHeaderGroup.lastChild\n : (scene.cornerHeaderGroup.lastChild?._prev as Group);\n if (headerColumn) {\n insertBefore(scene.colHeaderGroup, headerColumn, scene.colHeaderGroup.firstChild as Group);\n scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width + headerColumn.attribute.width);\n scene.cornerHeaderGroup.setAttribute(\n 'width',\n scene.cornerHeaderGroup.attribute.width - headerColumn.attribute.width\n );\n }\n}\n\nfunction moveColumnFromBottomToLeftBottomCorner(scene: Scenegraph) {\n // deal with bottomFrozenGroup\n const column = scene.bottomFrozenGroup.firstChild instanceof Group ? scene.bottomFrozenGroup.firstChild : null;\n if (column) {\n scene.leftBottomCornerGroup.appendChild(column);\n // update container width\n scene.leftBottomCornerGroup.setAttribute(\n 'width',\n scene.leftBottomCornerGroup.attribute.width + column.attribute.width\n );\n scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width - column.attribute.width);\n\n if (scene.table.isPivotChart()) {\n column.forEachChildren((child: Group) => {\n child.setAttributes({\n stroke: false,\n fill: false\n });\n });\n }\n }\n}\n\nfunction moveColumnFromLeftBottomCornerToBottom(scene: Scenegraph) {\n const column =\n scene.leftBottomCornerGroup.lastChild instanceof Group\n ? scene.leftBottomCornerGroup.lastChild\n : (scene.leftBottomCornerGroup.lastChild?._prev as Group);\n if (column) {\n insertBefore(scene.bottomFrozenGroup, column, scene.bottomFrozenGroup.firstChild as Group);\n // 更新容器宽度\n scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width + column.attribute.width);\n scene.leftBottomCornerGroup.setAttribute(\n 'width',\n scene.leftBottomCornerGroup.attribute.width - column.attribute.width\n );\n\n if (scene.table.isPivotChart()) {\n column.forEachChildren((child: Group) => {\n const cellStyle = scene.table._getCellStyle(child.col, child.row);\n const range = scene.table.getCellRange(child.col, child.row);\n const cellTheme = getStyleTheme(\n cellStyle,\n scene.table,\n range ? range.start.col : child.col,\n range ? range.start.row : child.row,\n getProp\n ).theme;\n\n child.setAttributes({\n fill: cellTheme?.group?.fill ?? undefined,\n stroke: cellTheme?.group?.stroke ?? undefined\n });\n });\n }\n }\n}\n\nexport function dealRightFrozen(distRightFrozenCol: number, scene: Scenegraph) {\n const {\n table,\n proxy,\n rightTopCornerGroup,\n rightFrozenGroup,\n rightBottomCornerGroup,\n bottomFrozenGroup,\n bodyGroup,\n colHeaderGroup\n } = scene;\n // const distRightFrozenCol = scene.table.rightFrozenColCount;\n const currentRightFrozenCol = scene.table.rightFrozenColCount;\n if (distRightFrozenCol > currentRightFrozenCol) {\n for (let col = table.colCount - currentRightFrozenCol - 1; col >= table.colCount - distRightFrozenCol; col--) {\n const colGroup = scene.getColGroup(col);\n insertBefore(rightFrozenGroup, colGroup, rightFrozenGroup.firstChild as Group);\n const headerColGroup = scene.getColGroup(col, true);\n insertBefore(rightTopCornerGroup, headerColGroup, rightTopCornerGroup.firstChild as Group);\n const bottomColGroup = scene.getColGroupInBottom(col);\n insertBefore(rightBottomCornerGroup, bottomColGroup, rightBottomCornerGroup.firstChild as Group);\n }\n // reset cell y\n let x = 0;\n rightFrozenGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightTopCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightBottomCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n } else if (distRightFrozenCol < currentRightFrozenCol) {\n for (let col = table.colCount - currentRightFrozenCol; col < table.colCount - distRightFrozenCol; col++) {\n const colGroup = scene.getColGroup(col);\n colGroup.setAttribute(\n 'x',\n (bodyGroup.lastChild as Group).attribute.x + table.getColWidth((bodyGroup.lastChild as Group).col)\n );\n bodyGroup.appendChild(colGroup);\n const headerColGroup = scene.getColGroupInRightTopCorner(col);\n headerColGroup.setAttribute(\n 'x',\n (colHeaderGroup.lastChild as Group).attribute.x + table.getColWidth((colHeaderGroup.lastChild as Group).col)\n );\n colHeaderGroup.appendChild(headerColGroup);\n const bottomColGroup = scene.getColGroupInRightBottomCorner(col);\n bottomColGroup.setAttribute(\n 'x',\n (bottomFrozenGroup.lastChild as Group).attribute.x +\n table.getColWidth((bottomFrozenGroup.lastChild as Group).col)\n );\n bottomFrozenGroup.appendChild(bottomColGroup);\n }\n // reset cell y\n let x = 0;\n rightFrozenGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightTopCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightBottomCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n }\n\n // reset right width\n rightFrozenGroup.setAttribute('width', table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1));\n rightTopCornerGroup.setAttribute(\n 'width',\n table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1)\n );\n rightBottomCornerGroup.setAttribute(\n 'width',\n table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1)\n );\n\n table.internalProps.rightFrozenColCount = distRightFrozenCol;\n scene.updateContainer();\n scene.component.updateScrollBar();\n scene.updateNextFrame();\n}\n\nexport function dealBottomFrozen(distBottomFrozenRow: number, scene: Scenegraph) {\n const { table, proxy, bottomFrozenGroup, leftBottomCornerGroup, rightBottomCornerGroup } = scene;\n if (!bottomFrozenGroup.childrenCount) {\n // init bottom\n if (!proxy.table.isPivotChart()) {\n // create left bottom frozen\n createColGroup(\n leftBottomCornerGroup,\n 0,\n 0,\n 0, // colStart\n table.frozenColCount - 1, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'rowHeader', // isHeader\n table\n );\n createColGroup(\n rightBottomCornerGroup,\n 0,\n 0,\n table.colCount - table.rightFrozenColCount, // colStart\n table.colCount - 1, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'body', // isHeader\n table\n );\n }\n // create bottomFrozenGroup\n createColGroup(\n bottomFrozenGroup,\n 0,\n 0,\n proxy.colStart, // colStart\n proxy.colEnd, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'body', // isHeader\n table\n );\n }\n const currentBottomFrozenRow = scene.table.bottomFrozenRowCount;\n if (distBottomFrozenRow > currentBottomFrozenRow) {\n // row header -> left bottom\n for (let col = 0; col < table.frozenColCount; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInLeftBottomCorner(col);\n // move cell\n for (let row = table.rowCount - currentBottomFrozenRow - 1; row >= table.rowCount - distBottomFrozenRow; row--) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n // body -> bottom\n for (let col = proxy.colStart; col <= proxy.colEnd; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInBottom(col);\n // move cell\n for (let row = table.rowCount - currentBottomFrozenRow - 1; row >= table.rowCount - distBottomFrozenRow; row--) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n if (table.rightFrozenColCount > 0) {\n // right -> right bottom\n for (let col = table.colCount - table.rightFrozenColCount; col < table.colCount; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInRightBottomCorner(col);\n // move cell\n for (\n let row = table.rowCount - currentBottomFrozenRow - 1;\n row >= table.rowCount - distBottomFrozenRow;\n row--\n ) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n }\n } else if (distBottomFrozenRow < currentBottomFrozenRow) {\n // left bottom -> row header\n for (let col = 0; col < table.rowHeaderLevelCount; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInLeftBottomCorner(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n // bottom -> body\n for (let col = proxy.colStart; col <= proxy.colEnd; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInBottom(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n if (table.rightFrozenColCount > 0) {\n // right bottom -> right\n for (let col = table.colCount - table.rightFrozenColCount; col < table.colCount; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInRightBottomCorner(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n }\n }\n // reset bottom height\n bottomFrozenGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n leftBottomCornerGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n rightBottomCornerGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n\n table.internalProps.bottomFrozenRowCount = distBottomFrozenRow;\n scene.updateContainer();\n scene.component.updateScrollBar();\n scene.updateNextFrame();\n}\n\nfunction insertBefore(container: Group, newNode: Group, targetGroup: Group) {\n if (!newNode || !container) {\n return;\n }\n if (targetGroup) {\n container.insertBefore(newNode, targetGroup);\n } else {\n container.appendChild(newNode);\n }\n}\n\nexport function resetRowFrozen(scene: Scenegraph) {\n if (scene.frozenRowCount > scene.table.frozenRowCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('width', scene.colHeaderGroup.attribute.width);\n scene.bodyGroup.setAttribute('x', scene.colHeaderGroup.attribute.x);\n scene.rowHeaderGroup.setAttribute('width', scene.cornerHeaderGroup.attribute.width);\n for (let i = 0; i < scene.frozenRowCount - scene.table.frozenRowCount; i++) {\n moveRowFromColHeaderToBody(scene);\n moveRowFromCornerHeaderToRowHeader(scene);\n moveRowFromTopRightCornerToRight(scene);\n }\n } else if (scene.frozenRowCount < scene.table.frozenRowCount) {\n // move columnGroup from bodyGroup into rowHeaderGroup(from colHeaderGroup into cornerHeaderGroup)\n scene.colHeaderGroup.setAttribute('width', scene.bodyGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.bodyGroup.attribute.x);\n scene.cornerHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width);\n for (let i = 0; i < scene.table.frozenRowCount - scene.frozenRowCount; i++) {\n moveRowFromBodyToColHeader(scene);\n moveRowFromRowHeaderToCornerHeader(scene);\n moveRowFromRightToTopRightCorner(scene);\n }\n }\n\n updateReactComponentContainer(scene);\n scene.recreateAllSelectRangeComponents();\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenRowCount = scene.table.frozenRowCount;\n scene.frozenColCount = scene.rowHeaderGroup?.childrenCount ?? 0;\n // scene.proxy.colStart = scene.table.frozenColCount;\n scene.proxy.rowStart = (scene.bodyGroup.firstChild?.firstChild as any)?.row ?? scene.table.frozenRowCount;\n scene.bodyGroup.setAttribute('y', scene.colHeaderGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.cornerHeaderGroup.attribute.height);\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer();\n scene.updateBorderSizeAndPosition();\n\n scene.hasFrozen = true;\n}\n\nfunction moveRowFromBodyToColHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with bodyGroup\n for (let i = 0; i < scene.bodyGroup.childrenCount; i++) {\n const child = scene.bodyGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n scene.colHeaderGroup.children[i]?.appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.colHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height + rowCell.attribute.height);\n scene.bodyGroup.setAttribute('height', scene.bodyGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromRowHeaderToCornerHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rowHeaderGroup.childrenCount; i++) {\n const child = scene.rowHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n scene.cornerHeaderGroup.children[i]?.appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.cornerHeaderGroup.setAttribute(\n 'height',\n scene.cornerHeaderGroup.attribute.height + rowCell.attribute.height\n );\n scene.rowHeaderGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromRightToTopRightCorner(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rightFrozenGroup.childrenCount; i++) {\n const child = scene.rightFrozenGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n scene.rightTopCornerGroup.children[i]?.appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.rightTopCornerGroup.setAttribute(\n 'height',\n scene.rightTopCornerGroup.attribute.height + rowCell.attribute.height\n );\n scene.rightFrozenGroup.setAttribute('height', scene.rightFrozenGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromColHeaderToBody(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with bodyGroup\n for (let i = 0; i < scene.colHeaderGroup.childrenCount; i++) {\n const child = scene.colHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.bodyGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n insertBefore(target, rowCell, target.firstChild as Group);\n // 更新高度\n if (!hasSetedHeight) {\n scene.colHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height - rowCell.attribute.height);\n scene.bodyGroup.setAttribute('height', scene.bodyGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromCornerHeaderToRowHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.cornerHeaderGroup.childrenCount; i++) {\n const child = scene.cornerHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.rowHeaderGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n // scene.rowHeaderGroup.children[i]?.appendChild(rowCell);\n insertBefore(target, rowCell, target.firstChild as Group);\n // update container width\n if (!hasSetedHeight) {\n scene.cornerHeaderGroup.setAttribute(\n 'height',\n scene.cornerHeaderGroup.attribute.height - rowCell.attribute.height\n );\n scene.rowHeaderGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromTopRightCornerToRight(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rightTopCornerGroup.childrenCount; i++) {\n const child = scene.rightTopCornerGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.rightFrozenGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n // scene.rightFrozenGroup.children[i]?.appendChild(rowCell);\n insertBefore(target, rowCell, target.firstChild as Group);\n // update container width\n if (!hasSetedHeight) {\n scene.rightTopCornerGroup.setAttribute(\n 'height',\n scene.rightTopCornerGroup.attribute.height - rowCell.attribute.height\n );\n scene.rightFrozenGroup.setAttribute('height', scene.rightFrozenGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction checkBeforeMove(child: any) {\n // 跳过非 Group 类型或名为 'table-border-rect' 的边框节点\n return child instanceof Group && child?.name !== 'table-border-rect';\n}\n"]}
1
+ {"version":3,"sources":["../src/scenegraph/layout/frozen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,UAAU,UAAU,CAAC,KAAiB;;IAC1C,IAAI,KAAK,CAAC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE;QAEhE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9E,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACpE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACtF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE;YACrF,6BAA6B,CAAC,KAAK,CAAC,CAAC;YACrC,qCAAqC,CAAC,KAAK,CAAC,CAAC;YAC7C,sCAAsC,CA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ent":["import { getStyleTheme } from '../../core/tableHelper';\nimport { getTargetCell } from '../../event/util';\nimport { Group } from '../graphic/group';\nimport { createColGroup } from '../group-creater/column';\nimport type { Scenegraph } from '../scenegraph';\nimport { getProp } from '../utils/get-prop';\nimport { table } from 'console';\nimport { updateReactComponentContainer } from './frozen-react';\n\nexport function dealFrozen(scene: Scenegraph) {\n if (scene.table.frozenColCount > scene.table.rowHeaderLevelCount) {\n // 将对应列移入rowHeaderGroup\n scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);\n scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.frozenColCount - scene.table.rowHeaderLevelCount; i++) {\n moveColumnFromBodyToRowHeader(scene);\n moveColumnFromColHeaderToCornerHeader(scene);\n moveColumnFromBottomToLeftBottomCorner(scene);\n }\n } else if (scene.table.frozenColCount < scene.table.rowHeaderLevelCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);\n scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);\n scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.table.frozenColCount; i++) {\n moveColumnFromRowHeaderToBody(scene);\n moveColumnFromCornerHeaderToColHeader(scene);\n moveColumnFromLeftBottomCornerToBottom(scene);\n }\n }\n scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);\n\n scene.updateContainer();\n scene.updateBorderSizeAndPosition();\n\n if (!scene.isPivot && !(scene.table as any).transpose) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n }\n scene.hasFrozen = true;\n\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenColCount = scene.table.frozenColCount;\n scene.frozenRowCount =\n scene.colHeaderGroup.firstChild?.childrenCount ??\n scene.cornerHeaderGroup.firstChild?.childrenCount ??\n scene.table.frozenRowCount;\n}\n\nexport function resetFrozen(scene: Scenegraph) {\n if (scene.frozenColCount > scene.table.frozenColCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);\n scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);\n scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);\n for (let i = 0; i < scene.frozenColCount - scene.table.frozenColCount; i++) {\n moveColumnFromRowHeaderToBody(scene);\n moveColumnFromCornerHeaderToColHeader(scene);\n moveColumnFromLeftBottomCornerToBottom(scene);\n }\n } else if (scene.frozenColCount < scene.table.frozenColCount) {\n // move columnGroup from bodyGroup into rowHeaderGroup(from colHeaderGroup into cornerHeaderGroup)\n scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);\n scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);\n for (let i = 0; i < scene.table.frozenColCount - scene.frozenColCount; i++) {\n moveColumnFromBodyToRowHeader(scene);\n moveColumnFromColHeaderToCornerHeader(scene);\n moveColumnFromBottomToLeftBottomCorner(scene);\n }\n }\n\n updateReactComponentContainer(scene);\n scene.recreateAllSelectRangeComponents();\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenColCount = scene.table.frozenColCount;\n scene.frozenRowCount =\n scene.colHeaderGroup.firstChild?.childrenCount ??\n scene.cornerHeaderGroup.firstChild?.childrenCount ??\n scene.table.frozenRowCount;\n // scene.proxy.colStart = scene.table.frozenColCount;\n scene.proxy.colStart = (scene.bodyGroup.firstChild as any)?.col ?? scene.table.frozenColCount;\n\n scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer();\n scene.updateBorderSizeAndPosition();\n\n if (!scene.isPivot && !(scene.table as any).transpose) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n } else if (scene.table.options.frozenColCount) {\n scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);\n } else if (scene.table.options.rightFrozenColCount) {\n scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount);\n }\n scene.hasFrozen = true;\n}\n\nfunction moveColumnFromBodyToRowHeader(scene: Scenegraph) {\n // deal with bodyGroup\n const column = scene.bodyGroup.firstChild instanceof Group ? scene.bodyGroup.firstChild : null;\n if (column) {\n scene.rowHeaderGroup.appendChild(column);\n // update container width\n scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width + column.attribute.width);\n scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width - column.attribute.width);\n }\n}\n\nfunction moveColumnFromColHeaderToCornerHeader(scene: Scenegraph) {\n // deal width colHeaderGroup\n const headerColumn = scene.colHeaderGroup.firstChild instanceof Group ? scene.colHeaderGroup.firstChild : null;\n if (headerColumn) {\n scene.cornerHeaderGroup.appendChild(headerColumn);\n scene.cornerHeaderGroup.setAttribute(\n 'width',\n scene.cornerHeaderGroup.attribute.width + headerColumn.attribute.width\n );\n scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width - headerColumn.attribute.width);\n }\n}\n\nfunction moveColumnFromRowHeaderToBody(scene: Scenegraph) {\n const column =\n scene.rowHeaderGroup.lastChild instanceof Group\n ? scene.rowHeaderGroup.lastChild\n : (scene.rowHeaderGroup.lastChild?._prev as Group);\n if (column) {\n insertBefore(scene.bodyGroup, column, scene.bodyGroup.firstChild as Group);\n // 更新容器宽度\n scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width + column.attribute.width);\n scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width - column.attribute.width);\n }\n}\n\nfunction moveColumnFromCornerHeaderToColHeader(scene: Scenegraph) {\n // 处理列表头\n const headerColumn =\n scene.cornerHeaderGroup.lastChild instanceof Group\n ? scene.cornerHeaderGroup.lastChild\n : (scene.cornerHeaderGroup.lastChild?._prev as Group);\n if (headerColumn) {\n insertBefore(scene.colHeaderGroup, headerColumn, scene.colHeaderGroup.firstChild as Group);\n scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width + headerColumn.attribute.width);\n scene.cornerHeaderGroup.setAttribute(\n 'width',\n scene.cornerHeaderGroup.attribute.width - headerColumn.attribute.width\n );\n }\n}\n\nfunction moveColumnFromBottomToLeftBottomCorner(scene: Scenegraph) {\n // deal with bottomFrozenGroup\n const column = scene.bottomFrozenGroup.firstChild instanceof Group ? scene.bottomFrozenGroup.firstChild : null;\n if (column) {\n scene.leftBottomCornerGroup.appendChild(column);\n // update container width\n scene.leftBottomCornerGroup.setAttribute(\n 'width',\n scene.leftBottomCornerGroup.attribute.width + column.attribute.width\n );\n scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width - column.attribute.width);\n\n if (scene.table.isPivotChart()) {\n column.forEachChildren((child: Group) => {\n child.setAttributes({\n stroke: false,\n fill: false\n });\n });\n }\n }\n}\n\nfunction moveColumnFromLeftBottomCornerToBottom(scene: Scenegraph) {\n const column =\n scene.leftBottomCornerGroup.lastChild instanceof Group\n ? scene.leftBottomCornerGroup.lastChild\n : (scene.leftBottomCornerGroup.lastChild?._prev as Group);\n if (column) {\n insertBefore(scene.bottomFrozenGroup, column, scene.bottomFrozenGroup.firstChild as Group);\n // 更新容器宽度\n scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width + column.attribute.width);\n scene.leftBottomCornerGroup.setAttribute(\n 'width',\n scene.leftBottomCornerGroup.attribute.width - column.attribute.width\n );\n\n if (scene.table.isPivotChart()) {\n column.forEachChildren((child: Group) => {\n const cellStyle = scene.table._getCellStyle(child.col, child.row);\n const range = scene.table.getCellRange(child.col, child.row);\n const cellTheme = getStyleTheme(\n cellStyle,\n scene.table,\n range ? range.start.col : child.col,\n range ? range.start.row : child.row,\n getProp\n ).theme;\n\n child.setAttributes({\n fill: cellTheme?.group?.fill ?? undefined,\n stroke: cellTheme?.group?.stroke ?? undefined\n });\n });\n }\n }\n}\n\nexport function dealRightFrozen(distRightFrozenCol: number, scene: Scenegraph) {\n const {\n table,\n proxy,\n rightTopCornerGroup,\n rightFrozenGroup,\n rightBottomCornerGroup,\n bottomFrozenGroup,\n bodyGroup,\n colHeaderGroup\n } = scene;\n // const distRightFrozenCol = scene.table.rightFrozenColCount;\n const currentRightFrozenCol = scene.table.rightFrozenColCount;\n if (distRightFrozenCol > currentRightFrozenCol) {\n for (let col = table.colCount - currentRightFrozenCol - 1; col >= table.colCount - distRightFrozenCol; col--) {\n const colGroup = scene.getColGroup(col);\n insertBefore(rightFrozenGroup, colGroup, rightFrozenGroup.firstChild as Group);\n const headerColGroup = scene.getColGroup(col, true);\n insertBefore(rightTopCornerGroup, headerColGroup, rightTopCornerGroup.firstChild as Group);\n const bottomColGroup = scene.getColGroupInBottom(col);\n insertBefore(rightBottomCornerGroup, bottomColGroup, rightBottomCornerGroup.firstChild as Group);\n }\n // reset cell y\n let x = 0;\n rightFrozenGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightTopCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightBottomCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n } else if (distRightFrozenCol < currentRightFrozenCol) {\n for (let col = table.colCount - currentRightFrozenCol; col < table.colCount - distRightFrozenCol; col++) {\n const colGroup = scene.getColGroup(col);\n colGroup.setAttribute(\n 'x',\n (bodyGroup.lastChild as Group).attribute.x + table.getColWidth((bodyGroup.lastChild as Group).col)\n );\n bodyGroup.appendChild(colGroup);\n const headerColGroup = scene.getColGroupInRightTopCorner(col);\n headerColGroup.setAttribute(\n 'x',\n (colHeaderGroup.lastChild as Group).attribute.x + table.getColWidth((colHeaderGroup.lastChild as Group).col)\n );\n colHeaderGroup.appendChild(headerColGroup);\n const bottomColGroup = scene.getColGroupInRightBottomCorner(col);\n bottomColGroup.setAttribute(\n 'x',\n (bottomFrozenGroup.lastChild as Group).attribute.x +\n table.getColWidth((bottomFrozenGroup.lastChild as Group).col)\n );\n bottomFrozenGroup.appendChild(bottomColGroup);\n }\n // reset cell y\n let x = 0;\n rightFrozenGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightTopCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n x = 0;\n rightBottomCornerGroup.forEachChildren((columnGroup: Group) => {\n columnGroup.setAttribute('x', x);\n x += columnGroup.attribute.width;\n });\n }\n\n // reset right width\n rightFrozenGroup.setAttribute('width', table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1));\n rightTopCornerGroup.setAttribute(\n 'width',\n table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1)\n );\n rightBottomCornerGroup.setAttribute(\n 'width',\n table.getColsWidth(table.colCount - distRightFrozenCol, table.colCount - 1)\n );\n\n table.internalProps.rightFrozenColCount = distRightFrozenCol;\n scene.updateContainer();\n scene.component.updateScrollBar();\n scene.updateNextFrame();\n}\n\nexport function dealBottomFrozen(distBottomFrozenRow: number, scene: Scenegraph) {\n const { table, proxy, bottomFrozenGroup, leftBottomCornerGroup, rightBottomCornerGroup } = scene;\n if (!bottomFrozenGroup.childrenCount) {\n // init bottom\n if (!proxy.table.isPivotChart()) {\n // create left bottom frozen\n createColGroup(\n leftBottomCornerGroup,\n 0,\n 0,\n 0, // colStart\n table.frozenColCount - 1, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'rowHeader', // isHeader\n table\n );\n createColGroup(\n rightBottomCornerGroup,\n 0,\n 0,\n table.colCount - table.rightFrozenColCount, // colStart\n table.colCount - 1, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'body', // isHeader\n table\n );\n }\n // create bottomFrozenGroup\n createColGroup(\n bottomFrozenGroup,\n 0,\n 0,\n proxy.colStart, // colStart\n proxy.colEnd, // colEnd\n 0, // rowStart\n -1, // rowEnd\n 'body', // isHeader\n table\n );\n }\n const currentBottomFrozenRow = scene.table.bottomFrozenRowCount;\n if (distBottomFrozenRow > currentBottomFrozenRow) {\n // row header -> left bottom\n for (let col = 0; col < table.frozenColCount; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInLeftBottomCorner(col);\n // move cell\n for (let row = table.rowCount - currentBottomFrozenRow - 1; row >= table.rowCount - distBottomFrozenRow; row--) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n // body -> bottom\n for (let col = proxy.colStart; col <= proxy.colEnd; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInBottom(col);\n // move cell\n for (let row = table.rowCount - currentBottomFrozenRow - 1; row >= table.rowCount - distBottomFrozenRow; row--) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n if (table.rightFrozenColCount > 0) {\n // right -> right bottom\n for (let col = table.colCount - table.rightFrozenColCount; col < table.colCount; col++) {\n const bottomFrozenColumnGroup = scene.getColGroupInRightBottomCorner(col);\n // move cell\n for (\n let row = table.rowCount - currentBottomFrozenRow - 1;\n row >= table.rowCount - distBottomFrozenRow;\n row--\n ) {\n const cellGroup = scene.getCell(col, row, true);\n // bottomFrozenColumnGroup.insertBefore(cellGroup, bottomFrozenColumnGroup.firstChild);\n insertBefore(bottomFrozenColumnGroup, cellGroup, bottomFrozenColumnGroup.firstChild as Group);\n }\n // reset cell y\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n }\n } else if (distBottomFrozenRow < currentBottomFrozenRow) {\n // left bottom -> row header\n for (let col = 0; col < table.rowHeaderLevelCount; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInLeftBottomCorner(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n // bottom -> body\n for (let col = proxy.colStart; col <= proxy.colEnd; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInBottom(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n if (table.rightFrozenColCount > 0) {\n // right bottom -> right\n for (let col = table.colCount - table.rightFrozenColCount; col < table.colCount; col++) {\n const columnGroup = scene.getColGroup(col);\n for (let row = table.rowCount - currentBottomFrozenRow; row < table.rowCount - distBottomFrozenRow; row++) {\n const cellGroup = scene.getCell(col, row, true);\n cellGroup.setAttribute(\n 'y',\n (columnGroup.lastChild as Group).attribute.y + table.getRowHeight((columnGroup.lastChild as Group).row)\n );\n columnGroup.appendChild(cellGroup);\n }\n // reset cell y\n const bottomFrozenColumnGroup = scene.getColGroupInRightBottomCorner(col);\n let y = 0;\n bottomFrozenColumnGroup.forEachChildren((cellGroup: Group) => {\n cellGroup.setAttribute('y', y);\n y += table.getRowHeight(cellGroup.row);\n });\n }\n }\n }\n // reset bottom height\n bottomFrozenGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n leftBottomCornerGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n rightBottomCornerGroup.setAttribute(\n 'height',\n table.getRowsHeight(table.rowCount - distBottomFrozenRow, table.rowCount - 1)\n );\n\n table.internalProps.bottomFrozenRowCount = distBottomFrozenRow;\n scene.updateContainer();\n scene.component.updateScrollBar();\n scene.updateNextFrame();\n}\n\nfunction insertBefore(container: Group, newNode: Group, targetGroup: Group) {\n if (!newNode || !container) {\n return;\n }\n if (targetGroup) {\n container.insertBefore(newNode, targetGroup);\n } else {\n container.appendChild(newNode);\n }\n}\n\nexport function resetRowFrozen(scene: Scenegraph) {\n if (scene.frozenRowCount > scene.table.frozenRowCount) {\n // move columnGroup from rowHeaderGroup into bodyGroup(from cornerHeaderGroup into colHeaderGroup)\n scene.bodyGroup.setAttribute('width', scene.colHeaderGroup.attribute.width);\n scene.bodyGroup.setAttribute('x', scene.colHeaderGroup.attribute.x);\n scene.rowHeaderGroup.setAttribute('width', scene.cornerHeaderGroup.attribute.width);\n for (let i = 0; i < scene.frozenRowCount - scene.table.frozenRowCount; i++) {\n moveRowFromColHeaderToBody(scene);\n moveRowFromCornerHeaderToRowHeader(scene);\n moveRowFromTopRightCornerToRight(scene);\n }\n } else if (scene.frozenRowCount < scene.table.frozenRowCount) {\n // move columnGroup from bodyGroup into rowHeaderGroup(from colHeaderGroup into cornerHeaderGroup)\n scene.colHeaderGroup.setAttribute('width', scene.bodyGroup.attribute.width);\n scene.colHeaderGroup.setAttribute('x', scene.bodyGroup.attribute.x);\n scene.cornerHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width);\n for (let i = 0; i < scene.table.frozenRowCount - scene.frozenRowCount; i++) {\n moveRowFromBodyToColHeader(scene);\n moveRowFromRowHeaderToCornerHeader(scene);\n moveRowFromRightToTopRightCorner(scene);\n }\n }\n\n updateReactComponentContainer(scene);\n scene.recreateAllSelectRangeComponents();\n // scene.frozenColCount = scene.rowHeaderGroup.childrenCount;\n scene.frozenRowCount = scene.table.frozenRowCount;\n scene.frozenColCount = scene.rowHeaderGroup?.childrenCount ?? 0;\n // scene.proxy.colStart = scene.table.frozenColCount;\n scene.proxy.rowStart = (scene.bodyGroup.firstChild?.firstChild as any)?.row ?? scene.table.frozenRowCount;\n scene.bodyGroup.setAttribute('y', scene.colHeaderGroup.attribute.height);\n scene.rowHeaderGroup.setAttribute('y', scene.cornerHeaderGroup.attribute.height);\n // scene.updateContainerAttrWidthAndX();\n scene.updateContainer({ needUpdateCellY: true });\n scene.updateBorderSizeAndPosition();\n\n scene.hasFrozen = true;\n}\n\nfunction moveRowFromBodyToColHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with bodyGroup\n for (let i = 0; i < scene.bodyGroup.childrenCount; i++) {\n const child = scene.bodyGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n if (!scene.colHeaderGroup.children[i]) {\n createColGroup(scene.colHeaderGroup, 0, 0, rowCell.col, rowCell.col, 0, 0, 'columnHeader', scene.table);\n }\n scene.colHeaderGroup.children[i]?.appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.colHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height + rowCell.attribute.height);\n scene.bodyGroup.setAttribute('height', scene.bodyGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromRowHeaderToCornerHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rowHeaderGroup.childrenCount; i++) {\n const child = scene.rowHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n if (!scene.cornerHeaderGroup.children[i]) {\n createColGroup(\n scene.cornerHeaderGroup,\n 0,\n 0,\n rowCell.col,\n rowCell.col,\n 0,\n 0,\n scene.table.isListTable() ? 'columnHeader' : 'cornerHeader',\n scene.table\n );\n }\n scene.cornerHeaderGroup.children[i]?.appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.cornerHeaderGroup.setAttribute(\n 'height',\n scene.cornerHeaderGroup.attribute.height + rowCell.attribute.height\n );\n scene.rowHeaderGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromRightToTopRightCorner(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rightFrozenGroup.childrenCount; i++) {\n const child = scene.rightFrozenGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const rowCell = child.firstChild as Group;\n if (!scene.rightTopCornerGroup.children[i]) {\n createColGroup(scene.rightTopCornerGroup, 0, 0, rowCell.col, rowCell.col, 0, 0, 'columnHeader', scene.table);\n }\n scene.rightTopCornerGroup.children[i].appendChild(rowCell);\n // update container width\n if (!hasSetedHeight) {\n scene.rightTopCornerGroup.setAttribute(\n 'height',\n scene.rightTopCornerGroup.attribute.height + rowCell.attribute.height\n );\n scene.rightFrozenGroup.setAttribute('height', scene.rightFrozenGroup.attribute.height - rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromColHeaderToBody(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with bodyGroup\n for (let i = 0; i < scene.colHeaderGroup.childrenCount; i++) {\n const child = scene.colHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.bodyGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n insertBefore(target, rowCell, target.firstChild as Group);\n // 更新高度\n if (!hasSetedHeight) {\n scene.colHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height - rowCell.attribute.height);\n scene.bodyGroup.setAttribute('height', scene.bodyGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromCornerHeaderToRowHeader(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.cornerHeaderGroup.childrenCount; i++) {\n const child = scene.cornerHeaderGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.rowHeaderGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n // scene.rowHeaderGroup.children[i]?.appendChild(rowCell);\n insertBefore(target, rowCell, target.firstChild as Group);\n // update container width\n if (!hasSetedHeight) {\n scene.cornerHeaderGroup.setAttribute(\n 'height',\n scene.cornerHeaderGroup.attribute.height - rowCell.attribute.height\n );\n scene.rowHeaderGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction moveRowFromTopRightCornerToRight(scene: Scenegraph) {\n let hasSetedHeight = false;\n // deal with rowHeaderGroup\n for (let i = 0; i < scene.rightTopCornerGroup.childrenCount; i++) {\n const child = scene.rightTopCornerGroup.children[i];\n if (!checkBeforeMove(child)) {\n continue;\n }\n const target = scene.rightFrozenGroup.children[i] as Group;\n if (!target) {\n continue;\n }\n const rowCell = child.lastChild as Group;\n // scene.rightFrozenGroup.children[i]?.appendChild(rowCell);\n insertBefore(target, rowCell, target.firstChild as Group);\n // update container width\n if (!hasSetedHeight) {\n scene.rightTopCornerGroup.setAttribute(\n 'height',\n scene.rightTopCornerGroup.attribute.height - rowCell.attribute.height\n );\n scene.rightFrozenGroup.setAttribute('height', scene.rightFrozenGroup.attribute.height + rowCell.attribute.height);\n hasSetedHeight = true;\n }\n }\n}\n\nfunction checkBeforeMove(child: any) {\n // 跳过非 Group 类型或名为 'table-border-rect' 的边框节点\n return child instanceof Group && child?.name !== 'table-border-rect';\n}\n"]}
@@ -142,8 +142,12 @@ export declare class Scenegraph {
142
142
  updateCellLayoutWidthCertainWidth(columnGroup: Group, detaRow: number, col: number): boolean;
143
143
  updateHeaderPosition(updateColStart: number, updateColEnd: number, updateRowStart: number, updateRowEnd: number, moveType: 'column' | 'row'): void;
144
144
  updateContainerAttrWidthAndX(): void;
145
- updateContainer(async?: boolean): void;
146
- updateContainerSync(): void;
145
+ updateContainerAttrHeightAndY(): void;
146
+ updateContainer(updateConfig?: {
147
+ async?: boolean;
148
+ needUpdateCellY?: boolean;
149
+ }): void;
150
+ updateContainerSync(needUpdateCellY?: boolean): void;
147
151
  updateCellContentWhileResize(col: number, row: number): void;
148
152
  createFrameBorder(): void;
149
153
  getResizeColAt(abstractX: number, abstractY: number, cellGroup?: Group): {
@@ -52,7 +52,7 @@ import { updateChartSizeForResizeColWidth, updateChartSizeForResizeRowHeight, up
52
52
 
53
53
  import { initSceneGraph } from "./group-creater/init-scenegraph";
54
54
 
55
- import { updateContainerChildrenX } from "./utils/update-container";
55
+ import { updateContainerChildrenX, updateContainerChildrenY } from "./utils/update-container";
56
56
 
57
57
  import { setPoptipTheme } from "./../vrender";
58
58
 
@@ -398,7 +398,9 @@ export class Scenegraph {
398
398
  }));
399
399
  }
400
400
  updateColWidth(col, detaX, skipUpdateContainer, skipTableWidthMap) {
401
- updateColWidth(this, col, Math.round(detaX), skipTableWidthMap), skipUpdateContainer || this.updateContainer(!0);
401
+ updateColWidth(this, col, Math.round(detaX), skipTableWidthMap), skipUpdateContainer || this.updateContainer({
402
+ async: !0
403
+ });
402
404
  }
403
405
  updateChartSizeForResizeColWidth(col) {
404
406
  updateChartSizeForResizeColWidth(this, col);
@@ -756,14 +758,33 @@ export class Scenegraph {
756
758
  this.bodyGroup.setDeltaWidth(bodyX - this.bodyGroup.attribute.width), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width),
757
759
  this.bottomFrozenGroup.setAttribute("x", this.table.getFrozenColsWidth()), this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width);
758
760
  }
759
- updateContainer(async = !1) {
760
- async ? this._needUpdateContainer || (this._needUpdateContainer = !0, setTimeout((() => {
761
- this.updateContainerSync();
762
- }), 0)) : (this._needUpdateContainer = !0, this.updateContainerSync());
761
+ updateContainerAttrHeightAndY() {
762
+ var _a, _b, _c;
763
+ for (let i = 0; i < this.cornerHeaderGroup.children.length; i++) updateContainerChildrenY(this.cornerHeaderGroup.children[i], 0);
764
+ for (let i = 0; i < this.colHeaderGroup.children.length; i++) updateContainerChildrenY(this.colHeaderGroup.children[i], 0);
765
+ for (let i = 0; i < this.rightTopCornerGroup.children.length; i++) updateContainerChildrenY(this.rightTopCornerGroup.children[i], 0);
766
+ for (let i = 0; i < this.rowHeaderGroup.children.length; i++) this.rowHeaderGroup.children[i].firstChild && updateContainerChildrenY(this.rowHeaderGroup.children[i], this.rowHeaderGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_a = this.table.frozenRowCount) && void 0 !== _a ? _a : 0, this.rowHeaderGroup.children[i].firstChild.row - 1) : 0);
767
+ for (let i = 0; i < this.bodyGroup.children.length; i++) this.bodyGroup.children[i].firstChild && updateContainerChildrenY(this.bodyGroup.children[i], this.bodyGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_b = this.table.frozenRowCount) && void 0 !== _b ? _b : 0, this.bodyGroup.children[i].firstChild.row - 1) : 0);
768
+ for (let i = 0; i < this.rightFrozenGroup.children.length; i++) this.rightFrozenGroup.children[i].firstChild && updateContainerChildrenY(this.rightFrozenGroup.children[i], this.rightFrozenGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_c = this.table.frozenRowCount) && void 0 !== _c ? _c : 0, this.rightFrozenGroup.children[i].firstChild.row - 1) : 0);
769
+ for (let i = 0; i < this.leftBottomCornerGroup.children.length; i++) updateContainerChildrenY(this.leftBottomCornerGroup.children[i], 0);
770
+ for (let i = 0; i < this.bottomFrozenGroup.children.length; i++) updateContainerChildrenY(this.bottomFrozenGroup.children[i], 0);
771
+ for (let i = 0; i < this.rightBottomCornerGroup.children.length; i++) updateContainerChildrenY(this.rightBottomCornerGroup.children[i], 0);
772
+ }
773
+ updateContainer(updateConfig = {
774
+ async: !1,
775
+ needUpdateCellY: !1
776
+ }) {
777
+ var _a;
778
+ updateConfig.async ? this._needUpdateContainer || (this._needUpdateContainer = !0,
779
+ setTimeout((() => {
780
+ var _a;
781
+ this.updateContainerSync(null !== (_a = updateConfig.needUpdateCellY) && void 0 !== _a && _a);
782
+ }), 0)) : (this._needUpdateContainer = !0, this.updateContainerSync(null !== (_a = updateConfig.needUpdateCellY) && void 0 !== _a && _a));
763
783
  }
764
- updateContainerSync() {
784
+ updateContainerSync(needUpdateCellY = !1) {
765
785
  this._needUpdateContainer && (this._needUpdateContainer = !1, this.updateContainerAttrWidthAndX(),
766
- this.updateTableSize(), this.component.updateScrollBar(), this.updateNextFrame());
786
+ needUpdateCellY && this.updateContainerAttrHeightAndY(), this.updateTableSize(),
787
+ this.component.updateScrollBar(), this.updateNextFrame());
767
788
  }
768
789
  updateCellContentWhileResize(col, row) {
769
790
  var _a;