@visactor/vrender-core 0.22.15-alpha.1 → 0.22.15

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 (441) hide show
  1. package/cjs/animate/Ticker/default-ticker.d.ts +40 -0
  2. package/cjs/animate/Ticker/default-ticker.js +140 -0
  3. package/cjs/animate/Ticker/default-ticker.js.map +1 -0
  4. package/cjs/animate/Ticker/index.d.ts +5 -0
  5. package/cjs/{interface/animation → animate/Ticker}/index.js +3 -3
  6. package/cjs/animate/Ticker/index.js.map +1 -0
  7. package/cjs/animate/Ticker/manual-ticker-handler.d.ts +15 -0
  8. package/cjs/animate/Ticker/manual-ticker-handler.js +36 -0
  9. package/cjs/animate/Ticker/manual-ticker-handler.js.map +1 -0
  10. package/cjs/animate/Ticker/manual-ticker.d.ts +19 -0
  11. package/cjs/animate/Ticker/manual-ticker.js +37 -0
  12. package/cjs/animate/Ticker/manual-ticker.js.map +1 -0
  13. package/cjs/animate/Ticker/raf-tick-handler.d.ts +9 -0
  14. package/cjs/animate/Ticker/raf-tick-handler.js +30 -0
  15. package/cjs/animate/Ticker/raf-tick-handler.js.map +1 -0
  16. package/cjs/animate/Ticker/timeout-tick-handler.d.ts +9 -0
  17. package/cjs/animate/Ticker/timeout-tick-handler.js +28 -0
  18. package/cjs/animate/Ticker/timeout-tick-handler.js.map +1 -0
  19. package/cjs/animate/Ticker/type.d.ts +6 -0
  20. package/cjs/{interface/animation/ticker.js → animate/Ticker/type.js} +1 -1
  21. package/cjs/animate/Ticker/type.js.map +1 -0
  22. package/cjs/animate/animate.d.ts +147 -0
  23. package/cjs/animate/animate.js +403 -0
  24. package/cjs/animate/animate.js.map +1 -0
  25. package/cjs/animate/config.d.ts +2 -1
  26. package/cjs/animate/config.js +5 -1
  27. package/cjs/animate/config.js.map +1 -1
  28. package/cjs/animate/custom-animate.d.ts +236 -0
  29. package/cjs/animate/custom-animate.js +726 -0
  30. package/cjs/animate/custom-animate.js.map +1 -0
  31. package/cjs/animate/default-ticker.d.ts +2 -0
  32. package/cjs/animate/default-ticker.js +14 -0
  33. package/cjs/animate/default-ticker.js.map +1 -0
  34. package/cjs/animate/easing-func.d.ts +1 -0
  35. package/cjs/animate/easing-func.js +16 -0
  36. package/cjs/animate/easing-func.js.map +1 -0
  37. package/cjs/animate/easing.d.ts +49 -0
  38. package/cjs/animate/easing.js +141 -0
  39. package/cjs/animate/easing.js.map +1 -0
  40. package/cjs/animate/group-fade.d.ts +16 -0
  41. package/cjs/animate/group-fade.js +66 -0
  42. package/cjs/animate/group-fade.js.map +1 -0
  43. package/cjs/animate/index.d.ts +8 -0
  44. package/cjs/animate/index.js +24 -0
  45. package/cjs/animate/index.js.map +1 -0
  46. package/cjs/animate/morphing.d.ts +52 -0
  47. package/cjs/animate/morphing.js +292 -0
  48. package/cjs/animate/morphing.js.map +1 -0
  49. package/cjs/animate/timeline.d.ts +17 -0
  50. package/cjs/animate/timeline.js +46 -0
  51. package/cjs/animate/timeline.js.map +1 -0
  52. package/cjs/application.d.ts +1 -2
  53. package/cjs/application.js.map +1 -1
  54. package/cjs/canvas/constants.js +2 -1
  55. package/cjs/canvas/empty-context.d.ts +0 -1
  56. package/cjs/canvas/empty-context.js +0 -4
  57. package/cjs/canvas/empty-context.js.map +1 -1
  58. package/cjs/color-string/interpolate.d.ts +0 -1
  59. package/cjs/color-string/interpolate.js +4 -12
  60. package/cjs/color-string/interpolate.js.map +1 -1
  61. package/cjs/color-string/store.js +1 -2
  62. package/cjs/common/custom-path2d.js +2 -2
  63. package/cjs/common/custom-path2d.js.map +1 -1
  64. package/cjs/common/enums.d.ts +16 -0
  65. package/cjs/common/enums.js +11 -2
  66. package/cjs/common/enums.js.map +1 -1
  67. package/cjs/common/morphing-utils.js +124 -32
  68. package/cjs/common/morphing-utils.js.map +1 -1
  69. package/cjs/common/polygon.js +2 -5
  70. package/cjs/common/polygon.js.map +1 -1
  71. package/cjs/common/segment/curve/cubic-bezier.d.ts +2 -1
  72. package/cjs/common/segment/curve/cubic-bezier.js +8 -3
  73. package/cjs/common/segment/curve/cubic-bezier.js.map +1 -1
  74. package/cjs/common/segment/curve/quadratic-bezier.d.ts +0 -1
  75. package/cjs/common/segment/curve/quadratic-bezier.js +3 -10
  76. package/cjs/common/segment/curve/quadratic-bezier.js.map +1 -1
  77. package/cjs/common/segment/index.d.ts +0 -1
  78. package/cjs/common/segment/index.js +1 -1
  79. package/cjs/common/segment/index.js.map +1 -1
  80. package/cjs/common/shape/arc.d.ts +1 -1
  81. package/cjs/common/shape/arc.js +3 -7
  82. package/cjs/common/shape/arc.js.map +1 -1
  83. package/cjs/common/simplify.js +2 -1
  84. package/cjs/common/sort.js +1 -1
  85. package/cjs/common/split-path.js +2 -2
  86. package/cjs/common/split-path.js.map +1 -1
  87. package/cjs/common/store.js +1 -1
  88. package/cjs/common/text.js +1 -1
  89. package/cjs/common/utils.d.ts +2 -0
  90. package/cjs/common/utils.js +9 -5
  91. package/cjs/common/utils.js.map +1 -1
  92. package/cjs/core/application.js +1 -1
  93. package/cjs/core/camera.js +1 -1
  94. package/cjs/core/global.d.ts +0 -3
  95. package/cjs/core/global.js +3 -14
  96. package/cjs/core/global.js.map +1 -1
  97. package/cjs/core/stage.d.ts +3 -8
  98. package/cjs/core/stage.js +20 -34
  99. package/cjs/core/stage.js.map +1 -1
  100. package/cjs/graphic/arc.d.ts +2 -1
  101. package/cjs/graphic/arc.js +2 -3
  102. package/cjs/graphic/arc.js.map +1 -1
  103. package/cjs/graphic/area.d.ts +2 -1
  104. package/cjs/graphic/area.js +1 -4
  105. package/cjs/graphic/area.js.map +1 -1
  106. package/cjs/graphic/circle.d.ts +2 -1
  107. package/cjs/graphic/circle.js +2 -5
  108. package/cjs/graphic/circle.js.map +1 -1
  109. package/cjs/graphic/config.js +1 -2
  110. package/cjs/graphic/config.js.map +1 -1
  111. package/cjs/graphic/graphic-service/graphic-module.js +2 -1
  112. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  113. package/cjs/graphic/graphic-service/graphic-service.js +3 -2
  114. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  115. package/cjs/graphic/graphic.d.ts +12 -9
  116. package/cjs/graphic/graphic.js +105 -48
  117. package/cjs/graphic/graphic.js.map +1 -1
  118. package/cjs/graphic/group.js +8 -8
  119. package/cjs/graphic/group.js.map +1 -1
  120. package/cjs/graphic/line.d.ts +2 -1
  121. package/cjs/graphic/line.js +1 -5
  122. package/cjs/graphic/line.js.map +1 -1
  123. package/cjs/graphic/rect.js +2 -5
  124. package/cjs/graphic/rect.js.map +1 -1
  125. package/cjs/graphic/richtext/icon.d.ts +1 -1
  126. package/cjs/graphic/richtext/icon.js.map +1 -1
  127. package/cjs/graphic/richtext/paragraph.js +2 -2
  128. package/cjs/graphic/richtext/paragraph.js.map +1 -1
  129. package/cjs/graphic/star.d.ts +2 -1
  130. package/cjs/graphic/star.js +2 -4
  131. package/cjs/graphic/star.js.map +1 -1
  132. package/cjs/index.d.ts +3 -2
  133. package/cjs/index.js +16 -14
  134. package/cjs/index.js.map +1 -1
  135. package/cjs/interface/animate.d.ts +160 -1
  136. package/cjs/interface/animate.js +4 -1
  137. package/cjs/interface/animate.js.map +1 -1
  138. package/cjs/interface/context.d.ts +0 -1
  139. package/cjs/interface/context.js.map +1 -1
  140. package/cjs/interface/global.d.ts +0 -2
  141. package/cjs/interface/global.js.map +1 -1
  142. package/cjs/interface/graphic.d.ts +3 -11
  143. package/cjs/interface/graphic.js.map +1 -1
  144. package/cjs/interface/index.d.ts +1 -1
  145. package/cjs/interface/index.js +9 -9
  146. package/cjs/interface/index.js.map +1 -1
  147. package/cjs/interface/render.d.ts +0 -7
  148. package/cjs/interface/render.js.map +1 -1
  149. package/cjs/interface/stage.d.ts +1 -4
  150. package/cjs/interface/stage.js.map +1 -1
  151. package/cjs/modules.d.ts +1 -2
  152. package/cjs/modules.js +3 -4
  153. package/cjs/modules.js.map +1 -1
  154. package/cjs/plugins/builtin-plugin/auto-render-plugin.js +8 -9
  155. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  156. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js +11 -14
  157. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  158. package/cjs/plugins/builtin-plugin/edit-module.js +4 -4
  159. package/cjs/plugins/builtin-plugin/edit-module.js.map +1 -1
  160. package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +10 -13
  161. package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
  162. package/cjs/plugins/builtin-plugin/html-attribute-plugin.js +1 -0
  163. package/cjs/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
  164. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js +5 -8
  165. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  166. package/cjs/plugins/builtin-plugin/richtext-edit-plugin-old.d.ts +1 -0
  167. package/cjs/plugins/builtin-plugin/richtext-edit-plugin-old.js +3 -0
  168. package/cjs/plugins/builtin-plugin/richtext-edit-plugin-old.js.map +1 -0
  169. package/cjs/plugins/builtin-plugin/richtext-edit-plugin.d.ts +2 -2
  170. package/cjs/plugins/builtin-plugin/richtext-edit-plugin.js +5 -6
  171. package/cjs/plugins/builtin-plugin/richtext-edit-plugin.js.map +1 -1
  172. package/cjs/render/contributions/render/arc-render.d.ts +2 -4
  173. package/cjs/render/contributions/render/arc-render.js +17 -19
  174. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  175. package/cjs/render/contributions/render/area-render.js +2 -2
  176. package/cjs/render/contributions/render/area-render.js.map +1 -1
  177. package/cjs/render/contributions/render/base-render.d.ts +2 -2
  178. package/cjs/render/contributions/render/base-render.js +2 -2
  179. package/cjs/render/contributions/render/base-render.js.map +1 -1
  180. package/cjs/render/contributions/render/draw-contribution.d.ts +0 -1
  181. package/cjs/render/contributions/render/draw-contribution.js +19 -23
  182. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  183. package/cjs/render/contributions/render/draw-interceptor.js +1 -2
  184. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  185. package/cjs/render/contributions/render/group-render.d.ts +2 -2
  186. package/cjs/render/contributions/render/group-render.js +11 -15
  187. package/cjs/render/contributions/render/group-render.js.map +1 -1
  188. package/cjs/render/contributions/render/line-render.js +1 -1
  189. package/cjs/render/contributions/render/line-render.js.map +1 -1
  190. package/cjs/render/contributions/render/rect-render.d.ts +1 -3
  191. package/cjs/render/contributions/render/rect-render.js +15 -17
  192. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  193. package/cjs/render/contributions/render/symbol-render.d.ts +2 -4
  194. package/cjs/render/contributions/render/symbol-render.js +11 -16
  195. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  196. package/cjs/render/render-service.d.ts +1 -1
  197. package/cjs/render/render-service.js.map +1 -1
  198. package/dist/index.es.js +8868 -6022
  199. package/es/animate/Ticker/default-ticker.d.ts +40 -0
  200. package/es/animate/Ticker/default-ticker.js +138 -0
  201. package/es/animate/Ticker/default-ticker.js.map +1 -0
  202. package/es/animate/Ticker/index.d.ts +5 -0
  203. package/es/animate/Ticker/index.js +10 -0
  204. package/es/animate/Ticker/index.js.map +1 -0
  205. package/es/animate/Ticker/manual-ticker-handler.d.ts +15 -0
  206. package/es/animate/Ticker/manual-ticker-handler.js +28 -0
  207. package/es/animate/Ticker/manual-ticker-handler.js.map +1 -0
  208. package/es/animate/Ticker/manual-ticker.d.ts +19 -0
  209. package/es/animate/Ticker/manual-ticker.js +31 -0
  210. package/es/animate/Ticker/manual-ticker.js.map +1 -0
  211. package/es/animate/Ticker/raf-tick-handler.d.ts +9 -0
  212. package/es/animate/Ticker/raf-tick-handler.js +22 -0
  213. package/es/animate/Ticker/raf-tick-handler.js.map +1 -0
  214. package/es/animate/Ticker/timeout-tick-handler.d.ts +9 -0
  215. package/es/animate/Ticker/timeout-tick-handler.js +20 -0
  216. package/es/animate/Ticker/timeout-tick-handler.js.map +1 -0
  217. package/es/animate/Ticker/type.d.ts +6 -0
  218. package/es/{interface/animation/ticker.js → animate/Ticker/type.js} +1 -1
  219. package/es/animate/Ticker/type.js.map +1 -0
  220. package/es/animate/animate.d.ts +147 -0
  221. package/es/animate/animate.js +398 -0
  222. package/es/animate/animate.js.map +1 -0
  223. package/es/animate/config.d.ts +2 -1
  224. package/es/animate/config.js +5 -0
  225. package/es/animate/config.js.map +1 -1
  226. package/es/animate/custom-animate.d.ts +236 -0
  227. package/es/animate/custom-animate.js +703 -0
  228. package/es/animate/custom-animate.js.map +1 -0
  229. package/es/animate/default-ticker.d.ts +2 -0
  230. package/es/animate/default-ticker.js +12 -0
  231. package/es/animate/default-ticker.js.map +1 -0
  232. package/es/animate/easing-func.d.ts +1 -0
  233. package/es/animate/easing-func.js +10 -0
  234. package/es/animate/easing-func.js.map +1 -0
  235. package/es/animate/easing.d.ts +49 -0
  236. package/es/animate/easing.js +134 -0
  237. package/es/animate/easing.js.map +1 -0
  238. package/es/animate/group-fade.d.ts +16 -0
  239. package/es/animate/group-fade.js +56 -0
  240. package/es/animate/group-fade.js.map +1 -0
  241. package/es/animate/index.d.ts +8 -0
  242. package/es/animate/index.js +16 -0
  243. package/es/animate/index.js.map +1 -0
  244. package/es/animate/morphing.d.ts +52 -0
  245. package/es/animate/morphing.js +295 -0
  246. package/es/animate/morphing.js.map +1 -0
  247. package/es/animate/timeline.d.ts +17 -0
  248. package/es/animate/timeline.js +42 -0
  249. package/es/animate/timeline.js.map +1 -0
  250. package/es/application.d.ts +1 -2
  251. package/es/application.js.map +1 -1
  252. package/es/canvas/constants.js +2 -1
  253. package/es/canvas/empty-context.d.ts +0 -1
  254. package/es/canvas/empty-context.js +0 -4
  255. package/es/canvas/empty-context.js.map +1 -1
  256. package/es/color-string/interpolate.d.ts +0 -1
  257. package/es/color-string/interpolate.js +1 -8
  258. package/es/color-string/interpolate.js.map +1 -1
  259. package/es/color-string/store.js +1 -2
  260. package/es/common/custom-path2d.js +2 -2
  261. package/es/common/custom-path2d.js.map +1 -1
  262. package/es/common/enums.d.ts +16 -0
  263. package/es/common/enums.js +20 -0
  264. package/es/common/enums.js.map +1 -1
  265. package/es/common/morphing-utils.js +124 -29
  266. package/es/common/morphing-utils.js.map +1 -1
  267. package/es/common/polygon.js +3 -6
  268. package/es/common/polygon.js.map +1 -1
  269. package/es/common/segment/curve/cubic-bezier.d.ts +2 -1
  270. package/es/common/segment/curve/cubic-bezier.js +8 -1
  271. package/es/common/segment/curve/cubic-bezier.js.map +1 -1
  272. package/es/common/segment/curve/quadratic-bezier.d.ts +0 -1
  273. package/es/common/segment/curve/quadratic-bezier.js +2 -5
  274. package/es/common/segment/curve/quadratic-bezier.js.map +1 -1
  275. package/es/common/segment/index.d.ts +0 -1
  276. package/es/common/segment/index.js +0 -2
  277. package/es/common/segment/index.js.map +1 -1
  278. package/es/common/shape/arc.d.ts +1 -1
  279. package/es/common/shape/arc.js +3 -7
  280. package/es/common/shape/arc.js.map +1 -1
  281. package/es/common/simplify.js +2 -1
  282. package/es/common/sort.js +1 -1
  283. package/es/common/split-path.js +2 -2
  284. package/es/common/split-path.js.map +1 -1
  285. package/es/common/store.js +1 -1
  286. package/es/common/text.js +1 -1
  287. package/es/common/utils.d.ts +2 -0
  288. package/es/common/utils.js +5 -1
  289. package/es/common/utils.js.map +1 -1
  290. package/es/core/application.js +1 -1
  291. package/es/core/camera.js +1 -1
  292. package/es/core/global.d.ts +0 -3
  293. package/es/core/global.js +2 -15
  294. package/es/core/global.js.map +1 -1
  295. package/es/core/stage.d.ts +3 -8
  296. package/es/core/stage.js +22 -35
  297. package/es/core/stage.js.map +1 -1
  298. package/es/graphic/arc.d.ts +2 -1
  299. package/es/graphic/arc.js +2 -3
  300. package/es/graphic/arc.js.map +1 -1
  301. package/es/graphic/area.d.ts +2 -1
  302. package/es/graphic/area.js +1 -4
  303. package/es/graphic/area.js.map +1 -1
  304. package/es/graphic/circle.d.ts +2 -1
  305. package/es/graphic/circle.js +2 -4
  306. package/es/graphic/circle.js.map +1 -1
  307. package/es/graphic/config.js +1 -2
  308. package/es/graphic/config.js.map +1 -1
  309. package/es/graphic/graphic-service/graphic-module.js +1 -1
  310. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  311. package/es/graphic/graphic-service/graphic-service.js +4 -1
  312. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  313. package/es/graphic/graphic.d.ts +12 -9
  314. package/es/graphic/graphic.js +109 -52
  315. package/es/graphic/graphic.js.map +1 -1
  316. package/es/graphic/group.js +7 -7
  317. package/es/graphic/group.js.map +1 -1
  318. package/es/graphic/line.d.ts +2 -1
  319. package/es/graphic/line.js +1 -5
  320. package/es/graphic/line.js.map +1 -1
  321. package/es/graphic/rect.js +2 -5
  322. package/es/graphic/rect.js.map +1 -1
  323. package/es/graphic/richtext/icon.d.ts +1 -1
  324. package/es/graphic/richtext/icon.js.map +1 -1
  325. package/es/graphic/richtext/paragraph.js +2 -2
  326. package/es/graphic/richtext/paragraph.js.map +1 -1
  327. package/es/graphic/star.d.ts +2 -1
  328. package/es/graphic/star.js +2 -4
  329. package/es/graphic/star.js.map +1 -1
  330. package/es/index.d.ts +3 -2
  331. package/es/index.js +6 -4
  332. package/es/index.js.map +1 -1
  333. package/es/interface/animate.d.ts +160 -1
  334. package/es/interface/animate.js +1 -2
  335. package/es/interface/animate.js.map +1 -1
  336. package/es/interface/context.d.ts +0 -1
  337. package/es/interface/context.js.map +1 -1
  338. package/es/interface/global.d.ts +0 -2
  339. package/es/interface/global.js.map +1 -1
  340. package/es/interface/graphic.d.ts +3 -11
  341. package/es/interface/graphic.js.map +1 -1
  342. package/es/interface/index.d.ts +1 -1
  343. package/es/interface/index.js +2 -2
  344. package/es/interface/index.js.map +1 -1
  345. package/es/interface/render.d.ts +0 -7
  346. package/es/interface/render.js.map +1 -1
  347. package/es/interface/stage.d.ts +1 -4
  348. package/es/interface/stage.js.map +1 -1
  349. package/es/modules.d.ts +1 -2
  350. package/es/modules.js +0 -6
  351. package/es/modules.js.map +1 -1
  352. package/es/plugins/builtin-plugin/auto-render-plugin.js +8 -8
  353. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  354. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js +12 -13
  355. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  356. package/es/plugins/builtin-plugin/edit-module.js +4 -4
  357. package/es/plugins/builtin-plugin/edit-module.js.map +1 -1
  358. package/es/plugins/builtin-plugin/flex-layout-plugin.js +11 -12
  359. package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
  360. package/es/plugins/builtin-plugin/html-attribute-plugin.js +1 -0
  361. package/es/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
  362. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js +5 -8
  363. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  364. package/es/plugins/builtin-plugin/richtext-edit-plugin-old.d.ts +1 -0
  365. package/es/plugins/builtin-plugin/richtext-edit-plugin-old.js +3 -0
  366. package/es/plugins/builtin-plugin/richtext-edit-plugin-old.js.map +1 -0
  367. package/es/plugins/builtin-plugin/richtext-edit-plugin.d.ts +2 -2
  368. package/es/plugins/builtin-plugin/richtext-edit-plugin.js +5 -4
  369. package/es/plugins/builtin-plugin/richtext-edit-plugin.js.map +1 -1
  370. package/es/render/contributions/render/arc-render.d.ts +2 -4
  371. package/es/render/contributions/render/arc-render.js +17 -19
  372. package/es/render/contributions/render/arc-render.js.map +1 -1
  373. package/es/render/contributions/render/area-render.js +2 -2
  374. package/es/render/contributions/render/area-render.js.map +1 -1
  375. package/es/render/contributions/render/base-render.d.ts +2 -2
  376. package/es/render/contributions/render/base-render.js +2 -2
  377. package/es/render/contributions/render/base-render.js.map +1 -1
  378. package/es/render/contributions/render/draw-contribution.d.ts +0 -1
  379. package/es/render/contributions/render/draw-contribution.js +19 -23
  380. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  381. package/es/render/contributions/render/draw-interceptor.js +1 -2
  382. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  383. package/es/render/contributions/render/group-render.d.ts +2 -2
  384. package/es/render/contributions/render/group-render.js +11 -15
  385. package/es/render/contributions/render/group-render.js.map +1 -1
  386. package/es/render/contributions/render/line-render.js +1 -1
  387. package/es/render/contributions/render/line-render.js.map +1 -1
  388. package/es/render/contributions/render/rect-render.d.ts +1 -3
  389. package/es/render/contributions/render/rect-render.js +14 -17
  390. package/es/render/contributions/render/rect-render.js.map +1 -1
  391. package/es/render/contributions/render/symbol-render.d.ts +2 -4
  392. package/es/render/contributions/render/symbol-render.js +11 -16
  393. package/es/render/contributions/render/symbol-render.js.map +1 -1
  394. package/es/render/render-service.d.ts +1 -1
  395. package/es/render/render-service.js.map +1 -1
  396. package/package.json +4 -4
  397. package/cjs/common/diff.d.ts +0 -1
  398. package/cjs/common/diff.js +0 -19
  399. package/cjs/common/diff.js.map +0 -1
  400. package/cjs/common/performance-raf.d.ts +0 -8
  401. package/cjs/common/performance-raf.js +0 -32
  402. package/cjs/common/performance-raf.js.map +0 -1
  403. package/cjs/interface/animation/animate.d.ts +0 -117
  404. package/cjs/interface/animation/animate.js +0 -10
  405. package/cjs/interface/animation/animate.js.map +0 -1
  406. package/cjs/interface/animation/easing.d.ts +0 -3
  407. package/cjs/interface/animation/easing.js +0 -6
  408. package/cjs/interface/animation/easing.js.map +0 -1
  409. package/cjs/interface/animation/index.d.ts +0 -5
  410. package/cjs/interface/animation/index.js.map +0 -1
  411. package/cjs/interface/animation/ticker.d.ts +0 -39
  412. package/cjs/interface/animation/ticker.js.map +0 -1
  413. package/cjs/interface/animation/timeline.d.ts +0 -17
  414. package/cjs/interface/animation/timeline.js +0 -6
  415. package/cjs/interface/animation/timeline.js.map +0 -1
  416. package/cjs/interface/animation/type.d.ts +0 -13
  417. package/cjs/interface/animation/type.js +0 -15
  418. package/cjs/interface/animation/type.js.map +0 -1
  419. package/es/common/diff.d.ts +0 -1
  420. package/es/common/diff.js +0 -11
  421. package/es/common/diff.js.map +0 -1
  422. package/es/common/performance-raf.d.ts +0 -8
  423. package/es/common/performance-raf.js +0 -24
  424. package/es/common/performance-raf.js.map +0 -1
  425. package/es/interface/animation/animate.d.ts +0 -117
  426. package/es/interface/animation/animate.js +0 -6
  427. package/es/interface/animation/animate.js.map +0 -1
  428. package/es/interface/animation/easing.d.ts +0 -3
  429. package/es/interface/animation/easing.js +0 -2
  430. package/es/interface/animation/easing.js.map +0 -1
  431. package/es/interface/animation/index.d.ts +0 -5
  432. package/es/interface/animation/index.js +0 -10
  433. package/es/interface/animation/index.js.map +0 -1
  434. package/es/interface/animation/ticker.d.ts +0 -39
  435. package/es/interface/animation/ticker.js.map +0 -1
  436. package/es/interface/animation/timeline.d.ts +0 -17
  437. package/es/interface/animation/timeline.js +0 -2
  438. package/es/interface/animation/timeline.js.map +0 -1
  439. package/es/interface/animation/type.d.ts +0 -13
  440. package/es/interface/animation/type.js +0 -14
  441. package/es/interface/animation/type.js.map +0 -1
@@ -1,9 +1,10 @@
1
1
  import type { ICustomPath2D } from './../interface/path';
2
2
  import type { Dict, IPointLike, IAABBBounds, IOBBBounds } from '@visactor/vutils';
3
3
  import { Matrix, Point } from '@visactor/vutils';
4
- import type { GraphicType, IAnimateConfig, IGraphicAttribute, IGraphic, IGraphicJson, ISetAttributeContext, ITransform, GraphicReleaseStatus } from '../interface/graphic';
4
+ import type { GraphicType, IAnimateConfig, IGraphicAttribute, IGraphic, IGraphicAnimateParams, IGraphicJson, ISetAttributeContext, ITransform, GraphicReleaseStatus } from '../interface/graphic';
5
5
  import { Node } from './node-tree';
6
- import type { IAnimate, IAnimateTarget, IGlyphGraphicAttribute, ILayer, IPickerService, IShadowRoot, IStage, IStep, ISymbolClass } from '../interface';
6
+ import type { IAnimate, IAnimateTarget, IGlyphGraphicAttribute, ILayer, IPickerService, IShadowRoot, IStage, IStep, ISubAnimate, ISymbolClass } from '../interface';
7
+ import { Animate } from '../animate';
7
8
  import { IContainPointMode } from '../common/enums';
8
9
  import { CustomSymbolClass } from './builtin-symbol';
9
10
  export declare const PURE_STYLE_KEY: string[];
@@ -41,7 +42,6 @@ export declare const NOWORK_ANIMATE_ATTR: {
41
42
  export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>> extends Node implements IGraphic<T>, IAnimateTarget {
42
43
  static mixin(source: Dict<any>): void;
43
44
  _events?: any;
44
- context?: Record<string, any>;
45
45
  static userSymbolMap: Record<string, ISymbolClass>;
46
46
  onBeforeAttributeUpdate?: (val: any, attributes: Partial<T>, key: null | string | string[], context?: ISetAttributeContext) => T | undefined;
47
47
  parent: any;
@@ -86,20 +86,20 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
86
86
  normalAttrs?: Partial<T>;
87
87
  stateProxy?: (stateName: string, targetStates?: string[]) => T;
88
88
  animates: Map<string | number, IAnimate>;
89
- animate?: () => IAnimate;
89
+ nextAttrs?: T;
90
+ prevAttrs?: T;
91
+ finalAttrs?: T;
90
92
  pathProxy?: ICustomPath2D;
91
93
  attachedThemeGraphic?: IGraphic;
92
94
  protected updateAABBBoundsStamp: number;
93
95
  protected updateOBBBoundsStamp?: number;
94
96
  clipPathMap?: Map<string, ISymbolClass>;
95
97
  constructor(params?: T);
96
- getGraphicService(): import("../interface").IGraphicService;
97
- getAttributes(): T;
98
98
  setMode(mode: '2d' | '3d'): void;
99
99
  set3dMode(): void;
100
100
  set2dMode(): void;
101
101
  getOffsetXY(attr?: ITransform, includeScroll?: boolean): Point;
102
- onAnimateBind(animate: IAnimate): void;
102
+ onAnimateBind(animate: IAnimate | ISubAnimate): void;
103
103
  protected tryUpdateAABBBounds(): IAABBBounds;
104
104
  protected tryUpdateOBBBounds(): IOBBBounds;
105
105
  protected combindShadowAABBBounds(bounds: IAABBBounds): void;
@@ -123,7 +123,6 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
123
123
  clearUpdateShapeTag(): void;
124
124
  containsPoint(x: number, y: number, mode: IContainPointMode, picker?: IPickerService): boolean;
125
125
  protected setWidthHeightWithoutTransform(aabbBounds: IAABBBounds): void;
126
- setAttributesAndPreventAnimate(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
127
126
  setAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
128
127
  _setAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
129
128
  setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
@@ -137,6 +136,7 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
137
136
  rotate(angle: number, rotateCenter?: IPointLike): this;
138
137
  rotateTo(angle: number): this;
139
138
  skewTo(b: number, c: number): this;
139
+ animate(params?: IGraphicAnimateParams): Animate;
140
140
  onAttributeUpdate(context?: ISetAttributeContext): void;
141
141
  update(d?: {
142
142
  bounds: boolean;
@@ -174,6 +174,10 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
174
174
  setStageToShadowRoot(stage?: IStage, layer?: ILayer): void;
175
175
  onAddStep(step: IStep): void;
176
176
  onStop(props?: Partial<T>): void;
177
+ onStep(subAnimate: ISubAnimate, animate: IAnimate, step: IStep, ratio: number, end: boolean): void;
178
+ stepInterpolate(subAnimate: ISubAnimate, animate: IAnimate, nextAttributes: Record<string, any>, step: IStep, ratio: number, end: boolean, nextProps: Record<string, any>, lastProps?: Record<string, any>, nextParsedProps?: any, propKeys?: string[]): void;
179
+ defaultInterpolate(nextStepVal: any, lastStepVal: any, key: string, nextAttributes: Record<string, any>, nextParsedProps: any, ratio: number): boolean;
180
+ protected _interpolate(key: string, ratio: number, lastStepVal: any, nextStepVal: any, nextAttributes: any): void;
177
181
  getDefaultAttribute(name: string): any;
178
182
  getComputedAttribute(name: string): any;
179
183
  onSetStage(cb: (g: IGraphic, stage: IStage) => void, immediate?: boolean): void;
@@ -191,5 +195,4 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
191
195
  protected _emitCustomEvent(type: string, context?: any): void;
192
196
  abstract getNoWorkAnimateAttr(): Record<string, number>;
193
197
  abstract clone(): IGraphic<any>;
194
- toCustomPath(): ICustomPath2D;
195
198
  }
@@ -1,6 +1,6 @@
1
1
  import { isArray, max, OBBBounds } from "@visactor/vutils";
2
2
 
3
- import { AABBBounds, Matrix, normalTransform, Point, isNil, isString, isValidUrl, isBase64, isObject } from "@visactor/vutils";
3
+ import { AABBBounds, Matrix, normalTransform, Point, isNil, has, isString, isValidUrl, isBase64, isObject } from "@visactor/vutils";
4
4
 
5
5
  import { Node } from "./node-tree";
6
6
 
@@ -10,6 +10,10 @@ import { DefaultTransform } from "./config";
10
10
 
11
11
  import { application } from "../application";
12
12
 
13
+ import { Animate, DefaultStateAnimateConfig, defaultTimeline } from "../animate";
14
+
15
+ import { interpolateColor } from "../color-string/interpolate";
16
+
13
17
  import { CustomPath2D } from "../common/custom-path2d";
14
18
 
15
19
  import { ResourceLoader } from "../resource-loader/loader";
@@ -28,10 +32,6 @@ import { isSvg, XMLParser } from "../common/xml";
28
32
 
29
33
  import { SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS } from "./constants";
30
34
 
31
- import { DefaultStateAnimateConfig } from "../animate/config";
32
-
33
- import { EmptyContext2d } from "../canvas";
34
-
35
35
  const _tempBounds = new AABBBounds, tempMatrix = new Matrix, tempBounds = new AABBBounds;
36
36
 
37
37
  export const PURE_STYLE_KEY = [ "stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity" ];
@@ -99,13 +99,6 @@ export class Graphic extends Node {
99
99
  super(), this._AABBBounds = new AABBBounds, this._updateTag = UpdateTag.INIT, this.attribute = params,
100
100
  this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background ? this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
101
101
  }
102
- getGraphicService() {
103
- var _a, _b;
104
- return null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application.graphicService;
105
- }
106
- getAttributes() {
107
- return this.attribute;
108
- }
109
102
  setMode(mode) {
110
103
  "3d" === mode ? this.set3dMode() : this.set2dMode();
111
104
  }
@@ -131,9 +124,9 @@ export class Graphic extends Node {
131
124
  const full = "imprecise" === this.attribute.boundsMode;
132
125
  if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
133
126
  if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
134
- this.getGraphicService().beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
127
+ application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
135
128
  const bounds = this.doUpdateAABBBounds(full);
136
- return this.getGraphicService().afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0),
129
+ return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0),
137
130
  "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
138
131
  }
139
132
  tryUpdateOBBBounds() {
@@ -229,7 +222,7 @@ export class Graphic extends Node {
229
222
  clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
230
223
  }
231
224
  shouldUpdateAABBBounds() {
232
- return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && this.getGraphicService().validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && this.getGraphicService().validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
225
+ return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
233
226
  }
234
227
  shouldSelfChangeUpdateAABBBounds() {
235
228
  return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
@@ -266,13 +259,6 @@ export class Graphic extends Node {
266
259
  setWidthHeightWithoutTransform(aabbBounds) {
267
260
  this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
268
261
  }
269
- setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context) {
270
- this.setAttributes(params, forceUpdateTag, context), this.animates && this.animates.forEach((animate => {
271
- Object.keys(params).forEach((key => {
272
- animate.preventAttr(key);
273
- }));
274
- }));
275
- }
276
262
  setAttributes(params, forceUpdateTag = !1, context) {
277
263
  (params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic),
278
264
  this._setAttributes(params, forceUpdateTag, context);
@@ -411,8 +397,22 @@ export class Graphic extends Node {
411
397
  skewTo(b, c) {
412
398
  return this;
413
399
  }
400
+ animate(params) {
401
+ var _a;
402
+ this.animates || (this.animates = new Map);
403
+ const animate = new Animate(null == params ? void 0 : params.id, null !== (_a = null == params ? void 0 : params.timeline) && void 0 !== _a ? _a : this.stage && this.stage.getTimeline(), null == params ? void 0 : params.slience);
404
+ if (animate.bind(this), params) {
405
+ const {onStart: onStart, onFrame: onFrame, onEnd: onEnd, onRemove: onRemove} = params;
406
+ null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame),
407
+ null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove),
408
+ animate.interpolateFunc = params.interpolate;
409
+ }
410
+ return this.animates.set(animate.id, animate), animate.onRemove((() => {
411
+ animate.stop(), this.animates.delete(animate.id);
412
+ })), animate;
413
+ }
414
414
  onAttributeUpdate(context) {
415
- context && context.skipUpdateCallback || (this.getGraphicService().onAttributeUpdate(this),
415
+ context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this),
416
416
  this._emitCustomEvent("afterAttributeUpdate", context));
417
417
  }
418
418
  update(d) {
@@ -427,29 +427,21 @@ export class Graphic extends Node {
427
427
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
428
428
  }
429
429
  applyStateAttrs(attrs, stateNames, hasAnimation, isClear) {
430
- var _a, _b;
430
+ var _a, _b, _c, _d;
431
431
  if (hasAnimation) {
432
432
  const keys = Object.keys(attrs), noWorkAttrs = this.getNoWorkAnimateAttr(), animateAttrs = {};
433
433
  let noAnimateAttrs;
434
434
  keys.forEach((key => {
435
435
  noWorkAttrs[key] ? (noAnimateAttrs || (noAnimateAttrs = {}), noAnimateAttrs[key] = attrs[key]) : animateAttrs[key] = isClear && void 0 === attrs[key] ? this.getDefaultAttribute(key) : attrs[key];
436
436
  }));
437
- const stateAnimateConfig = null !== (_b = null !== (_a = this.context && this.context.stateAnimateConfig) && void 0 !== _a ? _a : this.stateAnimateConfig) && void 0 !== _b ? _b : DefaultStateAnimateConfig;
438
- this.applyAnimationState([ "state" ], [ {
439
- name: "state",
440
- animation: {
441
- type: "state",
442
- to: animateAttrs,
443
- duration: stateAnimateConfig.duration,
444
- easing: stateAnimateConfig.easing
445
- }
446
- } ]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
437
+ const animate = this.animate({
438
+ slience: !0
439
+ });
440
+ animate.stateNames = stateNames, animate.to(animateAttrs, null !== (_b = null === (_a = this.stateAnimateConfig) || void 0 === _a ? void 0 : _a.duration) && void 0 !== _b ? _b : DefaultStateAnimateConfig.duration, null !== (_d = null === (_c = this.stateAnimateConfig) || void 0 === _c ? void 0 : _c.easing) && void 0 !== _d ? _d : DefaultStateAnimateConfig.easing),
441
+ noAnimateAttrs && this.setAttributes(noAnimateAttrs, !1, {
447
442
  type: AttributeUpdateType.STATE
448
443
  });
449
- } else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
450
- type: AttributeUpdateType.STATE
451
- });
452
- this._emitCustomEvent("afterStateUpdate", {
444
+ } else this.stopStateAnimates(), this.setAttributes(attrs, !1, {
453
445
  type: AttributeUpdateType.STATE
454
446
  });
455
447
  }
@@ -469,9 +461,13 @@ export class Graphic extends Node {
469
461
  }));
470
462
  }
471
463
  getNormalAttribute(key) {
472
- var _a, _b;
473
- const value = this.attribute[key];
474
- return this.animates ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
464
+ let value = this.attribute[key];
465
+ return this.animates && this.animates.forEach((animate => {
466
+ if (animate.stateNames) {
467
+ const endProps = animate.getEndProps();
468
+ has(endProps, key) && (value = endProps[key]);
469
+ }
470
+ })), value;
475
471
  }
476
472
  clearStates(hasAnimation) {
477
473
  this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [],
@@ -594,10 +590,10 @@ export class Graphic extends Node {
594
590
  this.animates && this.animates.size) {
595
591
  const timeline = stage.getTimeline();
596
592
  this.animates.forEach((a => {
597
- a.timeline.isGlobal && (a.setTimeline(timeline), timeline.addAnimate(a));
593
+ a.timeline === defaultTimeline && a.setTimeline(timeline);
598
594
  }));
599
595
  }
600
- this._onSetStage && this._onSetStage(this, stage, layer), this.getGraphicService().onSetStage(this, stage);
596
+ this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
601
597
  }
602
598
  }
603
599
  setStageToShadowRoot(stage, layer) {
@@ -609,6 +605,76 @@ export class Graphic extends Node {
609
605
  type: AttributeUpdateType.ANIMATE_END
610
606
  });
611
607
  }
608
+ onStep(subAnimate, animate, step, ratio, end) {
609
+ const nextAttributes = {};
610
+ if (step.customAnimate) step.customAnimate.update(end, ratio, nextAttributes); else {
611
+ const nextProps = step.props, nextParsedProps = step.parsedProps, propKeys = step.propKeys;
612
+ this.stepInterpolate(subAnimate, animate, nextAttributes, step, ratio, end, nextProps, void 0, nextParsedProps, propKeys);
613
+ }
614
+ this.setAttributes(nextAttributes, !1, {
615
+ type: AttributeUpdateType.ANIMATE_UPDATE,
616
+ animationState: {
617
+ ratio: ratio,
618
+ end: end,
619
+ step: step,
620
+ isFirstFrameOfStep: subAnimate.getLastStep() !== step
621
+ }
622
+ }), this.stage && this.stage.renderNextFrame();
623
+ }
624
+ stepInterpolate(subAnimate, animate, nextAttributes, step, ratio, end, nextProps, lastProps, nextParsedProps, propKeys) {
625
+ propKeys || (propKeys = Object.keys(nextProps), step.propKeys = propKeys), end ? step.propKeys.forEach((key => {
626
+ animate.validAttr(key) && (nextAttributes[key] = nextProps[key]);
627
+ })) : propKeys.forEach((key => {
628
+ var _a;
629
+ if (!animate.validAttr(key)) return;
630
+ const nextStepVal = nextProps[key], lastStepVal = null !== (_a = lastProps && lastProps[key]) && void 0 !== _a ? _a : subAnimate.getLastPropByName(key, step);
631
+ if (null == nextStepVal || null == lastStepVal || nextStepVal === lastStepVal) return void (nextAttributes[key] = nextStepVal);
632
+ let match;
633
+ match = animate.interpolateFunc && animate.interpolateFunc(key, ratio, lastStepVal, nextStepVal, nextAttributes),
634
+ match || (match = animate.customInterpolate(key, ratio, lastStepVal, nextStepVal, this, nextAttributes),
635
+ match || this.defaultInterpolate(nextStepVal, lastStepVal, key, nextAttributes, nextParsedProps, ratio) || this._interpolate(key, ratio, lastStepVal, nextStepVal, nextAttributes));
636
+ })), step.parsedProps = nextParsedProps;
637
+ }
638
+ defaultInterpolate(nextStepVal, lastStepVal, key, nextAttributes, nextParsedProps, ratio) {
639
+ if (Number.isFinite(nextStepVal) && Number.isFinite(lastStepVal)) return nextAttributes[key] = lastStepVal + (nextStepVal - lastStepVal) * ratio,
640
+ !0;
641
+ if ("fill" === key) {
642
+ nextParsedProps || (nextParsedProps = {});
643
+ const fillColorArray = nextParsedProps.fillColorArray, color = interpolateColor(lastStepVal, null != fillColorArray ? fillColorArray : nextStepVal, ratio, !1, ((fArray, tArray) => {
644
+ nextParsedProps.fillColorArray = tArray;
645
+ }));
646
+ return color && (nextAttributes[key] = color), !0;
647
+ }
648
+ if ("stroke" === key) {
649
+ nextParsedProps || (nextParsedProps = {});
650
+ const strokeColorArray = nextParsedProps.strokeColorArray, color = interpolateColor(lastStepVal, null != strokeColorArray ? strokeColorArray : nextStepVal, ratio, !1, ((fArray, tArray) => {
651
+ nextParsedProps.strokeColorArray = tArray;
652
+ }));
653
+ return color && (nextAttributes[key] = color), !0;
654
+ }
655
+ if ("shadowColor" === key) {
656
+ nextParsedProps || (nextParsedProps = {});
657
+ const shadowColorArray = nextParsedProps.shadowColorArray, color = interpolateColor(lastStepVal, null != shadowColorArray ? shadowColorArray : nextStepVal, ratio, !0, ((fArray, tArray) => {
658
+ nextParsedProps.shadowColorArray = tArray;
659
+ }));
660
+ return color && (nextAttributes[key] = color), !0;
661
+ }
662
+ if (Array.isArray(nextStepVal) && nextStepVal.length === lastStepVal.length) {
663
+ const nextList = [];
664
+ let valid = !0;
665
+ for (let i = 0; i < nextStepVal.length; i++) {
666
+ const v = lastStepVal[i], val = v + (nextStepVal[i] - v) * ratio;
667
+ if (!Number.isFinite(val)) {
668
+ valid = !1;
669
+ break;
670
+ }
671
+ nextList.push(val);
672
+ }
673
+ valid && (nextAttributes[key] = nextList);
674
+ }
675
+ return !1;
676
+ }
677
+ _interpolate(key, ratio, lastStepVal, nextStepVal, nextAttributes) {}
612
678
  getDefaultAttribute(name) {
613
679
  return this.getGraphicTheme()[name];
614
680
  }
@@ -690,15 +756,6 @@ export class Graphic extends Node {
690
756
  this.dispatchEvent(changeEvent);
691
757
  }
692
758
  }
693
- toCustomPath() {
694
- var _a, _b, _c;
695
- const renderer = null === (_c = null === (_b = (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.renderService) || application.renderService) || void 0 === _b ? void 0 : _b.drawContribution) || void 0 === _c ? void 0 : _c.getRenderContribution(this);
696
- if (renderer) {
697
- const context = new EmptyContext2d(null, 1);
698
- return renderer.drawShape(this, context, 0, 0, {}, {}), context.path;
699
- }
700
- return null;
701
- }
702
759
  }
703
760
 
704
761
  function backgroundNotImage(image) {