@visactor/vtable 0.9.2-alpha.0 → 0.9.2-alpha.2

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 (533) hide show
  1. package/cjs/ListTable.d.ts +2 -1
  2. package/cjs/ListTable.js +17 -13
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotChart.d.ts +68 -0
  5. package/cjs/PivotChart.js +427 -0
  6. package/cjs/PivotChart.js.map +1 -0
  7. package/cjs/PivotTable.d.ts +2 -1
  8. package/cjs/PivotTable.js +18 -13
  9. package/cjs/PivotTable.js.map +1 -1
  10. package/cjs/body-helper/style/MultilineTextStyle.js +2 -2
  11. package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -1
  12. package/cjs/body-helper/style/ProgressBarStyle.js +15 -15
  13. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -1
  14. package/cjs/body-helper/style/Style.d.ts +0 -1
  15. package/cjs/body-helper/style/Style.js +25 -28
  16. package/cjs/body-helper/style/Style.js.map +1 -1
  17. package/cjs/components/axis/axis.d.ts +45 -0
  18. package/cjs/components/axis/axis.js +146 -0
  19. package/cjs/components/axis/axis.js.map +1 -0
  20. package/cjs/components/axis/band-scale.d.ts +18 -0
  21. package/cjs/components/axis/band-scale.js +54 -0
  22. package/cjs/components/axis/band-scale.js.map +1 -0
  23. package/cjs/components/axis/get-axis-attributes.d.ts +136 -0
  24. package/cjs/components/axis/get-axis-attributes.js +169 -0
  25. package/cjs/components/axis/get-axis-attributes.js.map +1 -0
  26. package/cjs/components/axis/label-overlap.d.ts +3 -0
  27. package/cjs/components/axis/label-overlap.js +46 -0
  28. package/cjs/components/axis/label-overlap.js.map +1 -0
  29. package/cjs/components/axis/linear-scale.d.ts +45 -0
  30. package/cjs/components/axis/linear-scale.js +120 -0
  31. package/cjs/components/axis/linear-scale.js.map +1 -0
  32. package/cjs/components/legend/get-legend-attributes.d.ts +5 -0
  33. package/cjs/components/legend/get-legend-attributes.js +90 -0
  34. package/cjs/components/legend/get-legend-attributes.js.map +1 -0
  35. package/cjs/components/legend/legend.d.ts +23 -0
  36. package/cjs/components/legend/legend.js +94 -0
  37. package/cjs/components/legend/legend.js.map +1 -0
  38. package/cjs/{menu → components/menu}/dom/BaseMenu.d.ts +2 -2
  39. package/cjs/components/menu/dom/BaseMenu.js.map +1 -0
  40. package/cjs/components/menu/dom/Menu.js.map +1 -0
  41. package/{es → cjs/components}/menu/dom/MenuHandler.d.ts +2 -2
  42. package/cjs/{menu → components/menu}/dom/MenuHandler.js +1 -1
  43. package/cjs/components/menu/dom/MenuHandler.js.map +1 -0
  44. package/cjs/{menu → components/menu}/dom/logic/MenuContainer.d.ts +2 -2
  45. package/cjs/{menu → components/menu}/dom/logic/MenuContainer.js +2 -2
  46. package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -0
  47. package/cjs/{menu → components/menu}/dom/logic/MenuElement.d.ts +2 -2
  48. package/cjs/{menu → components/menu}/dom/logic/MenuElement.js +4 -4
  49. package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -0
  50. package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  51. package/cjs/components/title/title.d.ts +12 -0
  52. package/cjs/components/title/title.js +66 -0
  53. package/cjs/components/title/title.js.map +1 -0
  54. package/cjs/{tooltip → components/tooltip}/BaseTooltip.d.ts +3 -3
  55. package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
  56. package/cjs/components/tooltip/Tooltip.js.map +1 -0
  57. package/{es → cjs/components}/tooltip/TooltipHandler.d.ts +4 -4
  58. package/cjs/{tooltip → components/tooltip}/TooltipHandler.js +1 -1
  59. package/cjs/components/tooltip/TooltipHandler.js.map +1 -0
  60. package/cjs/{tooltip → components/tooltip}/logic/BubbleTooltipElement.d.ts +4 -4
  61. package/cjs/{tooltip → components/tooltip}/logic/BubbleTooltipElement.js +1 -1
  62. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  63. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  64. package/cjs/components/util/orient.d.ts +3 -0
  65. package/cjs/components/util/orient.js +14 -0
  66. package/cjs/components/util/orient.js.map +1 -0
  67. package/cjs/components/util/register.d.ts +3 -0
  68. package/cjs/components/util/register.js +15 -0
  69. package/cjs/components/util/register.js.map +1 -0
  70. package/cjs/components/util/tick-data/config.d.ts +1 -0
  71. package/cjs/components/util/tick-data/config.js +6 -0
  72. package/cjs/components/util/tick-data/config.js.map +1 -0
  73. package/cjs/components/util/tick-data/continuous.d.ts +2 -0
  74. package/cjs/components/util/tick-data/continuous.js +39 -0
  75. package/cjs/components/util/tick-data/continuous.js.map +1 -0
  76. package/cjs/components/util/tick-data/discrete/linear.d.ts +2 -0
  77. package/cjs/components/util/tick-data/discrete/linear.js +66 -0
  78. package/cjs/components/util/tick-data/discrete/linear.js.map +1 -0
  79. package/cjs/components/util/tick-data/discrete/polar-angle.d.ts +2 -0
  80. package/cjs/components/util/tick-data/discrete/polar-angle.js +46 -0
  81. package/cjs/components/util/tick-data/discrete/polar-angle.js.map +1 -0
  82. package/cjs/components/util/tick-data/index.d.ts +2 -0
  83. package/cjs/components/util/tick-data/index.js +17 -0
  84. package/cjs/components/util/tick-data/index.js.map +1 -0
  85. package/cjs/components/util/tick-data/util.d.ts +21 -0
  86. package/cjs/components/util/tick-data/util.js +115 -0
  87. package/cjs/components/util/tick-data/util.js.map +1 -0
  88. package/cjs/components/util/transform.d.ts +5 -0
  89. package/cjs/components/util/transform.js +45 -0
  90. package/cjs/components/util/transform.js.map +1 -0
  91. package/cjs/core/BaseTable.d.ts +18 -5
  92. package/cjs/core/BaseTable.js +99 -39
  93. package/cjs/core/BaseTable.js.map +1 -1
  94. package/cjs/core/TABLE_EVENT_TYPE.d.ts +3 -0
  95. package/cjs/core/TABLE_EVENT_TYPE.js +4 -1
  96. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  97. package/cjs/core/style.js +1 -1
  98. package/cjs/core/style.js.map +1 -1
  99. package/cjs/core/tableHelper.js +1 -2
  100. package/cjs/data/CachedDataSource.js +2 -1
  101. package/cjs/data/DataSource.js +2 -2
  102. package/cjs/data/DataSource.js.map +1 -1
  103. package/cjs/dataset/dataset.d.ts +12 -19
  104. package/cjs/dataset/dataset.js +168 -196
  105. package/cjs/dataset/dataset.js.map +1 -1
  106. package/cjs/dataset/statistics-helper.d.ts +68 -0
  107. package/cjs/dataset/statistics-helper.js +173 -0
  108. package/cjs/dataset/statistics-helper.js.map +1 -0
  109. package/cjs/dataset/util/zero-align.d.ts +10 -0
  110. package/cjs/dataset/util/zero-align.js +119 -0
  111. package/cjs/dataset/util/zero-align.js.map +1 -0
  112. package/cjs/event/EventHandler.js.map +1 -1
  113. package/cjs/event/EventTarget.d.ts +5 -5
  114. package/cjs/event/EventTarget.js +2 -2
  115. package/cjs/event/EventTarget.js.map +1 -1
  116. package/cjs/event/VChartEventProxy.d.ts +1 -0
  117. package/cjs/event/VChartEventProxy.js +1 -0
  118. package/cjs/event/VChartEventProxy.js.map +1 -0
  119. package/cjs/event/event.js +7 -4
  120. package/cjs/event/event.js.map +1 -1
  121. package/cjs/event/listener/table-group.js +8 -6
  122. package/cjs/event/listener/table-group.js.map +1 -1
  123. package/cjs/event/pivot-chart/axis-click.d.ts +2 -0
  124. package/cjs/event/pivot-chart/axis-click.js +42 -0
  125. package/cjs/event/pivot-chart/axis-click.js.map +1 -0
  126. package/cjs/event/sparkline-event.js.map +1 -1
  127. package/cjs/event/util.js +0 -1
  128. package/cjs/header-helper/header-helper.js +1 -1
  129. package/cjs/header-helper/header-helper.js.map +1 -1
  130. package/cjs/header-helper/style/MultilineTextHeaderStyle.js +2 -2
  131. package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
  132. package/cjs/header-helper/style/Style.d.ts +0 -1
  133. package/cjs/header-helper/style/Style.js +25 -28
  134. package/cjs/header-helper/style/Style.js.map +1 -1
  135. package/cjs/index.d.ts +4 -3
  136. package/cjs/index.js +11 -2
  137. package/cjs/index.js.map +1 -1
  138. package/cjs/layout/index.js +2 -1
  139. package/cjs/layout/pivot-chart/get-axis-config.d.ts +2 -0
  140. package/cjs/layout/pivot-chart/get-axis-config.js +118 -0
  141. package/cjs/layout/pivot-chart/get-axis-config.js.map +1 -0
  142. package/cjs/layout/pivot-chart/get-chart-spec.d.ts +4 -0
  143. package/cjs/layout/pivot-chart/get-chart-spec.js +118 -0
  144. package/cjs/layout/pivot-chart/get-chart-spec.js.map +1 -0
  145. package/cjs/layout/pivot-header-layout.d.ts +11 -5
  146. package/cjs/layout/pivot-header-layout.js +42 -12
  147. package/cjs/layout/pivot-header-layout.js.map +1 -1
  148. package/cjs/layout/pivot-layout.d.ts +53 -8
  149. package/cjs/layout/pivot-layout.js +393 -89
  150. package/cjs/layout/pivot-layout.js.map +1 -1
  151. package/cjs/layout/simple-header-layout.d.ts +8 -0
  152. package/cjs/layout/simple-header-layout.js +34 -0
  153. package/cjs/layout/simple-header-layout.js.map +1 -1
  154. package/cjs/scenegraph/component/table-component.js +3 -3
  155. package/cjs/scenegraph/component/table-component.js.map +1 -1
  156. package/cjs/scenegraph/graphic/chart.d.ts +3 -0
  157. package/cjs/scenegraph/graphic/chart.js +21 -6
  158. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  159. package/cjs/scenegraph/graphic/contributions/chart-render.js +15 -3
  160. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  161. package/cjs/scenegraph/group-creater/cell-helper.js +8 -3
  162. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  163. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +2 -1
  164. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  165. package/cjs/scenegraph/group-creater/column.js.map +1 -1
  166. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  167. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +71 -0
  168. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  169. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +1 -1
  170. package/cjs/scenegraph/group-creater/progress/proxy.js +29 -35
  171. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  172. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +10 -9
  173. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  174. package/cjs/scenegraph/layout/compute-col-width.js +23 -15
  175. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  176. package/cjs/scenegraph/layout/compute-row-height.js +20 -9
  177. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  178. package/cjs/scenegraph/layout/move-cell.js +1 -1
  179. package/cjs/scenegraph/layout/move-cell.js.map +1 -1
  180. package/cjs/scenegraph/layout/update-cell.js +3 -2
  181. package/cjs/scenegraph/layout/update-cell.js.map +1 -1
  182. package/cjs/scenegraph/layout/update-height.js +1 -1
  183. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  184. package/cjs/scenegraph/layout/update-row.js +1 -1
  185. package/cjs/scenegraph/layout/update-row.js.map +1 -1
  186. package/cjs/scenegraph/layout/update-width.js +1 -1
  187. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  188. package/cjs/scenegraph/refresh-node/update-chart.d.ts +3 -0
  189. package/cjs/scenegraph/refresh-node/update-chart.js +48 -5
  190. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
  191. package/cjs/scenegraph/scenegraph.d.ts +9 -0
  192. package/cjs/scenegraph/scenegraph.js +144 -18
  193. package/cjs/scenegraph/scenegraph.js.map +1 -1
  194. package/cjs/scenegraph/stick-text/index.js +10 -8
  195. package/cjs/scenegraph/stick-text/index.js.map +1 -1
  196. package/cjs/scenegraph/style/frame-border.js +1 -5
  197. package/cjs/scenegraph/style/frame-border.js.map +1 -1
  198. package/cjs/state/state.js +1 -1
  199. package/cjs/state/state.js.map +1 -1
  200. package/cjs/themes/DEFAULT.js +1 -2
  201. package/cjs/tools/LimitPromiseQueue.js +2 -1
  202. package/cjs/tools/calc.d.ts +3 -0
  203. package/cjs/tools/calc.js +11 -3
  204. package/cjs/tools/calc.js.map +1 -1
  205. package/cjs/tools/diff-cell.js +2 -2
  206. package/cjs/tools/dom.js +1 -1
  207. package/cjs/tools/env.js +1 -1
  208. package/cjs/ts-types/base-table.d.ts +29 -12
  209. package/cjs/ts-types/base-table.js.map +1 -1
  210. package/cjs/ts-types/column/style.d.ts +0 -1
  211. package/cjs/ts-types/column/style.js.map +1 -1
  212. package/cjs/ts-types/component/axis.d.ts +12 -0
  213. package/cjs/ts-types/component/axis.js +6 -0
  214. package/cjs/ts-types/component/axis.js.map +1 -0
  215. package/cjs/ts-types/component/legend.d.ts +5 -0
  216. package/cjs/ts-types/component/legend.js +6 -0
  217. package/cjs/ts-types/component/legend.js.map +1 -0
  218. package/cjs/ts-types/component/title.d.ts +47 -0
  219. package/cjs/ts-types/component/title.js +6 -0
  220. package/cjs/ts-types/component/title.js.map +1 -0
  221. package/cjs/ts-types/component/util.d.ts +1 -0
  222. package/cjs/ts-types/component/util.js +6 -0
  223. package/cjs/ts-types/component/util.js.map +1 -0
  224. package/cjs/ts-types/events.d.ts +100 -83
  225. package/cjs/ts-types/events.js.map +1 -1
  226. package/cjs/ts-types/list-table/layout-map/api.d.ts +2 -0
  227. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
  228. package/cjs/ts-types/new-data-set.d.ts +18 -5
  229. package/cjs/ts-types/new-data-set.js +2 -2
  230. package/cjs/ts-types/new-data-set.js.map +1 -1
  231. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +4 -0
  232. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +3 -1
  233. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
  234. package/cjs/ts-types/pivot-table/corner.d.ts +3 -3
  235. package/cjs/ts-types/pivot-table/corner.js.map +1 -1
  236. package/cjs/ts-types/pivot-table/indicator/index.d.ts +1 -0
  237. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
  238. package/cjs/ts-types/pivot-table/title.d.ts +1 -1
  239. package/cjs/ts-types/pivot-table/title.js.map +1 -1
  240. package/cjs/ts-types/table-engine.d.ts +27 -3
  241. package/cjs/ts-types/table-engine.js.map +1 -1
  242. package/dist/vtable.js +22782 -11928
  243. package/dist/vtable.min.js +4 -2
  244. package/es/ListTable.d.ts +2 -1
  245. package/es/ListTable.js +17 -13
  246. package/es/ListTable.js.map +1 -1
  247. package/es/PivotChart.d.ts +68 -0
  248. package/es/PivotChart.js +437 -0
  249. package/es/PivotChart.js.map +1 -0
  250. package/es/PivotTable.d.ts +2 -1
  251. package/es/PivotTable.js +19 -14
  252. package/es/PivotTable.js.map +1 -1
  253. package/es/body-helper/style/MultilineTextStyle.js +2 -2
  254. package/es/body-helper/style/MultilineTextStyle.js.map +1 -1
  255. package/es/body-helper/style/ProgressBarStyle.js +15 -15
  256. package/es/body-helper/style/ProgressBarStyle.js.map +1 -1
  257. package/es/body-helper/style/Style.d.ts +0 -1
  258. package/es/body-helper/style/Style.js +25 -28
  259. package/es/body-helper/style/Style.js.map +1 -1
  260. package/es/components/axis/axis.d.ts +45 -0
  261. package/es/components/axis/axis.js +155 -0
  262. package/es/components/axis/axis.js.map +1 -0
  263. package/es/components/axis/band-scale.d.ts +18 -0
  264. package/es/components/axis/band-scale.js +46 -0
  265. package/es/components/axis/band-scale.js.map +1 -0
  266. package/es/components/axis/get-axis-attributes.d.ts +136 -0
  267. package/es/components/axis/get-axis-attributes.js +166 -0
  268. package/es/components/axis/get-axis-attributes.js.map +1 -0
  269. package/es/components/axis/label-overlap.d.ts +3 -0
  270. package/es/components/axis/label-overlap.js +39 -0
  271. package/es/components/axis/label-overlap.js.map +1 -0
  272. package/es/components/axis/linear-scale.d.ts +45 -0
  273. package/es/components/axis/linear-scale.js +104 -0
  274. package/es/components/axis/linear-scale.js.map +1 -0
  275. package/es/components/legend/get-legend-attributes.d.ts +5 -0
  276. package/es/components/legend/get-legend-attributes.js +84 -0
  277. package/es/components/legend/get-legend-attributes.js.map +1 -0
  278. package/es/components/legend/legend.d.ts +23 -0
  279. package/es/components/legend/legend.js +93 -0
  280. package/es/components/legend/legend.js.map +1 -0
  281. package/es/{menu → components/menu}/dom/BaseMenu.d.ts +2 -2
  282. package/es/components/menu/dom/BaseMenu.js.map +1 -0
  283. package/es/components/menu/dom/Menu.js.map +1 -0
  284. package/{cjs → es/components}/menu/dom/MenuHandler.d.ts +2 -2
  285. package/es/{menu → components/menu}/dom/MenuHandler.js +2 -2
  286. package/es/components/menu/dom/MenuHandler.js.map +1 -0
  287. package/es/{menu → components/menu}/dom/logic/MenuContainer.d.ts +2 -2
  288. package/es/{menu → components/menu}/dom/logic/MenuContainer.js +4 -4
  289. package/es/components/menu/dom/logic/MenuContainer.js.map +1 -0
  290. package/es/{menu → components/menu}/dom/logic/MenuElement.d.ts +2 -2
  291. package/es/{menu → components/menu}/dom/logic/MenuElement.js +9 -9
  292. package/es/components/menu/dom/logic/MenuElement.js.map +1 -0
  293. package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  294. package/es/components/title/title.d.ts +12 -0
  295. package/es/components/title/title.js +61 -0
  296. package/es/components/title/title.js.map +1 -0
  297. package/es/{tooltip → components/tooltip}/BaseTooltip.d.ts +3 -3
  298. package/es/components/tooltip/BaseTooltip.js.map +1 -0
  299. package/es/components/tooltip/Tooltip.js.map +1 -0
  300. package/{cjs → es/components}/tooltip/TooltipHandler.d.ts +4 -4
  301. package/es/{tooltip → components/tooltip}/TooltipHandler.js +4 -4
  302. package/es/components/tooltip/TooltipHandler.js.map +1 -0
  303. package/es/{tooltip → components/tooltip}/logic/BubbleTooltipElement.d.ts +4 -4
  304. package/es/{tooltip → components/tooltip}/logic/BubbleTooltipElement.js +4 -4
  305. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  306. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  307. package/es/components/util/orient.d.ts +3 -0
  308. package/es/components/util/orient.js +8 -0
  309. package/es/components/util/orient.js.map +1 -0
  310. package/es/components/util/register.d.ts +3 -0
  311. package/es/components/util/register.js +8 -0
  312. package/es/components/util/register.js.map +1 -0
  313. package/es/components/util/tick-data/config.d.ts +1 -0
  314. package/es/components/util/tick-data/config.js +2 -0
  315. package/es/components/util/tick-data/config.js.map +1 -0
  316. package/es/components/util/tick-data/continuous.d.ts +2 -0
  317. package/es/components/util/tick-data/continuous.js +38 -0
  318. package/es/components/util/tick-data/continuous.js.map +1 -0
  319. package/es/components/util/tick-data/discrete/linear.d.ts +2 -0
  320. package/es/components/util/tick-data/discrete/linear.js +59 -0
  321. package/es/components/util/tick-data/discrete/linear.js.map +1 -0
  322. package/es/components/util/tick-data/discrete/polar-angle.d.ts +2 -0
  323. package/es/components/util/tick-data/discrete/polar-angle.js +39 -0
  324. package/es/components/util/tick-data/discrete/polar-angle.js.map +1 -0
  325. package/es/components/util/tick-data/index.d.ts +2 -0
  326. package/es/components/util/tick-data/index.js +19 -0
  327. package/es/components/util/tick-data/index.js.map +1 -0
  328. package/es/components/util/tick-data/util.d.ts +21 -0
  329. package/es/components/util/tick-data/util.js +104 -0
  330. package/es/components/util/tick-data/util.js.map +1 -0
  331. package/es/components/util/transform.d.ts +5 -0
  332. package/es/components/util/transform.js +34 -0
  333. package/es/components/util/transform.js.map +1 -0
  334. package/es/core/BaseTable.d.ts +18 -5
  335. package/es/core/BaseTable.js +103 -41
  336. package/es/core/BaseTable.js.map +1 -1
  337. package/es/core/TABLE_EVENT_TYPE.d.ts +3 -0
  338. package/es/core/TABLE_EVENT_TYPE.js +4 -1
  339. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  340. package/es/core/style.js +1 -1
  341. package/es/core/style.js.map +1 -1
  342. package/es/core/tableHelper.js +1 -2
  343. package/es/data/CachedDataSource.js +2 -1
  344. package/es/data/DataSource.js +2 -2
  345. package/es/data/DataSource.js.map +1 -1
  346. package/es/dataset/dataset.d.ts +12 -19
  347. package/es/dataset/dataset.js +161 -187
  348. package/es/dataset/dataset.js.map +1 -1
  349. package/es/dataset/statistics-helper.d.ts +68 -0
  350. package/es/dataset/statistics-helper.js +152 -0
  351. package/es/dataset/statistics-helper.js.map +1 -0
  352. package/es/dataset/util/zero-align.d.ts +10 -0
  353. package/es/dataset/util/zero-align.js +111 -0
  354. package/es/dataset/util/zero-align.js.map +1 -0
  355. package/es/event/EventHandler.js.map +1 -1
  356. package/es/event/EventTarget.d.ts +5 -5
  357. package/es/event/EventTarget.js +2 -2
  358. package/es/event/EventTarget.js.map +1 -1
  359. package/es/event/VChartEventProxy.d.ts +1 -0
  360. package/es/event/VChartEventProxy.js +1 -0
  361. package/es/event/VChartEventProxy.js.map +1 -0
  362. package/es/event/event.js +8 -3
  363. package/es/event/event.js.map +1 -1
  364. package/es/event/listener/table-group.js +8 -6
  365. package/es/event/listener/table-group.js.map +1 -1
  366. package/es/event/pivot-chart/axis-click.d.ts +2 -0
  367. package/es/event/pivot-chart/axis-click.js +36 -0
  368. package/es/event/pivot-chart/axis-click.js.map +1 -0
  369. package/es/event/sparkline-event.js.map +1 -1
  370. package/es/event/util.js +1 -2
  371. package/es/header-helper/header-helper.js +1 -1
  372. package/es/header-helper/header-helper.js.map +1 -1
  373. package/es/header-helper/style/MultilineTextHeaderStyle.js +2 -2
  374. package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
  375. package/es/header-helper/style/Style.d.ts +0 -1
  376. package/es/header-helper/style/Style.js +25 -28
  377. package/es/header-helper/style/Style.js.map +1 -1
  378. package/es/index.d.ts +4 -3
  379. package/es/index.js +4 -2
  380. package/es/index.js.map +1 -1
  381. package/es/layout/index.js +2 -1
  382. package/es/layout/pivot-chart/get-axis-config.d.ts +2 -0
  383. package/es/layout/pivot-chart/get-axis-config.js +110 -0
  384. package/es/layout/pivot-chart/get-axis-config.js.map +1 -0
  385. package/es/layout/pivot-chart/get-chart-spec.d.ts +4 -0
  386. package/es/layout/pivot-chart/get-chart-spec.js +109 -0
  387. package/es/layout/pivot-chart/get-chart-spec.js.map +1 -0
  388. package/es/layout/pivot-header-layout.d.ts +11 -5
  389. package/es/layout/pivot-header-layout.js +41 -11
  390. package/es/layout/pivot-header-layout.js.map +1 -1
  391. package/es/layout/pivot-layout.d.ts +53 -8
  392. package/es/layout/pivot-layout.js +396 -87
  393. package/es/layout/pivot-layout.js.map +1 -1
  394. package/es/layout/simple-header-layout.d.ts +8 -0
  395. package/es/layout/simple-header-layout.js +34 -0
  396. package/es/layout/simple-header-layout.js.map +1 -1
  397. package/es/scenegraph/component/table-component.js +3 -3
  398. package/es/scenegraph/component/table-component.js.map +1 -1
  399. package/es/scenegraph/graphic/chart.d.ts +3 -0
  400. package/es/scenegraph/graphic/chart.js +22 -5
  401. package/es/scenegraph/graphic/chart.js.map +1 -1
  402. package/es/scenegraph/graphic/contributions/chart-render.js +15 -3
  403. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  404. package/es/scenegraph/group-creater/cell-helper.js +9 -2
  405. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  406. package/es/scenegraph/group-creater/cell-type/chart-cell.js +2 -1
  407. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  408. package/es/scenegraph/group-creater/column.js.map +1 -1
  409. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  410. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +65 -0
  411. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  412. package/es/scenegraph/group-creater/progress/proxy.d.ts +1 -1
  413. package/es/scenegraph/group-creater/progress/proxy.js +27 -34
  414. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  415. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +9 -8
  416. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  417. package/es/scenegraph/layout/compute-col-width.js +23 -15
  418. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  419. package/es/scenegraph/layout/compute-row-height.js +20 -9
  420. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  421. package/es/scenegraph/layout/move-cell.js +1 -1
  422. package/es/scenegraph/layout/move-cell.js.map +1 -1
  423. package/es/scenegraph/layout/update-cell.js +3 -1
  424. package/es/scenegraph/layout/update-cell.js.map +1 -1
  425. package/es/scenegraph/layout/update-height.js +1 -1
  426. package/es/scenegraph/layout/update-height.js.map +1 -1
  427. package/es/scenegraph/layout/update-row.js +1 -1
  428. package/es/scenegraph/layout/update-row.js.map +1 -1
  429. package/es/scenegraph/layout/update-width.js +1 -1
  430. package/es/scenegraph/layout/update-width.js.map +1 -1
  431. package/es/scenegraph/refresh-node/update-chart.d.ts +3 -0
  432. package/es/scenegraph/refresh-node/update-chart.js +45 -4
  433. package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
  434. package/es/scenegraph/scenegraph.d.ts +9 -0
  435. package/es/scenegraph/scenegraph.js +146 -19
  436. package/es/scenegraph/scenegraph.js.map +1 -1
  437. package/es/scenegraph/stick-text/index.js +10 -8
  438. package/es/scenegraph/stick-text/index.js.map +1 -1
  439. package/es/scenegraph/style/frame-border.js +1 -5
  440. package/es/scenegraph/style/frame-border.js.map +1 -1
  441. package/es/state/state.js +1 -1
  442. package/es/state/state.js.map +1 -1
  443. package/es/themes/DEFAULT.js +1 -2
  444. package/es/tools/LimitPromiseQueue.js +2 -1
  445. package/es/tools/calc.d.ts +3 -0
  446. package/es/tools/calc.js +10 -0
  447. package/es/tools/calc.js.map +1 -1
  448. package/es/tools/diff-cell.js +1 -1
  449. package/es/tools/dom.js +1 -1
  450. package/es/tools/env.js +1 -1
  451. package/es/ts-types/base-table.d.ts +29 -12
  452. package/es/ts-types/base-table.js.map +1 -1
  453. package/es/ts-types/column/style.d.ts +0 -1
  454. package/es/ts-types/column/style.js.map +1 -1
  455. package/es/ts-types/component/axis.d.ts +12 -0
  456. package/es/ts-types/component/axis.js +2 -0
  457. package/es/ts-types/component/axis.js.map +1 -0
  458. package/es/ts-types/component/legend.d.ts +5 -0
  459. package/es/ts-types/component/legend.js +2 -0
  460. package/es/ts-types/component/legend.js.map +1 -0
  461. package/es/ts-types/component/title.d.ts +47 -0
  462. package/es/ts-types/component/title.js +2 -0
  463. package/es/ts-types/component/title.js.map +1 -0
  464. package/es/ts-types/component/util.d.ts +1 -0
  465. package/es/ts-types/component/util.js +2 -0
  466. package/es/ts-types/component/util.js.map +1 -0
  467. package/es/ts-types/events.d.ts +100 -83
  468. package/es/ts-types/events.js.map +1 -1
  469. package/es/ts-types/list-table/layout-map/api.d.ts +2 -0
  470. package/es/ts-types/list-table/layout-map/api.js.map +1 -1
  471. package/es/ts-types/new-data-set.d.ts +18 -5
  472. package/es/ts-types/new-data-set.js +2 -2
  473. package/es/ts-types/new-data-set.js.map +1 -1
  474. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +4 -0
  475. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +4 -0
  476. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
  477. package/es/ts-types/pivot-table/corner.d.ts +3 -3
  478. package/es/ts-types/pivot-table/corner.js.map +1 -1
  479. package/es/ts-types/pivot-table/indicator/index.d.ts +1 -0
  480. package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
  481. package/es/ts-types/pivot-table/title.d.ts +1 -1
  482. package/es/ts-types/pivot-table/title.js.map +1 -1
  483. package/es/ts-types/table-engine.d.ts +27 -3
  484. package/es/ts-types/table-engine.js.map +1 -1
  485. package/package.json +11 -5
  486. package/cjs/menu/dom/BaseMenu.js.map +0 -1
  487. package/cjs/menu/dom/Menu.js.map +0 -1
  488. package/cjs/menu/dom/MenuHandler.js.map +0 -1
  489. package/cjs/menu/dom/logic/MenuContainer.js.map +0 -1
  490. package/cjs/menu/dom/logic/MenuElement.js.map +0 -1
  491. package/cjs/menu/dom/logic/MenuElementStyle.js.map +0 -1
  492. package/cjs/scenegraph/layout/auto-width.d.ts +0 -2
  493. package/cjs/scenegraph/layout/auto-width.js +0 -85
  494. package/cjs/scenegraph/layout/auto-width.js.map +0 -1
  495. package/cjs/tooltip/BaseTooltip.js.map +0 -1
  496. package/cjs/tooltip/Tooltip.js.map +0 -1
  497. package/cjs/tooltip/TooltipHandler.js.map +0 -1
  498. package/cjs/tooltip/logic/BubbleTooltipElement.js.map +0 -1
  499. package/cjs/tooltip/logic/BubbleTooltipElementStyle.js.map +0 -1
  500. package/es/menu/dom/BaseMenu.js.map +0 -1
  501. package/es/menu/dom/Menu.js.map +0 -1
  502. package/es/menu/dom/MenuHandler.js.map +0 -1
  503. package/es/menu/dom/logic/MenuContainer.js.map +0 -1
  504. package/es/menu/dom/logic/MenuElement.js.map +0 -1
  505. package/es/menu/dom/logic/MenuElementStyle.js.map +0 -1
  506. package/es/scenegraph/layout/auto-width.d.ts +0 -2
  507. package/es/scenegraph/layout/auto-width.js +0 -82
  508. package/es/scenegraph/layout/auto-width.js.map +0 -1
  509. package/es/tooltip/BaseTooltip.js.map +0 -1
  510. package/es/tooltip/Tooltip.js.map +0 -1
  511. package/es/tooltip/TooltipHandler.js.map +0 -1
  512. package/es/tooltip/logic/BubbleTooltipElement.js.map +0 -1
  513. package/es/tooltip/logic/BubbleTooltipElementStyle.js.map +0 -1
  514. /package/cjs/{menu → components/menu}/dom/BaseMenu.js +0 -0
  515. /package/cjs/{menu → components/menu}/dom/Menu.d.ts +0 -0
  516. /package/cjs/{menu → components/menu}/dom/Menu.js +0 -0
  517. /package/cjs/{menu → components/menu}/dom/logic/MenuElementStyle.d.ts +0 -0
  518. /package/cjs/{menu → components/menu}/dom/logic/MenuElementStyle.js +0 -0
  519. /package/cjs/{tooltip → components/tooltip}/BaseTooltip.js +0 -0
  520. /package/cjs/{tooltip → components/tooltip}/Tooltip.d.ts +0 -0
  521. /package/cjs/{tooltip → components/tooltip}/Tooltip.js +0 -0
  522. /package/cjs/{tooltip → components/tooltip}/logic/BubbleTooltipElementStyle.d.ts +0 -0
  523. /package/cjs/{tooltip → components/tooltip}/logic/BubbleTooltipElementStyle.js +0 -0
  524. /package/es/{menu → components/menu}/dom/BaseMenu.js +0 -0
  525. /package/es/{menu → components/menu}/dom/Menu.d.ts +0 -0
  526. /package/es/{menu → components/menu}/dom/Menu.js +0 -0
  527. /package/es/{menu → components/menu}/dom/logic/MenuElementStyle.d.ts +0 -0
  528. /package/es/{menu → components/menu}/dom/logic/MenuElementStyle.js +0 -0
  529. /package/es/{tooltip → components/tooltip}/BaseTooltip.js +0 -0
  530. /package/es/{tooltip → components/tooltip}/Tooltip.d.ts +0 -0
  531. /package/es/{tooltip → components/tooltip}/Tooltip.js +0 -0
  532. /package/es/{tooltip → components/tooltip}/logic/BubbleTooltipElementStyle.d.ts +0 -0
  533. /package/es/{tooltip → components/tooltip}/logic/BubbleTooltipElementStyle.js +0 -0
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  function updateChartSize(scenegraph, col) {
4
- var _a;
5
- for (let c = col; c < scenegraph.table.colCount; c++) {
6
- const columnGroup = scenegraph.getColGroup(c);
7
- (null === (_a = columnGroup.attribute) || void 0 === _a ? void 0 : _a.chartInstance) && columnGroup.getChildren().forEach((cellNode => {
4
+ for (let c = col; c <= scenegraph.proxy.colEnd; c++) {
5
+ scenegraph.getColGroup(c).getChildren().forEach((cellNode => {
8
6
  const width = scenegraph.table.getColWidth(cellNode.col), height = scenegraph.table.getRowHeight(cellNode.row);
9
7
  cellNode.children.forEach((node => {
10
8
  "chart" === node.type && (node.cacheCanvas = null, node.setAttribute("width", Math.ceil(width - node.attribute.cellPadding[3] - node.attribute.cellPadding[1])),
@@ -20,7 +18,52 @@ function updateChartSize(scenegraph, col) {
20
18
  }
21
19
  }
22
20
 
21
+ function clearChartCacheImage(scenegraph) {
22
+ for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
23
+ scenegraph.getColGroup(c).getChildren().forEach((cellNode => {
24
+ cellNode.children.forEach((node => {
25
+ "chart" === node.type && (node.cacheCanvas = null, node.addUpdateBoundTag());
26
+ }));
27
+ }));
28
+ }
29
+ }
30
+
31
+ function updateChartData(scenegraph) {
32
+ for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
33
+ scenegraph.getColGroup(c).getChildren().forEach((cellNode => {
34
+ const col = cellNode.col, row = cellNode.row;
35
+ cellNode.children.forEach((node => {
36
+ "chart" === node.type && (node.updateData(scenegraph.table.getCellValue(col, row)),
37
+ node.addUpdateBoundTag());
38
+ }));
39
+ }));
40
+ }
41
+ }
42
+
43
+ function updateChartState(scenegraph, datum) {
44
+ const table = scenegraph.table;
45
+ if (table.isPivotChart()) {
46
+ const preSelectItemsCount = table._selectedDataItemsInChart.length;
47
+ if ((null === datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) && 0 === preSelectItemsCount) return;
48
+ if (table._selectedDataItemsInChart = [], Array.isArray(datum)) datum.forEach((dataItem => {
49
+ if (dataItem && 0 !== dataItem.key && Object.keys(dataItem).length > 0) {
50
+ const selectedState = {};
51
+ for (const itemKey in dataItem) itemKey.startsWith("VGRAMMAR_") || itemKey.startsWith("__VCHART") || (selectedState[itemKey] = dataItem[itemKey]);
52
+ table._selectedDataItemsInChart.push(selectedState);
53
+ }
54
+ })); else if (datum && 0 !== datum.key && Object.keys(datum).length > 0) {
55
+ const selectedState = {};
56
+ for (const itemKey in datum) itemKey.startsWith("VGRAMMAR_") || itemKey.startsWith("__VCHART") || (selectedState[itemKey] = datum[itemKey]);
57
+ table._selectedDataItemsInChart.push(selectedState);
58
+ }
59
+ if (0 === table._selectedDataItemsInChart.length && 0 === preSelectItemsCount) return;
60
+ table.internalProps.layoutMap.updateDataStateToChartInstance(), clearChartCacheImage(scenegraph);
61
+ }
62
+ }
63
+
23
64
  Object.defineProperty(exports, "__esModule", {
24
65
  value: !0
25
- }), exports.updateChartSize = void 0, exports.updateChartSize = updateChartSize;
66
+ }), exports.updateChartState = exports.updateChartData = exports.clearChartCacheImage = exports.updateChartSize = void 0,
67
+ exports.updateChartSize = updateChartSize, exports.clearChartCacheImage = clearChartCacheImage,
68
+ exports.updateChartData = updateChartData, exports.updateChartState = updateChartState;
26
69
  //# sourceMappingURL=update-chart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["scenegraph/refresh-node/update-chart.ts"],"names":[],"mappings":";;;AAKA,SAAgB,eAAe,CAAC,UAAsB,EAAE,GAAW;;IAEjE,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;QACpD,MAAM,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,aAAa,GAAG,MAAC,WAAW,CAAC,SAAiB,0CAAE,aAAa,CAAC;QACpE,IAAI,aAAa,EAAE;YAEjB,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,QAAe,EAAE,EAAE;gBACpD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACzD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAE3D,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAW,EAAE,EAAE;oBACxC,IAAK,IAAY,CAAC,IAAI,KAAK,OAAO,EAAE;wBAoBlC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;wBACxB,IAAI,CAAC,YAAY,CACf,OAAO,EACP,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CACjF,CAAC;wBACF,IAAI,CAAC,YAAY,CACf,QAAQ,EACR,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAClF,CAAC;wBAEF,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;4BAC3B,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;4BACzG,EAAE,EAAE,IAAI,CAAC,IAAI,CACX,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CACnG;4BACD,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC;4BACxG,EAAE,EAAE,IAAI,CAAC,IAAI,CACX,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,SAAS,CACnG;yBACF,CAAC,CAAC;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;KACF;AACH,CAAC;AAzDD,0CAyDC","file":"update-chart.js","sourcesContent":["import type { Chart } from '../graphic/chart';\nimport type { Group } from '../graphic/group';\nimport type { Scenegraph } from '../scenegraph';\n\n/** 供调整列宽后更新chart使用 */\nexport function updateChartSize(scenegraph: Scenegraph, col: number) {\n // 将调整列宽的后面的面也都一起需要调整viewbox。 TODO:columnResizeType支持后需要根据变化的列去调整,范围可能变多或者变少\n for (let c = col; c < scenegraph.table.colCount; c++) {\n const columnGroup = scenegraph.getColGroup(c);\n const chartInstance = (columnGroup.attribute as any)?.chartInstance;\n if (chartInstance) {\n // chartInstance.updateViewBox();\n columnGroup.getChildren().forEach((cellNode: Group) => {\n const width = scenegraph.table.getColWidth(cellNode.col);\n const height = scenegraph.table.getRowHeight(cellNode.row);\n\n cellNode.children.forEach((node: Chart) => {\n if ((node as any).type === 'chart') {\n // 调试问题使用\n // if (columnGroup.col === 2) {\n // columnGroup.AABBBounds.width();\n // node.AABBBounds.width();\n // console.log(\n // 'set viewbox y1',\n // Math.ceil(cellNode.globalAABBBounds.y1 + node.attribute.cellPadding[0] + scenegraph.table.scrollTop),\n // node.globalAABBBounds.height()\n // );\n\n // console.log(\n // 'updateChartSize',\n // columnGroup,\n // columnGroup.globalAABBBounds.y1,\n // cellNode.globalAABBBounds.y1,\n // node.globalAABBBounds.y1\n // );\n // }\n\n node.cacheCanvas = null;\n node.setAttribute(\n 'width',\n Math.ceil(width - node.attribute.cellPadding[3] - node.attribute.cellPadding[1])\n );\n node.setAttribute(\n 'height',\n Math.ceil(height - node.attribute.cellPadding[0] - node.attribute.cellPadding[2])\n );\n\n node.setAttribute('viewBox', {\n x1: Math.ceil(cellNode.globalAABBBounds.x1 + node.attribute.cellPadding[3] + scenegraph.table.scrollLeft),\n x2: Math.ceil(\n cellNode.globalAABBBounds.x1 + width - node.attribute.cellPadding[1] + scenegraph.table.scrollLeft\n ),\n y1: Math.ceil(cellNode.globalAABBBounds.y1 + node.attribute.cellPadding[0] + scenegraph.table.scrollTop),\n y2: Math.ceil(\n cellNode.globalAABBBounds.y1 + height - node.attribute.cellPadding[2] + scenegraph.table.scrollTop\n )\n });\n }\n });\n });\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["scenegraph/refresh-node/update-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;SACR;QAEA,KAAK,CAAC,aAAa,CAAC,SAA4B,CAAC,8BAA8B,EAAE,CAAC;QAEnF,oBAAoB,CAAC,UAAU,CAAC,CAAC;KAClC;AACH,CAAC;AAzCD,4CAyCC","file":"update-chart.js","sourcesContent":["import type { PivotChart } from '../../PivotChart';\nimport type { PivotLayoutMap } from '../../layout/pivot-layout';\nimport type { Chart } from '../graphic/chart';\nimport type { Group } from '../graphic/group';\nimport type { Scenegraph } from '../scenegraph';\n\n/** 供调整列宽后更新chart使用 */\nexport function updateChartSize(scenegraph: Scenegraph, col: number) {\n // 将调整列宽的后面的面也都一起需要调整viewbox。 TODO:columnResizeType支持后需要根据变化的列去调整,范围可能变多或者变少\n for (let c = col; c <= scenegraph.proxy.colEnd; c++) {\n const columnGroup = scenegraph.getColGroup(c);\n // const chartInstance = (columnGroup.attribute as any)?.chartInstance;\n // if (chartInstance) {\n columnGroup.getChildren().forEach((cellNode: Group) => {\n const width = scenegraph.table.getColWidth(cellNode.col);\n const height = scenegraph.table.getRowHeight(cellNode.row);\n\n cellNode.children.forEach((node: Chart) => {\n if ((node as any).type === 'chart') {\n // 调试问题使用\n // if (columnGroup.col === 2) {\n // columnGroup.AABBBounds.width();\n // node.AABBBounds.width();\n // console.log(\n // 'set viewbox y1',\n // Math.ceil(cellNode.globalAABBBounds.y1 + node.attribute.cellPadding[0] + scenegraph.table.scrollTop),\n // node.globalAABBBounds.height()\n // );\n\n // console.log(\n // 'updateChartSize',\n // columnGroup,\n // columnGroup.globalAABBBounds.y1,\n // cellNode.globalAABBBounds.y1,\n // node.globalAABBBounds.y1\n // );\n // }\n\n node.cacheCanvas = null;\n node.setAttribute('width', Math.ceil(width - node.attribute.cellPadding[3] - node.attribute.cellPadding[1]));\n node.setAttribute(\n 'height',\n Math.ceil(height - node.attribute.cellPadding[0] - node.attribute.cellPadding[2])\n );\n\n node.setAttribute('viewBox', {\n x1: Math.ceil(cellNode.globalAABBBounds.x1 + node.attribute.cellPadding[3] + scenegraph.table.scrollLeft),\n x2: Math.ceil(\n cellNode.globalAABBBounds.x1 + width - node.attribute.cellPadding[1] + scenegraph.table.scrollLeft\n ),\n y1: Math.ceil(cellNode.globalAABBBounds.y1 + node.attribute.cellPadding[0] + scenegraph.table.scrollTop),\n y2: Math.ceil(\n cellNode.globalAABBBounds.y1 + height - node.attribute.cellPadding[2] + scenegraph.table.scrollTop\n )\n });\n }\n });\n });\n // }\n }\n}\n\n/** 清理所有chart节点的 图表缓存图片 */\nexport function clearChartCacheImage(scenegraph: Scenegraph) {\n // 将调整列宽的后面的面也都一起需要调整viewbox。 TODO:columnResizeType支持后需要根据变化的列去调整,范围可能变多或者变少\n for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {\n const columnGroup = scenegraph.getColGroup(c);\n columnGroup.getChildren().forEach((cellNode: Group) => {\n cellNode.children.forEach((node: Chart) => {\n if ((node as any).type === 'chart') {\n node.cacheCanvas = null;\n node.addUpdateBoundTag();\n }\n });\n });\n }\n}\n\n/** 更新所有的图表chart节点上缓存attribute中的data数据 */\nexport function updateChartData(scenegraph: Scenegraph) {\n // 将调整列宽的后面的面也都一起需要调整viewbox。 TODO:columnResizeType支持后需要根据变化的列去调整,范围可能变多或者变少\n for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {\n const columnGroup = scenegraph.getColGroup(c);\n columnGroup.getChildren().forEach((cellNode: Group) => {\n const col = cellNode.col;\n const row = cellNode.row;\n cellNode.children.forEach((node: Chart) => {\n if ((node as any).type === 'chart') {\n node.updateData(scenegraph.table.getCellValue(col, row));\n node.addUpdateBoundTag();\n }\n });\n });\n }\n}\n/** 组织图表数据状态_selectedDataItemsInChart 更新选中的图表图元状态 */\nexport function updateChartState(scenegraph: Scenegraph, datum: any) {\n const table = scenegraph.table;\n if (table.isPivotChart()) {\n const preSelectItemsCount = (table as PivotChart)._selectedDataItemsInChart.length;\n if ((datum === null || datum?.length === 0 || Object.keys(datum).length === 0) && preSelectItemsCount === 0) {\n //避免无效的更新\n return;\n }\n (table as PivotChart)._selectedDataItemsInChart = [];\n if (Array.isArray(datum)) {\n datum.forEach((dataItem: any) => {\n if (dataItem && dataItem.key !== 0 && Object.keys(dataItem).length > 0) {\n //本以为没有点击到图元上 datum为空 发现是{key:0}或者{}\n const selectedState = {};\n for (const itemKey in dataItem) {\n if (!itemKey.startsWith('VGRAMMAR_') && !itemKey.startsWith('__VCHART')) {\n selectedState[itemKey] = dataItem[itemKey];\n }\n }\n (table as PivotChart)._selectedDataItemsInChart.push(selectedState);\n }\n });\n } else if (datum && datum.key !== 0 && Object.keys(datum).length > 0) {\n //本以为没有点击到图元上 datum为空 发现是{key:0}或者{}\n const selectedState = {};\n for (const itemKey in datum) {\n if (!itemKey.startsWith('VGRAMMAR_') && !itemKey.startsWith('__VCHART')) {\n selectedState[itemKey] = datum[itemKey];\n }\n }\n (table as PivotChart)._selectedDataItemsInChart.push(selectedState);\n }\n //避免无效的更新\n if ((table as PivotChart)._selectedDataItemsInChart.length === 0 && preSelectItemsCount === 0) {\n return;\n }\n\n (table.internalProps.layoutMap as PivotLayoutMap).updateDataStateToChartInstance();\n // 清楚chart缓存图片\n clearChartCacheImage(scenegraph);\n }\n}\n"]}
@@ -18,6 +18,11 @@ export declare class Scenegraph {
18
18
  cornerHeaderGroup: Group;
19
19
  rowHeaderGroup: Group;
20
20
  bodyGroup: Group;
21
+ rightFrozenGroup: Group;
22
+ bottomFrozenGroup: Group;
23
+ rightTopCellGroup: Group;
24
+ leftBottomCellGroup: Group;
25
+ rightBottomCellGroup: Group;
21
26
  componentGroup: Group;
22
27
  selectedRangeComponents: Map<string, {
23
28
  rect: IRect;
@@ -36,6 +41,8 @@ export declare class Scenegraph {
36
41
  hasFrozen: boolean;
37
42
  frozenColCount: number;
38
43
  frozenRowCount: number;
44
+ rightFrozenColCount: number;
45
+ bottomFrozenRowCount: number;
39
46
  clear: boolean;
40
47
  mergeMap: MergeMap;
41
48
  constructor(table: BaseTableAPI);
@@ -78,6 +85,7 @@ export declare class Scenegraph {
78
85
  setIconNormalStyle(icon: Icon, col: number, row: number): void;
79
86
  updateColWidth(col: number, detaX: number): void;
80
87
  updateChartSize(col: number): void;
88
+ updateChartState(datum: any): void;
81
89
  updateAutoColWidth(col: number): void;
82
90
  recalculateColWidths(): void;
83
91
  recalculateRowHeights(): void;
@@ -94,6 +102,7 @@ export declare class Scenegraph {
94
102
  setBodyAndColHeaderX(x: number): void;
95
103
  afterScenegraphCreated(): void;
96
104
  dealWidthMode(): void;
105
+ dealHeightMode(): void;
97
106
  dealFrozen(): void;
98
107
  resetFrozen(): void;
99
108
  updateCellLayoutWidthCertainWidth(columnGroup: Group, detaRow: number, col: number): boolean;
@@ -104,6 +104,24 @@ class Scenegraph {
104
104
  pickable: !1
105
105
  });
106
106
  bodyGroup.role = "body", this.bodyGroup = bodyGroup;
107
+ const rightFrozenGroup = new group_1.Group({
108
+ x: 0,
109
+ y: 0,
110
+ width: width,
111
+ height: 0,
112
+ clip: !1,
113
+ pickable: !1
114
+ });
115
+ rightFrozenGroup.role = "right-frozen", this.rightFrozenGroup = rightFrozenGroup;
116
+ const bottomFrozenGroup = new group_1.Group({
117
+ x: 0,
118
+ y: 0,
119
+ width: width,
120
+ height: 0,
121
+ clip: !1,
122
+ pickable: !1
123
+ });
124
+ bottomFrozenGroup.role = "bottom-frozen", this.bottomFrozenGroup = bottomFrozenGroup;
107
125
  const componentGroup = new group_1.Group({
108
126
  x: 0,
109
127
  y: 0,
@@ -113,8 +131,47 @@ class Scenegraph {
113
131
  pickable: !1,
114
132
  childrenPickable: !0
115
133
  });
116
- componentGroup.role = "component", this.componentGroup = componentGroup, this.tableGroup.addChild(bodyGroup),
117
- this.tableGroup.addChild(rowHeaderGroup), this.tableGroup.addChild(colHeaderGroup),
134
+ componentGroup.role = "component", this.componentGroup = componentGroup;
135
+ const rightTopCellGroup = new group_1.Group({
136
+ x: 0,
137
+ y: 0,
138
+ width: 0,
139
+ height: 0,
140
+ visible: !1,
141
+ pickable: !0,
142
+ fill: this.table.theme.cornerHeaderStyle.bgColor,
143
+ stroke: this.table.theme.cornerHeaderStyle.borderColor,
144
+ lineWidth: this.table.theme.cornerHeaderStyle.borderLineWidth
145
+ });
146
+ rightTopCellGroup.role = "corner-frozen", this.rightTopCellGroup = rightTopCellGroup;
147
+ const leftBottomCellGroup = new group_1.Group({
148
+ x: 0,
149
+ y: 0,
150
+ width: 0,
151
+ height: 0,
152
+ visible: !1,
153
+ pickable: !0,
154
+ fill: this.table.theme.cornerHeaderStyle.bgColor,
155
+ stroke: this.table.theme.cornerHeaderStyle.borderColor,
156
+ lineWidth: this.table.theme.cornerHeaderStyle.borderLineWidth
157
+ });
158
+ leftBottomCellGroup.role = "corner-frozen", this.leftBottomCellGroup = leftBottomCellGroup;
159
+ const rightBottomCellGroup = new group_1.Group({
160
+ x: 0,
161
+ y: 0,
162
+ width: 0,
163
+ height: 0,
164
+ visible: !1,
165
+ pickable: !0,
166
+ fill: this.table.theme.cornerHeaderStyle.bgColor,
167
+ stroke: this.table.theme.cornerHeaderStyle.borderColor,
168
+ lineWidth: this.table.theme.cornerHeaderStyle.borderLineWidth
169
+ });
170
+ rightBottomCellGroup.role = "corner-frozen", this.rightBottomCellGroup = rightBottomCellGroup,
171
+ this.tableGroup.addChild(bodyGroup), this.tableGroup.addChild(rightFrozenGroup),
172
+ this.tableGroup.addChild(bottomFrozenGroup), this.tableGroup.addChild(rowHeaderGroup),
173
+ this.tableGroup.addChild(colHeaderGroup), this.tableGroup.addChild(rightBottomCellGroup),
174
+ this.tableGroup.addChild(rightTopCellGroup), this.tableGroup.addChild(leftBottomCellGroup),
118
175
  this.tableGroup.addChild(cornerHeaderGroup), this.tableGroup.addChild(componentGroup);
119
176
  }
120
177
  clearCells() {
@@ -140,10 +197,38 @@ class Scenegraph {
140
197
  y: 0,
141
198
  width: 0,
142
199
  height: 0
143
- }), this.tableGroup.setAttributes({
200
+ }), this.rightFrozenGroup.setAttributes({
201
+ x: 0,
202
+ y: 0,
203
+ width: 0,
204
+ height: 0
205
+ }), this.bottomFrozenGroup.setAttributes({
206
+ x: 0,
207
+ y: 0,
208
+ width: 0,
209
+ height: 0
210
+ }), this.rightTopCellGroup.setAttributes({
211
+ x: 0,
212
+ y: 0,
213
+ width: 0,
214
+ height: 0,
215
+ visible: !1
216
+ }), this.leftBottomCellGroup.setAttributes({
217
+ x: 0,
218
+ y: 0,
219
+ width: 0,
220
+ height: 0,
221
+ visible: !1
222
+ }), this.rightTopCellGroup.setAttributes({
144
223
  x: 0,
145
224
  y: 0,
146
225
  width: 0,
226
+ height: 0,
227
+ visible: !1
228
+ }), this.tableGroup.setAttributes({
229
+ x: this.table.tableX,
230
+ y: this.table.tableY,
231
+ width: 0,
147
232
  height: 0
148
233
  }), this.tableGroup.border && (this.tableGroup.parent.removeChild(this.tableGroup.border),
149
234
  delete this.tableGroup.border);
@@ -155,7 +240,7 @@ class Scenegraph {
155
240
  createSceneGraph() {
156
241
  this.clear = !1, this.frozenColCount = this.table.rowHeaderLevelCount, this.frozenRowCount = this.table.columnHeaderLevelCount,
157
242
  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),
158
- this.proxy.createGroupForFirstScreen(this.cornerHeaderGroup, this.colHeaderGroup, this.rowHeaderGroup, this.bodyGroup, 0, 0),
243
+ this.proxy.createGroupForFirstScreen(this.cornerHeaderGroup, this.colHeaderGroup, this.rowHeaderGroup, this.rightFrozenGroup, this.bottomFrozenGroup, this.bodyGroup, 0, 0),
159
244
  this.afterScenegraphCreated();
160
245
  }
161
246
  renderSceneGraph() {
@@ -177,9 +262,10 @@ class Scenegraph {
177
262
  element || void 0;
178
263
  }
179
264
  getCell(col, row, getShadow) {
180
- var _a;
181
- let cell = null === (_a = this.getColGroup(col, row < this.frozenRowCount)) || void 0 === _a ? void 0 : _a.getRowGroup(row);
182
- if (cell && "shadow-cell" === cell.role && !getShadow) {
265
+ var _a, _b, _c;
266
+ let cell;
267
+ if (cell = this.table.rightFrozenColCount > 0 && col > this.table.colCount - 1 - this.table.rightFrozenColCount ? null === (_a = this.rightFrozenGroup.getColGroup(col)) || void 0 === _a ? void 0 : _a.getRowGroup(row) : this.table.bottomFrozenRowCount > 0 && row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount ? null === (_b = this.bottomFrozenGroup.getColGroup(col)) || void 0 === _b ? void 0 : _b.getRowGroup(row) : null === (_c = this.getColGroup(col, row < this.frozenRowCount)) || void 0 === _c ? void 0 : _c.getRowGroup(row),
268
+ cell && "shadow-cell" === cell.role && !getShadow) {
183
269
  const range = this.table.getCellRange(col, row);
184
270
  cell = this.getCell(range.start.col, range.start.row);
185
271
  }
@@ -190,7 +276,7 @@ class Scenegraph {
190
276
  }
191
277
  getColGroup(col, isCornerOrColHeader = !1) {
192
278
  let element;
193
- return element = col < this.frozenColCount && isCornerOrColHeader ? this.cornerHeaderGroup.getColGroup(col) : col < this.frozenColCount ? this.rowHeaderGroup.getColGroup(col) : isCornerOrColHeader ? this.colHeaderGroup.getColGroup(col) : this.bodyGroup.getColGroup(col),
279
+ return element = col < this.frozenColCount && isCornerOrColHeader ? this.cornerHeaderGroup.getColGroup(col) : col < this.frozenColCount ? this.rowHeaderGroup.getColGroup(col) : isCornerOrColHeader ? this.colHeaderGroup.getColGroup(col) : this.table.rightFrozenColCount > 0 && col > this.table.colCount - 1 - this.table.rightFrozenColCount ? this.rightFrozenGroup.getColGroup(col) : this.bodyGroup.getColGroup(col),
194
280
  element || void 0;
195
281
  }
196
282
  getCellSize(col, row) {
@@ -315,6 +401,9 @@ class Scenegraph {
315
401
  updateChartSize(col) {
316
402
  (0, update_chart_1.updateChartSize)(this, col);
317
403
  }
404
+ updateChartState(datum) {
405
+ this.table.isPivotChart() && (0, update_chart_1.updateChartState)(this, datum);
406
+ }
318
407
  updateAutoColWidth(col) {
319
408
  const oldWidth = this.table.getColWidth(col), newWidth = (0, compute_col_width_1.computeColWidth)(col, 0, this.table.rowCount - 1, this.table, !0);
320
409
  newWidth !== oldWidth && this.updateColWidth(col, newWidth - oldWidth);
@@ -326,19 +415,39 @@ class Scenegraph {
326
415
  (0, compute_row_height_1.computeRowsHeight)(this.table, 0, this.table.rowCount - 1);
327
416
  }
328
417
  resize() {
329
- this.recalculateColWidths(), this.table.internalProps.autoRowHeight && this.recalculateRowHeights(),
330
- this.dealWidthMode(), this.dealFrozen(), this.updateTableSize(), this.updateBorderSizeAndPosition(),
331
- this.component.updateScrollBar(), this.updateNextFrame();
418
+ this.recalculateColWidths(), "autoHeight" === this.table.heightMode && this.recalculateRowHeights(),
419
+ this.dealWidthMode(), this.dealHeightMode(), this.dealFrozen(), this.updateTableSize(),
420
+ this.updateBorderSizeAndPosition(), this.component.updateScrollBar(), this.updateNextFrame();
332
421
  }
333
422
  updateTableSize() {
334
423
  var _a, _b;
335
424
  this.tableGroup.setAttributes({
336
- width: Math.min(this.table.tableNoFrameWidth, Math.max(this.colHeaderGroup.attribute.width, this.bodyGroup.attribute.width, 0) + Math.max(this.cornerHeaderGroup.attribute.width, this.rowHeaderGroup.attribute.width, 0)),
337
- height: Math.min(this.table.tableNoFrameHeight, (null !== (_a = this.colHeaderGroup.attribute.height) && void 0 !== _a ? _a : 0) + (null !== (_b = this.bodyGroup.attribute.height) && void 0 !== _b ? _b : 0))
425
+ width: Math.min(this.table.tableNoFrameWidth, Math.max(this.colHeaderGroup.attribute.width, this.bodyGroup.attribute.width, 0) + Math.max(this.cornerHeaderGroup.attribute.width, this.rowHeaderGroup.attribute.width, 0) + this.rightBottomCellGroup.attribute.width),
426
+ height: Math.min(this.table.tableNoFrameHeight, (null !== (_a = this.colHeaderGroup.attribute.height) && void 0 !== _a ? _a : 0) + (null !== (_b = this.bodyGroup.attribute.height) && void 0 !== _b ? _b : 0) + this.bottomFrozenGroup.attribute.height)
338
427
  }), this.tableGroup.border && this.tableGroup.border.setAttributes({
339
428
  width: this.tableGroup.attribute.width + this.tableGroup.border.attribute.lineWidth,
340
429
  height: this.tableGroup.attribute.height + this.tableGroup.border.attribute.lineWidth
341
- });
430
+ }), this.table.bottomFrozenRowCount > 0 && (this.bottomFrozenGroup.setAttribute("y", this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height),
431
+ this.leftBottomCellGroup.setAttributes({
432
+ visible: !0,
433
+ y: this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height,
434
+ height: this.bottomFrozenGroup.attribute.height,
435
+ width: this.table.getFrozenColsWidth()
436
+ }), this.rightBottomCellGroup.setAttributes({
437
+ visible: !0,
438
+ y: this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height,
439
+ height: this.bottomFrozenGroup.attribute.height
440
+ })), this.table.rightFrozenColCount > 0 && (this.rightFrozenGroup.setAttribute("x", this.tableGroup.attribute.width - this.rightFrozenGroup.attribute.width),
441
+ this.rightTopCellGroup.setAttributes({
442
+ visible: !0,
443
+ x: this.tableGroup.attribute.width - this.rightFrozenGroup.attribute.width,
444
+ width: this.rightFrozenGroup.attribute.width,
445
+ height: this.table.getFrozenRowsHeight()
446
+ }), this.rightBottomCellGroup.setAttributes({
447
+ visible: !0,
448
+ x: this.tableGroup.attribute.width - this.rightFrozenGroup.attribute.width,
449
+ width: this.rightFrozenGroup.attribute.width
450
+ }));
342
451
  }
343
452
  updateRowHeight(row, detaY) {
344
453
  (0, update_height_1.updateRowHeight)(this, row, detaY), this.updateContainerHeight(row, detaY);
@@ -372,16 +481,18 @@ class Scenegraph {
372
481
  setBodyAndRowHeaderY(y) {
373
482
  this.colHeaderGroup.attribute.height + y !== this.bodyGroup.attribute.y && (this.bodyGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
374
483
  this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
484
+ this.table.rightFrozenColCount > 0 && this.rightFrozenGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
375
485
  this.updateNextFrame());
376
486
  }
377
487
  setBodyAndColHeaderX(x) {
378
488
  this.rowHeaderGroup.attribute.width + x !== this.bodyGroup.attribute.x && (this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width + x),
379
489
  this.colHeaderGroup.setAttribute("x", this.rowHeaderGroup.attribute.width + x),
490
+ this.table.bottomFrozenRowCount > 0 && this.bottomFrozenGroup.setAttribute("x", this.rowHeaderGroup.attribute.width + x),
380
491
  this.updateNextFrame());
381
492
  }
382
493
  afterScenegraphCreated() {
383
- this.dealWidthMode(), this.dealFrozen(), this.createFrameBorder(), this.updateBorderSizeAndPosition(),
384
- this.component.updateScrollBar(), (0, stick_text_1.handleTextStick)(this.table),
494
+ this.dealWidthMode(), this.dealHeightMode(), this.dealFrozen(), this.createFrameBorder(),
495
+ this.updateBorderSizeAndPosition(), this.component.updateScrollBar(), (0, stick_text_1.handleTextStick)(this.table),
385
496
  this.updateNextFrame();
386
497
  }
387
498
  dealWidthMode() {
@@ -396,7 +507,7 @@ class Scenegraph {
396
507
  colWidth = col === table.colCount - 1 ? totalDrawWidth - table.getColsWidth(0, table.colCount - 2) : Math.round(table.getColWidth(col) * factor),
397
508
  this.setColWidth(col, colWidth);
398
509
  }
399
- } else if ("standard-aeolus" === table.widthMode && this.transpose) {
510
+ } else if (table.autoFillWidth) {
400
511
  const canvasWidth = table.tableNoFrameWidth;
401
512
  let actualWidth = 0, actualHeaderWidth = 0;
402
513
  for (let col = 0; col < table.colCount; col++) {
@@ -429,6 +540,21 @@ class Scenegraph {
429
540
  y: this.colHeaderGroup.attribute.height
430
541
  });
431
542
  }
543
+ dealHeightMode() {
544
+ const table = this.table;
545
+ if ("adaptive" === table.heightMode) {
546
+ table._clearRowRangeHeightsMap();
547
+ const totalDrawHeight = table.tableNoFrameHeight - table.getFrozenRowsHeight() - table.getBottomFrozenRowsHeight();
548
+ let actualHeight = 0;
549
+ for (let row = table.frozenRowCount; row < table.rowCount - table.bottomFrozenRowCount; row++) actualHeight += table.getRowHeight(row);
550
+ const factor = totalDrawHeight / actualHeight;
551
+ for (let row = table.frozenRowCount; row < table.rowCount - table.bottomFrozenRowCount; row++) {
552
+ let rowHeight;
553
+ rowHeight = row === table.rowCount - table.bottomFrozenRowCount - 1 ? totalDrawHeight - table.getRowsHeight(table.frozenRowCount, table.rowCount - table.bottomFrozenRowCount - 2) : Math.round(table.getRowHeight(row) * factor),
554
+ this.setRowHeight(row, rowHeight);
555
+ }
556
+ }
557
+ }
432
558
  dealFrozen() {
433
559
  (0, frozen_1.dealFrozen)(this);
434
560
  }
@@ -600,7 +726,7 @@ class Scenegraph {
600
726
  }
601
727
  updateRow(removeCells, addCells) {
602
728
  (0, update_row_1.updateRow)(removeCells, addCells, this.table), this.recalculateColWidths(),
603
- this.table.internalProps.autoRowHeight && this.recalculateRowHeights(), this.table.stateManeger.checkFrozen(),
729
+ "autoHeight" === this.table.heightMode && this.recalculateRowHeights(), this.table.stateManeger.checkFrozen(),
604
730
  this.updateNextFrame();
605
731
  }
606
732
  findAndUpdateIcon(group, funcTypeArr, iconConfig) {