@visactor/vtable 1.26.5 → 1.26.7

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 (327) hide show
  1. package/cjs/ListTable-all.js +5 -5
  2. package/cjs/ListTable-all.js.map +1 -1
  3. package/cjs/ListTable.d.ts +5 -2
  4. package/cjs/ListTable.js +22 -6
  5. package/cjs/ListTable.js.map +1 -1
  6. package/cjs/PivotChart.js +5 -4
  7. package/cjs/PivotChart.js.map +1 -1
  8. package/cjs/PivotTable-all.js +4 -3
  9. package/cjs/PivotTable-all.js.map +1 -1
  10. package/cjs/body-helper/body-helper.d.ts +2 -1
  11. package/cjs/body-helper/body-helper.js +5 -3
  12. package/cjs/body-helper/body-helper.js.map +1 -1
  13. package/cjs/components/index.js +2 -1
  14. package/cjs/components/tooltip/TooltipHandler.d.ts +4 -0
  15. package/cjs/components/tooltip/TooltipHandler.js +32 -7
  16. package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
  17. package/cjs/core/BaseTable.d.ts +1 -0
  18. package/cjs/core/BaseTable.js +26 -13
  19. package/cjs/core/BaseTable.js.map +1 -1
  20. package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
  21. package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
  22. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  23. package/cjs/core/row-series-number-helper.d.ts +1 -0
  24. package/cjs/core/row-series-number-helper.js +3 -1
  25. package/cjs/core/row-series-number-helper.js.map +1 -1
  26. package/cjs/core/tableHelper.js +1 -2
  27. package/cjs/data/CachedDataSource.js +5 -3
  28. package/cjs/data/CachedDataSource.js.map +1 -1
  29. package/cjs/data/DataSource.js +2 -1
  30. package/cjs/event/event.js +1 -1
  31. package/cjs/event/helper.js +1 -1
  32. package/cjs/event/media-click.js +145 -13
  33. package/cjs/event/media-click.js.map +1 -1
  34. package/cjs/event/scroll.js +1 -1
  35. package/cjs/event/sparkline-event.js +1 -1
  36. package/cjs/event/util.js +1 -1
  37. package/cjs/header-helper/header-helper.d.ts +1 -0
  38. package/cjs/header-helper/header-helper.js +4 -1
  39. package/cjs/header-helper/header-helper.js.map +1 -1
  40. package/cjs/index.d.ts +3 -3
  41. package/cjs/index.js +1 -1
  42. package/cjs/index.js.map +1 -1
  43. package/cjs/layout/index.js +2 -1
  44. package/cjs/plugins/custom-cell-style.js +1 -1
  45. package/cjs/plugins/index.js +1 -2
  46. package/cjs/plugins/interface.d.ts +2 -1
  47. package/cjs/plugins/interface.js +1 -1
  48. package/cjs/plugins/interface.js.map +1 -1
  49. package/cjs/plugins/invert-highlight.js +1 -1
  50. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  51. package/cjs/plugins/plugin-manager.d.ts +1 -1
  52. package/cjs/plugins/plugin-manager.js +12 -7
  53. package/cjs/plugins/plugin-manager.js.map +1 -1
  54. package/cjs/scenegraph/group-creater/cell-helper.d.ts +4 -2
  55. package/cjs/scenegraph/group-creater/cell-helper.js +67 -42
  56. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  57. package/cjs/scenegraph/group-creater/cell-type/audio-cell.d.ts +7 -0
  58. package/cjs/scenegraph/group-creater/cell-type/audio-cell.js +83 -0
  59. package/cjs/scenegraph/group-creater/cell-type/audio-cell.js.map +1 -0
  60. package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +1 -1
  61. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +5 -4
  62. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  63. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +2 -2
  64. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  65. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
  66. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +5 -4
  67. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  68. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
  69. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +43 -15
  70. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  71. package/cjs/scenegraph/group-creater/cell-type/index.d.ts +1 -0
  72. package/cjs/scenegraph/group-creater/cell-type/index.js +8 -2
  73. package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -1
  74. package/cjs/scenegraph/group-creater/cell-type/media-cell-helper.d.ts +13 -0
  75. package/cjs/scenegraph/group-creater/cell-type/media-cell-helper.js +64 -0
  76. package/cjs/scenegraph/group-creater/cell-type/media-cell-helper.js.map +1 -0
  77. package/cjs/scenegraph/group-creater/cell-type/radio-cell.d.ts +1 -1
  78. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +23 -7
  79. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  80. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
  81. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +6 -5
  82. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  83. package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +1 -1
  84. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +5 -4
  85. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  86. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
  87. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +44 -23
  88. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  89. package/cjs/scenegraph/group-creater/column-helper.js +14 -7
  90. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  91. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +24 -8
  92. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  93. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +1 -0
  94. package/cjs/scenegraph/group-creater/progress/proxy.js +11 -5
  95. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  96. package/cjs/scenegraph/icon/icon-update.js +1 -0
  97. package/cjs/scenegraph/icon/icon-update.js.map +1 -1
  98. package/cjs/scenegraph/layout/compute-col-width.js +8 -3
  99. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  100. package/cjs/scenegraph/layout/compute-row-height.js +33 -9
  101. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  102. package/cjs/scenegraph/layout/update-height.js +1 -1
  103. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  104. package/cjs/scenegraph/layout/update-row.js +24 -3
  105. package/cjs/scenegraph/layout/update-row.js.map +1 -1
  106. package/cjs/scenegraph/layout/update-width.js +1 -1
  107. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  108. package/cjs/scenegraph/scenegraph.d.ts +1 -0
  109. package/cjs/scenegraph/scenegraph.js +93 -64
  110. package/cjs/scenegraph/scenegraph.js.map +1 -1
  111. package/cjs/scenegraph/stick-text/index.js +46 -20
  112. package/cjs/scenegraph/stick-text/index.js.map +1 -1
  113. package/cjs/scenegraph/utils/deal-promise-data.d.ts +1 -1
  114. package/cjs/scenegraph/utils/deal-promise-data.js +2 -2
  115. package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -1
  116. package/cjs/scenegraph/utils/text-icon-layout.js +4 -3
  117. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  118. package/cjs/state/cell-move/index.js +6 -3
  119. package/cjs/state/cell-move/index.js.map +1 -1
  120. package/cjs/state/checkbox/checkbox.d.ts +6 -1
  121. package/cjs/state/checkbox/checkbox.js +191 -36
  122. package/cjs/state/checkbox/checkbox.js.map +1 -1
  123. package/cjs/state/radio/radio.d.ts +3 -1
  124. package/cjs/state/radio/radio.js +69 -12
  125. package/cjs/state/radio/radio.js.map +1 -1
  126. package/cjs/state/state.d.ts +3 -2
  127. package/cjs/state/state.js +6 -3
  128. package/cjs/state/state.js.map +1 -1
  129. package/cjs/tools/media.d.ts +1 -0
  130. package/cjs/tools/media.js +19 -0
  131. package/cjs/tools/media.js.map +1 -0
  132. package/cjs/ts-types/base-table.d.ts +2 -0
  133. package/cjs/ts-types/base-table.js.map +1 -1
  134. package/cjs/ts-types/column/type.d.ts +2 -2
  135. package/cjs/ts-types/column/type.js.map +1 -1
  136. package/cjs/ts-types/events.d.ts +3 -1
  137. package/cjs/ts-types/events.js.map +1 -1
  138. package/cjs/ts-types/icon.d.ts +1 -0
  139. package/cjs/ts-types/icon.js.map +1 -1
  140. package/cjs/ts-types/list-table/define/image-define.d.ts +10 -0
  141. package/cjs/ts-types/list-table/define/image-define.js.map +1 -1
  142. package/cjs/ts-types/list-table/define/index.d.ts +5 -4
  143. package/cjs/ts-types/list-table/define/index.js.map +1 -1
  144. package/cjs/ts-types/list-table/layout-map/api.d.ts +4 -4
  145. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
  146. package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -1
  147. package/cjs/ts-types/list-table/layout-map/index.js.map +1 -1
  148. package/cjs/ts-types/menu.d.ts +12 -0
  149. package/cjs/ts-types/menu.js.map +1 -1
  150. package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +5 -0
  151. package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -1
  152. package/cjs/ts-types/pivot-table/dimension/index.d.ts +5 -3
  153. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
  154. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +10 -0
  155. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
  156. package/cjs/ts-types/pivot-table/indicator/index.d.ts +3 -3
  157. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
  158. package/cjs/ts-types/table-engine.d.ts +13 -4
  159. package/cjs/ts-types/table-engine.js.map +1 -1
  160. package/cjs/ts-types/tooltip.d.ts +1 -0
  161. package/cjs/ts-types/tooltip.js.map +1 -1
  162. package/cjs/vrender.js.map +1 -1
  163. package/dist/vtable.js +1528 -367
  164. package/dist/vtable.min.js +1 -1
  165. package/es/ListTable-all.js +4 -4
  166. package/es/ListTable-all.js.map +1 -1
  167. package/es/ListTable.d.ts +5 -2
  168. package/es/ListTable.js +22 -7
  169. package/es/ListTable.js.map +1 -1
  170. package/es/PivotChart.js +4 -4
  171. package/es/PivotChart.js.map +1 -1
  172. package/es/PivotTable-all.js +4 -4
  173. package/es/PivotTable-all.js.map +1 -1
  174. package/es/body-helper/body-helper.d.ts +2 -1
  175. package/es/body-helper/body-helper.js +5 -3
  176. package/es/body-helper/body-helper.js.map +1 -1
  177. package/es/components/index.js +2 -1
  178. package/es/components/tooltip/TooltipHandler.d.ts +4 -0
  179. package/es/components/tooltip/TooltipHandler.js +32 -7
  180. package/es/components/tooltip/TooltipHandler.js.map +1 -1
  181. package/es/core/BaseTable.d.ts +1 -0
  182. package/es/core/BaseTable.js +28 -15
  183. package/es/core/BaseTable.js.map +1 -1
  184. package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
  185. package/es/core/TABLE_EVENT_TYPE.js +1 -0
  186. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  187. package/es/core/row-series-number-helper.d.ts +1 -0
  188. package/es/core/row-series-number-helper.js +3 -1
  189. package/es/core/row-series-number-helper.js.map +1 -1
  190. package/es/core/tableHelper.js +1 -2
  191. package/es/data/CachedDataSource.js +5 -3
  192. package/es/data/CachedDataSource.js.map +1 -1
  193. package/es/data/DataSource.js +2 -1
  194. package/es/event/event.js +1 -1
  195. package/es/event/helper.js +1 -1
  196. package/es/event/media-click.js +148 -12
  197. package/es/event/media-click.js.map +1 -1
  198. package/es/event/scroll.js +1 -1
  199. package/es/event/sparkline-event.js +1 -1
  200. package/es/event/util.js +1 -1
  201. package/es/header-helper/header-helper.d.ts +1 -0
  202. package/es/header-helper/header-helper.js +4 -1
  203. package/es/header-helper/header-helper.js.map +1 -1
  204. package/es/index.d.ts +3 -3
  205. package/es/index.js +1 -1
  206. package/es/index.js.map +1 -1
  207. package/es/layout/index.js +2 -1
  208. package/es/plugins/custom-cell-style.js +1 -1
  209. package/es/plugins/index.js +1 -2
  210. package/es/plugins/interface.d.ts +2 -1
  211. package/es/plugins/interface.js +1 -1
  212. package/es/plugins/interface.js.map +1 -1
  213. package/es/plugins/invert-highlight.js +1 -1
  214. package/es/plugins/list-tree-stick-cell.js +1 -1
  215. package/es/plugins/plugin-manager.d.ts +1 -1
  216. package/es/plugins/plugin-manager.js +12 -7
  217. package/es/plugins/plugin-manager.js.map +1 -1
  218. package/es/scenegraph/group-creater/cell-helper.d.ts +4 -2
  219. package/es/scenegraph/group-creater/cell-helper.js +67 -40
  220. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  221. package/es/scenegraph/group-creater/cell-type/audio-cell.d.ts +7 -0
  222. package/es/scenegraph/group-creater/cell-type/audio-cell.js +89 -0
  223. package/es/scenegraph/group-creater/cell-type/audio-cell.js.map +1 -0
  224. package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +1 -1
  225. package/es/scenegraph/group-creater/cell-type/button-cell.js +5 -4
  226. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  227. package/es/scenegraph/group-creater/cell-type/chart-cell.js +2 -2
  228. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  229. package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
  230. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +5 -4
  231. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  232. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
  233. package/es/scenegraph/group-creater/cell-type/image-cell.js +43 -14
  234. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  235. package/es/scenegraph/group-creater/cell-type/index.d.ts +1 -0
  236. package/es/scenegraph/group-creater/cell-type/index.js +6 -0
  237. package/es/scenegraph/group-creater/cell-type/index.js.map +1 -1
  238. package/es/scenegraph/group-creater/cell-type/media-cell-helper.d.ts +13 -0
  239. package/es/scenegraph/group-creater/cell-type/media-cell-helper.js +56 -0
  240. package/es/scenegraph/group-creater/cell-type/media-cell-helper.js.map +1 -0
  241. package/es/scenegraph/group-creater/cell-type/radio-cell.d.ts +1 -1
  242. package/es/scenegraph/group-creater/cell-type/radio-cell.js +23 -7
  243. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  244. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
  245. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +6 -5
  246. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  247. package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +1 -1
  248. package/es/scenegraph/group-creater/cell-type/switch-cell.js +5 -4
  249. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  250. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
  251. package/es/scenegraph/group-creater/cell-type/video-cell.js +47 -22
  252. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  253. package/es/scenegraph/group-creater/column-helper.js +14 -8
  254. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  255. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +24 -8
  256. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  257. package/es/scenegraph/group-creater/progress/proxy.d.ts +1 -0
  258. package/es/scenegraph/group-creater/progress/proxy.js +11 -5
  259. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  260. package/es/scenegraph/icon/icon-update.js +1 -0
  261. package/es/scenegraph/icon/icon-update.js.map +1 -1
  262. package/es/scenegraph/layout/compute-col-width.js +8 -3
  263. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  264. package/es/scenegraph/layout/compute-row-height.js +32 -9
  265. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  266. package/es/scenegraph/layout/update-height.js +1 -1
  267. package/es/scenegraph/layout/update-height.js.map +1 -1
  268. package/es/scenegraph/layout/update-row.js +25 -2
  269. package/es/scenegraph/layout/update-row.js.map +1 -1
  270. package/es/scenegraph/layout/update-width.js +1 -1
  271. package/es/scenegraph/layout/update-width.js.map +1 -1
  272. package/es/scenegraph/scenegraph.d.ts +1 -0
  273. package/es/scenegraph/scenegraph.js +93 -64
  274. package/es/scenegraph/scenegraph.js.map +1 -1
  275. package/es/scenegraph/stick-text/index.js +46 -18
  276. package/es/scenegraph/stick-text/index.js.map +1 -1
  277. package/es/scenegraph/utils/deal-promise-data.d.ts +1 -1
  278. package/es/scenegraph/utils/deal-promise-data.js +2 -2
  279. package/es/scenegraph/utils/deal-promise-data.js.map +1 -1
  280. package/es/scenegraph/utils/text-icon-layout.js +7 -6
  281. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  282. package/es/state/cell-move/index.js +6 -3
  283. package/es/state/cell-move/index.js.map +1 -1
  284. package/es/state/checkbox/checkbox.d.ts +6 -1
  285. package/es/state/checkbox/checkbox.js +186 -34
  286. package/es/state/checkbox/checkbox.js.map +1 -1
  287. package/es/state/radio/radio.d.ts +3 -1
  288. package/es/state/radio/radio.js +70 -13
  289. package/es/state/radio/radio.js.map +1 -1
  290. package/es/state/state.d.ts +3 -2
  291. package/es/state/state.js +6 -2
  292. package/es/state/state.js.map +1 -1
  293. package/es/tools/media.d.ts +1 -0
  294. package/es/tools/media.js +11 -0
  295. package/es/tools/media.js.map +1 -0
  296. package/es/ts-types/base-table.d.ts +2 -0
  297. package/es/ts-types/base-table.js.map +1 -1
  298. package/es/ts-types/column/type.d.ts +2 -2
  299. package/es/ts-types/column/type.js.map +1 -1
  300. package/es/ts-types/events.d.ts +3 -1
  301. package/es/ts-types/events.js.map +1 -1
  302. package/es/ts-types/icon.d.ts +1 -0
  303. package/es/ts-types/icon.js.map +1 -1
  304. package/es/ts-types/list-table/define/image-define.d.ts +10 -0
  305. package/es/ts-types/list-table/define/image-define.js.map +1 -1
  306. package/es/ts-types/list-table/define/index.d.ts +5 -4
  307. package/es/ts-types/list-table/define/index.js.map +1 -1
  308. package/es/ts-types/list-table/layout-map/api.d.ts +4 -4
  309. package/es/ts-types/list-table/layout-map/api.js.map +1 -1
  310. package/es/ts-types/list-table/layout-map/index.d.ts +1 -1
  311. package/es/ts-types/list-table/layout-map/index.js.map +1 -1
  312. package/es/ts-types/menu.d.ts +12 -0
  313. package/es/ts-types/menu.js.map +1 -1
  314. package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +5 -0
  315. package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -1
  316. package/es/ts-types/pivot-table/dimension/index.d.ts +5 -3
  317. package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
  318. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +10 -0
  319. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
  320. package/es/ts-types/pivot-table/indicator/index.d.ts +3 -3
  321. package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
  322. package/es/ts-types/table-engine.d.ts +13 -4
  323. package/es/ts-types/table-engine.js.map +1 -1
  324. package/es/ts-types/tooltip.d.ts +1 -0
  325. package/es/ts-types/tooltip.js.map +1 -1
  326. package/es/vrender.js.map +1 -1
  327. package/package.json +5 -4
@@ -558,79 +558,108 @@ class Scenegraph {
558
558
  this.proxy.progress(), this.updateNextFrame();
559
559
  }
560
560
  updateTableSize() {
561
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
561
+ var _a, _b, _c;
562
562
  const contentWidth = Math.max(this.colHeaderGroup.attribute.width, this.bodyGroup.attribute.width, this.bottomFrozenGroup.attribute.width, 0) + Math.max(this.cornerHeaderGroup.attribute.width, this.rowHeaderGroup.attribute.width, this.leftBottomCornerGroup.attribute.width, 0) + Math.max(this.rightTopCornerGroup.attribute.width, this.rightFrozenGroup.attribute.width, this.rightBottomCornerGroup.attribute.width, 0), contentHeight = Math.max(this.colHeaderGroup.attribute.height, this.cornerHeaderGroup.attribute.height, this.rightTopCornerGroup.attribute.height, 0) + Math.max(this.rowHeaderGroup.attribute.height, this.bodyGroup.attribute.height, this.rightFrozenGroup.attribute.height, 0) + Math.max(this.leftBottomCornerGroup.attribute.height, this.bottomFrozenGroup.attribute.height, this.rightBottomCornerGroup.attribute.height, 0);
563
563
  let tableWidth = contentWidth, tableHeight = contentHeight;
564
- if (tableWidth = (null === (_a = this.table.containerFit) || void 0 === _a ? void 0 : _a.width) ? this.table.tableNoFrameWidth : Math.min(this.table.tableNoFrameWidth, contentWidth),
564
+ tableWidth = (null === (_a = this.table.containerFit) || void 0 === _a ? void 0 : _a.width) ? this.table.tableNoFrameWidth : Math.min(this.table.tableNoFrameWidth, contentWidth),
565
565
  tableHeight = (null === (_b = this.table.containerFit) || void 0 === _b ? void 0 : _b.height) ? this.table.tableNoFrameHeight : Math.min(this.table.tableNoFrameHeight, contentHeight),
566
566
  this.tableGroup.setAttributes({
567
567
  x: this.table.tableX,
568
568
  y: this.table.tableY,
569
569
  width: tableWidth,
570
570
  height: tableHeight
571
- }), this.tableGroup.border) {
572
- const rectAttributes = null === (_c = this.tableGroup.border) || void 0 === _c ? void 0 : _c.attribute;
573
- let borderTop, borderRight, borderBottom, borderLeft;
574
- (null == rectAttributes ? void 0 : rectAttributes.strokeArrayWidth) ? (borderTop = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[0] : null !== (_d = rectAttributes.lineWidth) && void 0 !== _d ? _d : 0,
575
- borderRight = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[1] : null !== (_e = rectAttributes.lineWidth) && void 0 !== _e ? _e : 0,
576
- borderBottom = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[2] : null !== (_f = rectAttributes.lineWidth) && void 0 !== _f ? _f : 0,
577
- borderLeft = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[3] : null !== (_g = rectAttributes.lineWidth) && void 0 !== _g ? _g : 0) : (borderTop = null !== (_h = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _h ? _h : 0,
578
- borderRight = null !== (_j = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _j ? _j : 0,
579
- borderBottom = null !== (_k = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _k ? _k : 0,
580
- borderLeft = null !== (_l = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _l ? _l : 0),
581
- "rect" === this.tableGroup.border.type ? (null === (_m = this.table.theme.frameStyle) || void 0 === _m ? void 0 : _m.innerBorder) ? this.tableGroup.border.setAttributes({
582
- x: this.table.tableX + borderLeft / 2,
583
- y: this.table.tableY + borderTop / 2,
584
- width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
585
- height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
586
- }) : this.tableGroup.border.setAttributes({
587
- x: this.table.tableX - borderLeft / 2,
588
- y: this.table.tableY - borderTop / 2,
589
- width: this.tableGroup.attribute.width + borderLeft / 2 + borderRight / 2,
590
- height: this.tableGroup.attribute.height + borderTop / 2 + borderBottom / 2
591
- }) : "group" === this.tableGroup.border.type && ((null === (_o = this.table.theme.frameStyle) || void 0 === _o ? void 0 : _o.innerBorder) ? (this.tableGroup.border.setAttributes({
592
- x: this.table.tableX + borderLeft / 2,
593
- y: this.table.tableY + borderTop / 2,
594
- width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
595
- height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
596
- }), null === (_p = this.tableGroup.border.firstChild) || void 0 === _p || _p.setAttributes({
571
+ });
572
+ const hasFrozenCols = this.table.frozenColCount > 0, hasRightFrozenCols = this.table.rightFrozenColCount > 0, hasFrozenRows = this.table.frozenRowCount > 0, hasBottomFrozenRows = this.table.bottomFrozenRowCount > 0;
573
+ if (hasBottomFrozenRows) {
574
+ const bottomFrozenRowsHeight = this.table.getBottomFrozenRowsHeight(), topFrozenBottom = Math.max(this.colHeaderGroup.attribute.y + this.colHeaderGroup.attribute.height, this.cornerHeaderGroup.attribute.y + this.cornerHeaderGroup.attribute.height, this.rightTopCornerGroup.attribute.y + this.rightTopCornerGroup.attribute.height), middleContentBottom = Math.max(this.rowHeaderGroup.attribute.y + this.rowHeaderGroup.attribute.height, this.bodyGroup.attribute.y + this.bodyGroup.attribute.height, this.rightFrozenGroup.attribute.y + this.rightFrozenGroup.attribute.height, topFrozenBottom), bottomFrozenY = Math.min(this.tableGroup.attribute.height - bottomFrozenRowsHeight, middleContentBottom);
575
+ this.bottomFrozenGroup.setAttribute("y", bottomFrozenY), this.leftBottomCornerGroup.setAttributes({
576
+ visible: hasFrozenCols,
577
+ y: bottomFrozenY,
578
+ height: bottomFrozenRowsHeight,
579
+ width: hasFrozenCols ? this.table.getFrozenColsWidth() : 0
580
+ }), this.rightBottomCornerGroup.setAttributes({
581
+ visible: hasRightFrozenCols,
597
582
  x: 0,
598
- y: 0,
599
- width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
600
- height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
601
- })) : (this.tableGroup.border.setAttributes({
602
- x: this.table.tableX - borderLeft / 2,
603
- y: this.table.tableY - borderTop / 2,
604
- width: this.tableGroup.attribute.width + borderLeft / 2 + borderRight / 2,
605
- height: this.tableGroup.attribute.height + borderTop / 2 + borderBottom / 2
606
- }), null === (_q = this.tableGroup.border.firstChild) || void 0 === _q || _q.setAttributes({
607
- x: borderLeft / 2,
608
- y: borderTop / 2,
609
- width: this.tableGroup.attribute.width,
610
- height: this.tableGroup.attribute.height
611
- })));
612
- }
613
- this.table.bottomFrozenRowCount > 0 && (this.bottomFrozenGroup.setAttribute("y", this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight()),
614
- this.leftBottomCornerGroup.setAttributes({
615
- visible: !0,
616
- y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
617
- height: this.table.getBottomFrozenRowsHeight(),
618
- width: this.table.getFrozenColsWidth()
619
- }), this.rightBottomCornerGroup.setAttributes({
620
- visible: !0,
621
- y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
622
- height: this.table.getBottomFrozenRowsHeight()
623
- })), this.table.rightFrozenColCount > 0 && (this.rightFrozenGroup.setAttribute("x", this.tableGroup.attribute.width - this.table.getRightFrozenColsWidth()),
624
- this.rightTopCornerGroup.setAttributes({
625
- visible: !0,
626
- x: this.tableGroup.attribute.width - this.table.getRightFrozenColsWidth(),
627
- width: this.table.getRightFrozenColsWidth(),
628
- height: this.table.getFrozenRowsHeight()
583
+ y: bottomFrozenY,
584
+ width: 0,
585
+ height: bottomFrozenRowsHeight
586
+ });
587
+ } else this.leftBottomCornerGroup.setAttributes({
588
+ visible: !1,
589
+ width: 0,
590
+ height: 0
629
591
  }), this.rightBottomCornerGroup.setAttributes({
630
- visible: !0,
631
- x: this.tableGroup.attribute.width - this.table.getRightFrozenColsWidth(),
632
- width: this.table.getRightFrozenColsWidth()
633
- })), this.updateDomContainer();
592
+ visible: !1,
593
+ width: 0,
594
+ height: 0
595
+ });
596
+ if (hasRightFrozenCols) {
597
+ const rightFrozenColsWidth = this.table.getRightFrozenColsWidth(), middleContentRight = Math.max(this.colHeaderGroup.attribute.x + this.colHeaderGroup.attribute.width, this.bodyGroup.attribute.x + this.bodyGroup.attribute.width, this.bottomFrozenGroup.attribute.x + this.bottomFrozenGroup.attribute.width), rightFrozenX = Math.min(this.tableGroup.attribute.width - rightFrozenColsWidth, middleContentRight);
598
+ this.rightFrozenGroup.setAttribute("x", rightFrozenX), this.rightTopCornerGroup.setAttributes({
599
+ visible: hasFrozenRows,
600
+ x: rightFrozenX,
601
+ width: hasFrozenRows ? rightFrozenColsWidth : 0,
602
+ height: hasFrozenRows ? this.table.getFrozenRowsHeight() : 0
603
+ }), this.rightBottomCornerGroup.setAttributes({
604
+ visible: hasBottomFrozenRows,
605
+ x: rightFrozenX,
606
+ width: hasBottomFrozenRows ? rightFrozenColsWidth : 0,
607
+ height: hasBottomFrozenRows ? this.table.getBottomFrozenRowsHeight() : 0
608
+ });
609
+ } else this.rightTopCornerGroup.setAttributes({
610
+ visible: !1,
611
+ width: 0,
612
+ height: 0
613
+ });
614
+ if (hasBottomFrozenRows && !(null === (_c = this.table.containerFit) || void 0 === _c ? void 0 : _c.height)) {
615
+ const actualContentBottom = Math.max(this.colHeaderGroup.attribute.y + this.colHeaderGroup.attribute.height, this.cornerHeaderGroup.attribute.y + this.cornerHeaderGroup.attribute.height, this.rightTopCornerGroup.attribute.y + this.rightTopCornerGroup.attribute.height, this.rowHeaderGroup.attribute.y + this.rowHeaderGroup.attribute.height, this.bodyGroup.attribute.y + this.bodyGroup.attribute.height, this.rightFrozenGroup.attribute.y + this.rightFrozenGroup.attribute.height, this.leftBottomCornerGroup.attribute.y + this.leftBottomCornerGroup.attribute.height, this.bottomFrozenGroup.attribute.y + this.bottomFrozenGroup.attribute.height, this.rightBottomCornerGroup.attribute.y + this.rightBottomCornerGroup.attribute.height);
616
+ actualContentBottom > 0 && actualContentBottom < this.tableGroup.attribute.height && this.tableGroup.setAttribute("height", actualContentBottom);
617
+ }
618
+ this.updateTableGroupBorder(), this.updateDomContainer();
619
+ }
620
+ updateTableGroupBorder() {
621
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
622
+ if (!this.tableGroup.border) return;
623
+ const rectAttributes = null === (_a = this.tableGroup.border) || void 0 === _a ? void 0 : _a.attribute;
624
+ let borderTop, borderRight, borderBottom, borderLeft;
625
+ (null == rectAttributes ? void 0 : rectAttributes.strokeArrayWidth) ? (borderTop = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[0] : null !== (_b = rectAttributes.lineWidth) && void 0 !== _b ? _b : 0,
626
+ borderRight = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[1] : null !== (_c = rectAttributes.lineWidth) && void 0 !== _c ? _c : 0,
627
+ borderBottom = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[2] : null !== (_d = rectAttributes.lineWidth) && void 0 !== _d ? _d : 0,
628
+ borderLeft = rectAttributes.strokeArrayWidth ? rectAttributes.strokeArrayWidth[3] : null !== (_e = rectAttributes.lineWidth) && void 0 !== _e ? _e : 0) : (borderTop = null !== (_f = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _f ? _f : 0,
629
+ borderRight = null !== (_g = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _g ? _g : 0,
630
+ borderBottom = null !== (_h = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _h ? _h : 0,
631
+ borderLeft = null !== (_j = null == rectAttributes ? void 0 : rectAttributes.lineWidth) && void 0 !== _j ? _j : 0),
632
+ "rect" === this.tableGroup.border.type ? (null === (_k = this.table.theme.frameStyle) || void 0 === _k ? void 0 : _k.innerBorder) ? this.tableGroup.border.setAttributes({
633
+ x: this.table.tableX + borderLeft / 2,
634
+ y: this.table.tableY + borderTop / 2,
635
+ width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
636
+ height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
637
+ }) : this.tableGroup.border.setAttributes({
638
+ x: this.table.tableX - borderLeft / 2,
639
+ y: this.table.tableY - borderTop / 2,
640
+ width: this.tableGroup.attribute.width + borderLeft / 2 + borderRight / 2,
641
+ height: this.tableGroup.attribute.height + borderTop / 2 + borderBottom / 2
642
+ }) : "group" === this.tableGroup.border.type && ((null === (_l = this.table.theme.frameStyle) || void 0 === _l ? void 0 : _l.innerBorder) ? (this.tableGroup.border.setAttributes({
643
+ x: this.table.tableX + borderLeft / 2,
644
+ y: this.table.tableY + borderTop / 2,
645
+ width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
646
+ height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
647
+ }), null === (_m = this.tableGroup.border.firstChild) || void 0 === _m || _m.setAttributes({
648
+ x: 0,
649
+ y: 0,
650
+ width: this.tableGroup.attribute.width - borderLeft / 2 - borderRight / 2,
651
+ height: this.tableGroup.attribute.height - borderTop / 2 - borderBottom / 2
652
+ })) : (this.tableGroup.border.setAttributes({
653
+ x: this.table.tableX - borderLeft / 2,
654
+ y: this.table.tableY - borderTop / 2,
655
+ width: this.tableGroup.attribute.width + borderLeft / 2 + borderRight / 2,
656
+ height: this.tableGroup.attribute.height + borderTop / 2 + borderBottom / 2
657
+ }), null === (_o = this.tableGroup.border.firstChild) || void 0 === _o || _o.setAttributes({
658
+ x: borderLeft / 2,
659
+ y: borderTop / 2,
660
+ width: this.tableGroup.attribute.width,
661
+ height: this.tableGroup.attribute.height
662
+ })));
634
663
  }
635
664
  updateRowHeight(row, detaY, skipTableHeightMap) {
636
665
  detaY = Math.round(detaY), (0, update_height_1.updateRowHeight)(this, row, detaY, skipTableHeightMap),
@@ -999,7 +1028,7 @@ class Scenegraph {
999
1028
  updateCellContentWhileResize(col, row) {
1000
1029
  var _a;
1001
1030
  const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.getCellType(col, row), cellGroup = this.getCell(col, row);
1002
- "image" !== type && "video" !== type || (0, image_cell_1.updateImageCellContentWhileResize)(cellGroup, col, row, 0, 0, this.table);
1031
+ "image" !== type && "video" !== type && "audio" !== type || (0, image_cell_1.updateImageCellContentWhileResize)(cellGroup, col, row, 0, 0, this.table);
1003
1032
  }
1004
1033
  createFrameBorder() {
1005
1034
  var _a, _b, _c, _d, _e;