@visactor/vtable 0.9.0-alpha.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1210) hide show
  1. package/README.md +152 -0
  2. package/cjs/ListTable.d.ts +38 -0
  3. package/cjs/ListTable.js +258 -0
  4. package/cjs/ListTable.js.map +1 -0
  5. package/cjs/PivotTable.d.ts +50 -0
  6. package/cjs/PivotTable.js +275 -0
  7. package/cjs/PivotTable.js.map +1 -0
  8. package/cjs/body-helper/body-helper.d.ts +14 -0
  9. package/cjs/body-helper/body-helper.js +99 -0
  10. package/cjs/body-helper/body-helper.js.map +1 -0
  11. package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
  12. package/cjs/body-helper/style/ImageStyle.js +24 -0
  13. package/cjs/body-helper/style/ImageStyle.js.map +1 -0
  14. package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
  15. package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
  16. package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
  17. package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
  18. package/cjs/body-helper/style/NumberStyle.js +24 -0
  19. package/cjs/body-helper/style/NumberStyle.js.map +1 -0
  20. package/cjs/body-helper/style/ProgressBarStyle.d.ts +52 -0
  21. package/cjs/body-helper/style/ProgressBarStyle.js +126 -0
  22. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
  23. package/cjs/body-helper/style/Style.d.ts +85 -0
  24. package/cjs/body-helper/style/Style.js +200 -0
  25. package/cjs/body-helper/style/Style.js.map +1 -0
  26. package/cjs/body-helper/style.d.ts +10 -0
  27. package/cjs/body-helper/style.js +52 -0
  28. package/cjs/body-helper/style.js.map +1 -0
  29. package/cjs/chartType.d.ts +3 -0
  30. package/cjs/chartType.js +14 -0
  31. package/cjs/chartType.js.map +1 -0
  32. package/cjs/core/BaseTable.d.ts +287 -0
  33. package/cjs/core/BaseTable.js +1272 -0
  34. package/cjs/core/BaseTable.js.map +1 -0
  35. package/cjs/core/FouseInput.d.ts +11 -0
  36. package/cjs/core/FouseInput.js +38 -0
  37. package/cjs/core/FouseInput.js.map +1 -0
  38. package/cjs/core/TABLE_EVENT_TYPE.d.ts +30 -0
  39. package/cjs/core/TABLE_EVENT_TYPE.js +34 -0
  40. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
  41. package/cjs/core/tableHelper.d.ts +28 -0
  42. package/cjs/core/tableHelper.js +141 -0
  43. package/cjs/core/tableHelper.js.map +1 -0
  44. package/cjs/core.d.ts +3 -0
  45. package/cjs/core.js +24 -0
  46. package/cjs/core.js.map +1 -0
  47. package/cjs/data/CachedDataSource.d.ts +16 -0
  48. package/cjs/data/CachedDataSource.js +54 -0
  49. package/cjs/data/CachedDataSource.js.map +1 -0
  50. package/cjs/data/DataSource.d.ts +64 -0
  51. package/cjs/data/DataSource.js +294 -0
  52. package/cjs/data/DataSource.js.map +1 -0
  53. package/cjs/data/FilterDataSource.d.ts +1 -0
  54. package/cjs/data/FilterDataSource.js +1 -0
  55. package/cjs/data/FilterDataSource.js.map +1 -0
  56. package/cjs/data.d.ts +4 -0
  57. package/cjs/data.js +24 -0
  58. package/cjs/data.js.map +1 -0
  59. package/cjs/dataset/DataStatistics.d.ts +10 -0
  60. package/cjs/dataset/DataStatistics.js +81 -0
  61. package/cjs/dataset/DataStatistics.js.map +1 -0
  62. package/cjs/dataset/dataset.d.ts +72 -0
  63. package/cjs/dataset/dataset.js +490 -0
  64. package/cjs/dataset/dataset.js.map +1 -0
  65. package/cjs/dataset/flatDataToObject.d.ts +31 -0
  66. package/cjs/dataset/flatDataToObject.js +71 -0
  67. package/cjs/dataset/flatDataToObject.js.map +1 -0
  68. package/cjs/event/EventHandler.d.ts +45 -0
  69. package/cjs/event/EventHandler.js +120 -0
  70. package/cjs/event/EventHandler.js.map +1 -0
  71. package/cjs/event/EventTarget.d.ts +11 -0
  72. package/cjs/event/EventTarget.js +59 -0
  73. package/cjs/event/EventTarget.js.map +1 -0
  74. package/cjs/event/chart.d.ts +2 -0
  75. package/cjs/event/chart.js +24 -0
  76. package/cjs/event/chart.js.map +1 -0
  77. package/cjs/event/drill.d.ts +3 -0
  78. package/cjs/event/drill.js +23 -0
  79. package/cjs/event/drill.js.map +1 -0
  80. package/cjs/event/event.d.ts +35 -0
  81. package/cjs/event/event.js +426 -0
  82. package/cjs/event/event.js.map +1 -0
  83. package/cjs/event/media-click.d.ts +2 -0
  84. package/cjs/event/media-click.js +58 -0
  85. package/cjs/event/media-click.js.map +1 -0
  86. package/cjs/event/scroll.d.ts +2 -0
  87. package/cjs/event/scroll.js +23 -0
  88. package/cjs/event/scroll.js.map +1 -0
  89. package/cjs/header-helper/header-helper.d.ts +26 -0
  90. package/cjs/header-helper/header-helper.js +214 -0
  91. package/cjs/header-helper/header-helper.js.map +1 -0
  92. package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
  93. package/cjs/header-helper/style/ImageStyle.js +25 -0
  94. package/cjs/header-helper/style/ImageStyle.js.map +1 -0
  95. package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  96. package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
  97. package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  98. package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
  99. package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
  100. package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
  101. package/cjs/header-helper/style/Style.d.ts +88 -0
  102. package/cjs/header-helper/style/Style.js +208 -0
  103. package/cjs/header-helper/style/Style.js.map +1 -0
  104. package/cjs/header-helper/style.d.ts +5 -0
  105. package/cjs/header-helper/style.js +30 -0
  106. package/cjs/header-helper/style.js.map +1 -0
  107. package/cjs/icons.d.ts +4 -0
  108. package/cjs/icons.js +241 -0
  109. package/cjs/icons.js.map +1 -0
  110. package/cjs/index.d.ts +17 -0
  111. package/cjs/index.js +95 -0
  112. package/cjs/index.js.map +1 -0
  113. package/cjs/layout/index.d.ts +1 -0
  114. package/cjs/layout/index.js +15 -0
  115. package/cjs/layout/index.js.map +1 -0
  116. package/cjs/layout/pivot-header-layout.d.ts +155 -0
  117. package/cjs/layout/pivot-header-layout.js +897 -0
  118. package/cjs/layout/pivot-header-layout.js.map +1 -0
  119. package/cjs/layout/pivot-layout.d.ts +86 -0
  120. package/cjs/layout/pivot-layout.js +422 -0
  121. package/cjs/layout/pivot-layout.js.map +1 -0
  122. package/cjs/layout/simple-header-layout.d.ts +67 -0
  123. package/cjs/layout/simple-header-layout.js +413 -0
  124. package/cjs/layout/simple-header-layout.js.map +1 -0
  125. package/cjs/menu/dom/BaseMenu.d.ts +15 -0
  126. package/cjs/menu/dom/BaseMenu.js +30 -0
  127. package/cjs/menu/dom/BaseMenu.js.map +1 -0
  128. package/cjs/menu/dom/Menu.d.ts +9 -0
  129. package/cjs/menu/dom/Menu.js +24 -0
  130. package/cjs/menu/dom/Menu.js.map +1 -0
  131. package/cjs/menu/dom/MenuHandler.d.ts +20 -0
  132. package/cjs/menu/dom/MenuHandler.js +134 -0
  133. package/cjs/menu/dom/MenuHandler.js.map +1 -0
  134. package/cjs/menu/dom/logic/MenuContainer.d.ts +22 -0
  135. package/cjs/menu/dom/logic/MenuContainer.js +110 -0
  136. package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
  137. package/cjs/menu/dom/logic/MenuElement.css +86 -0
  138. package/cjs/menu/dom/logic/MenuElement.d.ts +27 -0
  139. package/cjs/menu/dom/logic/MenuElement.js +278 -0
  140. package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
  141. package/cjs/plugins/chartTypes.d.ts +3 -0
  142. package/cjs/plugins/chartTypes.js +6 -0
  143. package/cjs/plugins/chartTypes.js.map +1 -0
  144. package/cjs/plugins/icons.d.ts +12 -0
  145. package/cjs/plugins/icons.js +26 -0
  146. package/cjs/plugins/icons.js.map +1 -0
  147. package/cjs/plugins/themes.d.ts +4 -0
  148. package/cjs/plugins/themes.js +6 -0
  149. package/cjs/plugins/themes.js.map +1 -0
  150. package/cjs/register.d.ts +5 -0
  151. package/cjs/register.js +35 -0
  152. package/cjs/register.js.map +1 -0
  153. package/cjs/render/layout/arc.d.ts +23 -0
  154. package/cjs/render/layout/arc.js +20 -0
  155. package/cjs/render/layout/arc.js.map +1 -0
  156. package/cjs/render/layout/circle.d.ts +19 -0
  157. package/cjs/render/layout/circle.js +19 -0
  158. package/cjs/render/layout/circle.js.map +1 -0
  159. package/cjs/render/layout/container.d.ts +52 -0
  160. package/cjs/render/layout/container.js +99 -0
  161. package/cjs/render/layout/container.js.map +1 -0
  162. package/cjs/render/layout/direction.d.ts +22 -0
  163. package/cjs/render/layout/direction.js +35 -0
  164. package/cjs/render/layout/direction.js.map +1 -0
  165. package/cjs/render/layout/element.d.ts +47 -0
  166. package/cjs/render/layout/element.js +27 -0
  167. package/cjs/render/layout/element.js.map +1 -0
  168. package/cjs/render/layout/group-element.d.ts +25 -0
  169. package/cjs/render/layout/group-element.js +52 -0
  170. package/cjs/render/layout/group-element.js.map +1 -0
  171. package/cjs/render/layout/icon.d.ts +21 -0
  172. package/cjs/render/layout/icon.js +48 -0
  173. package/cjs/render/layout/icon.js.map +1 -0
  174. package/cjs/render/layout/image.d.ts +21 -0
  175. package/cjs/render/layout/image.js +20 -0
  176. package/cjs/render/layout/image.js.map +1 -0
  177. package/cjs/render/layout/index.d.ts +9 -0
  178. package/cjs/render/layout/index.js +25 -0
  179. package/cjs/render/layout/index.js.map +1 -0
  180. package/cjs/render/layout/line.d.ts +32 -0
  181. package/cjs/render/layout/line.js +88 -0
  182. package/cjs/render/layout/line.js.map +1 -0
  183. package/cjs/render/layout/percent-calc.d.ts +8 -0
  184. package/cjs/render/layout/percent-calc.js +13 -0
  185. package/cjs/render/layout/percent-calc.js.map +1 -0
  186. package/cjs/render/layout/rect.d.ts +22 -0
  187. package/cjs/render/layout/rect.js +19 -0
  188. package/cjs/render/layout/rect.js.map +1 -0
  189. package/cjs/render/layout/text.d.ts +22 -0
  190. package/cjs/render/layout/text.js +26 -0
  191. package/cjs/render/layout/text.js.map +1 -0
  192. package/cjs/scenegraph/component/cell-content.d.ts +36 -0
  193. package/cjs/scenegraph/component/cell-content.js +100 -0
  194. package/cjs/scenegraph/component/cell-content.js.map +1 -0
  195. package/cjs/scenegraph/component/cell-mover.d.ts +15 -0
  196. package/cjs/scenegraph/component/cell-mover.js +107 -0
  197. package/cjs/scenegraph/component/cell-mover.js.map +1 -0
  198. package/cjs/scenegraph/component/custom.d.ts +7 -0
  199. package/cjs/scenegraph/component/custom.js +212 -0
  200. package/cjs/scenegraph/component/custom.js.map +1 -0
  201. package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
  202. package/cjs/scenegraph/component/drill-icon.js +70 -0
  203. package/cjs/scenegraph/component/drill-icon.js.map +1 -0
  204. package/cjs/scenegraph/component/menu.d.ts +41 -0
  205. package/cjs/scenegraph/component/menu.js +214 -0
  206. package/cjs/scenegraph/component/menu.js.map +1 -0
  207. package/cjs/scenegraph/component/table-component.d.ts +37 -0
  208. package/cjs/scenegraph/component/table-component.js +302 -0
  209. package/cjs/scenegraph/component/table-component.js.map +1 -0
  210. package/cjs/scenegraph/component/util.d.ts +2 -0
  211. package/cjs/scenegraph/component/util.js +11 -0
  212. package/cjs/scenegraph/component/util.js.map +1 -0
  213. package/cjs/scenegraph/debug-tool/debug-tool.d.ts +36 -0
  214. package/cjs/scenegraph/debug-tool/debug-tool.js +138 -0
  215. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
  216. package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
  217. package/cjs/scenegraph/debug-tool/index.js +14 -0
  218. package/cjs/scenegraph/debug-tool/index.js.map +1 -0
  219. package/cjs/scenegraph/graphic/chart.d.ts +30 -0
  220. package/cjs/scenegraph/graphic/chart.js +66 -0
  221. package/cjs/scenegraph/graphic/chart.js.map +1 -0
  222. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
  223. package/cjs/scenegraph/graphic/contributions/chart-render.js +46 -0
  224. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  225. package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
  226. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +195 -0
  227. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  228. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
  229. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +46 -0
  230. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  231. package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
  232. package/cjs/scenegraph/graphic/contributions/index.js +36 -0
  233. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
  234. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
  235. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +47 -0
  236. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  237. package/cjs/scenegraph/graphic/group.d.ts +23 -0
  238. package/cjs/scenegraph/graphic/group.js +94 -0
  239. package/cjs/scenegraph/graphic/group.js.map +1 -0
  240. package/cjs/scenegraph/graphic/icon.d.ts +24 -0
  241. package/cjs/scenegraph/graphic/icon.js +25 -0
  242. package/cjs/scenegraph/graphic/icon.js.map +1 -0
  243. package/cjs/scenegraph/graphic/text.d.ts +16 -0
  244. package/cjs/scenegraph/graphic/text.js +146 -0
  245. package/cjs/scenegraph/graphic/text.js.map +1 -0
  246. package/cjs/scenegraph/group-creater/cell-helper.d.ts +7 -0
  247. package/cjs/scenegraph/group-creater/cell-helper.js +84 -0
  248. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
  249. package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
  250. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +78 -0
  251. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  252. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
  253. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +123 -0
  254. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  255. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
  256. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +342 -0
  257. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  258. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
  259. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +163 -0
  260. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  261. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
  262. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +64 -0
  263. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  264. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
  265. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +100 -0
  266. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  267. package/cjs/scenegraph/group-creater/column-helper.d.ts +24 -0
  268. package/cjs/scenegraph/group-creater/column-helper.js +136 -0
  269. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
  270. package/cjs/scenegraph/group-creater/column.d.ts +14 -0
  271. package/cjs/scenegraph/group-creater/column.js +57 -0
  272. package/cjs/scenegraph/group-creater/column.js.map +1 -0
  273. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +45 -0
  274. package/cjs/scenegraph/group-creater/progress/proxy.js +267 -0
  275. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
  276. package/cjs/scenegraph/header-icon/layout.d.ts +3 -0
  277. package/cjs/scenegraph/header-icon/layout.js +75 -0
  278. package/cjs/scenegraph/header-icon/layout.js.map +1 -0
  279. package/cjs/scenegraph/hover-state.d.ts +14 -0
  280. package/cjs/scenegraph/hover-state.js +27 -0
  281. package/cjs/scenegraph/hover-state.js.map +1 -0
  282. package/cjs/scenegraph/layout/auto-height.d.ts +2 -0
  283. package/cjs/scenegraph/layout/auto-height.js +50 -0
  284. package/cjs/scenegraph/layout/auto-height.js.map +1 -0
  285. package/cjs/scenegraph/layout/auto-width.d.ts +2 -0
  286. package/cjs/scenegraph/layout/auto-width.js +85 -0
  287. package/cjs/scenegraph/layout/auto-width.js.map +1 -0
  288. package/cjs/scenegraph/layout/compute-col-width.d.ts +3 -0
  289. package/cjs/scenegraph/layout/compute-col-width.js +194 -0
  290. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
  291. package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
  292. package/cjs/scenegraph/layout/move-cell.js +61 -0
  293. package/cjs/scenegraph/layout/move-cell.js.map +1 -0
  294. package/cjs/scenegraph/layout/update-cell.d.ts +3 -0
  295. package/cjs/scenegraph/layout/update-cell.js +55 -0
  296. package/cjs/scenegraph/layout/update-cell.js.map +1 -0
  297. package/cjs/scenegraph/layout/update-height.d.ts +6 -0
  298. package/cjs/scenegraph/layout/update-height.js +90 -0
  299. package/cjs/scenegraph/layout/update-height.js.map +1 -0
  300. package/cjs/scenegraph/layout/update-width.d.ts +2 -0
  301. package/cjs/scenegraph/layout/update-width.js +103 -0
  302. package/cjs/scenegraph/layout/update-width.js.map +1 -0
  303. package/cjs/scenegraph/scenegraph.d.ts +109 -0
  304. package/cjs/scenegraph/scenegraph.js +798 -0
  305. package/cjs/scenegraph/scenegraph.js.map +1 -0
  306. package/cjs/scenegraph/style/frame-border.d.ts +3 -0
  307. package/cjs/scenegraph/style/frame-border.js +43 -0
  308. package/cjs/scenegraph/style/frame-border.js.map +1 -0
  309. package/cjs/scenegraph/utils/border-line.d.ts +8 -0
  310. package/cjs/scenegraph/utils/border-line.js +51 -0
  311. package/cjs/scenegraph/utils/border-line.js.map +1 -0
  312. package/cjs/scenegraph/utils/break-string.d.ts +1 -0
  313. package/cjs/scenegraph/utils/break-string.js +37 -0
  314. package/cjs/scenegraph/utils/break-string.js.map +1 -0
  315. package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
  316. package/cjs/scenegraph/utils/cell-pos.js +18 -0
  317. package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
  318. package/cjs/scenegraph/utils/font.d.ts +1 -0
  319. package/cjs/scenegraph/utils/font.js +20 -0
  320. package/cjs/scenegraph/utils/font.js.map +1 -0
  321. package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
  322. package/cjs/scenegraph/utils/get-cell-merge.js +11 -0
  323. package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
  324. package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
  325. package/cjs/scenegraph/utils/get-prop.js +44 -0
  326. package/cjs/scenegraph/utils/get-prop.js.map +1 -0
  327. package/cjs/scenegraph/utils/icon.d.ts +12 -0
  328. package/cjs/scenegraph/utils/icon.js +35 -0
  329. package/cjs/scenegraph/utils/icon.js.map +1 -0
  330. package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  331. package/cjs/scenegraph/utils/keep-aspect-ratio.js +16 -0
  332. package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  333. package/cjs/scenegraph/utils/measure-text.d.ts +20 -0
  334. package/cjs/scenegraph/utils/measure-text.js +111 -0
  335. package/cjs/scenegraph/utils/measure-text.js.map +1 -0
  336. package/cjs/scenegraph/utils/padding.d.ts +1 -0
  337. package/cjs/scenegraph/utils/padding.js +16 -0
  338. package/cjs/scenegraph/utils/padding.js.map +1 -0
  339. package/cjs/scenegraph/utils/text-icon-layout.d.ts +9 -0
  340. package/cjs/scenegraph/utils/text-icon-layout.js +237 -0
  341. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
  342. package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
  343. package/cjs/scenegraph/utils/text-pos.js +27 -0
  344. package/cjs/scenegraph/utils/text-pos.js.map +1 -0
  345. package/cjs/state/cell-move/adjust-header.d.ts +3 -0
  346. package/cjs/state/cell-move/adjust-header.js +20 -0
  347. package/cjs/state/cell-move/adjust-header.js.map +1 -0
  348. package/cjs/state/cell-move/index.d.ts +4 -0
  349. package/cjs/state/cell-move/index.js +60 -0
  350. package/cjs/state/cell-move/index.js.map +1 -0
  351. package/cjs/state/common/check-in-select.d.ts +8 -0
  352. package/cjs/state/common/check-in-select.js +63 -0
  353. package/cjs/state/common/check-in-select.js.map +1 -0
  354. package/cjs/state/drill/index.d.ts +2 -0
  355. package/cjs/state/drill/index.js +15 -0
  356. package/cjs/state/drill/index.js.map +1 -0
  357. package/cjs/state/hover/col.d.ts +5 -0
  358. package/cjs/state/hover/col.js +24 -0
  359. package/cjs/state/hover/col.js.map +1 -0
  360. package/cjs/state/hover/is-cell-hover.d.ts +5 -0
  361. package/cjs/state/hover/is-cell-hover.js +36 -0
  362. package/cjs/state/hover/is-cell-hover.js.map +1 -0
  363. package/cjs/state/hover/row.d.ts +5 -0
  364. package/cjs/state/hover/row.js +22 -0
  365. package/cjs/state/hover/row.js.map +1 -0
  366. package/cjs/state/hover/single.d.ts +5 -0
  367. package/cjs/state/hover/single.js +18 -0
  368. package/cjs/state/hover/single.js.map +1 -0
  369. package/cjs/state/hover/update-cell.d.ts +2 -0
  370. package/cjs/state/hover/update-cell.js +13 -0
  371. package/cjs/state/hover/update-cell.js.map +1 -0
  372. package/cjs/state/hover/update-position.d.ts +2 -0
  373. package/cjs/state/hover/update-position.js +44 -0
  374. package/cjs/state/hover/update-position.js.map +1 -0
  375. package/cjs/state/pin/index.d.ts +2 -0
  376. package/cjs/state/pin/index.js +10 -0
  377. package/cjs/state/pin/index.js.map +1 -0
  378. package/cjs/state/select/update-position.d.ts +4 -0
  379. package/cjs/state/select/update-position.js +111 -0
  380. package/cjs/state/select/update-position.js.map +1 -0
  381. package/cjs/state/sort/index.d.ts +2 -0
  382. package/cjs/state/sort/index.js +41 -0
  383. package/cjs/state/sort/index.js.map +1 -0
  384. package/cjs/state/spark-line/index.d.ts +3 -0
  385. package/cjs/state/spark-line/index.js +98 -0
  386. package/cjs/state/spark-line/index.js.map +1 -0
  387. package/cjs/state/state.d.ts +155 -0
  388. package/cjs/state/state.js +431 -0
  389. package/cjs/state/state.js.map +1 -0
  390. package/cjs/themes/ARCO.d.ts +3 -0
  391. package/cjs/themes/ARCO.js +114 -0
  392. package/cjs/themes/ARCO.js.map +1 -0
  393. package/cjs/themes/BRIGHT.d.ts +3 -0
  394. package/cjs/themes/BRIGHT.js +71 -0
  395. package/cjs/themes/BRIGHT.js.map +1 -0
  396. package/cjs/themes/DARK.d.ts +3 -0
  397. package/cjs/themes/DARK.js +90 -0
  398. package/cjs/themes/DARK.js.map +1 -0
  399. package/cjs/themes/DEFAULT.d.ts +3 -0
  400. package/cjs/themes/DEFAULT.js +89 -0
  401. package/cjs/themes/DEFAULT.js.map +1 -0
  402. package/cjs/themes/SIMPLIFY.d.ts +3 -0
  403. package/cjs/themes/SIMPLIFY.js +46 -0
  404. package/cjs/themes/SIMPLIFY.js.map +1 -0
  405. package/cjs/themes/theme.d.ts +34 -0
  406. package/cjs/themes/theme.js +520 -0
  407. package/cjs/themes/theme.js.map +1 -0
  408. package/cjs/themes.d.ts +28 -0
  409. package/cjs/themes.js +52 -0
  410. package/cjs/themes.js.map +1 -0
  411. package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
  412. package/cjs/tools/LimitPromiseQueue.js +29 -0
  413. package/cjs/tools/LimitPromiseQueue.js.map +1 -0
  414. package/cjs/tools/NumberMap.d.ts +16 -0
  415. package/cjs/tools/NumberMap.js +76 -0
  416. package/cjs/tools/NumberMap.js.map +1 -0
  417. package/cjs/tools/Rect.d.ts +24 -0
  418. package/cjs/tools/Rect.js +69 -0
  419. package/cjs/tools/Rect.js.map +1 -0
  420. package/cjs/tools/calc.d.ts +5 -0
  421. package/cjs/tools/calc.js +197 -0
  422. package/cjs/tools/calc.js.map +1 -0
  423. package/cjs/tools/debounce.d.ts +1 -0
  424. package/cjs/tools/debounce.js +51 -0
  425. package/cjs/tools/debounce.js.map +1 -0
  426. package/cjs/tools/dom.d.ts +1 -0
  427. package/cjs/tools/dom.js +11 -0
  428. package/cjs/tools/dom.js.map +1 -0
  429. package/cjs/tools/env.d.ts +19 -0
  430. package/cjs/tools/env.js +48 -0
  431. package/cjs/tools/env.js.map +1 -0
  432. package/cjs/tools/global.d.ts +13 -0
  433. package/cjs/tools/global.js +12 -0
  434. package/cjs/tools/global.js.map +1 -0
  435. package/cjs/tools/helper.d.ts +60 -0
  436. package/cjs/tools/helper.js +216 -0
  437. package/cjs/tools/helper.js.map +1 -0
  438. package/cjs/tools/icons.d.ts +4 -0
  439. package/cjs/tools/icons.js +10 -0
  440. package/cjs/tools/icons.js.map +1 -0
  441. package/cjs/tools/isx.d.ts +16 -0
  442. package/cjs/tools/isx.js +117 -0
  443. package/cjs/tools/isx.js.map +1 -0
  444. package/cjs/tools/sort.d.ts +1 -0
  445. package/cjs/tools/sort.js +18 -0
  446. package/cjs/tools/sort.js.map +1 -0
  447. package/cjs/tools/style.css +60 -0
  448. package/cjs/tools/style.d.ts +2 -0
  449. package/cjs/tools/style.js +11 -0
  450. package/cjs/tools/style.js.map +1 -0
  451. package/cjs/tools/text-width.d.ts +1 -0
  452. package/cjs/tools/text-width.js +17 -0
  453. package/cjs/tools/text-width.js.map +1 -0
  454. package/cjs/tools/util.d.ts +45 -0
  455. package/cjs/tools/util.js +299 -0
  456. package/cjs/tools/util.js.map +1 -0
  457. package/cjs/tooltip/BaseTooltip.d.ts +22 -0
  458. package/cjs/tooltip/BaseTooltip.js +35 -0
  459. package/cjs/tooltip/BaseTooltip.js.map +1 -0
  460. package/cjs/tooltip/Tooltip.d.ts +5 -0
  461. package/cjs/tooltip/Tooltip.js +16 -0
  462. package/cjs/tooltip/Tooltip.js.map +1 -0
  463. package/cjs/tooltip/TooltipHandler.d.ts +27 -0
  464. package/cjs/tooltip/TooltipHandler.js +129 -0
  465. package/cjs/tooltip/TooltipHandler.js.map +1 -0
  466. package/cjs/tooltip/logic/BubbleTooltipElement.css +63 -0
  467. package/cjs/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
  468. package/cjs/tooltip/logic/BubbleTooltipElement.js +152 -0
  469. package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  470. package/cjs/ts-types/base-table.d.ts +313 -0
  471. package/cjs/ts-types/base-table.js +6 -0
  472. package/cjs/ts-types/base-table.js.map +1 -0
  473. package/cjs/ts-types/chartType.d.ts +53 -0
  474. package/cjs/ts-types/chartType.js +6 -0
  475. package/cjs/ts-types/chartType.js.map +1 -0
  476. package/cjs/ts-types/column/index.d.ts +2 -0
  477. package/cjs/ts-types/column/index.js +21 -0
  478. package/cjs/ts-types/column/index.js.map +1 -0
  479. package/cjs/ts-types/column/style.d.ts +78 -0
  480. package/cjs/ts-types/column/style.js +6 -0
  481. package/cjs/ts-types/column/style.js.map +1 -0
  482. package/cjs/ts-types/column/type.d.ts +2 -0
  483. package/cjs/ts-types/column/type.js +6 -0
  484. package/cjs/ts-types/column/type.js.map +1 -0
  485. package/cjs/ts-types/common.d.ts +72 -0
  486. package/cjs/ts-types/common.js +6 -0
  487. package/cjs/ts-types/common.js.map +1 -0
  488. package/cjs/ts-types/customElement.d.ts +111 -0
  489. package/cjs/ts-types/customElement.js +6 -0
  490. package/cjs/ts-types/customElement.js.map +1 -0
  491. package/cjs/ts-types/customLayout.d.ts +8 -0
  492. package/cjs/ts-types/customLayout.js +6 -0
  493. package/cjs/ts-types/customLayout.js.map +1 -0
  494. package/cjs/ts-types/events.d.ts +182 -0
  495. package/cjs/ts-types/events.js +6 -0
  496. package/cjs/ts-types/events.js.map +1 -0
  497. package/cjs/ts-types/icon.d.ts +86 -0
  498. package/cjs/ts-types/icon.js +26 -0
  499. package/cjs/ts-types/icon.js.map +1 -0
  500. package/cjs/ts-types/index.d.ts +15 -0
  501. package/cjs/ts-types/index.js +28 -0
  502. package/cjs/ts-types/index.js.map +1 -0
  503. package/cjs/ts-types/list-table/define/basic-define.d.ts +36 -0
  504. package/cjs/ts-types/list-table/define/basic-define.js +6 -0
  505. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
  506. package/cjs/ts-types/list-table/define/chart-define.d.ts +10 -0
  507. package/cjs/ts-types/list-table/define/chart-define.js +6 -0
  508. package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
  509. package/cjs/ts-types/list-table/define/image-define.d.ts +15 -0
  510. package/cjs/ts-types/list-table/define/image-define.js +6 -0
  511. package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
  512. package/cjs/ts-types/list-table/define/index.d.ts +21 -0
  513. package/cjs/ts-types/list-table/define/index.js +6 -0
  514. package/cjs/ts-types/list-table/define/index.js.map +1 -0
  515. package/cjs/ts-types/list-table/define/link-define.d.ts +17 -0
  516. package/cjs/ts-types/list-table/define/link-define.js +6 -0
  517. package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
  518. package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
  519. package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
  520. package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  521. package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  522. package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
  523. package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
  524. package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  525. package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
  526. package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
  527. package/cjs/ts-types/list-table/index.d.ts +2 -0
  528. package/cjs/ts-types/list-table/index.js +21 -0
  529. package/cjs/ts-types/list-table/index.js.map +1 -0
  530. package/cjs/ts-types/list-table/layout-map/api.d.ts +92 -0
  531. package/cjs/ts-types/list-table/layout-map/api.js +6 -0
  532. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
  533. package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
  534. package/cjs/ts-types/list-table/layout-map/index.js +6 -0
  535. package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
  536. package/cjs/ts-types/menu.d.ts +73 -0
  537. package/cjs/ts-types/menu.js +6 -0
  538. package/cjs/ts-types/menu.js.map +1 -0
  539. package/cjs/ts-types/new-data-set.d.ts +95 -0
  540. package/cjs/ts-types/new-data-set.js +14 -0
  541. package/cjs/ts-types/new-data-set.js.map +1 -0
  542. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
  543. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
  544. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  545. package/cjs/ts-types/pivot-table/corner.d.ts +19 -0
  546. package/cjs/ts-types/pivot-table/corner.js +6 -0
  547. package/cjs/ts-types/pivot-table/corner.js.map +1 -0
  548. package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
  549. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
  550. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  551. package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
  552. package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
  553. package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  554. package/cjs/ts-types/pivot-table/dimension/index.d.ts +4 -0
  555. package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
  556. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
  557. package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
  558. package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
  559. package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  560. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  561. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
  562. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  563. package/cjs/ts-types/pivot-table/index.d.ts +4 -0
  564. package/cjs/ts-types/pivot-table/index.js +22 -0
  565. package/cjs/ts-types/pivot-table/index.js.map +1 -0
  566. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
  567. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
  568. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  569. package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
  570. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
  571. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  572. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
  573. package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
  574. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  575. package/cjs/ts-types/pivot-table/indicator/index.d.ts +10 -0
  576. package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
  577. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
  578. package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
  579. package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
  580. package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  581. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  582. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
  583. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  584. package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  585. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
  586. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  587. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  588. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
  589. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  590. package/cjs/ts-types/pivot-table/title.d.ts +18 -0
  591. package/cjs/ts-types/pivot-table/title.js +6 -0
  592. package/cjs/ts-types/pivot-table/title.js.map +1 -0
  593. package/cjs/ts-types/style-define.d.ts +60 -0
  594. package/cjs/ts-types/style-define.js +6 -0
  595. package/cjs/ts-types/style-define.js.map +1 -0
  596. package/cjs/ts-types/table-engine.d.ts +169 -0
  597. package/cjs/ts-types/table-engine.js +12 -0
  598. package/cjs/ts-types/table-engine.js.map +1 -0
  599. package/cjs/ts-types/theme.d.ts +88 -0
  600. package/cjs/ts-types/theme.js +6 -0
  601. package/cjs/ts-types/theme.js.map +1 -0
  602. package/cjs/ts-types/tooltip.d.ts +22 -0
  603. package/cjs/ts-types/tooltip.js +6 -0
  604. package/cjs/ts-types/tooltip.js.map +1 -0
  605. package/dist/vtable.js +72964 -0
  606. package/dist/vtable.min.js +17 -0
  607. package/es/ListTable.d.ts +38 -0
  608. package/es/ListTable.js +256 -0
  609. package/es/ListTable.js.map +1 -0
  610. package/es/PivotTable.d.ts +50 -0
  611. package/es/PivotTable.js +282 -0
  612. package/es/PivotTable.js.map +1 -0
  613. package/es/body-helper/body-helper.d.ts +14 -0
  614. package/es/body-helper/body-helper.js +80 -0
  615. package/es/body-helper/body-helper.js.map +1 -0
  616. package/es/body-helper/style/ImageStyle.d.ts +7 -0
  617. package/es/body-helper/style/ImageStyle.js +16 -0
  618. package/es/body-helper/style/ImageStyle.js.map +1 -0
  619. package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
  620. package/es/body-helper/style/MultilineTextStyle.js +30 -0
  621. package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
  622. package/es/body-helper/style/NumberStyle.d.ts +7 -0
  623. package/es/body-helper/style/NumberStyle.js +16 -0
  624. package/es/body-helper/style/NumberStyle.js.map +1 -0
  625. package/es/body-helper/style/ProgressBarStyle.d.ts +52 -0
  626. package/es/body-helper/style/ProgressBarStyle.js +118 -0
  627. package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
  628. package/es/body-helper/style/Style.d.ts +85 -0
  629. package/es/body-helper/style/Style.js +194 -0
  630. package/es/body-helper/style/Style.js.map +1 -0
  631. package/es/body-helper/style.d.ts +10 -0
  632. package/es/body-helper/style.js +20 -0
  633. package/es/body-helper/style.js.map +1 -0
  634. package/es/chartType.d.ts +3 -0
  635. package/es/chartType.js +10 -0
  636. package/es/chartType.js.map +1 -0
  637. package/es/core/BaseTable.d.ts +287 -0
  638. package/es/core/BaseTable.js +1281 -0
  639. package/es/core/BaseTable.js.map +1 -0
  640. package/es/core/FouseInput.d.ts +11 -0
  641. package/es/core/FouseInput.js +30 -0
  642. package/es/core/FouseInput.js.map +1 -0
  643. package/es/core/TABLE_EVENT_TYPE.d.ts +30 -0
  644. package/es/core/TABLE_EVENT_TYPE.js +30 -0
  645. package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
  646. package/es/core/tableHelper.d.ts +28 -0
  647. package/es/core/tableHelper.js +107 -0
  648. package/es/core/tableHelper.js.map +1 -0
  649. package/es/core.d.ts +3 -0
  650. package/es/core.js +6 -0
  651. package/es/core.js.map +1 -0
  652. package/es/data/CachedDataSource.d.ts +16 -0
  653. package/es/data/CachedDataSource.js +48 -0
  654. package/es/data/CachedDataSource.js.map +1 -0
  655. package/es/data/DataSource.d.ts +64 -0
  656. package/es/data/DataSource.js +267 -0
  657. package/es/data/DataSource.js.map +1 -0
  658. package/es/data/FilterDataSource.d.ts +1 -0
  659. package/es/data/FilterDataSource.js +1 -0
  660. package/es/data/FilterDataSource.js.map +1 -0
  661. package/es/data.d.ts +4 -0
  662. package/es/data.js +6 -0
  663. package/es/data.js.map +1 -0
  664. package/es/dataset/DataStatistics.d.ts +10 -0
  665. package/es/dataset/DataStatistics.js +74 -0
  666. package/es/dataset/DataStatistics.js.map +1 -0
  667. package/es/dataset/dataset.d.ts +72 -0
  668. package/es/dataset/dataset.js +482 -0
  669. package/es/dataset/dataset.js.map +1 -0
  670. package/es/dataset/flatDataToObject.d.ts +31 -0
  671. package/es/dataset/flatDataToObject.js +63 -0
  672. package/es/dataset/flatDataToObject.js.map +1 -0
  673. package/es/event/EventHandler.d.ts +45 -0
  674. package/es/event/EventHandler.js +111 -0
  675. package/es/event/EventHandler.js.map +1 -0
  676. package/es/event/EventTarget.d.ts +11 -0
  677. package/es/event/EventTarget.js +50 -0
  678. package/es/event/EventTarget.js.map +1 -0
  679. package/es/event/chart.d.ts +2 -0
  680. package/es/event/chart.js +16 -0
  681. package/es/event/chart.js.map +1 -0
  682. package/es/event/drill.d.ts +3 -0
  683. package/es/event/drill.js +17 -0
  684. package/es/event/drill.js.map +1 -0
  685. package/es/event/event.d.ts +35 -0
  686. package/es/event/event.js +438 -0
  687. package/es/event/event.js.map +1 -0
  688. package/es/event/media-click.d.ts +2 -0
  689. package/es/event/media-click.js +54 -0
  690. package/es/event/media-click.js.map +1 -0
  691. package/es/event/scroll.d.ts +2 -0
  692. package/es/event/scroll.js +17 -0
  693. package/es/event/scroll.js.map +1 -0
  694. package/es/header-helper/header-helper.d.ts +26 -0
  695. package/es/header-helper/header-helper.js +189 -0
  696. package/es/header-helper/header-helper.js.map +1 -0
  697. package/es/header-helper/style/ImageStyle.d.ts +7 -0
  698. package/es/header-helper/style/ImageStyle.js +17 -0
  699. package/es/header-helper/style/ImageStyle.js.map +1 -0
  700. package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  701. package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
  702. package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  703. package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
  704. package/es/header-helper/style/SortHeaderStyle.js +3 -0
  705. package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
  706. package/es/header-helper/style/Style.d.ts +88 -0
  707. package/es/header-helper/style/Style.js +202 -0
  708. package/es/header-helper/style/Style.js.map +1 -0
  709. package/es/header-helper/style.d.ts +5 -0
  710. package/es/header-helper/style.js +14 -0
  711. package/es/header-helper/style.js.map +1 -0
  712. package/es/icons.d.ts +4 -0
  713. package/es/icons.js +241 -0
  714. package/es/icons.js.map +1 -0
  715. package/es/index.d.ts +17 -0
  716. package/es/index.js +34 -0
  717. package/es/index.js.map +1 -0
  718. package/es/layout/index.d.ts +1 -0
  719. package/es/layout/index.js +2 -0
  720. package/es/layout/index.js.map +1 -0
  721. package/es/layout/pivot-header-layout.d.ts +155 -0
  722. package/es/layout/pivot-header-layout.js +888 -0
  723. package/es/layout/pivot-header-layout.js.map +1 -0
  724. package/es/layout/pivot-layout.d.ts +86 -0
  725. package/es/layout/pivot-layout.js +416 -0
  726. package/es/layout/pivot-layout.js.map +1 -0
  727. package/es/layout/simple-header-layout.d.ts +67 -0
  728. package/es/layout/simple-header-layout.js +405 -0
  729. package/es/layout/simple-header-layout.js.map +1 -0
  730. package/es/menu/dom/BaseMenu.d.ts +15 -0
  731. package/es/menu/dom/BaseMenu.js +22 -0
  732. package/es/menu/dom/BaseMenu.js.map +1 -0
  733. package/es/menu/dom/Menu.d.ts +9 -0
  734. package/es/menu/dom/Menu.js +18 -0
  735. package/es/menu/dom/Menu.js.map +1 -0
  736. package/es/menu/dom/MenuHandler.d.ts +20 -0
  737. package/es/menu/dom/MenuHandler.js +132 -0
  738. package/es/menu/dom/MenuHandler.js.map +1 -0
  739. package/es/menu/dom/logic/MenuContainer.d.ts +22 -0
  740. package/es/menu/dom/logic/MenuContainer.js +105 -0
  741. package/es/menu/dom/logic/MenuContainer.js.map +1 -0
  742. package/es/menu/dom/logic/MenuElement.css +86 -0
  743. package/es/menu/dom/logic/MenuElement.d.ts +27 -0
  744. package/es/menu/dom/logic/MenuElement.js +277 -0
  745. package/es/menu/dom/logic/MenuElement.js.map +1 -0
  746. package/es/plugins/chartTypes.d.ts +3 -0
  747. package/es/plugins/chartTypes.js +2 -0
  748. package/es/plugins/chartTypes.js.map +1 -0
  749. package/es/plugins/icons.d.ts +12 -0
  750. package/es/plugins/icons.js +22 -0
  751. package/es/plugins/icons.js.map +1 -0
  752. package/es/plugins/themes.d.ts +4 -0
  753. package/es/plugins/themes.js +2 -0
  754. package/es/plugins/themes.js.map +1 -0
  755. package/es/register.d.ts +5 -0
  756. package/es/register.js +31 -0
  757. package/es/register.js.map +1 -0
  758. package/es/render/layout/arc.d.ts +23 -0
  759. package/es/render/layout/arc.js +12 -0
  760. package/es/render/layout/arc.js.map +1 -0
  761. package/es/render/layout/circle.d.ts +19 -0
  762. package/es/render/layout/circle.js +11 -0
  763. package/es/render/layout/circle.js.map +1 -0
  764. package/es/render/layout/container.d.ts +52 -0
  765. package/es/render/layout/container.js +99 -0
  766. package/es/render/layout/container.js.map +1 -0
  767. package/es/render/layout/direction.d.ts +22 -0
  768. package/es/render/layout/direction.js +31 -0
  769. package/es/render/layout/direction.js.map +1 -0
  770. package/es/render/layout/element.d.ts +47 -0
  771. package/es/render/layout/element.js +19 -0
  772. package/es/render/layout/element.js.map +1 -0
  773. package/es/render/layout/group-element.d.ts +25 -0
  774. package/es/render/layout/group-element.js +46 -0
  775. package/es/render/layout/group-element.js.map +1 -0
  776. package/es/render/layout/icon.d.ts +21 -0
  777. package/es/render/layout/icon.js +19 -0
  778. package/es/render/layout/icon.js.map +1 -0
  779. package/es/render/layout/image.d.ts +21 -0
  780. package/es/render/layout/image.js +12 -0
  781. package/es/render/layout/image.js.map +1 -0
  782. package/es/render/layout/index.d.ts +9 -0
  783. package/es/render/layout/index.js +18 -0
  784. package/es/render/layout/index.js.map +1 -0
  785. package/es/render/layout/line.d.ts +32 -0
  786. package/es/render/layout/line.js +80 -0
  787. package/es/render/layout/line.js.map +1 -0
  788. package/es/render/layout/percent-calc.d.ts +8 -0
  789. package/es/render/layout/percent-calc.js +7 -0
  790. package/es/render/layout/percent-calc.js.map +1 -0
  791. package/es/render/layout/rect.d.ts +22 -0
  792. package/es/render/layout/rect.js +11 -0
  793. package/es/render/layout/rect.js.map +1 -0
  794. package/es/render/layout/text.d.ts +22 -0
  795. package/es/render/layout/text.js +18 -0
  796. package/es/render/layout/text.js.map +1 -0
  797. package/es/scenegraph/component/cell-content.d.ts +36 -0
  798. package/es/scenegraph/component/cell-content.js +98 -0
  799. package/es/scenegraph/component/cell-content.js.map +1 -0
  800. package/es/scenegraph/component/cell-mover.d.ts +15 -0
  801. package/es/scenegraph/component/cell-mover.js +101 -0
  802. package/es/scenegraph/component/cell-mover.js.map +1 -0
  803. package/es/scenegraph/component/custom.d.ts +7 -0
  804. package/es/scenegraph/component/custom.js +211 -0
  805. package/es/scenegraph/component/custom.js.map +1 -0
  806. package/es/scenegraph/component/drill-icon.d.ts +9 -0
  807. package/es/scenegraph/component/drill-icon.js +41 -0
  808. package/es/scenegraph/component/drill-icon.js.map +1 -0
  809. package/es/scenegraph/component/menu.d.ts +41 -0
  810. package/es/scenegraph/component/menu.js +212 -0
  811. package/es/scenegraph/component/menu.js.map +1 -0
  812. package/es/scenegraph/component/table-component.d.ts +37 -0
  813. package/es/scenegraph/component/table-component.js +304 -0
  814. package/es/scenegraph/component/table-component.js.map +1 -0
  815. package/es/scenegraph/component/util.d.ts +2 -0
  816. package/es/scenegraph/component/util.js +5 -0
  817. package/es/scenegraph/component/util.js.map +1 -0
  818. package/es/scenegraph/debug-tool/debug-tool.d.ts +36 -0
  819. package/es/scenegraph/debug-tool/debug-tool.js +126 -0
  820. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
  821. package/es/scenegraph/debug-tool/index.d.ts +4 -0
  822. package/es/scenegraph/debug-tool/index.js +6 -0
  823. package/es/scenegraph/debug-tool/index.js.map +1 -0
  824. package/es/scenegraph/graphic/chart.d.ts +30 -0
  825. package/es/scenegraph/graphic/chart.js +59 -0
  826. package/es/scenegraph/graphic/chart.js.map +1 -0
  827. package/es/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
  828. package/es/scenegraph/graphic/contributions/chart-render.js +47 -0
  829. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  830. package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
  831. package/es/scenegraph/graphic/contributions/group-contribution-render.js +192 -0
  832. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  833. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
  834. package/es/scenegraph/graphic/contributions/image-contribution-render.js +42 -0
  835. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  836. package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
  837. package/es/scenegraph/graphic/contributions/index.js +29 -0
  838. package/es/scenegraph/graphic/contributions/index.js.map +1 -0
  839. package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
  840. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +45 -0
  841. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  842. package/es/scenegraph/graphic/group.d.ts +23 -0
  843. package/es/scenegraph/graphic/group.js +86 -0
  844. package/es/scenegraph/graphic/group.js.map +1 -0
  845. package/es/scenegraph/graphic/icon.d.ts +24 -0
  846. package/es/scenegraph/graphic/icon.js +17 -0
  847. package/es/scenegraph/graphic/icon.js.map +1 -0
  848. package/es/scenegraph/graphic/text.d.ts +16 -0
  849. package/es/scenegraph/graphic/text.js +142 -0
  850. package/es/scenegraph/graphic/text.js.map +1 -0
  851. package/es/scenegraph/group-creater/cell-helper.d.ts +7 -0
  852. package/es/scenegraph/group-creater/cell-helper.js +93 -0
  853. package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
  854. package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
  855. package/es/scenegraph/group-creater/cell-type/chart-cell.js +54 -0
  856. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  857. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
  858. package/es/scenegraph/group-creater/cell-type/image-cell.js +102 -0
  859. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  860. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
  861. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +337 -0
  862. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  863. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
  864. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +165 -0
  865. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  866. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
  867. package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  868. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  869. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
  870. package/es/scenegraph/group-creater/cell-type/video-cell.js +86 -0
  871. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  872. package/es/scenegraph/group-creater/column-helper.d.ts +24 -0
  873. package/es/scenegraph/group-creater/column-helper.js +135 -0
  874. package/es/scenegraph/group-creater/column-helper.js.map +1 -0
  875. package/es/scenegraph/group-creater/column.d.ts +14 -0
  876. package/es/scenegraph/group-creater/column.js +49 -0
  877. package/es/scenegraph/group-creater/column.js.map +1 -0
  878. package/es/scenegraph/group-creater/progress/proxy.d.ts +45 -0
  879. package/es/scenegraph/group-creater/progress/proxy.js +268 -0
  880. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
  881. package/es/scenegraph/header-icon/layout.d.ts +3 -0
  882. package/es/scenegraph/header-icon/layout.js +69 -0
  883. package/es/scenegraph/header-icon/layout.js.map +1 -0
  884. package/es/scenegraph/hover-state.d.ts +14 -0
  885. package/es/scenegraph/hover-state.js +19 -0
  886. package/es/scenegraph/hover-state.js.map +1 -0
  887. package/es/scenegraph/layout/auto-height.d.ts +2 -0
  888. package/es/scenegraph/layout/auto-height.js +44 -0
  889. package/es/scenegraph/layout/auto-height.js.map +1 -0
  890. package/es/scenegraph/layout/auto-width.d.ts +2 -0
  891. package/es/scenegraph/layout/auto-width.js +82 -0
  892. package/es/scenegraph/layout/auto-width.js.map +1 -0
  893. package/es/scenegraph/layout/compute-col-width.d.ts +3 -0
  894. package/es/scenegraph/layout/compute-col-width.js +167 -0
  895. package/es/scenegraph/layout/compute-col-width.js.map +1 -0
  896. package/es/scenegraph/layout/move-cell.d.ts +2 -0
  897. package/es/scenegraph/layout/move-cell.js +55 -0
  898. package/es/scenegraph/layout/move-cell.js.map +1 -0
  899. package/es/scenegraph/layout/update-cell.d.ts +3 -0
  900. package/es/scenegraph/layout/update-cell.js +55 -0
  901. package/es/scenegraph/layout/update-cell.js.map +1 -0
  902. package/es/scenegraph/layout/update-height.d.ts +6 -0
  903. package/es/scenegraph/layout/update-height.js +91 -0
  904. package/es/scenegraph/layout/update-height.js.map +1 -0
  905. package/es/scenegraph/layout/update-width.d.ts +2 -0
  906. package/es/scenegraph/layout/update-width.js +105 -0
  907. package/es/scenegraph/layout/update-width.js.map +1 -0
  908. package/es/scenegraph/scenegraph.d.ts +109 -0
  909. package/es/scenegraph/scenegraph.js +818 -0
  910. package/es/scenegraph/scenegraph.js.map +1 -0
  911. package/es/scenegraph/style/frame-border.d.ts +3 -0
  912. package/es/scenegraph/style/frame-border.js +35 -0
  913. package/es/scenegraph/style/frame-border.js.map +1 -0
  914. package/es/scenegraph/utils/border-line.d.ts +8 -0
  915. package/es/scenegraph/utils/border-line.js +45 -0
  916. package/es/scenegraph/utils/border-line.js.map +1 -0
  917. package/es/scenegraph/utils/break-string.d.ts +1 -0
  918. package/es/scenegraph/utils/break-string.js +31 -0
  919. package/es/scenegraph/utils/break-string.js.map +1 -0
  920. package/es/scenegraph/utils/cell-pos.d.ts +4 -0
  921. package/es/scenegraph/utils/cell-pos.js +12 -0
  922. package/es/scenegraph/utils/cell-pos.js.map +1 -0
  923. package/es/scenegraph/utils/font.d.ts +1 -0
  924. package/es/scenegraph/utils/font.js +6 -0
  925. package/es/scenegraph/utils/font.js.map +1 -0
  926. package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
  927. package/es/scenegraph/utils/get-cell-merge.js +5 -0
  928. package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
  929. package/es/scenegraph/utils/get-prop.d.ts +4 -0
  930. package/es/scenegraph/utils/get-prop.js +36 -0
  931. package/es/scenegraph/utils/get-prop.js.map +1 -0
  932. package/es/scenegraph/utils/icon.d.ts +12 -0
  933. package/es/scenegraph/utils/icon.js +29 -0
  934. package/es/scenegraph/utils/icon.js.map +1 -0
  935. package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  936. package/es/scenegraph/utils/keep-aspect-ratio.js +10 -0
  937. package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  938. package/es/scenegraph/utils/measure-text.d.ts +20 -0
  939. package/es/scenegraph/utils/measure-text.js +114 -0
  940. package/es/scenegraph/utils/measure-text.js.map +1 -0
  941. package/es/scenegraph/utils/padding.d.ts +1 -0
  942. package/es/scenegraph/utils/padding.js +8 -0
  943. package/es/scenegraph/utils/padding.js.map +1 -0
  944. package/es/scenegraph/utils/text-icon-layout.d.ts +9 -0
  945. package/es/scenegraph/utils/text-icon-layout.js +239 -0
  946. package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
  947. package/es/scenegraph/utils/text-pos.d.ts +8 -0
  948. package/es/scenegraph/utils/text-pos.js +20 -0
  949. package/es/scenegraph/utils/text-pos.js.map +1 -0
  950. package/es/state/cell-move/adjust-header.d.ts +3 -0
  951. package/es/state/cell-move/adjust-header.js +14 -0
  952. package/es/state/cell-move/adjust-header.js.map +1 -0
  953. package/es/state/cell-move/index.d.ts +4 -0
  954. package/es/state/cell-move/index.js +52 -0
  955. package/es/state/cell-move/index.js.map +1 -0
  956. package/es/state/common/check-in-select.d.ts +8 -0
  957. package/es/state/common/check-in-select.js +53 -0
  958. package/es/state/common/check-in-select.js.map +1 -0
  959. package/es/state/drill/index.d.ts +2 -0
  960. package/es/state/drill/index.js +9 -0
  961. package/es/state/drill/index.js.map +1 -0
  962. package/es/state/hover/col.d.ts +5 -0
  963. package/es/state/hover/col.js +16 -0
  964. package/es/state/hover/col.js.map +1 -0
  965. package/es/state/hover/is-cell-hover.d.ts +5 -0
  966. package/es/state/hover/is-cell-hover.js +30 -0
  967. package/es/state/hover/is-cell-hover.js.map +1 -0
  968. package/es/state/hover/row.d.ts +5 -0
  969. package/es/state/hover/row.js +14 -0
  970. package/es/state/hover/row.js.map +1 -0
  971. package/es/state/hover/single.d.ts +5 -0
  972. package/es/state/hover/single.js +10 -0
  973. package/es/state/hover/single.js.map +1 -0
  974. package/es/state/hover/update-cell.d.ts +2 -0
  975. package/es/state/hover/update-cell.js +7 -0
  976. package/es/state/hover/update-cell.js.map +1 -0
  977. package/es/state/hover/update-position.d.ts +2 -0
  978. package/es/state/hover/update-position.js +36 -0
  979. package/es/state/hover/update-position.js.map +1 -0
  980. package/es/state/pin/index.d.ts +2 -0
  981. package/es/state/pin/index.js +4 -0
  982. package/es/state/pin/index.js.map +1 -0
  983. package/es/state/select/update-position.d.ts +4 -0
  984. package/es/state/select/update-position.js +103 -0
  985. package/es/state/select/update-position.js.map +1 -0
  986. package/es/state/sort/index.d.ts +2 -0
  987. package/es/state/sort/index.js +35 -0
  988. package/es/state/sort/index.js.map +1 -0
  989. package/es/state/spark-line/index.d.ts +3 -0
  990. package/es/state/spark-line/index.js +92 -0
  991. package/es/state/spark-line/index.js.map +1 -0
  992. package/es/state/state.d.ts +155 -0
  993. package/es/state/state.js +458 -0
  994. package/es/state/state.js.map +1 -0
  995. package/es/themes/ARCO.d.ts +3 -0
  996. package/es/themes/ARCO.js +110 -0
  997. package/es/themes/ARCO.js.map +1 -0
  998. package/es/themes/BRIGHT.d.ts +3 -0
  999. package/es/themes/BRIGHT.js +67 -0
  1000. package/es/themes/BRIGHT.js.map +1 -0
  1001. package/es/themes/DARK.d.ts +3 -0
  1002. package/es/themes/DARK.js +86 -0
  1003. package/es/themes/DARK.js.map +1 -0
  1004. package/es/themes/DEFAULT.d.ts +3 -0
  1005. package/es/themes/DEFAULT.js +85 -0
  1006. package/es/themes/DEFAULT.js.map +1 -0
  1007. package/es/themes/SIMPLIFY.d.ts +3 -0
  1008. package/es/themes/SIMPLIFY.js +42 -0
  1009. package/es/themes/SIMPLIFY.js.map +1 -0
  1010. package/es/themes/theme.d.ts +34 -0
  1011. package/es/themes/theme.js +505 -0
  1012. package/es/themes/theme.js.map +1 -0
  1013. package/es/themes.d.ts +28 -0
  1014. package/es/themes.js +62 -0
  1015. package/es/themes.js.map +1 -0
  1016. package/es/tools/LimitPromiseQueue.d.ts +8 -0
  1017. package/es/tools/LimitPromiseQueue.js +21 -0
  1018. package/es/tools/LimitPromiseQueue.js.map +1 -0
  1019. package/es/tools/NumberMap.d.ts +16 -0
  1020. package/es/tools/NumberMap.js +70 -0
  1021. package/es/tools/NumberMap.js.map +1 -0
  1022. package/es/tools/Rect.d.ts +24 -0
  1023. package/es/tools/Rect.js +61 -0
  1024. package/es/tools/Rect.js.map +1 -0
  1025. package/es/tools/calc.d.ts +5 -0
  1026. package/es/tools/calc.js +191 -0
  1027. package/es/tools/calc.js.map +1 -0
  1028. package/es/tools/debounce.d.ts +1 -0
  1029. package/es/tools/debounce.js +43 -0
  1030. package/es/tools/debounce.js.map +1 -0
  1031. package/es/tools/dom.d.ts +1 -0
  1032. package/es/tools/dom.js +5 -0
  1033. package/es/tools/dom.js.map +1 -0
  1034. package/es/tools/env.d.ts +19 -0
  1035. package/es/tools/env.js +42 -0
  1036. package/es/tools/env.js.map +1 -0
  1037. package/es/tools/global.d.ts +13 -0
  1038. package/es/tools/global.js +26 -0
  1039. package/es/tools/global.js.map +1 -0
  1040. package/es/tools/helper.d.ts +60 -0
  1041. package/es/tools/helper.js +216 -0
  1042. package/es/tools/helper.js.map +1 -0
  1043. package/es/tools/icons.d.ts +4 -0
  1044. package/es/tools/icons.js +4 -0
  1045. package/es/tools/icons.js.map +1 -0
  1046. package/es/tools/isx.d.ts +16 -0
  1047. package/es/tools/isx.js +79 -0
  1048. package/es/tools/isx.js.map +1 -0
  1049. package/es/tools/sort.d.ts +1 -0
  1050. package/es/tools/sort.js +12 -0
  1051. package/es/tools/sort.js.map +1 -0
  1052. package/es/tools/style.css +60 -0
  1053. package/es/tools/style.d.ts +2 -0
  1054. package/es/tools/style.js +5 -0
  1055. package/es/tools/style.js.map +1 -0
  1056. package/es/tools/text-width.d.ts +1 -0
  1057. package/es/tools/text-width.js +9 -0
  1058. package/es/tools/text-width.js.map +1 -0
  1059. package/es/tools/util.d.ts +45 -0
  1060. package/es/tools/util.js +250 -0
  1061. package/es/tools/util.js.map +1 -0
  1062. package/es/tooltip/BaseTooltip.d.ts +22 -0
  1063. package/es/tooltip/BaseTooltip.js +27 -0
  1064. package/es/tooltip/BaseTooltip.js.map +1 -0
  1065. package/es/tooltip/Tooltip.d.ts +5 -0
  1066. package/es/tooltip/Tooltip.js +10 -0
  1067. package/es/tooltip/Tooltip.js.map +1 -0
  1068. package/es/tooltip/TooltipHandler.d.ts +27 -0
  1069. package/es/tooltip/TooltipHandler.js +131 -0
  1070. package/es/tooltip/TooltipHandler.js.map +1 -0
  1071. package/es/tooltip/logic/BubbleTooltipElement.css +63 -0
  1072. package/es/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
  1073. package/es/tooltip/logic/BubbleTooltipElement.js +149 -0
  1074. package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  1075. package/es/ts-types/base-table.d.ts +313 -0
  1076. package/es/ts-types/base-table.js +2 -0
  1077. package/es/ts-types/base-table.js.map +1 -0
  1078. package/es/ts-types/chartType.d.ts +53 -0
  1079. package/es/ts-types/chartType.js +2 -0
  1080. package/es/ts-types/chartType.js.map +1 -0
  1081. package/es/ts-types/column/index.d.ts +2 -0
  1082. package/es/ts-types/column/index.js +4 -0
  1083. package/es/ts-types/column/index.js.map +1 -0
  1084. package/es/ts-types/column/style.d.ts +78 -0
  1085. package/es/ts-types/column/style.js +2 -0
  1086. package/es/ts-types/column/style.js.map +1 -0
  1087. package/es/ts-types/column/type.d.ts +2 -0
  1088. package/es/ts-types/column/type.js +2 -0
  1089. package/es/ts-types/column/type.js.map +1 -0
  1090. package/es/ts-types/common.d.ts +72 -0
  1091. package/es/ts-types/common.js +2 -0
  1092. package/es/ts-types/common.js.map +1 -0
  1093. package/es/ts-types/customElement.d.ts +111 -0
  1094. package/es/ts-types/customElement.js +2 -0
  1095. package/es/ts-types/customElement.js.map +1 -0
  1096. package/es/ts-types/customLayout.d.ts +8 -0
  1097. package/es/ts-types/customLayout.js +2 -0
  1098. package/es/ts-types/customLayout.js.map +1 -0
  1099. package/es/ts-types/events.d.ts +182 -0
  1100. package/es/ts-types/events.js +2 -0
  1101. package/es/ts-types/events.js.map +1 -0
  1102. package/es/ts-types/icon.d.ts +86 -0
  1103. package/es/ts-types/icon.js +28 -0
  1104. package/es/ts-types/icon.js.map +1 -0
  1105. package/es/ts-types/index.d.ts +15 -0
  1106. package/es/ts-types/index.js +30 -0
  1107. package/es/ts-types/index.js.map +1 -0
  1108. package/es/ts-types/list-table/define/basic-define.d.ts +36 -0
  1109. package/es/ts-types/list-table/define/basic-define.js +2 -0
  1110. package/es/ts-types/list-table/define/basic-define.js.map +1 -0
  1111. package/es/ts-types/list-table/define/chart-define.d.ts +10 -0
  1112. package/es/ts-types/list-table/define/chart-define.js +2 -0
  1113. package/es/ts-types/list-table/define/chart-define.js.map +1 -0
  1114. package/es/ts-types/list-table/define/image-define.d.ts +15 -0
  1115. package/es/ts-types/list-table/define/image-define.js +2 -0
  1116. package/es/ts-types/list-table/define/image-define.js.map +1 -0
  1117. package/es/ts-types/list-table/define/index.d.ts +21 -0
  1118. package/es/ts-types/list-table/define/index.js +2 -0
  1119. package/es/ts-types/list-table/define/index.js.map +1 -0
  1120. package/es/ts-types/list-table/define/link-define.d.ts +17 -0
  1121. package/es/ts-types/list-table/define/link-define.js +2 -0
  1122. package/es/ts-types/list-table/define/link-define.js.map +1 -0
  1123. package/es/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
  1124. package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
  1125. package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  1126. package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  1127. package/es/ts-types/list-table/define/progressbar-define.js +2 -0
  1128. package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
  1129. package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  1130. package/es/ts-types/list-table/define/sparkline-define.js +2 -0
  1131. package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
  1132. package/es/ts-types/list-table/index.d.ts +2 -0
  1133. package/es/ts-types/list-table/index.js +4 -0
  1134. package/es/ts-types/list-table/index.js.map +1 -0
  1135. package/es/ts-types/list-table/layout-map/api.d.ts +92 -0
  1136. package/es/ts-types/list-table/layout-map/api.js +2 -0
  1137. package/es/ts-types/list-table/layout-map/api.js.map +1 -0
  1138. package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
  1139. package/es/ts-types/list-table/layout-map/index.js +2 -0
  1140. package/es/ts-types/list-table/layout-map/index.js.map +1 -0
  1141. package/es/ts-types/menu.d.ts +73 -0
  1142. package/es/ts-types/menu.js +2 -0
  1143. package/es/ts-types/menu.js.map +1 -0
  1144. package/es/ts-types/new-data-set.d.ts +95 -0
  1145. package/es/ts-types/new-data-set.js +13 -0
  1146. package/es/ts-types/new-data-set.js.map +1 -0
  1147. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
  1148. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +9 -0
  1149. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  1150. package/es/ts-types/pivot-table/corner.d.ts +19 -0
  1151. package/es/ts-types/pivot-table/corner.js +2 -0
  1152. package/es/ts-types/pivot-table/corner.js.map +1 -0
  1153. package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
  1154. package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
  1155. package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  1156. package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
  1157. package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
  1158. package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  1159. package/es/ts-types/pivot-table/dimension/index.d.ts +4 -0
  1160. package/es/ts-types/pivot-table/dimension/index.js +2 -0
  1161. package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
  1162. package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
  1163. package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
  1164. package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  1165. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  1166. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
  1167. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  1168. package/es/ts-types/pivot-table/index.d.ts +4 -0
  1169. package/es/ts-types/pivot-table/index.js +8 -0
  1170. package/es/ts-types/pivot-table/index.js.map +1 -0
  1171. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
  1172. package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
  1173. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  1174. package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
  1175. package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
  1176. package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  1177. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
  1178. package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
  1179. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  1180. package/es/ts-types/pivot-table/indicator/index.d.ts +10 -0
  1181. package/es/ts-types/pivot-table/indicator/index.js +2 -0
  1182. package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
  1183. package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
  1184. package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
  1185. package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  1186. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  1187. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
  1188. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  1189. package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  1190. package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
  1191. package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  1192. package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  1193. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
  1194. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  1195. package/es/ts-types/pivot-table/title.d.ts +18 -0
  1196. package/es/ts-types/pivot-table/title.js +2 -0
  1197. package/es/ts-types/pivot-table/title.js.map +1 -0
  1198. package/es/ts-types/style-define.d.ts +60 -0
  1199. package/es/ts-types/style-define.js +2 -0
  1200. package/es/ts-types/style-define.js.map +1 -0
  1201. package/es/ts-types/table-engine.d.ts +169 -0
  1202. package/es/ts-types/table-engine.js +12 -0
  1203. package/es/ts-types/table-engine.js.map +1 -0
  1204. package/es/ts-types/theme.d.ts +88 -0
  1205. package/es/ts-types/theme.js +2 -0
  1206. package/es/ts-types/theme.js.map +1 -0
  1207. package/es/ts-types/tooltip.d.ts +22 -0
  1208. package/es/ts-types/tooltip.js +2 -0
  1209. package/es/ts-types/tooltip.js.map +1 -0
  1210. package/package.json +95 -0
@@ -0,0 +1,80 @@
1
+ import { DIRECTION_KEY } from "./direction";
2
+
3
+ export class Line {
4
+ constructor(widthLimit, direction, justifyContent, alignItems) {
5
+ this.width = 0, this.height = 0, this.y = 0, this.x = 0, this.children = [], this.addAble = !0,
6
+ this.widthLimit = 0, this.heightLimit = 0, this.offsetX = 0, this.direction = direction,
7
+ this.directionKey = DIRECTION_KEY[this.direction], this.justifyContent = justifyContent,
8
+ this.alignItems = alignItems, this[this.directionKey.widthLimit] = widthLimit;
9
+ }
10
+ add(element) {
11
+ element[this.directionKey.x] = this[this.directionKey.width], this[this.directionKey.width] += element[this.directionKey.layoutWidth],
12
+ this.children.push(element), this.updateHeight(element);
13
+ }
14
+ canAdd(element) {
15
+ return !(this[this.directionKey.width] + element[this.directionKey.layoutWidth] > this[this.directionKey.widthLimit]);
16
+ }
17
+ updateHeight(element) {
18
+ element[this.directionKey.layoutHeight] > this[this.directionKey.height] && (this[this.directionKey.height] = element[this.directionKey.layoutHeight]);
19
+ }
20
+ lineFinish() {
21
+ this.updateXAlign();
22
+ }
23
+ updateXAlign() {
24
+ const offsetX = this[this.directionKey.widthLimit] - this[this.directionKey.width];
25
+ "center" === this.justifyContent ? this.offsetX = offsetX / 2 : "start" === this.justifyContent ? this.offsetX = 0 : this.offsetX = offsetX;
26
+ }
27
+ getOffsetY(element) {
28
+ switch (this.alignItems) {
29
+ case "start":
30
+ default:
31
+ return 0;
32
+
33
+ case "center":
34
+ return (this[this.directionKey.height] - element[this.directionKey.layoutHeight]) / 2;
35
+
36
+ case "end":
37
+ return this[this.directionKey.height] - element[this.directionKey.layoutHeight];
38
+ }
39
+ }
40
+ getContentSize() {
41
+ const result = {
42
+ width: 0,
43
+ height: 0
44
+ };
45
+ for (let i = 0; i < this.children.length; i++) {
46
+ const element = this.children[i];
47
+ let size;
48
+ size = "container" === element.type ? element.getContentSize() : {
49
+ width: element.layoutWidth,
50
+ height: element.layoutHeight
51
+ }, result[this.directionKey.height] < size[this.directionKey.height] && (result[this.directionKey.height] = size[this.directionKey.height]),
52
+ result[this.directionKey.width] += size[this.directionKey.width];
53
+ }
54
+ return result;
55
+ }
56
+ getElements(parentPos = {
57
+ parentX: 0,
58
+ parentY: 0
59
+ }, isHover = !1, isSelect = !1) {
60
+ var _a, _b;
61
+ const elements = [];
62
+ for (let i = 0; i < this.children.length; i++) {
63
+ const element = this.children[i];
64
+ if ("container" === element.type || "group-element" === element.type) {
65
+ const childElements = element.getElements({
66
+ [this.directionKey.parentX]: this.offsetX + this[this.directionKey.x] + parentPos.parentX,
67
+ [this.directionKey.parentY]: this.getOffsetY(element) + this[this.directionKey.y] + parentPos.parentY
68
+ }, isHover, isSelect);
69
+ elements.push(...childElements);
70
+ } else {
71
+ if ("icon" === element.type && ("mouseenter_cell" === (null === (_a = element.cache) || void 0 === _a ? void 0 : _a.visibleTime) && !isHover || "click_cell" === (null === (_b = element.cache) || void 0 === _b ? void 0 : _b.visibleTime) && !isSelect)) continue;
72
+ element[this.directionKey.x] += this.offsetX + this[this.directionKey.x] + parentPos.parentX,
73
+ element[this.directionKey.y] += this.getOffsetY(element) + this[this.directionKey.y] + parentPos.parentY,
74
+ elements.push(element);
75
+ }
76
+ }
77
+ return elements;
78
+ }
79
+ }
80
+ //# sourceMappingURL=line.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["render/layout/line.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,OAAO,IAAI;IAef,YAAY,UAAkB,EAAE,SAAoB,EAAE,cAA8B,EAAE,UAAsB;QAd5G,UAAK,GAAG,CAAC,CAAC;QACV,WAAM,GAAG,CAAC,CAAC;QACX,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QACN,aAAQ,GAAkB,EAAE,CAAC;QAC7B,YAAO,GAAG,IAAI,CAAC;QACf,eAAU,GAAG,CAAC,CAAC;QACf,gBAAW,GAAG,CAAC,CAAC;QAGhB,YAAO,GAAG,CAAC,CAAC;QAKV,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAA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AC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO;iBACtG,EACD,OAAO,EACP,QAAQ,CACT,CAAC;gBACF,QAAQ,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;aACjC;iBAAM;gBACL,IACE,OAAO,CAAC,IAAI,KAAK,MAAM;oBACvB,CAAC,CAAC,CAAA,MAAC,OAAgB,CAAC,KAAK,0CAAE,WAAW,MAAK,iBAAiB,IAAI,CAAC,OAAO,CAAC;wBACvE,CAAC,CAAA,MAAC,OAAgB,CAAC,KAAK,0CAAE,WAAW,MAAK,YAAY,IAAI,CAAC,QAAQ,CAAC,CAAC,EACvE;oBACA,SAAS;iBACV;gBAED,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;gBAC7F,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;gBACzG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB;SACF;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","file":"line.js","sourcesContent":["import type { Container } from './container';\nimport type { AlignItems, Direction, DirectionKey, JustifyContent } from './direction';\nimport { DIRECTION_KEY } from './direction';\nimport type { BaseElement } from './element';\nimport type { Icon } from './icon';\n\nexport class Line {\n width = 0;\n height = 0;\n y = 0;\n x = 0;\n children: BaseElement[] = [];\n addAble = true;\n widthLimit = 0;\n heightLimit = 0;\n direction: Direction;\n directionKey: DirectionKey;\n offsetX = 0;\n justifyContent: JustifyContent;\n alignItems: AlignItems;\n\n constructor(widthLimit: number, direction: Direction, justifyContent: JustifyContent, alignItems: AlignItems) {\n this.direction = direction;\n this.directionKey = DIRECTION_KEY[this.direction];\n this.justifyContent = justifyContent;\n this.alignItems = alignItems;\n\n // this.widthLimit = widthLimit;\n this[this.directionKey.widthLimit] = widthLimit;\n }\n\n add(element: BaseElement) {\n // element.x = this.width;\n // this.width += element.layoutWidth;\n element[this.directionKey.x] = this[this.directionKey.width];\n this[this.directionKey.width] += element[this.directionKey.layoutWidth];\n\n this.children.push(element);\n this.updateHeight(element);\n }\n\n canAdd(element: BaseElement): boolean {\n // if (this.width + element.layoutWidth > this.widthLimit) {\n if (this[this.directionKey.width] + element[this.directionKey.layoutWidth] > this[this.directionKey.widthLimit]) {\n return false;\n }\n return true;\n }\n\n updateHeight(element: BaseElement) {\n // if (element.layoutHeight > this.height) {\n // this.height = element.layoutHeight;\n // }\n if (element[this.directionKey.layoutHeight] > this[this.directionKey.height]) {\n this[this.directionKey.height] = element[this.directionKey.layoutHeight];\n }\n }\n\n lineFinish() {\n this.updateXAlign();\n }\n\n // 主轴方向上对齐\n updateXAlign() {\n const offsetX = this[this.directionKey.widthLimit] - this[this.directionKey.width];\n if (this.justifyContent === 'center') {\n this.offsetX = offsetX / 2;\n } else if (this.justifyContent === 'start') {\n this.offsetX = 0;\n } else {\n this.offsetX = offsetX;\n }\n }\n\n getOffsetY(element: BaseElement): number {\n switch (this.alignItems) {\n case 'start':\n return 0;\n case 'center':\n return (this[this.directionKey.height] - element[this.directionKey.layoutHeight]) / 2;\n case 'end':\n return this[this.directionKey.height] - element[this.directionKey.layoutHeight];\n default:\n return 0;\n }\n }\n\n getContentSize() {\n const result = {\n width: 0,\n height: 0\n };\n\n for (let i = 0; i < this.children.length; i++) {\n const element = this.children[i];\n let size;\n if (element.type === 'container') {\n size = (element as Container).getContentSize();\n } else {\n size = {\n width: element.layoutWidth,\n height: element.layoutHeight\n };\n }\n\n if (result[this.directionKey.height] < size[this.directionKey.height]) {\n result[this.directionKey.height] = size[this.directionKey.height];\n }\n result[this.directionKey.width] += size[this.directionKey.width];\n }\n\n return result;\n }\n\n // 获取平坦后的全部子图元,更新子图元xy位置信息\n getElements(\n parentPos: { parentX: number; parentY: number } = { parentX: 0, parentY: 0 },\n isHover = false,\n isSelect = false\n ) {\n const elements = [];\n // const parentPos = { parentX, parentY };\n for (let i = 0; i < this.children.length; i++) {\n const element = this.children[i];\n if (element.type === 'container' || element.type === 'group-element') {\n const childElements = (element as any).getElements(\n {\n [this.directionKey.parentX]: this.offsetX + this[this.directionKey.x] + parentPos.parentX,\n [this.directionKey.parentY]: this.getOffsetY(element) + this[this.directionKey.y] + parentPos.parentY\n },\n isHover,\n isSelect\n );\n elements.push(...childElements);\n } else {\n if (\n element.type === 'icon' &&\n (((element as Icon).cache?.visibleTime === 'mouseenter_cell' && !isHover) ||\n ((element as Icon).cache?.visibleTime === 'click_cell' && !isSelect))\n ) {\n continue;\n }\n\n element[this.directionKey.x] += this.offsetX + this[this.directionKey.x] + parentPos.parentX;\n element[this.directionKey.y] += this.getOffsetY(element) + this[this.directionKey.y] + parentPos.parentY;\n elements.push(element);\n }\n }\n\n return elements;\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export type percentCalcObj = {
2
+ percent: number;
3
+ delta: number;
4
+ };
5
+ export declare function percentCalc(percent: number, delta?: number): {
6
+ percent: number;
7
+ delta: number;
8
+ };
@@ -0,0 +1,7 @@
1
+ export function percentCalc(percent, delta = 0) {
2
+ return {
3
+ percent: percent,
4
+ delta: delta
5
+ };
6
+ }
7
+ //# sourceMappingURL=percent-calc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["render/layout/percent-calc.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAK,GAAG,CAAC;IACpD,OAAO;QACL,OAAO;QACP,KAAK;KACN,CAAC;AACJ,CAAC","file":"percent-calc.js","sourcesContent":["export type percentCalcObj = {\n percent: number;\n delta: number;\n};\n\nexport function percentCalc(percent: number, delta = 0) {\n return {\n percent,\n delta\n };\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import type { ElementOptions } from './element';
2
+ import { BaseElement } from './element';
3
+ type RectOptions = {
4
+ width: number;
5
+ height: number;
6
+ lineWidth?: number;
7
+ borderRadius?: number;
8
+ fillColor?: string;
9
+ strokeColor?: string;
10
+ } & ElementOptions;
11
+ export declare class Rect extends BaseElement {
12
+ type: 'rect';
13
+ width: number;
14
+ height: number;
15
+ lineWidth: number;
16
+ borderRadius: number;
17
+ radius: number;
18
+ fillColor: string;
19
+ strokeColor: string;
20
+ constructor(options: RectOptions);
21
+ }
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import { BaseElement } from "./element";
2
+
3
+ export class Rect extends BaseElement {
4
+ constructor(options) {
5
+ super(options), this.type = "rect", this.width = options.width, this.height = options.height,
6
+ this.lineWidth = options.lineWidth || 0, this.borderRadius = options.borderRadius || 0,
7
+ this.radius = this.borderRadius, this.fillColor = options.fillColor || "#777", this.strokeColor = options.strokeColor || void 0,
8
+ this.initLayoutSize();
9
+ }
10
+ }
11
+ //# sourceMappingURL=rect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["render/layout/rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAWxC,MAAM,OAAO,IAAK,SAAQ,WAAW;IAUnC,YAAY,OAAoB;QAC9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAVjB,SAAI,GAAW,MAAM,CAAC;QAWpB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,MAAM,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,SAAS,CAAC;QAEpD,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;CACF","file":"rect.js","sourcesContent":["import type { ElementOptions } from './element';\nimport { BaseElement } from './element';\n\ntype RectOptions = {\n width: number;\n height: number;\n lineWidth?: number;\n borderRadius?: number;\n fillColor?: string;\n strokeColor?: string;\n} & ElementOptions;\n\nexport class Rect extends BaseElement {\n type: 'rect' = 'rect';\n declare width: number;\n declare height: number;\n lineWidth: number;\n borderRadius: number;\n radius: number;\n fillColor: string;\n strokeColor: string;\n\n constructor(options: RectOptions) {\n super(options);\n this.width = options.width;\n this.height = options.height;\n this.lineWidth = options.lineWidth || 0;\n this.borderRadius = options.borderRadius || 0;\n this.radius = this.borderRadius;\n this.fillColor = options.fillColor || '#777';\n this.strokeColor = options.strokeColor || undefined;\n\n this.initLayoutSize();\n }\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import type { BaseTableAPI } from '../../ts-types/base-table';
2
+ import type { ElementOptions } from './element';
3
+ import { BaseElement } from './element';
4
+ type TextOptions = {
5
+ text: string;
6
+ fontSize?: number;
7
+ fontFamily?: string;
8
+ fillColor?: string;
9
+ } & ElementOptions;
10
+ export declare class Text extends BaseElement {
11
+ type: 'text';
12
+ text: string;
13
+ fontSize: number;
14
+ fontFamily: string;
15
+ fillColor: string;
16
+ color: string;
17
+ textBaseline: 'top';
18
+ textAlign: 'left';
19
+ constructor(options: TextOptions);
20
+ getSize(table: BaseTableAPI): void;
21
+ }
22
+ export {};
@@ -0,0 +1,18 @@
1
+ import { BaseElement } from "./element";
2
+
3
+ export class Text extends BaseElement {
4
+ constructor(options) {
5
+ super(options), this.type = "text", this.textBaseline = "top", this.textAlign = "left",
6
+ this.text = options.text, this.fontSize = options.fontSize || 12, this.fontFamily = options.fontFamily || "sans-serif",
7
+ this.color = this.fillColor = options.fillColor || "black";
8
+ }
9
+ getSize(table) {
10
+ const {width: width, height: height} = table.measureText(this.text, {
11
+ fontSize: this.fontSize,
12
+ fontFamily: this.fontFamily
13
+ });
14
+ this.width = width, this.height = height, this.initLayoutSize(), this.background && (this.dx += this.background.expandX || 0,
15
+ this.dy += this.background.expandY || 0);
16
+ }
17
+ }
18
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["render/layout/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AASxC,MAAM,OAAO,IAAK,SAAQ,WAAW;IAWnC,YAAY,OAAoB;QAC9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAXjB,SAAI,GAAW,MAAM,CAAC;QAOtB,iBAAY,GAAU,KAAK,CAAC;QAC5B,cAAS,GAAW,MAAM,CAAC;QAIzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC;IAE7D,CAAC;IAED,OAAO,CAAC,KAAmB;QACzB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE;YACrD,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;YACxC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;SACzC;IACH,CAAC;CACF","file":"text.js","sourcesContent":["import type { BaseTableAPI } from '../../ts-types/base-table';\nimport type { ElementOptions } from './element';\nimport { BaseElement } from './element';\n\ntype TextOptions = {\n text: string;\n fontSize?: number;\n fontFamily?: string;\n fillColor?: string;\n} & ElementOptions;\n\nexport class Text extends BaseElement {\n type: 'text' = 'text';\n text: string;\n fontSize: number;\n fontFamily: string;\n fillColor: string;\n color: string;\n // font: string;\n textBaseline: 'top' = 'top';\n textAlign: 'left' = 'left';\n\n constructor(options: TextOptions) {\n super(options);\n this.text = options.text;\n this.fontSize = options.fontSize || 12;\n this.fontFamily = options.fontFamily || 'sans-serif';\n this.color = this.fillColor = options.fillColor || 'black';\n // this.font = `${this.fontSize}px ${this.fontFamily}`;\n }\n\n getSize(table: BaseTableAPI) {\n const { width, height } = table.measureText(this.text, {\n fontSize: this.fontSize,\n fontFamily: this.fontFamily\n });\n this.width = width;\n this.height = height;\n this.initLayoutSize();\n\n if (this.background) {\n this.dx += this.background.expandX || 0;\n this.dy += this.background.expandY || 0;\n }\n }\n}\n"]}
@@ -0,0 +1,36 @@
1
+ import type { IGroupGraphicAttribute } from '@visactor/vrender';
2
+ import { RichText } from '@visactor/vrender';
3
+ import { Group } from '../graphic/group';
4
+ import { Icon } from '../graphic/icon';
5
+ import { WrapText } from '../graphic/text';
6
+ interface ICellContentOption {
7
+ autoWidth: boolean;
8
+ autoHeight: boolean;
9
+ cellWidth: number;
10
+ cellHeight: number;
11
+ align: CanvasTextAlign;
12
+ baseline: CanvasTextBaseline;
13
+ }
14
+ export declare class CellContent extends Group {
15
+ _leftGroup: Group;
16
+ _rightGroup: Group;
17
+ _centerGroup: Group;
18
+ _autoWidth: boolean;
19
+ _autoHeight: boolean;
20
+ _cellWidth: number;
21
+ _cellHeight: number;
22
+ _align: CanvasTextAlign;
23
+ _baseline: CanvasTextBaseline;
24
+ constructor(params: IGroupGraphicAttribute);
25
+ setCellContentOption(option: ICellContentOption): void;
26
+ addLeftOccupyingIcon(icon: Icon): void;
27
+ addRightOccupyingIcon(icon: Icon): void;
28
+ addContent(content: Icon | WrapText | RichText): void;
29
+ layout(): void;
30
+ updateCenterLayout(contentWidth: number): void;
31
+ updateHorizontalPos(): void;
32
+ updateVerticalPos(): void;
33
+ updateWidth(width: number): void;
34
+ updateHeight(height: number): void;
35
+ }
36
+ export {};
@@ -0,0 +1,98 @@
1
+ import { RichText } from "@visactor/vrender";
2
+
3
+ import { Group } from "../graphic/group";
4
+
5
+ import { Icon } from "../graphic/icon";
6
+
7
+ import { WrapText } from "../graphic/text";
8
+
9
+ export class CellContent extends Group {
10
+ constructor(params) {
11
+ super(params), this._autoWidth = !1, this._autoHeight = !1, this._leftGroup = new Group({
12
+ pickable: !1
13
+ }), this._leftGroup.role = "content-left", this._rightGroup = new Group({
14
+ pickable: !1
15
+ }), this._rightGroup.role = "content-right", this._centerGroup = new Group({
16
+ pickable: !1
17
+ }), this._centerGroup.role = "content-center", this.appendChild(this._leftGroup),
18
+ this.appendChild(this._rightGroup), this.appendChild(this._centerGroup);
19
+ }
20
+ setCellContentOption(option) {
21
+ this._autoWidth = option.autoWidth, this._autoHeight = option.autoHeight, this._cellWidth = option.cellWidth,
22
+ this._cellHeight = option.cellHeight, this._align = option.align, this._baseline = option.baseline;
23
+ }
24
+ addLeftOccupyingIcon(icon) {
25
+ var _a, _b, _c;
26
+ icon.setAttribute("x", this._leftGroup.width + (null !== (_a = icon.attribute.marginLeft) && void 0 !== _a ? _a : 0)),
27
+ this._leftGroup.appendChild(icon), this._leftGroup.setDeltaWidth((null !== (_b = icon.attribute.marginLeft) && void 0 !== _b ? _b : 0) + (null !== (_c = icon.attribute.marginRight) && void 0 !== _c ? _c : 0) + icon.attribute.width);
28
+ }
29
+ addRightOccupyingIcon(icon) {
30
+ var _a, _b, _c;
31
+ icon.setAttribute("x", this._rightGroup.width + (null !== (_a = icon.attribute.marginLeft) && void 0 !== _a ? _a : 0)),
32
+ this._rightGroup.appendChild(icon), this._rightGroup.setDeltaWidth((null !== (_b = icon.attribute.marginLeft) && void 0 !== _b ? _b : 0) + (null !== (_c = icon.attribute.marginRight) && void 0 !== _c ? _c : 0) + icon.attribute.width);
33
+ }
34
+ addContent(content) {
35
+ const lastChild = this._centerGroup.lastChild;
36
+ lastChild && content.setAttributes({
37
+ x: lastChild.attribute.x + lastChild.AABBBounds.width()
38
+ }), this._centerGroup.appendChild(content), content instanceof WrapText && (this._centerGroup.setAttribute("pickable", !1),
39
+ content.setAttribute("textAlign", "left"));
40
+ }
41
+ layout() {
42
+ let leftOccupyingWidth = this._leftGroup.width;
43
+ leftOccupyingWidth === 1 / 0 && (leftOccupyingWidth = 0);
44
+ let rightOccupyingWidth = this._rightGroup.width;
45
+ if (rightOccupyingWidth === -1 / 0 && (rightOccupyingWidth = 0), this._autoWidth) {
46
+ const centerWidth = this._centerGroup.width;
47
+ this._cellWidth = leftOccupyingWidth + rightOccupyingWidth + centerWidth, this.setAttribute("width", this._cellWidth);
48
+ } else {
49
+ const contentWidth = this._cellWidth - leftOccupyingWidth - rightOccupyingWidth;
50
+ this.updateCenterLayout(contentWidth);
51
+ const centerWidth = this._centerGroup.width;
52
+ this._cellWidth = leftOccupyingWidth + rightOccupyingWidth + centerWidth, this.setAttribute("width", this._cellWidth);
53
+ }
54
+ this.updateHorizontalPos();
55
+ const leftOccupyingHeight = this._leftGroup.height, rightOccupyingHeight = this._rightGroup.height, centerHeight = this._centerGroup.height;
56
+ this._cellHeight = Math.max(leftOccupyingHeight, rightOccupyingHeight, centerHeight),
57
+ this.setAttribute("height", this._cellHeight), this.updateVerticalPos();
58
+ }
59
+ updateCenterLayout(contentWidth) {
60
+ let textWidth = contentWidth;
61
+ this._centerGroup.forEachChildren((child => {
62
+ child instanceof Icon && (textWidth -= child.AABBBounds.width());
63
+ }));
64
+ const text = this._centerGroup.getChildByName("text");
65
+ text instanceof RichText ? text.setAttribute("width", textWidth) : text instanceof WrapText && text.setAttribute("maxLineWidth", textWidth);
66
+ let x = 0;
67
+ this._centerGroup.forEachChildren((child => {
68
+ child.setAttribute("x", x), x += child.AABBBounds.width();
69
+ }));
70
+ }
71
+ updateHorizontalPos() {
72
+ this._leftGroup.setAttribute("x", 0), this._rightGroup.setAttribute("x", this._cellWidth - this._rightGroup.width),
73
+ this._centerGroup.setAttribute("x", this._leftGroup.width), "left" === this._align || "start" === this._align ? this.setAttribute("dx", 0) : "center" === this._align ? this.setAttribute("dx", -this.attribute.width / 2) : "right" !== this._align && "end" !== this._align || this.setAttribute("dx", -this.attribute.width);
74
+ }
75
+ updateVerticalPos() {
76
+ "top" === this._baseline ? (this._leftGroup.setAttribute("y", 0), this._rightGroup.setAttribute("y", 0),
77
+ this._centerGroup.setAttribute("y", 0)) : "middle" === this._baseline ? (this._leftGroup.forEachChildren((icon => {
78
+ icon.setAttribute("y", (this._leftGroup.height - icon.AABBBounds.height()) / 2);
79
+ })), this._rightGroup.forEachChildren((icon => {
80
+ icon.setAttribute("y", (this._rightGroup.height - icon.AABBBounds.height()) / 2);
81
+ })), this._leftGroup.setAttribute("y", this._cellHeight / 2 - this._leftGroup.height / 2),
82
+ this._rightGroup.setAttribute("y", this._cellHeight / 2 - this._rightGroup.height / 2),
83
+ this._centerGroup.setAttribute("y", this._cellHeight / 2 - this._centerGroup.height / 2)) : "bottom" === this._baseline && (this._leftGroup.forEachChildren((icon => {
84
+ icon.setAttribute("y", this._leftGroup.height - icon.AABBBounds.height());
85
+ })), this._rightGroup.forEachChildren((icon => {
86
+ icon.setAttribute("y", this._rightGroup.height - icon.AABBBounds.height());
87
+ })), this._leftGroup.setAttribute("y", this._cellHeight - this._leftGroup.height),
88
+ this._rightGroup.setAttribute("y", this._cellHeight - this._rightGroup.height),
89
+ this._centerGroup.setAttribute("y", this._cellHeight - this._centerGroup.height));
90
+ }
91
+ updateWidth(width) {
92
+ this._cellWidth = width, this.layout();
93
+ }
94
+ updateHeight(height) {
95
+ this._cellHeight = height, this.layout();
96
+ }
97
+ }
98
+ //# sourceMappingURL=cell-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["scenegraph/component/cell-content.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAgC3C,MAAM,OAAO,WAAY,SAAQ,KAAK;IAYpC,YAAY,MAA8B;QACxC,KAAK,CAAC,MAAM,CAAC,CAAC;QARhB,eAAU,GAAG,KAAK,CAAC;QACnB,gBAAW,GAAG,KAAK,CAAC;QASlB,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,CAAC;YAC1B,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,IAAI,KAAK,CAAC;YAC3B,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,CAAC,IAAI,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,IAAI,KAAK,CAAC;YAC5B,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAE1C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC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C7C,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;YAC5E,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,IAAU,EAAE,EAAE;gBAC9C,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;YAC7E,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAC7E,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC/E,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAClF;IACH,CAAC;IAED,WAAW,CAAC,KAAa;QACvB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IAED,YAAY,CAAC,MAAc;QACzB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;CACF","file":"cell-content.js","sourcesContent":["/* eslint-disable no-undef */\nimport type { IGroupGraphicAttribute } from '@visactor/vrender';\nimport { RichText } from '@visactor/vrender';\nimport { Group } from '../graphic/group';\nimport { Icon } from '../graphic/icon';\nimport { WrapText } from '../graphic/text';\n\n/*\n * cell区域规划\n * 左侧占位区 | 中央内容区 | 右侧占位区\n *\n * cell width设置\n * 1. 固定width\n * 2. 自动撑开\n * cell height设置\n * 1. 固定height\n * 2. 无折行,单行自动撑开\n * 2. 折行,多行自动撑开\n *\n * 中央内容区横向对齐方式\n * 纵向对齐方式\n * padding\n */\n\ninterface ICellContentOption {\n autoWidth: boolean;\n autoHeight: boolean;\n cellWidth: number;\n cellHeight: number;\n align: CanvasTextAlign;\n baseline: CanvasTextBaseline;\n}\n\n/**\n * @description: 单元格内容组件,包含content icon & wraptext/richtext\n * @return {*}\n */\nexport class CellContent extends Group {\n _leftGroup: Group;\n _rightGroup: Group;\n _centerGroup: Group;\n\n _autoWidth = false;\n _autoHeight = false;\n _cellWidth: number;\n _cellHeight: number;\n _align: CanvasTextAlign;\n _baseline: CanvasTextBaseline;\n\n constructor(params: IGroupGraphicAttribute) {\n super(params);\n\n this._leftGroup = new Group({\n pickable: false\n });\n this._leftGroup.role = 'content-left';\n this._rightGroup = new Group({\n pickable: false\n });\n this._rightGroup.role = 'content-right';\n this._centerGroup = new Group({\n pickable: false\n });\n this._centerGroup.role = 'content-center';\n\n this.appendChild(this._leftGroup);\n this.appendChild(this._rightGroup);\n this.appendChild(this._centerGroup);\n }\n\n setCellContentOption(option: ICellContentOption) {\n this._autoWidth = option.autoWidth;\n this._autoHeight = option.autoHeight;\n this._cellWidth = option.cellWidth;\n this._cellHeight = option.cellHeight;\n this._align = option.align;\n this._baseline = option.baseline;\n }\n\n addLeftOccupyingIcon(icon: Icon) {\n icon.setAttribute('x', this._leftGroup.width + (icon.attribute.marginLeft ?? 0));\n this._leftGroup.appendChild(icon);\n this._leftGroup.setDeltaWidth(\n (icon.attribute.marginLeft ?? 0) + (icon.attribute.marginRight ?? 0) + icon.attribute.width\n );\n }\n\n addRightOccupyingIcon(icon: Icon) {\n icon.setAttribute('x', this._rightGroup.width + (icon.attribute.marginLeft ?? 0));\n this._rightGroup.appendChild(icon);\n this._rightGroup.setDeltaWidth(\n (icon.attribute.marginLeft ?? 0) + (icon.attribute.marginRight ?? 0) + icon.attribute.width\n );\n }\n\n addContent(content: Icon | WrapText | RichText) {\n const lastChild = this._centerGroup.lastChild as Icon | WrapText | RichText;\n if (lastChild) {\n // 横排content,新加入content更新x坐标\n content.setAttributes({\n x: lastChild.attribute.x + lastChild.AABBBounds.width()\n });\n }\n this._centerGroup.appendChild(content);\n if (content instanceof WrapText) {\n this._centerGroup.setAttribute('pickable', false);\n content.setAttribute('textAlign', 'left');\n }\n }\n\n layout() {\n // 计算左侧占位区域尺寸\n let leftOccupyingWidth = this._leftGroup.width;\n if (leftOccupyingWidth === Infinity) {\n leftOccupyingWidth = 0;\n }\n // 计算右侧占位区域尺寸\n let rightOccupyingWidth = this._rightGroup.width;\n if (rightOccupyingWidth === -Infinity) {\n rightOccupyingWidth = 0;\n }\n\n // 计算中央内容区域尺寸\n if (this._autoWidth) {\n // 计算内容本身宽度\n const centerWidth = this._centerGroup.width;\n // 更新cell宽度\n this._cellWidth = leftOccupyingWidth + rightOccupyingWidth + centerWidth;\n // this.attribute.width = this._cellWidth;\n this.setAttribute('width', this._cellWidth);\n } else {\n // 计算留给内容的宽度\n const contentWidth = this._cellWidth - leftOccupyingWidth - rightOccupyingWidth;\n // 更新内容宽度\n this.updateCenterLayout(contentWidth);\n const centerWidth = this._centerGroup.width;\n this._cellWidth = leftOccupyingWidth + rightOccupyingWidth + centerWidth;\n // this.attribute.width = this._cellWidth;\n this.setAttribute('width', this._cellWidth);\n }\n // 更新水平位置\n this.updateHorizontalPos();\n\n // if (this._autoHeight) {\n const leftOccupyingHeight = this._leftGroup.height;\n const rightOccupyingHeight = this._rightGroup.height;\n const centerHeight = this._centerGroup.height;\n\n this._cellHeight = Math.max(leftOccupyingHeight, rightOccupyingHeight, centerHeight);\n // this.attribute.height = this._cellHeight;\n this.setAttribute('height', this._cellHeight);\n // }\n\n // 更新纵向位置\n this.updateVerticalPos();\n }\n\n updateCenterLayout(contentWidth: number) {\n // 计算留给文字的空间\n let textWidth = contentWidth;\n this._centerGroup.forEachChildren(child => {\n if (child instanceof Icon) {\n textWidth -= child.AABBBounds.width();\n }\n });\n\n // 更新文字宽度\n const text = this._centerGroup.getChildByName('text');\n if (text instanceof RichText) {\n text.setAttribute('width', textWidth);\n } else if (text instanceof WrapText) {\n text.setAttribute('maxLineWidth', textWidth);\n }\n\n // 按顺序更新x\n let x = 0;\n this._centerGroup.forEachChildren((child: Icon | WrapText | RichText) => {\n child.setAttribute('x', x);\n x += child.AABBBounds.width();\n });\n }\n\n updateHorizontalPos() {\n this._leftGroup.setAttribute('x', 0);\n this._rightGroup.setAttribute('x', this._cellWidth - this._rightGroup.width);\n this._centerGroup.setAttribute('x', this._leftGroup.width);\n // 对齐方式由外部处理\n if (this._align === 'left' || this._align === 'start') {\n this.setAttribute('dx', 0);\n } else if (this._align === 'center') {\n this.setAttribute('dx', -this.attribute.width / 2);\n } else if (this._align === 'right' || this._align === 'end') {\n this.setAttribute('dx', -this.attribute.width);\n }\n }\n\n updateVerticalPos() {\n if (this._baseline === 'top') {\n this._leftGroup.setAttribute('y', 0);\n this._rightGroup.setAttribute('y', 0);\n this._centerGroup.setAttribute('y', 0);\n } else if (this._baseline === 'middle') {\n // 处理Group内icon对齐\n this._leftGroup.forEachChildren((icon: Icon) => {\n icon.setAttribute('y', (this._leftGroup.height - icon.AABBBounds.height()) / 2);\n });\n this._rightGroup.forEachChildren((icon: Icon) => {\n icon.setAttribute('y', (this._rightGroup.height - icon.AABBBounds.height()) / 2);\n });\n\n this._leftGroup.setAttribute('y', this._cellHeight / 2 - this._leftGroup.height / 2);\n this._rightGroup.setAttribute('y', this._cellHeight / 2 - this._rightGroup.height / 2);\n this._centerGroup.setAttribute('y', this._cellHeight / 2 - this._centerGroup.height / 2);\n } else if (this._baseline === 'bottom') {\n // 处理Group内icon对齐\n this._leftGroup.forEachChildren((icon: Icon) => {\n icon.setAttribute('y', this._leftGroup.height - icon.AABBBounds.height());\n });\n this._rightGroup.forEachChildren((icon: Icon) => {\n icon.setAttribute('y', this._rightGroup.height - icon.AABBBounds.height());\n });\n\n this._leftGroup.setAttribute('y', this._cellHeight - this._leftGroup.height);\n this._rightGroup.setAttribute('y', this._cellHeight - this._rightGroup.height);\n this._centerGroup.setAttribute('y', this._cellHeight - this._centerGroup.height);\n }\n }\n\n updateWidth(width: number) {\n this._cellWidth = width;\n this.layout();\n }\n\n updateHeight(height: number) {\n this._cellHeight = height;\n this.layout();\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import type { ILine, IRect, ISymbol } from '@visactor/vrender';
2
+ import type { Group } from '../graphic/group';
3
+ import type { BaseTableAPI } from '../../ts-types/base-table';
4
+ export declare class CellMover {
5
+ columnMoverLabel: ISymbol;
6
+ columnMoverLine: ILine;
7
+ columnMoverBack: IRect;
8
+ table: BaseTableAPI;
9
+ x?: number;
10
+ constructor(table: BaseTableAPI);
11
+ appand(parent: Group): void;
12
+ show(col: number, row: number, delta: number): void;
13
+ hide(): void;
14
+ update(backX: number | undefined, lineX: number | undefined, backY: number | undefined, lineY: number | undefined): void;
15
+ }
@@ -0,0 +1,101 @@
1
+ import { createLine, createRect, createSymbol } from "@visactor/vrender";
2
+
3
+ import { getCellMergeInfo } from "../utils/get-cell-merge";
4
+
5
+ export class CellMover {
6
+ constructor(table) {
7
+ const columnMoverLineWidth = table.theme.dragHeaderSplitLine.lineWidth, columnMoverLineColor = table.theme.dragHeaderSplitLine.lineColor, columnMoverShadowBlockColor = table.theme.dragHeaderSplitLine.shadowBlockColor;
8
+ this.columnMoverLabel = createSymbol({
9
+ visible: !1,
10
+ pickable: !1,
11
+ x: 0,
12
+ y: 0,
13
+ symbolType: "triangle",
14
+ fillColor: columnMoverLineColor
15
+ }), this.columnMoverLine = createLine({
16
+ visible: !1,
17
+ pickable: !1,
18
+ stroke: !0,
19
+ strokeColor: columnMoverLineColor,
20
+ lineWidth: columnMoverLineWidth,
21
+ x: 0,
22
+ y: 0,
23
+ points: [ {
24
+ x: 0,
25
+ y: 0
26
+ }, {
27
+ x: 0,
28
+ y: 0
29
+ } ]
30
+ }), this.columnMoverBack = createRect({
31
+ visible: !1,
32
+ pickable: !1,
33
+ fill: !0,
34
+ fillColor: columnMoverShadowBlockColor,
35
+ x: 0,
36
+ y: 0,
37
+ width: 0,
38
+ height: 0
39
+ }), this.table = table;
40
+ }
41
+ appand(parent) {
42
+ parent.appendChild(this.columnMoverLabel), parent.appendChild(this.columnMoverLine),
43
+ parent.appendChild(this.columnMoverBack);
44
+ }
45
+ show(col, row, delta) {
46
+ const cellType = this.table.getCellType(col, row), mergeInfo = getCellMergeInfo(this.table, col, row);
47
+ mergeInfo && (col = mergeInfo.start.col, row = mergeInfo.start.row);
48
+ let rectX = 0, rectY = 0, rectWidth = 0, rectHeight = 0, rectDx = 0, rectDy = 0, symbolX = 0, symbolY = 0, symbolRotate = Math.PI;
49
+ const linePoints = [];
50
+ "columnHeader" === cellType ? (rectX = this.table.getColsWidth(0, col - 1) - this.table.stateManeger.scroll.horizontalBarPos,
51
+ rectY = this.table.getRowsHeight(0, this.table.frozenRowCount - 1), rectHeight = this.table.tableNoFrameHeight,
52
+ rectWidth = mergeInfo ? this.table.getColsWidth(mergeInfo.start.col, mergeInfo.end.col) : this.table.getColWidth(col),
53
+ rectDx = rectX - delta, symbolX = rectX + rectWidth, symbolY = 2, linePoints.push({
54
+ x: 0,
55
+ y: 0
56
+ }), linePoints.push({
57
+ x: 0,
58
+ y: this.table.tableNoFrameHeight
59
+ })) : "rowHeader" === cellType && (rectY = this.table.getRowsHeight(0, row - 1) - this.table.stateManeger.scroll.verticalBarPos,
60
+ rectX = this.table.getColsWidth(0, this.table.frozenColCount - 1), rectWidth = this.table.tableNoFrameWidth,
61
+ rectHeight = mergeInfo ? this.table.getRowsHeight(mergeInfo.start.row, mergeInfo.end.row) : this.table.getRowHeight(row),
62
+ rectDy = rectY - delta, symbolX = 2, symbolY = rectY + rectHeight, symbolRotate = Math.PI / 2,
63
+ linePoints.push({
64
+ x: 0,
65
+ y: 0
66
+ }), linePoints.push({
67
+ x: this.table.tableNoFrameWidth,
68
+ y: 0
69
+ })), this.columnMoverBack.setAttributes({
70
+ visible: !0,
71
+ x: rectX - rectDx,
72
+ y: rectY - rectDy,
73
+ width: rectWidth,
74
+ height: rectHeight,
75
+ dx: rectDx,
76
+ dy: rectDy
77
+ }), this.columnMoverLine.setAttributes({
78
+ x: symbolX,
79
+ y: symbolY,
80
+ visible: !0,
81
+ points: linePoints
82
+ }), this.columnMoverLabel.setAttributes({
83
+ visible: !0,
84
+ x: symbolX,
85
+ y: symbolY,
86
+ angle: symbolRotate
87
+ });
88
+ }
89
+ hide() {
90
+ this.columnMoverLabel.setAttribute("visible", !1), this.columnMoverLine.setAttribute("visible", !1),
91
+ this.columnMoverBack.setAttribute("visible", !1);
92
+ }
93
+ update(backX, lineX, backY, lineY) {
94
+ "number" == typeof backX && "number" == typeof lineX ? (this.columnMoverLabel.setAttribute("x", lineX - this.table.stateManeger.scroll.horizontalBarPos),
95
+ this.columnMoverLine.setAttribute("x", lineX - this.table.stateManeger.scroll.horizontalBarPos),
96
+ this.columnMoverBack.setAttribute("x", backX)) : "number" == typeof backY && "number" == typeof lineY && (this.columnMoverLabel.setAttribute("y", lineY - this.table.stateManeger.scroll.verticalBarPos),
97
+ this.columnMoverLine.setAttribute("y", lineY - this.table.stateManeger.scroll.verticalBarPos),
98
+ this.columnMoverBack.setAttribute("y", backY));
99
+ }
100
+ }
101
+ //# sourceMappingURL=cell-mover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["scenegraph/component/cell-mover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,MAAM,OAAO,SAAS;IAOpB,YAAY,KAAmB;QAC7B,MAAM,oBAAoB,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,SAAS,CAAC;QACvE,MAAM,oBAAoB,GAAG,KAAK,CAAC,KAAK,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YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACjG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YAChG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAC/C;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACjE,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;YAC/F,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;YAC9F,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAC/C;IACH,CAAC;CACF","file":"cell-mover.js","sourcesContent":["import type { ILine, IRect, ISymbol } from '@visactor/vrender';\nimport { createLine, createRect, createSymbol } from '@visactor/vrender';\nimport { getCellMergeInfo } from '../utils/get-cell-merge';\nimport type { Group } from '../graphic/group';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\n\nexport class CellMover {\n columnMoverLabel: ISymbol;\n columnMoverLine: ILine;\n columnMoverBack: IRect;\n table: BaseTableAPI;\n x?: number;\n\n constructor(table: BaseTableAPI) {\n const columnMoverLineWidth = table.theme.dragHeaderSplitLine.lineWidth;\n const columnMoverLineColor = table.theme.dragHeaderSplitLine.lineColor;\n const columnMoverShadowBlockColor = table.theme.dragHeaderSplitLine.shadowBlockColor;\n\n this.columnMoverLabel = createSymbol({\n visible: false,\n pickable: false,\n x: 0,\n y: 0,\n symbolType: 'triangle',\n fillColor: columnMoverLineColor as string\n });\n this.columnMoverLine = createLine({\n visible: false,\n pickable: false,\n stroke: true,\n strokeColor: columnMoverLineColor as string,\n lineWidth: columnMoverLineWidth as number,\n x: 0,\n y: 0,\n points: [\n { x: 0, y: 0 },\n { x: 0, y: 0 }\n ]\n });\n\n // 列顺序调整阴影块\n this.columnMoverBack = createRect({\n visible: false,\n pickable: false,\n fill: true,\n fillColor: columnMoverShadowBlockColor,\n // fillOpacity: 0.3,\n x: 0,\n y: 0,\n width: 0,\n height: 0\n });\n\n this.table = table;\n }\n\n appand(parent: Group) {\n parent.appendChild(this.columnMoverLabel);\n parent.appendChild(this.columnMoverLine);\n parent.appendChild(this.columnMoverBack);\n }\n\n show(col: number, row: number, delta: number) {\n const cellType = this.table.getCellType(col, row);\n const mergeInfo = getCellMergeInfo(this.table, col, row);\n if (mergeInfo) {\n col = mergeInfo.start.col;\n row = mergeInfo.start.row;\n }\n\n let rectX = 0;\n let rectY = 0;\n let rectWidth = 0;\n let rectHeight = 0;\n let rectDx = 0;\n let rectDy = 0;\n let symbolX = 0;\n let symbolY = 0;\n let symbolRotate = Math.PI;\n const linePoints: { x: number; y: number }[] = [];\n if (cellType === 'columnHeader') {\n rectX = this.table.getColsWidth(0, col - 1) - this.table.stateManeger.scroll.horizontalBarPos;\n rectY = this.table.getRowsHeight(0, this.table.frozenRowCount - 1);\n rectHeight = this.table.tableNoFrameHeight;\n if (mergeInfo) {\n rectWidth = this.table.getColsWidth(mergeInfo.start.col, mergeInfo.end.col);\n } else {\n rectWidth = this.table.getColWidth(col);\n }\n rectDx = rectX - delta;\n\n symbolX = rectX + rectWidth;\n symbolY = 2;\n\n linePoints.push({ x: 0, y: 0 });\n linePoints.push({ x: 0, y: this.table.tableNoFrameHeight });\n } else if (cellType === 'rowHeader') {\n rectY = this.table.getRowsHeight(0, row - 1) - this.table.stateManeger.scroll.verticalBarPos;\n rectX = this.table.getColsWidth(0, this.table.frozenColCount - 1);\n rectWidth = this.table.tableNoFrameWidth;\n if (mergeInfo) {\n rectHeight = this.table.getRowsHeight(mergeInfo.start.row, mergeInfo.end.row);\n } else {\n rectHeight = this.table.getRowHeight(row);\n }\n rectDy = rectY - delta;\n\n symbolX = 2;\n symbolY = rectY + rectHeight;\n symbolRotate = Math.PI / 2;\n\n linePoints.push({ x: 0, y: 0 });\n linePoints.push({ x: this.table.tableNoFrameWidth, y: 0 });\n }\n\n this.columnMoverBack.setAttributes({\n visible: true,\n x: rectX - rectDx,\n y: rectY - rectDy,\n width: rectWidth,\n height: rectHeight,\n dx: rectDx,\n dy: rectDy\n });\n this.columnMoverLine.setAttributes({\n x: symbolX,\n y: symbolY,\n visible: true,\n points: linePoints\n });\n this.columnMoverLabel.setAttributes({\n visible: true,\n x: symbolX,\n y: symbolY,\n angle: symbolRotate\n });\n }\n\n hide() {\n this.columnMoverLabel.setAttribute('visible', false);\n this.columnMoverLine.setAttribute('visible', false);\n this.columnMoverBack.setAttribute('visible', false);\n }\n\n update(backX: number | undefined, lineX: number | undefined, backY: number | undefined, lineY: number | undefined) {\n if (typeof backX === 'number' && typeof lineX === 'number') {\n this.columnMoverLabel.setAttribute('x', lineX - this.table.stateManeger.scroll.horizontalBarPos);\n this.columnMoverLine.setAttribute('x', lineX - this.table.stateManeger.scroll.horizontalBarPos);\n this.columnMoverBack.setAttribute('x', backX);\n } else if (typeof backY === 'number' && typeof lineY === 'number') {\n this.columnMoverLabel.setAttribute('y', lineY - this.table.stateManeger.scroll.verticalBarPos);\n this.columnMoverLine.setAttribute('y', lineY - this.table.stateManeger.scroll.verticalBarPos);\n this.columnMoverBack.setAttribute('y', backY);\n }\n }\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import type { ICustomLayout, ICustomRender } from '../../ts-types';
2
+ import { Group } from '../graphic/group';
3
+ import type { BaseTableAPI } from '../../ts-types/base-table';
4
+ export declare function dealWithCustom(customLayout: ICustomLayout, customRender: ICustomRender, col: number, row: number, width: number, height: number, autoWidth: boolean, autoHeight: boolean, table: BaseTableAPI): {
5
+ elementsGroup: Group;
6
+ renderDefault: boolean;
7
+ };