@visactor/vgrammar-core 0.13.5 → 0.13.7-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 (399) hide show
  1. package/cjs/component/axis.d.ts +2 -0
  2. package/cjs/component/axis.js +15 -1
  3. package/cjs/component/axis.js.map +1 -1
  4. package/cjs/component/grid.d.ts +2 -0
  5. package/cjs/component/grid.js +15 -1
  6. package/cjs/component/grid.js.map +1 -1
  7. package/cjs/component/index.d.ts +2 -2
  8. package/cjs/component/index.js +21 -1
  9. package/cjs/component/index.js.map +1 -1
  10. package/cjs/component/label.js +36 -20
  11. package/cjs/component/label.js.map +1 -1
  12. package/cjs/component/player.js.map +1 -1
  13. package/cjs/core/factory.d.ts +8 -1
  14. package/cjs/core/factory.js +9 -2
  15. package/cjs/core/factory.js.map +1 -1
  16. package/cjs/glyph/boxplot.js +5 -5
  17. package/cjs/glyph/boxplot.js.map +1 -1
  18. package/cjs/glyph/link-path.js +2 -2
  19. package/cjs/glyph/link-path.js.map +1 -1
  20. package/cjs/glyph/ripple.js +3 -2
  21. package/cjs/glyph/ripple.js.map +1 -1
  22. package/cjs/glyph/tree-path.js +2 -2
  23. package/cjs/glyph/tree-path.js.map +1 -1
  24. package/cjs/glyph/violin.js +4 -4
  25. package/cjs/glyph/violin.js.map +1 -1
  26. package/cjs/glyph/wave.js +3 -2
  27. package/cjs/glyph/wave.js.map +1 -1
  28. package/cjs/graph/animation/animate.js +9 -4
  29. package/cjs/graph/animation/animate.js.map +1 -1
  30. package/cjs/graph/animation/animation/fade.js +5 -4
  31. package/cjs/graph/animation/animation/fade.js.map +1 -1
  32. package/cjs/graph/animation/animation/grow-cartesian.js +14 -14
  33. package/cjs/graph/animation/animation/grow-cartesian.js.map +1 -1
  34. package/cjs/graph/animation/animation/grow-interval.js +9 -6
  35. package/cjs/graph/animation/animation/grow-interval.js.map +1 -1
  36. package/cjs/graph/animation/animation/grow-points.js +9 -9
  37. package/cjs/graph/animation/animation/grow-points.js.map +1 -1
  38. package/cjs/graph/animation/animation/grow-polar.js +76 -63
  39. package/cjs/graph/animation/animation/grow-polar.js.map +1 -1
  40. package/cjs/graph/animation/animation/move.js +6 -6
  41. package/cjs/graph/animation/animation/move.js.map +1 -1
  42. package/cjs/graph/animation/animation/rotate.js +4 -4
  43. package/cjs/graph/animation/animation/rotate.js.map +1 -1
  44. package/cjs/graph/animation/animation/scale.js +5 -4
  45. package/cjs/graph/animation/animation/scale.js.map +1 -1
  46. package/cjs/graph/animation/animation/update.js +2 -2
  47. package/cjs/graph/animation/animation/update.js.map +1 -1
  48. package/cjs/graph/animation/animator.d.ts +1 -1
  49. package/cjs/graph/animation/animator.js +6 -1
  50. package/cjs/graph/animation/animator.js.map +1 -1
  51. package/cjs/graph/animation/morph.d.ts +2 -12
  52. package/cjs/graph/animation/morph.js +76 -163
  53. package/cjs/graph/animation/morph.js.map +1 -1
  54. package/cjs/graph/attributes/line.d.ts +1 -0
  55. package/cjs/graph/attributes/line.js +17 -5
  56. package/cjs/graph/attributes/line.js.map +1 -1
  57. package/cjs/graph/attributes/transform.js +7 -3
  58. package/cjs/graph/attributes/transform.js.map +1 -1
  59. package/cjs/graph/canvas-renderer.d.ts +1 -1
  60. package/cjs/graph/canvas-renderer.js +10 -5
  61. package/cjs/graph/canvas-renderer.js.map +1 -1
  62. package/cjs/graph/constants.d.ts +1 -0
  63. package/cjs/graph/constants.js +2 -2
  64. package/cjs/graph/constants.js.map +1 -1
  65. package/cjs/graph/element.d.ts +4 -0
  66. package/cjs/graph/element.js +59 -19
  67. package/cjs/graph/element.js.map +1 -1
  68. package/cjs/graph/glyph-element.js +11 -9
  69. package/cjs/graph/glyph-element.js.map +1 -1
  70. package/cjs/graph/layout/layout.d.ts +1 -0
  71. package/cjs/graph/layout/layout.js +8 -2
  72. package/cjs/graph/layout/layout.js.map +1 -1
  73. package/cjs/graph/mark/graphic.js +14 -8
  74. package/cjs/graph/mark/graphic.js.map +1 -1
  75. package/cjs/graph/util/events-extend.d.ts +1 -2
  76. package/cjs/graph/util/events-extend.js +14 -3
  77. package/cjs/graph/util/events-extend.js.map +1 -1
  78. package/cjs/graph/util/point.js +10 -26
  79. package/cjs/graph/util/point.js.map +1 -1
  80. package/cjs/graph/view-diff.d.ts +8 -0
  81. package/cjs/graph/view-diff.js +93 -0
  82. package/cjs/graph/view-diff.js.map +1 -0
  83. package/cjs/index.d.ts +8 -1
  84. package/cjs/index.js +66 -2
  85. package/cjs/index.js.map +1 -1
  86. package/cjs/interactions/base.js.map +1 -1
  87. package/cjs/interactions/brush-base.js +1 -2
  88. package/cjs/interactions/brush-filter.js +2 -1
  89. package/cjs/interactions/brush-highlight.js +16 -7
  90. package/cjs/interactions/brush-highlight.js.map +1 -1
  91. package/cjs/interactions/element-active-by-legend.d.ts +2 -1
  92. package/cjs/interactions/element-active-by-legend.js +5 -2
  93. package/cjs/interactions/element-active-by-legend.js.map +1 -1
  94. package/cjs/interactions/element-active.d.ts +3 -2
  95. package/cjs/interactions/element-active.js +4 -2
  96. package/cjs/interactions/element-active.js.map +1 -1
  97. package/cjs/interactions/element-highlight-by-graphic-name.d.ts +14 -0
  98. package/cjs/interactions/element-highlight-by-graphic-name.js +55 -0
  99. package/cjs/interactions/element-highlight-by-graphic-name.js.map +1 -0
  100. package/cjs/interactions/element-highlight-by-group.d.ts +2 -2
  101. package/cjs/interactions/element-highlight-by-group.js +13 -6
  102. package/cjs/interactions/element-highlight-by-group.js.map +1 -1
  103. package/cjs/interactions/element-highlight-by-key.d.ts +2 -2
  104. package/cjs/interactions/element-highlight-by-key.js +12 -15
  105. package/cjs/interactions/element-highlight-by-key.js.map +1 -1
  106. package/cjs/interactions/element-highlight-by-legend.d.ts +2 -1
  107. package/cjs/interactions/element-highlight-by-legend.js +14 -5
  108. package/cjs/interactions/element-highlight-by-legend.js.map +1 -1
  109. package/cjs/interactions/element-highlight-by-name.d.ts +2 -1
  110. package/cjs/interactions/element-highlight-by-name.js +14 -5
  111. package/cjs/interactions/element-highlight-by-name.js.map +1 -1
  112. package/cjs/interactions/element-highlight.d.ts +1 -1
  113. package/cjs/interactions/element-highlight.js +9 -6
  114. package/cjs/interactions/element-highlight.js.map +1 -1
  115. package/cjs/interactions/element-select-by-graphic-name.d.ts +7 -0
  116. package/cjs/interactions/element-select-by-graphic-name.js +26 -0
  117. package/cjs/interactions/element-select-by-graphic-name.js.map +1 -0
  118. package/cjs/interactions/element-select.d.ts +1 -1
  119. package/cjs/interactions/element-select.js +9 -10
  120. package/cjs/interactions/element-select.js.map +1 -1
  121. package/cjs/interactions/index.d.ts +2 -0
  122. package/cjs/interactions/index.js +17 -3
  123. package/cjs/interactions/index.js.map +1 -1
  124. package/cjs/interactions/slider-filter.js +1 -1
  125. package/cjs/interactions/toggle-state-mixin.js +9 -7
  126. package/cjs/interactions/toggle-state-mixin.js.map +1 -1
  127. package/cjs/interactions/tooltip.js +1 -1
  128. package/cjs/parse/event.d.ts +0 -2
  129. package/cjs/parse/event.js +4 -10
  130. package/cjs/parse/event.js.map +1 -1
  131. package/cjs/parse/util.js.map +1 -1
  132. package/cjs/semantic-marks/text.js.map +1 -1
  133. package/cjs/transforms/data/pie.js +2 -2
  134. package/cjs/transforms/data/pie.js.map +1 -1
  135. package/cjs/transforms/mark/mark-overlap.js +6 -6
  136. package/cjs/transforms/mark/mark-overlap.js.map +1 -1
  137. package/cjs/transforms/util/util.d.ts +0 -2
  138. package/cjs/transforms/util/util.js +3 -13
  139. package/cjs/transforms/util/util.js.map +1 -1
  140. package/cjs/types/animate.d.ts +3 -1
  141. package/cjs/types/animate.js.map +1 -1
  142. package/cjs/types/element.d.ts +7 -2
  143. package/cjs/types/element.js.map +1 -1
  144. package/cjs/types/grammar.d.ts +1 -0
  145. package/cjs/types/grammar.js.map +1 -1
  146. package/cjs/types/interaction.d.ts +4 -1
  147. package/cjs/types/interaction.js.map +1 -1
  148. package/cjs/types/mark.d.ts +2 -0
  149. package/cjs/types/mark.js.map +1 -1
  150. package/cjs/types/morph.d.ts +1 -2
  151. package/cjs/types/morph.js.map +1 -1
  152. package/cjs/types/renderer.d.ts +6 -1
  153. package/cjs/types/renderer.js.map +1 -1
  154. package/cjs/types/transform.d.ts +1 -0
  155. package/cjs/types/transform.js.map +1 -1
  156. package/cjs/types/view.d.ts +4 -1
  157. package/cjs/types/view.js.map +1 -1
  158. package/cjs/view/View.d.ts +3 -6
  159. package/cjs/view/View.js +73 -125
  160. package/cjs/view/View.js.map +1 -1
  161. package/cjs/view/animate.js +2 -1
  162. package/cjs/view/animate.js.map +1 -1
  163. package/cjs/view/constants.d.ts +2 -0
  164. package/cjs/view/constants.js +3 -2
  165. package/cjs/view/constants.js.map +1 -1
  166. package/cjs/view/events.d.ts +0 -1
  167. package/cjs/view/events.js +3 -17
  168. package/cjs/view/events.js.map +1 -1
  169. package/cjs/view/glyph.d.ts +4 -0
  170. package/cjs/view/glyph.js +12 -3
  171. package/cjs/view/glyph.js.map +1 -1
  172. package/cjs/view/grammar-record.js +2 -3
  173. package/cjs/view/grammar-record.js.map +1 -1
  174. package/cjs/view/group.js +9 -6
  175. package/cjs/view/group.js.map +1 -1
  176. package/cjs/view/mark-animate-mixin.d.ts +1 -0
  177. package/cjs/view/mark-animate-mixin.js +29 -0
  178. package/cjs/view/mark-animate-mixin.js.map +1 -0
  179. package/cjs/view/mark.d.ts +4 -1
  180. package/cjs/view/mark.js +104 -68
  181. package/cjs/view/mark.js.map +1 -1
  182. package/cjs/view/view-animate-mixin.d.ts +1 -0
  183. package/cjs/view/view-animate-mixin.js +26 -0
  184. package/cjs/view/view-animate-mixin.js.map +1 -0
  185. package/cjs/view/view-event-mixin.d.ts +1 -0
  186. package/cjs/view/view-event-mixin.js +92 -0
  187. package/cjs/view/view-event-mixin.js.map +1 -0
  188. package/cjs/view/view-morph-mixin.d.ts +1 -0
  189. package/cjs/view/view-morph-mixin.js +32 -0
  190. package/cjs/view/view-morph-mixin.js.map +1 -0
  191. package/es/component/axis.d.ts +2 -0
  192. package/es/component/axis.js +10 -0
  193. package/es/component/axis.js.map +1 -1
  194. package/es/component/grid.d.ts +2 -0
  195. package/es/component/grid.js +10 -0
  196. package/es/component/grid.js.map +1 -1
  197. package/es/component/index.d.ts +2 -2
  198. package/es/component/index.js +2 -2
  199. package/es/component/index.js.map +1 -1
  200. package/es/component/label.js +35 -19
  201. package/es/component/label.js.map +1 -1
  202. package/es/component/player.js.map +1 -1
  203. package/es/core/factory.d.ts +8 -1
  204. package/es/core/factory.js +10 -2
  205. package/es/core/factory.js.map +1 -1
  206. package/es/glyph/boxplot.js +4 -2
  207. package/es/glyph/boxplot.js.map +1 -1
  208. package/es/glyph/link-path.js +4 -2
  209. package/es/glyph/link-path.js.map +1 -1
  210. package/es/glyph/ripple.js +3 -1
  211. package/es/glyph/ripple.js.map +1 -1
  212. package/es/glyph/tree-path.js +4 -2
  213. package/es/glyph/tree-path.js.map +1 -1
  214. package/es/glyph/violin.js +4 -2
  215. package/es/glyph/violin.js.map +1 -1
  216. package/es/glyph/wave.js +3 -1
  217. package/es/glyph/wave.js.map +1 -1
  218. package/es/graph/animation/animate.js +9 -4
  219. package/es/graph/animation/animate.js.map +1 -1
  220. package/es/graph/animation/animation/fade.js +5 -4
  221. package/es/graph/animation/animation/fade.js.map +1 -1
  222. package/es/graph/animation/animation/grow-cartesian.js +14 -14
  223. package/es/graph/animation/animation/grow-cartesian.js.map +1 -1
  224. package/es/graph/animation/animation/grow-interval.js +9 -6
  225. package/es/graph/animation/animation/grow-interval.js.map +1 -1
  226. package/es/graph/animation/animation/grow-points.js +9 -9
  227. package/es/graph/animation/animation/grow-points.js.map +1 -1
  228. package/es/graph/animation/animation/grow-polar.js +76 -63
  229. package/es/graph/animation/animation/grow-polar.js.map +1 -1
  230. package/es/graph/animation/animation/move.js +6 -6
  231. package/es/graph/animation/animation/move.js.map +1 -1
  232. package/es/graph/animation/animation/rotate.js +3 -3
  233. package/es/graph/animation/animation/rotate.js.map +1 -1
  234. package/es/graph/animation/animation/scale.js +5 -4
  235. package/es/graph/animation/animation/scale.js.map +1 -1
  236. package/es/graph/animation/animation/update.js +1 -3
  237. package/es/graph/animation/animation/update.js.map +1 -1
  238. package/es/graph/animation/animator.d.ts +1 -1
  239. package/es/graph/animation/animator.js +6 -1
  240. package/es/graph/animation/animator.js.map +1 -1
  241. package/es/graph/animation/morph.d.ts +2 -12
  242. package/es/graph/animation/morph.js +72 -159
  243. package/es/graph/animation/morph.js.map +1 -1
  244. package/es/graph/attributes/line.d.ts +1 -0
  245. package/es/graph/attributes/line.js +14 -3
  246. package/es/graph/attributes/line.js.map +1 -1
  247. package/es/graph/attributes/transform.js +7 -3
  248. package/es/graph/attributes/transform.js.map +1 -1
  249. package/es/graph/canvas-renderer.d.ts +1 -1
  250. package/es/graph/canvas-renderer.js +11 -6
  251. package/es/graph/canvas-renderer.js.map +1 -1
  252. package/es/graph/constants.d.ts +1 -0
  253. package/es/graph/constants.js +2 -0
  254. package/es/graph/constants.js.map +1 -1
  255. package/es/graph/element.d.ts +4 -0
  256. package/es/graph/element.js +59 -22
  257. package/es/graph/element.js.map +1 -1
  258. package/es/graph/glyph-element.js +10 -11
  259. package/es/graph/glyph-element.js.map +1 -1
  260. package/es/graph/layout/layout.d.ts +1 -0
  261. package/es/graph/layout/layout.js +6 -0
  262. package/es/graph/layout/layout.js.map +1 -1
  263. package/es/graph/mark/graphic.js +13 -7
  264. package/es/graph/mark/graphic.js.map +1 -1
  265. package/es/graph/util/events-extend.d.ts +1 -2
  266. package/es/graph/util/events-extend.js +16 -3
  267. package/es/graph/util/events-extend.js.map +1 -1
  268. package/es/graph/util/point.js +10 -26
  269. package/es/graph/util/point.js.map +1 -1
  270. package/es/graph/view-diff.d.ts +8 -0
  271. package/es/graph/view-diff.js +89 -0
  272. package/es/graph/view-diff.js.map +1 -0
  273. package/es/index.d.ts +8 -1
  274. package/es/index.js +29 -1
  275. package/es/index.js.map +1 -1
  276. package/es/interactions/base.js.map +1 -1
  277. package/es/interactions/brush-filter.js +2 -1
  278. package/es/interactions/brush-highlight.js +16 -7
  279. package/es/interactions/brush-highlight.js.map +1 -1
  280. package/es/interactions/element-active-by-legend.d.ts +2 -1
  281. package/es/interactions/element-active-by-legend.js +5 -2
  282. package/es/interactions/element-active-by-legend.js.map +1 -1
  283. package/es/interactions/element-active.d.ts +3 -2
  284. package/es/interactions/element-active.js +5 -4
  285. package/es/interactions/element-active.js.map +1 -1
  286. package/es/interactions/element-highlight-by-graphic-name.d.ts +14 -0
  287. package/es/interactions/element-highlight-by-graphic-name.js +51 -0
  288. package/es/interactions/element-highlight-by-graphic-name.js.map +1 -0
  289. package/es/interactions/element-highlight-by-group.d.ts +2 -2
  290. package/es/interactions/element-highlight-by-group.js +13 -6
  291. package/es/interactions/element-highlight-by-group.js.map +1 -1
  292. package/es/interactions/element-highlight-by-key.d.ts +2 -2
  293. package/es/interactions/element-highlight-by-key.js +12 -15
  294. package/es/interactions/element-highlight-by-key.js.map +1 -1
  295. package/es/interactions/element-highlight-by-legend.d.ts +2 -1
  296. package/es/interactions/element-highlight-by-legend.js +14 -5
  297. package/es/interactions/element-highlight-by-legend.js.map +1 -1
  298. package/es/interactions/element-highlight-by-name.d.ts +2 -1
  299. package/es/interactions/element-highlight-by-name.js +14 -5
  300. package/es/interactions/element-highlight-by-name.js.map +1 -1
  301. package/es/interactions/element-highlight.d.ts +1 -1
  302. package/es/interactions/element-highlight.js +9 -6
  303. package/es/interactions/element-highlight.js.map +1 -1
  304. package/es/interactions/element-select-by-graphic-name.d.ts +7 -0
  305. package/es/interactions/element-select-by-graphic-name.js +20 -0
  306. package/es/interactions/element-select-by-graphic-name.js.map +1 -0
  307. package/es/interactions/element-select.d.ts +1 -1
  308. package/es/interactions/element-select.js +9 -9
  309. package/es/interactions/element-select.js.map +1 -1
  310. package/es/interactions/filter.js +1 -1
  311. package/es/interactions/fish-eye.js +1 -1
  312. package/es/interactions/index.d.ts +2 -0
  313. package/es/interactions/index.js +14 -1
  314. package/es/interactions/index.js.map +1 -1
  315. package/es/interactions/legend-filter.js +1 -1
  316. package/es/interactions/player-filter.js +1 -1
  317. package/es/interactions/roll-up.js +1 -1
  318. package/es/interactions/scrollbar-filter.js +1 -1
  319. package/es/interactions/slider-filter.js +1 -1
  320. package/es/interactions/toggle-state-mixin.js +9 -7
  321. package/es/interactions/toggle-state-mixin.js.map +1 -1
  322. package/es/interactions/tooltip.js +1 -1
  323. package/es/parse/coordinate.js +1 -1
  324. package/es/parse/event.d.ts +0 -2
  325. package/es/parse/event.js +4 -8
  326. package/es/parse/event.js.map +1 -1
  327. package/es/parse/mark.js +1 -1
  328. package/es/parse/option.js +1 -2
  329. package/es/parse/scale.js +1 -1
  330. package/es/parse/transform.js +1 -1
  331. package/es/parse/util.js +1 -1
  332. package/es/parse/util.js.map +1 -1
  333. package/es/parse/view.js +1 -1
  334. package/es/semantic-marks/text.js.map +1 -1
  335. package/es/transforms/data/pie.js +1 -1
  336. package/es/transforms/data/pie.js.map +1 -1
  337. package/es/transforms/mark/mark-overlap.js +6 -6
  338. package/es/transforms/mark/mark-overlap.js.map +1 -1
  339. package/es/transforms/util/util.d.ts +0 -2
  340. package/es/transforms/util/util.js +0 -10
  341. package/es/transforms/util/util.js.map +1 -1
  342. package/es/types/animate.d.ts +3 -1
  343. package/es/types/animate.js.map +1 -1
  344. package/es/types/element.d.ts +7 -2
  345. package/es/types/element.js.map +1 -1
  346. package/es/types/grammar.d.ts +1 -0
  347. package/es/types/grammar.js.map +1 -1
  348. package/es/types/interaction.d.ts +4 -1
  349. package/es/types/interaction.js.map +1 -1
  350. package/es/types/mark.d.ts +2 -0
  351. package/es/types/mark.js.map +1 -1
  352. package/es/types/morph.d.ts +1 -2
  353. package/es/types/morph.js.map +1 -1
  354. package/es/types/renderer.d.ts +6 -1
  355. package/es/types/renderer.js.map +1 -1
  356. package/es/types/transform.d.ts +1 -0
  357. package/es/types/transform.js.map +1 -1
  358. package/es/types/view.d.ts +4 -1
  359. package/es/types/view.js.map +1 -1
  360. package/es/view/View.d.ts +3 -6
  361. package/es/view/View.js +63 -124
  362. package/es/view/View.js.map +1 -1
  363. package/es/view/animate.js +2 -1
  364. package/es/view/animate.js.map +1 -1
  365. package/es/view/constants.d.ts +2 -0
  366. package/es/view/constants.js +4 -0
  367. package/es/view/constants.js.map +1 -1
  368. package/es/view/events.d.ts +0 -1
  369. package/es/view/events.js +1 -15
  370. package/es/view/events.js.map +1 -1
  371. package/es/view/glyph.d.ts +4 -0
  372. package/es/view/glyph.js +11 -0
  373. package/es/view/glyph.js.map +1 -1
  374. package/es/view/grammar-record.js +2 -3
  375. package/es/view/grammar-record.js.map +1 -1
  376. package/es/view/group.js +8 -7
  377. package/es/view/group.js.map +1 -1
  378. package/es/view/mark-animate-mixin.d.ts +1 -0
  379. package/es/view/mark-animate-mixin.js +25 -0
  380. package/es/view/mark-animate-mixin.js.map +1 -0
  381. package/es/view/mark.d.ts +4 -1
  382. package/es/view/mark.js +102 -70
  383. package/es/view/mark.js.map +1 -1
  384. package/es/view/view-animate-mixin.d.ts +1 -0
  385. package/es/view/view-animate-mixin.js +16 -0
  386. package/es/view/view-animate-mixin.js.map +1 -0
  387. package/es/view/view-event-mixin.d.ts +1 -0
  388. package/es/view/view-event-mixin.js +90 -0
  389. package/es/view/view-event-mixin.js.map +1 -0
  390. package/es/view/view-morph-mixin.d.ts +1 -0
  391. package/es/view/view-morph-mixin.js +22 -0
  392. package/es/view/view-morph-mixin.js.map +1 -0
  393. package/package.json +10 -10
  394. package/cjs/graph/util/element.d.ts +0 -2
  395. package/cjs/graph/util/element.js +0 -10
  396. package/cjs/graph/util/element.js.map +0 -1
  397. package/es/graph/util/element.d.ts +0 -2
  398. package/es/graph/util/element.js +0 -8
  399. package/es/graph/util/element.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-cartesian.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBA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,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;KACzG,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAA4B,CACpD,OAAiB,EACjB,OAAuC,EACvC,mBAAyC,EACzC,EAAE;;IACF,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,KAAK,KAAK;QAC1C,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7D,CAAC,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC,CAAC","file":"grow-cartesian.js","sourcesContent":["import { isNil, isNumber, isValid } from '@visactor/vutils';\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\n\n// grow center\nexport const growCenterIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n from: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n },\n to: { x, x1, width }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n from: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n },\n to: { y, y1, height }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n const from: any = {};\n\n if (isValid(width)) {\n from.x = x + width / 2;\n from.width = 0;\n from.x1 = undefined;\n } else {\n from.x = (x + x1) / 2;\n from.x1 = (x + x1) / 2;\n from.width = undefined;\n }\n\n if (isValid(height)) {\n from.y = y + height / 2;\n from.height = 0;\n from.y1 = undefined;\n } else {\n from.y = (y + y1) / 2;\n from.y1 = (y + y1) / 2;\n from.height = undefined;\n }\n\n return {\n from,\n to: { x, y, x1, y1, width, height }\n };\n }\n }\n};\n\nexport const growCenterOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n to: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n to: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const y = element.getGraphicAttribute('y', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const width = element.getGraphicAttribute('width', false);\n const height = element.getGraphicAttribute('height', false);\n const to: any = {};\n\n if (isValid(width)) {\n to.x = x + width / 2;\n to.width = 0;\n to.x1 = undefined;\n } else {\n to.x = (x + x1) / 2;\n to.x1 = (x + x1) / 2;\n to.width = undefined;\n }\n\n if (isValid(height)) {\n to.y = y + height / 2;\n to.height = 0;\n to.y1 = undefined;\n } else {\n to.y = (y + y1) / 2;\n to.y1 = (y + y1) / 2;\n to.height = undefined;\n }\n\n return {\n to\n };\n }\n }\n};\n\n// grow width\nfunction growWidthInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n from: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n from: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nfunction growWidthInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n // no need to handle the situation where x > x1\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nexport const growWidthIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthInOverall(element, options, animationParameters)\n : growWidthInIndividual(element, options, animationParameters);\n};\n\nfunction growWidthOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n to: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n to: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 }\n };\n}\n\nfunction growWidthOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 }\n };\n}\n\nexport const growWidthOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthOutOverall(element, options, animationParameters)\n : growWidthOutIndividual(element, options, animationParameters);\n};\n\n// grow height\n\nfunction growHeightInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n return {\n from: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n from: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nfunction growHeightInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nexport const growHeightIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightInOverall(element, options, animationParameters)\n : growHeightInIndividual(element, options, animationParameters);\n};\n\nfunction growHeightOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n\n return {\n to: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n to: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 }\n };\n}\n\nfunction growHeightOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 }\n };\n}\n\nexport const growHeightOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightOutOverall(element, options, animationParameters)\n : growHeightOutIndividual(element, options, animationParameters);\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-cartesian.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,CAAC,MAAM,YAAY,GAA4B,CACnD,OAAiB,EACjB,OAAuC,EACvC,mBAAyC,EACzC,EAAE;IACF,QAAQ,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,EAAE;QAC1B,KAAK,GAAG,CAAC,CAAC;YACR,MAAM,CAAC,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC;YAClD,MAAM,EAA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,EAAE,CAAC;YAEzG,mBAA2B,CAAC,WAAW,GAAG,YAAY,CAAC;SACzD;aAAM;YACL,YAAY,GAAG,mBAAmB,CAAC,MAAM,CAAC;SAC3C;KACF;SAAM;QACL,YAAY,GAAG,QAAQ,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;KACjE;IACD,OAAO;QACL,EAAE,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;KACzG,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAA4B,CACpD,OAAiB,EACjB,OAAuC,EACvC,mBAAyC,EACzC,EAAE;;IACF,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,KAAK,KAAK;QAC1C,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7D,CAAC,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC,CAAC","file":"grow-cartesian.js","sourcesContent":["import { isNil, isNumber, isValid } from '@visactor/vutils';\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\n\n// grow center\nexport const growCenterIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n\n return {\n from: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n },\n to: { x, x1, width }\n };\n }\n case 'y': {\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n return {\n from: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n },\n to: { y, y1, height }\n };\n }\n case 'xy':\n default: {\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n const from: any = {};\n\n if (isValid(width)) {\n from.x = x + width / 2;\n from.width = 0;\n from.x1 = undefined;\n } else {\n from.x = (x + x1) / 2;\n from.x1 = (x + x1) / 2;\n from.width = undefined;\n }\n\n if (isValid(height)) {\n from.y = y + height / 2;\n from.height = 0;\n from.y1 = undefined;\n } else {\n from.y = (y + y1) / 2;\n from.y1 = (y + y1) / 2;\n from.height = undefined;\n }\n\n return {\n from,\n to: { x, y, x1, y1, width, height }\n };\n }\n }\n};\n\nexport const growCenterOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n\n return {\n to: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n }\n };\n }\n case 'y': {\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n return {\n to: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n }\n };\n }\n case 'xy':\n default: {\n const x = element.getFinalAnimationAttribute('x');\n const y = element.getFinalAnimationAttribute('y');\n const x1 = element.getFinalAnimationAttribute('x1');\n const y1 = element.getFinalAnimationAttribute('y1');\n const width = element.getFinalAnimationAttribute('width');\n const height = element.getFinalAnimationAttribute('height');\n const to: any = {};\n\n if (isValid(width)) {\n to.x = x + width / 2;\n to.width = 0;\n to.x1 = undefined;\n } else {\n to.x = (x + x1) / 2;\n to.x1 = (x + x1) / 2;\n to.width = undefined;\n }\n\n if (isValid(height)) {\n to.y = y + height / 2;\n to.height = 0;\n to.y1 = undefined;\n } else {\n to.y = (y + y1) / 2;\n to.y1 = (y + y1) / 2;\n to.height = undefined;\n }\n\n return {\n to\n };\n }\n }\n};\n\n// grow width\nfunction growWidthInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n from: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n from: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nfunction growWidthInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n // no need to handle the situation where x > x1\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nexport const growWidthIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthInOverall(element, options, animationParameters)\n : growWidthInIndividual(element, options, animationParameters);\n};\n\nfunction growWidthOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getFinalAnimationAttribute('x');\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n to: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n to: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 }\n };\n}\n\nfunction growWidthOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x1 = element.getFinalAnimationAttribute('x1');\n const width = element.getFinalAnimationAttribute('width');\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 }\n };\n}\n\nexport const growWidthOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthOutOverall(element, options, animationParameters)\n : growWidthOutIndividual(element, options, animationParameters);\n};\n\n// grow height\n\nfunction growHeightInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n return {\n from: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n from: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nfunction growHeightInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nexport const growHeightIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightInOverall(element, options, animationParameters)\n : growHeightInIndividual(element, options, animationParameters);\n};\n\nfunction growHeightOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getFinalAnimationAttribute('y');\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n\n return {\n to: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n to: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 }\n };\n}\n\nfunction growHeightOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y1 = element.getFinalAnimationAttribute('y1');\n const height = element.getFinalAnimationAttribute('height');\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 }\n };\n}\n\nexport const growHeightOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightOutOverall(element, options, animationParameters)\n : growHeightOutIndividual(element, options, animationParameters);\n};\n"]}
@@ -1,8 +1,9 @@
1
1
  import { isNumber } from "@visactor/vutils";
2
2
 
3
3
  function growIntervalInIndividual(element, options, animationParameters) {
4
+ const attrs = element.getFinalAnimationAttributes();
4
5
  if (options && "x" === options.direction) {
5
- const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1);
6
+ const x = null == attrs ? void 0 : attrs.x, x1 = null == attrs ? void 0 : attrs.x1;
6
7
  return "negative" === options.orient ? {
7
8
  from: {
8
9
  x: x1,
@@ -23,7 +24,7 @@ function growIntervalInIndividual(element, options, animationParameters) {
23
24
  }
24
25
  };
25
26
  }
26
- const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1);
27
+ const y = null == attrs ? void 0 : attrs.y, y1 = null == attrs ? void 0 : attrs.y1;
27
28
  return options && "negative" === options.orient ? {
28
29
  from: {
29
30
  y: y1,
@@ -47,8 +48,9 @@ function growIntervalInIndividual(element, options, animationParameters) {
47
48
 
48
49
  function growIntervalInOverall(element, options, animationParameters) {
49
50
  var _a, _b;
51
+ const attrs = element.getFinalAnimationAttributes();
50
52
  if (options && "x" === options.direction) {
51
- const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1);
53
+ const x = null == attrs ? void 0 : attrs.x, x1 = null == attrs ? void 0 : attrs.x1;
52
54
  let overallValue;
53
55
  return "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
54
56
  animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
@@ -63,7 +65,7 @@ function growIntervalInOverall(element, options, animationParameters) {
63
65
  }
64
66
  };
65
67
  }
66
- const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1);
68
+ const y = null == attrs ? void 0 : attrs.y, y1 = null == attrs ? void 0 : attrs.y1;
67
69
  let overallValue;
68
70
  return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(),
69
71
  animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
@@ -89,8 +91,9 @@ export const growIntervalIn = (element, options, animationParameters) => {
89
91
  };
90
92
 
91
93
  function growIntervalOutIndividual(element, options, animationParameters) {
94
+ const attrs = element.getFinalAnimationAttributes();
92
95
  if (options && "x" === options.direction) {
93
- const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1), prevX = element.getGraphicAttribute("x", !0), prevX1 = element.getGraphicAttribute("x1", !0);
96
+ const x = null == attrs ? void 0 : attrs.x, x1 = null == attrs ? void 0 : attrs.x1, prevX = element.getGraphicAttribute("x", !0), prevX1 = element.getGraphicAttribute("x1", !0);
94
97
  return "negative" === options.orient ? {
95
98
  from: {
96
99
  x: prevX,
@@ -111,7 +114,7 @@ function growIntervalOutIndividual(element, options, animationParameters) {
111
114
  }
112
115
  };
113
116
  }
114
- const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1), prevY = element.getGraphicAttribute("y", !0), prevY1 = element.getGraphicAttribute("y1", !0);
117
+ const y = null == attrs ? void 0 : attrs.y, y1 = null == attrs ? void 0 : attrs.y1, prevY = element.getGraphicAttribute("y", !0), prevY1 = element.getGraphicAttribute("y1", !0);
115
118
  return options && "negative" === options.orient ? {
116
119
  from: {
117
120
  y: prevY,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-interval.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,SAAS,wBAAwB,CAC/B,OAAiB,EACjB,OAAuC,EACvC,mBA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AE,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE;KAC1C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAA4B,CACtD,OAAiB,EACjB,OAAwD,EACxD,mBAAyC,EACzC,EAAE;;IACF,MAAM,KAAK,GAAG,MAAA,MAAA,OAAO,CAAC,IAAI,0CAAE,KAAK,0CAAE,MAAM,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;IACvC,MAAM,UAAU,GAAmC;QACjD,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,YAAY,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;KAChD,CAAC;IAEF,OAAO,OAAO,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI;QACxC,CAAC,CAAC,yBAAyB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC;QACrE,CAAC,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,CAAC;AACvE,CAAC,CAAC","file":"grow-interval.js","sourcesContent":["/**\n * this animtion is only used for interval mark\n */\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\nimport { isNumber } from '@visactor/vutils';\n\nfunction growIntervalInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n if (options.orient === 'negative') {\n return {\n from: { x: x1, x1: x1 },\n to: { x: x, x1: x1 }\n };\n }\n return {\n from: { x: x, x1: x },\n to: { x: x, y1: x1 }\n };\n }\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n if (options && options.orient === 'negative') {\n return {\n from: { y: y1, y1: y1 },\n to: { y: y, y1: y1 }\n };\n }\n return {\n from: { y: y, y1: y },\n to: { y: y, y1: y1 }\n };\n}\n\nfunction growIntervalInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { x: overallValue, x1: overallValue },\n to: { x: x, y1: x1 }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: overallValue, y1: overallValue },\n to: { y: y, y1: y1 }\n };\n}\n\nexport const growIntervalIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalInIndividual(element, newOptions, animationParameters)\n : growIntervalInOverall(element, newOptions, animationParameters);\n};\n\nfunction growIntervalOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n if (options.orient === 'negative') {\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x1, x1: x1 }\n };\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x, x1: x }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n if (options && options.orient === 'negative') {\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y1, y1: y1 }\n };\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y, y1: y }\n };\n}\n\nfunction growIntervalOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: overallValue, x1: overallValue }\n };\n }\n\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: overallValue, y1: overallValue }\n };\n}\n\nexport const growIntervalOut: TypeAnimation<IElement> = (\n element: IElement,\n options: Pick<IGrowCartesianAnimationOptions, 'overall'>,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalOutIndividual(element, newOptions, animationParameters)\n : growIntervalOutOverall(element, newOptions, animationParameters);\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-interval.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,SAAS,wBAAwB,CAC/B,OAAiB,EACjB,OAAuC,EACvC,mBAAyC;IAEzC,MAAM,KAAK,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAEpD,IAAI,OAAO,IAAI,OAAO,CAAC,SAAS,KAAK,GAAG,EAAE;QACxC,MAAM,CAAC,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,CAAC,CAAC;QACnB,MAAM,EAAE,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAC;QACrB,IAAI,OAAO,CAAC,MAAM,KAAK,UAAU,EAAE;YACjC,OAAO;gBACL,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;gBACvB,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;aACrB,CAAC;SACH;QACD,OAAO;YACL,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;YACrB,EAAE,EAAE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AC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;KAChD,CAAC;IAEF,OAAO,OAAO,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI;QACxC,CAAC,CAAC,yBAAyB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC;QACrE,CAAC,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,CAAC;AACvE,CAAC,CAAC","file":"grow-interval.js","sourcesContent":["/**\n * this animtion is only used for interval mark\n */\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\nimport { isNumber } from '@visactor/vutils';\n\nfunction growIntervalInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const attrs = element.getFinalAnimationAttributes();\n\n if (options && options.direction === 'x') {\n const x = attrs?.x;\n const x1 = attrs?.x1;\n if (options.orient === 'negative') {\n return {\n from: { x: x1, x1: x1 },\n to: { x: x, x1: x1 }\n };\n }\n return {\n from: { x: x, x1: x },\n to: { x: x, y1: x1 }\n };\n }\n const y = attrs?.y;\n const y1 = attrs?.y1;\n if (options && options.orient === 'negative') {\n return {\n from: { y: y1, y1: y1 },\n to: { y: y, y1: y1 }\n };\n }\n return {\n from: { y: y, y1: y },\n to: { y: y, y1: y1 }\n };\n}\n\nfunction growIntervalInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const attrs = element.getFinalAnimationAttributes();\n\n if (options && options.direction === 'x') {\n const x = attrs?.x;\n const x1 = attrs?.x1;\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall as number;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? (options.overall as number) : 0;\n }\n return {\n from: { x: overallValue, x1: overallValue },\n to: { x: x, y1: x1 }\n };\n }\n\n const y = attrs?.y;\n const y1 = attrs?.y1;\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall as number;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? (options.overall as number) : 0;\n }\n return {\n from: { y: overallValue, y1: overallValue },\n to: { y: y, y1: y1 }\n };\n}\n\nexport const growIntervalIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalInIndividual(element, newOptions, animationParameters)\n : growIntervalInOverall(element, newOptions, animationParameters);\n};\n\nfunction growIntervalOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const attrs = element.getFinalAnimationAttributes();\n if (options && options.direction === 'x') {\n const x = attrs?.x;\n const x1 = attrs?.x1;\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n if (options.orient === 'negative') {\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x1, x1: x1 }\n };\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x, x1: x }\n };\n }\n\n const y = attrs?.y;\n const y1 = attrs?.y1;\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n if (options && options.orient === 'negative') {\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y1, y1: y1 }\n };\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y, y1: y }\n };\n}\n\nfunction growIntervalOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall as number;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? (options.overall as number) : 0;\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: overallValue, x1: overallValue }\n };\n }\n\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall as number;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? (options.overall as number) : 0;\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: overallValue, y1: overallValue }\n };\n}\n\nexport const growIntervalOut: TypeAnimation<IElement> = (\n element: IElement,\n options: Pick<IGrowCartesianAnimationOptions, 'overall'>,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalOutIndividual(element, newOptions, animationParameters)\n : growIntervalOutOverall(element, newOptions, animationParameters);\n};\n"]}
@@ -9,7 +9,7 @@ const getCenterPoints = (element, options, animationParameters) => {
9
9
  center.x += point.x, center.y += point.y;
10
10
  })), center.x /= points.length, center.y /= points.length, options && options.center && (isValidNumber(options.center.x) && (center.x = options.center.x),
11
11
  isValidNumber(options.center.y) && (center.y = options.center.y)), "area" === element.mark.markType && (center.x1 = center.x,
12
- center.y1 = center.y), points.map((() => Object.assign(center)));
12
+ center.y1 = center.y), points.map((point => Object.assign({}, point, center)));
13
13
  };
14
14
 
15
15
  export const growPointsIn = (element, options, animationParameters) => ({
@@ -35,21 +35,21 @@ const changePointsX = (element, options, animationParameters) => element.getGrap
35
35
  if (options && "negative" === options.orient) {
36
36
  let groupRight = animationParameters.width;
37
37
  return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
38
- animationParameters.groupWidth = groupRight), {
38
+ animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
39
39
  x: groupRight,
40
40
  y: point.y,
41
41
  x1: groupRight,
42
42
  y1: point.y1,
43
43
  defined: !1 !== point.defined
44
- };
44
+ });
45
45
  }
46
- return {
46
+ return Object.assign(Object.assign({}, point), {
47
47
  x: 0,
48
48
  y: point.y,
49
49
  x1: 0,
50
50
  y1: point.y1,
51
51
  defined: !1 !== point.defined
52
- };
52
+ });
53
53
  }));
54
54
 
55
55
  export const growPointsXIn = (element, options, animationParameters) => ({
@@ -75,21 +75,21 @@ const changePointsY = (element, options, animationParameters) => element.getGrap
75
75
  if (options && "negative" === options.orient) {
76
76
  let groupBottom = animationParameters.height;
77
77
  return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
78
- animationParameters.groupHeight = groupBottom), {
78
+ animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
79
79
  x: point.x,
80
80
  y: groupBottom,
81
81
  x1: point.x1,
82
82
  y1: groupBottom,
83
83
  defined: !1 !== point.defined
84
- };
84
+ });
85
85
  }
86
- return {
86
+ return Object.assign(Object.assign({}, point), {
87
87
  x: point.x,
88
88
  y: 0,
89
89
  x1: point.x1,
90
90
  y1: 0,
91
91
  defined: !1 !== point.defined
92
- };
92
+ });
93
93
  }));
94
94
 
95
95
  export const growPointsYIn = (element, options, animationParameters) => ({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-points.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,eAAe,GAAG,CACtB,OAAiB,EACjB,OAA2C,EAC3C,mBAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAiB,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAe,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAE1B,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;QACD,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;KACF;IAED,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAK,MAAM,EAAE;QACpC,MAAM,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AE,KAAK,CAAC,EAAE;KAC7D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA4B,CACrD,OAAiB,EACjB,OAAoC,EACpC,mBAAyC,EACzC,EAAE;IACF,OAAO;QACL,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;QAC7D,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC,CAAC","file":"grow-points.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValidNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowPointsOverallAnimationOptions,\n IAnimationParameters,\n IGrowPointsAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\nconst getCenterPoints = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points: IPointLike[] = element.getGraphicAttribute('points', false);\n const center: IPointLike = { x: 0, y: 0 };\n points.forEach(point => {\n center.x += point.x;\n center.y += point.y;\n });\n center.x /= points.length;\n center.y /= points.length;\n\n if (options && options.center) {\n if (isValidNumber(options.center.x)) {\n center.x = options.center.x;\n }\n if (isValidNumber(options.center.y)) {\n center.y = options.center.y;\n }\n }\n\n if (element.mark.markType === 'area') {\n center.x1 = center.x;\n center.y1 = center.y;\n }\n\n return points.map(() => Object.assign(center));\n};\n\nexport const growPointsIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: getCenterPoints(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: getCenterPoints(element, options, animationParameters) }\n };\n};\n\n// grow points x\n\nconst changePointsX = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupRight = animationParameters.width;\n\n if (animationParameters.group) {\n groupRight = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = groupRight;\n }\n\n return {\n x: groupRight,\n y: point.y,\n x1: groupRight,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: 0,\n y: point.y,\n x1: 0,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsXIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsX(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsXOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsX(element, options, animationParameters) }\n };\n};\n\n// grow points y\n\nconst changePointsY = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupBottom = animationParameters.height;\n\n if (animationParameters.group) {\n groupBottom = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = groupBottom;\n }\n\n return {\n x: point.x,\n y: groupBottom,\n x1: point.x1,\n y1: groupBottom,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: point.x,\n y: 0,\n x1: point.x1,\n y1: 0,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsYIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsY(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsYOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsY(element, options, animationParameters) }\n };\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-points.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,eAAe,GAAG,CACtB,OAAiB,EACjB,OAA2C,EAC3C,mBAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAiB,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAe,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAE1B,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;QACD,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,C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,CACpD,OAAiB,EACjB,OAAoC,EACpC,mBAAyC,EACzC,EAAE;IACF,OAAO;QACL,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;QACtE,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE;KAC7D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA4B,CACrD,OAAiB,EACjB,OAAoC,EACpC,mBAAyC,EACzC,EAAE;IACF,OAAO;QACL,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;QAC7D,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC,CAAC","file":"grow-points.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValidNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowPointsOverallAnimationOptions,\n IAnimationParameters,\n IGrowPointsAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\nconst getCenterPoints = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points: IPointLike[] = element.getGraphicAttribute('points', false);\n const center: IPointLike = { x: 0, y: 0 };\n points.forEach(point => {\n center.x += point.x;\n center.y += point.y;\n });\n center.x /= points.length;\n center.y /= points.length;\n\n if (options && options.center) {\n if (isValidNumber(options.center.x)) {\n center.x = options.center.x;\n }\n if (isValidNumber(options.center.y)) {\n center.y = options.center.y;\n }\n }\n\n if (element.mark.markType === 'area') {\n center.x1 = center.x;\n center.y1 = center.y;\n }\n\n return points.map(point => Object.assign({}, point, center));\n};\n\nexport const growPointsIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: getCenterPoints(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: getCenterPoints(element, options, animationParameters) }\n };\n};\n\n// grow points x\n\nconst changePointsX = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupRight = animationParameters.width;\n\n if (animationParameters.group) {\n groupRight = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = groupRight;\n }\n\n return {\n ...point,\n x: groupRight,\n y: point.y,\n x1: groupRight,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n ...point,\n x: 0,\n y: point.y,\n x1: 0,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsXIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsX(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsXOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsX(element, options, animationParameters) }\n };\n};\n\n// grow points y\n\nconst changePointsY = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupBottom = animationParameters.height;\n\n if (animationParameters.group) {\n groupBottom = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = groupBottom;\n }\n\n return {\n ...point,\n x: point.x,\n y: groupBottom,\n x1: point.x1,\n y1: groupBottom,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n ...point,\n x: point.x,\n y: 0,\n x1: point.x1,\n y1: 0,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsYIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsY(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsYOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsY(element, options, animationParameters) }\n };\n};\n"]}
@@ -1,20 +1,24 @@
1
1
  import { isNumber } from "@visactor/vutils";
2
2
 
3
- const growAngleInIndividual = (element, options, animationParameters) => options && "anticlockwise" === options.orient ? {
4
- from: {
5
- startAngle: element.getGraphicAttribute("endAngle", !1)
6
- },
7
- to: {
8
- startAngle: element.getGraphicAttribute("startAngle", !1)
9
- }
10
- } : {
11
- from: {
12
- endAngle: element.getGraphicAttribute("startAngle", !1)
13
- },
14
- to: {
15
- endAngle: element.getGraphicAttribute("endAngle", !1)
16
- }
3
+ const growAngleInIndividual = (element, options, animationParameters) => {
4
+ const attrs = element.getFinalAnimationAttributes();
5
+ return options && "anticlockwise" === options.orient ? {
6
+ from: {
7
+ startAngle: null == attrs ? void 0 : attrs.endAngle
8
+ },
9
+ to: {
10
+ startAngle: null == attrs ? void 0 : attrs.startAngle
11
+ }
12
+ } : {
13
+ from: {
14
+ endAngle: null == attrs ? void 0 : attrs.startAngle
15
+ },
16
+ to: {
17
+ endAngle: null == attrs ? void 0 : attrs.endAngle
18
+ }
19
+ };
17
20
  }, growAngleInOverall = (element, options, animationParameters) => {
21
+ const attrs = element.getFinalAnimationAttributes();
18
22
  if (options && "anticlockwise" === options.orient) {
19
23
  const overallValue = isNumber(options.overall) ? options.overall : 2 * Math.PI;
20
24
  return {
@@ -23,8 +27,8 @@ const growAngleInIndividual = (element, options, animationParameters) => options
23
27
  endAngle: overallValue
24
28
  },
25
29
  to: {
26
- startAngle: element.getGraphicAttribute("startAngle", !1),
27
- endAngle: element.getGraphicAttribute("endAngle", !1)
30
+ startAngle: null == attrs ? void 0 : attrs.startAngle,
31
+ endAngle: null == attrs ? void 0 : attrs.endAngle
28
32
  }
29
33
  };
30
34
  }
@@ -35,8 +39,8 @@ const growAngleInIndividual = (element, options, animationParameters) => options
35
39
  endAngle: overallValue
36
40
  },
37
41
  to: {
38
- startAngle: element.getGraphicAttribute("startAngle", !1),
39
- endAngle: element.getGraphicAttribute("endAngle", !1)
42
+ startAngle: null == attrs ? void 0 : attrs.startAngle,
43
+ endAngle: null == attrs ? void 0 : attrs.endAngle
40
44
  }
41
45
  };
42
46
  };
@@ -46,20 +50,23 @@ export const growAngleIn = (element, options, animationParameters) => {
46
50
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growAngleInOverall(element, options) : growAngleInIndividual(element, options);
47
51
  };
48
52
 
49
- const growAngleOutIndividual = (element, options, animationParameters) => options && "anticlockwise" === options.orient ? {
50
- from: {
51
- startAngle: element.getGraphicAttribute("startAngle", !0)
52
- },
53
- to: {
54
- startAngle: element.getGraphicAttribute("endAngle", !1)
55
- }
56
- } : {
57
- from: {
58
- endAngle: element.getGraphicAttribute("endAngle", !0)
59
- },
60
- to: {
61
- endAngle: element.getGraphicAttribute("startAngle", !1)
62
- }
53
+ const growAngleOutIndividual = (element, options, animationParameters) => {
54
+ const attrs = element.getFinalAnimationAttributes();
55
+ return options && "anticlockwise" === options.orient ? {
56
+ from: {
57
+ startAngle: element.getGraphicAttribute("startAngle", !0)
58
+ },
59
+ to: {
60
+ startAngle: null == attrs ? void 0 : attrs.endAngle
61
+ }
62
+ } : {
63
+ from: {
64
+ endAngle: element.getGraphicAttribute("endAngle", !0)
65
+ },
66
+ to: {
67
+ endAngle: null == attrs ? void 0 : attrs.startAngle
68
+ }
69
+ };
63
70
  }, growAngleOutOverall = (element, options, animationParameters) => {
64
71
  if (options && "anticlockwise" === options.orient) {
65
72
  const overallValue = isNumber(options.overall) ? options.overall : 2 * Math.PI;
@@ -92,30 +99,33 @@ export const growAngleOut = (element, options, animationParameters) => {
92
99
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growAngleOutOverall(element, options) : growAngleOutIndividual(element, options);
93
100
  };
94
101
 
95
- const growRadiusInIndividual = (element, options, animationParameters) => options && "inside" === options.orient ? {
96
- from: {
97
- innerRadius: element.getGraphicAttribute("outerRadius", !1)
98
- },
99
- to: {
100
- innerRadius: element.getGraphicAttribute("innerRadius", !1)
101
- }
102
- } : {
103
- from: {
104
- outerRadius: element.getGraphicAttribute("innerRadius", !1)
105
- },
106
- to: {
107
- outerRadius: element.getGraphicAttribute("outerRadius", !1)
108
- }
102
+ const growRadiusInIndividual = (element, options, animationParameters) => {
103
+ const attrs = element.getFinalAnimationAttributes();
104
+ return options && "inside" === options.orient ? {
105
+ from: {
106
+ innerRadius: null == attrs ? void 0 : attrs.outerRadius
107
+ },
108
+ to: {
109
+ innerRadius: null == attrs ? void 0 : attrs.innerRadius
110
+ }
111
+ } : {
112
+ from: {
113
+ outerRadius: null == attrs ? void 0 : attrs.innerRadius
114
+ },
115
+ to: {
116
+ outerRadius: null == attrs ? void 0 : attrs.outerRadius
117
+ }
118
+ };
109
119
  }, growRadiusInOverall = (element, options, animationParameters) => {
110
- const overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0;
120
+ const attrs = element.getFinalAnimationAttributes(), overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0;
111
121
  return {
112
122
  from: {
113
123
  innerRadius: overallValue,
114
124
  outerRadius: overallValue
115
125
  },
116
126
  to: {
117
- innerRadius: element.getGraphicAttribute("innerRadius", !1),
118
- outerRadius: element.getGraphicAttribute("outerRadius", !1)
127
+ innerRadius: null == attrs ? void 0 : attrs.innerRadius,
128
+ outerRadius: null == attrs ? void 0 : attrs.outerRadius
119
129
  }
120
130
  };
121
131
  };
@@ -125,20 +135,23 @@ export const growRadiusIn = (element, options, animationParameters) => {
125
135
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growRadiusInOverall(element, options) : growRadiusInIndividual(element, options);
126
136
  };
127
137
 
128
- const growRadiusOutIndividual = (element, options, animationParameters) => options && "inside" === options.orient ? {
129
- from: {
130
- innerRadius: element.getGraphicAttribute("innerRadius", !0)
131
- },
132
- to: {
133
- innerRadius: element.getGraphicAttribute("outerRadius", !1)
134
- }
135
- } : {
136
- from: {
137
- outerRadius: element.getGraphicAttribute("outerRadius", !0)
138
- },
139
- to: {
140
- outerRadius: element.getGraphicAttribute("innerRadius", !1)
141
- }
138
+ const growRadiusOutIndividual = (element, options, animationParameters) => {
139
+ const attrs = element.getFinalAnimationAttributes();
140
+ return options && "inside" === options.orient ? {
141
+ from: {
142
+ innerRadius: element.getGraphicAttribute("innerRadius", !0)
143
+ },
144
+ to: {
145
+ innerRadius: null == attrs ? void 0 : attrs.outerRadius
146
+ }
147
+ } : {
148
+ from: {
149
+ outerRadius: element.getGraphicAttribute("outerRadius", !0)
150
+ },
151
+ to: {
152
+ outerRadius: null == attrs ? void 0 : attrs.innerRadius
153
+ }
154
+ };
142
155
  }, growRadiusOutOverall = (element, options, animationParameters) => {
143
156
  const overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0;
144
157
  return {