@visactor/vtable 1.17.0-alpha.4 → 1.17.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 (358) hide show
  1. package/cjs/ListTable-all.js +3 -2
  2. package/cjs/ListTable-all.js.map +1 -1
  3. package/cjs/ListTable.d.ts +4 -0
  4. package/cjs/ListTable.js +13 -1
  5. package/cjs/ListTable.js.map +1 -1
  6. package/cjs/PivotChart.d.ts +2 -0
  7. package/cjs/PivotChart.js +90 -31
  8. package/cjs/PivotChart.js.map +1 -1
  9. package/cjs/PivotTable.d.ts +1 -0
  10. package/cjs/PivotTable.js +29 -26
  11. package/cjs/PivotTable.js.map +1 -1
  12. package/cjs/body-helper/body-helper.d.ts +3 -1
  13. package/cjs/body-helper/body-helper.js +7 -1
  14. package/cjs/body-helper/body-helper.js.map +1 -1
  15. package/cjs/body-helper/style/ButtonStyle.d.ts +45 -0
  16. package/cjs/body-helper/style/ButtonStyle.js +110 -0
  17. package/cjs/body-helper/style/ButtonStyle.js.map +1 -0
  18. package/cjs/body-helper/style/SwitchStyle.d.ts +36 -0
  19. package/cjs/body-helper/style/SwitchStyle.js +90 -0
  20. package/cjs/body-helper/style/SwitchStyle.js.map +1 -0
  21. package/cjs/body-helper/style.js +5 -4
  22. package/cjs/body-helper/style.js.map +1 -1
  23. package/cjs/components/axis/axis.d.ts +1 -1
  24. package/cjs/components/axis/axis.js +3 -3
  25. package/cjs/components/axis/axis.js.map +1 -1
  26. package/cjs/components/axis/get-axis-component-size.js.map +1 -1
  27. package/cjs/components/axis/label-overlap.d.ts +1 -1
  28. package/cjs/components/axis/label-overlap.js.map +1 -1
  29. package/cjs/components/legend/continue-legend/continue-legend.d.ts +1 -1
  30. package/cjs/components/legend/continue-legend/continue-legend.js +3 -3
  31. package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -1
  32. package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +2 -2
  33. package/cjs/components/legend/discrete-legend/discrete-legend.js +5 -5
  34. package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -1
  35. package/cjs/components/menu/dom/MenuHandler.js +10 -3
  36. package/cjs/components/menu/dom/MenuHandler.js.map +1 -1
  37. package/cjs/components/title/title.d.ts +2 -2
  38. package/cjs/components/title/title.js +2 -2
  39. package/cjs/components/title/title.js.map +1 -1
  40. package/cjs/core/BaseTable.d.ts +5 -1
  41. package/cjs/core/BaseTable.js +30 -27
  42. package/cjs/core/BaseTable.js.map +1 -1
  43. package/cjs/core/FouseInput.js +1 -2
  44. package/cjs/core/TABLE_EVENT_TYPE.d.ts +2 -0
  45. package/cjs/core/TABLE_EVENT_TYPE.js +3 -1
  46. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  47. package/cjs/core/utils/get-cell-position.js +2 -2
  48. package/cjs/core/utils/get-cell-position.js.map +1 -1
  49. package/cjs/dataset/dataset-pivot-table.js +2 -1
  50. package/cjs/edit/edit-manager.d.ts +6 -4
  51. package/cjs/edit/edit-manager.js +16 -13
  52. package/cjs/edit/edit-manager.js.map +1 -1
  53. package/cjs/event/component/button.d.ts +2 -0
  54. package/cjs/event/component/button.js +21 -0
  55. package/cjs/event/component/button.js.map +1 -0
  56. package/cjs/event/event.js +6 -6
  57. package/cjs/event/event.js.map +1 -1
  58. package/cjs/event/listener/container-dom.js +1 -1
  59. package/cjs/event/listener/container-dom.js.map +1 -1
  60. package/cjs/event/listener/table-group.js +20 -0
  61. package/cjs/event/listener/table-group.js.map +1 -1
  62. package/cjs/header-helper/header-helper.js +30 -8
  63. package/cjs/header-helper/header-helper.js.map +1 -1
  64. package/cjs/index.d.ts +1 -1
  65. package/cjs/index.js +1 -1
  66. package/cjs/index.js.map +1 -1
  67. package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -1
  68. package/cjs/render/jsx/index.d.ts +1 -1
  69. package/cjs/render/jsx/index.js +4 -4
  70. package/cjs/render/jsx/index.js.map +1 -1
  71. package/cjs/render/layout/index.d.ts +1 -1
  72. package/cjs/render/layout/index.js +3 -3
  73. package/cjs/render/layout/index.js.map +1 -1
  74. package/cjs/render/layout/tag.d.ts +2 -2
  75. package/cjs/render/layout/tag.js +2 -2
  76. package/cjs/render/layout/tag.js.map +1 -1
  77. package/cjs/render/layout/text.js.map +1 -1
  78. package/cjs/scenegraph/component/cell-content.d.ts +4 -4
  79. package/cjs/scenegraph/component/cell-content.js +1 -1
  80. package/cjs/scenegraph/component/cell-content.js.map +1 -1
  81. package/cjs/scenegraph/component/menu.js +6 -1
  82. package/cjs/scenegraph/component/menu.js.map +1 -1
  83. package/cjs/scenegraph/component/table-component.d.ts +1 -1
  84. package/cjs/scenegraph/component/table-component.js +3 -3
  85. package/cjs/scenegraph/component/table-component.js.map +1 -1
  86. package/cjs/scenegraph/graphic/chart.d.ts +2 -0
  87. package/cjs/scenegraph/graphic/chart.js +4 -4
  88. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  89. package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +2 -0
  90. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +11 -9
  91. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  92. package/cjs/scenegraph/graphic/contributions/chart-render.js +2 -2
  93. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  94. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +2 -2
  95. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  96. package/cjs/scenegraph/graphic/icon.d.ts +8 -2
  97. package/cjs/scenegraph/graphic/icon.js +13 -1
  98. package/cjs/scenegraph/graphic/icon.js.map +1 -1
  99. package/cjs/scenegraph/group-creater/cell-helper.js +4 -0
  100. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  101. package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  102. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +144 -0
  103. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  104. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +4 -2
  105. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  106. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
  107. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  108. package/cjs/scenegraph/group-creater/cell-type/index.d.ts +2 -0
  109. package/cjs/scenegraph/group-creater/cell-type/index.js +14 -2
  110. package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -1
  111. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
  112. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  113. package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  114. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +152 -0
  115. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  116. package/cjs/scenegraph/layout/compute-col-width.js +23 -7
  117. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  118. package/cjs/scenegraph/layout/compute-row-height.js +4 -2
  119. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  120. package/cjs/scenegraph/layout/height-util.d.ts +2 -0
  121. package/cjs/scenegraph/layout/height-util.js +40 -3
  122. package/cjs/scenegraph/layout/height-util.js.map +1 -1
  123. package/cjs/scenegraph/scenegraph.d.ts +1 -1
  124. package/cjs/scenegraph/scenegraph.js +8 -7
  125. package/cjs/scenegraph/scenegraph.js.map +1 -1
  126. package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +1 -1
  127. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
  128. package/cjs/scenegraph/utils/text-icon-layout.d.ts +2 -2
  129. package/cjs/scenegraph/utils/text-icon-layout.js +7 -6
  130. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  131. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  132. package/cjs/state/radio/radio.js +1 -1
  133. package/cjs/state/radio/radio.js.map +1 -1
  134. package/cjs/state/select/custom-select.js +2 -2
  135. package/cjs/state/select/custom-select.js.map +1 -1
  136. package/cjs/state/state.js +6 -2
  137. package/cjs/state/state.js.map +1 -1
  138. package/cjs/themes/theme.d.ts +4 -0
  139. package/cjs/themes/theme.js +19 -2
  140. package/cjs/themes/theme.js.map +1 -1
  141. package/cjs/tools/icons.d.ts +2 -2
  142. package/cjs/tools/icons.js +1 -1
  143. package/cjs/tools/icons.js.map +1 -1
  144. package/cjs/ts-types/base-table.d.ts +23 -4
  145. package/cjs/ts-types/base-table.js.map +1 -1
  146. package/cjs/ts-types/column/style.d.ts +32 -0
  147. package/cjs/ts-types/column/style.js.map +1 -1
  148. package/cjs/ts-types/column/type.d.ts +1 -1
  149. package/cjs/ts-types/column/type.js.map +1 -1
  150. package/cjs/ts-types/component/legend.d.ts +1 -1
  151. package/cjs/ts-types/component/legend.js.map +1 -1
  152. package/cjs/ts-types/events.d.ts +10 -0
  153. package/cjs/ts-types/events.js.map +1 -1
  154. package/cjs/ts-types/icon.d.ts +6 -6
  155. package/cjs/ts-types/icon.js.map +1 -1
  156. package/cjs/ts-types/list-table/define/button-define.d.ts +9 -0
  157. package/cjs/ts-types/list-table/define/{Composite-define.js → button-define.js} +1 -1
  158. package/cjs/ts-types/list-table/define/button-define.js.map +1 -0
  159. package/cjs/ts-types/list-table/define/composite-define.js +6 -0
  160. package/{es/ts-types/list-table/define/Composite-define.js.map → cjs/ts-types/list-table/define/composite-define.js.map} +1 -1
  161. package/cjs/ts-types/list-table/define/index.d.ts +7 -3
  162. package/cjs/ts-types/list-table/define/index.js.map +1 -1
  163. package/cjs/ts-types/list-table/define/switch-define.d.ts +11 -0
  164. package/cjs/ts-types/list-table/define/switch-define.js +6 -0
  165. package/cjs/ts-types/list-table/define/switch-define.js.map +1 -0
  166. package/cjs/ts-types/list-table/layout-map/api.d.ts +5 -1
  167. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
  168. package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +5 -1
  169. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -1
  170. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +5 -1
  171. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
  172. package/cjs/ts-types/table-engine.d.ts +8 -0
  173. package/cjs/ts-types/table-engine.js.map +1 -1
  174. package/cjs/ts-types/theme.d.ts +4 -2
  175. package/cjs/ts-types/theme.js.map +1 -1
  176. package/cjs/vrender.js.map +1 -1
  177. package/dist/vtable.js +1160 -88
  178. package/dist/vtable.min.js +2 -2
  179. package/es/ListTable-all.js +3 -2
  180. package/es/ListTable-all.js.map +1 -1
  181. package/es/ListTable.d.ts +4 -0
  182. package/es/ListTable.js +13 -1
  183. package/es/ListTable.js.map +1 -1
  184. package/es/PivotChart.d.ts +2 -0
  185. package/es/PivotChart.js +91 -30
  186. package/es/PivotChart.js.map +1 -1
  187. package/es/PivotTable.d.ts +1 -0
  188. package/es/PivotTable.js +29 -26
  189. package/es/PivotTable.js.map +1 -1
  190. package/es/body-helper/body-helper.d.ts +3 -1
  191. package/es/body-helper/body-helper.js +10 -0
  192. package/es/body-helper/body-helper.js.map +1 -1
  193. package/es/body-helper/style/ButtonStyle.d.ts +45 -0
  194. package/es/body-helper/style/ButtonStyle.js +102 -0
  195. package/es/body-helper/style/ButtonStyle.js.map +1 -0
  196. package/es/body-helper/style/SwitchStyle.d.ts +36 -0
  197. package/es/body-helper/style/SwitchStyle.js +82 -0
  198. package/es/body-helper/style/SwitchStyle.js.map +1 -0
  199. package/es/body-helper/style.js +8 -3
  200. package/es/body-helper/style.js.map +1 -1
  201. package/es/components/axis/axis.d.ts +1 -1
  202. package/es/components/axis/axis.js +1 -1
  203. package/es/components/axis/axis.js.map +1 -1
  204. package/es/components/axis/get-axis-component-size.js.map +1 -1
  205. package/es/components/axis/label-overlap.d.ts +1 -1
  206. package/es/components/axis/label-overlap.js.map +1 -1
  207. package/es/components/legend/continue-legend/continue-legend.d.ts +1 -1
  208. package/es/components/legend/continue-legend/continue-legend.js +1 -1
  209. package/es/components/legend/continue-legend/continue-legend.js.map +1 -1
  210. package/es/components/legend/discrete-legend/discrete-legend.d.ts +2 -2
  211. package/es/components/legend/discrete-legend/discrete-legend.js +1 -1
  212. package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -1
  213. package/es/components/menu/dom/MenuHandler.js +10 -3
  214. package/es/components/menu/dom/MenuHandler.js.map +1 -1
  215. package/es/components/title/title.d.ts +2 -2
  216. package/es/components/title/title.js +1 -1
  217. package/es/components/title/title.js.map +1 -1
  218. package/es/core/BaseTable.d.ts +5 -1
  219. package/es/core/BaseTable.js +30 -27
  220. package/es/core/BaseTable.js.map +1 -1
  221. package/es/core/FouseInput.js +1 -2
  222. package/es/core/TABLE_EVENT_TYPE.d.ts +2 -0
  223. package/es/core/TABLE_EVENT_TYPE.js +3 -1
  224. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  225. package/es/core/utils/get-cell-position.js +2 -2
  226. package/es/core/utils/get-cell-position.js.map +1 -1
  227. package/es/dataset/dataset-pivot-table.js +2 -1
  228. package/es/edit/edit-manager.d.ts +6 -4
  229. package/es/edit/edit-manager.js +17 -14
  230. package/es/edit/edit-manager.js.map +1 -1
  231. package/es/event/component/button.d.ts +2 -0
  232. package/es/event/component/button.js +13 -0
  233. package/es/event/component/button.js.map +1 -0
  234. package/es/event/event.js +7 -5
  235. package/es/event/event.js.map +1 -1
  236. package/es/event/listener/container-dom.js +1 -1
  237. package/es/event/listener/container-dom.js.map +1 -1
  238. package/es/event/listener/table-group.js +18 -0
  239. package/es/event/listener/table-group.js.map +1 -1
  240. package/es/header-helper/header-helper.js +30 -8
  241. package/es/header-helper/header-helper.js.map +1 -1
  242. package/es/index.d.ts +1 -1
  243. package/es/index.js +1 -1
  244. package/es/index.js.map +1 -1
  245. package/es/layout/chart-helper/get-chart-spec.js.map +1 -1
  246. package/es/render/jsx/index.d.ts +1 -1
  247. package/es/render/jsx/index.js +1 -1
  248. package/es/render/jsx/index.js.map +1 -1
  249. package/es/render/layout/index.d.ts +1 -1
  250. package/es/render/layout/index.js +1 -1
  251. package/es/render/layout/index.js.map +1 -1
  252. package/es/render/layout/tag.d.ts +2 -2
  253. package/es/render/layout/tag.js +1 -1
  254. package/es/render/layout/tag.js.map +1 -1
  255. package/es/render/layout/text.js.map +1 -1
  256. package/es/scenegraph/component/cell-content.d.ts +4 -4
  257. package/es/scenegraph/component/cell-content.js +2 -2
  258. package/es/scenegraph/component/cell-content.js.map +1 -1
  259. package/es/scenegraph/component/menu.js +6 -1
  260. package/es/scenegraph/component/menu.js.map +1 -1
  261. package/es/scenegraph/component/table-component.d.ts +1 -1
  262. package/es/scenegraph/component/table-component.js +1 -1
  263. package/es/scenegraph/component/table-component.js.map +1 -1
  264. package/es/scenegraph/graphic/chart.d.ts +2 -0
  265. package/es/scenegraph/graphic/chart.js +4 -4
  266. package/es/scenegraph/graphic/chart.js.map +1 -1
  267. package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +2 -0
  268. package/es/scenegraph/graphic/contributions/chart-render-helper.js +9 -9
  269. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  270. package/es/scenegraph/graphic/contributions/chart-render.js +2 -2
  271. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  272. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +1 -1
  273. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  274. package/es/scenegraph/graphic/icon.d.ts +8 -2
  275. package/es/scenegraph/graphic/icon.js +11 -1
  276. package/es/scenegraph/graphic/icon.js.map +1 -1
  277. package/es/scenegraph/group-creater/cell-helper.js +4 -0
  278. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  279. package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  280. package/es/scenegraph/group-creater/cell-type/button-cell.js +135 -0
  281. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  282. package/es/scenegraph/group-creater/cell-type/chart-cell.js +4 -2
  283. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  284. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +1 -1
  285. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  286. package/es/scenegraph/group-creater/cell-type/index.d.ts +2 -0
  287. package/es/scenegraph/group-creater/cell-type/index.js +12 -0
  288. package/es/scenegraph/group-creater/cell-type/index.js.map +1 -1
  289. package/es/scenegraph/group-creater/cell-type/radio-cell.js +1 -1
  290. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  291. package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  292. package/es/scenegraph/group-creater/cell-type/switch-cell.js +150 -0
  293. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  294. package/es/scenegraph/layout/compute-col-width.js +24 -6
  295. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  296. package/es/scenegraph/layout/compute-row-height.js +2 -2
  297. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  298. package/es/scenegraph/layout/height-util.d.ts +2 -0
  299. package/es/scenegraph/layout/height-util.js +35 -2
  300. package/es/scenegraph/layout/height-util.js.map +1 -1
  301. package/es/scenegraph/scenegraph.d.ts +1 -1
  302. package/es/scenegraph/scenegraph.js +7 -6
  303. package/es/scenegraph/scenegraph.js.map +1 -1
  304. package/es/scenegraph/utils/cell-border-stroke-width.d.ts +1 -1
  305. package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
  306. package/es/scenegraph/utils/text-icon-layout.d.ts +2 -2
  307. package/es/scenegraph/utils/text-icon-layout.js +9 -8
  308. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  309. package/es/scenegraph/utils/text-measure.js.map +1 -1
  310. package/es/state/radio/radio.js +1 -1
  311. package/es/state/radio/radio.js.map +1 -1
  312. package/es/state/select/custom-select.js +1 -1
  313. package/es/state/select/custom-select.js.map +1 -1
  314. package/es/state/state.js +6 -2
  315. package/es/state/state.js.map +1 -1
  316. package/es/themes/theme.d.ts +4 -0
  317. package/es/themes/theme.js +17 -2
  318. package/es/themes/theme.js.map +1 -1
  319. package/es/tools/icons.d.ts +2 -2
  320. package/es/tools/icons.js +1 -1
  321. package/es/tools/icons.js.map +1 -1
  322. package/es/ts-types/base-table.d.ts +23 -4
  323. package/es/ts-types/base-table.js.map +1 -1
  324. package/es/ts-types/column/style.d.ts +32 -0
  325. package/es/ts-types/column/style.js.map +1 -1
  326. package/es/ts-types/column/type.d.ts +1 -1
  327. package/es/ts-types/column/type.js.map +1 -1
  328. package/es/ts-types/component/legend.d.ts +1 -1
  329. package/es/ts-types/component/legend.js.map +1 -1
  330. package/es/ts-types/events.d.ts +10 -0
  331. package/es/ts-types/events.js.map +1 -1
  332. package/es/ts-types/icon.d.ts +6 -6
  333. package/es/ts-types/icon.js.map +1 -1
  334. package/es/ts-types/list-table/define/button-define.d.ts +9 -0
  335. package/es/ts-types/list-table/define/button-define.js +2 -0
  336. package/es/ts-types/list-table/define/button-define.js.map +1 -0
  337. package/es/ts-types/list-table/define/composite-define.js +2 -0
  338. package/{cjs/ts-types/list-table/define/Composite-define.js.map → es/ts-types/list-table/define/composite-define.js.map} +1 -1
  339. package/es/ts-types/list-table/define/index.d.ts +7 -3
  340. package/es/ts-types/list-table/define/index.js.map +1 -1
  341. package/es/ts-types/list-table/define/switch-define.d.ts +11 -0
  342. package/es/ts-types/list-table/define/switch-define.js +2 -0
  343. package/es/ts-types/list-table/define/switch-define.js.map +1 -0
  344. package/es/ts-types/list-table/layout-map/api.d.ts +5 -1
  345. package/es/ts-types/list-table/layout-map/api.js.map +1 -1
  346. package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +5 -1
  347. package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -1
  348. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +5 -1
  349. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
  350. package/es/ts-types/table-engine.d.ts +8 -0
  351. package/es/ts-types/table-engine.js.map +1 -1
  352. package/es/ts-types/theme.d.ts +4 -2
  353. package/es/ts-types/theme.js.map +1 -1
  354. package/es/vrender.js.map +1 -1
  355. package/package.json +6 -6
  356. package/es/ts-types/list-table/define/Composite-define.js +0 -2
  357. /package/cjs/ts-types/list-table/define/{Composite-define.d.ts → composite-define.d.ts} +0 -0
  358. /package/es/ts-types/list-table/define/{Composite-define.d.ts → composite-define.d.ts} +0 -0
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.computeSingleRadioCellHeight = exports.computeRadioCellHeight = exports.computeCheckboxCellHeight = void 0;
5
+ }), exports.computeButtonCellHeight = exports.computeSwitchCellHeight = exports.computeSingleRadioCellHeight = exports.computeRadioCellHeight = exports.computeCheckboxCellHeight = void 0;
6
6
 
7
- const vutils_1 = require("@visactor/vutils"), util_1 = require("../../tools/util"), get_prop_1 = require("../utils/get-prop"), vrender_components_1 = require("@visactor/vrender-components"), utilCheckBoxMark = new vrender_components_1.CheckBox({}), utilRadioMark = new vrender_components_1.Radio({});
7
+ const vutils_1 = require("@visactor/vutils"), util_1 = require("../../tools/util"), get_prop_1 = require("../utils/get-prop"), vrender_1 = require("./../../vrender"), utilCheckBoxMark = new vrender_1.CheckBox({}), utilRadioMark = new vrender_1.Radio({}), utilButtonMark = new vrender_1.Tag({});
8
8
 
9
9
  function computeCheckboxCellHeight(cellValue, col, row, endCol, actStyle, autoWrapText, iconWidth, fontSize, fontStyle, fontWeight, fontFamily, lineHeight, lineClamp, padding, table) {
10
10
  const text = (0, vutils_1.isObject)(cellValue) ? cellValue.text : cellValue, lines = (0,
@@ -85,6 +85,43 @@ function computeSingleRadioCellHeight(cellValue, col, row, endCol, actStyle, aut
85
85
  return maxHeight;
86
86
  }
87
87
 
88
+ function computeSwitchCellHeight(cellValue, col, row, endCol, actStyle, autoWrapText, iconWidth, fontSize, fontStyle, fontWeight, fontFamily, lineHeight, lineClamp, padding, table) {
89
+ return (0, get_prop_1.getProp)("boxWidth", actStyle, col, row, table);
90
+ }
91
+
92
+ function computeButtonCellHeight(cellValue, col, row, endCol, actStyle, autoWrapText, iconWidth, fontSize, fontStyle, fontWeight, fontFamily, lineHeight, lineClamp, padding, table) {
93
+ const text = (0, vutils_1.isObject)(cellValue) ? cellValue.text : cellValue, lines = (0,
94
+ util_1.validToString)(text).split("\n") || [], cellWidth = table.getColsWidth(col, endCol), buttonPadding = (0,
95
+ get_prop_1.getProp)("buttonPadding", actStyle, col, row, table), buttonLineWidth = (0,
96
+ get_prop_1.getProp)("buttonLineWidth", actStyle, col, row, table);
97
+ let maxHeight = 0;
98
+ if (autoWrapText) {
99
+ const maxLineWidth = cellWidth - (padding[1] + padding[3]);
100
+ utilButtonMark.setAttributes({
101
+ text: lines,
102
+ textStyle: {
103
+ maxLineWidth: maxLineWidth,
104
+ fontSize: fontSize,
105
+ fontStyle: fontStyle,
106
+ fontWeight: fontWeight,
107
+ fontFamily: fontFamily,
108
+ lineHeight: lineHeight,
109
+ wordBreak: "break-word",
110
+ lineClamp: lineClamp
111
+ },
112
+ padding: buttonPadding,
113
+ panel: {
114
+ visible: !0,
115
+ fill: "red",
116
+ stroke: "red",
117
+ lineWidth: buttonLineWidth
118
+ }
119
+ }), utilRadioMark.render(), maxHeight = utilRadioMark.AABBBounds.height();
120
+ } else maxHeight = lines.length * lineHeight + 2 * buttonPadding;
121
+ return maxHeight;
122
+ }
123
+
88
124
  exports.computeCheckboxCellHeight = computeCheckboxCellHeight, exports.computeRadioCellHeight = computeRadioCellHeight,
89
- exports.computeSingleRadioCellHeight = computeSingleRadioCellHeight;
125
+ exports.computeSingleRadioCellHeight = computeSingleRadioCellHeight, exports.computeSwitchCellHeight = computeSwitchCellHeight,
126
+ exports.computeButtonCellHeight = computeButtonCellHeight;
90
127
  //# sourceMappingURL=height-util.js.map
@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G,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;SACpC;QACD,aAAa,CAAC,aAAa,CAAC;YAC1B,IAAI,EAAE;gBACJ,YAAY;gBACZ,IAAI,EAAE,KAAK;gBACX,QAAQ;gBACR,SAAS;gBACT,UAAU;gBACV,UAAU;gBACV,UAAU;gBACV,SAAS,EAAE,YAAY;gBACvB,SAAS;aACV;YACD,MAAM,EAAE;gBACN,WAAW;aACZ;YACD,uBAAuB;SACxB,CAAC,CAAC;QACH,aAAa,CAAC,MAAM,EAAE,CAAC;QACvB,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;KAC/C;SAAM;QACL,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;KACvD;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAtDD,oEAsDC","file":"height-util.js","sourcesContent":["import { isArray, isNumber, isObject } from '@visactor/vutils';\nimport { validToString } from '../../tools/util';\nimport { getProp } from '../utils/get-prop';\nimport { CheckBox, Radio } from '@visactor/vrender-components';\nimport type { FullExtendStyle, RadioColumnDefine } from '../../ts-types';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\n\nconst utilCheckBoxMark = new CheckBox({});\nconst utilRadioMark = new Radio({});\n\nexport function computeCheckboxCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const text = isObject(cellValue) ? (cellValue as any).text : cellValue;\n const lines = validToString(text).split('\\n') || [];\n const cellWidth = table.getColsWidth(col, endCol);\n const size = getProp('size', actStyle, col, row, table);\n let maxHeight = 0;\n if (autoWrapText) {\n const spaceBetweenTextAndIcon = getProp('spaceBetweenTextAndIcon', actStyle, col, row, table);\n const maxLineWidth = cellWidth - (padding[1] + padding[3]) - iconWidth - size - spaceBetweenTextAndIcon;\n utilCheckBoxMark.setAttributes({\n text: {\n maxLineWidth,\n text: lines,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n wordBreak: 'break-word',\n lineClamp\n },\n icon: {\n width: Math.floor(size / 1.4), // icon : box => 10 : 14\n height: Math.floor(size / 1.4)\n },\n box: {\n width: size,\n height: size\n },\n spaceBetweenTextAndIcon\n });\n utilCheckBoxMark.render();\n maxHeight = utilCheckBoxMark.AABBBounds.height();\n } else {\n maxHeight = Math.max(size, lines.length * lineHeight);\n }\n\n return maxHeight;\n}\n\nexport function computeRadioCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n if (isArray(cellValue)) {\n // multi radio\n let maxHeight = 0;\n const define = table.getBodyColumnDefine(col, row);\n const spaceBetweenRadio = getProp('spaceBetweenRadio', actStyle, col, row, table);\n const radioDirectionInCell = (define as RadioColumnDefine)?.radioDirectionInCell ?? 'vertical';\n if (radioDirectionInCell === 'vertical') {\n // sum all radio height\n cellValue.forEach((singleValue, index) => {\n const height = computeSingleRadioCellHeight(\n singleValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n maxHeight += height;\n if (index !== cellValue.length - 1) {\n maxHeight += spaceBetweenRadio;\n }\n });\n } else if (radioDirectionInCell === 'horizontal') {\n // get max radio height\n cellValue.forEach(singleValue => {\n const height = computeSingleRadioCellHeight(\n singleValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n maxHeight = Math.max(height, maxHeight);\n });\n }\n return maxHeight;\n }\n // single radio\n return computeSingleRadioCellHeight(\n cellValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n}\n\nexport function computeSingleRadioCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const text = isObject(cellValue) ? (cellValue as any).text : cellValue;\n const lines = validToString(text).split('\\n') || [];\n const cellWidth = table.getColsWidth(col, endCol);\n const size = getProp('size', actStyle, col, row, table);\n let outerRadius = getProp('outerRadius', actStyle, col, row, table);\n const circleSize = isNumber(outerRadius) ? outerRadius * 2 : size;\n let maxHeight = 0;\n if (autoWrapText) {\n const spaceBetweenTextAndIcon = getProp('spaceBetweenTextAndIcon', actStyle, col, row, table);\n const maxLineWidth = cellWidth - (padding[1] + padding[3]) - iconWidth - circleSize - spaceBetweenTextAndIcon;\n if (!isNumber(outerRadius)) {\n outerRadius = Math.round(size / 2);\n }\n utilRadioMark.setAttributes({\n text: {\n maxLineWidth,\n text: lines,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n wordBreak: 'break-word',\n lineClamp\n },\n circle: {\n outerRadius\n },\n spaceBetweenTextAndIcon\n });\n utilRadioMark.render();\n maxHeight = utilRadioMark.AABBBounds.height();\n } else {\n maxHeight = Math.max(size, lines.length * lineHeight);\n }\n\n return maxHeight;\n}\n"]}
1
+ {"version":3,"sources":["../src/scenegraph/layout/height-util.ts"],"names":[],"mappings":";;;AAAA,6CAA+D;A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umber, isObject } from '@visactor/vutils';\nimport { validToString } from '../../tools/util';\nimport { getProp } from '../utils/get-prop';\nimport { CheckBox, Radio, Switch, Tag } from './../../vrender';\nimport type { FullExtendStyle, RadioColumnDefine } from '../../ts-types';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\n\nconst utilCheckBoxMark = new CheckBox({});\nconst utilRadioMark = new Radio({});\nconst utilButtonMark = new Tag({});\n\nexport function computeCheckboxCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const text = isObject(cellValue) ? (cellValue as any).text : cellValue;\n const lines = validToString(text).split('\\n') || [];\n const cellWidth = table.getColsWidth(col, endCol);\n const size = getProp('size', actStyle, col, row, table);\n let maxHeight = 0;\n if (autoWrapText) {\n const spaceBetweenTextAndIcon = getProp('spaceBetweenTextAndIcon', actStyle, col, row, table);\n const maxLineWidth = cellWidth - (padding[1] + padding[3]) - iconWidth - size - spaceBetweenTextAndIcon;\n utilCheckBoxMark.setAttributes({\n text: {\n maxLineWidth,\n text: lines,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n wordBreak: 'break-word',\n lineClamp\n },\n icon: {\n width: Math.floor(size / 1.4), // icon : box => 10 : 14\n height: Math.floor(size / 1.4)\n },\n box: {\n width: size,\n height: size\n },\n spaceBetweenTextAndIcon\n });\n utilCheckBoxMark.render();\n maxHeight = utilCheckBoxMark.AABBBounds.height();\n } else {\n maxHeight = Math.max(size, lines.length * lineHeight);\n }\n\n return maxHeight;\n}\n\nexport function computeRadioCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n if (isArray(cellValue)) {\n // multi radio\n let maxHeight = 0;\n const define = table.getBodyColumnDefine(col, row);\n const spaceBetweenRadio = getProp('spaceBetweenRadio', actStyle, col, row, table);\n const radioDirectionInCell = (define as RadioColumnDefine)?.radioDirectionInCell ?? 'vertical';\n if (radioDirectionInCell === 'vertical') {\n // sum all radio height\n cellValue.forEach((singleValue, index) => {\n const height = computeSingleRadioCellHeight(\n singleValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n maxHeight += height;\n if (index !== cellValue.length - 1) {\n maxHeight += spaceBetweenRadio;\n }\n });\n } else if (radioDirectionInCell === 'horizontal') {\n // get max radio height\n cellValue.forEach(singleValue => {\n const height = computeSingleRadioCellHeight(\n singleValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n maxHeight = Math.max(height, maxHeight);\n });\n }\n return maxHeight;\n }\n // single radio\n return computeSingleRadioCellHeight(\n cellValue,\n col,\n row,\n endCol,\n actStyle,\n autoWrapText,\n iconWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n lineClamp,\n padding,\n table\n );\n}\n\nexport function computeSingleRadioCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const text = isObject(cellValue) ? (cellValue as any).text : cellValue;\n const lines = validToString(text).split('\\n') || [];\n const cellWidth = table.getColsWidth(col, endCol);\n const size = getProp('size', actStyle, col, row, table);\n let outerRadius = getProp('outerRadius', actStyle, col, row, table);\n const circleSize = isNumber(outerRadius) ? outerRadius * 2 : size;\n let maxHeight = 0;\n if (autoWrapText) {\n const spaceBetweenTextAndIcon = getProp('spaceBetweenTextAndIcon', actStyle, col, row, table);\n const maxLineWidth = cellWidth - (padding[1] + padding[3]) - iconWidth - circleSize - spaceBetweenTextAndIcon;\n if (!isNumber(outerRadius)) {\n outerRadius = Math.round(size / 2);\n }\n utilRadioMark.setAttributes({\n text: {\n maxLineWidth,\n text: lines,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n wordBreak: 'break-word',\n lineClamp\n },\n circle: {\n outerRadius\n },\n spaceBetweenTextAndIcon\n });\n utilRadioMark.render();\n maxHeight = utilRadioMark.AABBBounds.height();\n } else {\n maxHeight = Math.max(size, lines.length * lineHeight);\n }\n\n return maxHeight;\n}\n\nexport function computeSwitchCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const boxWidth = getProp('boxWidth', actStyle, col, row, table);\n\n return boxWidth;\n}\n\nexport function computeButtonCellHeight(\n cellValue: any,\n col: number,\n row: number,\n endCol: number,\n actStyle: FullExtendStyle,\n autoWrapText: boolean,\n iconWidth: number,\n fontSize: number,\n fontStyle: string,\n fontWeight: string,\n fontFamily: string,\n lineHeight: number,\n lineClamp: number | undefined,\n padding: [number, number, number, number],\n table: BaseTableAPI\n) {\n const text = isObject(cellValue) ? (cellValue as any).text : cellValue;\n const lines = validToString(text).split('\\n') || [];\n const cellWidth = table.getColsWidth(col, endCol);\n const buttonPadding = getProp('buttonPadding', actStyle, col, row, table);\n const buttonLineWidth = getProp('buttonLineWidth', actStyle, col, row, table);\n let maxHeight = 0;\n if (autoWrapText) {\n const maxLineWidth = cellWidth - (padding[1] + padding[3]);\n utilButtonMark.setAttributes({\n text: lines,\n textStyle: {\n maxLineWidth,\n fontSize,\n fontStyle,\n fontWeight,\n fontFamily,\n lineHeight,\n wordBreak: 'break-word',\n lineClamp\n },\n padding: buttonPadding,\n panel: {\n visible: true,\n fill: 'red',\n stroke: 'red',\n lineWidth: buttonLineWidth\n }\n });\n utilRadioMark.render();\n maxHeight = utilRadioMark.AABBBounds.height();\n } else {\n maxHeight = lines.length * lineHeight + buttonPadding * 2;\n }\n\n return maxHeight;\n}\n"]}
@@ -99,7 +99,7 @@ export declare class Scenegraph {
99
99
  residentHoverIcon(col: number, row: number): void;
100
100
  resetResidentHoverIcon(col: number, row: number): void;
101
101
  deactivateChart(col: number, row: number): void;
102
- activateChart(col: number, row: number): void;
102
+ activateChart(col: number, row: number): any;
103
103
  removeInteractionBorder(col: number, row: number): void;
104
104
  createCellSelectBorder(start_Col: number, start_Row: number, end_Col: number, end_Row: number, selectRangeType: CellSubLocation, selectId: string, strokes?: boolean[]): void;
105
105
  moveSelectingRangeComponentsToSelectedRangeComponents(): void;
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "__esModule", {
33
33
  value: !0
34
34
  }), exports.Scenegraph = void 0;
35
35
 
36
- const vrender_1 = require("./../vrender"), ts_types_1 = require("../ts-types"), get_cell_merge_1 = require("./utils/get-cell-merge"), update_width_1 = require("./layout/update-width"), table_component_1 = require("./component/table-component"), update_height_1 = require("./layout/update-height"), image_cell_1 = require("./group-creater/cell-type/image-cell"), padding_1 = require("./utils/padding"), frame_border_1 = require("./style/frame-border"), contributions_1 = __importDefault(require("./graphic/contributions")), get_prop_1 = require("./utils/get-prop"), text_icon_layout_1 = require("./utils/text-icon-layout"), proxy_1 = require("./group-creater/progress/proxy"), compute_col_width_1 = require("./layout/compute-col-width"), move_cell_1 = require("./layout/move-cell"), cell_helper_1 = require("./group-creater/cell-helper"), update_select_border_1 = require("./select/update-select-border"), create_select_border_1 = require("./select/create-select-border"), move_select_border_1 = require("./select/move-select-border"), delete_select_border_1 = require("./select/delete-select-border"), update_row_1 = require("./layout/update-row"), stick_text_1 = require("./stick-text"), compute_row_height_1 = require("./layout/compute-row-height"), empty_group_1 = require("./utils/empty-group"), frozen_1 = require("./layout/frozen"), update_chart_1 = require("./refresh-node/update-chart"), init_scenegraph_1 = require("./group-creater/init-scenegraph"), update_container_1 = require("./utils/update-container"), vrender_components_1 = require("@visactor/vrender-components"), text_measure_1 = __importDefault(require("./utils/text-measure")), icon_update_1 = require("./icon/icon-update"), env_1 = require("../tools/env"), corner_cell_1 = require("./style/corner-cell"), update_col_1 = require("./layout/update-col"), util_1 = require("../tools/util"), appear_1 = require("./animation/appear"), frozen_react_1 = require("./layout/frozen-react"), registerIcons = __importStar(require("../icons")), update_select_style_1 = require("./select/update-select-style");
36
+ const vrender_1 = require("./../vrender"), ts_types_1 = require("../ts-types"), get_cell_merge_1 = require("./utils/get-cell-merge"), update_width_1 = require("./layout/update-width"), table_component_1 = require("./component/table-component"), update_height_1 = require("./layout/update-height"), image_cell_1 = require("./group-creater/cell-type/image-cell"), padding_1 = require("./utils/padding"), frame_border_1 = require("./style/frame-border"), contributions_1 = __importDefault(require("./graphic/contributions")), get_prop_1 = require("./utils/get-prop"), text_icon_layout_1 = require("./utils/text-icon-layout"), proxy_1 = require("./group-creater/progress/proxy"), compute_col_width_1 = require("./layout/compute-col-width"), move_cell_1 = require("./layout/move-cell"), cell_helper_1 = require("./group-creater/cell-helper"), update_select_border_1 = require("./select/update-select-border"), create_select_border_1 = require("./select/create-select-border"), move_select_border_1 = require("./select/move-select-border"), delete_select_border_1 = require("./select/delete-select-border"), update_row_1 = require("./layout/update-row"), stick_text_1 = require("./stick-text"), compute_row_height_1 = require("./layout/compute-row-height"), empty_group_1 = require("./utils/empty-group"), frozen_1 = require("./layout/frozen"), update_chart_1 = require("./refresh-node/update-chart"), init_scenegraph_1 = require("./group-creater/init-scenegraph"), update_container_1 = require("./utils/update-container"), vrender_2 = require("./../vrender"), text_measure_1 = __importDefault(require("./utils/text-measure")), icon_update_1 = require("./icon/icon-update"), env_1 = require("../tools/env"), corner_cell_1 = require("./style/corner-cell"), update_col_1 = require("./layout/update-col"), util_1 = require("../tools/util"), appear_1 = require("./animation/appear"), frozen_react_1 = require("./layout/frozen-react"), registerIcons = __importStar(require("../icons")), update_select_style_1 = require("./select/update-select-style");
37
37
 
38
38
  (0, vrender_1.registerForVrender)(), vrender_1.container.load(contributions_1.default),
39
39
  vrender_1.container.load(text_measure_1.default);
@@ -42,10 +42,10 @@ class Scenegraph {
42
42
  constructor(table) {
43
43
  let width, height;
44
44
  this._needUpdateContainer = !1, this.table = table, this.hasFrozen = !1, this.clear = !0,
45
- this.mergeMap = new Map, (0, vrender_components_1.setPoptipTheme)(this.table.theme.textPopTipStyle),
46
- table.options.canvas && table.options.viewBox ? (vrender_1.vglobal.setEnv("browser"),
47
- width = table.options.viewBox.x2 - table.options.viewBox.x1, height = table.options.viewBox.y2 - table.options.viewBox.y1) : "node" === env_1.Env.mode ? (vrender_1.vglobal.setEnv("node", table.options.modeParams),
48
- width = table.canvasWidth, height = table.canvasHeight) : (vrender_1.vglobal.setEnv("browser"),
45
+ this.mergeMap = new Map, (0, vrender_2.setPoptipTheme)(this.table.theme.textPopTipStyle),
46
+ "node" === env_1.Env.mode ? (vrender_1.vglobal.setEnv("node", table.options.modeParams),
47
+ width = table.canvasWidth, height = table.canvasHeight) : table.options.canvas && table.options.viewBox ? (vrender_1.vglobal.setEnv("browser"),
48
+ width = table.options.viewBox.x2 - table.options.viewBox.x1, height = table.options.viewBox.y2 - table.options.viewBox.y1) : (vrender_1.vglobal.setEnv("browser"),
49
49
  width = table.canvas.width, height = table.canvas.height), this.stage = (0, vrender_1.createStage)(Object.assign({
50
50
  canvas: table.canvas,
51
51
  width: width,
@@ -307,10 +307,11 @@ class Scenegraph {
307
307
  null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) || void 0 === _b || _b.call(_a);
308
308
  }
309
309
  activateChart(col, row) {
310
- var _a, _b;
310
+ var _a, _b, _c;
311
311
  if (-1 === col || -1 === row) return;
312
312
  const cellGroup = this.getCell(col, row);
313
- null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table);
313
+ return null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table),
314
+ null === (_c = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _c ? void 0 : _c.activeChartInstance;
314
315
  }
315
316
  removeInteractionBorder(col, row) {
316
317
  const cellGroup = this.getCell(col, row);