@visactor/vtable 0.9.1-alpha.3 → 0.9.1-alpha.5

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 (443) hide show
  1. package/cjs/ListTable.js +15 -4
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotTable.d.ts +2 -1
  4. package/cjs/PivotTable.js +15 -3
  5. package/cjs/PivotTable.js.map +1 -1
  6. package/cjs/body-helper/body-helper.d.ts +1 -0
  7. package/cjs/body-helper/body-helper.js +6 -3
  8. package/cjs/body-helper/body-helper.js.map +1 -1
  9. package/cjs/body-helper/style/ProgressBarStyle.js +14 -8
  10. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -1
  11. package/cjs/body-helper/style/Style.d.ts +3 -0
  12. package/cjs/body-helper/style/Style.js +21 -14
  13. package/cjs/body-helper/style/Style.js.map +1 -1
  14. package/cjs/core/BaseTable.d.ts +5 -2
  15. package/cjs/core/BaseTable.js +39 -27
  16. package/cjs/core/BaseTable.js.map +1 -1
  17. package/cjs/core/tableHelper.js +11 -6
  18. package/cjs/core/tableHelper.js.map +1 -1
  19. package/cjs/data/DataSource.d.ts +4 -1
  20. package/cjs/data/DataSource.js +3 -3
  21. package/cjs/data/DataSource.js.map +1 -1
  22. package/cjs/event/event.d.ts +14 -19
  23. package/cjs/event/event.js +12 -329
  24. package/cjs/event/event.js.map +1 -1
  25. package/cjs/event/listener/container-dom.d.ts +2 -0
  26. package/cjs/event/listener/container-dom.js +42 -0
  27. package/cjs/event/listener/container-dom.js.map +1 -0
  28. package/cjs/event/listener/scroll-bar.d.ts +2 -0
  29. package/cjs/event/listener/scroll-bar.js +44 -0
  30. package/cjs/event/listener/scroll-bar.js.map +1 -0
  31. package/cjs/event/listener/table-group.d.ts +2 -0
  32. package/cjs/event/listener/table-group.js +262 -0
  33. package/cjs/event/listener/table-group.js.map +1 -0
  34. package/cjs/event/listener/touch.d.ts +2 -0
  35. package/cjs/event/listener/touch.js +76 -0
  36. package/cjs/event/listener/touch.js.map +1 -0
  37. package/cjs/event/scroll.d.ts +2 -0
  38. package/cjs/event/scroll.js +32 -4
  39. package/cjs/event/scroll.js.map +1 -1
  40. package/cjs/event/util.d.ts +16 -0
  41. package/cjs/event/util.js +30 -0
  42. package/cjs/event/util.js.map +1 -0
  43. package/cjs/header-helper/header-helper.d.ts +5 -6
  44. package/cjs/header-helper/header-helper.js +19 -22
  45. package/cjs/header-helper/header-helper.js.map +1 -1
  46. package/cjs/icons.js +11 -11
  47. package/cjs/icons.js.map +1 -1
  48. package/cjs/index.d.ts +3 -3
  49. package/cjs/index.js +1 -1
  50. package/cjs/index.js.map +1 -1
  51. package/cjs/layout/index.js +1 -2
  52. package/cjs/layout/pivot-header-layout.d.ts +4 -1
  53. package/cjs/layout/pivot-header-layout.js +15 -14
  54. package/cjs/layout/pivot-header-layout.js.map +1 -1
  55. package/cjs/layout/simple-header-layout.d.ts +13 -1
  56. package/cjs/layout/simple-header-layout.js +12 -1
  57. package/cjs/layout/simple-header-layout.js.map +1 -1
  58. package/cjs/render/layout/container.js +1 -1
  59. package/cjs/render/layout/container.js.map +1 -1
  60. package/cjs/render/layout/element.d.ts +1 -1
  61. package/cjs/render/layout/element.js.map +1 -1
  62. package/cjs/render/layout/rect.d.ts +2 -2
  63. package/cjs/render/layout/rect.js +2 -2
  64. package/cjs/render/layout/rect.js.map +1 -1
  65. package/cjs/scenegraph/component/custom.js +18 -7
  66. package/cjs/scenegraph/component/custom.js.map +1 -1
  67. package/cjs/scenegraph/component/menu.js +2 -2
  68. package/cjs/scenegraph/component/menu.js.map +1 -1
  69. package/cjs/scenegraph/component/table-component.d.ts +3 -3
  70. package/cjs/scenegraph/component/table-component.js +40 -30
  71. package/cjs/scenegraph/component/table-component.js.map +1 -1
  72. package/cjs/scenegraph/graphic/chart.d.ts +1 -0
  73. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  74. package/cjs/scenegraph/graphic/contributions/chart-render.js +7 -2
  75. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  76. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  77. package/cjs/scenegraph/graphic/group.d.ts +4 -0
  78. package/cjs/scenegraph/graphic/group.js +6 -0
  79. package/cjs/scenegraph/graphic/group.js.map +1 -1
  80. package/cjs/scenegraph/graphic/text.js +7 -7
  81. package/cjs/scenegraph/graphic/text.js.map +1 -1
  82. package/cjs/scenegraph/group-creater/cell-helper.d.ts +3 -4
  83. package/cjs/scenegraph/group-creater/cell-helper.js +25 -18
  84. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  85. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +5 -4
  86. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  87. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +11 -1
  88. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  89. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +27 -23
  90. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  91. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +12 -13
  92. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  93. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  94. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +7 -4
  95. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  96. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +1 -1
  97. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  98. package/cjs/scenegraph/group-creater/column-helper.d.ts +3 -3
  99. package/cjs/scenegraph/group-creater/column-helper.js +22 -11
  100. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  101. package/cjs/scenegraph/group-creater/column.d.ts +0 -6
  102. package/cjs/scenegraph/group-creater/column.js +3 -12
  103. package/cjs/scenegraph/group-creater/column.js.map +1 -1
  104. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +0 -2
  105. package/cjs/scenegraph/group-creater/progress/proxy.js +23 -19
  106. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  107. package/cjs/scenegraph/layout/auto-height.js +1 -1
  108. package/cjs/scenegraph/layout/auto-height.js.map +1 -1
  109. package/cjs/scenegraph/layout/auto-width.js +1 -1
  110. package/cjs/scenegraph/layout/auto-width.js.map +1 -1
  111. package/cjs/scenegraph/layout/compute-col-width.d.ts +1 -1
  112. package/cjs/scenegraph/layout/compute-col-width.js +28 -8
  113. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  114. package/cjs/scenegraph/layout/move-cell.js +5 -1
  115. package/cjs/scenegraph/layout/move-cell.js.map +1 -1
  116. package/cjs/scenegraph/layout/update-cell.js +3 -3
  117. package/cjs/scenegraph/layout/update-cell.js.map +1 -1
  118. package/cjs/scenegraph/layout/update-height.js +4 -4
  119. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  120. package/cjs/scenegraph/layout/update-row.d.ts +3 -0
  121. package/cjs/scenegraph/layout/update-row.js +81 -0
  122. package/cjs/scenegraph/layout/update-row.js.map +1 -0
  123. package/cjs/scenegraph/layout/update-width.js +4 -4
  124. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  125. package/cjs/scenegraph/refresh-node/update-chart.d.ts +2 -0
  126. package/cjs/scenegraph/refresh-node/update-chart.js +26 -0
  127. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -0
  128. package/cjs/scenegraph/scenegraph.d.ts +15 -3
  129. package/cjs/scenegraph/scenegraph.js +80 -49
  130. package/cjs/scenegraph/scenegraph.js.map +1 -1
  131. package/cjs/scenegraph/select/create-select-border.js +1 -0
  132. package/cjs/scenegraph/select/create-select-border.js.map +1 -1
  133. package/cjs/scenegraph/stick-text/index.js +52 -40
  134. package/cjs/scenegraph/stick-text/index.js.map +1 -1
  135. package/cjs/scenegraph/style/frame-border.js +4 -4
  136. package/cjs/scenegraph/style/frame-border.js.map +1 -1
  137. package/cjs/scenegraph/utils/deal-promise-data.d.ts +2 -0
  138. package/cjs/scenegraph/utils/deal-promise-data.js +14 -0
  139. package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -0
  140. package/cjs/scenegraph/utils/empty-group.d.ts +2 -0
  141. package/cjs/scenegraph/utils/empty-group.js +10 -0
  142. package/cjs/scenegraph/utils/empty-group.js.map +1 -0
  143. package/cjs/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  144. package/cjs/scenegraph/utils/get-hierarchy-offset.js +27 -0
  145. package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  146. package/cjs/scenegraph/utils/padding.d.ts +1 -1
  147. package/cjs/scenegraph/utils/padding.js +3 -3
  148. package/cjs/scenegraph/utils/padding.js.map +1 -1
  149. package/cjs/scenegraph/utils/text-icon-layout.d.ts +3 -2
  150. package/cjs/scenegraph/utils/text-icon-layout.js +22 -17
  151. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  152. package/cjs/scenegraph/utils/text-pos.js +1 -1
  153. package/cjs/scenegraph/utils/text-pos.js.map +1 -1
  154. package/cjs/state/cell-move/adjust-header.js +9 -2
  155. package/cjs/state/cell-move/adjust-header.js.map +1 -1
  156. package/cjs/state/cell-move/index.js +9 -3
  157. package/cjs/state/cell-move/index.js.map +1 -1
  158. package/cjs/state/frozen/index.d.ts +2 -0
  159. package/cjs/state/{pin → frozen}/index.js +2 -2
  160. package/cjs/state/frozen/index.js.map +1 -0
  161. package/cjs/state/state.d.ts +1 -1
  162. package/cjs/state/state.js +16 -12
  163. package/cjs/state/state.js.map +1 -1
  164. package/cjs/themes/ARCO.js +1 -1
  165. package/cjs/themes/ARCO.js.map +1 -1
  166. package/cjs/themes/BRIGHT.js +1 -1
  167. package/cjs/themes/BRIGHT.js.map +1 -1
  168. package/cjs/themes/DARK.js +1 -1
  169. package/cjs/themes/DARK.js.map +1 -1
  170. package/cjs/themes/DEFAULT.js +1 -1
  171. package/cjs/themes/DEFAULT.js.map +1 -1
  172. package/cjs/themes/theme.d.ts +1 -1
  173. package/cjs/themes/theme.js +6 -6
  174. package/cjs/themes/theme.js.map +1 -1
  175. package/cjs/tools/LimitPromiseQueue.js +1 -2
  176. package/cjs/tools/NumberMap.js +2 -1
  177. package/cjs/tools/diff-cell.d.ts +10 -0
  178. package/cjs/tools/diff-cell.js +49 -0
  179. package/cjs/tools/diff-cell.js.map +1 -0
  180. package/cjs/tools/global.js +1 -1
  181. package/cjs/tools/helper.d.ts +11 -0
  182. package/cjs/tools/helper.js +8 -3
  183. package/cjs/tools/helper.js.map +1 -1
  184. package/cjs/ts-types/base-table.d.ts +8 -2
  185. package/cjs/ts-types/base-table.js.map +1 -1
  186. package/cjs/ts-types/customElement.d.ts +11 -2
  187. package/cjs/ts-types/customElement.js.map +1 -1
  188. package/cjs/ts-types/icon.d.ts +4 -5
  189. package/cjs/ts-types/icon.js +5 -5
  190. package/cjs/ts-types/icon.js.map +1 -1
  191. package/cjs/ts-types/list-table/define/basic-define.d.ts +4 -1
  192. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
  193. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
  194. package/cjs/ts-types/pivot-table/corner.d.ts +6 -6
  195. package/cjs/ts-types/pivot-table/corner.js.map +1 -1
  196. package/cjs/ts-types/pivot-table/dimension/index.d.ts +1 -1
  197. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
  198. package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
  199. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
  200. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +2 -2
  201. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
  202. package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -3
  203. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
  204. package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +2 -2
  205. package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
  206. package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
  207. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
  208. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
  209. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
  210. package/cjs/ts-types/sparkline.d.ts +2 -4
  211. package/cjs/ts-types/sparkline.js.map +1 -1
  212. package/cjs/ts-types/style-define.d.ts +1 -5
  213. package/cjs/ts-types/style-define.js.map +1 -1
  214. package/cjs/ts-types/theme.d.ts +1 -1
  215. package/cjs/ts-types/theme.js.map +1 -1
  216. package/dist/vtable.es5.js +53135 -0
  217. package/dist/vtable.es5.min.js +3 -0
  218. package/dist/vtable.js +16956 -21445
  219. package/dist/vtable.min.js +15 -3
  220. package/es/ListTable.js +16 -3
  221. package/es/ListTable.js.map +1 -1
  222. package/es/PivotTable.d.ts +2 -1
  223. package/es/PivotTable.js +16 -2
  224. package/es/PivotTable.js.map +1 -1
  225. package/es/body-helper/body-helper.d.ts +1 -0
  226. package/es/body-helper/body-helper.js +6 -3
  227. package/es/body-helper/body-helper.js.map +1 -1
  228. package/es/body-helper/style/ProgressBarStyle.js +14 -8
  229. package/es/body-helper/style/ProgressBarStyle.js.map +1 -1
  230. package/es/body-helper/style/Style.d.ts +3 -0
  231. package/es/body-helper/style/Style.js +21 -14
  232. package/es/body-helper/style/Style.js.map +1 -1
  233. package/es/core/BaseTable.d.ts +5 -2
  234. package/es/core/BaseTable.js +40 -27
  235. package/es/core/BaseTable.js.map +1 -1
  236. package/es/core/tableHelper.js +11 -7
  237. package/es/core/tableHelper.js.map +1 -1
  238. package/es/data/DataSource.d.ts +4 -1
  239. package/es/data/DataSource.js +4 -2
  240. package/es/data/DataSource.js.map +1 -1
  241. package/es/event/event.d.ts +14 -19
  242. package/es/event/event.js +16 -333
  243. package/es/event/event.js.map +1 -1
  244. package/es/event/listener/container-dom.d.ts +2 -0
  245. package/es/event/listener/container-dom.js +40 -0
  246. package/es/event/listener/container-dom.js.map +1 -0
  247. package/es/event/listener/scroll-bar.d.ts +2 -0
  248. package/es/event/listener/scroll-bar.js +37 -0
  249. package/es/event/listener/scroll-bar.js.map +1 -0
  250. package/es/event/listener/table-group.d.ts +2 -0
  251. package/es/event/listener/table-group.js +265 -0
  252. package/es/event/listener/table-group.js.map +1 -0
  253. package/es/event/listener/touch.d.ts +2 -0
  254. package/es/event/listener/touch.js +67 -0
  255. package/es/event/listener/touch.js.map +1 -0
  256. package/es/event/scroll.d.ts +2 -0
  257. package/es/event/scroll.js +29 -3
  258. package/es/event/scroll.js.map +1 -1
  259. package/es/event/util.d.ts +16 -0
  260. package/es/event/util.js +24 -0
  261. package/es/event/util.js.map +1 -0
  262. package/es/header-helper/header-helper.d.ts +5 -6
  263. package/es/header-helper/header-helper.js +22 -24
  264. package/es/header-helper/header-helper.js.map +1 -1
  265. package/es/icons.js +11 -11
  266. package/es/icons.js.map +1 -1
  267. package/es/index.d.ts +3 -3
  268. package/es/index.js +1 -1
  269. package/es/index.js.map +1 -1
  270. package/es/layout/index.js +1 -2
  271. package/es/layout/pivot-header-layout.d.ts +4 -1
  272. package/es/layout/pivot-header-layout.js +17 -13
  273. package/es/layout/pivot-header-layout.js.map +1 -1
  274. package/es/layout/simple-header-layout.d.ts +13 -1
  275. package/es/layout/simple-header-layout.js +12 -1
  276. package/es/layout/simple-header-layout.js.map +1 -1
  277. package/es/render/layout/container.js +1 -1
  278. package/es/render/layout/container.js.map +1 -1
  279. package/es/render/layout/element.d.ts +1 -1
  280. package/es/render/layout/element.js.map +1 -1
  281. package/es/render/layout/rect.d.ts +2 -2
  282. package/es/render/layout/rect.js +2 -2
  283. package/es/render/layout/rect.js.map +1 -1
  284. package/es/scenegraph/component/custom.js +20 -9
  285. package/es/scenegraph/component/custom.js.map +1 -1
  286. package/es/scenegraph/component/menu.js +2 -2
  287. package/es/scenegraph/component/menu.js.map +1 -1
  288. package/es/scenegraph/component/table-component.d.ts +3 -3
  289. package/es/scenegraph/component/table-component.js +40 -30
  290. package/es/scenegraph/component/table-component.js.map +1 -1
  291. package/es/scenegraph/graphic/chart.d.ts +1 -0
  292. package/es/scenegraph/graphic/chart.js.map +1 -1
  293. package/es/scenegraph/graphic/contributions/chart-render.js +7 -2
  294. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  295. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  296. package/es/scenegraph/graphic/group.d.ts +4 -0
  297. package/es/scenegraph/graphic/group.js +6 -0
  298. package/es/scenegraph/graphic/group.js.map +1 -1
  299. package/es/scenegraph/graphic/text.js +7 -7
  300. package/es/scenegraph/graphic/text.js.map +1 -1
  301. package/es/scenegraph/group-creater/cell-helper.d.ts +3 -4
  302. package/es/scenegraph/group-creater/cell-helper.js +28 -17
  303. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  304. package/es/scenegraph/group-creater/cell-type/chart-cell.js +5 -4
  305. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  306. package/es/scenegraph/group-creater/cell-type/image-cell.js +12 -2
  307. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  308. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +27 -24
  309. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  310. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +12 -13
  311. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  312. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
  313. package/es/scenegraph/group-creater/cell-type/text-cell.js +7 -4
  314. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  315. package/es/scenegraph/group-creater/cell-type/video-cell.js +1 -1
  316. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  317. package/es/scenegraph/group-creater/column-helper.d.ts +3 -3
  318. package/es/scenegraph/group-creater/column-helper.js +25 -10
  319. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  320. package/es/scenegraph/group-creater/column.d.ts +0 -6
  321. package/es/scenegraph/group-creater/column.js +3 -12
  322. package/es/scenegraph/group-creater/column.js.map +1 -1
  323. package/es/scenegraph/group-creater/progress/proxy.d.ts +0 -2
  324. package/es/scenegraph/group-creater/progress/proxy.js +22 -21
  325. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  326. package/es/scenegraph/layout/auto-height.js +1 -1
  327. package/es/scenegraph/layout/auto-height.js.map +1 -1
  328. package/es/scenegraph/layout/auto-width.js +2 -2
  329. package/es/scenegraph/layout/auto-width.js.map +1 -1
  330. package/es/scenegraph/layout/compute-col-width.d.ts +1 -1
  331. package/es/scenegraph/layout/compute-col-width.js +30 -10
  332. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  333. package/es/scenegraph/layout/move-cell.js +5 -1
  334. package/es/scenegraph/layout/move-cell.js.map +1 -1
  335. package/es/scenegraph/layout/update-cell.js +4 -4
  336. package/es/scenegraph/layout/update-cell.js.map +1 -1
  337. package/es/scenegraph/layout/update-height.js +5 -5
  338. package/es/scenegraph/layout/update-height.js.map +1 -1
  339. package/es/scenegraph/layout/update-row.d.ts +3 -0
  340. package/es/scenegraph/layout/update-row.js +73 -0
  341. package/es/scenegraph/layout/update-row.js.map +1 -0
  342. package/es/scenegraph/layout/update-width.js +5 -5
  343. package/es/scenegraph/layout/update-width.js.map +1 -1
  344. package/es/scenegraph/refresh-node/update-chart.d.ts +2 -0
  345. package/es/scenegraph/refresh-node/update-chart.js +20 -0
  346. package/es/scenegraph/refresh-node/update-chart.js.map +1 -0
  347. package/es/scenegraph/scenegraph.d.ts +15 -3
  348. package/es/scenegraph/scenegraph.js +84 -48
  349. package/es/scenegraph/scenegraph.js.map +1 -1
  350. package/es/scenegraph/select/create-select-border.js +1 -0
  351. package/es/scenegraph/select/create-select-border.js.map +1 -1
  352. package/es/scenegraph/stick-text/index.js +52 -40
  353. package/es/scenegraph/stick-text/index.js.map +1 -1
  354. package/es/scenegraph/style/frame-border.js +6 -6
  355. package/es/scenegraph/style/frame-border.js.map +1 -1
  356. package/es/scenegraph/utils/deal-promise-data.d.ts +2 -0
  357. package/es/scenegraph/utils/deal-promise-data.js +8 -0
  358. package/es/scenegraph/utils/deal-promise-data.js.map +1 -0
  359. package/es/scenegraph/utils/empty-group.d.ts +2 -0
  360. package/es/scenegraph/utils/empty-group.js +6 -0
  361. package/es/scenegraph/utils/empty-group.js.map +1 -0
  362. package/es/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  363. package/es/scenegraph/utils/get-hierarchy-offset.js +19 -0
  364. package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  365. package/es/scenegraph/utils/padding.d.ts +1 -1
  366. package/es/scenegraph/utils/padding.js +1 -1
  367. package/es/scenegraph/utils/padding.js.map +1 -1
  368. package/es/scenegraph/utils/text-icon-layout.d.ts +3 -2
  369. package/es/scenegraph/utils/text-icon-layout.js +25 -17
  370. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  371. package/es/scenegraph/utils/text-pos.js +2 -2
  372. package/es/scenegraph/utils/text-pos.js.map +1 -1
  373. package/es/state/cell-move/adjust-header.js +9 -2
  374. package/es/state/cell-move/adjust-header.js.map +1 -1
  375. package/es/state/cell-move/index.js +9 -3
  376. package/es/state/cell-move/index.js.map +1 -1
  377. package/es/state/frozen/index.d.ts +2 -0
  378. package/es/state/{pin → frozen}/index.js +1 -1
  379. package/es/state/frozen/index.js.map +1 -0
  380. package/es/state/state.d.ts +1 -1
  381. package/es/state/state.js +16 -12
  382. package/es/state/state.js.map +1 -1
  383. package/es/themes/ARCO.js +1 -1
  384. package/es/themes/ARCO.js.map +1 -1
  385. package/es/themes/BRIGHT.js +1 -1
  386. package/es/themes/BRIGHT.js.map +1 -1
  387. package/es/themes/DARK.js +1 -1
  388. package/es/themes/DARK.js.map +1 -1
  389. package/es/themes/DEFAULT.js +1 -1
  390. package/es/themes/DEFAULT.js.map +1 -1
  391. package/es/themes/theme.d.ts +1 -1
  392. package/es/themes/theme.js +6 -6
  393. package/es/themes/theme.js.map +1 -1
  394. package/es/tools/LimitPromiseQueue.js +1 -2
  395. package/es/tools/NumberMap.js +2 -1
  396. package/es/tools/diff-cell.d.ts +10 -0
  397. package/es/tools/diff-cell.js +42 -0
  398. package/es/tools/diff-cell.js.map +1 -0
  399. package/es/tools/global.js +1 -1
  400. package/es/tools/helper.d.ts +11 -0
  401. package/es/tools/helper.js +5 -1
  402. package/es/tools/helper.js.map +1 -1
  403. package/es/ts-types/base-table.d.ts +8 -2
  404. package/es/ts-types/base-table.js.map +1 -1
  405. package/es/ts-types/customElement.d.ts +11 -2
  406. package/es/ts-types/customElement.js.map +1 -1
  407. package/es/ts-types/icon.d.ts +4 -5
  408. package/es/ts-types/icon.js +5 -5
  409. package/es/ts-types/icon.js.map +1 -1
  410. package/es/ts-types/list-table/define/basic-define.d.ts +4 -1
  411. package/es/ts-types/list-table/define/basic-define.js.map +1 -1
  412. package/es/ts-types/list-table/layout-map/api.js.map +1 -1
  413. package/es/ts-types/pivot-table/corner.d.ts +6 -6
  414. package/es/ts-types/pivot-table/corner.js.map +1 -1
  415. package/es/ts-types/pivot-table/dimension/index.d.ts +1 -1
  416. package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
  417. package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
  418. package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
  419. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +2 -2
  420. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
  421. package/es/ts-types/pivot-table/indicator/index.d.ts +2 -3
  422. package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
  423. package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +2 -2
  424. package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
  425. package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
  426. package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
  427. package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
  428. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
  429. package/es/ts-types/sparkline.d.ts +2 -4
  430. package/es/ts-types/sparkline.js.map +1 -1
  431. package/es/ts-types/style-define.d.ts +1 -5
  432. package/es/ts-types/style-define.js.map +1 -1
  433. package/es/ts-types/theme.d.ts +1 -1
  434. package/es/ts-types/theme.js.map +1 -1
  435. package/package.json +8 -9
  436. package/cjs/scenegraph/component/menu.d.ts +0 -41
  437. package/cjs/scenegraph/graphic/text.d.ts +0 -16
  438. package/cjs/state/pin/index.d.ts +0 -2
  439. package/cjs/state/pin/index.js.map +0 -1
  440. package/es/scenegraph/component/menu.d.ts +0 -41
  441. package/es/scenegraph/graphic/text.d.ts +0 -16
  442. package/es/state/pin/index.d.ts +0 -2
  443. package/es/state/pin/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["ts-types/style-define.ts"],"names":[],"mappings":"","file":"style-define.js","sourcesContent":["import type { BaseTableAPI } from './base-table';\nimport type { ColorsDef, ICellHeaderPaths, LineDashsDef, LineWidthsDef, PaddingsDef } from './common';\nimport type { ColumnIconOption } from './icon';\n\n// ****** TextStyle Options *******\nexport type TextOverflow = string /* a char */; //设置一行的省略形式,另外还有clip。如果autoWrapText设置了自动换行,这个无效\nexport type LineClamp = number | 'auto'; //设置单元格显示的行数,如果不设置的话 默认全部展示直到超过了显示范围,会截断暂时文本,如果设置了auto,显示不了的文本会出现省略号\n\nexport interface StylePropertyFunctionArg {\n row: number;\n col: number;\n /** 表格实例 */\n table: BaseTableAPI;\n /**有format的话 格式化后或者计算后的值 */\n value: string;\n /**原始值 */\n dataValue: string;\n /** progressbar类型特有,表示当前数值在总体数据范围的比例 */\n rate?: number;\n /** 单元格的表头路径信息 */\n cellHeaderPaths: ICellHeaderPaths;\n}\nexport type ColorPropertyDefine =\n | string\n | ((args: StylePropertyFunctionArg) => string)\n | ((args: StylePropertyFunctionArg) => CanvasGradient)\n | ((args: StylePropertyFunctionArg) => CanvasPattern);\n\nexport type ColorsPropertyDefine =\n | ColorPropertyDefine\n | (string | null)[]\n | ((args: StylePropertyFunctionArg) => (string | null)[]);\n\nexport type LineWidthPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type LineWidthsPropertyDefine =\n | LineWidthPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type LineDashPropertyDefine = Array<number> | ((args: StylePropertyFunctionArg) => Array<number>);\n\nexport type LineDashsPropertyDefine =\n | LineDashPropertyDefine\n | (Array<number> | null)[]\n | ((args: StylePropertyFunctionArg) => (Array<number> | null)[]);\n\n// export type FontPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontSizePropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\nexport type FontFamilyPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontWeightPropertyDefine = string | number | ((args: StylePropertyFunctionArg) => string | number);\nexport type FontVariantPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontStylePropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type TagPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type CursorPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type IconPropertyDefine =\n | string\n | ColumnIconOption\n | ((args: StylePropertyFunctionArg) => string | ColumnIconOption);\n\nexport type UnderlinePropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\nexport type LineThroughPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type PaddingPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type PaddingsPropertyDefine =\n | PaddingPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type MarkedPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type CellStyle = {\n textAlign: CanvasTextAlign;\n padding: PaddingsDef;\n textBaseline: CanvasTextBaseline;\n color: CanvasRenderingContext2D['fillStyle'];\n bgColor: CanvasRenderingContext2D['fillStyle'];\n // font: string;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n fontVariant: string;\n fontStyle: string;\n // lineHeight: string | number;\n lineHeight: number;\n autoWrapText: boolean;\n lineClamp: LineClamp;\n textOverflow: TextOverflow;\n borderColor: ColorsDef;\n borderLineWidth: LineWidthsDef;\n borderLineDash: LineDashsDef;\n underline: boolean;\n underlineColor: CanvasRenderingContext2D['strokeStyle'];\n underlineWidth: number;\n underlineDash: number[];\n lineThrough: boolean;\n lineThroughColor: CanvasRenderingContext2D['strokeStyle'];\n lineThroughDash: number[];\n lineThroughLineWidth: number;\n};\n"]}
1
+ {"version":3,"sources":["ts-types/style-define.ts"],"names":[],"mappings":"","file":"style-define.js","sourcesContent":["import type { BaseTableAPI } from './base-table';\nimport type { ColorsDef, ICellHeaderPaths, LineDashsDef, LineWidthsDef, PaddingsDef } from './common';\nimport type { ColumnIconOption } from './icon';\n\n// ****** TextStyle Options *******\nexport type TextOverflow = string /* a char */; //设置一行的省略形式,另外还有clip。如果autoWrapText设置了自动换行,这个无效\nexport type LineClamp = number | 'auto'; //设置单元格显示的行数,如果不设置的话 默认全部展示直到超过了显示范围,会截断暂时文本,如果设置了auto,显示不了的文本会出现省略号\n\nexport interface StylePropertyFunctionArg {\n row: number;\n col: number;\n /** 表格实例 */\n table: BaseTableAPI;\n /**有format的话 格式化后或者计算后的值 */\n value: string;\n /**原始值 */\n dataValue: string;\n /** progressbar类型特有,表示当前数值在总体数据范围的比例 */\n percentile?: number;\n /** 单元格的表头路径信息 */\n cellHeaderPaths: ICellHeaderPaths;\n}\nexport type ColorPropertyDefine =\n | string\n | ((args: StylePropertyFunctionArg) => string)\n | ((args: StylePropertyFunctionArg) => CanvasGradient)\n | ((args: StylePropertyFunctionArg) => CanvasPattern);\n\nexport type ColorsPropertyDefine =\n | ColorPropertyDefine\n | (string | null)[]\n | ((args: StylePropertyFunctionArg) => (string | null)[]);\n\nexport type LineWidthPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type LineWidthsPropertyDefine =\n | LineWidthPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type LineDashPropertyDefine = Array<number> | ((args: StylePropertyFunctionArg) => Array<number>);\n\nexport type LineDashsPropertyDefine =\n | LineDashPropertyDefine\n | (Array<number> | null)[]\n | ((args: StylePropertyFunctionArg) => (Array<number> | null)[]);\n\n// export type FontPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontSizePropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\nexport type FontFamilyPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontWeightPropertyDefine = string | number | ((args: StylePropertyFunctionArg) => string | number);\nexport type FontVariantPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontStylePropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type TagPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type CursorPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type IconPropertyDefine =\n | string\n | ColumnIconOption\n | ((args: StylePropertyFunctionArg) => string | ColumnIconOption);\n\nexport type UnderlinePropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\nexport type LineThroughPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type PaddingPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type PaddingsPropertyDefine =\n | PaddingPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type MarkedPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type CellStyle = {\n textAlign: CanvasTextAlign;\n padding: PaddingsDef;\n textBaseline: CanvasTextBaseline;\n color: CanvasRenderingContext2D['fillStyle'];\n bgColor: CanvasRenderingContext2D['fillStyle'];\n // font: string;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n fontVariant: string;\n fontStyle: string;\n // lineHeight: string | number;\n lineHeight: number;\n autoWrapText: boolean;\n lineClamp: LineClamp;\n textOverflow: TextOverflow;\n borderColor: ColorsDef;\n borderLineWidth: LineWidthsDef;\n borderLineDash: LineDashsDef;\n underline: boolean;\n // underlineColor: CanvasRenderingContext2D['strokeStyle'];\n underlineWidth: number;\n // underlineDash: number[];\n lineThrough: boolean;\n // lineThroughColor: CanvasRenderingContext2D['strokeStyle'];\n // lineThroughDash: number[];\n lineThroughLineWidth: number;\n};\n"]}
@@ -23,7 +23,7 @@ export type TableFrameStyle = FrameStyle & {
23
23
  shadowOffsetX?: number;
24
24
  shadowOffsetY?: number;
25
25
  shadowColor?: string;
26
- roundCornerRadius?: number;
26
+ cornerRadius?: number;
27
27
  };
28
28
  export type menuStyle = {
29
29
  color?: string;
@@ -1 +1 @@
1
- {"version":3,"sources":["ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine } from '.';\nimport type { ITextStyleOption } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n // click?: Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n roundCornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n font?: string;\n highlightFont?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n font?: string;\n color?: string;\n padding?: number[];\n bgColor?: string;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n };\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}
1
+ {"version":3,"sources":["ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine } from '.';\nimport type { ITextStyleOption } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n // click?: Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n cornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n font?: string;\n highlightFont?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n font?: string;\n color?: string;\n padding?: number[];\n bgColor?: string;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n };\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}