k-vtable 1.0.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 (2044) hide show
  1. package/README.md +151 -0
  2. package/cjs/ListTable-all.d.ts +3 -0
  3. package/cjs/ListTable-all.js +20 -0
  4. package/cjs/ListTable-all.js.map +1 -0
  5. package/cjs/ListTable-simple.d.ts +3 -0
  6. package/cjs/ListTable-simple.js +14 -0
  7. package/cjs/ListTable-simple.js.map +1 -0
  8. package/cjs/ListTable.d.ts +101 -0
  9. package/cjs/ListTable.js +682 -0
  10. package/cjs/ListTable.js.map +1 -0
  11. package/cjs/PivotChart.d.ts +100 -0
  12. package/cjs/PivotChart.js +755 -0
  13. package/cjs/PivotChart.js.map +1 -0
  14. package/cjs/PivotTable-all.d.ts +3 -0
  15. package/cjs/PivotTable-all.js +19 -0
  16. package/cjs/PivotTable-all.js.map +1 -0
  17. package/cjs/PivotTable-simple.d.ts +3 -0
  18. package/cjs/PivotTable-simple.js +14 -0
  19. package/cjs/PivotTable-simple.js.map +1 -0
  20. package/cjs/PivotTable.d.ts +112 -0
  21. package/cjs/PivotTable.js +992 -0
  22. package/cjs/PivotTable.js.map +1 -0
  23. package/cjs/body-helper/body-helper.d.ts +20 -0
  24. package/cjs/body-helper/body-helper.js +121 -0
  25. package/cjs/body-helper/body-helper.js.map +1 -0
  26. package/cjs/body-helper/style/ButtonStyle.d.ts +45 -0
  27. package/cjs/body-helper/style/ButtonStyle.js +110 -0
  28. package/cjs/body-helper/style/ButtonStyle.js.map +1 -0
  29. package/cjs/body-helper/style/CheckboxStyle.d.ts +42 -0
  30. package/cjs/body-helper/style/CheckboxStyle.js +104 -0
  31. package/cjs/body-helper/style/CheckboxStyle.js.map +1 -0
  32. package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
  33. package/cjs/body-helper/style/ImageStyle.js +24 -0
  34. package/cjs/body-helper/style/ImageStyle.js.map +1 -0
  35. package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
  36. package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
  37. package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
  38. package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
  39. package/cjs/body-helper/style/NumberStyle.js +24 -0
  40. package/cjs/body-helper/style/NumberStyle.js.map +1 -0
  41. package/cjs/body-helper/style/ProgressBarStyle.d.ts +55 -0
  42. package/cjs/body-helper/style/ProgressBarStyle.js +139 -0
  43. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
  44. package/cjs/body-helper/style/RadioStyle.d.ts +45 -0
  45. package/cjs/body-helper/style/RadioStyle.js +111 -0
  46. package/cjs/body-helper/style/RadioStyle.js.map +1 -0
  47. package/cjs/body-helper/style/Style.d.ts +95 -0
  48. package/cjs/body-helper/style/Style.js +225 -0
  49. package/cjs/body-helper/style/Style.js.map +1 -0
  50. package/cjs/body-helper/style/SwitchStyle.d.ts +36 -0
  51. package/cjs/body-helper/style/SwitchStyle.js +90 -0
  52. package/cjs/body-helper/style/SwitchStyle.js.map +1 -0
  53. package/cjs/body-helper/style.d.ts +11 -0
  54. package/cjs/body-helper/style.js +52 -0
  55. package/cjs/body-helper/style.js.map +1 -0
  56. package/cjs/chartModule.d.ts +3 -0
  57. package/cjs/chartModule.js +14 -0
  58. package/cjs/chartModule.js.map +1 -0
  59. package/cjs/components/axis/axis.d.ts +52 -0
  60. package/cjs/components/axis/axis.js +190 -0
  61. package/cjs/components/axis/axis.js.map +1 -0
  62. package/cjs/components/axis/band-scale.d.ts +18 -0
  63. package/cjs/components/axis/band-scale.js +54 -0
  64. package/cjs/components/axis/band-scale.js.map +1 -0
  65. package/cjs/components/axis/get-axis-attributes.d.ts +146 -0
  66. package/cjs/components/axis/get-axis-attributes.js +199 -0
  67. package/cjs/components/axis/get-axis-attributes.js.map +1 -0
  68. package/cjs/components/axis/get-axis-component-size.d.ts +6 -0
  69. package/cjs/components/axis/get-axis-component-size.js +138 -0
  70. package/cjs/components/axis/get-axis-component-size.js.map +1 -0
  71. package/cjs/components/axis/label-overlap.d.ts +3 -0
  72. package/cjs/components/axis/label-overlap.js +64 -0
  73. package/cjs/components/axis/label-overlap.js.map +1 -0
  74. package/cjs/components/axis/linear-scale.d.ts +48 -0
  75. package/cjs/components/axis/linear-scale.js +136 -0
  76. package/cjs/components/axis/linear-scale.js.map +1 -0
  77. package/cjs/components/empty-tip/empty-tip.d.ts +25 -0
  78. package/cjs/components/empty-tip/empty-tip.js +102 -0
  79. package/cjs/components/empty-tip/empty-tip.js.map +1 -0
  80. package/cjs/components/index.d.ts +6 -0
  81. package/cjs/components/index.js +44 -0
  82. package/cjs/components/index.js.map +1 -0
  83. package/cjs/components/legend/continue-legend/continue-legend.d.ts +24 -0
  84. package/cjs/components/legend/continue-legend/continue-legend.js +98 -0
  85. package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -0
  86. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
  87. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js +139 -0
  88. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
  89. package/cjs/components/legend/create-legend.d.ts +6 -0
  90. package/cjs/components/legend/create-legend.js +14 -0
  91. package/cjs/components/legend/create-legend.js.map +1 -0
  92. package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
  93. package/cjs/components/legend/discrete-legend/discrete-legend.js +115 -0
  94. package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -0
  95. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
  96. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js +90 -0
  97. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
  98. package/cjs/components/menu/dom/BaseMenu.d.ts +16 -0
  99. package/cjs/components/menu/dom/BaseMenu.js +33 -0
  100. package/cjs/components/menu/dom/BaseMenu.js.map +1 -0
  101. package/cjs/components/menu/dom/Menu.d.ts +9 -0
  102. package/cjs/components/menu/dom/Menu.js +24 -0
  103. package/cjs/components/menu/dom/Menu.js.map +1 -0
  104. package/cjs/components/menu/dom/MenuHandler.d.ts +24 -0
  105. package/cjs/components/menu/dom/MenuHandler.js +148 -0
  106. package/cjs/components/menu/dom/MenuHandler.js.map +1 -0
  107. package/cjs/components/menu/dom/logic/MenuContainer.d.ts +21 -0
  108. package/cjs/components/menu/dom/logic/MenuContainer.js +105 -0
  109. package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -0
  110. package/cjs/components/menu/dom/logic/MenuElement.d.ts +26 -0
  111. package/cjs/components/menu/dom/logic/MenuElement.js +287 -0
  112. package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -0
  113. package/cjs/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
  114. package/cjs/components/menu/dom/logic/MenuElementStyle.js +17 -0
  115. package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  116. package/cjs/components/react/react-custom-layout.d.ts +27 -0
  117. package/cjs/components/react/react-custom-layout.js +179 -0
  118. package/cjs/components/react/react-custom-layout.js.map +1 -0
  119. package/cjs/components/title/title.d.ts +21 -0
  120. package/cjs/components/title/title.js +89 -0
  121. package/cjs/components/title/title.js.map +1 -0
  122. package/cjs/components/tooltip/BaseTooltip.d.ts +22 -0
  123. package/cjs/components/tooltip/BaseTooltip.js +35 -0
  124. package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
  125. package/cjs/components/tooltip/Tooltip.d.ts +5 -0
  126. package/cjs/components/tooltip/Tooltip.js +16 -0
  127. package/cjs/components/tooltip/Tooltip.js.map +1 -0
  128. package/cjs/components/tooltip/TooltipHandler.d.ts +31 -0
  129. package/cjs/components/tooltip/TooltipHandler.js +132 -0
  130. package/cjs/components/tooltip/TooltipHandler.js.map +1 -0
  131. package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
  132. package/cjs/components/tooltip/logic/BubbleTooltipElement.js +163 -0
  133. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  134. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
  135. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +17 -0
  136. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  137. package/cjs/components/util/orient.d.ts +3 -0
  138. package/cjs/components/util/orient.js +14 -0
  139. package/cjs/components/util/orient.js.map +1 -0
  140. package/cjs/components/util/register.d.ts +3 -0
  141. package/cjs/components/util/register.js +15 -0
  142. package/cjs/components/util/register.js.map +1 -0
  143. package/cjs/components/util/transform.d.ts +5 -0
  144. package/cjs/components/util/transform.js +45 -0
  145. package/cjs/components/util/transform.js.map +1 -0
  146. package/cjs/core/BaseTable.d.ts +436 -0
  147. package/cjs/core/BaseTable.js +1866 -0
  148. package/cjs/core/BaseTable.js.map +1 -0
  149. package/cjs/core/FouseInput.d.ts +12 -0
  150. package/cjs/core/FouseInput.js +41 -0
  151. package/cjs/core/FouseInput.js.map +1 -0
  152. package/cjs/core/TABLE_EVENT_TYPE.d.ts +61 -0
  153. package/cjs/core/TABLE_EVENT_TYPE.js +65 -0
  154. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
  155. package/cjs/core/animation.d.ts +17 -0
  156. package/cjs/core/animation.js +61 -0
  157. package/cjs/core/animation.js.map +1 -0
  158. package/cjs/core/factory.d.ts +11 -0
  159. package/cjs/core/factory.js +29 -0
  160. package/cjs/core/factory.js.map +1 -0
  161. package/cjs/core/group-helper.d.ts +6 -0
  162. package/cjs/core/group-helper.js +22 -0
  163. package/cjs/core/group-helper.js.map +1 -0
  164. package/cjs/core/record-helper.d.ts +8 -0
  165. package/cjs/core/record-helper.js +428 -0
  166. package/cjs/core/record-helper.js.map +1 -0
  167. package/cjs/core/row-series-number-helper.d.ts +8 -0
  168. package/cjs/core/row-series-number-helper.js +46 -0
  169. package/cjs/core/row-series-number-helper.js.map +1 -0
  170. package/cjs/core/style-helper.d.ts +3 -0
  171. package/cjs/core/style-helper.js +110 -0
  172. package/cjs/core/style-helper.js.map +1 -0
  173. package/cjs/core/style.d.ts +1 -0
  174. package/cjs/core/style.js +17 -0
  175. package/cjs/core/style.js.map +1 -0
  176. package/cjs/core/tableHelper.d.ts +45 -0
  177. package/cjs/core/tableHelper.js +287 -0
  178. package/cjs/core/tableHelper.js.map +1 -0
  179. package/cjs/core/utils/get-cell-position.d.ts +12 -0
  180. package/cjs/core/utils/get-cell-position.js +214 -0
  181. package/cjs/core/utils/get-cell-position.js.map +1 -0
  182. package/cjs/core/utils/get-custom-merge-cell-func.d.ts +2 -0
  183. package/cjs/core/utils/get-custom-merge-cell-func.js +14 -0
  184. package/cjs/core/utils/get-custom-merge-cell-func.js.map +1 -0
  185. package/cjs/core.d.ts +3 -0
  186. package/cjs/core.js +15 -0
  187. package/cjs/core.js.map +1 -0
  188. package/cjs/data/CachedDataSource.d.ts +36 -0
  189. package/cjs/data/CachedDataSource.js +259 -0
  190. package/cjs/data/CachedDataSource.js.map +1 -0
  191. package/cjs/data/DataSource.d.ts +129 -0
  192. package/cjs/data/DataSource.js +758 -0
  193. package/cjs/data/DataSource.js.map +1 -0
  194. package/cjs/data.d.ts +4 -0
  195. package/cjs/data.js +24 -0
  196. package/cjs/data.js.map +1 -0
  197. package/cjs/dataset/DataStatistics.d.ts +10 -0
  198. package/cjs/dataset/DataStatistics.js +81 -0
  199. package/cjs/dataset/DataStatistics.js.map +1 -0
  200. package/cjs/dataset/dataset-pivot-table.d.ts +60 -0
  201. package/cjs/dataset/dataset-pivot-table.js +349 -0
  202. package/cjs/dataset/dataset-pivot-table.js.map +1 -0
  203. package/cjs/dataset/dataset.d.ts +108 -0
  204. package/cjs/dataset/dataset.js +810 -0
  205. package/cjs/dataset/dataset.js.map +1 -0
  206. package/cjs/dataset/flatDataToObject.d.ts +46 -0
  207. package/cjs/dataset/flatDataToObject.js +133 -0
  208. package/cjs/dataset/flatDataToObject.js.map +1 -0
  209. package/cjs/edit/edit-manager.d.ts +19 -0
  210. package/cjs/edit/edit-manager.js +124 -0
  211. package/cjs/edit/edit-manager.js.map +1 -0
  212. package/cjs/edit/editors.d.ts +5 -0
  213. package/cjs/edit/editors.js +10 -0
  214. package/cjs/edit/editors.js.map +1 -0
  215. package/cjs/event/EventHandler.d.ts +47 -0
  216. package/cjs/event/EventHandler.js +128 -0
  217. package/cjs/event/EventHandler.js.map +1 -0
  218. package/cjs/event/EventTarget.d.ts +12 -0
  219. package/cjs/event/EventTarget.js +67 -0
  220. package/cjs/event/EventTarget.js.map +1 -0
  221. package/cjs/event/component/button.d.ts +2 -0
  222. package/cjs/event/component/button.js +21 -0
  223. package/cjs/event/component/button.js.map +1 -0
  224. package/cjs/event/drill.d.ts +5 -0
  225. package/cjs/event/drill.js +38 -0
  226. package/cjs/event/drill.js.map +1 -0
  227. package/cjs/event/event.d.ts +63 -0
  228. package/cjs/event/event.js +208 -0
  229. package/cjs/event/event.js.map +1 -0
  230. package/cjs/event/helper.d.ts +2 -0
  231. package/cjs/event/helper.js +35 -0
  232. package/cjs/event/helper.js.map +1 -0
  233. package/cjs/event/listener/container-dom.d.ts +2 -0
  234. package/cjs/event/listener/container-dom.js +343 -0
  235. package/cjs/event/listener/container-dom.js.map +1 -0
  236. package/cjs/event/listener/scroll-bar.d.ts +2 -0
  237. package/cjs/event/listener/scroll-bar.js +80 -0
  238. package/cjs/event/listener/scroll-bar.js.map +1 -0
  239. package/cjs/event/listener/table-group.d.ts +6 -0
  240. package/cjs/event/listener/table-group.js +519 -0
  241. package/cjs/event/listener/table-group.js.map +1 -0
  242. package/cjs/event/listener/touch.d.ts +2 -0
  243. package/cjs/event/listener/touch.js +84 -0
  244. package/cjs/event/listener/touch.js.map +1 -0
  245. package/cjs/event/media-click.d.ts +2 -0
  246. package/cjs/event/media-click.js +85 -0
  247. package/cjs/event/media-click.js.map +1 -0
  248. package/cjs/event/scroll.d.ts +20 -0
  249. package/cjs/event/scroll.js +92 -0
  250. package/cjs/event/scroll.js.map +1 -0
  251. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
  252. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js +31 -0
  253. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
  254. package/cjs/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
  255. package/cjs/event/self-event-listener/base-table/dropdown-menu.js +16 -0
  256. package/cjs/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
  257. package/cjs/event/self-event-listener/base-table/icon.d.ts +2 -0
  258. package/cjs/event/self-event-listener/base-table/icon.js +23 -0
  259. package/cjs/event/self-event-listener/base-table/icon.js.map +1 -0
  260. package/cjs/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
  261. package/cjs/event/self-event-listener/base-table/right-button-click.js +25 -0
  262. package/cjs/event/self-event-listener/base-table/right-button-click.js.map +1 -0
  263. package/cjs/event/self-event-listener/list-table/checkbox.d.ts +3 -0
  264. package/cjs/event/self-event-listener/list-table/checkbox.js +124 -0
  265. package/cjs/event/self-event-listener/list-table/checkbox.js.map +1 -0
  266. package/cjs/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
  267. package/cjs/event/self-event-listener/pivot-chart/axis-click.js +43 -0
  268. package/cjs/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
  269. package/cjs/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
  270. package/cjs/event/self-event-listener/pivot-chart/axis-hover.js +41 -0
  271. package/cjs/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
  272. package/cjs/event/self-event-listener/pivot-table/drill.d.ts +1 -0
  273. package/cjs/event/self-event-listener/pivot-table/drill.js +3 -0
  274. package/cjs/event/self-event-listener/pivot-table/drill.js.map +1 -0
  275. package/cjs/event/sparkline-event.d.ts +2 -0
  276. package/cjs/event/sparkline-event.js +27 -0
  277. package/cjs/event/sparkline-event.js.map +1 -0
  278. package/cjs/event/util.d.ts +20 -0
  279. package/cjs/event/util.js +46 -0
  280. package/cjs/event/util.js.map +1 -0
  281. package/cjs/header-helper/header-helper.d.ts +29 -0
  282. package/cjs/header-helper/header-helper.js +272 -0
  283. package/cjs/header-helper/header-helper.js.map +1 -0
  284. package/cjs/header-helper/style/CheckboxStyle.d.ts +42 -0
  285. package/cjs/header-helper/style/CheckboxStyle.js +104 -0
  286. package/cjs/header-helper/style/CheckboxStyle.js.map +1 -0
  287. package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
  288. package/cjs/header-helper/style/ImageStyle.js +25 -0
  289. package/cjs/header-helper/style/ImageStyle.js.map +1 -0
  290. package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  291. package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
  292. package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  293. package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
  294. package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
  295. package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
  296. package/cjs/header-helper/style/Style.d.ts +95 -0
  297. package/cjs/header-helper/style/Style.js +226 -0
  298. package/cjs/header-helper/style/Style.js.map +1 -0
  299. package/cjs/header-helper/style.d.ts +6 -0
  300. package/cjs/header-helper/style.js +35 -0
  301. package/cjs/header-helper/style.js.map +1 -0
  302. package/cjs/icons.d.ts +5 -0
  303. package/cjs/icons.js +299 -0
  304. package/cjs/icons.js.map +1 -0
  305. package/cjs/index.d.ts +33 -0
  306. package/cjs/index.js +215 -0
  307. package/cjs/index.js.map +1 -0
  308. package/cjs/layout/cell-range/simple-cell-range.d.ts +4 -0
  309. package/cjs/layout/cell-range/simple-cell-range.js +148 -0
  310. package/cjs/layout/cell-range/simple-cell-range.js.map +1 -0
  311. package/cjs/layout/chart-helper/get-axis-config.d.ts +39 -0
  312. package/cjs/layout/chart-helper/get-axis-config.js +398 -0
  313. package/cjs/layout/chart-helper/get-axis-config.js.map +1 -0
  314. package/cjs/layout/chart-helper/get-axis-domain.d.ts +11 -0
  315. package/cjs/layout/chart-helper/get-axis-domain.js +49 -0
  316. package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -0
  317. package/cjs/layout/chart-helper/get-chart-spec.d.ts +13 -0
  318. package/cjs/layout/chart-helper/get-chart-spec.js +287 -0
  319. package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -0
  320. package/cjs/layout/chart-helper/tick-align.d.ts +12 -0
  321. package/cjs/layout/chart-helper/tick-align.js +23 -0
  322. package/cjs/layout/chart-helper/tick-align.js.map +1 -0
  323. package/cjs/layout/chart-helper/zero-align.d.ts +10 -0
  324. package/cjs/layout/chart-helper/zero-align.js +119 -0
  325. package/cjs/layout/chart-helper/zero-align.js.map +1 -0
  326. package/cjs/layout/index.d.ts +1 -0
  327. package/cjs/layout/index.js +14 -0
  328. package/cjs/layout/index.js.map +1 -0
  329. package/cjs/layout/layout-helper.d.ts +20 -0
  330. package/cjs/layout/layout-helper.js +154 -0
  331. package/cjs/layout/layout-helper.js.map +1 -0
  332. package/cjs/layout/pivot-header-layout.d.ts +279 -0
  333. package/cjs/layout/pivot-header-layout.js +1845 -0
  334. package/cjs/layout/pivot-header-layout.js.map +1 -0
  335. package/cjs/layout/pivot-layout.d.ts +1 -0
  336. package/cjs/layout/pivot-layout.js +1 -0
  337. package/cjs/layout/pivot-layout.js.map +1 -0
  338. package/cjs/layout/row-height-map.d.ts +34 -0
  339. package/cjs/layout/row-height-map.js +176 -0
  340. package/cjs/layout/row-height-map.js.map +1 -0
  341. package/cjs/layout/simple-header-layout.d.ts +153 -0
  342. package/cjs/layout/simple-header-layout.js +779 -0
  343. package/cjs/layout/simple-header-layout.js.map +1 -0
  344. package/cjs/layout/tree-helper.d.ts +71 -0
  345. package/cjs/layout/tree-helper.js +405 -0
  346. package/cjs/layout/tree-helper.js.map +1 -0
  347. package/cjs/plugins/chartModules.d.ts +3 -0
  348. package/cjs/plugins/chartModules.js +6 -0
  349. package/cjs/plugins/chartModules.js.map +1 -0
  350. package/cjs/plugins/custom-cell-style.d.ts +26 -0
  351. package/cjs/plugins/custom-cell-style.js +113 -0
  352. package/cjs/plugins/custom-cell-style.js.map +1 -0
  353. package/cjs/plugins/icons.d.ts +12 -0
  354. package/cjs/plugins/icons.js +26 -0
  355. package/cjs/plugins/icons.js.map +1 -0
  356. package/cjs/plugins/invert-highlight.d.ts +1 -0
  357. package/cjs/plugins/invert-highlight.js +23 -0
  358. package/cjs/plugins/invert-highlight.js.map +1 -0
  359. package/cjs/plugins/list-tree-stick-cell.d.ts +18 -0
  360. package/cjs/plugins/list-tree-stick-cell.js +180 -0
  361. package/cjs/plugins/list-tree-stick-cell.js.map +1 -0
  362. package/cjs/plugins/themes.d.ts +4 -0
  363. package/cjs/plugins/themes.js +6 -0
  364. package/cjs/plugins/themes.js.map +1 -0
  365. package/cjs/register.d.ts +15 -0
  366. package/cjs/register.js +45 -0
  367. package/cjs/register.js.map +1 -0
  368. package/cjs/render/jsx/index.d.ts +8 -0
  369. package/cjs/render/jsx/index.js +91 -0
  370. package/cjs/render/jsx/index.js.map +1 -0
  371. package/cjs/render/layout/arc.d.ts +12 -0
  372. package/cjs/render/layout/arc.js +18 -0
  373. package/cjs/render/layout/arc.js.map +1 -0
  374. package/cjs/render/layout/circle.d.ts +12 -0
  375. package/cjs/render/layout/circle.js +18 -0
  376. package/cjs/render/layout/circle.js.map +1 -0
  377. package/cjs/render/layout/container.d.ts +14 -0
  378. package/cjs/render/layout/container.js +27 -0
  379. package/cjs/render/layout/container.js.map +1 -0
  380. package/cjs/render/layout/direction.d.ts +22 -0
  381. package/cjs/render/layout/direction.js +35 -0
  382. package/cjs/render/layout/direction.js.map +1 -0
  383. package/cjs/render/layout/element.d.ts +43 -0
  384. package/cjs/render/layout/element.js +27 -0
  385. package/cjs/render/layout/element.js.map +1 -0
  386. package/cjs/render/layout/group-element.d.ts +5 -0
  387. package/cjs/render/layout/group-element.js +16 -0
  388. package/cjs/render/layout/group-element.js.map +1 -0
  389. package/cjs/render/layout/group.d.ts +12 -0
  390. package/cjs/render/layout/group.js +18 -0
  391. package/cjs/render/layout/group.js.map +1 -0
  392. package/cjs/render/layout/icon.d.ts +21 -0
  393. package/cjs/render/layout/icon.js +50 -0
  394. package/cjs/render/layout/icon.js.map +1 -0
  395. package/cjs/render/layout/image.d.ts +14 -0
  396. package/cjs/render/layout/image.js +19 -0
  397. package/cjs/render/layout/image.js.map +1 -0
  398. package/cjs/render/layout/index.d.ts +13 -0
  399. package/cjs/render/layout/index.js +41 -0
  400. package/cjs/render/layout/index.js.map +1 -0
  401. package/cjs/render/layout/line.d.ts +1 -0
  402. package/cjs/render/layout/line.js +15 -0
  403. package/cjs/render/layout/line.js.map +1 -0
  404. package/cjs/render/layout/percent-calc.d.ts +5 -0
  405. package/cjs/render/layout/percent-calc.js +13 -0
  406. package/cjs/render/layout/percent-calc.js.map +1 -0
  407. package/cjs/render/layout/rect.d.ts +12 -0
  408. package/cjs/render/layout/rect.js +18 -0
  409. package/cjs/render/layout/rect.js.map +1 -0
  410. package/cjs/render/layout/tag.d.ts +14 -0
  411. package/cjs/render/layout/tag.js +21 -0
  412. package/cjs/render/layout/tag.js.map +1 -0
  413. package/cjs/render/layout/text.d.ts +13 -0
  414. package/cjs/render/layout/text.js +23 -0
  415. package/cjs/render/layout/text.js.map +1 -0
  416. package/cjs/scenegraph/animation/appear.d.ts +2 -0
  417. package/cjs/scenegraph/animation/appear.js +26 -0
  418. package/cjs/scenegraph/animation/appear.js.map +1 -0
  419. package/cjs/scenegraph/component/cell-content.d.ts +36 -0
  420. package/cjs/scenegraph/component/cell-content.js +109 -0
  421. package/cjs/scenegraph/component/cell-content.js.map +1 -0
  422. package/cjs/scenegraph/component/cell-mover.d.ts +21 -0
  423. package/cjs/scenegraph/component/cell-mover.js +119 -0
  424. package/cjs/scenegraph/component/cell-mover.js.map +1 -0
  425. package/cjs/scenegraph/component/custom.d.ts +16 -0
  426. package/cjs/scenegraph/component/custom.js +309 -0
  427. package/cjs/scenegraph/component/custom.js.map +1 -0
  428. package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
  429. package/cjs/scenegraph/component/drill-icon.js +70 -0
  430. package/cjs/scenegraph/component/drill-icon.js.map +1 -0
  431. package/cjs/scenegraph/component/menu.d.ts +41 -0
  432. package/cjs/scenegraph/component/menu.js +217 -0
  433. package/cjs/scenegraph/component/menu.js.map +1 -0
  434. package/cjs/scenegraph/component/table-component.d.ts +52 -0
  435. package/cjs/scenegraph/component/table-component.js +560 -0
  436. package/cjs/scenegraph/component/table-component.js.map +1 -0
  437. package/cjs/scenegraph/component/util.d.ts +3 -0
  438. package/cjs/scenegraph/component/util.js +18 -0
  439. package/cjs/scenegraph/component/util.js.map +1 -0
  440. package/cjs/scenegraph/debug-tool/debug-tool.d.ts +34 -0
  441. package/cjs/scenegraph/debug-tool/debug-tool.js +125 -0
  442. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
  443. package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
  444. package/cjs/scenegraph/debug-tool/index.js +14 -0
  445. package/cjs/scenegraph/debug-tool/index.js.map +1 -0
  446. package/cjs/scenegraph/graphic/chart.d.ts +47 -0
  447. package/cjs/scenegraph/graphic/chart.js +129 -0
  448. package/cjs/scenegraph/graphic/chart.js.map +1 -0
  449. package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
  450. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +166 -0
  451. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
  452. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
  453. package/cjs/scenegraph/graphic/contributions/chart-render.js +74 -0
  454. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  455. package/cjs/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
  456. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js +92 -0
  457. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
  458. package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
  459. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +341 -0
  460. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  461. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
  462. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +75 -0
  463. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  464. package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
  465. package/cjs/scenegraph/graphic/contributions/index.js +46 -0
  466. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
  467. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
  468. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +91 -0
  469. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  470. package/cjs/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
  471. package/cjs/scenegraph/graphic/contributions/text-contribution-render.js +72 -0
  472. package/cjs/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
  473. package/cjs/scenegraph/graphic/group.d.ts +37 -0
  474. package/cjs/scenegraph/graphic/group.js +135 -0
  475. package/cjs/scenegraph/graphic/group.js.map +1 -0
  476. package/cjs/scenegraph/graphic/icon.d.ts +47 -0
  477. package/cjs/scenegraph/graphic/icon.js +78 -0
  478. package/cjs/scenegraph/graphic/icon.js.map +1 -0
  479. package/cjs/scenegraph/graphic/mark.d.ts +4 -0
  480. package/cjs/scenegraph/graphic/mark.js +74 -0
  481. package/cjs/scenegraph/graphic/mark.js.map +1 -0
  482. package/cjs/scenegraph/graphic/text.d.ts +2 -0
  483. package/cjs/scenegraph/graphic/text.js +15 -0
  484. package/cjs/scenegraph/graphic/text.js.map +1 -0
  485. package/cjs/scenegraph/group-creater/cell-helper.d.ts +16 -0
  486. package/cjs/scenegraph/group-creater/cell-helper.js +325 -0
  487. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
  488. package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  489. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +146 -0
  490. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  491. package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
  492. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +100 -0
  493. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  494. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
  495. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +143 -0
  496. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
  497. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
  498. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +234 -0
  499. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  500. package/cjs/scenegraph/group-creater/cell-type/index.d.ts +10 -0
  501. package/cjs/scenegraph/group-creater/cell-type/index.js +67 -0
  502. package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -0
  503. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
  504. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +390 -0
  505. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  506. package/cjs/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
  507. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +150 -0
  508. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
  509. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
  510. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +201 -0
  511. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  512. package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  513. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +152 -0
  514. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  515. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
  516. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  517. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  518. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
  519. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +139 -0
  520. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  521. package/cjs/scenegraph/group-creater/column-helper.d.ts +14 -0
  522. package/cjs/scenegraph/group-creater/column-helper.js +142 -0
  523. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
  524. package/cjs/scenegraph/group-creater/column.d.ts +4 -0
  525. package/cjs/scenegraph/group-creater/column.js +31 -0
  526. package/cjs/scenegraph/group-creater/column.js.map +1 -0
  527. package/cjs/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
  528. package/cjs/scenegraph/group-creater/init-scenegraph.js +58 -0
  529. package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -0
  530. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  531. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +53 -0
  532. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  533. package/cjs/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  534. package/cjs/scenegraph/group-creater/progress/default-width-height.js +24 -0
  535. package/cjs/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  536. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +79 -0
  537. package/cjs/scenegraph/group-creater/progress/proxy.js +341 -0
  538. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
  539. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
  540. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +173 -0
  541. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
  542. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
  543. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +190 -0
  544. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
  545. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
  546. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js +62 -0
  547. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
  548. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
  549. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +75 -0
  550. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
  551. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
  552. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js +37 -0
  553. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
  554. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
  555. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js +47 -0
  556. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
  557. package/cjs/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
  558. package/cjs/scenegraph/group-creater/progress/update-position/util.js +98 -0
  559. package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
  560. package/cjs/scenegraph/icon/icon-update.d.ts +28 -0
  561. package/cjs/scenegraph/icon/icon-update.js +188 -0
  562. package/cjs/scenegraph/icon/icon-update.js.map +1 -0
  563. package/cjs/scenegraph/layout/compute-col-width.d.ts +4 -0
  564. package/cjs/scenegraph/layout/compute-col-width.js +344 -0
  565. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
  566. package/cjs/scenegraph/layout/compute-row-height.d.ts +3 -0
  567. package/cjs/scenegraph/layout/compute-row-height.js +335 -0
  568. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -0
  569. package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
  570. package/cjs/scenegraph/layout/frozen-react.js +91 -0
  571. package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
  572. package/cjs/scenegraph/layout/frozen.d.ts +6 -0
  573. package/cjs/scenegraph/layout/frozen.js +330 -0
  574. package/cjs/scenegraph/layout/frozen.js.map +1 -0
  575. package/cjs/scenegraph/layout/height-util.d.ts +7 -0
  576. package/cjs/scenegraph/layout/height-util.js +127 -0
  577. package/cjs/scenegraph/layout/height-util.js.map +1 -0
  578. package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
  579. package/cjs/scenegraph/layout/move-cell.js +50 -0
  580. package/cjs/scenegraph/layout/move-cell.js.map +1 -0
  581. package/cjs/scenegraph/layout/update-col.d.ts +3 -0
  582. package/cjs/scenegraph/layout/update-col.js +207 -0
  583. package/cjs/scenegraph/layout/update-col.js.map +1 -0
  584. package/cjs/scenegraph/layout/update-height.d.ts +6 -0
  585. package/cjs/scenegraph/layout/update-height.js +146 -0
  586. package/cjs/scenegraph/layout/update-height.js.map +1 -0
  587. package/cjs/scenegraph/layout/update-row.d.ts +3 -0
  588. package/cjs/scenegraph/layout/update-row.js +284 -0
  589. package/cjs/scenegraph/layout/update-row.js.map +1 -0
  590. package/cjs/scenegraph/layout/update-width.d.ts +2 -0
  591. package/cjs/scenegraph/layout/update-width.js +238 -0
  592. package/cjs/scenegraph/layout/update-width.js.map +1 -0
  593. package/cjs/scenegraph/refresh-node/update-chart.d.ts +7 -0
  594. package/cjs/scenegraph/refresh-node/update-chart.js +201 -0
  595. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -0
  596. package/cjs/scenegraph/scenegraph.d.ts +182 -0
  597. package/cjs/scenegraph/scenegraph.js +898 -0
  598. package/cjs/scenegraph/scenegraph.js.map +1 -0
  599. package/cjs/scenegraph/select/create-select-border.d.ts +3 -0
  600. package/cjs/scenegraph/select/create-select-border.js +60 -0
  601. package/cjs/scenegraph/select/create-select-border.js.map +1 -0
  602. package/cjs/scenegraph/select/delete-select-border.d.ts +5 -0
  603. package/cjs/scenegraph/select/delete-select-border.js +37 -0
  604. package/cjs/scenegraph/select/delete-select-border.js.map +1 -0
  605. package/cjs/scenegraph/select/move-select-border.d.ts +2 -0
  606. package/cjs/scenegraph/select/move-select-border.js +15 -0
  607. package/cjs/scenegraph/select/move-select-border.js.map +1 -0
  608. package/cjs/scenegraph/select/update-select-border.d.ts +8 -0
  609. package/cjs/scenegraph/select/update-select-border.js +272 -0
  610. package/cjs/scenegraph/select/update-select-border.js.map +1 -0
  611. package/cjs/scenegraph/select/update-select-style.d.ts +3 -0
  612. package/cjs/scenegraph/select/update-select-style.js +13 -0
  613. package/cjs/scenegraph/select/update-select-style.js.map +1 -0
  614. package/cjs/scenegraph/stick-text/index.d.ts +3 -0
  615. package/cjs/scenegraph/stick-text/index.js +189 -0
  616. package/cjs/scenegraph/stick-text/index.js.map +1 -0
  617. package/cjs/scenegraph/style/corner-cell.d.ts +3 -0
  618. package/cjs/scenegraph/style/corner-cell.js +28 -0
  619. package/cjs/scenegraph/style/corner-cell.js.map +1 -0
  620. package/cjs/scenegraph/style/frame-border.d.ts +8 -0
  621. package/cjs/scenegraph/style/frame-border.js +144 -0
  622. package/cjs/scenegraph/style/frame-border.js.map +1 -0
  623. package/cjs/scenegraph/utils/border-line.d.ts +8 -0
  624. package/cjs/scenegraph/utils/border-line.js +51 -0
  625. package/cjs/scenegraph/utils/border-line.js.map +1 -0
  626. package/cjs/scenegraph/utils/break-string.d.ts +5 -0
  627. package/cjs/scenegraph/utils/break-string.js +24 -0
  628. package/cjs/scenegraph/utils/break-string.js.map +1 -0
  629. package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  630. package/cjs/scenegraph/utils/cell-border-stroke-width.js +21 -0
  631. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  632. package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
  633. package/cjs/scenegraph/utils/cell-pos.js +18 -0
  634. package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
  635. package/cjs/scenegraph/utils/deal-promise-data.d.ts +2 -0
  636. package/cjs/scenegraph/utils/deal-promise-data.js +12 -0
  637. package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -0
  638. package/cjs/scenegraph/utils/empty-group.d.ts +2 -0
  639. package/cjs/scenegraph/utils/empty-group.js +10 -0
  640. package/cjs/scenegraph/utils/empty-group.js.map +1 -0
  641. package/cjs/scenegraph/utils/font.d.ts +1 -0
  642. package/cjs/scenegraph/utils/font.js +20 -0
  643. package/cjs/scenegraph/utils/font.js.map +1 -0
  644. package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
  645. package/cjs/scenegraph/utils/get-cell-merge.js +17 -0
  646. package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
  647. package/cjs/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  648. package/cjs/scenegraph/utils/get-hierarchy-offset.js +27 -0
  649. package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  650. package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
  651. package/cjs/scenegraph/utils/get-prop.js +44 -0
  652. package/cjs/scenegraph/utils/get-prop.js.map +1 -0
  653. package/cjs/scenegraph/utils/icon.d.ts +12 -0
  654. package/cjs/scenegraph/utils/icon.js +35 -0
  655. package/cjs/scenegraph/utils/icon.js.map +1 -0
  656. package/cjs/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
  657. package/cjs/scenegraph/utils/is-merge-cell-group.js +16 -0
  658. package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -0
  659. package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  660. package/cjs/scenegraph/utils/keep-aspect-ratio.js +17 -0
  661. package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  662. package/cjs/scenegraph/utils/padding.d.ts +6 -0
  663. package/cjs/scenegraph/utils/padding.js +21 -0
  664. package/cjs/scenegraph/utils/padding.js.map +1 -0
  665. package/cjs/scenegraph/utils/render-service.d.ts +7 -0
  666. package/cjs/scenegraph/utils/render-service.js +27 -0
  667. package/cjs/scenegraph/utils/render-service.js.map +1 -0
  668. package/cjs/scenegraph/utils/text-icon-layout.d.ts +29 -0
  669. package/cjs/scenegraph/utils/text-icon-layout.js +335 -0
  670. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
  671. package/cjs/scenegraph/utils/text-measure.d.ts +38 -0
  672. package/cjs/scenegraph/utils/text-measure.js +166 -0
  673. package/cjs/scenegraph/utils/text-measure.js.map +1 -0
  674. package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
  675. package/cjs/scenegraph/utils/text-pos.js +27 -0
  676. package/cjs/scenegraph/utils/text-pos.js.map +1 -0
  677. package/cjs/scenegraph/utils/update-container.d.ts +2 -0
  678. package/cjs/scenegraph/utils/update-container.js +12 -0
  679. package/cjs/scenegraph/utils/update-container.js.map +1 -0
  680. package/cjs/state/cell-move/adjust-header.d.ts +3 -0
  681. package/cjs/state/cell-move/adjust-header.js +26 -0
  682. package/cjs/state/cell-move/adjust-header.js.map +1 -0
  683. package/cjs/state/cell-move/index.d.ts +4 -0
  684. package/cjs/state/cell-move/index.js +112 -0
  685. package/cjs/state/cell-move/index.js.map +1 -0
  686. package/cjs/state/checkbox/checkbox.d.ts +12 -0
  687. package/cjs/state/checkbox/checkbox.js +210 -0
  688. package/cjs/state/checkbox/checkbox.js.map +1 -0
  689. package/cjs/state/common/check-in-select.d.ts +7 -0
  690. package/cjs/state/common/check-in-select.js +63 -0
  691. package/cjs/state/common/check-in-select.js.map +1 -0
  692. package/cjs/state/drill/index.d.ts +2 -0
  693. package/cjs/state/drill/index.js +15 -0
  694. package/cjs/state/drill/index.js.map +1 -0
  695. package/cjs/state/frozen/index.d.ts +2 -0
  696. package/cjs/state/frozen/index.js +10 -0
  697. package/cjs/state/frozen/index.js.map +1 -0
  698. package/cjs/state/hover/col.d.ts +4 -0
  699. package/cjs/state/hover/col.js +24 -0
  700. package/cjs/state/hover/col.js.map +1 -0
  701. package/cjs/state/hover/is-cell-hover.d.ts +5 -0
  702. package/cjs/state/hover/is-cell-hover.js +49 -0
  703. package/cjs/state/hover/is-cell-hover.js.map +1 -0
  704. package/cjs/state/hover/row.d.ts +4 -0
  705. package/cjs/state/hover/row.js +22 -0
  706. package/cjs/state/hover/row.js.map +1 -0
  707. package/cjs/state/hover/single.d.ts +4 -0
  708. package/cjs/state/hover/single.js +18 -0
  709. package/cjs/state/hover/single.js.map +1 -0
  710. package/cjs/state/hover/update-cell.d.ts +2 -0
  711. package/cjs/state/hover/update-cell.js +24 -0
  712. package/cjs/state/hover/update-cell.js.map +1 -0
  713. package/cjs/state/hover/update-position.d.ts +2 -0
  714. package/cjs/state/hover/update-position.js +44 -0
  715. package/cjs/state/hover/update-position.js.map +1 -0
  716. package/cjs/state/radio/radio.d.ts +7 -0
  717. package/cjs/state/radio/radio.js +96 -0
  718. package/cjs/state/radio/radio.js.map +1 -0
  719. package/cjs/state/resize/update-resize-column.d.ts +2 -0
  720. package/cjs/state/resize/update-resize-column.js +85 -0
  721. package/cjs/state/resize/update-resize-column.js.map +1 -0
  722. package/cjs/state/resize/update-resize-row.d.ts +2 -0
  723. package/cjs/state/resize/update-resize-row.js +64 -0
  724. package/cjs/state/resize/update-resize-row.js.map +1 -0
  725. package/cjs/state/select/custom-select.d.ts +7 -0
  726. package/cjs/state/select/custom-select.js +36 -0
  727. package/cjs/state/select/custom-select.js.map +1 -0
  728. package/cjs/state/select/is-cell-select-highlight.d.ts +6 -0
  729. package/cjs/state/select/is-cell-select-highlight.js +88 -0
  730. package/cjs/state/select/is-cell-select-highlight.js.map +1 -0
  731. package/cjs/state/select/update-position.d.ts +4 -0
  732. package/cjs/state/select/update-position.js +308 -0
  733. package/cjs/state/select/update-position.js.map +1 -0
  734. package/cjs/state/sort/index.d.ts +2 -0
  735. package/cjs/state/sort/index.js +56 -0
  736. package/cjs/state/sort/index.js.map +1 -0
  737. package/cjs/state/spark-line/index.d.ts +3 -0
  738. package/cjs/state/spark-line/index.js +102 -0
  739. package/cjs/state/spark-line/index.js.map +1 -0
  740. package/cjs/state/state.d.ts +206 -0
  741. package/cjs/state/state.js +796 -0
  742. package/cjs/state/state.js.map +1 -0
  743. package/cjs/themes/ARCO.d.ts +3 -0
  744. package/cjs/themes/ARCO.js +113 -0
  745. package/cjs/themes/ARCO.js.map +1 -0
  746. package/cjs/themes/BRIGHT.d.ts +3 -0
  747. package/cjs/themes/BRIGHT.js +70 -0
  748. package/cjs/themes/BRIGHT.js.map +1 -0
  749. package/cjs/themes/DARK.d.ts +3 -0
  750. package/cjs/themes/DARK.js +103 -0
  751. package/cjs/themes/DARK.js.map +1 -0
  752. package/cjs/themes/DEFAULT.d.ts +3 -0
  753. package/cjs/themes/DEFAULT.js +86 -0
  754. package/cjs/themes/DEFAULT.js.map +1 -0
  755. package/cjs/themes/SIMPLIFY.d.ts +3 -0
  756. package/cjs/themes/SIMPLIFY.js +53 -0
  757. package/cjs/themes/SIMPLIFY.js.map +1 -0
  758. package/cjs/themes/component.d.ts +35 -0
  759. package/cjs/themes/component.js +47 -0
  760. package/cjs/themes/component.js.map +1 -0
  761. package/cjs/themes/theme.d.ts +67 -0
  762. package/cjs/themes/theme.js +777 -0
  763. package/cjs/themes/theme.js.map +1 -0
  764. package/cjs/themes.d.ts +28 -0
  765. package/cjs/themes.js +57 -0
  766. package/cjs/themes.js.map +1 -0
  767. package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
  768. package/cjs/tools/LimitPromiseQueue.js +29 -0
  769. package/cjs/tools/LimitPromiseQueue.js.map +1 -0
  770. package/cjs/tools/NumberMap.d.ts +23 -0
  771. package/cjs/tools/NumberMap.js +123 -0
  772. package/cjs/tools/NumberMap.js.map +1 -0
  773. package/cjs/tools/Rect.d.ts +24 -0
  774. package/cjs/tools/Rect.js +70 -0
  775. package/cjs/tools/Rect.js.map +1 -0
  776. package/cjs/tools/calc.d.ts +8 -0
  777. package/cjs/tools/calc.js +205 -0
  778. package/cjs/tools/calc.js.map +1 -0
  779. package/cjs/tools/cell-range.d.ts +2 -0
  780. package/cjs/tools/cell-range.js +10 -0
  781. package/cjs/tools/cell-range.js.map +1 -0
  782. package/cjs/tools/debounce.d.ts +1 -0
  783. package/cjs/tools/debounce.js +51 -0
  784. package/cjs/tools/debounce.js.map +1 -0
  785. package/cjs/tools/diff-cell.d.ts +72 -0
  786. package/cjs/tools/diff-cell.js +170 -0
  787. package/cjs/tools/diff-cell.js.map +1 -0
  788. package/cjs/tools/dom.d.ts +1 -0
  789. package/cjs/tools/dom.js +11 -0
  790. package/cjs/tools/dom.js.map +1 -0
  791. package/cjs/tools/env.d.ts +19 -0
  792. package/cjs/tools/env.js +48 -0
  793. package/cjs/tools/env.js.map +1 -0
  794. package/cjs/tools/get-data-path/create-dataset.d.ts +11 -0
  795. package/cjs/tools/get-data-path/create-dataset.js +149 -0
  796. package/cjs/tools/get-data-path/create-dataset.js.map +1 -0
  797. package/cjs/tools/get-data-path/index.d.ts +2 -0
  798. package/cjs/tools/get-data-path/index.js +51 -0
  799. package/cjs/tools/get-data-path/index.js.map +1 -0
  800. package/cjs/tools/global.d.ts +15 -0
  801. package/cjs/tools/global.js +15 -0
  802. package/cjs/tools/global.js.map +1 -0
  803. package/cjs/tools/helper.d.ts +72 -0
  804. package/cjs/tools/helper.js +228 -0
  805. package/cjs/tools/helper.js.map +1 -0
  806. package/cjs/tools/icons.d.ts +4 -0
  807. package/cjs/tools/icons.js +10 -0
  808. package/cjs/tools/icons.js.map +1 -0
  809. package/cjs/tools/isx.d.ts +16 -0
  810. package/cjs/tools/isx.js +117 -0
  811. package/cjs/tools/isx.js.map +1 -0
  812. package/cjs/tools/join.d.ts +1 -0
  813. package/cjs/tools/join.js +12 -0
  814. package/cjs/tools/join.js.map +1 -0
  815. package/cjs/tools/merge-range.d.ts +11 -0
  816. package/cjs/tools/merge-range.js +35 -0
  817. package/cjs/tools/merge-range.js.map +1 -0
  818. package/cjs/tools/pixel-ratio.d.ts +2 -0
  819. package/cjs/tools/pixel-ratio.js +16 -0
  820. package/cjs/tools/pixel-ratio.js.map +1 -0
  821. package/cjs/tools/sort.d.ts +2 -0
  822. package/cjs/tools/sort.js +18 -0
  823. package/cjs/tools/sort.js.map +1 -0
  824. package/cjs/tools/style.d.ts +5 -0
  825. package/cjs/tools/style.js +30 -0
  826. package/cjs/tools/style.js.map +1 -0
  827. package/cjs/tools/update-row.d.ts +19 -0
  828. package/cjs/tools/update-row.js +38 -0
  829. package/cjs/tools/update-row.js.map +1 -0
  830. package/cjs/tools/util.d.ts +46 -0
  831. package/cjs/tools/util.js +279 -0
  832. package/cjs/tools/util.js.map +1 -0
  833. package/cjs/ts-types/animation/appear.d.ts +11 -0
  834. package/cjs/ts-types/animation/appear.js +6 -0
  835. package/cjs/ts-types/animation/appear.js.map +1 -0
  836. package/cjs/ts-types/animation/index.d.ts +1 -0
  837. package/cjs/ts-types/animation/index.js +21 -0
  838. package/cjs/ts-types/animation/index.js.map +1 -0
  839. package/cjs/ts-types/base-table.d.ts +641 -0
  840. package/cjs/ts-types/base-table.js +6 -0
  841. package/cjs/ts-types/base-table.js.map +1 -0
  842. package/cjs/ts-types/column/index.d.ts +2 -0
  843. package/cjs/ts-types/column/index.js +21 -0
  844. package/cjs/ts-types/column/index.js.map +1 -0
  845. package/cjs/ts-types/column/style.d.ts +151 -0
  846. package/cjs/ts-types/column/style.js +6 -0
  847. package/cjs/ts-types/column/style.js.map +1 -0
  848. package/cjs/ts-types/column/type.d.ts +2 -0
  849. package/cjs/ts-types/column/type.js +6 -0
  850. package/cjs/ts-types/column/type.js.map +1 -0
  851. package/cjs/ts-types/common.d.ts +114 -0
  852. package/cjs/ts-types/common.js +14 -0
  853. package/cjs/ts-types/common.js.map +1 -0
  854. package/cjs/ts-types/component/axis.d.ts +2 -0
  855. package/cjs/ts-types/component/axis.js +6 -0
  856. package/cjs/ts-types/component/axis.js.map +1 -0
  857. package/cjs/ts-types/component/empty-tip.d.ts +20 -0
  858. package/cjs/ts-types/component/empty-tip.js +6 -0
  859. package/cjs/ts-types/component/empty-tip.js.map +1 -0
  860. package/cjs/ts-types/component/index.d.ts +1 -0
  861. package/cjs/ts-types/component/index.js +21 -0
  862. package/cjs/ts-types/component/index.js.map +1 -0
  863. package/cjs/ts-types/component/legend.d.ts +18 -0
  864. package/cjs/ts-types/component/legend.js +6 -0
  865. package/cjs/ts-types/component/legend.js.map +1 -0
  866. package/cjs/ts-types/component/title.d.ts +49 -0
  867. package/cjs/ts-types/component/title.js +6 -0
  868. package/cjs/ts-types/component/title.js.map +1 -0
  869. package/cjs/ts-types/component/util.d.ts +1 -0
  870. package/cjs/ts-types/component/util.js +6 -0
  871. package/cjs/ts-types/component/util.js.map +1 -0
  872. package/cjs/ts-types/customElement.d.ts +128 -0
  873. package/cjs/ts-types/customElement.js +6 -0
  874. package/cjs/ts-types/customElement.js.map +1 -0
  875. package/cjs/ts-types/customLayout.d.ts +9 -0
  876. package/cjs/ts-types/customLayout.js +6 -0
  877. package/cjs/ts-types/customLayout.js.map +1 -0
  878. package/cjs/ts-types/dataset/aggregation.d.ts +192 -0
  879. package/cjs/ts-types/dataset/aggregation.js +423 -0
  880. package/cjs/ts-types/dataset/aggregation.js.map +1 -0
  881. package/cjs/ts-types/dataset/index.d.ts +1 -0
  882. package/cjs/ts-types/dataset/index.js +21 -0
  883. package/cjs/ts-types/dataset/index.js.map +1 -0
  884. package/cjs/ts-types/events.d.ts +363 -0
  885. package/cjs/ts-types/events.js +6 -0
  886. package/cjs/ts-types/events.js.map +1 -0
  887. package/cjs/ts-types/icon.d.ts +93 -0
  888. package/cjs/ts-types/icon.js +28 -0
  889. package/cjs/ts-types/icon.js.map +1 -0
  890. package/cjs/ts-types/index.d.ts +17 -0
  891. package/cjs/ts-types/index.js +29 -0
  892. package/cjs/ts-types/index.js.map +1 -0
  893. package/cjs/ts-types/list-table/define/basic-define.d.ts +50 -0
  894. package/cjs/ts-types/list-table/define/basic-define.js +6 -0
  895. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
  896. package/cjs/ts-types/list-table/define/button-define.d.ts +9 -0
  897. package/cjs/ts-types/list-table/define/button-define.js +6 -0
  898. package/cjs/ts-types/list-table/define/button-define.js.map +1 -0
  899. package/cjs/ts-types/list-table/define/chart-define.d.ts +11 -0
  900. package/cjs/ts-types/list-table/define/chart-define.js +6 -0
  901. package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
  902. package/cjs/ts-types/list-table/define/checkbox-define.d.ts +15 -0
  903. package/cjs/ts-types/list-table/define/checkbox-define.js +6 -0
  904. package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -0
  905. package/cjs/ts-types/list-table/define/composite-define.d.ts +26 -0
  906. package/cjs/ts-types/list-table/define/composite-define.js +6 -0
  907. package/cjs/ts-types/list-table/define/composite-define.js.map +1 -0
  908. package/cjs/ts-types/list-table/define/image-define.d.ts +17 -0
  909. package/cjs/ts-types/list-table/define/image-define.js +6 -0
  910. package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
  911. package/cjs/ts-types/list-table/define/index.d.ts +31 -0
  912. package/cjs/ts-types/list-table/define/index.js +6 -0
  913. package/cjs/ts-types/list-table/define/index.js.map +1 -0
  914. package/cjs/ts-types/list-table/define/link-define.d.ts +22 -0
  915. package/cjs/ts-types/list-table/define/link-define.js +6 -0
  916. package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
  917. package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
  918. package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
  919. package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  920. package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  921. package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
  922. package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
  923. package/cjs/ts-types/list-table/define/radio-define.d.ts +11 -0
  924. package/cjs/ts-types/list-table/define/radio-define.js +6 -0
  925. package/cjs/ts-types/list-table/define/radio-define.js.map +1 -0
  926. package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  927. package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
  928. package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
  929. package/cjs/ts-types/list-table/define/switch-define.d.ts +11 -0
  930. package/cjs/ts-types/list-table/define/switch-define.js +6 -0
  931. package/cjs/ts-types/list-table/define/switch-define.js.map +1 -0
  932. package/cjs/ts-types/list-table/index.d.ts +2 -0
  933. package/cjs/ts-types/list-table/index.js +21 -0
  934. package/cjs/ts-types/list-table/index.js.map +1 -0
  935. package/cjs/ts-types/list-table/layout-map/api.d.ts +126 -0
  936. package/cjs/ts-types/list-table/layout-map/api.js +6 -0
  937. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
  938. package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
  939. package/cjs/ts-types/list-table/layout-map/index.js +6 -0
  940. package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
  941. package/cjs/ts-types/menu.d.ts +74 -0
  942. package/cjs/ts-types/menu.js +6 -0
  943. package/cjs/ts-types/menu.js.map +1 -0
  944. package/cjs/ts-types/new-data-set.d.ts +158 -0
  945. package/cjs/ts-types/new-data-set.js +16 -0
  946. package/cjs/ts-types/new-data-set.js.map +1 -0
  947. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
  948. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +15 -0
  949. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  950. package/cjs/ts-types/pivot-table/corner.d.ts +37 -0
  951. package/cjs/ts-types/pivot-table/corner.js +6 -0
  952. package/cjs/ts-types/pivot-table/corner.js.map +1 -0
  953. package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
  954. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
  955. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  956. package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
  957. package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
  958. package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  959. package/cjs/ts-types/pivot-table/dimension/index.d.ts +6 -0
  960. package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
  961. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
  962. package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
  963. package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
  964. package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  965. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  966. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
  967. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  968. package/cjs/ts-types/pivot-table/index.d.ts +4 -0
  969. package/cjs/ts-types/pivot-table/index.js +22 -0
  970. package/cjs/ts-types/pivot-table/index.js.map +1 -0
  971. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
  972. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
  973. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  974. package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
  975. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
  976. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  977. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
  978. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js +6 -0
  979. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
  980. package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
  981. package/cjs/ts-types/pivot-table/indicator/composite-indicator.js +6 -0
  982. package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
  983. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
  984. package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
  985. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  986. package/cjs/ts-types/pivot-table/indicator/index.d.ts +12 -0
  987. package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
  988. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
  989. package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
  990. package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
  991. package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  992. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  993. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
  994. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  995. package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  996. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
  997. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  998. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  999. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
  1000. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  1001. package/cjs/ts-types/pivot-table/title.d.ts +20 -0
  1002. package/cjs/ts-types/pivot-table/title.js +6 -0
  1003. package/cjs/ts-types/pivot-table/title.js.map +1 -0
  1004. package/cjs/ts-types/sparkline.d.ts +37 -0
  1005. package/cjs/ts-types/sparkline.js +6 -0
  1006. package/cjs/ts-types/sparkline.js.map +1 -0
  1007. package/cjs/ts-types/style-define.d.ts +72 -0
  1008. package/cjs/ts-types/style-define.js +6 -0
  1009. package/cjs/ts-types/style-define.js.map +1 -0
  1010. package/cjs/ts-types/table-engine.d.ts +405 -0
  1011. package/cjs/ts-types/table-engine.js +13 -0
  1012. package/cjs/ts-types/table-engine.js.map +1 -0
  1013. package/cjs/ts-types/theme.d.ts +164 -0
  1014. package/cjs/ts-types/theme.js +6 -0
  1015. package/cjs/ts-types/theme.js.map +1 -0
  1016. package/cjs/ts-types/tooltip.d.ts +26 -0
  1017. package/cjs/ts-types/tooltip.js +6 -0
  1018. package/cjs/ts-types/tooltip.js.map +1 -0
  1019. package/cjs/vrender.d.ts +8 -0
  1020. package/cjs/vrender.js +61 -0
  1021. package/cjs/vrender.js.map +1 -0
  1022. package/dist/vtable.js +83482 -0
  1023. package/dist/vtable.min.js +15 -0
  1024. package/es/ListTable-all.d.ts +3 -0
  1025. package/es/ListTable-all.js +17 -0
  1026. package/es/ListTable-all.js.map +1 -0
  1027. package/es/ListTable-simple.d.ts +3 -0
  1028. package/es/ListTable-simple.js +8 -0
  1029. package/es/ListTable-simple.js.map +1 -0
  1030. package/es/ListTable.d.ts +101 -0
  1031. package/es/ListTable.js +675 -0
  1032. package/es/ListTable.js.map +1 -0
  1033. package/es/PivotChart.d.ts +100 -0
  1034. package/es/PivotChart.js +773 -0
  1035. package/es/PivotChart.js.map +1 -0
  1036. package/es/PivotTable-all.d.ts +3 -0
  1037. package/es/PivotTable-all.js +13 -0
  1038. package/es/PivotTable-all.js.map +1 -0
  1039. package/es/PivotTable-simple.d.ts +3 -0
  1040. package/es/PivotTable-simple.js +8 -0
  1041. package/es/PivotTable-simple.js.map +1 -0
  1042. package/es/PivotTable.d.ts +112 -0
  1043. package/es/PivotTable.js +985 -0
  1044. package/es/PivotTable.js.map +1 -0
  1045. package/es/body-helper/body-helper.d.ts +20 -0
  1046. package/es/body-helper/body-helper.js +112 -0
  1047. package/es/body-helper/body-helper.js.map +1 -0
  1048. package/es/body-helper/style/ButtonStyle.d.ts +45 -0
  1049. package/es/body-helper/style/ButtonStyle.js +102 -0
  1050. package/es/body-helper/style/ButtonStyle.js.map +1 -0
  1051. package/es/body-helper/style/CheckboxStyle.d.ts +42 -0
  1052. package/es/body-helper/style/CheckboxStyle.js +96 -0
  1053. package/es/body-helper/style/CheckboxStyle.js.map +1 -0
  1054. package/es/body-helper/style/ImageStyle.d.ts +7 -0
  1055. package/es/body-helper/style/ImageStyle.js +16 -0
  1056. package/es/body-helper/style/ImageStyle.js.map +1 -0
  1057. package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
  1058. package/es/body-helper/style/MultilineTextStyle.js +30 -0
  1059. package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
  1060. package/es/body-helper/style/NumberStyle.d.ts +7 -0
  1061. package/es/body-helper/style/NumberStyle.js +16 -0
  1062. package/es/body-helper/style/NumberStyle.js.map +1 -0
  1063. package/es/body-helper/style/ProgressBarStyle.d.ts +55 -0
  1064. package/es/body-helper/style/ProgressBarStyle.js +131 -0
  1065. package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
  1066. package/es/body-helper/style/RadioStyle.d.ts +45 -0
  1067. package/es/body-helper/style/RadioStyle.js +103 -0
  1068. package/es/body-helper/style/RadioStyle.js.map +1 -0
  1069. package/es/body-helper/style/Style.d.ts +95 -0
  1070. package/es/body-helper/style/Style.js +219 -0
  1071. package/es/body-helper/style/Style.js.map +1 -0
  1072. package/es/body-helper/style/SwitchStyle.d.ts +36 -0
  1073. package/es/body-helper/style/SwitchStyle.js +82 -0
  1074. package/es/body-helper/style/SwitchStyle.js.map +1 -0
  1075. package/es/body-helper/style.d.ts +11 -0
  1076. package/es/body-helper/style.js +28 -0
  1077. package/es/body-helper/style.js.map +1 -0
  1078. package/es/chartModule.d.ts +3 -0
  1079. package/es/chartModule.js +10 -0
  1080. package/es/chartModule.js.map +1 -0
  1081. package/es/components/axis/axis.d.ts +52 -0
  1082. package/es/components/axis/axis.js +198 -0
  1083. package/es/components/axis/axis.js.map +1 -0
  1084. package/es/components/axis/band-scale.d.ts +18 -0
  1085. package/es/components/axis/band-scale.js +46 -0
  1086. package/es/components/axis/band-scale.js.map +1 -0
  1087. package/es/components/axis/get-axis-attributes.d.ts +146 -0
  1088. package/es/components/axis/get-axis-attributes.js +200 -0
  1089. package/es/components/axis/get-axis-attributes.js.map +1 -0
  1090. package/es/components/axis/get-axis-component-size.d.ts +6 -0
  1091. package/es/components/axis/get-axis-component-size.js +128 -0
  1092. package/es/components/axis/get-axis-component-size.js.map +1 -0
  1093. package/es/components/axis/label-overlap.d.ts +3 -0
  1094. package/es/components/axis/label-overlap.js +57 -0
  1095. package/es/components/axis/label-overlap.js.map +1 -0
  1096. package/es/components/axis/linear-scale.d.ts +48 -0
  1097. package/es/components/axis/linear-scale.js +115 -0
  1098. package/es/components/axis/linear-scale.js.map +1 -0
  1099. package/es/components/empty-tip/empty-tip.d.ts +25 -0
  1100. package/es/components/empty-tip/empty-tip.js +98 -0
  1101. package/es/components/empty-tip/empty-tip.js.map +1 -0
  1102. package/es/components/index.d.ts +6 -0
  1103. package/es/components/index.js +44 -0
  1104. package/es/components/index.js.map +1 -0
  1105. package/es/components/legend/continue-legend/continue-legend.d.ts +24 -0
  1106. package/es/components/legend/continue-legend/continue-legend.js +96 -0
  1107. package/es/components/legend/continue-legend/continue-legend.js.map +1 -0
  1108. package/es/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
  1109. package/es/components/legend/continue-legend/get-continue-legend-attributes.js +132 -0
  1110. package/es/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
  1111. package/es/components/legend/create-legend.d.ts +6 -0
  1112. package/es/components/legend/create-legend.js +8 -0
  1113. package/es/components/legend/create-legend.js.map +1 -0
  1114. package/es/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
  1115. package/es/components/legend/discrete-legend/discrete-legend.js +112 -0
  1116. package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -0
  1117. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
  1118. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js +84 -0
  1119. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
  1120. package/es/components/menu/dom/BaseMenu.d.ts +16 -0
  1121. package/es/components/menu/dom/BaseMenu.js +25 -0
  1122. package/es/components/menu/dom/BaseMenu.js.map +1 -0
  1123. package/es/components/menu/dom/Menu.d.ts +9 -0
  1124. package/es/components/menu/dom/Menu.js +18 -0
  1125. package/es/components/menu/dom/Menu.js.map +1 -0
  1126. package/es/components/menu/dom/MenuHandler.d.ts +24 -0
  1127. package/es/components/menu/dom/MenuHandler.js +146 -0
  1128. package/es/components/menu/dom/MenuHandler.js.map +1 -0
  1129. package/es/components/menu/dom/logic/MenuContainer.d.ts +21 -0
  1130. package/es/components/menu/dom/logic/MenuContainer.js +102 -0
  1131. package/es/components/menu/dom/logic/MenuContainer.js.map +1 -0
  1132. package/es/components/menu/dom/logic/MenuElement.d.ts +26 -0
  1133. package/es/components/menu/dom/logic/MenuElement.js +288 -0
  1134. package/es/components/menu/dom/logic/MenuElement.js.map +1 -0
  1135. package/es/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
  1136. package/es/components/menu/dom/logic/MenuElementStyle.js +9 -0
  1137. package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  1138. package/es/components/react/react-custom-layout.d.ts +27 -0
  1139. package/es/components/react/react-custom-layout.js +169 -0
  1140. package/es/components/react/react-custom-layout.js.map +1 -0
  1141. package/es/components/title/title.d.ts +21 -0
  1142. package/es/components/title/title.js +84 -0
  1143. package/es/components/title/title.js.map +1 -0
  1144. package/es/components/tooltip/BaseTooltip.d.ts +22 -0
  1145. package/es/components/tooltip/BaseTooltip.js +27 -0
  1146. package/es/components/tooltip/BaseTooltip.js.map +1 -0
  1147. package/es/components/tooltip/Tooltip.d.ts +5 -0
  1148. package/es/components/tooltip/Tooltip.js +10 -0
  1149. package/es/components/tooltip/Tooltip.js.map +1 -0
  1150. package/es/components/tooltip/TooltipHandler.d.ts +31 -0
  1151. package/es/components/tooltip/TooltipHandler.js +134 -0
  1152. package/es/components/tooltip/TooltipHandler.js.map +1 -0
  1153. package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
  1154. package/es/components/tooltip/logic/BubbleTooltipElement.js +162 -0
  1155. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  1156. package/es/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
  1157. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +9 -0
  1158. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  1159. package/es/components/util/orient.d.ts +3 -0
  1160. package/es/components/util/orient.js +8 -0
  1161. package/es/components/util/orient.js.map +1 -0
  1162. package/es/components/util/register.d.ts +3 -0
  1163. package/es/components/util/register.js +8 -0
  1164. package/es/components/util/register.js.map +1 -0
  1165. package/es/components/util/transform.d.ts +5 -0
  1166. package/es/components/util/transform.js +34 -0
  1167. package/es/components/util/transform.js.map +1 -0
  1168. package/es/core/BaseTable.d.ts +436 -0
  1169. package/es/core/BaseTable.js +1900 -0
  1170. package/es/core/BaseTable.js.map +1 -0
  1171. package/es/core/FouseInput.d.ts +12 -0
  1172. package/es/core/FouseInput.js +33 -0
  1173. package/es/core/FouseInput.js.map +1 -0
  1174. package/es/core/TABLE_EVENT_TYPE.d.ts +61 -0
  1175. package/es/core/TABLE_EVENT_TYPE.js +61 -0
  1176. package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
  1177. package/es/core/animation.d.ts +17 -0
  1178. package/es/core/animation.js +54 -0
  1179. package/es/core/animation.js.map +1 -0
  1180. package/es/core/factory.d.ts +11 -0
  1181. package/es/core/factory.js +23 -0
  1182. package/es/core/factory.js.map +1 -0
  1183. package/es/core/group-helper.d.ts +6 -0
  1184. package/es/core/group-helper.js +14 -0
  1185. package/es/core/group-helper.js.map +1 -0
  1186. package/es/core/record-helper.d.ts +8 -0
  1187. package/es/core/record-helper.js +425 -0
  1188. package/es/core/record-helper.js.map +1 -0
  1189. package/es/core/row-series-number-helper.d.ts +8 -0
  1190. package/es/core/row-series-number-helper.js +15 -0
  1191. package/es/core/row-series-number-helper.js.map +1 -0
  1192. package/es/core/style-helper.d.ts +3 -0
  1193. package/es/core/style-helper.js +86 -0
  1194. package/es/core/style-helper.js.map +1 -0
  1195. package/es/core/style.d.ts +1 -0
  1196. package/es/core/style.js +9 -0
  1197. package/es/core/style.js.map +1 -0
  1198. package/es/core/tableHelper.d.ts +45 -0
  1199. package/es/core/tableHelper.js +253 -0
  1200. package/es/core/tableHelper.js.map +1 -0
  1201. package/es/core/utils/get-cell-position.d.ts +12 -0
  1202. package/es/core/utils/get-cell-position.js +202 -0
  1203. package/es/core/utils/get-cell-position.js.map +1 -0
  1204. package/es/core/utils/get-custom-merge-cell-func.d.ts +2 -0
  1205. package/es/core/utils/get-custom-merge-cell-func.js +6 -0
  1206. package/es/core/utils/get-custom-merge-cell-func.js.map +1 -0
  1207. package/es/core.d.ts +3 -0
  1208. package/es/core.js +4 -0
  1209. package/es/core.js.map +1 -0
  1210. package/es/data/CachedDataSource.d.ts +36 -0
  1211. package/es/data/CachedDataSource.js +249 -0
  1212. package/es/data/CachedDataSource.js.map +1 -0
  1213. package/es/data/DataSource.d.ts +129 -0
  1214. package/es/data/DataSource.js +732 -0
  1215. package/es/data/DataSource.js.map +1 -0
  1216. package/es/data.d.ts +4 -0
  1217. package/es/data.js +6 -0
  1218. package/es/data.js.map +1 -0
  1219. package/es/dataset/DataStatistics.d.ts +10 -0
  1220. package/es/dataset/DataStatistics.js +74 -0
  1221. package/es/dataset/DataStatistics.js.map +1 -0
  1222. package/es/dataset/dataset-pivot-table.d.ts +60 -0
  1223. package/es/dataset/dataset-pivot-table.js +340 -0
  1224. package/es/dataset/dataset-pivot-table.js.map +1 -0
  1225. package/es/dataset/dataset.d.ts +108 -0
  1226. package/es/dataset/dataset.js +803 -0
  1227. package/es/dataset/dataset.js.map +1 -0
  1228. package/es/dataset/flatDataToObject.d.ts +46 -0
  1229. package/es/dataset/flatDataToObject.js +124 -0
  1230. package/es/dataset/flatDataToObject.js.map +1 -0
  1231. package/es/edit/edit-manager.d.ts +19 -0
  1232. package/es/edit/edit-manager.js +121 -0
  1233. package/es/edit/edit-manager.js.map +1 -0
  1234. package/es/edit/editors.d.ts +5 -0
  1235. package/es/edit/editors.js +6 -0
  1236. package/es/edit/editors.js.map +1 -0
  1237. package/es/event/EventHandler.d.ts +47 -0
  1238. package/es/event/EventHandler.js +119 -0
  1239. package/es/event/EventHandler.js.map +1 -0
  1240. package/es/event/EventTarget.d.ts +12 -0
  1241. package/es/event/EventTarget.js +58 -0
  1242. package/es/event/EventTarget.js.map +1 -0
  1243. package/es/event/component/button.d.ts +2 -0
  1244. package/es/event/component/button.js +13 -0
  1245. package/es/event/component/button.js.map +1 -0
  1246. package/es/event/drill.d.ts +5 -0
  1247. package/es/event/drill.js +32 -0
  1248. package/es/event/drill.js.map +1 -0
  1249. package/es/event/event.d.ts +63 -0
  1250. package/es/event/event.js +240 -0
  1251. package/es/event/event.js.map +1 -0
  1252. package/es/event/helper.d.ts +2 -0
  1253. package/es/event/helper.js +27 -0
  1254. package/es/event/helper.js.map +1 -0
  1255. package/es/event/listener/container-dom.d.ts +2 -0
  1256. package/es/event/listener/container-dom.js +348 -0
  1257. package/es/event/listener/container-dom.js.map +1 -0
  1258. package/es/event/listener/scroll-bar.d.ts +2 -0
  1259. package/es/event/listener/scroll-bar.js +75 -0
  1260. package/es/event/listener/scroll-bar.js.map +1 -0
  1261. package/es/event/listener/table-group.d.ts +6 -0
  1262. package/es/event/listener/table-group.js +522 -0
  1263. package/es/event/listener/table-group.js.map +1 -0
  1264. package/es/event/listener/touch.d.ts +2 -0
  1265. package/es/event/listener/touch.js +76 -0
  1266. package/es/event/listener/touch.js.map +1 -0
  1267. package/es/event/media-click.d.ts +2 -0
  1268. package/es/event/media-click.js +85 -0
  1269. package/es/event/media-click.js.map +1 -0
  1270. package/es/event/scroll.d.ts +20 -0
  1271. package/es/event/scroll.js +81 -0
  1272. package/es/event/scroll.js.map +1 -0
  1273. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
  1274. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js +25 -0
  1275. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
  1276. package/es/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
  1277. package/es/event/self-event-listener/base-table/dropdown-menu.js +8 -0
  1278. package/es/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
  1279. package/es/event/self-event-listener/base-table/icon.d.ts +2 -0
  1280. package/es/event/self-event-listener/base-table/icon.js +18 -0
  1281. package/es/event/self-event-listener/base-table/icon.js.map +1 -0
  1282. package/es/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
  1283. package/es/event/self-event-listener/base-table/right-button-click.js +17 -0
  1284. package/es/event/self-event-listener/base-table/right-button-click.js.map +1 -0
  1285. package/es/event/self-event-listener/list-table/checkbox.d.ts +3 -0
  1286. package/es/event/self-event-listener/list-table/checkbox.js +117 -0
  1287. package/es/event/self-event-listener/list-table/checkbox.js.map +1 -0
  1288. package/es/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
  1289. package/es/event/self-event-listener/pivot-chart/axis-click.js +37 -0
  1290. package/es/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
  1291. package/es/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
  1292. package/es/event/self-event-listener/pivot-chart/axis-hover.js +33 -0
  1293. package/es/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
  1294. package/es/event/self-event-listener/pivot-table/drill.d.ts +1 -0
  1295. package/es/event/self-event-listener/pivot-table/drill.js +3 -0
  1296. package/es/event/self-event-listener/pivot-table/drill.js.map +1 -0
  1297. package/es/event/sparkline-event.d.ts +2 -0
  1298. package/es/event/sparkline-event.js +19 -0
  1299. package/es/event/sparkline-event.js.map +1 -0
  1300. package/es/event/util.d.ts +20 -0
  1301. package/es/event/util.js +38 -0
  1302. package/es/event/util.js.map +1 -0
  1303. package/es/header-helper/header-helper.d.ts +29 -0
  1304. package/es/header-helper/header-helper.js +252 -0
  1305. package/es/header-helper/header-helper.js.map +1 -0
  1306. package/es/header-helper/style/CheckboxStyle.d.ts +42 -0
  1307. package/es/header-helper/style/CheckboxStyle.js +96 -0
  1308. package/es/header-helper/style/CheckboxStyle.js.map +1 -0
  1309. package/es/header-helper/style/ImageStyle.d.ts +7 -0
  1310. package/es/header-helper/style/ImageStyle.js +17 -0
  1311. package/es/header-helper/style/ImageStyle.js.map +1 -0
  1312. package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  1313. package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
  1314. package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  1315. package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
  1316. package/es/header-helper/style/SortHeaderStyle.js +3 -0
  1317. package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
  1318. package/es/header-helper/style/Style.d.ts +95 -0
  1319. package/es/header-helper/style/Style.js +220 -0
  1320. package/es/header-helper/style/Style.js.map +1 -0
  1321. package/es/header-helper/style.d.ts +6 -0
  1322. package/es/header-helper/style.js +17 -0
  1323. package/es/header-helper/style.js.map +1 -0
  1324. package/es/icons.d.ts +5 -0
  1325. package/es/icons.js +295 -0
  1326. package/es/icons.js.map +1 -0
  1327. package/es/index.d.ts +33 -0
  1328. package/es/index.js +68 -0
  1329. package/es/index.js.map +1 -0
  1330. package/es/layout/cell-range/simple-cell-range.d.ts +4 -0
  1331. package/es/layout/cell-range/simple-cell-range.js +141 -0
  1332. package/es/layout/cell-range/simple-cell-range.js.map +1 -0
  1333. package/es/layout/chart-helper/get-axis-config.d.ts +39 -0
  1334. package/es/layout/chart-helper/get-axis-config.js +391 -0
  1335. package/es/layout/chart-helper/get-axis-config.js.map +1 -0
  1336. package/es/layout/chart-helper/get-axis-domain.d.ts +11 -0
  1337. package/es/layout/chart-helper/get-axis-domain.js +44 -0
  1338. package/es/layout/chart-helper/get-axis-domain.js.map +1 -0
  1339. package/es/layout/chart-helper/get-chart-spec.d.ts +13 -0
  1340. package/es/layout/chart-helper/get-chart-spec.js +281 -0
  1341. package/es/layout/chart-helper/get-chart-spec.js.map +1 -0
  1342. package/es/layout/chart-helper/tick-align.d.ts +12 -0
  1343. package/es/layout/chart-helper/tick-align.js +16 -0
  1344. package/es/layout/chart-helper/tick-align.js.map +1 -0
  1345. package/es/layout/chart-helper/zero-align.d.ts +10 -0
  1346. package/es/layout/chart-helper/zero-align.js +111 -0
  1347. package/es/layout/chart-helper/zero-align.js.map +1 -0
  1348. package/es/layout/index.d.ts +1 -0
  1349. package/es/layout/index.js +1 -0
  1350. package/es/layout/index.js.map +1 -0
  1351. package/es/layout/layout-helper.d.ts +20 -0
  1352. package/es/layout/layout-helper.js +146 -0
  1353. package/es/layout/layout-helper.js.map +1 -0
  1354. package/es/layout/pivot-header-layout.d.ts +279 -0
  1355. package/es/layout/pivot-header-layout.js +1832 -0
  1356. package/es/layout/pivot-header-layout.js.map +1 -0
  1357. package/es/layout/pivot-layout.d.ts +1 -0
  1358. package/es/layout/pivot-layout.js +1 -0
  1359. package/es/layout/pivot-layout.js.map +1 -0
  1360. package/es/layout/row-height-map.d.ts +34 -0
  1361. package/es/layout/row-height-map.js +168 -0
  1362. package/es/layout/row-height-map.js.map +1 -0
  1363. package/es/layout/simple-header-layout.d.ts +153 -0
  1364. package/es/layout/simple-header-layout.js +780 -0
  1365. package/es/layout/simple-header-layout.js.map +1 -0
  1366. package/es/layout/tree-helper.d.ts +71 -0
  1367. package/es/layout/tree-helper.js +401 -0
  1368. package/es/layout/tree-helper.js.map +1 -0
  1369. package/es/plugins/chartModules.d.ts +3 -0
  1370. package/es/plugins/chartModules.js +2 -0
  1371. package/es/plugins/chartModules.js.map +1 -0
  1372. package/es/plugins/custom-cell-style.d.ts +26 -0
  1373. package/es/plugins/custom-cell-style.js +107 -0
  1374. package/es/plugins/custom-cell-style.js.map +1 -0
  1375. package/es/plugins/icons.d.ts +12 -0
  1376. package/es/plugins/icons.js +22 -0
  1377. package/es/plugins/icons.js.map +1 -0
  1378. package/es/plugins/invert-highlight.d.ts +1 -0
  1379. package/es/plugins/invert-highlight.js +14 -0
  1380. package/es/plugins/invert-highlight.js.map +1 -0
  1381. package/es/plugins/list-tree-stick-cell.d.ts +18 -0
  1382. package/es/plugins/list-tree-stick-cell.js +178 -0
  1383. package/es/plugins/list-tree-stick-cell.js.map +1 -0
  1384. package/es/plugins/themes.d.ts +4 -0
  1385. package/es/plugins/themes.js +2 -0
  1386. package/es/plugins/themes.js.map +1 -0
  1387. package/es/register.d.ts +15 -0
  1388. package/es/register.js +44 -0
  1389. package/es/register.js.map +1 -0
  1390. package/es/render/jsx/index.d.ts +8 -0
  1391. package/es/render/jsx/index.js +16 -0
  1392. package/es/render/jsx/index.js.map +1 -0
  1393. package/es/render/layout/arc.d.ts +12 -0
  1394. package/es/render/layout/arc.js +12 -0
  1395. package/es/render/layout/arc.js.map +1 -0
  1396. package/es/render/layout/circle.d.ts +12 -0
  1397. package/es/render/layout/circle.js +12 -0
  1398. package/es/render/layout/circle.js.map +1 -0
  1399. package/es/render/layout/container.d.ts +14 -0
  1400. package/es/render/layout/container.js +21 -0
  1401. package/es/render/layout/container.js.map +1 -0
  1402. package/es/render/layout/direction.d.ts +22 -0
  1403. package/es/render/layout/direction.js +31 -0
  1404. package/es/render/layout/direction.js.map +1 -0
  1405. package/es/render/layout/element.d.ts +43 -0
  1406. package/es/render/layout/element.js +19 -0
  1407. package/es/render/layout/element.js.map +1 -0
  1408. package/es/render/layout/group-element.d.ts +5 -0
  1409. package/es/render/layout/group-element.js +8 -0
  1410. package/es/render/layout/group-element.js.map +1 -0
  1411. package/es/render/layout/group.d.ts +12 -0
  1412. package/es/render/layout/group.js +12 -0
  1413. package/es/render/layout/group.js.map +1 -0
  1414. package/es/render/layout/icon.d.ts +21 -0
  1415. package/es/render/layout/icon.js +21 -0
  1416. package/es/render/layout/icon.js.map +1 -0
  1417. package/es/render/layout/image.d.ts +14 -0
  1418. package/es/render/layout/image.js +13 -0
  1419. package/es/render/layout/image.js.map +1 -0
  1420. package/es/render/layout/index.d.ts +13 -0
  1421. package/es/render/layout/index.js +26 -0
  1422. package/es/render/layout/index.js.map +1 -0
  1423. package/es/render/layout/line.d.ts +1 -0
  1424. package/es/render/layout/line.js +2 -0
  1425. package/es/render/layout/line.js.map +1 -0
  1426. package/es/render/layout/percent-calc.d.ts +5 -0
  1427. package/es/render/layout/percent-calc.js +7 -0
  1428. package/es/render/layout/percent-calc.js.map +1 -0
  1429. package/es/render/layout/rect.d.ts +12 -0
  1430. package/es/render/layout/rect.js +12 -0
  1431. package/es/render/layout/rect.js.map +1 -0
  1432. package/es/render/layout/tag.d.ts +14 -0
  1433. package/es/render/layout/tag.js +15 -0
  1434. package/es/render/layout/tag.js.map +1 -0
  1435. package/es/render/layout/text.d.ts +13 -0
  1436. package/es/render/layout/text.js +17 -0
  1437. package/es/render/layout/text.js.map +1 -0
  1438. package/es/scenegraph/animation/appear.d.ts +2 -0
  1439. package/es/scenegraph/animation/appear.js +20 -0
  1440. package/es/scenegraph/animation/appear.js.map +1 -0
  1441. package/es/scenegraph/component/cell-content.d.ts +36 -0
  1442. package/es/scenegraph/component/cell-content.js +105 -0
  1443. package/es/scenegraph/component/cell-content.js.map +1 -0
  1444. package/es/scenegraph/component/cell-mover.d.ts +21 -0
  1445. package/es/scenegraph/component/cell-mover.js +113 -0
  1446. package/es/scenegraph/component/cell-mover.js.map +1 -0
  1447. package/es/scenegraph/component/custom.d.ts +16 -0
  1448. package/es/scenegraph/component/custom.js +311 -0
  1449. package/es/scenegraph/component/custom.js.map +1 -0
  1450. package/es/scenegraph/component/drill-icon.d.ts +9 -0
  1451. package/es/scenegraph/component/drill-icon.js +41 -0
  1452. package/es/scenegraph/component/drill-icon.js.map +1 -0
  1453. package/es/scenegraph/component/menu.d.ts +41 -0
  1454. package/es/scenegraph/component/menu.js +215 -0
  1455. package/es/scenegraph/component/menu.js.map +1 -0
  1456. package/es/scenegraph/component/table-component.d.ts +52 -0
  1457. package/es/scenegraph/component/table-component.js +564 -0
  1458. package/es/scenegraph/component/table-component.js.map +1 -0
  1459. package/es/scenegraph/component/util.d.ts +3 -0
  1460. package/es/scenegraph/component/util.js +12 -0
  1461. package/es/scenegraph/component/util.js.map +1 -0
  1462. package/es/scenegraph/debug-tool/debug-tool.d.ts +34 -0
  1463. package/es/scenegraph/debug-tool/debug-tool.js +113 -0
  1464. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
  1465. package/es/scenegraph/debug-tool/index.d.ts +4 -0
  1466. package/es/scenegraph/debug-tool/index.js +6 -0
  1467. package/es/scenegraph/debug-tool/index.js.map +1 -0
  1468. package/es/scenegraph/graphic/chart.d.ts +47 -0
  1469. package/es/scenegraph/graphic/chart.js +123 -0
  1470. package/es/scenegraph/graphic/chart.js.map +1 -0
  1471. package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
  1472. package/es/scenegraph/graphic/contributions/chart-render-helper.js +159 -0
  1473. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
  1474. package/es/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
  1475. package/es/scenegraph/graphic/contributions/chart-render.js +76 -0
  1476. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  1477. package/es/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
  1478. package/es/scenegraph/graphic/contributions/draw-interceptor.js +66 -0
  1479. package/es/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
  1480. package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
  1481. package/es/scenegraph/graphic/contributions/group-contribution-render.js +346 -0
  1482. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  1483. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
  1484. package/es/scenegraph/graphic/contributions/image-contribution-render.js +69 -0
  1485. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  1486. package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
  1487. package/es/scenegraph/graphic/contributions/index.js +38 -0
  1488. package/es/scenegraph/graphic/contributions/index.js.map +1 -0
  1489. package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
  1490. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +90 -0
  1491. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  1492. package/es/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
  1493. package/es/scenegraph/graphic/contributions/text-contribution-render.js +69 -0
  1494. package/es/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
  1495. package/es/scenegraph/graphic/group.d.ts +37 -0
  1496. package/es/scenegraph/graphic/group.js +127 -0
  1497. package/es/scenegraph/graphic/group.js.map +1 -0
  1498. package/es/scenegraph/graphic/icon.d.ts +47 -0
  1499. package/es/scenegraph/graphic/icon.js +70 -0
  1500. package/es/scenegraph/graphic/icon.js.map +1 -0
  1501. package/es/scenegraph/graphic/mark.d.ts +4 -0
  1502. package/es/scenegraph/graphic/mark.js +66 -0
  1503. package/es/scenegraph/graphic/mark.js.map +1 -0
  1504. package/es/scenegraph/graphic/text.d.ts +2 -0
  1505. package/es/scenegraph/graphic/text.js +2 -0
  1506. package/es/scenegraph/graphic/text.js.map +1 -0
  1507. package/es/scenegraph/group-creater/cell-helper.d.ts +16 -0
  1508. package/es/scenegraph/group-creater/cell-helper.js +325 -0
  1509. package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
  1510. package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  1511. package/es/scenegraph/group-creater/cell-type/button-cell.js +137 -0
  1512. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  1513. package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
  1514. package/es/scenegraph/group-creater/cell-type/chart-cell.js +76 -0
  1515. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  1516. package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
  1517. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +138 -0
  1518. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
  1519. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
  1520. package/es/scenegraph/group-creater/cell-type/image-cell.js +206 -0
  1521. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  1522. package/es/scenegraph/group-creater/cell-type/index.d.ts +10 -0
  1523. package/es/scenegraph/group-creater/cell-type/index.js +64 -0
  1524. package/es/scenegraph/group-creater/cell-type/index.js.map +1 -0
  1525. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
  1526. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +389 -0
  1527. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  1528. package/es/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
  1529. package/es/scenegraph/group-creater/cell-type/radio-cell.js +143 -0
  1530. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
  1531. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
  1532. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +202 -0
  1533. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  1534. package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  1535. package/es/scenegraph/group-creater/cell-type/switch-cell.js +150 -0
  1536. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  1537. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
  1538. package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  1539. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  1540. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
  1541. package/es/scenegraph/group-creater/cell-type/video-cell.js +127 -0
  1542. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  1543. package/es/scenegraph/group-creater/column-helper.d.ts +14 -0
  1544. package/es/scenegraph/group-creater/column-helper.js +141 -0
  1545. package/es/scenegraph/group-creater/column-helper.js.map +1 -0
  1546. package/es/scenegraph/group-creater/column.d.ts +4 -0
  1547. package/es/scenegraph/group-creater/column.js +26 -0
  1548. package/es/scenegraph/group-creater/column.js.map +1 -0
  1549. package/es/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
  1550. package/es/scenegraph/group-creater/init-scenegraph.js +50 -0
  1551. package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -0
  1552. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  1553. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +46 -0
  1554. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  1555. package/es/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  1556. package/es/scenegraph/group-creater/progress/default-width-height.js +18 -0
  1557. package/es/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  1558. package/es/scenegraph/group-creater/progress/proxy.d.ts +79 -0
  1559. package/es/scenegraph/group-creater/progress/proxy.js +357 -0
  1560. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
  1561. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
  1562. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +168 -0
  1563. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
  1564. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
  1565. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +185 -0
  1566. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
  1567. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
  1568. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js +56 -0
  1569. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
  1570. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
  1571. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +70 -0
  1572. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
  1573. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
  1574. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js +29 -0
  1575. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
  1576. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
  1577. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js +39 -0
  1578. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
  1579. package/es/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
  1580. package/es/scenegraph/group-creater/progress/update-position/util.js +88 -0
  1581. package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
  1582. package/es/scenegraph/icon/icon-update.d.ts +28 -0
  1583. package/es/scenegraph/icon/icon-update.js +178 -0
  1584. package/es/scenegraph/icon/icon-update.js.map +1 -0
  1585. package/es/scenegraph/layout/compute-col-width.d.ts +4 -0
  1586. package/es/scenegraph/layout/compute-col-width.js +320 -0
  1587. package/es/scenegraph/layout/compute-col-width.js.map +1 -0
  1588. package/es/scenegraph/layout/compute-row-height.d.ts +3 -0
  1589. package/es/scenegraph/layout/compute-row-height.js +340 -0
  1590. package/es/scenegraph/layout/compute-row-height.js.map +1 -0
  1591. package/es/scenegraph/layout/frozen-react.d.ts +5 -0
  1592. package/es/scenegraph/layout/frozen-react.js +82 -0
  1593. package/es/scenegraph/layout/frozen-react.js.map +1 -0
  1594. package/es/scenegraph/layout/frozen.d.ts +6 -0
  1595. package/es/scenegraph/layout/frozen.js +328 -0
  1596. package/es/scenegraph/layout/frozen.js.map +1 -0
  1597. package/es/scenegraph/layout/height-util.d.ts +7 -0
  1598. package/es/scenegraph/layout/height-util.js +118 -0
  1599. package/es/scenegraph/layout/height-util.js.map +1 -0
  1600. package/es/scenegraph/layout/move-cell.d.ts +2 -0
  1601. package/es/scenegraph/layout/move-cell.js +44 -0
  1602. package/es/scenegraph/layout/move-cell.js.map +1 -0
  1603. package/es/scenegraph/layout/update-col.d.ts +3 -0
  1604. package/es/scenegraph/layout/update-col.js +204 -0
  1605. package/es/scenegraph/layout/update-col.js.map +1 -0
  1606. package/es/scenegraph/layout/update-height.d.ts +6 -0
  1607. package/es/scenegraph/layout/update-height.js +149 -0
  1608. package/es/scenegraph/layout/update-height.js.map +1 -0
  1609. package/es/scenegraph/layout/update-row.d.ts +3 -0
  1610. package/es/scenegraph/layout/update-row.js +278 -0
  1611. package/es/scenegraph/layout/update-row.js.map +1 -0
  1612. package/es/scenegraph/layout/update-width.d.ts +2 -0
  1613. package/es/scenegraph/layout/update-width.js +247 -0
  1614. package/es/scenegraph/layout/update-width.js.map +1 -0
  1615. package/es/scenegraph/refresh-node/update-chart.d.ts +7 -0
  1616. package/es/scenegraph/refresh-node/update-chart.js +196 -0
  1617. package/es/scenegraph/refresh-node/update-chart.js.map +1 -0
  1618. package/es/scenegraph/scenegraph.d.ts +182 -0
  1619. package/es/scenegraph/scenegraph.js +908 -0
  1620. package/es/scenegraph/scenegraph.js.map +1 -0
  1621. package/es/scenegraph/select/create-select-border.d.ts +3 -0
  1622. package/es/scenegraph/select/create-select-border.js +51 -0
  1623. package/es/scenegraph/select/create-select-border.js.map +1 -0
  1624. package/es/scenegraph/select/delete-select-border.d.ts +5 -0
  1625. package/es/scenegraph/select/delete-select-border.js +29 -0
  1626. package/es/scenegraph/select/delete-select-border.js.map +1 -0
  1627. package/es/scenegraph/select/move-select-border.d.ts +2 -0
  1628. package/es/scenegraph/select/move-select-border.js +9 -0
  1629. package/es/scenegraph/select/move-select-border.js.map +1 -0
  1630. package/es/scenegraph/select/update-select-border.d.ts +8 -0
  1631. package/es/scenegraph/select/update-select-border.js +263 -0
  1632. package/es/scenegraph/select/update-select-border.js.map +1 -0
  1633. package/es/scenegraph/select/update-select-style.d.ts +3 -0
  1634. package/es/scenegraph/select/update-select-style.js +7 -0
  1635. package/es/scenegraph/select/update-select-style.js.map +1 -0
  1636. package/es/scenegraph/stick-text/index.d.ts +3 -0
  1637. package/es/scenegraph/stick-text/index.js +179 -0
  1638. package/es/scenegraph/stick-text/index.js.map +1 -0
  1639. package/es/scenegraph/style/corner-cell.d.ts +3 -0
  1640. package/es/scenegraph/style/corner-cell.js +22 -0
  1641. package/es/scenegraph/style/corner-cell.js.map +1 -0
  1642. package/es/scenegraph/style/frame-border.d.ts +8 -0
  1643. package/es/scenegraph/style/frame-border.js +138 -0
  1644. package/es/scenegraph/style/frame-border.js.map +1 -0
  1645. package/es/scenegraph/utils/border-line.d.ts +8 -0
  1646. package/es/scenegraph/utils/border-line.js +45 -0
  1647. package/es/scenegraph/utils/border-line.js.map +1 -0
  1648. package/es/scenegraph/utils/break-string.d.ts +5 -0
  1649. package/es/scenegraph/utils/break-string.js +16 -0
  1650. package/es/scenegraph/utils/break-string.js.map +1 -0
  1651. package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  1652. package/es/scenegraph/utils/cell-border-stroke-width.js +12 -0
  1653. package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  1654. package/es/scenegraph/utils/cell-pos.d.ts +4 -0
  1655. package/es/scenegraph/utils/cell-pos.js +12 -0
  1656. package/es/scenegraph/utils/cell-pos.js.map +1 -0
  1657. package/es/scenegraph/utils/deal-promise-data.d.ts +2 -0
  1658. package/es/scenegraph/utils/deal-promise-data.js +6 -0
  1659. package/es/scenegraph/utils/deal-promise-data.js.map +1 -0
  1660. package/es/scenegraph/utils/empty-group.d.ts +2 -0
  1661. package/es/scenegraph/utils/empty-group.js +6 -0
  1662. package/es/scenegraph/utils/empty-group.js.map +1 -0
  1663. package/es/scenegraph/utils/font.d.ts +1 -0
  1664. package/es/scenegraph/utils/font.js +6 -0
  1665. package/es/scenegraph/utils/font.js.map +1 -0
  1666. package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
  1667. package/es/scenegraph/utils/get-cell-merge.js +11 -0
  1668. package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
  1669. package/es/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  1670. package/es/scenegraph/utils/get-hierarchy-offset.js +21 -0
  1671. package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  1672. package/es/scenegraph/utils/get-prop.d.ts +4 -0
  1673. package/es/scenegraph/utils/get-prop.js +36 -0
  1674. package/es/scenegraph/utils/get-prop.js.map +1 -0
  1675. package/es/scenegraph/utils/icon.d.ts +12 -0
  1676. package/es/scenegraph/utils/icon.js +29 -0
  1677. package/es/scenegraph/utils/icon.js.map +1 -0
  1678. package/es/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
  1679. package/es/scenegraph/utils/is-merge-cell-group.js +6 -0
  1680. package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -0
  1681. package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  1682. package/es/scenegraph/utils/keep-aspect-ratio.js +11 -0
  1683. package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  1684. package/es/scenegraph/utils/padding.d.ts +6 -0
  1685. package/es/scenegraph/utils/padding.js +14 -0
  1686. package/es/scenegraph/utils/padding.js.map +1 -0
  1687. package/es/scenegraph/utils/render-service.d.ts +7 -0
  1688. package/es/scenegraph/utils/render-service.js +19 -0
  1689. package/es/scenegraph/utils/render-service.js.map +1 -0
  1690. package/es/scenegraph/utils/text-icon-layout.d.ts +29 -0
  1691. package/es/scenegraph/utils/text-icon-layout.js +334 -0
  1692. package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
  1693. package/es/scenegraph/utils/text-measure.d.ts +38 -0
  1694. package/es/scenegraph/utils/text-measure.js +163 -0
  1695. package/es/scenegraph/utils/text-measure.js.map +1 -0
  1696. package/es/scenegraph/utils/text-pos.d.ts +8 -0
  1697. package/es/scenegraph/utils/text-pos.js +20 -0
  1698. package/es/scenegraph/utils/text-pos.js.map +1 -0
  1699. package/es/scenegraph/utils/update-container.d.ts +2 -0
  1700. package/es/scenegraph/utils/update-container.js +6 -0
  1701. package/es/scenegraph/utils/update-container.js.map +1 -0
  1702. package/es/state/cell-move/adjust-header.d.ts +3 -0
  1703. package/es/state/cell-move/adjust-header.js +20 -0
  1704. package/es/state/cell-move/adjust-header.js.map +1 -0
  1705. package/es/state/cell-move/index.d.ts +4 -0
  1706. package/es/state/cell-move/index.js +106 -0
  1707. package/es/state/cell-move/index.js.map +1 -0
  1708. package/es/state/checkbox/checkbox.d.ts +12 -0
  1709. package/es/state/checkbox/checkbox.js +199 -0
  1710. package/es/state/checkbox/checkbox.js.map +1 -0
  1711. package/es/state/common/check-in-select.d.ts +7 -0
  1712. package/es/state/common/check-in-select.js +53 -0
  1713. package/es/state/common/check-in-select.js.map +1 -0
  1714. package/es/state/drill/index.d.ts +2 -0
  1715. package/es/state/drill/index.js +9 -0
  1716. package/es/state/drill/index.js.map +1 -0
  1717. package/es/state/frozen/index.d.ts +2 -0
  1718. package/es/state/frozen/index.js +4 -0
  1719. package/es/state/frozen/index.js.map +1 -0
  1720. package/es/state/hover/col.d.ts +4 -0
  1721. package/es/state/hover/col.js +16 -0
  1722. package/es/state/hover/col.js.map +1 -0
  1723. package/es/state/hover/is-cell-hover.d.ts +5 -0
  1724. package/es/state/hover/is-cell-hover.js +44 -0
  1725. package/es/state/hover/is-cell-hover.js.map +1 -0
  1726. package/es/state/hover/row.d.ts +4 -0
  1727. package/es/state/hover/row.js +14 -0
  1728. package/es/state/hover/row.js.map +1 -0
  1729. package/es/state/hover/single.d.ts +4 -0
  1730. package/es/state/hover/single.js +10 -0
  1731. package/es/state/hover/single.js.map +1 -0
  1732. package/es/state/hover/update-cell.d.ts +2 -0
  1733. package/es/state/hover/update-cell.js +15 -0
  1734. package/es/state/hover/update-cell.js.map +1 -0
  1735. package/es/state/hover/update-position.d.ts +2 -0
  1736. package/es/state/hover/update-position.js +36 -0
  1737. package/es/state/hover/update-position.js.map +1 -0
  1738. package/es/state/radio/radio.d.ts +7 -0
  1739. package/es/state/radio/radio.js +80 -0
  1740. package/es/state/radio/radio.js.map +1 -0
  1741. package/es/state/resize/update-resize-column.d.ts +2 -0
  1742. package/es/state/resize/update-resize-column.js +79 -0
  1743. package/es/state/resize/update-resize-column.js.map +1 -0
  1744. package/es/state/resize/update-resize-row.d.ts +2 -0
  1745. package/es/state/resize/update-resize-row.js +58 -0
  1746. package/es/state/resize/update-resize-row.js.map +1 -0
  1747. package/es/state/select/custom-select.d.ts +7 -0
  1748. package/es/state/select/custom-select.js +30 -0
  1749. package/es/state/select/custom-select.js.map +1 -0
  1750. package/es/state/select/is-cell-select-highlight.d.ts +6 -0
  1751. package/es/state/select/is-cell-select-highlight.js +81 -0
  1752. package/es/state/select/is-cell-select-highlight.js.map +1 -0
  1753. package/es/state/select/update-position.d.ts +4 -0
  1754. package/es/state/select/update-position.js +300 -0
  1755. package/es/state/select/update-position.js.map +1 -0
  1756. package/es/state/sort/index.d.ts +2 -0
  1757. package/es/state/sort/index.js +50 -0
  1758. package/es/state/sort/index.js.map +1 -0
  1759. package/es/state/spark-line/index.d.ts +3 -0
  1760. package/es/state/spark-line/index.js +96 -0
  1761. package/es/state/spark-line/index.js.map +1 -0
  1762. package/es/state/state.d.ts +206 -0
  1763. package/es/state/state.js +834 -0
  1764. package/es/state/state.js.map +1 -0
  1765. package/es/themes/ARCO.d.ts +3 -0
  1766. package/es/themes/ARCO.js +109 -0
  1767. package/es/themes/ARCO.js.map +1 -0
  1768. package/es/themes/BRIGHT.d.ts +3 -0
  1769. package/es/themes/BRIGHT.js +66 -0
  1770. package/es/themes/BRIGHT.js.map +1 -0
  1771. package/es/themes/DARK.d.ts +3 -0
  1772. package/es/themes/DARK.js +99 -0
  1773. package/es/themes/DARK.js.map +1 -0
  1774. package/es/themes/DEFAULT.d.ts +3 -0
  1775. package/es/themes/DEFAULT.js +82 -0
  1776. package/es/themes/DEFAULT.js.map +1 -0
  1777. package/es/themes/SIMPLIFY.d.ts +3 -0
  1778. package/es/themes/SIMPLIFY.js +49 -0
  1779. package/es/themes/SIMPLIFY.js.map +1 -0
  1780. package/es/themes/component.d.ts +35 -0
  1781. package/es/themes/component.js +42 -0
  1782. package/es/themes/component.js.map +1 -0
  1783. package/es/themes/theme.d.ts +67 -0
  1784. package/es/themes/theme.js +752 -0
  1785. package/es/themes/theme.js.map +1 -0
  1786. package/es/themes.d.ts +28 -0
  1787. package/es/themes.js +64 -0
  1788. package/es/themes.js.map +1 -0
  1789. package/es/tools/LimitPromiseQueue.d.ts +8 -0
  1790. package/es/tools/LimitPromiseQueue.js +21 -0
  1791. package/es/tools/LimitPromiseQueue.js.map +1 -0
  1792. package/es/tools/NumberMap.d.ts +23 -0
  1793. package/es/tools/NumberMap.js +117 -0
  1794. package/es/tools/NumberMap.js.map +1 -0
  1795. package/es/tools/Rect.d.ts +24 -0
  1796. package/es/tools/Rect.js +62 -0
  1797. package/es/tools/Rect.js.map +1 -0
  1798. package/es/tools/calc.d.ts +8 -0
  1799. package/es/tools/calc.js +201 -0
  1800. package/es/tools/calc.js.map +1 -0
  1801. package/es/tools/cell-range.d.ts +2 -0
  1802. package/es/tools/cell-range.js +4 -0
  1803. package/es/tools/cell-range.js.map +1 -0
  1804. package/es/tools/debounce.d.ts +1 -0
  1805. package/es/tools/debounce.js +43 -0
  1806. package/es/tools/debounce.js.map +1 -0
  1807. package/es/tools/diff-cell.d.ts +72 -0
  1808. package/es/tools/diff-cell.js +160 -0
  1809. package/es/tools/diff-cell.js.map +1 -0
  1810. package/es/tools/dom.d.ts +1 -0
  1811. package/es/tools/dom.js +5 -0
  1812. package/es/tools/dom.js.map +1 -0
  1813. package/es/tools/env.d.ts +19 -0
  1814. package/es/tools/env.js +42 -0
  1815. package/es/tools/env.js.map +1 -0
  1816. package/es/tools/get-data-path/create-dataset.d.ts +11 -0
  1817. package/es/tools/get-data-path/create-dataset.js +147 -0
  1818. package/es/tools/get-data-path/create-dataset.js.map +1 -0
  1819. package/es/tools/get-data-path/index.d.ts +2 -0
  1820. package/es/tools/get-data-path/index.js +51 -0
  1821. package/es/tools/get-data-path/index.js.map +1 -0
  1822. package/es/tools/global.d.ts +15 -0
  1823. package/es/tools/global.js +30 -0
  1824. package/es/tools/global.js.map +1 -0
  1825. package/es/tools/helper.d.ts +72 -0
  1826. package/es/tools/helper.js +226 -0
  1827. package/es/tools/helper.js.map +1 -0
  1828. package/es/tools/icons.d.ts +4 -0
  1829. package/es/tools/icons.js +4 -0
  1830. package/es/tools/icons.js.map +1 -0
  1831. package/es/tools/isx.d.ts +16 -0
  1832. package/es/tools/isx.js +79 -0
  1833. package/es/tools/isx.js.map +1 -0
  1834. package/es/tools/join.d.ts +1 -0
  1835. package/es/tools/join.js +6 -0
  1836. package/es/tools/join.js.map +1 -0
  1837. package/es/tools/merge-range.d.ts +11 -0
  1838. package/es/tools/merge-range.js +28 -0
  1839. package/es/tools/merge-range.js.map +1 -0
  1840. package/es/tools/pixel-ratio.d.ts +2 -0
  1841. package/es/tools/pixel-ratio.js +12 -0
  1842. package/es/tools/pixel-ratio.js.map +1 -0
  1843. package/es/tools/sort.d.ts +2 -0
  1844. package/es/tools/sort.js +12 -0
  1845. package/es/tools/sort.js.map +1 -0
  1846. package/es/tools/style.d.ts +5 -0
  1847. package/es/tools/style.js +20 -0
  1848. package/es/tools/style.js.map +1 -0
  1849. package/es/tools/update-row.d.ts +19 -0
  1850. package/es/tools/update-row.js +32 -0
  1851. package/es/tools/update-row.js.map +1 -0
  1852. package/es/tools/util.d.ts +46 -0
  1853. package/es/tools/util.js +231 -0
  1854. package/es/tools/util.js.map +1 -0
  1855. package/es/ts-types/animation/appear.d.ts +11 -0
  1856. package/es/ts-types/animation/appear.js +2 -0
  1857. package/es/ts-types/animation/appear.js.map +1 -0
  1858. package/es/ts-types/animation/index.d.ts +1 -0
  1859. package/es/ts-types/animation/index.js +2 -0
  1860. package/es/ts-types/animation/index.js.map +1 -0
  1861. package/es/ts-types/base-table.d.ts +641 -0
  1862. package/es/ts-types/base-table.js +2 -0
  1863. package/es/ts-types/base-table.js.map +1 -0
  1864. package/es/ts-types/column/index.d.ts +2 -0
  1865. package/es/ts-types/column/index.js +4 -0
  1866. package/es/ts-types/column/index.js.map +1 -0
  1867. package/es/ts-types/column/style.d.ts +151 -0
  1868. package/es/ts-types/column/style.js +2 -0
  1869. package/es/ts-types/column/style.js.map +1 -0
  1870. package/es/ts-types/column/type.d.ts +2 -0
  1871. package/es/ts-types/column/type.js +2 -0
  1872. package/es/ts-types/column/type.js.map +1 -0
  1873. package/es/ts-types/common.d.ts +114 -0
  1874. package/es/ts-types/common.js +13 -0
  1875. package/es/ts-types/common.js.map +1 -0
  1876. package/es/ts-types/component/axis.d.ts +2 -0
  1877. package/es/ts-types/component/axis.js +2 -0
  1878. package/es/ts-types/component/axis.js.map +1 -0
  1879. package/es/ts-types/component/empty-tip.d.ts +20 -0
  1880. package/es/ts-types/component/empty-tip.js +2 -0
  1881. package/es/ts-types/component/empty-tip.js.map +1 -0
  1882. package/es/ts-types/component/index.d.ts +1 -0
  1883. package/es/ts-types/component/index.js +2 -0
  1884. package/es/ts-types/component/index.js.map +1 -0
  1885. package/es/ts-types/component/legend.d.ts +18 -0
  1886. package/es/ts-types/component/legend.js +2 -0
  1887. package/es/ts-types/component/legend.js.map +1 -0
  1888. package/es/ts-types/component/title.d.ts +49 -0
  1889. package/es/ts-types/component/title.js +2 -0
  1890. package/es/ts-types/component/title.js.map +1 -0
  1891. package/es/ts-types/component/util.d.ts +1 -0
  1892. package/es/ts-types/component/util.js +2 -0
  1893. package/es/ts-types/component/util.js.map +1 -0
  1894. package/es/ts-types/customElement.d.ts +128 -0
  1895. package/es/ts-types/customElement.js +2 -0
  1896. package/es/ts-types/customElement.js.map +1 -0
  1897. package/es/ts-types/customLayout.d.ts +9 -0
  1898. package/es/ts-types/customLayout.js +2 -0
  1899. package/es/ts-types/customLayout.js.map +1 -0
  1900. package/es/ts-types/dataset/aggregation.d.ts +192 -0
  1901. package/es/ts-types/dataset/aggregation.js +397 -0
  1902. package/es/ts-types/dataset/aggregation.js.map +1 -0
  1903. package/es/ts-types/dataset/index.d.ts +1 -0
  1904. package/es/ts-types/dataset/index.js +2 -0
  1905. package/es/ts-types/dataset/index.js.map +1 -0
  1906. package/es/ts-types/events.d.ts +363 -0
  1907. package/es/ts-types/events.js +2 -0
  1908. package/es/ts-types/events.js.map +1 -0
  1909. package/es/ts-types/icon.d.ts +93 -0
  1910. package/es/ts-types/icon.js +30 -0
  1911. package/es/ts-types/icon.js.map +1 -0
  1912. package/es/ts-types/index.d.ts +17 -0
  1913. package/es/ts-types/index.js +34 -0
  1914. package/es/ts-types/index.js.map +1 -0
  1915. package/es/ts-types/list-table/define/basic-define.d.ts +50 -0
  1916. package/es/ts-types/list-table/define/basic-define.js +2 -0
  1917. package/es/ts-types/list-table/define/basic-define.js.map +1 -0
  1918. package/es/ts-types/list-table/define/button-define.d.ts +9 -0
  1919. package/es/ts-types/list-table/define/button-define.js +2 -0
  1920. package/es/ts-types/list-table/define/button-define.js.map +1 -0
  1921. package/es/ts-types/list-table/define/chart-define.d.ts +11 -0
  1922. package/es/ts-types/list-table/define/chart-define.js +2 -0
  1923. package/es/ts-types/list-table/define/chart-define.js.map +1 -0
  1924. package/es/ts-types/list-table/define/checkbox-define.d.ts +15 -0
  1925. package/es/ts-types/list-table/define/checkbox-define.js +2 -0
  1926. package/es/ts-types/list-table/define/checkbox-define.js.map +1 -0
  1927. package/es/ts-types/list-table/define/composite-define.d.ts +26 -0
  1928. package/es/ts-types/list-table/define/composite-define.js +2 -0
  1929. package/es/ts-types/list-table/define/composite-define.js.map +1 -0
  1930. package/es/ts-types/list-table/define/image-define.d.ts +17 -0
  1931. package/es/ts-types/list-table/define/image-define.js +2 -0
  1932. package/es/ts-types/list-table/define/image-define.js.map +1 -0
  1933. package/es/ts-types/list-table/define/index.d.ts +31 -0
  1934. package/es/ts-types/list-table/define/index.js +2 -0
  1935. package/es/ts-types/list-table/define/index.js.map +1 -0
  1936. package/es/ts-types/list-table/define/link-define.d.ts +22 -0
  1937. package/es/ts-types/list-table/define/link-define.js +2 -0
  1938. package/es/ts-types/list-table/define/link-define.js.map +1 -0
  1939. package/es/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
  1940. package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
  1941. package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  1942. package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  1943. package/es/ts-types/list-table/define/progressbar-define.js +2 -0
  1944. package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
  1945. package/es/ts-types/list-table/define/radio-define.d.ts +11 -0
  1946. package/es/ts-types/list-table/define/radio-define.js +2 -0
  1947. package/es/ts-types/list-table/define/radio-define.js.map +1 -0
  1948. package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  1949. package/es/ts-types/list-table/define/sparkline-define.js +2 -0
  1950. package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
  1951. package/es/ts-types/list-table/define/switch-define.d.ts +11 -0
  1952. package/es/ts-types/list-table/define/switch-define.js +2 -0
  1953. package/es/ts-types/list-table/define/switch-define.js.map +1 -0
  1954. package/es/ts-types/list-table/index.d.ts +2 -0
  1955. package/es/ts-types/list-table/index.js +4 -0
  1956. package/es/ts-types/list-table/index.js.map +1 -0
  1957. package/es/ts-types/list-table/layout-map/api.d.ts +126 -0
  1958. package/es/ts-types/list-table/layout-map/api.js +2 -0
  1959. package/es/ts-types/list-table/layout-map/api.js.map +1 -0
  1960. package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
  1961. package/es/ts-types/list-table/layout-map/index.js +2 -0
  1962. package/es/ts-types/list-table/layout-map/index.js.map +1 -0
  1963. package/es/ts-types/menu.d.ts +74 -0
  1964. package/es/ts-types/menu.js +2 -0
  1965. package/es/ts-types/menu.js.map +1 -0
  1966. package/es/ts-types/new-data-set.d.ts +158 -0
  1967. package/es/ts-types/new-data-set.js +15 -0
  1968. package/es/ts-types/new-data-set.js.map +1 -0
  1969. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
  1970. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
  1971. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  1972. package/es/ts-types/pivot-table/corner.d.ts +37 -0
  1973. package/es/ts-types/pivot-table/corner.js +2 -0
  1974. package/es/ts-types/pivot-table/corner.js.map +1 -0
  1975. package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
  1976. package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
  1977. package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  1978. package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
  1979. package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
  1980. package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  1981. package/es/ts-types/pivot-table/dimension/index.d.ts +6 -0
  1982. package/es/ts-types/pivot-table/dimension/index.js +2 -0
  1983. package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
  1984. package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
  1985. package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
  1986. package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  1987. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  1988. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
  1989. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  1990. package/es/ts-types/pivot-table/index.d.ts +4 -0
  1991. package/es/ts-types/pivot-table/index.js +8 -0
  1992. package/es/ts-types/pivot-table/index.js.map +1 -0
  1993. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
  1994. package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
  1995. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  1996. package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
  1997. package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
  1998. package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  1999. package/es/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
  2000. package/es/ts-types/pivot-table/indicator/checkbox-indicator.js +2 -0
  2001. package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
  2002. package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
  2003. package/es/ts-types/pivot-table/indicator/composite-indicator.js +2 -0
  2004. package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
  2005. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
  2006. package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
  2007. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  2008. package/es/ts-types/pivot-table/indicator/index.d.ts +12 -0
  2009. package/es/ts-types/pivot-table/indicator/index.js +2 -0
  2010. package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
  2011. package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
  2012. package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
  2013. package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  2014. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  2015. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
  2016. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  2017. package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  2018. package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
  2019. package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  2020. package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  2021. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
  2022. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  2023. package/es/ts-types/pivot-table/title.d.ts +20 -0
  2024. package/es/ts-types/pivot-table/title.js +2 -0
  2025. package/es/ts-types/pivot-table/title.js.map +1 -0
  2026. package/es/ts-types/sparkline.d.ts +37 -0
  2027. package/es/ts-types/sparkline.js +2 -0
  2028. package/es/ts-types/sparkline.js.map +1 -0
  2029. package/es/ts-types/style-define.d.ts +72 -0
  2030. package/es/ts-types/style-define.js +2 -0
  2031. package/es/ts-types/style-define.js.map +1 -0
  2032. package/es/ts-types/table-engine.d.ts +405 -0
  2033. package/es/ts-types/table-engine.js +13 -0
  2034. package/es/ts-types/table-engine.js.map +1 -0
  2035. package/es/ts-types/theme.d.ts +164 -0
  2036. package/es/ts-types/theme.js +2 -0
  2037. package/es/ts-types/theme.js.map +1 -0
  2038. package/es/ts-types/tooltip.d.ts +26 -0
  2039. package/es/ts-types/tooltip.js +2 -0
  2040. package/es/ts-types/tooltip.js.map +1 -0
  2041. package/es/vrender.d.ts +8 -0
  2042. package/es/vrender.js +27 -0
  2043. package/es/vrender.js.map +1 -0
  2044. package/package.json +132 -0
@@ -0,0 +1,1900 @@
1
+ import * as columnStyleContents from "../body-helper/style";
2
+
3
+ import { importStyle } from "./style";
4
+
5
+ import * as style from "../tools/style";
6
+
7
+ import { InteractionState, Placement } from "../ts-types";
8
+
9
+ import { event, style as utilStyle } from "../tools/helper";
10
+
11
+ import { TABLE_EVENT_TYPE } from "./TABLE_EVENT_TYPE";
12
+
13
+ import { EventHandler } from "../event/EventHandler";
14
+
15
+ import { EventTarget } from "../event/EventTarget";
16
+
17
+ import { NumberMap } from "../tools/NumberMap";
18
+
19
+ import { Rect } from "../tools/Rect";
20
+
21
+ import { throttle2 } from "../tools/util";
22
+
23
+ import themes from "../themes";
24
+
25
+ import { Env } from "../tools/env";
26
+
27
+ import { Scenegraph } from "../scenegraph/scenegraph";
28
+
29
+ import { StateManager } from "../state/state";
30
+
31
+ import { EventManager } from "../event/event";
32
+
33
+ import { BodyHelper } from "../body-helper/body-helper";
34
+
35
+ import { HeaderHelper } from "../header-helper/header-helper";
36
+
37
+ import { AABBBounds, isNumber, isBoolean, isValid, cloneDeep } from "@visactor/vutils";
38
+
39
+ import { measureTextBounds, textMeasure } from "../scenegraph/utils/text-measure";
40
+
41
+ import { getProp } from "../scenegraph/utils/get-prop";
42
+
43
+ import { IconCache } from "../plugins/icons";
44
+
45
+ import { _applyColWidthLimits, _getScrollableVisibleRect, _setDataSource, _toPxWidth, checkHasColumnAutoWidth, createRootElement, getStyleTheme, updateRootElementPadding } from "./tableHelper";
46
+
47
+ import { FocusInput } from "./FouseInput";
48
+
49
+ import { defaultPixelRatio } from "../tools/pixel-ratio";
50
+
51
+ import { clearChartRenderQueue, setBatchRenderChartCount } from "../scenegraph/graphic/contributions/chart-render-helper";
52
+
53
+ import { NumberRangeMap } from "../layout/row-height-map";
54
+
55
+ import { RowSeriesNumberHelper } from "./row-series-number-helper";
56
+
57
+ import { hideCellSelectBorder, restoreCellSelectBorder } from "../scenegraph/select/update-select-border";
58
+
59
+ import { ReactCustomLayout } from "../components/react/react-custom-layout";
60
+
61
+ import { hasAutoImageColumn } from "../layout/layout-helper";
62
+
63
+ import { Factory } from "./factory";
64
+
65
+ import { getCellAt, getCellAtRelativePosition, getColAt, getRowAt, getTargetColAt, getTargetColAtConsiderRightFrozen, getTargetRowAt, getTargetRowAtConsiderBottomFrozen } from "./utils/get-cell-position";
66
+
67
+ import { getCellStyle } from "./style-helper";
68
+
69
+ import { createReactContainer } from "../scenegraph/layout/frozen-react";
70
+
71
+ import { setIconColor } from "../icons";
72
+
73
+ import { TableAnimationManager } from "./animation";
74
+
75
+ import { checkCellInSelect } from "../state/common/check-in-select";
76
+
77
+ import { isCellDisableSelect } from "../state/select/is-cell-select-highlight";
78
+
79
+ import { getCustomMergeCellFunc } from "./utils/get-custom-merge-cell-func";
80
+
81
+ import { vglobal } from "./../vrender";
82
+
83
+ const {toBoxArray: toBoxArray} = utilStyle, {isTouchEvent: isTouchEvent} = event, rangeReg = /^\$(\d+)\$(\d+)$/;
84
+
85
+ importStyle();
86
+
87
+ export class BaseTable extends EventTarget {
88
+ static get EVENT_TYPE() {
89
+ return TABLE_EVENT_TYPE;
90
+ }
91
+ constructor(container, options = {}) {
92
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
93
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.5", this.id = `VTable${Date.now()}`,
94
+ this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
95
+ !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
96
+ !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
97
+ const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
98
+ this.container = container, this.options = options, this._widthMode = widthMode,
99
+ this._heightMode = heightMode, this._widthAdaptiveMode = widthAdaptiveMode, this._heightAdaptiveMode = heightAdaptiveMode,
100
+ this._autoFillWidth = autoFillWidth, this._autoFillHeight = autoFillHeight, this.customRender = customRender,
101
+ this.padding = {
102
+ top: 0,
103
+ right: 0,
104
+ left: 0,
105
+ bottom: 0
106
+ }, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
107
+ this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
108
+ padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
109
+ padding.right && (this.padding.right = padding.right))), (isValid(canvasHeight) || isValid(canvasWidth)) && (this.canvasSizeSeted = !0),
110
+ this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
111
+ this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
112
+ const internalProps = this.internalProps = {};
113
+ void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
114
+ this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement,
115
+ internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element),
116
+ internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding),
117
+ internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"),
118
+ internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"),
119
+ (null === (_c = options.customConfig) || void 0 === _c ? void 0 : _c.createReactContainer) && createReactContainer(this)),
120
+ internalProps.handler = new EventHandler, isNumber(this.options.resizeTime) && (internalProps.handler.resizeTime = this.options.resizeTime),
121
+ internalProps.pixelRatio = pixelRatio, internalProps.frozenColCount = frozenColCount,
122
+ internalProps.frozenRowCount = frozenRowCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth,
123
+ internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
124
+ internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
125
+ internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions,
126
+ internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.columnResizeMode = null !== (_d = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _d ? _d : columnResizeMode,
127
+ internalProps.rowResizeMode = null !== (_e = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _e ? _e : rowResizeMode,
128
+ internalProps.dragHeaderMode = null !== (_g = null !== (_f = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _f ? _f : dragHeaderMode) && void 0 !== _g ? _g : "none",
129
+ internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount),
130
+ internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto",
131
+ internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map,
132
+ internalProps._colRangeWidthsMap = new Map, internalProps._widthResizedColMap = new Set,
133
+ internalProps._heightResizedRowMap = new Set, this.colWidthsMap = new NumberMap,
134
+ this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {};
135
+ const that = this;
136
+ if (internalProps.calcWidthContext = {
137
+ _: internalProps,
138
+ get full() {
139
+ var _a;
140
+ return "node" === Env.mode ? that.canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
141
+ }
142
+ }, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes.of(null !== (_h = options.theme) && void 0 !== _h ? _h : themes.DEFAULT),
143
+ internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle),
144
+ container ? (clearDOM && (container.innerHTML = ""), container.appendChild(internalProps.element),
145
+ this._updateSize()) : this._updateSize(), internalProps.bodyHelper = new BodyHelper(this),
146
+ internalProps.headerHelper = new HeaderHelper(this), internalProps.rowSeriesNumberHelper = new RowSeriesNumberHelper(this),
147
+ internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak,
148
+ internalProps.allowFrozenColCount = null !== (_j = options.allowFrozenColCount) && void 0 !== _j ? _j : 0,
149
+ internalProps.limitMaxAutoWidth = null !== (_k = options.limitMaxAutoWidth) && void 0 !== _k ? _k : 450,
150
+ internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10,
151
+ internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10,
152
+ this.scenegraph = new Scenegraph(this), this.stateManager = new StateManager(this),
153
+ this.eventManager = new EventManager(this), this.animationManager = new TableAnimationManager(this),
154
+ options.legends) {
155
+ internalProps.legends = [];
156
+ const createLegend = Factory.getFunction("createLegend");
157
+ if (Array.isArray(options.legends)) {
158
+ for (let i = 0; i < options.legends.length; i++) internalProps.legends.push(createLegend(options.legends[i], this));
159
+ this.scenegraph.tableGroup.setAttributes({
160
+ x: this.tableX,
161
+ y: this.tableY
162
+ });
163
+ } else internalProps.legends.push(createLegend(options.legends, this)), this.scenegraph.tableGroup.setAttributes({
164
+ x: this.tableX,
165
+ y: this.tableY
166
+ });
167
+ }
168
+ if (internalProps.tooltip = Object.assign({
169
+ parentElement: this.getElement(),
170
+ renderMode: "html",
171
+ isShowOverflowTextTooltip: !1,
172
+ confine: !0,
173
+ position: Placement.bottom
174
+ }, options.tooltip), "html" === internalProps.tooltip.renderMode) {
175
+ const TooltipHandler = Factory.getComponent("tooltipHandler");
176
+ TooltipHandler && (internalProps.tooltipHandler = new TooltipHandler(this, internalProps.tooltip.confine));
177
+ }
178
+ if (internalProps.menu = Object.assign({
179
+ renderMode: "html"
180
+ }, options.menu), Array.isArray(null === (_l = options.menu) || void 0 === _l ? void 0 : _l.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight),
181
+ (Array.isArray(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.defaultHeaderMenuItems) || "function" == typeof (null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems),
182
+ "html" === internalProps.menu.renderMode) {
183
+ const MenuHandler = Factory.getComponent("menuHandler");
184
+ internalProps.menuHandler = new MenuHandler(this);
185
+ }
186
+ this.headerStyleCache = new Map, this.bodyStyleCache = new Map, this.bodyMergeTitleCache = new Map,
187
+ this.bodyBottomStyleCache = new Map, internalProps.stick = {
188
+ changedCells: new Map
189
+ }, internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell);
190
+ const CustomCellStylePlugin = Factory.getComponent("customCellStylePlugin");
191
+ CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_q = options.customCellStyle) && void 0 !== _q ? _q : [], null !== (_r = options.customCellStyleArrangement) && void 0 !== _r ? _r : [])),
192
+ this._adjustCanvasSizeByOption();
193
+ }
194
+ _adjustCanvasSizeByOption() {
195
+ "auto" !== this.options.canvasHeight && "auto" !== this.options.canvasWidth || setTimeout((() => {
196
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
197
+ let canvasWidth, canvasHeight;
198
+ if ("auto" === this.options.canvasHeight) {
199
+ let borderWidth = 0;
200
+ if (null === (_a = this.theme.frameStyle) || void 0 === _a ? void 0 : _a.innerBorder) {
201
+ borderWidth += null !== (_d = toBoxArray(null !== (_c = null === (_b = this.internalProps.theme.frameStyle) || void 0 === _b ? void 0 : _b.shadowBlur) && void 0 !== _c ? _c : [ 0 ])[1]) && void 0 !== _d ? _d : 0;
202
+ } else if (this.theme.frameStyle) {
203
+ const lineWidths = toBoxArray(null !== (_f = null === (_e = this.internalProps.theme.frameStyle) || void 0 === _e ? void 0 : _e.borderLineWidth) && void 0 !== _f ? _f : [ null ]), shadowWidths = toBoxArray(null !== (_h = null === (_g = this.internalProps.theme.frameStyle) || void 0 === _g ? void 0 : _g.shadowBlur) && void 0 !== _h ? _h : [ 0 ]);
204
+ borderWidth += (null !== (_j = lineWidths[0]) && void 0 !== _j ? _j : 0) + (null !== (_k = shadowWidths[0]) && void 0 !== _k ? _k : 0) + ((null !== (_l = lineWidths[2]) && void 0 !== _l ? _l : 0) + (null !== (_m = shadowWidths[2]) && void 0 !== _m ? _m : 0));
205
+ }
206
+ canvasHeight = Math.min(this.options.maxCanvasHeight ? this.options.maxCanvasHeight - borderWidth : 2e4, this.getAllRowsHeight()) + borderWidth;
207
+ } else canvasHeight = this.canvasHeight;
208
+ if ("auto" === this.options.canvasWidth) {
209
+ let borderWidth = 0;
210
+ if (null === (_o = this.theme.frameStyle) || void 0 === _o ? void 0 : _o.innerBorder) {
211
+ borderWidth += null !== (_r = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [ 0 ])[2]) && void 0 !== _r ? _r : 0;
212
+ } else if (this.theme.frameStyle) {
213
+ const lineWidths = toBoxArray(null !== (_t = null === (_s = this.internalProps.theme.frameStyle) || void 0 === _s ? void 0 : _s.borderLineWidth) && void 0 !== _t ? _t : [ null ]), shadowWidths = toBoxArray(null !== (_v = null === (_u = this.internalProps.theme.frameStyle) || void 0 === _u ? void 0 : _u.shadowBlur) && void 0 !== _v ? _v : [ 0 ]);
214
+ borderWidth += (null !== (_w = lineWidths[1]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[1]) && void 0 !== _x ? _x : 0) + ((null !== (_y = lineWidths[3]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[3]) && void 0 !== _z ? _z : 0));
215
+ }
216
+ canvasWidth = Math.min(this.options.maxCanvasWidth ? this.options.maxCanvasWidth - borderWidth : 2e4, this.getAllColsWidth()) + borderWidth;
217
+ } else canvasWidth = this.canvasWidth;
218
+ this.setCanvasSize(canvasWidth, canvasHeight);
219
+ }), 0);
220
+ }
221
+ getContainer() {
222
+ return this.container;
223
+ }
224
+ getElement() {
225
+ return this.internalProps.element;
226
+ }
227
+ get canvas() {
228
+ return this.internalProps.canvas;
229
+ }
230
+ setCanvasSize(canvasWidth, canvasHeight) {
231
+ this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight, this.options.canvasHeight = canvasHeight,
232
+ this.options.canvasWidth = canvasWidth, this.resize();
233
+ }
234
+ resize() {
235
+ var _a;
236
+ this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
237
+ null == legend || legend.resize();
238
+ })), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(),
239
+ this.scenegraph.resize();
240
+ }
241
+ get rowCount() {
242
+ return this.internalProps.rowCount;
243
+ }
244
+ set rowCount(rowCount) {
245
+ this.internalProps.rowCount = rowCount;
246
+ }
247
+ get colCount() {
248
+ var _a;
249
+ return null !== (_a = this.internalProps.colCount) && void 0 !== _a ? _a : 0;
250
+ }
251
+ set colCount(colCount) {
252
+ this.internalProps.colCount = colCount;
253
+ }
254
+ get frozenColCount() {
255
+ var _a, _b, _c, _d, _e;
256
+ return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.frozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.frozenColCount) && void 0 !== _e ? _e : 0;
257
+ }
258
+ set frozenColCount(frozenColCount) {
259
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
260
+ this.options.frozenColCount = frozenColCount;
261
+ const maxFrozenWidth = this._getMaxFrozenWidth();
262
+ if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
263
+ const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
264
+ this.internalProps.frozenColCount = computedFrozenColCount;
265
+ }
266
+ this.stateManager.setFrozenCol(this.internalProps.frozenColCount);
267
+ }
268
+ setFrozenColCount(frozenColCount) {
269
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
270
+ this.options.frozenColCount = frozenColCount;
271
+ const maxFrozenWidth = this._getMaxFrozenWidth();
272
+ if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
273
+ const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
274
+ this.internalProps.frozenColCount = computedFrozenColCount;
275
+ }
276
+ this.stateManager.setFrozenCol(this.internalProps.frozenColCount);
277
+ }
278
+ _setFrozenColCount(frozenColCount) {
279
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount;
280
+ }
281
+ _resetFrozenColCount() {
282
+ this.options.frozenColCount && (this.tableNoFrameWidth - this.getColsWidth(0, this.options.frozenColCount - 1) <= 120 ? this._setFrozenColCount(0) : this.frozenColCount !== this.options.frozenColCount && this._setFrozenColCount(this.options.frozenColCount));
283
+ }
284
+ get frozenRowCount() {
285
+ var _a, _b, _c, _d, _e;
286
+ return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.frozenRowCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.frozenRowCount) && void 0 !== _e ? _e : 0;
287
+ }
288
+ set frozenRowCount(frozenRowCount) {
289
+ this.internalProps.frozenRowCount = frozenRowCount, this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
290
+ }
291
+ get rightFrozenColCount() {
292
+ var _a, _b, _c, _d, _e;
293
+ return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.rightFrozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.rightFrozenColCount) && void 0 !== _e ? _e : 0;
294
+ }
295
+ set rightFrozenColCount(rightFrozenColCount) {
296
+ this.scenegraph.dealWidthRightFrozen(rightFrozenColCount);
297
+ }
298
+ get bottomFrozenRowCount() {
299
+ var _a, _b, _c, _d, _e;
300
+ return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.bottomFrozenRowCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.bottomFrozenRowCount) && void 0 !== _e ? _e : 0;
301
+ }
302
+ set bottomFrozenRowCount(bottomFrozenRowCount) {
303
+ this.scenegraph.dealWidthBottomFrozen(bottomFrozenRowCount);
304
+ }
305
+ get defaultRowHeight() {
306
+ return isNumber(this.internalProps.defaultRowHeight) ? this.internalProps.defaultRowHeight : 40;
307
+ }
308
+ set defaultRowHeight(defaultRowHeight) {
309
+ this.internalProps.defaultRowHeight = defaultRowHeight, this.options.defaultRowHeight = defaultRowHeight;
310
+ }
311
+ get defaultHeaderRowHeight() {
312
+ return this.internalProps.defaultHeaderRowHeight;
313
+ }
314
+ set defaultHeaderRowHeight(defaultHeaderRowHeight) {
315
+ this.internalProps.defaultHeaderRowHeight = defaultHeaderRowHeight, this.options.defaultHeaderRowHeight = defaultHeaderRowHeight;
316
+ }
317
+ get defaultColWidth() {
318
+ return this.internalProps.defaultColWidth;
319
+ }
320
+ set defaultColWidth(defaultColWidth) {
321
+ this.internalProps.defaultColWidth = defaultColWidth, this.options.defaultColWidth = defaultColWidth;
322
+ }
323
+ get defaultHeaderColWidth() {
324
+ return this.internalProps.defaultHeaderColWidth;
325
+ }
326
+ set defaultHeaderColWidth(defaultHeaderColWidth) {
327
+ this.internalProps.defaultHeaderColWidth = defaultHeaderColWidth, this.options.defaultHeaderColWidth = defaultHeaderColWidth;
328
+ }
329
+ get colWidthsMap() {
330
+ return this.internalProps._colWidthsMap;
331
+ }
332
+ set colWidthsMap(colWidthsMap) {
333
+ this.internalProps._colWidthsMap = colWidthsMap;
334
+ }
335
+ get colContentWidthsMap() {
336
+ return this.internalProps._colContentWidthsMap;
337
+ }
338
+ set colContentWidthsMap(colContentWidthsMap) {
339
+ this.internalProps._colContentWidthsMap = colContentWidthsMap;
340
+ }
341
+ get _colRangeWidthsMap() {
342
+ return this.internalProps._colRangeWidthsMap;
343
+ }
344
+ set _colRangeWidthsMap(_colRangeWidthsMap) {
345
+ this.internalProps._colRangeWidthsMap = _colRangeWidthsMap;
346
+ }
347
+ get _rowRangeHeightsMap() {
348
+ return this.internalProps._rowRangeHeightsMap;
349
+ }
350
+ set _rowRangeHeightsMap(_rowRangeHeightsMap) {
351
+ this.internalProps._rowRangeHeightsMap = _rowRangeHeightsMap;
352
+ }
353
+ get rowHeightsMap() {
354
+ return this.internalProps._rowHeightsMap;
355
+ }
356
+ set rowHeightsMap(rowHeightsMap) {
357
+ this.internalProps._rowHeightsMap = rowHeightsMap;
358
+ }
359
+ get colWidthsLimit() {
360
+ return this.internalProps._colWidthsLimit;
361
+ }
362
+ set colWidthsLimit(colWidthsLimit) {
363
+ this.internalProps._colWidthsLimit = colWidthsLimit;
364
+ }
365
+ get keyboardOptions() {
366
+ var _a;
367
+ return null !== (_a = this.internalProps.keyboardOptions) && void 0 !== _a ? _a : null;
368
+ }
369
+ set keyboardOptions(keyboardOptions) {
370
+ this.internalProps.keyboardOptions = null != keyboardOptions ? keyboardOptions : void 0;
371
+ }
372
+ get eventOptions() {
373
+ var _a;
374
+ return null !== (_a = this.internalProps.eventOptions) && void 0 !== _a ? _a : null;
375
+ }
376
+ set eventOptions(eventOptions) {
377
+ this.internalProps.eventOptions = null != eventOptions ? eventOptions : void 0;
378
+ }
379
+ get widthMode() {
380
+ return this._widthMode;
381
+ }
382
+ set widthMode(widthMode) {
383
+ widthMode !== this._widthMode && (this._widthMode = widthMode, this.options.widthMode = widthMode);
384
+ }
385
+ get heightMode() {
386
+ return this._heightMode;
387
+ }
388
+ set heightMode(heightMode) {
389
+ heightMode !== this._heightMode && (this._heightMode = heightMode, this.options.heightMode = heightMode);
390
+ }
391
+ get autoFillWidth() {
392
+ return this._autoFillWidth;
393
+ }
394
+ set autoFillWidth(autoFillWidth) {
395
+ autoFillWidth !== this._autoFillWidth && (this._autoFillWidth = autoFillWidth);
396
+ }
397
+ get autoFillHeight() {
398
+ return this._autoFillHeight;
399
+ }
400
+ set autoFillHeight(autoFillHeight) {
401
+ autoFillHeight !== this._autoFillHeight && (this._autoFillHeight = autoFillHeight);
402
+ }
403
+ get widthAdaptiveMode() {
404
+ return this._widthAdaptiveMode;
405
+ }
406
+ set widthAdaptiveMode(widthAdaptiveMode) {
407
+ widthAdaptiveMode !== this._widthAdaptiveMode && (this._widthAdaptiveMode = widthAdaptiveMode);
408
+ }
409
+ get heightAdaptiveMode() {
410
+ return this._heightAdaptiveMode;
411
+ }
412
+ set heightAdaptiveMode(heightAdaptiveMode) {
413
+ heightAdaptiveMode !== this._heightAdaptiveMode && (this._heightAdaptiveMode = heightAdaptiveMode);
414
+ }
415
+ _colWidthDefineToPxWidth(width) {
416
+ return "auto" === width ? 0 : _toPxWidth(this, width);
417
+ }
418
+ _getMaxFrozenWidth() {
419
+ var _a;
420
+ const maxFrozenWidth = null !== (_a = this.options.maxFrozenWidth) && void 0 !== _a ? _a : "80%";
421
+ return _toPxWidth(this, maxFrozenWidth);
422
+ }
423
+ _getComputedFrozenColCount(frozenColCount) {
424
+ const maxFrozenWidth = this._getMaxFrozenWidth();
425
+ let computedfrozenColCount = frozenColCount;
426
+ for (;this.getColsWidth(0, computedfrozenColCount - 1) > maxFrozenWidth && (computedfrozenColCount--,
427
+ !(computedfrozenColCount <= 0)); ) ;
428
+ return computedfrozenColCount;
429
+ }
430
+ _getColWidthLimits(col) {
431
+ const limit = this.colWidthsLimit[col];
432
+ if (!limit) return null;
433
+ const result = {};
434
+ return limit.min && (result.min = _toPxWidth(this, limit.min), result.minDef = limit.min),
435
+ limit.max && (result.max = _toPxWidth(this, limit.max), result.maxDef = limit.max),
436
+ result;
437
+ }
438
+ _adjustColWidth(col, orgWidth) {
439
+ const limits = this._getColWidthLimits(col);
440
+ return Math.max(_applyColWidthLimits(limits, orgWidth), 0);
441
+ }
442
+ get pixelRatio() {
443
+ return this.internalProps.pixelRatio;
444
+ }
445
+ setPixelRatio(pixelRatio) {
446
+ var _a;
447
+ if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
448
+ this.internalProps.pixelRatio = pixelRatio;
449
+ const canvasWidth = this.canvasWidth;
450
+ this.internalProps.calcWidthContext = {
451
+ _: this.internalProps,
452
+ get full() {
453
+ var _a;
454
+ return "node" === Env.mode ? canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
455
+ }
456
+ }, this.scenegraph.setPixelRatio(pixelRatio);
457
+ }
458
+ }
459
+ _updateSize() {
460
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
461
+ const {padding: padding} = this;
462
+ let widthP = 0, heightP = 0;
463
+ if (this.tableX = 0, this.tableY = 0, this.options.canvas && this.options.viewBox) widthP = this.options.viewBox.x2 - this.options.viewBox.x1,
464
+ heightP = this.options.viewBox.y2 - this.options.viewBox.y1, (null === (_a = null == this ? void 0 : this.scenegraph) || void 0 === _a ? void 0 : _a.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP)); else if ("browser" === Env.mode) {
465
+ const element = this.getElement();
466
+ let widthWithoutPadding = 0, heightWithoutPadding = 0;
467
+ const isDefWidth = isValid(this.canvasWidth), isDefHeight = isValid(this.canvasHeight);
468
+ this.canvasSizeSeted && (isDefWidth && (widthWithoutPadding = this.canvasWidth),
469
+ isDefHeight && (heightWithoutPadding = this.canvasHeight));
470
+ if ((!isDefWidth || !isDefHeight) && element.parentElement) {
471
+ const computedStyle = element.parentElement.style || window.getComputedStyle(element.parentElement);
472
+ isDefWidth || (widthWithoutPadding = element.parentElement.offsetWidth - (parseInt(computedStyle.paddingLeft, 10) || 0) - (parseInt(computedStyle.paddingRight, 10) || 0)),
473
+ isDefHeight || (heightWithoutPadding = element.parentElement.offsetHeight - parseInt(computedStyle.paddingTop || "0px", 10) - parseInt(computedStyle.paddingBottom || "0px", 20)),
474
+ widthWithoutPadding = (null != widthWithoutPadding ? widthWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
475
+ heightWithoutPadding = (null != heightWithoutPadding ? heightWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
476
+ }
477
+ element.style.width = widthWithoutPadding && widthWithoutPadding - padding.left - padding.right + "px" || "0px",
478
+ element.style.height = heightWithoutPadding && heightWithoutPadding - padding.top - padding.bottom + "px" || "0px";
479
+ const {canvas: canvas} = this.internalProps;
480
+ widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
481
+ heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
482
+ (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? (null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) && !(null === (_h = this.options) || void 0 === _h ? void 0 : _h.canvas) && this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "",
483
+ canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`,
484
+ canvas.style.height = `${heightP}px`), (null === (_j = this.options) || void 0 === _j ? void 0 : _j.viewBox) && (widthP = this.options.viewBox.x2 - this.options.viewBox.x1,
485
+ heightP = this.options.viewBox.y2 - this.options.viewBox.y1), (null === (_k = null == this ? void 0 : this.scenegraph) || void 0 === _k ? void 0 : _k.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP));
486
+ } else "node" === Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
487
+ const width = Math.floor(widthP - style.getVerticalScrollBarSize(this.getTheme().scrollStyle)), height = Math.floor(heightP - style.getHorizontalScrollBarSize(this.getTheme().scrollStyle));
488
+ if (null === (_l = this.internalProps.theme) || void 0 === _l ? void 0 : _l.frameStyle) {
489
+ const lineWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.borderLineWidth) && void 0 !== _o ? _o : [ null ]), shadowWidths = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [ 0 ]);
490
+ (null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) ? (this.tableX = 0,
491
+ this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_s = shadowWidths[1]) && void 0 !== _s ? _s : 0),
492
+ this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0)) : (this.tableX = (null !== (_u = lineWidths[3]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[3]) && void 0 !== _v ? _v : 0),
493
+ this.tableY = (null !== (_w = lineWidths[0]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[0]) && void 0 !== _x ? _x : 0),
494
+ this.tableNoFrameWidth = width - ((null !== (_y = lineWidths[1]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[1]) && void 0 !== _z ? _z : 0)) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0)),
495
+ this.tableNoFrameHeight = height - ((null !== (_2 = lineWidths[0]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[0]) && void 0 !== _3 ? _3 : 0)) - ((null !== (_4 = lineWidths[2]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[2]) && void 0 !== _5 ? _5 : 0)));
496
+ }
497
+ }
498
+ updateViewBox(newViewBox) {
499
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
500
+ const oldWidth = (null !== (_c = null === (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox) || void 0 === _b ? void 0 : _b.x2) && void 0 !== _c ? _c : 0) - (null !== (_f = null === (_e = null === (_d = this.options) || void 0 === _d ? void 0 : _d.viewBox) || void 0 === _e ? void 0 : _e.x1) && void 0 !== _f ? _f : 0), oldHeight = (null !== (_j = null === (_h = null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) || void 0 === _h ? void 0 : _h.y2) && void 0 !== _j ? _j : 0) - (null !== (_m = null === (_l = null === (_k = this.options) || void 0 === _k ? void 0 : _k.viewBox) || void 0 === _l ? void 0 : _l.y1) && void 0 !== _m ? _m : 0), newWidth = newViewBox.x2 - newViewBox.x1, newHeight = newViewBox.y2 - newViewBox.y1;
501
+ this.options.viewBox = newViewBox, oldWidth !== newWidth || oldHeight !== newHeight ? this.resize() : this.scenegraph.stage.setViewBox(this.options.viewBox, !0);
502
+ }
503
+ setViewBoxTransform(a, b, c, d, e, f) {
504
+ this.internalProps.modifiedViewBoxTransform = !0, this.scenegraph.stage.window.setViewBoxTransform(a, b, c, d, e, f);
505
+ }
506
+ get rowHierarchyType() {
507
+ return this.dataSource.rowHierarchyType;
508
+ }
509
+ getColsWidth(startCol, endCol) {
510
+ var _a;
511
+ if (startCol > endCol) return 0;
512
+ startCol = Math.max(startCol, 0), endCol = Math.min(endCol, (null !== (_a = this.colCount) && void 0 !== _a ? _a : 1 / 0) - 1);
513
+ const cachedColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol}`);
514
+ if (null != cachedColWidth) return cachedColWidth;
515
+ const cachedLowerColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol - 1}`);
516
+ if (null != cachedLowerColWidth) {
517
+ const addWidth = cachedLowerColWidth + this.getColWidth(endCol);
518
+ return startCol >= 0 && endCol >= 0 && !Number.isNaN(addWidth) && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(addWidth)),
519
+ Math.round(addWidth);
520
+ }
521
+ let w = 0;
522
+ for (let col = startCol; col <= endCol; col++) w += this.getColWidth(col);
523
+ return startCol >= 0 && endCol >= 0 && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(w)),
524
+ Math.round(w);
525
+ }
526
+ getRowHeight(row) {
527
+ var _a;
528
+ if (isValid(this.rowHeightsMap.get(row))) {
529
+ if (null === (_a = this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) {
530
+ const height = this.rowHeightsMap.get(row);
531
+ let heightRange;
532
+ return heightRange = row < this.frozenRowCount ? this.rowHeightsMap.getSumInRange(0, row) : row >= this.rowCount - this.bottomFrozenRowCount ? this.rowHeightsMap.getSumInRange(row, this.rowCount - 1) : this.rowHeightsMap.getSumInRange(this.frozenRowCount, row),
533
+ heightRange = Number(heightRange.toFixed(2)), Number.isInteger(heightRange) ? Math.ceil(height) : Math.floor(height);
534
+ }
535
+ return this.rowHeightsMap.get(row);
536
+ }
537
+ const defaultHeight = this.getDefaultRowHeight(row);
538
+ return isNumber(defaultHeight) ? defaultHeight : this.defaultRowHeight;
539
+ }
540
+ getDefaultColumnWidth(col) {
541
+ var _a, _b;
542
+ return this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_a = this.defaultHeaderColWidth[col]) && void 0 !== _a ? _a : this.defaultColWidth : this.defaultHeaderColWidth : this.isRightFrozenColumn(col, this.columnHeaderLevelCount) && this.isPivotTable() ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_b = this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount]) && void 0 !== _b ? _b : this.defaultColWidth : this.defaultHeaderColWidth : this.defaultColWidth;
543
+ }
544
+ getDefaultRowHeight(row) {
545
+ var _a, _b;
546
+ return this.isColumnHeader(0, row) || this.isCornerHeader(0, row) || this.isSeriesNumberInHeader(0, row) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_a = this.defaultHeaderRowHeight[row]) && void 0 !== _a ? _a : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.isBottomFrozenRow(row) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_b = this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0]) && void 0 !== _b ? _b : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.internalProps.defaultRowHeight;
547
+ }
548
+ _setRowHeight(row, height, clearCache) {
549
+ var _a;
550
+ this.rowHeightsMap.put(row, (null === (_a = this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? height : Math.round(height)),
551
+ clearCache && this._clearRowRangeHeightsMap(row);
552
+ }
553
+ setRowHeight(row, height) {
554
+ this.scenegraph.setRowHeight(row, height), this.scenegraph.updateChartSizeForResizeRowHeight(row),
555
+ this.internalProps._heightResizedRowMap.add(row);
556
+ }
557
+ getRowsHeight(startRow, endRow) {
558
+ var _a, _b;
559
+ if (startRow > endRow || 0 === this.rowCount) return 0;
560
+ startRow = Math.max(startRow, 0), endRow = Math.min(endRow, (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 1 / 0) - 1);
561
+ let h = 0;
562
+ const isDefaultRowHeightIsAuto = "auto" === this.options.defaultRowHeight;
563
+ if ("standard" !== this.heightMode || this.options.customComputeRowHeight || this.autoFillHeight || !this.internalProps.layoutMap || this.hasAutoImageColumn() || isDefaultRowHeightIsAuto || 0 !== this.internalProps._heightResizedRowMap.size) {
564
+ if (null === (_b = this.options.customConfig) || void 0 === _b ? void 0 : _b._disableColumnAndRowSizeRound) {
565
+ const tempH = this.rowHeightsMap.getSumInRange(startRow, endRow);
566
+ let heightRange;
567
+ return heightRange = endRow < this.frozenRowCount ? this.rowHeightsMap.getSumInRange(0, endRow) : endRow >= this.rowCount - this.bottomFrozenRowCount ? this.rowHeightsMap.getSumInRange(endRow, this.rowCount - 1) : this.rowHeightsMap.getSumInRange(this.frozenRowCount, endRow),
568
+ heightRange = Number(heightRange.toFixed(2)), Number.isInteger(heightRange) ? Math.ceil(tempH) : Math.floor(tempH);
569
+ }
570
+ h = this.rowHeightsMap.getSumInRange(startRow, endRow);
571
+ } else {
572
+ for (let i = startRow; i < Math.min(endRow + 1, this.columnHeaderLevelCount); i++) h += this.getRowHeight(i);
573
+ endRow >= this.columnHeaderLevelCount && (h += this.defaultRowHeight * (Math.min(endRow, this.rowCount - this.bottomFrozenRowCount - 1) - Math.max(this.columnHeaderLevelCount, startRow) + 1));
574
+ for (let i = this.rowCount - this.bottomFrozenRowCount; i < endRow + 1; i++) h += this.getRowHeight(i);
575
+ }
576
+ return Math.round(h);
577
+ }
578
+ getColWidthDefined(col) {
579
+ var _a;
580
+ const {layoutMap: layoutMap} = this.internalProps;
581
+ if ("autoWidth" === this.widthMode) return "auto";
582
+ const {width: width} = null !== (_a = null == layoutMap ? void 0 : layoutMap.getColumnWidthDefined(col)) && void 0 !== _a ? _a : {};
583
+ return "number" == typeof width && width <= 0 ? 0 : width || this.getDefaultColumnWidth(col);
584
+ }
585
+ getColWidthDefinedNumber(col) {
586
+ const width = this.getColWidthDefined(col);
587
+ return this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
588
+ }
589
+ isAutoRowHeight(row) {
590
+ return "autoHeight" === this.heightMode || (!!this.options.customComputeRowHeight || (row >= 0 && row < this.columnHeaderLevelCount ? "auto" === this.getDefaultRowHeight(row) : "auto" === this.internalProps.defaultRowHeight));
591
+ }
592
+ getColWidth(col) {
593
+ var _a;
594
+ const width = null !== (_a = this.colWidthsMap.get(col)) && void 0 !== _a ? _a : this.getDefaultColumnWidth(col);
595
+ return "adaptive" === this.widthMode && "number" == typeof width || this.transpose && "number" == typeof width ? this._colWidthDefineToPxWidth(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
596
+ }
597
+ _setColWidth(col, width, clearCache, skipCheckFrozen) {
598
+ this.colWidthsMap.put(col, "number" == typeof width ? Math.round(width) : width),
599
+ clearCache && this._clearColRangeWidthsMap(col), skipCheckFrozen || this.stateManager.checkFrozen();
600
+ }
601
+ setColWidth(col, width) {
602
+ this.scenegraph.setColWidth(col, width), this.scenegraph.updateChartSizeForResizeColWidth(col),
603
+ this.internalProps._widthResizedColMap.add(col);
604
+ }
605
+ _clearColRangeWidthsMap(col) {
606
+ if ("number" != typeof col) this._colRangeWidthsMap.clear(); else {
607
+ const keys = this._colRangeWidthsMap.keys();
608
+ for (const key of keys) {
609
+ const reg = rangeReg.exec(key);
610
+ if (reg) {
611
+ const start = Number(reg[1]), end = Number(reg[2]);
612
+ col >= start && col <= end && this._colRangeWidthsMap.delete(key);
613
+ }
614
+ }
615
+ }
616
+ }
617
+ _clearRowRangeHeightsMap(row) {
618
+ this.rowHeightsMap.clearRange();
619
+ }
620
+ _getColContentWidth(col) {
621
+ return Number(this.colContentWidthsMap.get(col));
622
+ }
623
+ _setColContentWidth(col, width) {
624
+ this.colContentWidthsMap.put(col, width);
625
+ }
626
+ getAllRowsHeight() {
627
+ if (this.internalProps.rowCount <= 0) return 0;
628
+ return this.getRowsHeight(0, this.internalProps.rowCount - 1);
629
+ }
630
+ getAllColsWidth() {
631
+ if (this.internalProps.colCount <= 0) return 0;
632
+ return this.getColsWidth(0, this.internalProps.colCount - 1);
633
+ }
634
+ getMaxColWidth(col) {
635
+ var _a;
636
+ const obj = this.colWidthsLimit[col];
637
+ let max = null !== (_a = obj && obj.max) && void 0 !== _a ? _a : 1 / 0;
638
+ return "string" == typeof max && (max = _toPxWidth(this, max)), max;
639
+ }
640
+ setMaxColWidth(col, maxwidth) {
641
+ (this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).max = maxwidth;
642
+ }
643
+ getMinColWidth(col) {
644
+ var _a;
645
+ const obj = this.colWidthsLimit[col];
646
+ let min = null !== (_a = obj && obj.min) && void 0 !== _a ? _a : 0;
647
+ return "string" == typeof min && (min = _toPxWidth(this, min)), min;
648
+ }
649
+ setMinColWidth(col, minwidth) {
650
+ (this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).min = minwidth;
651
+ }
652
+ getCellRect(col, row) {
653
+ var _a, _b;
654
+ const isFrozenCell = this.isFrozenCell(col, row);
655
+ let absoluteLeft;
656
+ const width = this.getColWidth(col);
657
+ let absoluteTop;
658
+ absoluteLeft = isFrozenCell && isFrozenCell.col && this.isRightFrozenColumn(col, row) ? this.getAllColsWidth() <= this.tableNoFrameWidth ? this.getColsWidth(0, col - 1) || 0 : this.tableNoFrameWidth - (null !== (_a = this.getColsWidth(col, this.colCount - 1)) && void 0 !== _a ? _a : 0) : this.getColsWidth(0, col - 1) || 0;
659
+ const height = this.getRowHeight(row);
660
+ return absoluteTop = isFrozenCell && isFrozenCell.row && this.isBottomFrozenRow(col, row) ? this.getAllRowsHeight() <= this.tableNoFrameHeight ? this.getRowsHeight(0, row - 1) : this.tableNoFrameHeight - (null !== (_b = this.getRowsHeight(row, this.rowCount - 1)) && void 0 !== _b ? _b : 0) : this.getRowsHeight(0, row - 1),
661
+ new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
662
+ }
663
+ getMergeCellRect(col, row) {
664
+ const cellRange = this.getCellRange(col, row), absoluteLeft = this.getColsWidth(0, cellRange.start.col - 1) || 0, width = this.getColsWidth(cellRange.start.col, cellRange.end.col), absoluteTop = this.getRowsHeight(0, cellRange.start.row - 1) || 0, height = this.getRowsHeight(cellRange.start.row, cellRange.end.row);
665
+ return new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
666
+ }
667
+ getCellRelativeRect(col, row) {
668
+ const isFrozenCell = this.isFrozenCell(col, row);
669
+ let relativeX = !0, relativeY = !0;
670
+ (null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
671
+ relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1);
672
+ const cellRect = this.getCellRect(col, row);
673
+ return this._toRelativeRect(cellRect, relativeX, relativeY);
674
+ }
675
+ getCellRangeRelativeRect(range) {
676
+ if (range.start) {
677
+ const isFrozenCell = this.isFrozenCell(range.start.col, range.start.row);
678
+ let relativeX = !0, relativeY = !0;
679
+ return (null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
680
+ relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1),
681
+ this._toRelativeRect(this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row), relativeX, relativeY);
682
+ }
683
+ const cellRange = this.getCellRange(range.col, range.row), isFrozenCell = this.isFrozenCell(range.col, range.row);
684
+ let relativeX = !0, relativeY = !0;
685
+ return (null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
686
+ relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1),
687
+ this._toRelativeRect(this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row), relativeX, relativeY);
688
+ }
689
+ getVisibleCellRangeRelativeRect(range) {
690
+ let cellRange;
691
+ return cellRange = range.start ? range : this.getCellRange(range.col, range.row),
692
+ this._getVisiableRect(this.getCellRangeRelativeRect(range), cellRange);
693
+ }
694
+ _getVisiableRect(relativeRectObj, cellRange) {
695
+ const targetLeft = cellRange.start.col >= this.frozenColCount ? Math.max(relativeRectObj.left, this.frozenColCount >= 1 ? this.getColsWidth(0, this.frozenColCount - 1) : 0) : relativeRectObj.left, targetRight = Math.min(relativeRectObj.right, this.tableNoFrameWidth), rect = relativeRectObj.copy();
696
+ rect.left = targetLeft, rect.right = targetRight;
697
+ const targetTop = cellRange.start.row >= this.frozenRowCount ? Math.max(relativeRectObj.top, this.frozenRowCount >= 1 ? this.getRowsHeight(0, this.frozenRowCount - 1) : 0) : relativeRectObj.top, targetBottom = Math.min(relativeRectObj.bottom, this.tableNoFrameHeight);
698
+ return rect.top = targetTop, rect.bottom = targetBottom, rect;
699
+ }
700
+ getCellsRect(startCol, startRow, endCol, endRow) {
701
+ var _a, _b, _c, _d, _e, _f;
702
+ let absoluteLeft = this.getColsWidth(0, startCol - 1) || 0, width = this.getColsWidth(startCol, endCol);
703
+ const scrollLeft = this.scrollLeft;
704
+ this.isLeftFrozenColumn(startCol) && this.isRightFrozenColumn(endCol) ? width = this.tableNoFrameWidth - (null !== (_a = this.getColsWidth(startCol + 1, this.colCount - 1)) && void 0 !== _a ? _a : 0) - absoluteLeft : this.isLeftFrozenColumn(startCol) && !this.isLeftFrozenColumn(endCol) ? width = Math.max(width - scrollLeft, this.getColsWidth(startCol, this.frozenColCount - 1)) : !this.isRightFrozenColumn(startCol) && this.isRightFrozenColumn(endCol) ? (absoluteLeft = Math.min(absoluteLeft - scrollLeft, this.tableNoFrameWidth - this.getRightFrozenColsWidth()),
705
+ width = this.tableNoFrameWidth - (null !== (_b = this.getColsWidth(startCol + 1, this.colCount - 1)) && void 0 !== _b ? _b : 0) - absoluteLeft) : this.isRightFrozenColumn(startCol) && (absoluteLeft = this.tableNoFrameWidth - (null !== (_c = this.getColsWidth(startCol, this.colCount - 1)) && void 0 !== _c ? _c : 0));
706
+ let absoluteTop = this.getRowsHeight(0, startRow - 1), height = this.getRowsHeight(startRow, endRow);
707
+ const scrollTop = this.scrollTop;
708
+ return this.isTopFrozenRow(startRow) && this.isBottomFrozenRow(endRow) ? height = this.tableNoFrameHeight - (null !== (_d = this.getRowsHeight(startRow + 1, this.rowCount - 1)) && void 0 !== _d ? _d : 0) - absoluteTop : this.isTopFrozenRow(startRow) && !this.isTopFrozenRow(endRow) ? height = Math.max(height - scrollTop, this.getRowsHeight(startRow, this.frozenRowCount - 1)) : !this.isBottomFrozenRow(startRow) && this.isBottomFrozenRow(endRow) ? (absoluteTop = Math.min(absoluteTop - scrollTop, this.tableNoFrameHeight - this.getBottomFrozenRowsHeight()),
709
+ height = this.tableNoFrameHeight - (null !== (_e = this.getRowsHeight(startRow + 1, this.rowCount - 1)) && void 0 !== _e ? _e : 0) - absoluteTop) : this.isBottomFrozenRow(startRow) && (absoluteTop = this.tableNoFrameHeight - (null !== (_f = this.getRowsHeight(startRow, this.rowCount - 1)) && void 0 !== _f ? _f : 0)),
710
+ new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
711
+ }
712
+ getCellsRectWidth(startCol, startRow, endCol, endRow) {
713
+ const isFrozenStartCell = this.isFrozenCell(startCol, startRow), isFrozenEndCell = this.isFrozenCell(endCol, endRow);
714
+ let width = this.getColsWidth(startCol, endCol);
715
+ if (isFrozenStartCell && isFrozenStartCell.col) {
716
+ const scrollLeft = this.scrollLeft;
717
+ isFrozenEndCell && isFrozenEndCell.col || (width -= scrollLeft, width = Math.max(width, this.getColsWidth(startCol, this.frozenColCount - 1)));
718
+ }
719
+ return width;
720
+ }
721
+ getCellRangeRect(range) {
722
+ if (range.start) return this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row);
723
+ const cellRange = this.getCellRange(range.col, range.row);
724
+ return this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
725
+ }
726
+ getCellRangeRectWidth(range) {
727
+ if (range.start) return this.getCellsRectWidth(range.start.col, range.start.row, range.end.col, range.end.row);
728
+ const cellRange = this.getCellRange(range.col, range.row);
729
+ return this.getCellsRectWidth(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
730
+ }
731
+ isFrozenCell(col, row) {
732
+ const isFrozenRow = this.isFrozenRow(row), isFrozenCol = this.isFrozenColumn(col);
733
+ return isFrozenRow || isFrozenCol ? {
734
+ row: isFrozenRow,
735
+ col: isFrozenCol
736
+ } : null;
737
+ }
738
+ getRowAt(absoluteY) {
739
+ return getRowAt(absoluteY, this);
740
+ }
741
+ getColAt(absoluteX) {
742
+ return getColAt(absoluteX, this);
743
+ }
744
+ getCellAt(absoluteX, absoluteY) {
745
+ return getCellAt(absoluteX, absoluteY, this);
746
+ }
747
+ getCellAtRelativePosition(relativeX, relativeY) {
748
+ return getCellAtRelativePosition(relativeX, relativeY, this);
749
+ }
750
+ _checkRowCol(col, row) {
751
+ return col >= 0 && col < this.colCount && row >= 0 && row < this.rowCount;
752
+ }
753
+ _makeVisibleCell(col, row) {
754
+ if (this._checkRowCol(col, row)) {
755
+ const isFrozenCell = this.isFrozenCell(col, row);
756
+ if (isFrozenCell && isFrozenCell.col && isFrozenCell.row) return;
757
+ const rect = this.getCellRect(col, row), visibleRect = _getScrollableVisibleRect(this);
758
+ if (visibleRect.contains(rect)) return;
759
+ isFrozenCell && isFrozenCell.col || this.getColsWidth(0, this.frozenColCount - 1) + rect.width > this.canvas.width || (rect.left < visibleRect.left ? this.scrollLeft -= visibleRect.left - rect.left : visibleRect.right < rect.right && (this.scrollLeft -= visibleRect.right - rect.right)),
760
+ isFrozenCell && isFrozenCell.row || this.getRowsHeight(0, this.frozenRowCount - 1) + rect.height > this.canvas.height || (rect.top < visibleRect.top ? this.scrollTop -= visibleRect.top - rect.top : visibleRect.bottom < rect.bottom && (this.scrollTop -= visibleRect.bottom - rect.bottom));
761
+ }
762
+ }
763
+ render() {
764
+ this.scenegraph.renderSceneGraph();
765
+ }
766
+ renderAsync() {
767
+ return this.scenegraph.updateNextFrame(), new Promise(((resolve, reject) => {
768
+ setTimeout((() => {
769
+ resolve();
770
+ }), 0);
771
+ }));
772
+ }
773
+ _toRelativeRect(absoluteRect, relativeX = !0, relativeY = !0) {
774
+ var _a, _b, _c, _d;
775
+ const rect = absoluteRect.copy(), visibleRect = this.getVisibleRect();
776
+ return rect.offsetLeft(this.tableX - (relativeX ? visibleRect.left : 0)), rect.offsetTop(this.tableY - (relativeY ? visibleRect.top : 0)),
777
+ rect.offsetLeft(null !== (_b = null === (_a = this.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0),
778
+ rect.offsetTop(null !== (_d = null === (_c = this.options.viewBox) || void 0 === _c ? void 0 : _c.y1) && void 0 !== _d ? _d : 0),
779
+ rect;
780
+ }
781
+ getVisibleRect() {
782
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, width = this.tableNoFrameWidth, height = this.tableNoFrameHeight;
783
+ return new Rect(scrollLeft, scrollTop, width, height);
784
+ }
785
+ get visibleRowCount() {
786
+ const {frozenRowCount: frozenRowCount} = this, visibleRect = this.getVisibleRect(), visibleTop = frozenRowCount > 0 ? visibleRect.top + this.getRowsHeight(0, frozenRowCount - 1) : visibleRect.top, initRow = this.getTargetRowAt(visibleTop);
787
+ if (!initRow) return 0;
788
+ const startRow = Math.max(initRow.top >= visibleTop ? initRow.row : initRow.row + 1, frozenRowCount);
789
+ let absoluteTop = this.getRowsHeight(0, startRow - 1), count = 0;
790
+ const {rowCount: rowCount} = this;
791
+ for (let row = startRow; row < rowCount; row++) {
792
+ const bottom = absoluteTop + this.getRowHeight(row);
793
+ if (visibleRect.bottom < bottom) break;
794
+ count++, absoluteTop = bottom;
795
+ }
796
+ return count;
797
+ }
798
+ getBodyVisibleCellRange() {
799
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenRowsHeight = this.getFrozenRowsHeight(), frozenColsWidth = this.getFrozenColsWidth(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), {col: colStart} = this.getColAt(scrollLeft + frozenColsWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
800
+ return colEnd < 0 || rowEnd < 0 ? null : {
801
+ rowStart: rowStart,
802
+ colStart: colStart,
803
+ rowEnd: rowEnd,
804
+ colEnd: colEnd
805
+ };
806
+ }
807
+ getBodyVisibleRowRange() {
808
+ const {scrollTop: scrollTop} = this, frozenRowsHeight = this.getFrozenRowsHeight(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1;
809
+ return rowEnd < 0 ? null : {
810
+ rowStart: rowStart,
811
+ rowEnd: rowEnd
812
+ };
813
+ }
814
+ getBodyVisibleColRange() {
815
+ const {scrollLeft: scrollLeft} = this, frozenColsWidth = this.getFrozenColsWidth(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {col: colStart} = this.getColAt(scrollLeft + frozenColsWidth + 1), colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
816
+ return colEnd < 0 ? null : {
817
+ colStart: colStart,
818
+ colEnd: colEnd
819
+ };
820
+ }
821
+ get visibleColCount() {
822
+ const {frozenColCount: frozenColCount} = this, visibleRect = this.getVisibleRect(), visibleLeft = frozenColCount > 0 ? visibleRect.left + this.getColsWidth(0, frozenColCount - 1) : visibleRect.left, initCol = this.getTargetColAt(visibleLeft);
823
+ if (!initCol) return 0;
824
+ const startCol = Math.max(initCol.left >= visibleLeft ? initCol.col : initCol.col + 1, frozenColCount);
825
+ let absoluteLeft = this.getColsWidth(0, startCol - 1), count = 0;
826
+ const {colCount: colCount} = this;
827
+ for (let col = startCol; col < colCount; col++) {
828
+ const right = absoluteLeft + this.getColWidth(col);
829
+ if (visibleRect.right < right) break;
830
+ count++, absoluteLeft = right;
831
+ }
832
+ return count;
833
+ }
834
+ get scrollTop() {
835
+ return this.stateManager.scroll.verticalBarPos;
836
+ }
837
+ set scrollTop(scrollTop) {
838
+ this.stateManager.setScrollTop(scrollTop);
839
+ }
840
+ get scrollLeft() {
841
+ return this.stateManager.scroll.horizontalBarPos;
842
+ }
843
+ set scrollLeft(scrollLeft) {
844
+ this.stateManager.setScrollLeft(scrollLeft);
845
+ }
846
+ getScrollLeft() {
847
+ return this.scrollLeft;
848
+ }
849
+ getScrollTop() {
850
+ return this.scrollTop;
851
+ }
852
+ setScrollLeft(num) {
853
+ this.scrollLeft = Math.ceil(num);
854
+ }
855
+ setScrollTop(num) {
856
+ this.scrollTop = Math.ceil(num);
857
+ }
858
+ getCellOverflowText(col, row) {
859
+ return this.scenegraph.getCellOverflowText(col, row);
860
+ }
861
+ addReleaseObj(releaseObj) {
862
+ if (!releaseObj || !releaseObj.release || "function" != typeof releaseObj.release) throw new Error("not releaseObj!");
863
+ (this.internalProps.releaseList = this.internalProps.releaseList || []).push(releaseObj);
864
+ }
865
+ dispose() {
866
+ this.release();
867
+ }
868
+ release() {
869
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
870
+ const internalProps = this.internalProps;
871
+ if (this.isReleased) return;
872
+ null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.release) || void 0 === _b || _b.call(_a),
873
+ null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.release) || void 0 === _d || _d.call(_c),
874
+ IconCache.clearAll(), null === (_e = super.release) || void 0 === _e || _e.call(this),
875
+ null === (_g = null === (_f = internalProps.handler) || void 0 === _f ? void 0 : _f.release) || void 0 === _g || _g.call(_f),
876
+ this.eventManager.release(), null === (_j = null === (_h = internalProps.focusControl) || void 0 === _h ? void 0 : _h.release) || void 0 === _j || _j.call(_h),
877
+ null === (_k = internalProps.legends) || void 0 === _k || _k.forEach((legend => {
878
+ null == legend || legend.release();
879
+ })), null === (_l = internalProps.title) || void 0 === _l || _l.release(), internalProps.title = null,
880
+ null === (_m = internalProps.emptyTip) || void 0 === _m || _m.release(), internalProps.emptyTip = null,
881
+ internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
882
+ var _a;
883
+ return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
884
+ })), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release(),
885
+ internalProps.focusControl.release();
886
+ const {parentElement: parentElement} = internalProps.element;
887
+ parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
888
+ null === (_q = null === (_p = null === (_o = this.editorManager) || void 0 === _o ? void 0 : _o.editingEditor) || void 0 === _p ? void 0 : _p.onEnd) || void 0 === _q || _q.call(_p),
889
+ this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache(),
890
+ clearChartRenderQueue();
891
+ }
892
+ fireListeners(type, event) {
893
+ return super.fireListeners(type, event);
894
+ }
895
+ updateOption(options) {
896
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
897
+ this.options = options, this._hasAutoImageColumn = void 0;
898
+ const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth = 80, keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, pixelRatio: pixelRatio, widthMode: widthMode, heightMode: heightMode, autoFillWidth: autoFillWidth, autoFillHeight: autoFillHeight, widthAdaptiveMode: widthAdaptiveMode, heightAdaptiveMode: heightAdaptiveMode, customRender: customRender, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight} = options;
899
+ pixelRatio && pixelRatio !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = pixelRatio),
900
+ padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
901
+ this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
902
+ padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
903
+ padding.right && (this.padding.right = padding.right))), this.showFrozenIcon = "boolean" != typeof showFrozenIcon || showFrozenIcon,
904
+ "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
905
+ this.widthMode = null != widthMode ? widthMode : "standard", this.heightMode = null != heightMode ? heightMode : "standard",
906
+ this._widthAdaptiveMode = null != widthAdaptiveMode ? widthAdaptiveMode : "only-body",
907
+ this._heightAdaptiveMode = null != heightAdaptiveMode ? heightAdaptiveMode : "only-body",
908
+ this.autoFillWidth = null != autoFillWidth && autoFillWidth, this.autoFillHeight = null != autoFillHeight && autoFillHeight,
909
+ this.customRender = customRender, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
910
+ this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0;
911
+ const internalProps = this.internalProps;
912
+ if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding),
913
+ this.columnWidthComputeMode = null !== (_a = options.columnWidthComputeMode) && void 0 !== _a ? _a : "normal",
914
+ internalProps.frozenColCount = frozenColCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth,
915
+ internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
916
+ internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
917
+ internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions,
918
+ internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.columnResizeMode = null !== (_b = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _b ? _b : columnResizeMode,
919
+ internalProps.rowResizeMode = null !== (_c = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _c ? _c : rowResizeMode,
920
+ internalProps.dragHeaderMode = null !== (_e = null !== (_d = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _d ? _d : dragHeaderMode) && void 0 !== _e ? _e : "none",
921
+ internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount),
922
+ internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto",
923
+ internalProps.cellTextOverflows = {}, internalProps._rowHeightsMap = new NumberRangeMap(this),
924
+ internalProps._rowRangeHeightsMap = new Map, internalProps._colRangeWidthsMap = new Map,
925
+ internalProps._widthResizedColMap = new Set, internalProps._heightResizedRowMap = new Set,
926
+ this.colWidthsMap = new NumberMap, this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {},
927
+ internalProps.stick.changedCells.clear(), internalProps.theme = themes.of(null !== (_f = options.theme) && void 0 !== _f ? _f : themes.DEFAULT),
928
+ internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle),
929
+ this.scenegraph.updateStageBackground(), internalProps.autoWrapText = options.autoWrapText,
930
+ internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_g = options.allowFrozenColCount) && void 0 !== _g ? _g : 0,
931
+ internalProps.limitMaxAutoWidth = null !== (_h = options.limitMaxAutoWidth) && void 0 !== _h ? _h : 450,
932
+ internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10,
933
+ internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10,
934
+ null === (_j = internalProps.legends) || void 0 === _j || _j.forEach((legend => {
935
+ null == legend || legend.release();
936
+ })), null === (_k = internalProps.title) || void 0 === _k || _k.release(), internalProps.title = null,
937
+ null === (_l = internalProps.emptyTip) || void 0 === _l || _l.release(), internalProps.emptyTip = null,
938
+ internalProps.layoutMap.release(), clearChartRenderQueue(), this.scenegraph.clearCells(),
939
+ this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(),
940
+ this.eventManager.updateEventBinder(), options.legends) {
941
+ internalProps.legends = [];
942
+ const createLegend = Factory.getFunction("createLegend");
943
+ if (Array.isArray(options.legends)) {
944
+ for (let i = 0; i < options.legends.length; i++) internalProps.legends.push(createLegend(options.legends[i], this));
945
+ this.scenegraph.tableGroup.setAttributes({
946
+ x: this.tableX,
947
+ y: this.tableY
948
+ });
949
+ } else internalProps.legends.push(createLegend(options.legends, this)), this.scenegraph.tableGroup.setAttributes({
950
+ x: this.tableX,
951
+ y: this.tableY
952
+ });
953
+ }
954
+ if (internalProps.tooltip = Object.assign({
955
+ parentElement: this.getElement(),
956
+ renderMode: "html",
957
+ isShowOverflowTextTooltip: !1,
958
+ confine: !0,
959
+ position: Placement.bottom
960
+ }, options.tooltip), "html" === internalProps.tooltip.renderMode && !internalProps.tooltipHandler) {
961
+ const TooltipHandler = Factory.getComponent("tooltipHandler");
962
+ internalProps.tooltipHandler = new TooltipHandler(this, internalProps.tooltip.confine);
963
+ }
964
+ if (internalProps.menu = Object.assign({
965
+ renderMode: "html"
966
+ }, options.menu), Array.isArray(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.dropDownMenuHighlight),
967
+ (Array.isArray(null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems) || "function" == typeof (null === (_q = options.menu) || void 0 === _q ? void 0 : _q.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems),
968
+ "html" === internalProps.menu.renderMode && !internalProps.menuHandler) {
969
+ const MenuHandler = Factory.getComponent("menuHandler");
970
+ internalProps.menuHandler = new MenuHandler(this);
971
+ }
972
+ this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(),
973
+ internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell),
974
+ null === (_r = this.customCellStylePlugin) || void 0 === _r || _r.updateCustomCell(null !== (_s = options.customCellStyle) && void 0 !== _s ? _s : [], null !== (_t = options.customCellStyleArrangement) && void 0 !== _t ? _t : []),
975
+ this._adjustCanvasSizeByOption();
976
+ }
977
+ renderWithRecreateCells() {
978
+ this.internalProps.stick.changedCells.clear();
979
+ const oldHoverState = {
980
+ col: this.stateManager.hover.cellPos.col,
981
+ row: this.stateManager.hover.cellPos.row
982
+ };
983
+ this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(),
984
+ this.clearCellStyleCache(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row),
985
+ this.render();
986
+ }
987
+ getFrozenRowsHeight() {
988
+ return this.getRowsHeight(0, this.frozenRowCount - 1);
989
+ }
990
+ getFrozenColsWidth() {
991
+ return this.getColsWidth(0, this.frozenColCount - 1);
992
+ }
993
+ getBottomFrozenRowsHeight() {
994
+ if (this.bottomFrozenRowCount > 0) {
995
+ let height = 0;
996
+ for (let row = this.rowCount - this.bottomFrozenRowCount; row <= this.rowCount - 1; row++) height += this.getRowHeight(row);
997
+ return height;
998
+ }
999
+ return 0;
1000
+ }
1001
+ getRightFrozenColsWidth() {
1002
+ if (this.rightFrozenColCount > 0) {
1003
+ let width = 0;
1004
+ for (let col = this.colCount - this.rightFrozenColCount; col <= this.colCount - 1; col++) width += this.getColWidth(col);
1005
+ return width;
1006
+ }
1007
+ return 0;
1008
+ }
1009
+ getDrawRange() {
1010
+ const width = Math.min(this.tableNoFrameWidth, this.getAllColsWidth()), height = Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
1011
+ return new Rect(this.tableX, this.tableY, width, height);
1012
+ }
1013
+ _getMouseAbstractPoint(evt, isAddScroll = !0) {
1014
+ var _a, _b, _c, _d;
1015
+ let e;
1016
+ if (!evt) return {
1017
+ inTable: !1,
1018
+ x: void 0,
1019
+ y: void 0
1020
+ };
1021
+ e = isTouchEvent(evt) ? evt.changedTouches[0] : evt;
1022
+ const clientX = e.clientX || e.pageX + window.scrollX, clientY = e.clientY || e.pageY + window.scrollY, rect = this.internalProps.canvas.getBoundingClientRect();
1023
+ let inTable = !0;
1024
+ rect.right <= clientX && (inTable = !1), rect.bottom <= clientY && (inTable = !1);
1025
+ const currentWidth = rect.width, widthRatio = currentWidth / (this.canvas.offsetWidth || currentWidth), currentHeight = rect.height, heightRatio = currentHeight / (this.canvas.offsetHeight || currentHeight), point = {
1026
+ x: (clientX - rect.left) / widthRatio + (isAddScroll ? this.scrollLeft : 0) - (null !== (_b = null === (_a = this.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0),
1027
+ y: (clientY - rect.top) / heightRatio + (isAddScroll ? this.scrollTop : 0) - (null !== (_d = null === (_c = this.options.viewBox) || void 0 === _c ? void 0 : _c.y1) && void 0 !== _d ? _d : 0),
1028
+ inTable: inTable
1029
+ };
1030
+ if (this.internalProps.modifiedViewBoxTransform && this.scenegraph.stage.window.getViewBoxTransform()) {
1031
+ this.scenegraph.stage.window.getViewBoxTransform().transformPoint(point, point);
1032
+ }
1033
+ return point;
1034
+ }
1035
+ getTheme() {
1036
+ return this.internalProps.theme;
1037
+ }
1038
+ getTargetColAt(absoluteX) {
1039
+ return getTargetColAt(absoluteX, this);
1040
+ }
1041
+ getTargetRowAt(absoluteY) {
1042
+ const targetRow = getTargetRowAt(absoluteY, this);
1043
+ return targetRow && (targetRow.row = Math.min(targetRow.row, this.rowCount - 1)),
1044
+ targetRow;
1045
+ }
1046
+ getTargetColAtConsiderRightFrozen(absoluteX, isConsider) {
1047
+ return getTargetColAtConsiderRightFrozen(absoluteX, isConsider, this);
1048
+ }
1049
+ getTargetRowAtConsiderBottomFrozen(absoluteY, isConsider) {
1050
+ return getTargetRowAtConsiderBottomFrozen(absoluteY, isConsider, this);
1051
+ }
1052
+ clearSelected() {
1053
+ this.stateManager.updateSelectPos(-1, -1);
1054
+ }
1055
+ selectCell(col, row, isShift, isCtrl, makeSelectCellVisible, skipBodyMerge = !1) {
1056
+ var _a, _b, _c;
1057
+ const isHasSelected = !!(null === (_a = this.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
1058
+ this.stateManager.updateSelectPos(col, row, isShift, isCtrl, !1, null === (_c = null != makeSelectCellVisible ? makeSelectCellVisible : null === (_b = this.options.select) || void 0 === _b ? void 0 : _b.makeSelectCellVisible) || void 0 === _c || _c, skipBodyMerge),
1059
+ this.stateManager.endSelectCells(!0, isHasSelected);
1060
+ }
1061
+ selectCells(cellRanges) {
1062
+ const {scrollLeft: scrollLeft, scrollTop: scrollTop} = this;
1063
+ cellRanges.forEach(((cellRange, index) => {
1064
+ var _a, _b, _c, _d, _e, _f;
1065
+ cellRange.start.col === cellRange.end.col && cellRange.start.row === cellRange.end.row ? this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0) : (this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0),
1066
+ this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(cellRange.end.col, cellRange.end.row, !1, index >= 1, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0)),
1067
+ this.stateManager.endSelectCells(!1, !1), this.stateManager.updateInteractionState(InteractionState.default);
1068
+ })), this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft);
1069
+ }
1070
+ get recordsCount() {
1071
+ var _a;
1072
+ return null === (_a = this.records) || void 0 === _a ? void 0 : _a.length;
1073
+ }
1074
+ get allowFrozenColCount() {
1075
+ return this.internalProps.allowFrozenColCount;
1076
+ }
1077
+ get rowHeaderLevelCount() {
1078
+ return this.internalProps.layoutMap.rowHeaderLevelCount;
1079
+ }
1080
+ get columnHeaderLevelCount() {
1081
+ return this.internalProps.layoutMap.columnHeaderLevelCount;
1082
+ }
1083
+ get records() {
1084
+ return this.internalProps.records;
1085
+ }
1086
+ get dataSource() {
1087
+ return this.internalProps.dataSource;
1088
+ }
1089
+ set dataSource(dataSource) {
1090
+ this.scenegraph.clearCells(), _setDataSource(this, dataSource), this.refreshRowColCount(),
1091
+ this.scenegraph.createSceneGraph(), this.render();
1092
+ }
1093
+ get autoWrapText() {
1094
+ return this.internalProps.autoWrapText;
1095
+ }
1096
+ set autoWrapText(autoWrapText) {
1097
+ this.internalProps.autoWrapText = autoWrapText, this.options.autoWrapText = autoWrapText;
1098
+ }
1099
+ get enableLineBreak() {
1100
+ return this.internalProps.enableLineBreak;
1101
+ }
1102
+ set enableLineBreak(enableLineBreak) {
1103
+ this.internalProps.enableLineBreak = enableLineBreak, this.options.enableLineBreak = enableLineBreak;
1104
+ }
1105
+ updateAutoWrapText(autoWrapText) {
1106
+ this.internalProps.autoWrapText !== autoWrapText && (this.internalProps.autoWrapText = autoWrapText,
1107
+ this.options.autoWrapText = autoWrapText, this.scenegraph.clearCells(), this.clearCellStyleCache(),
1108
+ this.scenegraph.createSceneGraph(), this.render());
1109
+ }
1110
+ get theme() {
1111
+ return this.internalProps.theme;
1112
+ }
1113
+ set theme(theme) {
1114
+ this.internalProps.theme = themes.of(null != theme ? theme : themes.DEFAULT), this.internalProps.theme.isPivot = this.isPivotTable(),
1115
+ this.options.theme = theme, setIconColor(this.internalProps.theme.functionalIconsStyle);
1116
+ }
1117
+ updateTheme(theme) {
1118
+ const oldHoverState = {
1119
+ col: this.stateManager.hover.cellPos.col,
1120
+ row: this.stateManager.hover.cellPos.row
1121
+ };
1122
+ this.internalProps.theme = themes.of(null != theme ? theme : themes.DEFAULT), this.internalProps.theme.isPivot = this.isPivotTable(),
1123
+ setIconColor(this.internalProps.theme.functionalIconsStyle), this.options.theme = theme,
1124
+ this.scenegraph.updateComponent(), this.scenegraph.updateStageBackground(), this.scenegraph.clearCells(),
1125
+ this.clearCellStyleCache(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row),
1126
+ this.render();
1127
+ }
1128
+ getBodyField(col, row) {
1129
+ return this.internalProps.layoutMap.getBody(col, row).field;
1130
+ }
1131
+ getBodyColumnDefine(col, row) {
1132
+ const body = this.internalProps.layoutMap.getBody(col, row);
1133
+ return null == body ? void 0 : body.define;
1134
+ }
1135
+ getBodyColumnType(col, row) {
1136
+ var _a, _b;
1137
+ const cellType = null !== (_b = null === (_a = this.internalProps.layoutMap.getBody(col, row)) || void 0 === _a ? void 0 : _a.cellType) && void 0 !== _b ? _b : "text";
1138
+ return getProp("cellType", {
1139
+ cellType: cellType
1140
+ }, col, row, this);
1141
+ }
1142
+ getCellType(col, row) {
1143
+ let cellType;
1144
+ return this.isSeriesNumberInHeader(col, row) ? this.internalProps.layoutMap.getSeriesNumberHeader(col, row).cellType : (cellType = this.isHeader(col, row) ? this.internalProps.layoutMap.getHeader(col, row).headerType : this.internalProps.layoutMap.getBody(col, row).cellType,
1145
+ getProp("cellType", {
1146
+ cellType: cellType
1147
+ }, col, row, this));
1148
+ }
1149
+ getHeaderField(col, row) {
1150
+ return this.internalProps.layoutMap.getHeaderField(col, row);
1151
+ }
1152
+ getHeaderDefine(col, row) {
1153
+ const hd = this.internalProps.layoutMap.getHeader(col, row);
1154
+ return null == hd ? void 0 : hd.define;
1155
+ }
1156
+ getCellLocation(col, row) {
1157
+ return this.internalProps.layoutMap.getCellLocation(col, row);
1158
+ }
1159
+ getCellHeaderPaths(col, row) {
1160
+ return this.internalProps.layoutMap.getCellHeaderPaths(col, row);
1161
+ }
1162
+ getHeadersDefine(col, row) {
1163
+ const headers = [];
1164
+ for (;;) {
1165
+ const header = this.getHeaderDefine(col, row);
1166
+ if (!header || !header.field && !header.columns) break;
1167
+ headers.push(header), row++;
1168
+ }
1169
+ return headers;
1170
+ }
1171
+ _getHeaderLayoutMap(col, row) {
1172
+ return this.internalProps.layoutMap.getHeader(col, row);
1173
+ }
1174
+ _getBodyLayoutMap(col, row) {
1175
+ return this.internalProps.layoutMap.getBody(col, row);
1176
+ }
1177
+ getContext() {
1178
+ return this.internalProps.context;
1179
+ }
1180
+ getRecordByCell(col, row) {
1181
+ if (!this.internalProps.layoutMap.isHeader(col, row)) return this.getCellOriginRecord(col, row);
1182
+ }
1183
+ getRecordByRowCol(col, row) {
1184
+ return this.getRecordByCell(col, row);
1185
+ }
1186
+ getRecordStartRowByRecordIndex(index) {
1187
+ return this.internalProps.layoutMap.getRecordStartRowByRecordIndex(index);
1188
+ }
1189
+ _getHeaderCellBySortState(sortState) {
1190
+ const {layoutMap: layoutMap} = this.internalProps, hd = layoutMap.headerObjects.find((col => col && col.field === sortState.field));
1191
+ if (hd) {
1192
+ return layoutMap.getHeaderCellAdressById(hd.id);
1193
+ }
1194
+ }
1195
+ getCellRange(col, row) {
1196
+ var _a;
1197
+ if (this.internalProps.customMergeCell) {
1198
+ const customMerge = this.internalProps.customMergeCell(col, row, this);
1199
+ if (customMerge && customMerge.range && (isValid(customMerge.text) || customMerge.customLayout || customMerge.customRender)) {
1200
+ return {
1201
+ start: {
1202
+ col: Math.max(customMerge.range.start.col, 0),
1203
+ row: Math.max(customMerge.range.start.row, 0)
1204
+ },
1205
+ end: {
1206
+ col: Math.min(customMerge.range.end.col, this.colCount - 1),
1207
+ row: Math.min(customMerge.range.end.row, this.rowCount - 1)
1208
+ },
1209
+ isCustom: !0
1210
+ };
1211
+ }
1212
+ }
1213
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.getCellRange(col, row);
1214
+ }
1215
+ hasCustomMerge() {
1216
+ return !!this.internalProps.customMergeCell;
1217
+ }
1218
+ getCustomMerge(col, row) {
1219
+ if (this.internalProps.customMergeCell) {
1220
+ const customMerge = this.internalProps.customMergeCell(col, row, this);
1221
+ if (customMerge && customMerge.range && (isValid(customMerge.text) || customMerge.customLayout || this.customRender)) {
1222
+ if (customMerge.style) {
1223
+ const styleClass = this.internalProps.bodyHelper.getStyleClass("text"), style = customMerge.style, fullStyle = columnStyleContents.of(style, this.theme.bodyStyle, {
1224
+ col: col,
1225
+ row: row,
1226
+ table: this,
1227
+ value: customMerge.text,
1228
+ dataValue: this.getCellOriginValue(col, row),
1229
+ cellHeaderPaths: this.getCellHeaderPaths(col, row)
1230
+ }, styleClass, this.options.autoWrapText, this.theme);
1231
+ customMerge.style = fullStyle;
1232
+ }
1233
+ return customMerge.range = {
1234
+ start: {
1235
+ col: Math.max(customMerge.range.start.col, 0),
1236
+ row: Math.max(customMerge.range.start.row, 0)
1237
+ },
1238
+ end: {
1239
+ col: Math.min(customMerge.range.end.col, this.colCount - 1),
1240
+ row: Math.min(customMerge.range.end.row, this.rowCount - 1)
1241
+ },
1242
+ isCustom: !0
1243
+ }, customMerge;
1244
+ }
1245
+ }
1246
+ }
1247
+ isCellRangeEqual(col, row, targetCol, targetRow) {
1248
+ return this.internalProps.layoutMap.isCellRangeEqual(col, row, targetCol, targetRow);
1249
+ }
1250
+ _getLayoutCellId(col, row) {
1251
+ return this.internalProps.layoutMap.getCellId(col, row);
1252
+ }
1253
+ getHeaderDescription(col, row) {
1254
+ var _a;
1255
+ const field = this._getHeaderLayoutMap(col, row), fieldDef = null == field ? void 0 : field.define, description = null !== (_a = null == fieldDef ? void 0 : fieldDef.description) && void 0 !== _a ? _a : null == field ? void 0 : field.description;
1256
+ if ("function" == typeof description) {
1257
+ return description({
1258
+ col: col,
1259
+ row: row,
1260
+ value: this.getCellValue(col, row),
1261
+ dataValue: this.getCellOriginValue(col, row)
1262
+ });
1263
+ }
1264
+ return description;
1265
+ }
1266
+ setDropDownMenuHighlight(cells) {
1267
+ this.stateManager.setDropDownMenuHighlight(cells);
1268
+ }
1269
+ _dropDownMenuIsHighlight(colNow, rowNow, index) {
1270
+ return this.stateManager.dropDownMenuIsHighlight(colNow, rowNow, index);
1271
+ }
1272
+ isSeriesNumberInBody(col, row) {
1273
+ return this.internalProps.layoutMap && this.internalProps.layoutMap.isSeriesNumberInBody(col, row);
1274
+ }
1275
+ isSeriesNumberInHeader(col, row) {
1276
+ return this.internalProps.layoutMap && this.internalProps.layoutMap.isSeriesNumberInHeader(col, row);
1277
+ }
1278
+ isHeader(col, row) {
1279
+ return this.internalProps.layoutMap && this.internalProps.layoutMap.isHeader(col, row);
1280
+ }
1281
+ isColumnHeader(col, row) {
1282
+ var _a;
1283
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isColumnHeader(col, row);
1284
+ }
1285
+ isRowHeader(col, row) {
1286
+ var _a;
1287
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isRowHeader(col, row);
1288
+ }
1289
+ isCornerHeader(col, row) {
1290
+ var _a;
1291
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isCornerHeader(col, row);
1292
+ }
1293
+ isFrozenColumn(col, row) {
1294
+ return this.isLeftFrozenColumn(col, row) || this.isRightFrozenColumn(col, row);
1295
+ }
1296
+ isLeftFrozenColumn(col, row) {
1297
+ var _a;
1298
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isFrozenColumn(col, row);
1299
+ }
1300
+ isRightFrozenColumn(col, row) {
1301
+ var _a;
1302
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isRightFrozenColumn(col, row);
1303
+ }
1304
+ isFrozenRow(col, row) {
1305
+ return this.isTopFrozenRow(col, row) || this.isBottomFrozenRow(col, row);
1306
+ }
1307
+ isTopFrozenRow(col, row) {
1308
+ var _a;
1309
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isFrozenRow(col, row);
1310
+ }
1311
+ isBottomFrozenRow(col, row) {
1312
+ var _a;
1313
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isBottomFrozenRow(col, row);
1314
+ }
1315
+ getCellInfo(col, row) {
1316
+ if (col >= 0 && row >= 0) {
1317
+ const colDef = this.isHeader(col, row) ? this.getHeaderDefine(col, row) : this.getBodyColumnDefine(col, row);
1318
+ return {
1319
+ col: col,
1320
+ row: row,
1321
+ field: this.getHeaderField(col, row),
1322
+ cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
1323
+ title: null == colDef ? void 0 : colDef.title,
1324
+ cellType: this.getCellType(col, row),
1325
+ originData: this.getCellOriginRecord(col, row),
1326
+ cellRange: this.getCellRangeRelativeRect({
1327
+ col: col,
1328
+ row: row
1329
+ }),
1330
+ value: this.getCellValue(col, row),
1331
+ dataValue: this.getCellOriginValue(col, row),
1332
+ cellLocation: this.getCellLocation(col, row),
1333
+ scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
1334
+ };
1335
+ }
1336
+ }
1337
+ _hasField(field, col, row) {
1338
+ var _a;
1339
+ if (null === field) return !1;
1340
+ if (this.internalProps.layoutMap.isHeader(col, row)) return !1;
1341
+ const index = this.getRecordShowIndexByCell(col, row);
1342
+ return null === (_a = this.internalProps.dataSource) || void 0 === _a ? void 0 : _a.hasField(index, field);
1343
+ }
1344
+ _getCellStyle(col, row) {
1345
+ return getCellStyle(col, row, this);
1346
+ }
1347
+ clearCellStyleCache() {
1348
+ this.headerStyleCache.clear(), this.bodyStyleCache.clear(), this.bodyMergeTitleCache.clear(),
1349
+ this.bodyBottomStyleCache.clear();
1350
+ }
1351
+ clearRowHeightCache() {
1352
+ this.internalProps._rowHeightsMap.clear(), this._clearRowRangeHeightsMap();
1353
+ }
1354
+ clearColWidthCache() {
1355
+ this.internalProps._colWidthsMap.clear(), this._clearColRangeWidthsMap();
1356
+ }
1357
+ _canResizeColumn(col, row) {
1358
+ if (!(col >= 0 && row >= 0)) return !1;
1359
+ if (this.isCellRangeEqual(col, row, col + 1, row)) return !1;
1360
+ if ("none" === this.internalProps.columnResizeMode) return !1;
1361
+ if ("header" === this.internalProps.columnResizeMode) {
1362
+ if (!this.isHeader(col, row)) return !1;
1363
+ } else if ("body" === this.internalProps.columnResizeMode && this.isHeader(col, row)) return !1;
1364
+ const limit = this.colWidthsLimit[col];
1365
+ return !(limit && limit.min && limit.max) || limit.max !== limit.min;
1366
+ }
1367
+ _canResizeRow(col, row) {
1368
+ if (!(col >= 0 && row >= 0)) return !1;
1369
+ if (this.isCellRangeEqual(col, row, col, row + 1)) return !1;
1370
+ if ("none" === this.internalProps.rowResizeMode) return !1;
1371
+ if ("header" === this.internalProps.rowResizeMode) {
1372
+ if (!this.isHeader(col, row)) return !1;
1373
+ } else if ("body" === this.internalProps.rowResizeMode && this.isHeader(col, row)) return !1;
1374
+ return !0;
1375
+ }
1376
+ _canDragHeaderPosition(col, row) {
1377
+ var _a;
1378
+ if (this.isHeader(col, row) && (this.stateManager.isSelected(col, row) || "body" === (null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.headerSelectMode) && checkCellInSelect(col, row, [ this.getCellRange(this.stateManager.select.cellPos.col, this.stateManager.select.cellPos.row) ]) || isCellDisableSelect(this, col, row))) {
1379
+ if ("disabled" === this.internalProps.frozenColDragHeaderMode && this.isFrozenColumn(col)) return !1;
1380
+ if (this.stateManager.isSelected(col, row)) {
1381
+ const selectRange = this.stateManager.select.ranges[0];
1382
+ if (this.isColumnHeader(col, row)) {
1383
+ if (selectRange.end.row !== this.rowCount - 1) return !1;
1384
+ } else {
1385
+ if (!this.isRowHeader(col, row)) return !1;
1386
+ if (selectRange.end.col !== this.colCount - 1) return !1;
1387
+ }
1388
+ }
1389
+ const define = this.getHeaderDefine(col, row);
1390
+ if (!define) return !1;
1391
+ if (void 0 === define.dragHeader) {
1392
+ if ("all" === this.internalProps.dragHeaderMode) return !0;
1393
+ if ("column" === this.internalProps.dragHeaderMode) {
1394
+ if (this.isColumnHeader(col, row)) return !0;
1395
+ } else if ("row" === this.internalProps.dragHeaderMode && this.isRowHeader(col, row)) return !0;
1396
+ return !1;
1397
+ }
1398
+ return define.dragHeader;
1399
+ }
1400
+ return !1;
1401
+ }
1402
+ getCellIcons(col, row) {
1403
+ var _a, _b, _c;
1404
+ let icons;
1405
+ if (this.isHeader(col, row)) icons = this.internalProps.headerHelper.getIcons(col, row); else if (this.internalProps.layoutMap.isSeriesNumber(col, row)) {
1406
+ if (!this.options.groupBy || !(null === (_a = this.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge)) {
1407
+ (null === (_c = null === (_b = this.internalProps.layoutMap.getSeriesNumberBody(col, row)) || void 0 === _b ? void 0 : _b.define) || void 0 === _c ? void 0 : _c.dragOrder) && (icons = this.internalProps.rowSeriesNumberHelper.getIcons(col, row));
1408
+ }
1409
+ const cellValue = this.getCellValue(col, row), dataValue = this.getCellOriginValue(col, row), ctx = this.internalProps.context, cellIcon = this.internalProps.bodyHelper.getIcons(col, row, cellValue, dataValue, ctx);
1410
+ (null == icons ? void 0 : icons.length) > 0 ? icons = icons.concat(cellIcon) : (null == cellIcon ? void 0 : cellIcon.length) > 0 && (icons = cellIcon);
1411
+ } else {
1412
+ const cellValue = this.getCellValue(col, row), dataValue = this.getCellOriginValue(col, row), ctx = this.internalProps.context;
1413
+ icons = this.internalProps.bodyHelper.getIcons(col, row, cellValue, dataValue, ctx);
1414
+ }
1415
+ return icons;
1416
+ }
1417
+ showDropDownMenu(col, row, dropDownMenuOptions) {
1418
+ let menuType = "dropdown-menu";
1419
+ dropDownMenuOptions && (menuType = Array.isArray(dropDownMenuOptions.content) ? "dropdown-menu" : "container"),
1420
+ "html" === this.internalProps.menu.renderMode && (this.stateManager.menu.isShow = !0,
1421
+ this.internalProps.menuHandler._bindToCell(col, row, menuType, dropDownMenuOptions));
1422
+ }
1423
+ showTooltip(col, row, tooltipOptions) {
1424
+ "html" === this.internalProps.tooltip.renderMode && this.internalProps.tooltipHandler._bindToCell(col, row, tooltipOptions);
1425
+ }
1426
+ getCellStyle(col, row) {
1427
+ const actStyle = this._getCellStyle(col, row), theme = getStyleTheme(actStyle, this, col, row, getProp).theme, {autoWrapText: autoWrapText, lineClamp: lineClamp, textOverflow: textOverflow} = actStyle;
1428
+ return {
1429
+ textAlign: theme.text.textAlign,
1430
+ textBaseline: theme.text.textBaseline,
1431
+ bgColor: isBoolean(theme.group.fill) ? getProp("bgColor", actStyle, col, row, this) : theme.group.fill,
1432
+ color: isBoolean(theme.text.fill) ? getProp("color", actStyle, col, row, this) : theme.text.fill,
1433
+ strokeColor: isBoolean(theme.text.stroke) ? getProp("strokeColor", actStyle, col, row, this) : theme.text.stroke,
1434
+ fontFamily: theme.text.fontFamily,
1435
+ fontSize: theme.text.fontSize,
1436
+ fontWeight: theme.text.fontWeight,
1437
+ fontVariant: theme.text.fontVariant,
1438
+ fontStyle: theme.text.fontStyle,
1439
+ lineHeight: theme.text.lineHeight,
1440
+ autoWrapText: null != autoWrapText && autoWrapText,
1441
+ lineClamp: null != lineClamp ? lineClamp : "auto",
1442
+ textOverflow: textOverflow,
1443
+ borderColor: isBoolean(theme.group.stroke) ? getProp("borderColor", actStyle, col, row, this) : theme.group.stroke,
1444
+ borderLineWidth: theme.group.lineWidth,
1445
+ borderLineDash: theme.group.lineDash,
1446
+ underline: !!theme.text.underline,
1447
+ underlineDash: theme.text.underlineDash,
1448
+ underlineOffset: theme.text.underlineOffset,
1449
+ lineThrough: !!theme.text.lineThrough,
1450
+ padding: theme._vtable.padding,
1451
+ underlineWidth: theme.text.underline,
1452
+ lineThroughLineWidth: theme.text.lineThrough,
1453
+ _strokeArrayWidth: theme.group.strokeArrayWidth,
1454
+ _strokeArrayColor: theme.group.strokeArrayColor,
1455
+ _linkColor: getProp("linkColor", actStyle, col, row, this)
1456
+ };
1457
+ }
1458
+ getAllBodyCells(colMaxCount, rowMaxCount) {
1459
+ const start_col = this.rowHeaderLevelCount, start_row = this.columnHeaderLevelCount, end_col = this.colCount - 1, end_row = this.rowCount - 1;
1460
+ return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1461
+ }
1462
+ getAllCells(colMaxCount, rowMaxCount) {
1463
+ const start_col = 0, start_row = 0, end_col = this.colCount - 1, end_row = this.rowCount - 1;
1464
+ return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1465
+ }
1466
+ getAllColumnHeaderCells() {
1467
+ const start_col = this.rowHeaderLevelCount, start_row = 0, end_col = this.colCount - 1, end_row = this.columnHeaderLevelCount - 1;
1468
+ return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1469
+ }
1470
+ getAllRowHeaderCells() {
1471
+ const start_col = 0, start_row = this.columnHeaderLevelCount, end_col = this.rowHeaderLevelCount - 1, end_row = this.rowCount - 1;
1472
+ return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1473
+ }
1474
+ getCopyValue() {
1475
+ var _a, _b, _c;
1476
+ if ((null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0) {
1477
+ const ranges = this.stateManager.select.ranges;
1478
+ let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
1479
+ ranges.forEach((a => {
1480
+ minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
1481
+ minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
1482
+ }));
1483
+ const isExistDataInRow = r => {
1484
+ let isExist = !1;
1485
+ return ranges.forEach((range => {
1486
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
1487
+ minRow <= r && maxRow >= r && (isExist = !0);
1488
+ })), isExist;
1489
+ }, isExistDataInCol = c => {
1490
+ let isExist = !1;
1491
+ return ranges.forEach((range => {
1492
+ const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1493
+ minCol <= c && maxCol >= c && (isExist = !0);
1494
+ })), isExist;
1495
+ }, getRangeExistDataInCell = (c, r) => {
1496
+ let isExistRange;
1497
+ return ranges.forEach((range => {
1498
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1499
+ minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
1500
+ })), isExistRange;
1501
+ }, getCopyCellValue = (col, row, range) => {
1502
+ const cellRange = this.getCellRange(col, row);
1503
+ let copyStartCol = cellRange.start.col, copyStartRow = cellRange.start.row;
1504
+ if (range) {
1505
+ const rangeMinCol = Math.min(range.start.col, range.end.col), rangeMinRow = Math.min(range.start.row, range.end.row);
1506
+ copyStartCol = Math.max(rangeMinCol, cellRange.start.col), copyStartRow = Math.max(rangeMinRow, cellRange.start.row);
1507
+ }
1508
+ if (copyStartCol !== col || copyStartRow !== row) return "";
1509
+ return this.getCellValue(col, row);
1510
+ };
1511
+ let copyValue = "";
1512
+ for (let r = minRow; r <= maxRow; r++) {
1513
+ if (isExistDataInRow(r)) {
1514
+ for (let c = minCol; c <= maxCol; c++) {
1515
+ if (isExistDataInCol(c)) {
1516
+ const range = getRangeExistDataInCell(c, r);
1517
+ if (range) {
1518
+ const copyCellValue = getCopyCellValue(c, r, range);
1519
+ if ("undefined" != typeof Promise && copyCellValue instanceof Promise) ; else {
1520
+ const strCellValue = isValid(copyCellValue) ? `${copyCellValue}` : "";
1521
+ /^\[object .*\]$/.exec(strCellValue) || (copyValue += strCellValue);
1522
+ }
1523
+ (c < range.end.col || c < maxCol) && (copyValue += "\t");
1524
+ } else copyValue += "\t";
1525
+ }
1526
+ }
1527
+ r < maxRow && (copyValue += "\r\n");
1528
+ }
1529
+ }
1530
+ return (null === (_c = this.options) || void 0 === _c ? void 0 : _c.formatCopyValue) && (copyValue = this.options.formatCopyValue(copyValue)),
1531
+ copyValue;
1532
+ }
1533
+ return "";
1534
+ }
1535
+ getSelectedCellInfos() {
1536
+ var _a;
1537
+ if (!(null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges)) return null;
1538
+ const ranges = this.stateManager.select.ranges;
1539
+ if (!ranges.length) return [];
1540
+ let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
1541
+ ranges.forEach((a => {
1542
+ minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
1543
+ minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
1544
+ }));
1545
+ const isExistDataInRow = r => {
1546
+ let isExist = !1;
1547
+ return ranges.forEach((range => {
1548
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
1549
+ minRow <= r && maxRow >= r && (isExist = !0);
1550
+ })), isExist;
1551
+ }, isExistDataInCol = c => {
1552
+ let isExist = !1;
1553
+ return ranges.forEach((range => {
1554
+ const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1555
+ minCol <= c && maxCol >= c && (isExist = !0);
1556
+ })), isExist;
1557
+ }, getRangeExistDataInCell = (c, r) => {
1558
+ let isExistRange;
1559
+ return ranges.forEach((range => {
1560
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1561
+ minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
1562
+ })), isExistRange;
1563
+ }, cellInfoArray = [];
1564
+ for (let r = minRow; r <= maxRow; r++) {
1565
+ if (isExistDataInRow(r)) {
1566
+ const cellInfoRow = [];
1567
+ for (let c = minCol; c <= maxCol; c++) {
1568
+ if (isExistDataInCol(c)) {
1569
+ if (getRangeExistDataInCell(c, r)) {
1570
+ const cellInfo = this.getCellInfo(c, r);
1571
+ cellInfoRow.push(cellInfo);
1572
+ }
1573
+ }
1574
+ }
1575
+ cellInfoArray.push(cellInfoRow);
1576
+ }
1577
+ }
1578
+ return cellInfoArray;
1579
+ }
1580
+ getSelectedCellRanges() {
1581
+ const ranges = this.stateManager.select.ranges;
1582
+ return ranges.length ? cloneDeep(ranges) : [];
1583
+ }
1584
+ measureText(text, font) {
1585
+ return textMeasure.measureText(text, font);
1586
+ }
1587
+ measureTextBounds(attribute) {
1588
+ return measureTextBounds(attribute);
1589
+ }
1590
+ getCustomRender(col, row) {
1591
+ let customRender;
1592
+ if ("body" !== this.getCellLocation(col, row)) {
1593
+ const define = this.getHeaderDefine(col, row);
1594
+ customRender = null == define ? void 0 : define.headerCustomRender;
1595
+ } else {
1596
+ const define = this.getBodyColumnDefine(col, row);
1597
+ customRender = (null == define ? void 0 : define.customRender) || this.customRender;
1598
+ }
1599
+ return customRender;
1600
+ }
1601
+ getCustomLayout(col, row) {
1602
+ let customLayout;
1603
+ if ("body" !== this.getCellLocation(col, row)) {
1604
+ const define = this.getHeaderDefine(col, row);
1605
+ customLayout = null == define ? void 0 : define.headerCustomLayout;
1606
+ } else {
1607
+ const define = this.getBodyColumnDefine(col, row);
1608
+ customLayout = null == define ? void 0 : define.customLayout;
1609
+ }
1610
+ return customLayout;
1611
+ }
1612
+ hasAutoImageColumn() {
1613
+ return void 0 === this._hasAutoImageColumn && (this._hasAutoImageColumn = hasAutoImageColumn(this)),
1614
+ this._hasAutoImageColumn;
1615
+ }
1616
+ _getActiveChartInstance() {
1617
+ var _a, _b, _c, _d, _e, _f;
1618
+ const cellGroup = this.scenegraph.getCell(null === (_b = null === (_a = this.stateManager.hover) || void 0 === _a ? void 0 : _a.cellPos) || void 0 === _b ? void 0 : _b.col, null === (_d = null === (_c = this.stateManager.hover) || void 0 === _c ? void 0 : _c.cellPos) || void 0 === _d ? void 0 : _d.row);
1619
+ return "chart" === (null === (_f = null === (_e = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _e ? void 0 : _e[0]) || void 0 === _f ? void 0 : _f.type) ? cellGroup.getChildren()[0].activeChartInstance : null;
1620
+ }
1621
+ cellIsInVisualView(col, row) {
1622
+ var _a, _b, _c, _d;
1623
+ const drawRange = this.getDrawRange(), rect = this.getCellRelativeRect(col, row);
1624
+ if (col < this.frozenColCount && row < this.frozenRowCount) return !0;
1625
+ let colHeaderRangeRect, rowHeaderRangeRect, bottomFrozenRangeRect, rightFrozenRangeRect;
1626
+ if (this.frozenRowCount >= 1 && (colHeaderRangeRect = this.getCellRangeRelativeRect({
1627
+ start: {
1628
+ col: 0,
1629
+ row: 0
1630
+ },
1631
+ end: {
1632
+ col: this.colCount - 1,
1633
+ row: this.frozenRowCount - 1
1634
+ }
1635
+ })), this.frozenColCount >= 1 && (rowHeaderRangeRect = this.getCellRangeRelativeRect({
1636
+ start: {
1637
+ col: 0,
1638
+ row: 0
1639
+ },
1640
+ end: {
1641
+ col: this.frozenColCount - 1,
1642
+ row: this.rowCount - 1
1643
+ }
1644
+ })), this.bottomFrozenRowCount >= 1 && (bottomFrozenRangeRect = this.getCellRangeRelativeRect({
1645
+ start: {
1646
+ col: 0,
1647
+ row: this.rowCount - this.bottomFrozenRowCount
1648
+ },
1649
+ end: {
1650
+ col: this.colCount - 1,
1651
+ row: this.rowCount - 1
1652
+ }
1653
+ })), this.rightFrozenColCount >= 1 && (rightFrozenRangeRect = this.getCellRangeRelativeRect({
1654
+ start: {
1655
+ col: this.colCount - this.rightFrozenColCount,
1656
+ row: 0
1657
+ },
1658
+ end: {
1659
+ col: this.colCount - 1,
1660
+ row: this.rowCount - 1
1661
+ }
1662
+ })), rect.top >= drawRange.top && rect.bottom <= drawRange.bottom && rect.left >= drawRange.left && rect.right <= drawRange.right) {
1663
+ if (this.isFrozenCell(col, row)) return !0;
1664
+ if (rect.top >= (null !== (_a = null == colHeaderRangeRect ? void 0 : colHeaderRangeRect.bottom) && void 0 !== _a ? _a : rect.top) && rect.left >= (null !== (_b = null == rowHeaderRangeRect ? void 0 : rowHeaderRangeRect.right) && void 0 !== _b ? _b : rect.left) && rect.bottom <= (null !== (_c = null == bottomFrozenRangeRect ? void 0 : bottomFrozenRangeRect.top) && void 0 !== _c ? _c : rect.bottom) && rect.right <= (null !== (_d = null == rightFrozenRangeRect ? void 0 : rightFrozenRangeRect.left) && void 0 !== _d ? _d : rect.right)) return !0;
1665
+ }
1666
+ return !1;
1667
+ }
1668
+ getCustomMergeValue(col, row) {
1669
+ if (this.internalProps.customMergeCell) {
1670
+ const customMerge = this.getCustomMerge(col, row);
1671
+ if (customMerge) {
1672
+ const {text: text} = customMerge;
1673
+ return text;
1674
+ }
1675
+ }
1676
+ }
1677
+ exportImg() {
1678
+ return this.scenegraph.stage.toCanvas().toDataURL();
1679
+ }
1680
+ exportCellImg(col, row, options) {
1681
+ var _a, _b, _c, _d;
1682
+ const isInView = this.cellIsInVisualView(col, row), {scrollTop: scrollTop, scrollLeft: scrollLeft} = this;
1683
+ isInView || this.scrollToCell({
1684
+ col: col,
1685
+ row: row
1686
+ });
1687
+ const cellRect = this.getCellRelativeRect(col, row);
1688
+ (null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0 && hideCellSelectBorder(this.scenegraph);
1689
+ const {col: hoverCol, row: hoverRow} = this.stateManager.hover.cellPos;
1690
+ let oldFill, oldStroke;
1691
+ if (this.stateManager.updateHoverPos(-1, -1), this.scenegraph.component.hideVerticalScrollBar(),
1692
+ this.scenegraph.component.hideHorizontalScrollBar(), this.scenegraph.tableGroup.border.setAttribute("visible", !1),
1693
+ null == options ? void 0 : options.disableBackground) {
1694
+ const cellGroup = this.scenegraph.getCell(col, row);
1695
+ oldFill = cellGroup.attribute.fill, cellGroup.setAttribute("fill", "transparent");
1696
+ }
1697
+ if (null == options ? void 0 : options.disableBorder) {
1698
+ const cellGroup = this.scenegraph.getCell(col, row);
1699
+ oldStroke = cellGroup.attribute.stroke, cellGroup.setAttribute("stroke", !1);
1700
+ }
1701
+ this.scenegraph.renderSceneGraph();
1702
+ let sizeOffset = 0;
1703
+ "bottom-right" === this.theme.cellBorderClipDirection && (sizeOffset = 1);
1704
+ const c = this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX - sizeOffset, cellRect.bottom + this.tableY - sizeOffset));
1705
+ if (isInView || (this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft)),
1706
+ this.scenegraph.tableGroup.border.setAttribute("visible", !0), oldFill) {
1707
+ this.scenegraph.getCell(col, row).setAttribute("fill", oldFill);
1708
+ }
1709
+ if (oldStroke) {
1710
+ this.scenegraph.getCell(col, row).setAttribute("stroke", oldStroke);
1711
+ }
1712
+ return (null === (_d = null === (_c = this.stateManager.select) || void 0 === _c ? void 0 : _c.ranges) || void 0 === _d ? void 0 : _d.length) > 0 && restoreCellSelectBorder(this.scenegraph),
1713
+ this.stateManager.updateHoverPos(hoverCol, hoverRow), this.scenegraph.updateNextFrame(),
1714
+ c.toDataURL();
1715
+ }
1716
+ exportCellRangeImg(cellRange) {
1717
+ var _a, _b, _c, _d;
1718
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, minCol = Math.min(cellRange.start.col, cellRange.end.col), minRow = Math.min(cellRange.start.row, cellRange.end.row), maxCol = Math.max(cellRange.start.col, cellRange.end.col), maxRow = Math.max(cellRange.start.row, cellRange.end.row), isInView = this.cellIsInVisualView(minCol, minRow), isMaxCellInView = this.cellIsInVisualView(maxCol, maxRow);
1719
+ isInView && isMaxCellInView || this.scrollToCell({
1720
+ col: minCol,
1721
+ row: minRow
1722
+ });
1723
+ const cellRect = this.getCellRangeRelativeRect({
1724
+ start: {
1725
+ col: minCol,
1726
+ row: minRow
1727
+ },
1728
+ end: {
1729
+ col: maxCol,
1730
+ row: maxRow
1731
+ }
1732
+ });
1733
+ (null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0 && hideCellSelectBorder(this.scenegraph);
1734
+ const {col: hoverCol, row: hoverRow} = this.stateManager.hover.cellPos;
1735
+ this.stateManager.updateHoverPos(-1, -1), this.scenegraph.component.hideVerticalScrollBar(),
1736
+ this.scenegraph.component.hideHorizontalScrollBar(), this.scenegraph.renderSceneGraph();
1737
+ const base64Image = this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX, cellRect.bottom + this.tableY)).toDataURL();
1738
+ return isInView && isMaxCellInView || (this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft)),
1739
+ (null === (_d = null === (_c = this.stateManager.select) || void 0 === _c ? void 0 : _c.ranges) || void 0 === _d ? void 0 : _d.length) > 0 && restoreCellSelectBorder(this.scenegraph),
1740
+ this.stateManager.updateHoverPos(hoverCol, hoverRow), base64Image;
1741
+ }
1742
+ exportCanvas() {
1743
+ return this.scenegraph.stage.toCanvas();
1744
+ }
1745
+ getImageBuffer(type = "image/png") {
1746
+ if ("node" !== this.options.mode) return;
1747
+ this.render();
1748
+ const stage = this.scenegraph.stage;
1749
+ if (stage) {
1750
+ const contentWidth = this.tableX + this.getAllColsWidth(), contentHeight = this.tableY + this.getAllRowsHeight();
1751
+ if (contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
1752
+ stage.render();
1753
+ return stage.window.getImageBuffer(type);
1754
+ }
1755
+ return this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(0, 0, Math.min(this.canvasWidth, contentWidth), Math.min(this.canvasHeight, contentHeight))).toBuffer(type);
1756
+ }
1757
+ return null;
1758
+ }
1759
+ getBodyIndexByTableIndex(col, row) {
1760
+ return {
1761
+ col: col - this.rowHeaderLevelCount - this.leftRowSeriesNumberCount,
1762
+ row: row - this.columnHeaderLevelCount
1763
+ };
1764
+ }
1765
+ getTableIndexByBodyIndex(col, row) {
1766
+ return {
1767
+ col: col + this.rowHeaderLevelCount + this.leftRowSeriesNumberCount,
1768
+ row: row + this.columnHeaderLevelCount
1769
+ };
1770
+ }
1771
+ onVChartEvent(type, query, callback) {
1772
+ this._chartEventMap[type] || (this._chartEventMap[type] = []), "function" == typeof query ? this._chartEventMap[type].push({
1773
+ callback: query
1774
+ }) : this._chartEventMap[type].push({
1775
+ callback: callback,
1776
+ query: query
1777
+ });
1778
+ }
1779
+ offVChartEvent(type, callback) {
1780
+ this._chartEventMap[type] && (this._chartEventMap[type] = callback ? this._chartEventMap[type].filter((e => e.callback !== callback)) : []);
1781
+ }
1782
+ _bindChartEvent(activeChartInstance) {
1783
+ if (activeChartInstance) for (const key in this._chartEventMap) (this._chartEventMap[key] || []).forEach((e => {
1784
+ e.query ? activeChartInstance.on(key, e.query, e.callback) : activeChartInstance.on(key, e.callback);
1785
+ }));
1786
+ }
1787
+ changeRecordOrder(source, target) {}
1788
+ hasCustomCellStyle(customStyleId) {
1789
+ var _a;
1790
+ return null === (_a = this.customCellStylePlugin) || void 0 === _a ? void 0 : _a.hasCustomCellStyle(customStyleId);
1791
+ }
1792
+ registerCustomCellStyle(customStyleId, customStyle) {
1793
+ var _a;
1794
+ null === (_a = this.customCellStylePlugin) || void 0 === _a || _a.registerCustomCellStyle(customStyleId, customStyle);
1795
+ }
1796
+ arrangeCustomCellStyle(cellPos, customStyleId, forceFastUpdate) {
1797
+ var _a;
1798
+ null === (_a = this.customCellStylePlugin) || void 0 === _a || _a.arrangeCustomCellStyle(cellPos, customStyleId, forceFastUpdate);
1799
+ }
1800
+ isSeriesNumber(col, row) {
1801
+ return this.internalProps.layoutMap.isSeriesNumber(col, row);
1802
+ }
1803
+ isHasSeriesNumber() {
1804
+ var _a;
1805
+ return (null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.leftRowSeriesNumberColumnCount) > 0;
1806
+ }
1807
+ get leftRowSeriesNumberCount() {
1808
+ var _a, _b;
1809
+ return null !== (_b = null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.leftRowSeriesNumberColumnCount) && void 0 !== _b ? _b : 0;
1810
+ }
1811
+ setMinMaxLimitWidth(setWidth = !1) {
1812
+ var _a, _b;
1813
+ const internalProps = this.internalProps;
1814
+ for (let col = 0; col < internalProps.layoutMap.columnWidths.length; col++) {
1815
+ if (this.internalProps._widthResizedColMap.has(col)) continue;
1816
+ const {width: width, minWidth: minWidth, maxWidth: maxWidth} = null !== (_b = null === (_a = internalProps.layoutMap.columnWidths) || void 0 === _a ? void 0 : _a[col]) && void 0 !== _b ? _b : {};
1817
+ setWidth && width && ("string" == typeof width && "auto" !== width || "number" == typeof width && width > 0) && this._setColWidth(col, width),
1818
+ minWidth && ("number" == typeof minWidth && minWidth > 0 || "string" == typeof minWidth) && this.setMinColWidth(col, minWidth),
1819
+ maxWidth && ("number" == typeof maxWidth && maxWidth > 0 || "string" == typeof maxWidth) && this.setMaxColWidth(col, maxWidth);
1820
+ }
1821
+ }
1822
+ setSortedIndexMap(field, filedMap) {
1823
+ var _a;
1824
+ null === (_a = this.dataSource) || void 0 === _a || _a.setSortedIndexMap(field, filedMap);
1825
+ }
1826
+ checkReactCustomLayout() {
1827
+ this.reactCustomLayout || (this.reactCustomLayout = new ReactCustomLayout(this));
1828
+ }
1829
+ get bodyDomContainer() {
1830
+ return this.internalProps.bodyDomContainer;
1831
+ }
1832
+ get headerDomContainer() {
1833
+ return this.internalProps.headerDomContainer;
1834
+ }
1835
+ get frozenBodyDomContainer() {
1836
+ return this.internalProps.frozenBodyDomContainer;
1837
+ }
1838
+ get frozenHeaderDomContainer() {
1839
+ return this.internalProps.frozenHeaderDomContainer;
1840
+ }
1841
+ get rightFrozenBodyDomContainer() {
1842
+ return this.internalProps.rightFrozenBodyDomContainer;
1843
+ }
1844
+ get rightFrozenHeaderDomContainer() {
1845
+ return this.internalProps.rightFrozenHeaderDomContainer;
1846
+ }
1847
+ get frozenBottomDomContainer() {
1848
+ return this.internalProps.frozenBottomDomContainer;
1849
+ }
1850
+ get bottomDomContainer() {
1851
+ return this.internalProps.bottomDomContainer;
1852
+ }
1853
+ get rightFrozenBottomDomContainer() {
1854
+ return this.internalProps.rightFrozenBottomDomContainer;
1855
+ }
1856
+ showMoverLine(col, row) {
1857
+ this.scenegraph.component.showMoveCol(col, row, 0), this.scenegraph.renderSceneGraph();
1858
+ }
1859
+ hideMoverLine(col, row) {
1860
+ this.scenegraph.component.hideMoveCol(), this.scenegraph.renderSceneGraph();
1861
+ }
1862
+ disableScroll() {
1863
+ this.eventManager.disableScroll();
1864
+ }
1865
+ enableScroll() {
1866
+ this.eventManager.enableScroll();
1867
+ }
1868
+ getGroupTitleLevel(col, row) {}
1869
+ scrollToRow(row, animationOption) {
1870
+ animationOption ? this.animationManager.scrollTo({
1871
+ row: row
1872
+ }, animationOption) : this.scrollToCell({
1873
+ row: row
1874
+ });
1875
+ }
1876
+ scrollToCol(col, animationOption) {
1877
+ animationOption ? this.animationManager.scrollTo({
1878
+ col: col
1879
+ }, animationOption) : this.scrollToCell({
1880
+ col: col
1881
+ });
1882
+ }
1883
+ scrollToCell(cellAddr, animationOption) {
1884
+ if (animationOption) return void this.animationManager.scrollTo(cellAddr, animationOption);
1885
+ const drawRange = this.getDrawRange();
1886
+ if (isValid(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
1887
+ const frozenWidth = this.getFrozenColsWidth(), left = this.getColsWidth(0, cellAddr.col - 1);
1888
+ this.scrollLeft = Math.min(left - frozenWidth, this.getAllColsWidth() - drawRange.width);
1889
+ }
1890
+ if (isValid(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
1891
+ const frozenHeight = this.getFrozenRowsHeight(), top = this.getRowsHeight(0, cellAddr.row - 1);
1892
+ this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
1893
+ }
1894
+ this.render();
1895
+ }
1896
+ checkHasColumnAutoWidth() {
1897
+ return checkHasColumnAutoWidth(this);
1898
+ }
1899
+ }
1900
+ //# sourceMappingURL=BaseTable.js.map