@visactor/vtable 0.17.9-alpha.8 → 0.17.10-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/cjs/PivotChart.d.ts +1 -0
  2. package/cjs/PivotChart.js +24 -0
  3. package/cjs/PivotChart.js.map +1 -1
  4. package/cjs/components/axis/label-overlap.js.map +1 -1
  5. package/cjs/components/tooltip/TooltipHandler.js +1 -2
  6. package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
  7. package/cjs/core/BaseTable.d.ts +2 -2
  8. package/cjs/core/BaseTable.js +1 -1
  9. package/cjs/core/BaseTable.js.map +1 -1
  10. package/cjs/core/style.js +1 -2
  11. package/cjs/core/tableHelper.d.ts +2 -1
  12. package/cjs/core/tableHelper.js +14 -2
  13. package/cjs/core/tableHelper.js.map +1 -1
  14. package/cjs/dataset/dataset.js +5 -5
  15. package/cjs/dataset/dataset.js.map +1 -1
  16. package/cjs/event/event.d.ts +1 -1
  17. package/cjs/event/event.js +1 -1
  18. package/cjs/event/event.js.map +1 -1
  19. package/cjs/event/listener/scroll-bar.js.map +1 -1
  20. package/cjs/event/listener/table-group.js +4 -4
  21. package/cjs/event/listener/table-group.js.map +1 -1
  22. package/cjs/event/listener/touch.js.map +1 -1
  23. package/cjs/event/media-click.js +1 -2
  24. package/cjs/event/pivot-chart/axis-click.js.map +1 -1
  25. package/cjs/event/scroll.js +1 -0
  26. package/cjs/event/util.d.ts +1 -1
  27. package/cjs/event/util.js.map +1 -1
  28. package/cjs/index.d.ts +2 -2
  29. package/cjs/index.js +2 -2
  30. package/cjs/index.js.map +1 -1
  31. package/cjs/layout/pivot-header-layout.js +2 -2
  32. package/cjs/layout/pivot-header-layout.js.map +1 -1
  33. package/cjs/render/jsx/index.d.ts +2 -3
  34. package/cjs/render/jsx/index.js +1 -1
  35. package/cjs/render/jsx/index.js.map +1 -1
  36. package/cjs/render/layout/arc.d.ts +2 -2
  37. package/cjs/render/layout/arc.js +1 -1
  38. package/cjs/render/layout/arc.js.map +1 -1
  39. package/cjs/render/layout/circle.d.ts +2 -2
  40. package/cjs/render/layout/circle.js +1 -1
  41. package/cjs/render/layout/circle.js.map +1 -1
  42. package/cjs/render/layout/container.d.ts +2 -2
  43. package/cjs/render/layout/container.js +1 -1
  44. package/cjs/render/layout/container.js.map +1 -1
  45. package/cjs/render/layout/group.d.ts +2 -2
  46. package/cjs/render/layout/group.js +1 -1
  47. package/cjs/render/layout/group.js.map +1 -1
  48. package/cjs/render/layout/icon.d.ts +2 -2
  49. package/cjs/render/layout/icon.js +1 -1
  50. package/cjs/render/layout/icon.js.map +1 -1
  51. package/cjs/render/layout/image.d.ts +2 -2
  52. package/cjs/render/layout/image.js +1 -1
  53. package/cjs/render/layout/image.js.map +1 -1
  54. package/cjs/render/layout/rect.d.ts +2 -2
  55. package/cjs/render/layout/rect.js +1 -1
  56. package/cjs/render/layout/rect.js.map +1 -1
  57. package/cjs/render/layout/text.d.ts +1 -1
  58. package/cjs/render/layout/text.js +1 -1
  59. package/cjs/render/layout/text.js.map +1 -1
  60. package/cjs/scenegraph/component/cell-content.d.ts +2 -2
  61. package/cjs/scenegraph/component/cell-content.js +1 -1
  62. package/cjs/scenegraph/component/cell-content.js.map +1 -1
  63. package/cjs/scenegraph/component/cell-mover.d.ts +1 -1
  64. package/cjs/scenegraph/component/cell-mover.js +1 -1
  65. package/cjs/scenegraph/component/cell-mover.js.map +1 -1
  66. package/cjs/scenegraph/component/custom.d.ts +1 -1
  67. package/cjs/scenegraph/component/custom.js +1 -1
  68. package/cjs/scenegraph/component/custom.js.map +1 -1
  69. package/cjs/scenegraph/component/drill-icon.js.map +1 -1
  70. package/cjs/scenegraph/component/menu.d.ts +1 -1
  71. package/cjs/scenegraph/component/menu.js +1 -1
  72. package/cjs/scenegraph/component/menu.js.map +1 -1
  73. package/cjs/scenegraph/component/table-component.d.ts +1 -1
  74. package/cjs/scenegraph/component/table-component.js +1 -1
  75. package/cjs/scenegraph/component/table-component.js.map +1 -1
  76. package/cjs/scenegraph/debug-tool/debug-tool.d.ts +1 -1
  77. package/cjs/scenegraph/debug-tool/debug-tool.js +1 -1
  78. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -1
  79. package/cjs/scenegraph/debug-tool/index.d.ts +1 -1
  80. package/cjs/scenegraph/debug-tool/index.js.map +1 -1
  81. package/cjs/scenegraph/graphic/chart.d.ts +2 -2
  82. package/cjs/scenegraph/graphic/chart.js +1 -1
  83. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  84. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  85. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +1 -1
  86. package/cjs/scenegraph/graphic/contributions/chart-render.js +1 -1
  87. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  88. package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +2 -2
  89. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +4 -3
  90. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  91. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +2 -2
  92. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +1 -1
  93. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
  94. package/cjs/scenegraph/graphic/contributions/index.d.ts +1 -1
  95. package/cjs/scenegraph/graphic/contributions/index.js +1 -1
  96. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
  97. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +2 -2
  98. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +1 -1
  99. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  100. package/cjs/scenegraph/graphic/group.d.ts +2 -2
  101. package/cjs/scenegraph/graphic/group.js +1 -1
  102. package/cjs/scenegraph/graphic/group.js.map +1 -1
  103. package/cjs/scenegraph/graphic/icon.d.ts +2 -2
  104. package/cjs/scenegraph/graphic/icon.js +1 -1
  105. package/cjs/scenegraph/graphic/icon.js.map +1 -1
  106. package/cjs/scenegraph/graphic/text.d.ts +2 -2
  107. package/cjs/scenegraph/graphic/text.js +1 -1
  108. package/cjs/scenegraph/graphic/text.js.map +1 -1
  109. package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -1
  110. package/cjs/scenegraph/group-creater/cell-helper.js +9 -6
  111. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  112. package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +1 -1
  113. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +2 -1
  114. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  115. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
  116. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -1
  117. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  118. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
  119. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +3 -2
  120. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  121. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +1 -1
  122. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  123. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
  124. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +3 -2
  125. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  126. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  127. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +3 -2
  128. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  129. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
  130. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +3 -2
  131. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  132. package/cjs/scenegraph/group-creater/column-helper.d.ts +1 -1
  133. package/cjs/scenegraph/group-creater/column-helper.js +1 -0
  134. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  135. package/cjs/scenegraph/group-creater/progress/proxy.js +1 -1
  136. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  137. package/cjs/scenegraph/icon/icon-update.js +1 -1
  138. package/cjs/scenegraph/icon/icon-update.js.map +1 -1
  139. package/cjs/scenegraph/layout/compute-col-width.js +1 -1
  140. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  141. package/cjs/scenegraph/layout/compute-row-height.js +1 -1
  142. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  143. package/cjs/scenegraph/layout/move-cell.js.map +1 -1
  144. package/cjs/scenegraph/layout/update-col.js.map +1 -1
  145. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  146. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  147. package/cjs/scenegraph/scenegraph.d.ts +1 -1
  148. package/cjs/scenegraph/scenegraph.js +6 -8
  149. package/cjs/scenegraph/scenegraph.js.map +1 -1
  150. package/cjs/scenegraph/select/create-select-border.js +1 -1
  151. package/cjs/scenegraph/select/create-select-border.js.map +1 -1
  152. package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
  153. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  154. package/cjs/scenegraph/stick-text/index.js.map +1 -1
  155. package/cjs/scenegraph/style/corner-cell.js.map +1 -1
  156. package/cjs/scenegraph/style/frame-border.d.ts +3 -1
  157. package/cjs/scenegraph/style/frame-border.js +21 -3
  158. package/cjs/scenegraph/style/frame-border.js.map +1 -1
  159. package/cjs/scenegraph/utils/padding.js +1 -1
  160. package/cjs/scenegraph/utils/padding.js.map +1 -1
  161. package/cjs/scenegraph/utils/render-service.d.ts +1 -1
  162. package/cjs/scenegraph/utils/render-service.js +1 -1
  163. package/cjs/scenegraph/utils/render-service.js.map +1 -1
  164. package/cjs/scenegraph/utils/text-icon-layout.d.ts +1 -1
  165. package/cjs/scenegraph/utils/text-icon-layout.js +1 -1
  166. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  167. package/cjs/scenegraph/utils/text-measure.d.ts +2 -2
  168. package/cjs/scenegraph/utils/text-measure.js +1 -1
  169. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  170. package/cjs/scenegraph/utils/text-pos.d.ts +1 -1
  171. package/cjs/scenegraph/utils/text-pos.js.map +1 -1
  172. package/cjs/state/spark-line/index.js +1 -1
  173. package/cjs/state/spark-line/index.js.map +1 -1
  174. package/cjs/state/state.d.ts +1 -1
  175. package/cjs/state/state.js.map +1 -1
  176. package/cjs/themes/ARCO.js +1 -2
  177. package/cjs/themes/BRIGHT.js +2 -1
  178. package/cjs/tools/NumberMap.js +1 -1
  179. package/cjs/ts-types/component/title.d.ts +1 -1
  180. package/cjs/ts-types/component/title.js.map +1 -1
  181. package/cjs/ts-types/events.d.ts +3 -4
  182. package/cjs/ts-types/events.js.map +1 -1
  183. package/cjs/ts-types/table-engine.d.ts +4 -0
  184. package/cjs/ts-types/table-engine.js.map +1 -1
  185. package/cjs/vrender.d.ts +3 -0
  186. package/cjs/vrender.js +34 -0
  187. package/cjs/vrender.js.map +1 -0
  188. package/dist/vtable.js +320 -167
  189. package/dist/vtable.min.js +2 -2
  190. package/es/PivotChart.d.ts +1 -0
  191. package/es/PivotChart.js +24 -0
  192. package/es/PivotChart.js.map +1 -1
  193. package/es/components/axis/label-overlap.js.map +1 -1
  194. package/es/components/tooltip/TooltipHandler.js +1 -2
  195. package/es/components/tooltip/TooltipHandler.js.map +1 -1
  196. package/es/core/BaseTable.d.ts +2 -2
  197. package/es/core/BaseTable.js +1 -1
  198. package/es/core/BaseTable.js.map +1 -1
  199. package/es/core/style.js +1 -2
  200. package/es/core/tableHelper.d.ts +2 -1
  201. package/es/core/tableHelper.js +13 -1
  202. package/es/core/tableHelper.js.map +1 -1
  203. package/es/dataset/dataset.js +5 -5
  204. package/es/dataset/dataset.js.map +1 -1
  205. package/es/event/event.d.ts +1 -1
  206. package/es/event/event.js +1 -1
  207. package/es/event/event.js.map +1 -1
  208. package/es/event/listener/scroll-bar.js.map +1 -1
  209. package/es/event/listener/table-group.js +4 -4
  210. package/es/event/listener/table-group.js.map +1 -1
  211. package/es/event/listener/touch.js.map +1 -1
  212. package/es/event/media-click.js +1 -2
  213. package/es/event/pivot-chart/axis-click.js.map +1 -1
  214. package/es/event/scroll.js +2 -1
  215. package/es/event/util.d.ts +1 -1
  216. package/es/event/util.js.map +1 -1
  217. package/es/index.d.ts +2 -2
  218. package/es/index.js +2 -2
  219. package/es/index.js.map +1 -1
  220. package/es/layout/pivot-header-layout.js +1 -1
  221. package/es/layout/pivot-header-layout.js.map +1 -1
  222. package/es/render/jsx/index.d.ts +2 -3
  223. package/es/render/jsx/index.js +1 -1
  224. package/es/render/jsx/index.js.map +1 -1
  225. package/es/render/layout/arc.d.ts +2 -2
  226. package/es/render/layout/arc.js +1 -1
  227. package/es/render/layout/arc.js.map +1 -1
  228. package/es/render/layout/circle.d.ts +2 -2
  229. package/es/render/layout/circle.js +1 -1
  230. package/es/render/layout/circle.js.map +1 -1
  231. package/es/render/layout/container.d.ts +2 -2
  232. package/es/render/layout/container.js +1 -1
  233. package/es/render/layout/container.js.map +1 -1
  234. package/es/render/layout/group.d.ts +2 -2
  235. package/es/render/layout/group.js +1 -1
  236. package/es/render/layout/group.js.map +1 -1
  237. package/es/render/layout/icon.d.ts +2 -2
  238. package/es/render/layout/icon.js +1 -1
  239. package/es/render/layout/icon.js.map +1 -1
  240. package/es/render/layout/image.d.ts +2 -2
  241. package/es/render/layout/image.js +1 -1
  242. package/es/render/layout/image.js.map +1 -1
  243. package/es/render/layout/rect.d.ts +2 -2
  244. package/es/render/layout/rect.js +1 -1
  245. package/es/render/layout/rect.js.map +1 -1
  246. package/es/render/layout/text.d.ts +1 -1
  247. package/es/render/layout/text.js +1 -1
  248. package/es/render/layout/text.js.map +1 -1
  249. package/es/scenegraph/component/cell-content.d.ts +2 -2
  250. package/es/scenegraph/component/cell-content.js +1 -1
  251. package/es/scenegraph/component/cell-content.js.map +1 -1
  252. package/es/scenegraph/component/cell-mover.d.ts +1 -1
  253. package/es/scenegraph/component/cell-mover.js +1 -1
  254. package/es/scenegraph/component/cell-mover.js.map +1 -1
  255. package/es/scenegraph/component/custom.d.ts +1 -1
  256. package/es/scenegraph/component/custom.js +1 -1
  257. package/es/scenegraph/component/custom.js.map +1 -1
  258. package/es/scenegraph/component/drill-icon.js.map +1 -1
  259. package/es/scenegraph/component/menu.d.ts +1 -1
  260. package/es/scenegraph/component/menu.js +1 -1
  261. package/es/scenegraph/component/menu.js.map +1 -1
  262. package/es/scenegraph/component/table-component.d.ts +1 -1
  263. package/es/scenegraph/component/table-component.js +1 -1
  264. package/es/scenegraph/component/table-component.js.map +1 -1
  265. package/es/scenegraph/debug-tool/debug-tool.d.ts +1 -1
  266. package/es/scenegraph/debug-tool/debug-tool.js +1 -1
  267. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -1
  268. package/es/scenegraph/debug-tool/index.d.ts +1 -1
  269. package/es/scenegraph/debug-tool/index.js.map +1 -1
  270. package/es/scenegraph/graphic/chart.d.ts +2 -2
  271. package/es/scenegraph/graphic/chart.js +1 -1
  272. package/es/scenegraph/graphic/chart.js.map +1 -1
  273. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  274. package/es/scenegraph/graphic/contributions/chart-render.d.ts +1 -1
  275. package/es/scenegraph/graphic/contributions/chart-render.js +1 -1
  276. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  277. package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +2 -2
  278. package/es/scenegraph/graphic/contributions/group-contribution-render.js +3 -3
  279. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  280. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +2 -2
  281. package/es/scenegraph/graphic/contributions/image-contribution-render.js +1 -1
  282. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
  283. package/es/scenegraph/graphic/contributions/index.d.ts +1 -1
  284. package/es/scenegraph/graphic/contributions/index.js +1 -1
  285. package/es/scenegraph/graphic/contributions/index.js.map +1 -1
  286. package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +2 -2
  287. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +1 -1
  288. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  289. package/es/scenegraph/graphic/group.d.ts +2 -2
  290. package/es/scenegraph/graphic/group.js +1 -1
  291. package/es/scenegraph/graphic/group.js.map +1 -1
  292. package/es/scenegraph/graphic/icon.d.ts +2 -2
  293. package/es/scenegraph/graphic/icon.js +1 -1
  294. package/es/scenegraph/graphic/icon.js.map +1 -1
  295. package/es/scenegraph/graphic/text.d.ts +2 -2
  296. package/es/scenegraph/graphic/text.js +1 -1
  297. package/es/scenegraph/graphic/text.js.map +1 -1
  298. package/es/scenegraph/group-creater/cell-helper.d.ts +1 -1
  299. package/es/scenegraph/group-creater/cell-helper.js +8 -6
  300. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  301. package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +1 -1
  302. package/es/scenegraph/group-creater/cell-type/chart-cell.js +2 -1
  303. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  304. package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
  305. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -1
  306. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  307. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
  308. package/es/scenegraph/group-creater/cell-type/image-cell.js +3 -2
  309. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  310. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +1 -1
  311. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  312. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
  313. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +3 -2
  314. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  315. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  316. package/es/scenegraph/group-creater/cell-type/text-cell.js +3 -2
  317. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  318. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
  319. package/es/scenegraph/group-creater/cell-type/video-cell.js +3 -2
  320. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  321. package/es/scenegraph/group-creater/column-helper.d.ts +1 -1
  322. package/es/scenegraph/group-creater/column-helper.js +3 -2
  323. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  324. package/es/scenegraph/group-creater/progress/proxy.js +1 -1
  325. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  326. package/es/scenegraph/icon/icon-update.js +1 -1
  327. package/es/scenegraph/icon/icon-update.js.map +1 -1
  328. package/es/scenegraph/layout/compute-col-width.js +1 -1
  329. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  330. package/es/scenegraph/layout/compute-row-height.js +1 -1
  331. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  332. package/es/scenegraph/layout/move-cell.js.map +1 -1
  333. package/es/scenegraph/layout/update-col.js.map +1 -1
  334. package/es/scenegraph/layout/update-height.js.map +1 -1
  335. package/es/scenegraph/layout/update-width.js.map +1 -1
  336. package/es/scenegraph/scenegraph.d.ts +1 -1
  337. package/es/scenegraph/scenegraph.js +6 -5
  338. package/es/scenegraph/scenegraph.js.map +1 -1
  339. package/es/scenegraph/select/create-select-border.js +1 -1
  340. package/es/scenegraph/select/create-select-border.js.map +1 -1
  341. package/es/scenegraph/select/delete-select-border.js.map +1 -1
  342. package/es/scenegraph/select/update-select-border.js.map +1 -1
  343. package/es/scenegraph/stick-text/index.js.map +1 -1
  344. package/es/scenegraph/style/corner-cell.js.map +1 -1
  345. package/es/scenegraph/style/frame-border.d.ts +3 -1
  346. package/es/scenegraph/style/frame-border.js +18 -1
  347. package/es/scenegraph/style/frame-border.js.map +1 -1
  348. package/es/scenegraph/utils/padding.js +1 -1
  349. package/es/scenegraph/utils/padding.js.map +1 -1
  350. package/es/scenegraph/utils/render-service.d.ts +1 -1
  351. package/es/scenegraph/utils/render-service.js +1 -1
  352. package/es/scenegraph/utils/render-service.js.map +1 -1
  353. package/es/scenegraph/utils/text-icon-layout.d.ts +1 -1
  354. package/es/scenegraph/utils/text-icon-layout.js +1 -1
  355. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  356. package/es/scenegraph/utils/text-measure.d.ts +2 -2
  357. package/es/scenegraph/utils/text-measure.js +1 -1
  358. package/es/scenegraph/utils/text-measure.js.map +1 -1
  359. package/es/scenegraph/utils/text-pos.d.ts +1 -1
  360. package/es/scenegraph/utils/text-pos.js.map +1 -1
  361. package/es/state/spark-line/index.js +1 -1
  362. package/es/state/spark-line/index.js.map +1 -1
  363. package/es/state/state.d.ts +1 -1
  364. package/es/state/state.js.map +1 -1
  365. package/es/themes/ARCO.js +1 -2
  366. package/es/themes/BRIGHT.js +2 -1
  367. package/es/tools/NumberMap.js +1 -1
  368. package/es/ts-types/component/title.d.ts +1 -1
  369. package/es/ts-types/component/title.js.map +1 -1
  370. package/es/ts-types/events.d.ts +3 -4
  371. package/es/ts-types/events.js.map +1 -1
  372. package/es/ts-types/table-engine.d.ts +4 -0
  373. package/es/ts-types/table-engine.js.map +1 -1
  374. package/es/vrender.d.ts +3 -0
  375. package/es/vrender.js +18 -0
  376. package/es/vrender.js.map +1 -0
  377. package/package.json +6 -5
package/dist/vtable.js CHANGED
@@ -8004,7 +8004,7 @@
8004
8004
  const SYMBOL_NUMBER_TYPE = genNumberType();
8005
8005
  const TEXT_NUMBER_TYPE = genNumberType();
8006
8006
  const GraphicService = Symbol.for("GraphicService");
8007
- const GraphicCreator$2 = Symbol.for("GraphicCreator");
8007
+ const GraphicCreator$1 = Symbol.for("GraphicCreator");
8008
8008
  const SVG_PARSE_ATTRIBUTE_MAP = {
8009
8009
  "stroke-linecap": "lineCap",
8010
8010
  "stroke-linejoin": "lineJoin",
@@ -12230,9 +12230,9 @@
12230
12230
  return !!visible || (aabbBounds.clear(), !1);
12231
12231
  }
12232
12232
  };
12233
- DefaultGraphicService = __decorate$19([injectable(), __param$F(0, inject(GraphicCreator$2)), __metadata$S("design:paramtypes", [Object])], DefaultGraphicService);
12233
+ DefaultGraphicService = __decorate$19([injectable(), __param$F(0, inject(GraphicCreator$1)), __metadata$S("design:paramtypes", [Object])], DefaultGraphicService);
12234
12234
 
12235
- let GraphicCreator$1 = class GraphicCreator {
12235
+ class GraphicCreator {
12236
12236
  constructor() {
12237
12237
  this.store = new Map();
12238
12238
  }
@@ -12243,12 +12243,12 @@
12243
12243
  const cb = this.store.get(name);
12244
12244
  return cb ? cb(params) : null;
12245
12245
  }
12246
- };
12247
- const graphicCreator$1 = new GraphicCreator$1();
12246
+ }
12247
+ const graphicCreator = new GraphicCreator();
12248
12248
 
12249
- let text$1;
12250
- function getTextBounds$1(params) {
12251
- return text$1 || (text$1 = graphicCreator$1.CreateGraphic("text", {})), text$1.setAttributes(params), text$1.AABBBounds;
12249
+ let text;
12250
+ function getTextBounds(params) {
12251
+ return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params), text.AABBBounds;
12252
12252
  }
12253
12253
 
12254
12254
  const result = {
@@ -14767,7 +14767,7 @@
14767
14767
  });
14768
14768
 
14769
14769
  var graphicModule = new ContainerModule(bind => {
14770
- bind(GraphicService).to(DefaultGraphicService).inSingletonScope(), bind(GraphicCreator$2).toConstantValue(graphicCreator$1);
14770
+ bind(GraphicService).to(DefaultGraphicService).inSingletonScope(), bind(GraphicCreator$1).toConstantValue(graphicCreator);
14771
14771
  });
14772
14772
 
14773
14773
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
@@ -15258,7 +15258,7 @@
15258
15258
  getShadowRoot(interactiveLayer) {
15259
15259
  var _a;
15260
15260
  let group = interactiveLayer.getElementById("_interactive_group");
15261
- return group || (group = graphicCreator$1.CreateGraphic("group", {}), group.id = "_interactive_group", interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
15261
+ return group || (group = graphicCreator.CreateGraphic("group", {}), group.id = "_interactive_group", interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
15262
15262
  }
15263
15263
  }
15264
15264
  class Canvas3DDrawItemInterceptor {
@@ -17799,75 +17799,75 @@
17799
17799
  });
17800
17800
 
17801
17801
  function registerArcGraphic() {
17802
- graphicCreator$1.RegisterGraphicCreator("arc", createArc);
17802
+ graphicCreator.RegisterGraphicCreator("arc", createArc);
17803
17803
  }
17804
17804
 
17805
17805
  function registerArc3dGraphic() {
17806
- graphicCreator$1.RegisterGraphicCreator("arc3d", createArc3d);
17806
+ graphicCreator.RegisterGraphicCreator("arc3d", createArc3d);
17807
17807
  }
17808
17808
 
17809
17809
  function registerAreaGraphic() {
17810
- graphicCreator$1.RegisterGraphicCreator("area", createArea);
17810
+ graphicCreator.RegisterGraphicCreator("area", createArea);
17811
17811
  }
17812
17812
 
17813
17813
  function registerCircleGraphic() {
17814
- graphicCreator$1.RegisterGraphicCreator("circle", createCircle);
17814
+ graphicCreator.RegisterGraphicCreator("circle", createCircle);
17815
17815
  }
17816
17816
 
17817
17817
  function registerGlyphGraphic() {
17818
- graphicCreator$1.RegisterGraphicCreator("glyph", createGlyph);
17818
+ graphicCreator.RegisterGraphicCreator("glyph", createGlyph);
17819
17819
  }
17820
17820
 
17821
17821
  function registerGroupGraphic() {
17822
- graphicCreator$1.RegisterGraphicCreator("group", createGroup);
17822
+ graphicCreator.RegisterGraphicCreator("group", createGroup);
17823
17823
  }
17824
17824
 
17825
17825
  function registerImageGraphic() {
17826
- graphicCreator$1.RegisterGraphicCreator("image", createImage);
17826
+ graphicCreator.RegisterGraphicCreator("image", createImage);
17827
17827
  }
17828
17828
 
17829
17829
  function registerLineGraphic() {
17830
- graphicCreator$1.RegisterGraphicCreator("line", createLine);
17830
+ graphicCreator.RegisterGraphicCreator("line", createLine);
17831
17831
  }
17832
17832
 
17833
17833
  function registerPathGraphic() {
17834
- graphicCreator$1.RegisterGraphicCreator("path", createPath);
17834
+ graphicCreator.RegisterGraphicCreator("path", createPath);
17835
17835
  }
17836
17836
 
17837
17837
  function registerPolygonGraphic() {
17838
- graphicCreator$1.RegisterGraphicCreator("polygon", createPolygon);
17838
+ graphicCreator.RegisterGraphicCreator("polygon", createPolygon);
17839
17839
  }
17840
17840
 
17841
17841
  function registerPyramid3dGraphic() {
17842
- graphicCreator$1.RegisterGraphicCreator("pyramid3d", createPyramid3d);
17842
+ graphicCreator.RegisterGraphicCreator("pyramid3d", createPyramid3d);
17843
17843
  }
17844
17844
 
17845
17845
  function registerRectGraphic() {
17846
- graphicCreator$1.RegisterGraphicCreator("rect", createRect);
17846
+ graphicCreator.RegisterGraphicCreator("rect", createRect);
17847
17847
  }
17848
17848
 
17849
17849
  function registerRect3dGraphic() {
17850
- graphicCreator$1.RegisterGraphicCreator("rect3d", createRect3d);
17850
+ graphicCreator.RegisterGraphicCreator("rect3d", createRect3d);
17851
17851
  }
17852
17852
 
17853
17853
  function registerRichtextGraphic() {
17854
- graphicCreator$1.RegisterGraphicCreator("richtext", createRichText);
17854
+ graphicCreator.RegisterGraphicCreator("richtext", createRichText);
17855
17855
  }
17856
17856
 
17857
17857
  function registerSymbolGraphic() {
17858
- graphicCreator$1.RegisterGraphicCreator("symbol", createSymbol);
17858
+ graphicCreator.RegisterGraphicCreator("symbol", createSymbol);
17859
17859
  }
17860
17860
 
17861
17861
  function registerTextGraphic() {
17862
- graphicCreator$1.RegisterGraphicCreator("text", createText);
17862
+ graphicCreator.RegisterGraphicCreator("text", createText);
17863
17863
  }
17864
17864
 
17865
17865
  function registerShadowRootGraphic() {
17866
- graphicCreator$1.RegisterGraphicCreator("shadowRoot", createShadowRoot);
17866
+ graphicCreator.RegisterGraphicCreator("shadowRoot", createShadowRoot);
17867
17867
  }
17868
17868
 
17869
17869
  function registerWrapTextGraphic() {
17870
- graphicCreator$1.RegisterGraphicCreator("wrapText", createWrapText);
17870
+ graphicCreator.RegisterGraphicCreator("wrapText", createWrapText);
17871
17871
  }
17872
17872
 
17873
17873
  const REACT_TO_CANOPUS_EVENTS = {
@@ -17918,40 +17918,40 @@
17918
17918
  onDblClick: "dblclick"
17919
17919
  };
17920
17920
  function VArc(params) {
17921
- return graphicCreator$1.arc(params ? params.attribute : {});
17921
+ return graphicCreator.arc(params ? params.attribute : {});
17922
17922
  }
17923
17923
  function VArea(params) {
17924
- return graphicCreator$1.area(params ? params.attribute : {});
17924
+ return graphicCreator.area(params ? params.attribute : {});
17925
17925
  }
17926
17926
  function VCircle(params) {
17927
- return graphicCreator$1.circle(params ? params.attribute : {});
17927
+ return graphicCreator.circle(params ? params.attribute : {});
17928
17928
  }
17929
17929
  function VGroup(params) {
17930
- return graphicCreator$1.group(params ? params.attribute : {});
17930
+ return graphicCreator.group(params ? params.attribute : {});
17931
17931
  }
17932
17932
  function VGlyph(params) {
17933
- return graphicCreator$1.glyph(params ? params.attribute : {});
17933
+ return graphicCreator.glyph(params ? params.attribute : {});
17934
17934
  }
17935
17935
  function VImage(params) {
17936
- return graphicCreator$1.image(params ? params.attribute : {});
17936
+ return graphicCreator.image(params ? params.attribute : {});
17937
17937
  }
17938
17938
  function VLine(params) {
17939
- return graphicCreator$1.line(params ? params.attribute : {});
17939
+ return graphicCreator.line(params ? params.attribute : {});
17940
17940
  }
17941
17941
  function VPath(params) {
17942
- return graphicCreator$1.path(params ? params.attribute : {});
17942
+ return graphicCreator.path(params ? params.attribute : {});
17943
17943
  }
17944
17944
  function VPolygon(params) {
17945
- return graphicCreator$1.polygon(params ? params.attribute : {});
17945
+ return graphicCreator.polygon(params ? params.attribute : {});
17946
17946
  }
17947
17947
  function VRect(params) {
17948
- return graphicCreator$1.rect(params ? params.attribute : {});
17948
+ return graphicCreator.rect(params ? params.attribute : {});
17949
17949
  }
17950
17950
  function VSymbol(params) {
17951
- return graphicCreator$1.symbol(params ? params.attribute : {});
17951
+ return graphicCreator.symbol(params ? params.attribute : {});
17952
17952
  }
17953
17953
  function VText(params) {
17954
- return graphicCreator$1.text(params ? params.attribute : {});
17954
+ return graphicCreator.text(params ? params.attribute : {});
17955
17955
  }
17956
17956
 
17957
17957
  var __rest$4 = undefined && undefined.__rest || function (s, e) {
@@ -17976,7 +17976,7 @@
17976
17976
  } = _a,
17977
17977
  props = __rest$4(_a, ["key", "attribute", "stateProxy"]);
17978
17978
  let c = type;
17979
- isString$2(type) && (c = graphicCreator$1[type]);
17979
+ isString$2(type) && (c = graphicCreator[type]);
17980
17980
  const childrenList = [];
17981
17981
  for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
17982
17982
  children[_key - 2] = arguments[_key];
@@ -20958,7 +20958,31 @@
20958
20958
  loaded || (loaded = !0, registerWrapTextGraphic());
20959
20959
  }
20960
20960
 
20961
- preLoadAllModule(), isBrowserEnv() ? loadBrowserEnv(container) : isNodeEnv() && loadNodeEnv(container), registerArc(), registerArc3d(), registerArea(), registerCircle(), registerGlyph(), registerGroup(), registerImage(), registerLine(), registerPath(), registerPolygon(), registerPyramid3d(), registerRect(), registerRect3d(), registerRichtext(), registerShadowRoot(), registerSymbol(), registerText(), registerWrapText();
20961
+ preLoadAllModule();
20962
+ if (isBrowserEnv()) {
20963
+ loadBrowserEnv(container);
20964
+ }
20965
+ else if (isNodeEnv()) {
20966
+ loadNodeEnv(container);
20967
+ }
20968
+ registerArc();
20969
+ registerArc3d();
20970
+ registerArea();
20971
+ registerCircle();
20972
+ registerGlyph();
20973
+ registerGroup();
20974
+ registerImage();
20975
+ registerLine();
20976
+ registerPath();
20977
+ registerPolygon();
20978
+ registerPyramid3d();
20979
+ registerRect();
20980
+ registerRect3d();
20981
+ registerRichtext();
20982
+ registerShadowRoot();
20983
+ registerSymbol();
20984
+ registerText();
20985
+ registerWrapText();
20962
20986
 
20963
20987
  var InteractionState;
20964
20988
  (function (InteractionState) {
@@ -24278,7 +24302,7 @@
24278
24302
  width: 0,
24279
24303
  height: 0
24280
24304
  };
24281
- const bounds = getTextBounds$1({
24305
+ const bounds = getTextBounds({
24282
24306
  text: text,
24283
24307
  fontFamily: textSpec.fontFamily,
24284
24308
  fontSize: textSpec.fontSize || 12,
@@ -24926,7 +24950,7 @@
24926
24950
  }
24927
24951
  points.forEach((point, index) => {
24928
24952
  var _a, _b;
24929
- const line = graphicCreator$1.line(Object.assign(Object.assign({
24953
+ const line = graphicCreator.line(Object.assign(Object.assign({
24930
24954
  points: point
24931
24955
  }, isArray$1(lineStyle) ? null !== (_a = lineStyle[index]) && void 0 !== _a ? _a : lineStyle[lineStyle.length - 1] : lineStyle), {
24932
24956
  fill: !1
@@ -24934,7 +24958,7 @@
24934
24958
  line.name = `${this.name}-line`, line.id = this._getNodeId("line" + index), isEmpty(null == state ? void 0 : state.line) || (line.states = isArray$1(state.line) ? null !== (_b = state.line[index]) && void 0 !== _b ? _b : state.line[state.line.length - 1] : state.line), this.add(line);
24935
24959
  });
24936
24960
  } else {
24937
- const line = graphicCreator$1.polygon(Object.assign(Object.assign({
24961
+ const line = graphicCreator.polygon(Object.assign(Object.assign({
24938
24962
  points: this._clipPoints(this.attribute.points)
24939
24963
  }, array$1(lineStyle)[0]), {
24940
24964
  fill: !1,
@@ -24973,7 +24997,7 @@
24973
24997
  }, rotate = startAngle + Math.PI / 2) : (position = {
24974
24998
  x: end.x + (isValidNumber$1(endAngle) ? refX * Math.cos(endAngle) + refY * Math.cos(endAngle - Math.PI / 2) : 0),
24975
24999
  y: end.y + (isValidNumber$1(endAngle) ? refX * Math.sin(endAngle) + refY * Math.sin(endAngle - Math.PI / 2) : 0)
24976
- }, rotate = endAngle + Math.PI / 2), symbol = graphicCreator$1.symbol(Object.assign(Object.assign(Object.assign({}, position), {
25000
+ }, rotate = endAngle + Math.PI / 2), symbol = graphicCreator.symbol(Object.assign(Object.assign(Object.assign({}, position), {
24977
25001
  symbolType: symbolType,
24978
25002
  size: size,
24979
25003
  angle: autoRotate ? rotate + refAngle : 0,
@@ -25166,14 +25190,14 @@
25166
25190
  getBoundsWithoutRender(attributes) {
25167
25191
  const currentAttribute = cloneDeep(this.attribute);
25168
25192
  merge(this.attribute, attributes);
25169
- const offscreenGroup = graphicCreator$1.group({
25193
+ const offscreenGroup = graphicCreator.group({
25170
25194
  x: this.attribute.x,
25171
25195
  y: this.attribute.y
25172
25196
  });
25173
25197
  return this.add(offscreenGroup), this._renderInner(offscreenGroup), this.removeChild(offscreenGroup), this.attribute = currentAttribute, offscreenGroup.AABBBounds;
25174
25198
  }
25175
25199
  render() {
25176
- this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator$1.group({
25200
+ this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator.group({
25177
25201
  x: 0,
25178
25202
  y: 0,
25179
25203
  pickable: !1
@@ -25195,13 +25219,13 @@
25195
25219
  line: line,
25196
25220
  items: items
25197
25221
  } = this.attribute,
25198
- axisContainer = graphicCreator$1.group({
25222
+ axisContainer = graphicCreator.group({
25199
25223
  x: 0,
25200
25224
  y: 0,
25201
25225
  zIndex: 1
25202
25226
  });
25203
25227
  if (axisContainer.name = AXIS_ELEMENT_NAME.axisContainer, axisContainer.id = this._getNodeId("container"), axisContainer.setMode(this.mode), this.axisContainer = axisContainer, container.add(axisContainer), line && line.visible && this.renderLine(axisContainer), items && items.length && (this.data = this._transformItems(items[0]), tick && tick.visible && this.renderTicks(axisContainer), label && label.visible)) {
25204
- const labelGroup = graphicCreator$1.group({
25228
+ const labelGroup = graphicCreator.group({
25205
25229
  x: 0,
25206
25230
  y: 0,
25207
25231
  pickable: !1
@@ -25234,14 +25258,14 @@
25234
25258
  }
25235
25259
  renderTicks(container) {
25236
25260
  const tickLineItems = this.getTickLineItems(),
25237
- tickLineGroup = graphicCreator$1.group({
25261
+ tickLineGroup = graphicCreator.group({
25238
25262
  x: 0,
25239
25263
  y: 0,
25240
25264
  pickable: !1
25241
25265
  });
25242
25266
  tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup), tickLineItems.forEach((item, index) => {
25243
25267
  var _a;
25244
- const line = graphicCreator$1.line(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
25268
+ const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
25245
25269
  if (line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), isEmpty(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.state)) line.states = DEFAULT_STATES$2;else {
25246
25270
  const data = this.data[index],
25247
25271
  tickLineState = merge({}, DEFAULT_STATES$2, this.attribute.tick.state);
@@ -25257,7 +25281,7 @@
25257
25281
  if (subTick && subTick.visible) {
25258
25282
  const subTickLineItems = this.getSubTickLineItems();
25259
25283
  subTickLineItems.length && subTickLineItems.forEach((item, index) => {
25260
- const line = graphicCreator$1.line(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
25284
+ const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
25261
25285
  if (line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), isEmpty(subTick.state)) line.states = DEFAULT_STATES$2;else {
25262
25286
  const subTickLineState = merge({}, DEFAULT_STATES$2, subTick.state);
25263
25287
  Object.keys(subTickLineState).forEach(key => {
@@ -25274,7 +25298,7 @@
25274
25298
  } = this.attribute.label;
25275
25299
  dataFilter && isFunction$1(dataFilter) && (items = dataFilter(items, layer));
25276
25300
  const data = this._transformItems(items),
25277
- labelGroup = graphicCreator$1.group({
25301
+ labelGroup = graphicCreator.group({
25278
25302
  x: 0,
25279
25303
  y: 0,
25280
25304
  pickable: !1
@@ -25283,9 +25307,9 @@
25283
25307
  var _a, _b, _c;
25284
25308
  const labelStyle = this._getLabelAttribute(item, index, data, layer);
25285
25309
  let text;
25286
- if ("rich" === labelStyle.type ? (labelStyle.textConfig = labelStyle.text, labelStyle.width = null !== (_a = labelStyle.width) && void 0 !== _a ? _a : 0, labelStyle.height = null !== (_b = labelStyle.height) && void 0 !== _b ? _b : 0, text = graphicCreator$1.richtext(labelStyle)) : "html" === labelStyle.type ? (labelStyle.textConfig = [], labelStyle.html = Object.assign(Object.assign({
25310
+ if ("rich" === labelStyle.type ? (labelStyle.textConfig = labelStyle.text, labelStyle.width = null !== (_a = labelStyle.width) && void 0 !== _a ? _a : 0, labelStyle.height = null !== (_b = labelStyle.height) && void 0 !== _b ? _b : 0, text = graphicCreator.richtext(labelStyle)) : "html" === labelStyle.type ? (labelStyle.textConfig = [], labelStyle.html = Object.assign(Object.assign({
25287
25311
  dom: labelStyle.text
25288
- }, DEFAULT_HTML_TEXT_SPEC), labelStyle), text = graphicCreator$1.richtext(labelStyle)) : text = graphicCreator$1.text(labelStyle), text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), isEmpty(null === (_c = this.attribute.label) || void 0 === _c ? void 0 : _c.state)) text.states = DEFAULT_STATES$2;else {
25312
+ }, DEFAULT_HTML_TEXT_SPEC), labelStyle), text = graphicCreator.richtext(labelStyle)) : text = graphicCreator.text(labelStyle), text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), isEmpty(null === (_c = this.attribute.label) || void 0 === _c ? void 0 : _c.state)) text.states = DEFAULT_STATES$2;else {
25289
25313
  const labelState = merge({}, DEFAULT_STATES$2, this.attribute.label.state);
25290
25314
  Object.keys(labelState).forEach(key => {
25291
25315
  isFunction$1(labelState[key]) && (labelState[key] = labelState[key](item, index, data, layer));
@@ -25741,7 +25765,7 @@
25741
25765
  if (panel && panel.visible) {
25742
25766
  const axisContainer = this.axisContainer,
25743
25767
  axisContainerBounds = axisContainer.AABBBounds,
25744
- bgRect = graphicCreator$1.rect(Object.assign({
25768
+ bgRect = graphicCreator.rect(Object.assign({
25745
25769
  x: axisContainerBounds.x1,
25746
25770
  y: axisContainerBounds.y1,
25747
25771
  width: axisContainerBounds.width(),
@@ -26001,7 +26025,7 @@
26001
26025
  const minSize = this._getAxisLabelLimitLength(verticalMinSize, layerCount);
26002
26026
  let x, y;
26003
26027
  axisLabelContainerSize = Math.max(axisLabelContainerSize, minSize), "left" === orient ? (x = axisLabelContainerBounds.x2 - axisLabelContainerSize, y = axisLabelContainerBounds.y1) : "right" === orient ? (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y1) : "top" === orient ? (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y2 - axisLabelContainerSize) : "bottom" === orient && (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y1);
26004
- const bgRect = graphicCreator$1.rect({
26028
+ const bgRect = graphicCreator.rect({
26005
26029
  x: x,
26006
26030
  y: y,
26007
26031
  width: isHorizontal ? axisLabelContainerBounds.width() : axisLabelContainerSize,
@@ -26106,7 +26130,7 @@
26106
26130
  this._current = defaultCurrent;
26107
26131
  const parsedPadding = normalizePadding(padding),
26108
26132
  isHorizontal = "horizontal" === layout,
26109
- container = graphicCreator$1.group({
26133
+ container = graphicCreator.group({
26110
26134
  x: 0,
26111
26135
  y: 0
26112
26136
  }),
@@ -26119,7 +26143,7 @@
26119
26143
  nextShape: nextShape
26120
26144
  } = handler;
26121
26145
  preShape || (preShape = isHorizontal ? "triangleLeft" : "triangleUp"), nextShape || (nextShape = isHorizontal ? "triangleRight" : "triangleDown");
26122
- const preHandler = graphicCreator$1.symbol(Object.assign(Object.assign({
26146
+ const preHandler = graphicCreator.symbol(Object.assign(Object.assign({
26123
26147
  strokeBoundsBuffer: 0,
26124
26148
  pickMode: "imprecise"
26125
26149
  }, handlerStyle), {
@@ -26138,7 +26162,7 @@
26138
26162
  }, textStyle)),
26139
26163
  handlerSizeX = isNumber$3(handlerSize) ? handlerSize : handlerSize[0],
26140
26164
  handlerSizeY = isNumber$3(handlerSize) ? handlerSize : handlerSize[1],
26141
- text = graphicCreator$1.text(Object.assign({
26165
+ text = graphicCreator.text(Object.assign({
26142
26166
  x: isHorizontal ? handlerSizeX / 2 + handlerSpace + maxTextWidth / 2 : 0,
26143
26167
  y: isHorizontal ? 0 : handlerSizeY / 2 + handlerSpace + maxTextHeight / 2,
26144
26168
  text: `${defaultCurrent}/${total}`,
@@ -26147,7 +26171,7 @@
26147
26171
  lineHeight: null == textStyle ? void 0 : textStyle.fontSize
26148
26172
  }, textStyle));
26149
26173
  this.text = text, container.add(text);
26150
- const nextHandler = graphicCreator$1.symbol(Object.assign(Object.assign({
26174
+ const nextHandler = graphicCreator.symbol(Object.assign(Object.assign({
26151
26175
  strokeBoundsBuffer: 0,
26152
26176
  pickMode: "imprecise"
26153
26177
  }, handlerStyle), {
@@ -26210,7 +26234,7 @@
26210
26234
  padding = 0
26211
26235
  } = this.attribute,
26212
26236
  parsedPadding = normalizePadding(padding),
26213
- innerView = graphicCreator$1.group({
26237
+ innerView = graphicCreator.group({
26214
26238
  x: parsedPadding[3],
26215
26239
  y: parsedPadding[0],
26216
26240
  pickable: interactive,
@@ -26357,7 +26381,7 @@
26357
26381
  if (!1 === item.visible || isEmpty(items)) return;
26358
26382
  let legendItems = items;
26359
26383
  reversed && (legendItems = null == items ? void 0 : items.reverse());
26360
- const itemsContainer = graphicCreator$1.group({
26384
+ const itemsContainer = graphicCreator.group({
26361
26385
  x: 0,
26362
26386
  y: 0
26363
26387
  });
@@ -26434,15 +26458,15 @@
26434
26458
  backgroundStyle = this._handleStyle(background, item, isSelected, index, items),
26435
26459
  parsedPadding = normalizePadding(padding);
26436
26460
  let itemGroup;
26437
- !1 === background.visible ? (itemGroup = graphicCreator$1.group({
26461
+ !1 === background.visible ? (itemGroup = graphicCreator.group({
26438
26462
  x: 0,
26439
26463
  y: 0,
26440
26464
  cursor: null === (_a = backgroundStyle.style) || void 0 === _a ? void 0 : _a.cursor
26441
- }), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator$1.group(Object.assign({
26465
+ }), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator.group(Object.assign({
26442
26466
  x: 0,
26443
26467
  y: 0
26444
26468
  }, backgroundStyle.style)), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup, backgroundStyle.state)), itemGroup.id = `${null != id ? id : label}-${index}`, itemGroup.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected);
26445
- const innerGroup = graphicCreator$1.group({
26469
+ const innerGroup = graphicCreator.group({
26446
26470
  x: 0,
26447
26471
  y: 0,
26448
26472
  pickable: !1
@@ -26455,7 +26479,7 @@
26455
26479
  if (shapeAttr && !1 !== shapeAttr.visible) {
26456
26480
  const s = get$5(shapeStyle, "style.size", DEFAULT_SHAPE_SIZE);
26457
26481
  shapeSize = isArray$1(s) ? s[0] || 0 : s, shapeSpace = get$5(shapeAttr, "space", DEFAULT_SHAPE_SPACE);
26458
- const itemShape = graphicCreator$1.symbol(Object.assign(Object.assign({
26482
+ const itemShape = graphicCreator.symbol(Object.assign(Object.assign({
26459
26483
  x: 0,
26460
26484
  y: 0,
26461
26485
  symbolType: "circle",
@@ -26469,7 +26493,7 @@
26469
26493
  let focusSpace = 0;
26470
26494
  if (focus) {
26471
26495
  const focusSize = get$5(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
26472
- focusShape = graphicCreator$1.symbol(Object.assign(Object.assign({
26496
+ focusShape = graphicCreator.symbol(Object.assign(Object.assign({
26473
26497
  x: 0,
26474
26498
  y: -focusSize / 2 - 1,
26475
26499
  strokeBoundsBuffer: 0
@@ -26479,7 +26503,7 @@
26479
26503
  boundsPadding: parsedPadding
26480
26504
  })), this._appendDataToShape(focusShape, LEGEND_ELEMENT_NAME.focus, item, itemGroup), focusSpace = focusSize;
26481
26505
  }
26482
- const labelShape = graphicCreator$1.text(Object.assign(Object.assign({
26506
+ const labelShape = graphicCreator.text(Object.assign(Object.assign({
26483
26507
  x: shapeSize / 2 + shapeSpace,
26484
26508
  y: 0,
26485
26509
  textAlign: "start",
@@ -26492,7 +26516,7 @@
26492
26516
  const labelSpace = get$5(labelAttr, "space", DEFAULT_LABEL_SPACE);
26493
26517
  if (isValid$1(value)) {
26494
26518
  const valueSpace = get$5(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
26495
- valueShape = graphicCreator$1.text(Object.assign(Object.assign({
26519
+ valueShape = graphicCreator.text(Object.assign(Object.assign({
26496
26520
  x: 0,
26497
26521
  y: 0,
26498
26522
  textAlign: "start",
@@ -26599,7 +26623,7 @@
26599
26623
  });
26600
26624
  }
26601
26625
  pager.defaultCurrent > 1 && (isHorizontal ? itemsContainer.setAttribute("y", -(pager.defaultCurrent - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(pager.defaultCurrent - 1) * (pageWidth + spaceCol)));
26602
- const clipGroup = graphicCreator$1.group({
26626
+ const clipGroup = graphicCreator.group({
26603
26627
  x: 0,
26604
26628
  y: renderStartY,
26605
26629
  width: pageWidth,
@@ -27904,7 +27928,7 @@
27904
27928
  };
27905
27929
  const isHorizontal = "horizontal" === layout;
27906
27930
  this._isHorizontal = isHorizontal;
27907
- const innerView = graphicCreator$1.group({
27931
+ const innerView = graphicCreator.group({
27908
27932
  x: 0,
27909
27933
  y: 0
27910
27934
  });
@@ -27912,7 +27936,7 @@
27912
27936
  let startTextShape,
27913
27937
  startLen = 0;
27914
27938
  if (startText && startText.visible) {
27915
- startTextShape = graphicCreator$1.text(Object.assign({
27939
+ startTextShape = graphicCreator.text(Object.assign({
27916
27940
  x: isHorizontal ? 0 : railWidth / 2,
27917
27941
  y: isHorizontal ? railHeight / 2 : 0,
27918
27942
  textAlign: isHorizontal ? "start" : "center",
@@ -27923,19 +27947,19 @@
27923
27947
  const space = isValid$1(startText.space) ? startText.space : 0;
27924
27948
  startLen += (isHorizontal ? startTextShape.AABBBounds.width() : startTextShape.AABBBounds.height()) + space;
27925
27949
  }
27926
- const mainContainer = graphicCreator$1.group({
27950
+ const mainContainer = graphicCreator.group({
27927
27951
  x: isHorizontal ? startLen : 0,
27928
27952
  y: isHorizontal ? 0 : startLen
27929
27953
  });
27930
27954
  innerView.add(mainContainer);
27931
- const railContainer = graphicCreator$1.group({
27955
+ const railContainer = graphicCreator.group({
27932
27956
  x: 0,
27933
27957
  y: 0
27934
27958
  });
27935
27959
  let endTextShape;
27936
27960
  if (railContainer.name = SLIDER_ELEMENT_NAME.railContainer, this._railContainer = railContainer, mainContainer.add(railContainer), this._renderRail(railContainer), startLen += isHorizontal ? railWidth : railHeight, endText && endText.visible) {
27937
27961
  const space = isValid$1(endText.space) ? endText.space : 0;
27938
- endTextShape = graphicCreator$1.text(Object.assign({
27962
+ endTextShape = graphicCreator.text(Object.assign({
27939
27963
  x: isHorizontal ? startLen + space : railWidth / 2,
27940
27964
  y: isHorizontal ? railHeight / 2 : startLen + space,
27941
27965
  textAlign: isHorizontal ? "start" : "center",
@@ -27955,7 +27979,7 @@
27955
27979
  } = this.attribute;
27956
27980
  let cursor = "default";
27957
27981
  !1 !== slidable && (cursor = "pointer");
27958
- const railShape = graphicCreator$1.rect(Object.assign({
27982
+ const railShape = graphicCreator.rect(Object.assign({
27959
27983
  x: 0,
27960
27984
  y: 0,
27961
27985
  width: railWidth,
@@ -28031,7 +28055,7 @@
28031
28055
  const isHorizontal = this._isHorizontal,
28032
28056
  railLen = isHorizontal ? railWidth : railHeight;
28033
28057
  range || (startValue = min);
28034
- const trackContainer = graphicCreator$1.group({
28058
+ const trackContainer = graphicCreator.group({
28035
28059
  x: 0,
28036
28060
  y: 0,
28037
28061
  width: railWidth,
@@ -28046,7 +28070,7 @@
28046
28070
  cursor = !1 === slidable ? "default" : !1 === range || !1 === draggableTrack ? "pointer" : getDefaultCursor(isHorizontal);
28047
28071
  const trackWidth = max === min ? railLen : (endValue - startValue) / (max - min) * railLen,
28048
28072
  startPos = max === min ? 0 : (startValue - min) / (max - min) * railLen,
28049
- track = graphicCreator$1.rect(Object.assign({
28073
+ track = graphicCreator.rect(Object.assign({
28050
28074
  x: isHorizontal ? startPos : 0,
28051
28075
  y: isHorizontal ? 0 : startPos,
28052
28076
  width: isHorizontal ? trackWidth : railWidth,
@@ -28056,7 +28080,7 @@
28056
28080
  track.name = SLIDER_ELEMENT_NAME.track, this._track = track, trackContainer.add(track), container.add(trackContainer);
28057
28081
  }
28058
28082
  _renderHandler(style) {
28059
- return graphicCreator$1.symbol(style);
28083
+ return graphicCreator.symbol(style);
28060
28084
  }
28061
28085
  _renderHandlerText(value, position) {
28062
28086
  var _a, _b, _c;
@@ -28080,7 +28104,7 @@
28080
28104
  cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
28081
28105
  };
28082
28106
  isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = handlerStart, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = handlerStart, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = handlerStart) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = handlerStart);
28083
- return graphicCreator$1.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
28107
+ return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
28084
28108
  }
28085
28109
  _bindEvents() {
28086
28110
  if (this.attribute.disableTriggerEvent) return;
@@ -28423,7 +28447,7 @@
28423
28447
  sizeBackground: sizeBackground,
28424
28448
  disableTriggerEvent: disableTriggerEvent
28425
28449
  } = this.attribute,
28426
- mainContainer = graphicCreator$1.group({
28450
+ mainContainer = graphicCreator.group({
28427
28451
  x: 0,
28428
28452
  y: 0
28429
28453
  });
@@ -28461,7 +28485,7 @@
28461
28485
  let path,
28462
28486
  start = 0;
28463
28487
  "horizontal" === layout ? "top" === align ? (path = `M0,0L${railWidth},0L${railWidth},12Z`, start = railHeight) : (path = `M0,12L${railWidth},12L${railWidth},0Z`, slider.setAttribute("y", 12)) : "left" === align ? path = `M${railWidth},0L${railWidth},0L${railWidth + 12},${railHeight}L${railWidth},${railHeight}Z` : (path = `M0,${railHeight}L12,${railHeight}L12,0Z`, slider.setAttribute("x", 12));
28464
- const background = graphicCreator$1.path(Object.assign(Object.assign({
28488
+ const background = graphicCreator.path(Object.assign(Object.assign({
28465
28489
  x: 0,
28466
28490
  y: start,
28467
28491
  path: path
@@ -29391,25 +29415,6 @@
29391
29415
 
29392
29416
  const DEFAULT_CONTINUOUS_TICK_COUNT$1 = 5;
29393
29417
 
29394
- class GraphicCreator {
29395
- constructor() {
29396
- this.store = new Map();
29397
- }
29398
- RegisterGraphicCreator(name, cb) {
29399
- this.store.set(name, cb), this[name] = cb;
29400
- }
29401
- CreateGraphic(name, params) {
29402
- const cb = this.store.get(name);
29403
- return cb ? cb(params) : null;
29404
- }
29405
- }
29406
- const graphicCreator = new GraphicCreator();
29407
-
29408
- let text;
29409
- function getTextBounds(params) {
29410
- return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params), text.AABBBounds;
29411
- }
29412
-
29413
29418
  const initTextMeasure$1 = (textSpec, option, useNaiveCanvas, defaultFontParams) => new TextMeasure(Object.assign({
29414
29419
  defaultFontParams: Object.assign({
29415
29420
  fontFamily: "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",
@@ -31767,6 +31772,24 @@
31767
31772
  }
31768
31773
  }
31769
31774
  }
31775
+ function getCellCornerRadius(col, row, table) {
31776
+ const tableCornerRadius = table.theme.frameStyle.cornerRadius;
31777
+ if (tableCornerRadius) {
31778
+ if (col === 0 && row === 0) {
31779
+ return [tableCornerRadius, 0, 0, 0];
31780
+ }
31781
+ else if (col === table.colCount - 1 && row === 0) {
31782
+ return [0, tableCornerRadius, 0, 0];
31783
+ }
31784
+ else if (col === 0 && row === table.rowCount - 1) {
31785
+ return [0, 0, 0, tableCornerRadius];
31786
+ }
31787
+ else if (col === table.colCount - 1 && row === table.rowCount - 1) {
31788
+ return [0, 0, tableCornerRadius, 0];
31789
+ }
31790
+ }
31791
+ return 0;
31792
+ }
31770
31793
 
31771
31794
  let Icon$1 = class Icon extends Image$2 {
31772
31795
  role;
@@ -32735,7 +32758,8 @@
32735
32758
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
32736
32759
  cursor: cellTheme?.group?.cursor ?? undefined,
32737
32760
  lineCap: 'square',
32738
- clip: true
32761
+ clip: true,
32762
+ cornerRadius: cellTheme.group.cornerRadius
32739
32763
  });
32740
32764
  cellGroup.role = 'cell';
32741
32765
  cellGroup.col = col;
@@ -33306,7 +33330,8 @@
33306
33330
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
33307
33331
  cursor: cellTheme?.group?.cursor ?? undefined,
33308
33332
  lineCap: 'square',
33309
- clip: true
33333
+ clip: true,
33334
+ cornerRadius: cellTheme.group.cornerRadius
33310
33335
  });
33311
33336
  cellGroup.role = 'cell';
33312
33337
  cellGroup.col = col;
@@ -33684,7 +33709,8 @@
33684
33709
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
33685
33710
  cursor: cellTheme?.group?.cursor ?? undefined,
33686
33711
  lineCap: 'square',
33687
- clip: true
33712
+ clip: true,
33713
+ cornerRadius: cellTheme.group.cornerRadius
33688
33714
  });
33689
33715
  cellGroup.role = 'cell';
33690
33716
  cellGroup.col = col;
@@ -34409,7 +34435,8 @@
34409
34435
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34410
34436
  cursor: cellTheme?.group?.cursor ?? undefined,
34411
34437
  lineCap: 'square',
34412
- clip: true
34438
+ clip: true,
34439
+ cornerRadius: cellTheme.group.cornerRadius
34413
34440
  });
34414
34441
  cellGroup.role = 'cell';
34415
34442
  cellGroup.col = col;
@@ -34473,7 +34500,8 @@
34473
34500
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34474
34501
  cursor: cellTheme?.group?.cursor ?? undefined,
34475
34502
  lineCap: 'square',
34476
- clip: true
34503
+ clip: true,
34504
+ cornerRadius: cellTheme.group.cornerRadius
34477
34505
  });
34478
34506
  cellGroup.role = 'cell';
34479
34507
  cellGroup.col = col;
@@ -34564,7 +34592,8 @@
34564
34592
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34565
34593
  cursor: cellTheme?.group?.cursor ?? undefined,
34566
34594
  lineCap: 'square',
34567
- clip: true
34595
+ clip: true,
34596
+ cornerRadius: cellTheme.group.cornerRadius
34568
34597
  });
34569
34598
  cellGroup.role = 'cell';
34570
34599
  cellGroup.col = col;
@@ -34838,6 +34867,7 @@
34838
34867
  isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
34839
34868
  }
34840
34869
  let cellTheme = getStyleTheme(cellStyle, table, isMerge ? range.start.col : col, isMerge ? range.start.row : row, getProp).theme;
34870
+ cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table);
34841
34871
  if (!addNew && !isMerge && canUseFastUpdate(col, row, oldCellGroup, autoWrapText, table)) {
34842
34872
  const cellWidth = table.getColWidth(col);
34843
34873
  const cellHeight = table.getRowHeight(row);
@@ -34850,6 +34880,7 @@
34850
34880
  strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
34851
34881
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34852
34882
  cursor: cellTheme?.group?.cursor ?? undefined,
34883
+ cornerRadius: cellTheme?.group?.cornerRadius ?? 0,
34853
34884
  y: table.scenegraph.getCellGroupY(row)
34854
34885
  });
34855
34886
  const textMark = oldCellGroup.getChildByName('text');
@@ -34922,6 +34953,7 @@
34922
34953
  customStyle = customMergeStyle;
34923
34954
  if (customStyle) {
34924
34955
  cellTheme = getStyleTheme(customStyle, table, range.start.col, range.start.row, getProp).theme;
34956
+ cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table);
34925
34957
  }
34926
34958
  }
34927
34959
  }
@@ -35059,6 +35091,7 @@
35059
35091
  }
35060
35092
  const cellStyle = customStyle || table._getCellStyle(col, row);
35061
35093
  const cellTheme = getStyleTheme(cellStyle, table, range ? range.start.col : col, range ? range.start.row : row, getProp).theme;
35094
+ cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table);
35062
35095
  cellTheme.group.width = colWidth;
35063
35096
  cellTheme.group.height = Array.isArray(defaultRowHeight) ? defaultRowHeight[row] : defaultRowHeight;
35064
35097
  if (cellTheme._vtable.padding) {
@@ -38116,6 +38149,76 @@
38116
38149
  });
38117
38150
  }
38118
38151
  }
38152
+ function updateCornerRadius(table) {
38153
+ if (!table.theme.frameStyle.cornerRadius) {
38154
+ return;
38155
+ }
38156
+ const cornerRadius = table.theme.frameStyle.cornerRadius;
38157
+ const { cornerHeaderGroup, colHeaderGroup, rowHeaderGroup, bodyGroup, rightTopCornerGroup, leftBottomCornerGroup, rightBottomCornerGroup, rightFrozenGroup, bottomFrozenGroup } = table.scenegraph;
38158
+ cornerHeaderGroup.setAttribute('cornerRadius', 0);
38159
+ colHeaderGroup.setAttribute('cornerRadius', 0);
38160
+ rowHeaderGroup.setAttribute('cornerRadius', 0);
38161
+ bodyGroup.setAttribute('cornerRadius', 0);
38162
+ rightTopCornerGroup.setAttribute('cornerRadius', 0);
38163
+ leftBottomCornerGroup.setAttribute('cornerRadius', 0);
38164
+ rightBottomCornerGroup.setAttribute('cornerRadius', 0);
38165
+ rightFrozenGroup.setAttribute('cornerRadius', 0);
38166
+ bottomFrozenGroup.setAttribute('cornerRadius', 0);
38167
+ if (cornerHeaderGroup.attribute.width > 0 && cornerHeaderGroup.attribute.height > 0) {
38168
+ setCornerRadius(cornerHeaderGroup, [cornerRadius, 0, 0, 0]);
38169
+ }
38170
+ else if (colHeaderGroup.attribute.height > 0) {
38171
+ setCornerRadius(colHeaderGroup, [cornerRadius, 0, 0, 0]);
38172
+ }
38173
+ else if (rowHeaderGroup.attribute.width > 0) {
38174
+ setCornerRadius(rowHeaderGroup, [cornerRadius, 0, 0, 0]);
38175
+ }
38176
+ else {
38177
+ setCornerRadius(bodyGroup, [cornerRadius, 0, 0, 0]);
38178
+ }
38179
+ if (leftBottomCornerGroup.attribute.width > 0 && leftBottomCornerGroup.attribute.height > 0) {
38180
+ setCornerRadius(leftBottomCornerGroup, [0, 0, 0, cornerRadius]);
38181
+ }
38182
+ else if (bottomFrozenGroup.attribute.height > 0) {
38183
+ setCornerRadius(bottomFrozenGroup, [0, 0, 0, cornerRadius]);
38184
+ }
38185
+ else if (rowHeaderGroup.attribute.width > 0) {
38186
+ setCornerRadius(rowHeaderGroup, [0, 0, 0, cornerRadius]);
38187
+ }
38188
+ else {
38189
+ setCornerRadius(bodyGroup, [0, 0, 0, cornerRadius]);
38190
+ }
38191
+ if (rightTopCornerGroup.attribute.width > 0 && rightTopCornerGroup.attribute.height > 0) {
38192
+ setCornerRadius(rightTopCornerGroup, [0, cornerRadius, 0, 0]);
38193
+ }
38194
+ else if (colHeaderGroup.attribute.height > 0) {
38195
+ setCornerRadius(colHeaderGroup, [0, cornerRadius, 0, 0]);
38196
+ }
38197
+ else if (rightFrozenGroup.attribute.width > 0) {
38198
+ setCornerRadius(rightFrozenGroup, [0, cornerRadius, 0, 0]);
38199
+ }
38200
+ else {
38201
+ setCornerRadius(bodyGroup, [0, cornerRadius, 0, 0]);
38202
+ }
38203
+ if (rightBottomCornerGroup.attribute.width > 0 && rightBottomCornerGroup.attribute.height > 0) {
38204
+ setCornerRadius(rightBottomCornerGroup, [0, 0, cornerRadius, 0]);
38205
+ }
38206
+ else if (rightFrozenGroup.attribute.width > 0) {
38207
+ setCornerRadius(rightFrozenGroup, [0, 0, cornerRadius, 0]);
38208
+ }
38209
+ else if (bottomFrozenGroup.attribute.height > 0) {
38210
+ setCornerRadius(bottomFrozenGroup, [0, 0, cornerRadius, 0]);
38211
+ }
38212
+ else {
38213
+ setCornerRadius(bodyGroup, [0, 0, cornerRadius, 0]);
38214
+ }
38215
+ }
38216
+ function setCornerRadius(group, cornerRadius) {
38217
+ group.setAttribute('cornerRadius', cornerRadius);
38218
+ if (group.border) {
38219
+ group.border.setAttribute('cornerRadius', cornerRadius);
38220
+ }
38221
+ }
38119
38222
 
38120
38223
  /*! *****************************************************************************
38121
38224
  Copyright (c) Microsoft Corporation.
@@ -38779,7 +38882,7 @@
38779
38882
  useStyle = true;
38780
38883
  order = 0;
38781
38884
  drawShape(group, context, x, y, doFill, doStroke, fVisible, sVisible, groupAttribute, drawContext, fillCb, strokeCb) {
38782
- const { lineWidth = groupAttribute.lineWidth, stroke = groupAttribute.stroke, lineDash = groupAttribute.lineDash, strokeArrayWidth = groupAttribute.strokeArrayWidth, strokeArrayColor = groupAttribute.strokeArrayColor, notAdjustPos } = group.attribute;
38885
+ const { lineWidth = groupAttribute.lineWidth, stroke = groupAttribute.stroke, lineDash = groupAttribute.lineDash, strokeArrayWidth = groupAttribute.strokeArrayWidth, strokeArrayColor = groupAttribute.strokeArrayColor, notAdjustPos, cornerRadius = groupAttribute.cornerRadius } = group.attribute;
38783
38886
  const { width = groupAttribute.width, height = groupAttribute.height } = group.attribute;
38784
38887
  if (notAdjustPos !== true &&
38785
38888
  stroke &&
@@ -38792,7 +38895,12 @@
38792
38895
  context.beginPath();
38793
38896
  x = Math.floor(x) + 0.5;
38794
38897
  y = Math.floor(y) + 0.5;
38795
- context.rect(x, y, widthFroDraw, heightFroDraw);
38898
+ if (cornerRadius) {
38899
+ createRectPath(context, x, y, widthFroDraw, heightFroDraw, cornerRadius);
38900
+ }
38901
+ else {
38902
+ context.rect(x, y, widthFroDraw, heightFroDraw);
38903
+ }
38796
38904
  context.setStrokeStyle(group, group.attribute, x, y, groupAttribute);
38797
38905
  context.stroke();
38798
38906
  }
@@ -40324,7 +40432,7 @@
40324
40432
  let maxHeight = 0;
40325
40433
  for (let col = this.table.colCount - this.table.rightFrozenColCount; col < this.table.colCount; col++) {
40326
40434
  const colGroup = this.table.scenegraph.getColGroup(col);
40327
- const cellLocation = this.table.isListTable() ? 'body' : 'rowHeader';
40435
+ const cellLocation = this.table.isPivotChart() ? 'rowHeader' : 'body';
40328
40436
  const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
40329
40437
  maxHeight = Math.max(maxHeight, height);
40330
40438
  this.table.scenegraph.rightFrozenGroup.setAttribute('height', maxHeight);
@@ -42166,7 +42274,7 @@
42166
42274
  fontFamily: DefaultTextStyle.fontFamily,
42167
42275
  fontSize: DefaultTextStyle.fontSize
42168
42276
  },
42169
- getTextBounds: useNaiveCanvas ? undefined : getTextBounds$1,
42277
+ getTextBounds: useNaiveCanvas ? undefined : getTextBounds,
42170
42278
  specialCharSet: `{}()//&-/: .,@%'"~…${TextMeasure.ALPHABET_CHAR_SET}${TextMeasure.ALPHABET_CHAR_SET.toUpperCase()}0123456789`,
42171
42279
  ...(option ?? {})
42172
42280
  }, textSpec);
@@ -43892,20 +44000,20 @@
43892
44000
  this.bodyGroup.appendChild(this.bodyGroup.border);
43893
44001
  updateFrameBorderSize(this.bodyGroup);
43894
44002
  if (this.rowHeaderGroup.attribute.width === 0) {
43895
- updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, [true, true, true, true]);
44003
+ updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle);
43896
44004
  }
43897
44005
  else {
43898
- updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, [true, true, true, false]);
44006
+ updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle);
43899
44007
  }
43900
44008
  }
43901
44009
  if (this.colHeaderGroup.border) {
43902
44010
  this.colHeaderGroup.appendChild(this.colHeaderGroup.border);
43903
44011
  updateFrameBorderSize(this.colHeaderGroup);
43904
44012
  if (this.cornerHeaderGroup.attribute.width === 0) {
43905
- updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, [true, true, true, true]);
44013
+ updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle);
43906
44014
  }
43907
44015
  else {
43908
- updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, [true, true, true, false]);
44016
+ updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle);
43909
44017
  }
43910
44018
  }
43911
44019
  if (this.rowHeaderGroup.border) {
@@ -43916,6 +44024,7 @@
43916
44024
  this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border);
43917
44025
  updateFrameBorderSize(this.cornerHeaderGroup);
43918
44026
  }
44027
+ updateCornerRadius(this.table);
43919
44028
  }
43920
44029
  sortCell() {
43921
44030
  if (this.isPivot) ;
@@ -46349,7 +46458,7 @@
46349
46458
  if (!eventArgsSet?.eventArgs) {
46350
46459
  return;
46351
46460
  }
46352
- if (eventManager.touchSetTimeout || e.pointerType !== 'touch') {
46461
+ if (eventManager.touchSetTimeout) {
46353
46462
  if (e.pointerType === 'touch') {
46354
46463
  const eventArgsSet = getCellEventArgsSet(e);
46355
46464
  if (eventManager.touchSetTimeout) {
@@ -46359,34 +46468,34 @@
46359
46468
  eventManager.touchSetTimeout = undefined;
46360
46469
  }
46361
46470
  }
46362
- if (table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
46363
- const { col, row } = eventArgsSet.eventArgs;
46364
- const cellInfo = table.getCellInfo(col, row);
46365
- let icon;
46366
- let position;
46367
- if (eventArgsSet.eventArgs?.target) {
46368
- const iconInfo = getIconAndPositionFromTarget(eventArgsSet.eventArgs?.target);
46369
- if (iconInfo) {
46370
- icon = iconInfo.icon;
46371
- position = iconInfo.position;
46372
- }
46471
+ }
46472
+ if (!eventManager.touchMove && table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
46473
+ const { col, row } = eventArgsSet.eventArgs;
46474
+ const cellInfo = table.getCellInfo(col, row);
46475
+ let icon;
46476
+ let position;
46477
+ if (eventArgsSet.eventArgs?.target) {
46478
+ const iconInfo = getIconAndPositionFromTarget(eventArgsSet.eventArgs?.target);
46479
+ if (iconInfo) {
46480
+ icon = iconInfo.icon;
46481
+ position = iconInfo.position;
46373
46482
  }
46374
- const cellsEvent = {
46375
- ...cellInfo,
46376
- event: e.nativeEvent,
46377
- federatedEvent: e,
46378
- cells: [],
46379
- targetIcon: icon
46380
- ? {
46381
- name: icon.name,
46382
- position: position,
46383
- funcType: icon.attribute.funcType
46384
- }
46385
- : undefined,
46386
- target: eventArgsSet?.eventArgs?.target
46387
- };
46388
- table.fireListeners(TABLE_EVENT_TYPE.CLICK_CELL, cellsEvent);
46389
46483
  }
46484
+ const cellsEvent = {
46485
+ ...cellInfo,
46486
+ event: e.nativeEvent,
46487
+ federatedEvent: e,
46488
+ cells: [],
46489
+ targetIcon: icon
46490
+ ? {
46491
+ name: icon.name,
46492
+ position: position,
46493
+ funcType: icon.attribute.funcType
46494
+ }
46495
+ : undefined,
46496
+ target: eventArgsSet?.eventArgs?.target
46497
+ };
46498
+ table.fireListeners(TABLE_EVENT_TYPE.CLICK_CELL, cellsEvent);
46390
46499
  }
46391
46500
  });
46392
46501
  table.scenegraph.stage.addEventListener('pointerdown', (e) => {
@@ -49068,11 +49177,6 @@
49068
49177
  return;
49069
49178
  }
49070
49179
  const { col, row } = e;
49071
- if (e.related) {
49072
- if (this._isBindCell(col, row)) {
49073
- return;
49074
- }
49075
- }
49076
49180
  let tooltipOption;
49077
49181
  const headerDescription = table.getHeaderDescription(col, row);
49078
49182
  if (headerDescription) {
@@ -49129,11 +49233,6 @@
49129
49233
  }
49130
49234
  });
49131
49235
  table.on(TABLE_EVENT_TYPE.MOUSELEAVE_CELL, e => {
49132
- if (e.related) {
49133
- if (this._isBindCell(e.related.col, e.related.row)) {
49134
- return;
49135
- }
49136
- }
49137
49236
  this._unbindFromCell();
49138
49237
  });
49139
49238
  table.on(TABLE_EVENT_TYPE.SELECTED_CELL, e => {
@@ -50206,7 +50305,7 @@
50206
50305
  return TABLE_EVENT_TYPE;
50207
50306
  }
50208
50307
  options;
50209
- version = "0.17.9-alpha.8";
50308
+ version = "0.17.10-alpha.0";
50210
50309
  pagination;
50211
50310
  id = `VTable${Date.now()}`;
50212
50311
  headerStyleCache;
@@ -56879,11 +56978,12 @@
56879
56978
  const rowDimension = rowHeaderPaths[i];
56880
56979
  for (let j = 0; j < rowArr.length; j++) {
56881
56980
  const dimension = rowArr[j];
56882
- if (((!isValid$1(rowDimension.indicatorKey) &&
56981
+ if ((!isValid$1(rowDimension.indicatorKey) &&
56883
56982
  dimension.dimensionKey === rowDimension.dimensionKey &&
56884
56983
  dimension.value === rowDimension.value) ||
56885
- (isValid$1(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey)) &&
56886
- dimension.value === rowDimension.value) {
56984
+ (isValid$1(rowDimension.indicatorKey) &&
56985
+ dimension.indicatorKey === rowDimension.indicatorKey &&
56986
+ (!rowDimension.value || dimension.value === rowDimension.value))) {
56887
56987
  rowArr = dimension.children;
56888
56988
  if (needLowestLevel && !rowArr) {
56889
56989
  rowDimensionFinded = dimension;
@@ -57966,15 +58066,19 @@
57966
58066
  this.needSplitPositiveAndNegative = needSplitPositiveAndNegative ?? false;
57967
58067
  this.rowsIsTotal = new Array(this.rows?.length ?? 0).fill(false);
57968
58068
  this.colsIsTotal = new Array(this.columns?.length ?? 0).fill(false);
57969
- for (let i = 0, len = this.totals?.row?.subTotalsDimensions?.length; i < len; i++) {
57970
- const dimension = this.totals.row.subTotalsDimensions[i];
57971
- const dimensionIndex = this.rows.indexOf(dimension);
57972
- this.rowsIsTotal[dimensionIndex] = true;
58069
+ if (this.totals?.row?.showSubTotals) {
58070
+ for (let i = 0, len = this.totals?.row?.subTotalsDimensions?.length; i < len; i++) {
58071
+ const dimension = this.totals.row.subTotalsDimensions[i];
58072
+ const dimensionIndex = this.rows.indexOf(dimension);
58073
+ this.rowsIsTotal[dimensionIndex] = true;
58074
+ }
57973
58075
  }
57974
- for (let i = 0, len = this.totals?.column?.subTotalsDimensions?.length; i < len; i++) {
57975
- const dimension = this.totals.column.subTotalsDimensions[i];
57976
- const dimensionIndex = this.columns.indexOf(dimension);
57977
- this.colsIsTotal[dimensionIndex] = true;
58076
+ if (this.totals?.column?.showSubTotals) {
58077
+ for (let i = 0, len = this.totals?.column?.subTotalsDimensions?.length; i < len; i++) {
58078
+ const dimension = this.totals.column.subTotalsDimensions[i];
58079
+ const dimensionIndex = this.columns.indexOf(dimension);
58080
+ this.colsIsTotal[dimensionIndex] = true;
58081
+ }
57978
58082
  }
57979
58083
  this.setRecords(records);
57980
58084
  }
@@ -60493,6 +60597,55 @@
60493
60597
  }
60494
60598
  return null;
60495
60599
  }
60600
+ getCellAddressByRecord(record) {
60601
+ const rowHeaderPaths = [];
60602
+ const colHeaderPaths = [];
60603
+ const recordKeyMapToIndicatorKeys = {};
60604
+ const indicatorRecordKeys = [];
60605
+ this.dataset.dataConfig.aggregationRules.forEach(aggregationRule => {
60606
+ if (typeof aggregationRule.field === 'string') {
60607
+ recordKeyMapToIndicatorKeys[aggregationRule.field] = aggregationRule.indicatorKey;
60608
+ indicatorRecordKeys.push(aggregationRule.field);
60609
+ }
60610
+ else {
60611
+ for (let i = 0; i < aggregationRule.field.length; i++) {
60612
+ recordKeyMapToIndicatorKeys[aggregationRule.field[i]] = aggregationRule.indicatorKey;
60613
+ indicatorRecordKeys.push(aggregationRule.field[i]);
60614
+ }
60615
+ }
60616
+ });
60617
+ for (const key in record) {
60618
+ if (this.dataset.rows.indexOf(key) >= 0) {
60619
+ rowHeaderPaths.push({
60620
+ dimensionKey: key,
60621
+ value: record[key]
60622
+ });
60623
+ }
60624
+ if (this.dataset.columns.indexOf(key) >= 0) {
60625
+ colHeaderPaths.push({
60626
+ dimensionKey: key,
60627
+ value: record[key]
60628
+ });
60629
+ }
60630
+ if (indicatorRecordKeys.indexOf(key) >= 0) {
60631
+ if (this.dataset.indicatorsAsCol) {
60632
+ colHeaderPaths.push({
60633
+ indicatorKey: recordKeyMapToIndicatorKeys[key]
60634
+ });
60635
+ }
60636
+ else {
60637
+ rowHeaderPaths.push({
60638
+ indicatorKey: recordKeyMapToIndicatorKeys[key]
60639
+ });
60640
+ }
60641
+ }
60642
+ }
60643
+ return this.getCellAddressByHeaderPaths({
60644
+ rowHeaderPaths,
60645
+ colHeaderPaths,
60646
+ cellLocation: 'body'
60647
+ });
60648
+ }
60496
60649
  getChartInstance(cellHeaderPaths) {
60497
60650
  const cellAddr = this.getCellAddressByHeaderPaths(cellHeaderPaths);
60498
60651
  if (cellAddr) {
@@ -61125,7 +61278,7 @@
61125
61278
  return new Tag$1(params ? params.attribute : {});
61126
61279
  }
61127
61280
 
61128
- const version = "0.17.9-alpha.8";
61281
+ const version = "0.17.10-alpha.0";
61129
61282
  function getIcons() {
61130
61283
  return get$2();
61131
61284
  }