@visactor/vrender-core 1.0.47-alpha.0 → 1.1.0-alpha.1

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 (1271) hide show
  1. package/cjs/application.d.ts +14 -5
  2. package/cjs/application.js +1 -8
  3. package/cjs/application.js.map +1 -1
  4. package/cjs/canvas/empty-context.js +4 -14
  5. package/cjs/canvas/empty-context.js.map +1 -1
  6. package/cjs/canvas/util.d.ts +2 -3
  7. package/cjs/canvas/util.js +17 -3
  8. package/cjs/canvas/util.js.map +1 -1
  9. package/cjs/color-string/index.js +2 -1
  10. package/cjs/common/contribution-provider.d.ts +16 -9
  11. package/cjs/common/contribution-provider.js +9 -4
  12. package/cjs/common/contribution-provider.js.map +1 -1
  13. package/cjs/common/diff.js +1 -2
  14. package/cjs/common/enums.d.ts +2 -0
  15. package/cjs/common/enums.js +1 -0
  16. package/cjs/common/enums.js.map +1 -1
  17. package/cjs/common/event-transformer.js +43 -6
  18. package/cjs/common/event-transformer.js.map +1 -1
  19. package/cjs/common/explicit-binding.d.ts +5 -0
  20. package/cjs/common/explicit-binding.js +16 -0
  21. package/cjs/common/explicit-binding.js.map +1 -0
  22. package/cjs/common/performance-raf.d.ts +1 -0
  23. package/cjs/common/performance-raf.js +5 -0
  24. package/cjs/common/performance-raf.js.map +1 -1
  25. package/cjs/common/render-area.js +1 -1
  26. package/cjs/common/render-command-list.js +1 -1
  27. package/cjs/common/render-curve.js +1 -1
  28. package/cjs/common/render-utils.js +1 -1
  29. package/cjs/common/seg-context.js +1 -2
  30. package/cjs/common/simplify.js +1 -1
  31. package/cjs/common/sort.js +1 -1
  32. package/cjs/common/split-path.js +1 -1
  33. package/cjs/common/store.js +1 -1
  34. package/cjs/common/text.js +1 -1
  35. package/cjs/common/utils.js +1 -1
  36. package/cjs/core/application.js +1 -1
  37. package/cjs/core/camera.js +1 -1
  38. package/cjs/core/constants.js +1 -1
  39. package/cjs/core/contributions/env/base-contribution.js +4 -9
  40. package/cjs/core/contributions/env/base-contribution.js.map +1 -1
  41. package/cjs/core/contributions/env/modules.d.ts +4 -3
  42. package/cjs/core/contributions/env/modules.js +6 -4
  43. package/cjs/core/contributions/env/modules.js.map +1 -1
  44. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +3 -12
  45. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  46. package/cjs/core/contributions/layerHandler/empty-contribution.js +3 -12
  47. package/cjs/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  48. package/cjs/core/contributions/layerHandler/modules.d.ts +4 -3
  49. package/cjs/core/contributions/layerHandler/modules.js +6 -4
  50. package/cjs/core/contributions/layerHandler/modules.js.map +1 -1
  51. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +3 -12
  52. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  53. package/cjs/core/contributions/modules.d.ts +2 -2
  54. package/cjs/core/contributions/modules.js +7 -1
  55. package/cjs/core/contributions/modules.js.map +1 -1
  56. package/cjs/core/contributions/textMeasure/AtextMeasure.js +3 -10
  57. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  58. package/cjs/core/contributions/textMeasure/modules.d.ts +4 -3
  59. package/cjs/core/contributions/textMeasure/modules.js +6 -4
  60. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  61. package/cjs/core/contributions/textMeasure/textMeasure-contribution.js +3 -10
  62. package/cjs/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  63. package/cjs/core/contributions/window/base-contribution.js +3 -12
  64. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  65. package/cjs/core/core-modules.d.ts +4 -3
  66. package/cjs/core/core-modules.js +11 -7
  67. package/cjs/core/core-modules.js.map +1 -1
  68. package/cjs/core/global-module.js +2 -0
  69. package/cjs/core/global-module.js.map +1 -1
  70. package/cjs/core/global.d.ts +2 -0
  71. package/cjs/core/global.js +9 -18
  72. package/cjs/core/global.js.map +1 -1
  73. package/cjs/core/graphic-utils.d.ts +1 -2
  74. package/cjs/core/graphic-utils.js +8 -23
  75. package/cjs/core/graphic-utils.js.map +1 -1
  76. package/cjs/core/index.js +1 -1
  77. package/cjs/core/layer-service.d.ts +7 -2
  78. package/cjs/core/layer-service.js +29 -27
  79. package/cjs/core/layer-service.js.map +1 -1
  80. package/cjs/core/layer.js +1 -1
  81. package/cjs/core/layer.js.map +1 -1
  82. package/cjs/core/light.js +1 -1
  83. package/cjs/core/stage.d.ts +19 -7
  84. package/cjs/core/stage.js +50 -39
  85. package/cjs/core/stage.js.map +1 -1
  86. package/cjs/core/window.d.ts +7 -5
  87. package/cjs/core/window.js +14 -18
  88. package/cjs/core/window.js.map +1 -1
  89. package/cjs/create.d.ts +1 -2
  90. package/cjs/create.js +2 -2
  91. package/cjs/create.js.map +1 -1
  92. package/cjs/entries/app-context.d.ts +30 -0
  93. package/cjs/entries/app-context.js +84 -0
  94. package/cjs/entries/app-context.js.map +1 -0
  95. package/cjs/entries/browser.d.ts +25 -0
  96. package/cjs/entries/browser.js +44 -0
  97. package/cjs/entries/browser.js.map +1 -0
  98. package/cjs/entries/index.d.ts +7 -0
  99. package/cjs/entries/index.js +32 -0
  100. package/cjs/entries/index.js.map +1 -0
  101. package/cjs/entries/miniapp.d.ts +6 -0
  102. package/cjs/entries/miniapp.js +20 -0
  103. package/cjs/entries/miniapp.js.map +1 -0
  104. package/cjs/entries/node.d.ts +6 -0
  105. package/cjs/entries/node.js +20 -0
  106. package/cjs/entries/node.js.map +1 -0
  107. package/cjs/entries/runtime-installer.d.ts +11 -0
  108. package/cjs/entries/runtime-installer.js +111 -0
  109. package/cjs/entries/runtime-installer.js.map +1 -0
  110. package/cjs/entries/types.d.ts +29 -0
  111. package/cjs/{common/inversify-lite/interfaces/interfaces.js → entries/types.js} +1 -1
  112. package/cjs/entries/types.js.map +1 -0
  113. package/cjs/event/util.d.ts +1 -1
  114. package/cjs/factory/graphic-factory.d.ts +7 -0
  115. package/cjs/factory/graphic-factory.js +23 -0
  116. package/cjs/factory/graphic-factory.js.map +1 -0
  117. package/cjs/factory/index.d.ts +4 -0
  118. package/cjs/{common/inversify-lite → factory}/index.js +2 -1
  119. package/cjs/factory/index.js.map +1 -0
  120. package/cjs/factory/layer-factory.d.ts +7 -0
  121. package/cjs/factory/layer-factory.js +19 -0
  122. package/cjs/factory/layer-factory.js.map +1 -0
  123. package/cjs/factory/stage-factory.d.ts +8 -0
  124. package/cjs/factory/stage-factory.js +20 -0
  125. package/cjs/factory/stage-factory.js.map +1 -0
  126. package/cjs/factory/types.d.ts +34 -0
  127. package/cjs/{common/inversify/interfaces.js → factory/types.js} +1 -1
  128. package/cjs/factory/types.js.map +1 -0
  129. package/cjs/factory.d.ts +1 -0
  130. package/cjs/factory.js +16 -1
  131. package/cjs/factory.js.map +1 -1
  132. package/cjs/global.d.ts +2 -0
  133. package/cjs/global.js +11 -0
  134. package/cjs/global.js.map +1 -0
  135. package/cjs/graphic/area.js +1 -1
  136. package/cjs/graphic/area.js.map +1 -1
  137. package/cjs/graphic/bounds.js +3 -3
  138. package/cjs/graphic/bounds.js.map +1 -1
  139. package/cjs/graphic/config.js +0 -1
  140. package/cjs/graphic/config.js.map +1 -1
  141. package/cjs/graphic/glyph.js +9 -3
  142. package/cjs/graphic/glyph.js.map +1 -1
  143. package/cjs/graphic/graphic-creator.d.ts +9 -4
  144. package/cjs/graphic/graphic-creator.js +35 -7
  145. package/cjs/graphic/graphic-creator.js.map +1 -1
  146. package/cjs/graphic/graphic-service/graphic-module.d.ts +4 -3
  147. package/cjs/graphic/graphic-service/graphic-module.js +6 -4
  148. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  149. package/cjs/graphic/graphic-service/graphic-service.d.ts +2 -3
  150. package/cjs/graphic/graphic-service/graphic-service.js +5 -20
  151. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  152. package/cjs/graphic/graphic.d.ts +80 -11
  153. package/cjs/graphic/graphic.js +474 -152
  154. package/cjs/graphic/graphic.js.map +1 -1
  155. package/cjs/graphic/group.d.ts +11 -1
  156. package/cjs/graphic/group.js +46 -11
  157. package/cjs/graphic/group.js.map +1 -1
  158. package/cjs/graphic/index.d.ts +3 -0
  159. package/cjs/graphic/index.js +34 -15
  160. package/cjs/graphic/index.js.map +1 -1
  161. package/cjs/graphic/line.js +1 -1
  162. package/cjs/graphic/line.js.map +1 -1
  163. package/cjs/graphic/state/attribute-update-classifier.d.ts +13 -0
  164. package/cjs/graphic/state/attribute-update-classifier.js +67 -0
  165. package/cjs/graphic/state/attribute-update-classifier.js.map +1 -0
  166. package/cjs/graphic/state/shared-state-refresh.d.ts +6 -0
  167. package/cjs/graphic/state/shared-state-refresh.js +55 -0
  168. package/cjs/graphic/state/shared-state-refresh.js.map +1 -0
  169. package/cjs/graphic/state/shared-state-scope.d.ts +25 -0
  170. package/cjs/graphic/state/shared-state-scope.js +98 -0
  171. package/cjs/graphic/state/shared-state-scope.js.map +1 -0
  172. package/cjs/graphic/state/state-batch-scheduler.d.ts +42 -0
  173. package/cjs/graphic/state/state-batch-scheduler.js +285 -0
  174. package/cjs/graphic/state/state-batch-scheduler.js.map +1 -0
  175. package/cjs/graphic/state/state-definition-compiler.d.ts +6 -0
  176. package/cjs/graphic/state/state-definition-compiler.js +91 -0
  177. package/cjs/graphic/state/state-definition-compiler.js.map +1 -0
  178. package/cjs/graphic/state/state-definition.d.ts +44 -0
  179. package/cjs/graphic/state/state-definition.js +6 -0
  180. package/cjs/graphic/state/state-definition.js.map +1 -0
  181. package/cjs/graphic/state/state-engine.d.ts +38 -0
  182. package/cjs/graphic/state/state-engine.js +220 -0
  183. package/cjs/graphic/state/state-engine.js.map +1 -0
  184. package/cjs/graphic/state/state-model.d.ts +43 -0
  185. package/cjs/graphic/state/state-model.js +143 -0
  186. package/cjs/graphic/state/state-model.js.map +1 -0
  187. package/cjs/graphic/state/state-perf-monitor.d.ts +119 -0
  188. package/cjs/graphic/state/state-perf-monitor.js +217 -0
  189. package/cjs/graphic/state/state-perf-monitor.js.map +1 -0
  190. package/cjs/graphic/state/state-style-resolver.d.ts +22 -0
  191. package/cjs/graphic/state/state-style-resolver.js +73 -0
  192. package/cjs/graphic/state/state-style-resolver.js.map +1 -0
  193. package/cjs/graphic/state/state-transition-orchestrator.d.ts +41 -0
  194. package/cjs/graphic/state/state-transition-orchestrator.js +74 -0
  195. package/cjs/graphic/state/state-transition-orchestrator.js.map +1 -0
  196. package/cjs/graphic/text.d.ts +3 -2
  197. package/cjs/graphic/text.js +22 -14
  198. package/cjs/graphic/text.js.map +1 -1
  199. package/cjs/graphic/theme.d.ts +5 -0
  200. package/cjs/graphic/theme.js +7 -0
  201. package/cjs/graphic/theme.js.map +1 -1
  202. package/cjs/graphic/wrap-text.d.ts +1 -1
  203. package/cjs/graphic/wrap-text.js +17 -14
  204. package/cjs/graphic/wrap-text.js.map +1 -1
  205. package/cjs/index.d.ts +7 -4
  206. package/cjs/index.js +95 -25
  207. package/cjs/index.js.map +1 -1
  208. package/cjs/interface/global.d.ts +2 -0
  209. package/cjs/interface/global.js.map +1 -1
  210. package/cjs/interface/graphic/group.d.ts +6 -0
  211. package/cjs/interface/graphic/group.js.map +1 -1
  212. package/cjs/interface/graphic/theme.d.ts +3 -0
  213. package/cjs/interface/graphic/theme.js.map +1 -1
  214. package/cjs/interface/graphic.d.ts +24 -26
  215. package/cjs/interface/graphic.js.map +1 -1
  216. package/cjs/interface/plugin.d.ts +2 -0
  217. package/cjs/interface/plugin.js.map +1 -1
  218. package/cjs/interface/stage.d.ts +11 -3
  219. package/cjs/interface/stage.js.map +1 -1
  220. package/cjs/interface/theme-service.js.map +1 -1
  221. package/cjs/legacy/binding-context.d.ts +24 -0
  222. package/cjs/legacy/binding-context.js +98 -0
  223. package/cjs/legacy/binding-context.js.map +1 -0
  224. package/cjs/legacy/bootstrap.d.ts +10 -0
  225. package/cjs/legacy/bootstrap.js +72 -0
  226. package/cjs/legacy/bootstrap.js.map +1 -0
  227. package/cjs/legacy/module-types.d.ts +2 -0
  228. package/cjs/legacy/module-types.js +6 -0
  229. package/cjs/legacy/module-types.js.map +1 -0
  230. package/cjs/modules.d.ts +5 -6
  231. package/cjs/modules.js +54 -20
  232. package/cjs/modules.js.map +1 -1
  233. package/cjs/picker/global-picker-service.js +3 -12
  234. package/cjs/picker/global-picker-service.js.map +1 -1
  235. package/cjs/picker/pick-interceptor.js +9 -19
  236. package/cjs/picker/pick-interceptor.js.map +1 -1
  237. package/cjs/picker/pick-modules.d.ts +5 -3
  238. package/cjs/picker/pick-modules.js +6 -4
  239. package/cjs/picker/pick-modules.js.map +1 -1
  240. package/cjs/picker/picker-service.d.ts +13 -4
  241. package/cjs/picker/picker-service.js +16 -22
  242. package/cjs/picker/picker-service.js.map +1 -1
  243. package/cjs/plugins/base-plugin.d.ts +8 -0
  244. package/cjs/plugins/base-plugin.js +15 -0
  245. package/cjs/plugins/base-plugin.js.map +1 -0
  246. package/cjs/plugins/browser-env-plugin.d.ts +8 -0
  247. package/cjs/plugins/browser-env-plugin.js +24 -0
  248. package/cjs/plugins/browser-env-plugin.js.map +1 -0
  249. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +4 -1
  250. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js +25 -4
  251. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  252. package/cjs/plugins/builtin-plugin/richtext-edit-plugin.js +3 -1
  253. package/cjs/plugins/builtin-plugin/richtext-edit-plugin.js.map +1 -1
  254. package/cjs/plugins/index.d.ts +5 -0
  255. package/cjs/plugins/index.js +23 -0
  256. package/cjs/plugins/index.js.map +1 -0
  257. package/cjs/plugins/picker-plugin.d.ts +7 -0
  258. package/cjs/plugins/picker-plugin.js +19 -0
  259. package/cjs/plugins/picker-plugin.js.map +1 -0
  260. package/cjs/plugins/plugin-modules.d.ts +4 -3
  261. package/cjs/plugins/plugin-modules.js +6 -4
  262. package/cjs/plugins/plugin-modules.js.map +1 -1
  263. package/cjs/plugins/plugin-service.d.ts +16 -2
  264. package/cjs/plugins/plugin-service.js +24 -26
  265. package/cjs/plugins/plugin-service.js.map +1 -1
  266. package/cjs/plugins/renderer-plugin.d.ts +7 -0
  267. package/cjs/plugins/renderer-plugin.js +19 -0
  268. package/cjs/plugins/renderer-plugin.js.map +1 -0
  269. package/cjs/plugins/types.d.ts +28 -0
  270. package/cjs/plugins/types.js +6 -0
  271. package/cjs/plugins/types.js.map +1 -0
  272. package/cjs/register/register-arc.js +1 -1
  273. package/cjs/register/register-arc.js.map +1 -1
  274. package/cjs/register/register-arc3d.js +1 -1
  275. package/cjs/register/register-arc3d.js.map +1 -1
  276. package/cjs/register/register-area.js +1 -1
  277. package/cjs/register/register-area.js.map +1 -1
  278. package/cjs/register/register-circle.js +1 -1
  279. package/cjs/register/register-circle.js.map +1 -1
  280. package/cjs/register/register-glyph.js +1 -1
  281. package/cjs/register/register-glyph.js.map +1 -1
  282. package/cjs/register/register-group.js +1 -1
  283. package/cjs/register/register-group.js.map +1 -1
  284. package/cjs/register/register-image.js +1 -1
  285. package/cjs/register/register-image.js.map +1 -1
  286. package/cjs/register/register-line.js +1 -1
  287. package/cjs/register/register-line.js.map +1 -1
  288. package/cjs/register/register-path.js +1 -1
  289. package/cjs/register/register-path.js.map +1 -1
  290. package/cjs/register/register-polygon.js +1 -1
  291. package/cjs/register/register-polygon.js.map +1 -1
  292. package/cjs/register/register-pyramid3d.js +1 -1
  293. package/cjs/register/register-pyramid3d.js.map +1 -1
  294. package/cjs/register/register-rect.js +1 -1
  295. package/cjs/register/register-rect.js.map +1 -1
  296. package/cjs/register/register-rect3d.js +1 -1
  297. package/cjs/register/register-rect3d.js.map +1 -1
  298. package/cjs/register/register-richtext.js +1 -1
  299. package/cjs/register/register-richtext.js.map +1 -1
  300. package/cjs/register/register-shadowRoot.js +1 -1
  301. package/cjs/register/register-shadowRoot.js.map +1 -1
  302. package/cjs/register/register-star.js +1 -1
  303. package/cjs/register/register-star.js.map +1 -1
  304. package/cjs/register/register-symbol.js +1 -1
  305. package/cjs/register/register-symbol.js.map +1 -1
  306. package/cjs/register/register-text.js +1 -1
  307. package/cjs/register/register-text.js.map +1 -1
  308. package/cjs/register/register-wraptext.js +1 -1
  309. package/cjs/register/register-wraptext.js.map +1 -1
  310. package/cjs/registry/contribution-registry.d.ts +9 -0
  311. package/cjs/registry/contribution-registry.js +33 -0
  312. package/cjs/registry/contribution-registry.js.map +1 -0
  313. package/cjs/registry/index.d.ts +5 -0
  314. package/cjs/registry/index.js +23 -0
  315. package/cjs/registry/index.js.map +1 -0
  316. package/cjs/registry/picker-registry.d.ts +10 -0
  317. package/cjs/registry/picker-registry.js +29 -0
  318. package/cjs/registry/picker-registry.js.map +1 -0
  319. package/cjs/registry/plugin-registry.d.ts +10 -0
  320. package/cjs/registry/plugin-registry.js +29 -0
  321. package/cjs/registry/plugin-registry.js.map +1 -0
  322. package/cjs/registry/renderer-registry.d.ts +11 -0
  323. package/cjs/registry/renderer-registry.js +37 -0
  324. package/cjs/registry/renderer-registry.js.map +1 -0
  325. package/cjs/registry/types.d.ts +34 -0
  326. package/cjs/registry/types.js +6 -0
  327. package/cjs/registry/types.js.map +1 -0
  328. package/cjs/render/contributions/modules.d.ts +2 -2
  329. package/cjs/render/contributions/modules.js +3 -1
  330. package/cjs/render/contributions/modules.js.map +1 -1
  331. package/cjs/render/contributions/render/arc-module.d.ts +4 -2
  332. package/cjs/render/contributions/render/arc-module.js +6 -4
  333. package/cjs/render/contributions/render/arc-module.js.map +1 -1
  334. package/cjs/render/contributions/render/arc-render.js +4 -19
  335. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  336. package/cjs/render/contributions/render/arc3d-module.d.ts +4 -2
  337. package/cjs/render/contributions/render/arc3d-module.js +6 -4
  338. package/cjs/render/contributions/render/arc3d-module.js.map +1 -1
  339. package/cjs/render/contributions/render/arc3d-render.js +3 -10
  340. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  341. package/cjs/render/contributions/render/area-module.d.ts +4 -2
  342. package/cjs/render/contributions/render/area-module.js +6 -4
  343. package/cjs/render/contributions/render/area-module.js.map +1 -1
  344. package/cjs/render/contributions/render/area-render.js +4 -19
  345. package/cjs/render/contributions/render/area-render.js.map +1 -1
  346. package/cjs/render/contributions/render/base-render.js +9 -5
  347. package/cjs/render/contributions/render/base-render.js.map +1 -1
  348. package/cjs/render/contributions/render/circle-module.d.ts +4 -2
  349. package/cjs/render/contributions/render/circle-module.js +6 -4
  350. package/cjs/render/contributions/render/circle-module.js.map +1 -1
  351. package/cjs/render/contributions/render/circle-render.js +3 -18
  352. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  353. package/cjs/render/contributions/render/contributions/base-contribution-render.js +3 -18
  354. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  355. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +5 -13
  356. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  357. package/cjs/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  358. package/cjs/render/contributions/render/draw-contribution.d.ts +13 -4
  359. package/cjs/render/contributions/render/draw-contribution.js +22 -22
  360. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  361. package/cjs/render/contributions/render/draw-interceptor.js +5 -15
  362. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  363. package/cjs/render/contributions/render/glyph-module.d.ts +4 -2
  364. package/cjs/render/contributions/render/glyph-module.js +6 -4
  365. package/cjs/render/contributions/render/glyph-module.js.map +1 -1
  366. package/cjs/render/contributions/render/glyph-render.js +3 -10
  367. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  368. package/cjs/render/contributions/render/graphic-render.js +1 -10
  369. package/cjs/render/contributions/render/graphic-render.js.map +1 -1
  370. package/cjs/render/contributions/render/group-render.js +4 -19
  371. package/cjs/render/contributions/render/group-render.js.map +1 -1
  372. package/cjs/render/contributions/render/image-module.d.ts +4 -2
  373. package/cjs/render/contributions/render/image-module.js +6 -4
  374. package/cjs/render/contributions/render/image-module.js.map +1 -1
  375. package/cjs/render/contributions/render/image-render.d.ts +2 -2
  376. package/cjs/render/contributions/render/image-render.js +14 -30
  377. package/cjs/render/contributions/render/image-render.js.map +1 -1
  378. package/cjs/render/contributions/render/incremental-area-render.js +3 -10
  379. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  380. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +2 -2
  381. package/cjs/render/contributions/render/incremental-draw-contribution.js +4 -19
  382. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  383. package/cjs/render/contributions/render/incremental-line-render.js +3 -10
  384. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  385. package/cjs/render/contributions/render/line-module.d.ts +4 -2
  386. package/cjs/render/contributions/render/line-module.js +6 -4
  387. package/cjs/render/contributions/render/line-module.js.map +1 -1
  388. package/cjs/render/contributions/render/line-render.js +3 -10
  389. package/cjs/render/contributions/render/line-render.js.map +1 -1
  390. package/cjs/render/contributions/render/module.d.ts +4 -3
  391. package/cjs/render/contributions/render/module.js +10 -6
  392. package/cjs/render/contributions/render/module.js.map +1 -1
  393. package/cjs/render/contributions/render/path-module.d.ts +4 -2
  394. package/cjs/render/contributions/render/path-module.js +6 -4
  395. package/cjs/render/contributions/render/path-module.js.map +1 -1
  396. package/cjs/render/contributions/render/path-render.js +3 -18
  397. package/cjs/render/contributions/render/path-render.js.map +1 -1
  398. package/cjs/render/contributions/render/polygon-module.d.ts +4 -2
  399. package/cjs/render/contributions/render/polygon-module.js +6 -4
  400. package/cjs/render/contributions/render/polygon-module.js.map +1 -1
  401. package/cjs/render/contributions/render/polygon-render.js +3 -18
  402. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  403. package/cjs/render/contributions/render/pyramid3d-module.d.ts +4 -2
  404. package/cjs/render/contributions/render/pyramid3d-module.js +6 -4
  405. package/cjs/render/contributions/render/pyramid3d-module.js.map +1 -1
  406. package/cjs/render/contributions/render/pyramid3d-render.js +3 -10
  407. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  408. package/cjs/render/contributions/render/rect-module.d.ts +4 -2
  409. package/cjs/render/contributions/render/rect-module.js +11 -8
  410. package/cjs/render/contributions/render/rect-module.js.map +1 -1
  411. package/cjs/render/contributions/render/rect-render.js +3 -18
  412. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  413. package/cjs/render/contributions/render/rect3d-module.d.ts +4 -2
  414. package/cjs/render/contributions/render/rect3d-module.js +6 -4
  415. package/cjs/render/contributions/render/rect3d-module.js.map +1 -1
  416. package/cjs/render/contributions/render/rect3d-render.js +3 -10
  417. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  418. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  419. package/cjs/render/contributions/render/richtext-module.d.ts +4 -2
  420. package/cjs/render/contributions/render/richtext-module.js +6 -4
  421. package/cjs/render/contributions/render/richtext-module.js.map +1 -1
  422. package/cjs/render/contributions/render/richtext-render.js +3 -12
  423. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  424. package/cjs/render/contributions/render/star-module.d.ts +4 -2
  425. package/cjs/render/contributions/render/star-module.js +9 -6
  426. package/cjs/render/contributions/render/star-module.js.map +1 -1
  427. package/cjs/render/contributions/render/star-render.js +3 -18
  428. package/cjs/render/contributions/render/star-render.js.map +1 -1
  429. package/cjs/render/contributions/render/symbol-module.d.ts +4 -2
  430. package/cjs/render/contributions/render/symbol-module.js +6 -4
  431. package/cjs/render/contributions/render/symbol-module.js.map +1 -1
  432. package/cjs/render/contributions/render/symbol-render.js +3 -18
  433. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  434. package/cjs/render/contributions/render/text-module.d.ts +4 -2
  435. package/cjs/render/contributions/render/text-module.js +6 -4
  436. package/cjs/render/contributions/render/text-module.js.map +1 -1
  437. package/cjs/render/contributions/render/text-render.js +3 -18
  438. package/cjs/render/contributions/render/text-render.js.map +1 -1
  439. package/cjs/render/render-modules.d.ts +4 -3
  440. package/cjs/render/render-modules.js +6 -4
  441. package/cjs/render/render-modules.js.map +1 -1
  442. package/cjs/render/render-service.d.ts +1 -1
  443. package/cjs/render/render-service.js +4 -18
  444. package/cjs/render/render-service.js.map +1 -1
  445. package/dist/index.es.js +22505 -20114
  446. package/es/application.d.ts +14 -5
  447. package/es/application.js +1 -10
  448. package/es/application.js.map +1 -1
  449. package/es/canvas/empty-context.js +2 -17
  450. package/es/canvas/empty-context.js.map +1 -1
  451. package/es/canvas/util.d.ts +2 -3
  452. package/es/canvas/util.js +15 -5
  453. package/es/canvas/util.js.map +1 -1
  454. package/es/color-string/index.js +2 -1
  455. package/es/common/contribution-provider.d.ts +16 -9
  456. package/es/common/contribution-provider.js +6 -2
  457. package/es/common/contribution-provider.js.map +1 -1
  458. package/es/common/diff.js +1 -2
  459. package/es/common/enums.d.ts +2 -0
  460. package/es/common/enums.js +1 -0
  461. package/es/common/enums.js.map +1 -1
  462. package/es/common/event-transformer.js +43 -6
  463. package/es/common/event-transformer.js.map +1 -1
  464. package/es/common/explicit-binding.d.ts +5 -0
  465. package/es/common/explicit-binding.js +10 -0
  466. package/es/common/explicit-binding.js.map +1 -0
  467. package/es/common/performance-raf.d.ts +1 -0
  468. package/es/common/performance-raf.js +5 -0
  469. package/es/common/performance-raf.js.map +1 -1
  470. package/es/common/render-area.js +1 -1
  471. package/es/common/render-command-list.js +1 -1
  472. package/es/common/render-curve.js +1 -1
  473. package/es/common/render-utils.js +1 -1
  474. package/es/common/seg-context.js +1 -2
  475. package/es/common/simplify.js +1 -1
  476. package/es/common/sort.js +1 -1
  477. package/es/common/split-path.js +1 -1
  478. package/es/common/store.js +1 -1
  479. package/es/common/text.js +1 -1
  480. package/es/common/utils.js +1 -1
  481. package/es/core/application.js +1 -1
  482. package/es/core/camera.js +1 -1
  483. package/es/core/constants.js +1 -1
  484. package/es/core/contributions/env/base-contribution.js +3 -13
  485. package/es/core/contributions/env/base-contribution.js.map +1 -1
  486. package/es/core/contributions/env/modules.d.ts +4 -3
  487. package/es/core/contributions/env/modules.js +4 -4
  488. package/es/core/contributions/env/modules.js.map +1 -1
  489. package/es/core/contributions/layerHandler/canvas2d-contribution.js +2 -16
  490. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  491. package/es/core/contributions/layerHandler/empty-contribution.js +2 -16
  492. package/es/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  493. package/es/core/contributions/layerHandler/modules.d.ts +4 -3
  494. package/es/core/contributions/layerHandler/modules.js +4 -4
  495. package/es/core/contributions/layerHandler/modules.js.map +1 -1
  496. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +2 -16
  497. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  498. package/es/core/contributions/modules.d.ts +2 -2
  499. package/es/core/contributions/modules.js +7 -1
  500. package/es/core/contributions/modules.js.map +1 -1
  501. package/es/core/contributions/textMeasure/AtextMeasure.js +2 -14
  502. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  503. package/es/core/contributions/textMeasure/modules.d.ts +4 -3
  504. package/es/core/contributions/textMeasure/modules.js +4 -4
  505. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  506. package/es/core/contributions/textMeasure/textMeasure-contribution.js +2 -14
  507. package/es/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  508. package/es/core/contributions/window/base-contribution.js +2 -16
  509. package/es/core/contributions/window/base-contribution.js.map +1 -1
  510. package/es/core/core-modules.d.ts +4 -3
  511. package/es/core/core-modules.js +13 -9
  512. package/es/core/core-modules.js.map +1 -1
  513. package/es/core/global-module.js +2 -0
  514. package/es/core/global-module.js.map +1 -1
  515. package/es/core/global.d.ts +2 -0
  516. package/es/core/global.js +8 -24
  517. package/es/core/global.js.map +1 -1
  518. package/es/core/graphic-utils.d.ts +1 -2
  519. package/es/core/graphic-utils.js +8 -35
  520. package/es/core/graphic-utils.js.map +1 -1
  521. package/es/core/index.js +1 -1
  522. package/es/core/layer-service.d.ts +7 -2
  523. package/es/core/layer-service.js +28 -34
  524. package/es/core/layer-service.js.map +1 -1
  525. package/es/core/layer.js +1 -1
  526. package/es/core/layer.js.map +1 -1
  527. package/es/core/light.js +1 -1
  528. package/es/core/stage.d.ts +19 -7
  529. package/es/core/stage.js +64 -48
  530. package/es/core/stage.js.map +1 -1
  531. package/es/core/window.d.ts +7 -5
  532. package/es/core/window.js +13 -25
  533. package/es/core/window.js.map +1 -1
  534. package/es/create.d.ts +1 -2
  535. package/es/create.js +4 -2
  536. package/es/create.js.map +1 -1
  537. package/es/entries/app-context.d.ts +30 -0
  538. package/es/entries/app-context.js +86 -0
  539. package/es/entries/app-context.js.map +1 -0
  540. package/es/entries/browser.d.ts +25 -0
  541. package/es/entries/browser.js +36 -0
  542. package/es/entries/browser.js.map +1 -0
  543. package/es/entries/index.d.ts +7 -0
  544. package/es/entries/index.js +14 -0
  545. package/es/entries/index.js.map +1 -0
  546. package/es/entries/miniapp.d.ts +6 -0
  547. package/es/entries/miniapp.js +12 -0
  548. package/es/entries/miniapp.js.map +1 -0
  549. package/es/entries/node.d.ts +6 -0
  550. package/es/entries/node.js +12 -0
  551. package/es/entries/node.js.map +1 -0
  552. package/es/entries/runtime-installer.d.ts +11 -0
  553. package/es/entries/runtime-installer.js +130 -0
  554. package/es/entries/runtime-installer.js.map +1 -0
  555. package/es/entries/types.d.ts +29 -0
  556. package/es/entries/types.js +2 -0
  557. package/es/entries/types.js.map +1 -0
  558. package/es/event/util.d.ts +1 -1
  559. package/es/factory/graphic-factory.d.ts +7 -0
  560. package/es/factory/graphic-factory.js +15 -0
  561. package/es/factory/graphic-factory.js.map +1 -0
  562. package/es/factory/index.d.ts +4 -0
  563. package/es/factory/index.js +8 -0
  564. package/es/factory/index.js.map +1 -0
  565. package/es/factory/layer-factory.d.ts +7 -0
  566. package/es/factory/layer-factory.js +11 -0
  567. package/es/factory/layer-factory.js.map +1 -0
  568. package/es/factory/stage-factory.d.ts +8 -0
  569. package/es/factory/stage-factory.js +12 -0
  570. package/es/factory/stage-factory.js.map +1 -0
  571. package/es/factory/types.d.ts +34 -0
  572. package/es/factory/types.js +2 -0
  573. package/es/factory/types.js.map +1 -0
  574. package/es/factory.d.ts +1 -0
  575. package/es/factory.js +2 -0
  576. package/es/factory.js.map +1 -1
  577. package/es/global.d.ts +2 -0
  578. package/es/global.js +10 -0
  579. package/es/global.js.map +1 -0
  580. package/es/graphic/area.js +1 -1
  581. package/es/graphic/area.js.map +1 -1
  582. package/es/graphic/bounds.js +3 -3
  583. package/es/graphic/bounds.js.map +1 -1
  584. package/es/graphic/config.js +0 -1
  585. package/es/graphic/config.js.map +1 -1
  586. package/es/graphic/glyph.js +9 -3
  587. package/es/graphic/glyph.js.map +1 -1
  588. package/es/graphic/graphic-creator.d.ts +9 -4
  589. package/es/graphic/graphic-creator.js +32 -5
  590. package/es/graphic/graphic-creator.js.map +1 -1
  591. package/es/graphic/graphic-service/graphic-module.d.ts +4 -3
  592. package/es/graphic/graphic-service/graphic-module.js +4 -4
  593. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  594. package/es/graphic/graphic-service/graphic-service.d.ts +2 -3
  595. package/es/graphic/graphic-service/graphic-service.js +6 -25
  596. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  597. package/es/graphic/graphic.d.ts +80 -11
  598. package/es/graphic/graphic.js +473 -139
  599. package/es/graphic/graphic.js.map +1 -1
  600. package/es/graphic/group.d.ts +11 -1
  601. package/es/graphic/group.js +46 -10
  602. package/es/graphic/group.js.map +1 -1
  603. package/es/graphic/index.d.ts +3 -0
  604. package/es/graphic/index.js +4 -0
  605. package/es/graphic/index.js.map +1 -1
  606. package/es/graphic/line.js +1 -1
  607. package/es/graphic/line.js.map +1 -1
  608. package/es/graphic/state/attribute-update-classifier.d.ts +13 -0
  609. package/es/graphic/state/attribute-update-classifier.js +61 -0
  610. package/es/graphic/state/attribute-update-classifier.js.map +1 -0
  611. package/es/graphic/state/shared-state-refresh.d.ts +6 -0
  612. package/es/graphic/state/shared-state-refresh.js +46 -0
  613. package/es/graphic/state/shared-state-refresh.js.map +1 -0
  614. package/es/graphic/state/shared-state-scope.d.ts +25 -0
  615. package/es/graphic/state/shared-state-scope.js +90 -0
  616. package/es/graphic/state/shared-state-scope.js.map +1 -0
  617. package/es/graphic/state/state-batch-scheduler.d.ts +42 -0
  618. package/es/graphic/state/state-batch-scheduler.js +278 -0
  619. package/es/graphic/state/state-batch-scheduler.js.map +1 -0
  620. package/es/graphic/state/state-definition-compiler.d.ts +6 -0
  621. package/es/graphic/state/state-definition-compiler.js +83 -0
  622. package/es/graphic/state/state-definition-compiler.js.map +1 -0
  623. package/es/graphic/state/state-definition.d.ts +44 -0
  624. package/es/graphic/state/state-definition.js +2 -0
  625. package/es/graphic/state/state-definition.js.map +1 -0
  626. package/es/graphic/state/state-engine.d.ts +38 -0
  627. package/es/graphic/state/state-engine.js +212 -0
  628. package/es/graphic/state/state-engine.js.map +1 -0
  629. package/es/graphic/state/state-model.d.ts +43 -0
  630. package/es/graphic/state/state-model.js +135 -0
  631. package/es/graphic/state/state-model.js.map +1 -0
  632. package/es/graphic/state/state-perf-monitor.d.ts +119 -0
  633. package/es/graphic/state/state-perf-monitor.js +207 -0
  634. package/es/graphic/state/state-perf-monitor.js.map +1 -0
  635. package/es/graphic/state/state-style-resolver.d.ts +22 -0
  636. package/es/graphic/state/state-style-resolver.js +65 -0
  637. package/es/graphic/state/state-style-resolver.js.map +1 -0
  638. package/es/graphic/state/state-transition-orchestrator.d.ts +41 -0
  639. package/es/graphic/state/state-transition-orchestrator.js +68 -0
  640. package/es/graphic/state/state-transition-orchestrator.js.map +1 -0
  641. package/es/graphic/text.d.ts +3 -2
  642. package/es/graphic/text.js +22 -13
  643. package/es/graphic/text.js.map +1 -1
  644. package/es/graphic/theme.d.ts +5 -0
  645. package/es/graphic/theme.js +7 -0
  646. package/es/graphic/theme.js.map +1 -1
  647. package/es/graphic/wrap-text.d.ts +1 -1
  648. package/es/graphic/wrap-text.js +18 -13
  649. package/es/graphic/wrap-text.js.map +1 -1
  650. package/es/index.d.ts +7 -4
  651. package/es/index.js +12 -6
  652. package/es/index.js.map +1 -1
  653. package/es/interface/global.d.ts +2 -0
  654. package/es/interface/global.js.map +1 -1
  655. package/es/interface/graphic/group.d.ts +6 -0
  656. package/es/interface/graphic/group.js.map +1 -1
  657. package/es/interface/graphic/theme.d.ts +3 -0
  658. package/es/interface/graphic/theme.js.map +1 -1
  659. package/es/interface/graphic.d.ts +24 -26
  660. package/es/interface/graphic.js.map +1 -1
  661. package/es/interface/plugin.d.ts +2 -0
  662. package/es/interface/plugin.js.map +1 -1
  663. package/es/interface/stage.d.ts +11 -3
  664. package/es/interface/stage.js.map +1 -1
  665. package/es/interface/theme-service.js.map +1 -1
  666. package/es/legacy/binding-context.d.ts +24 -0
  667. package/es/legacy/binding-context.js +90 -0
  668. package/es/legacy/binding-context.js.map +1 -0
  669. package/es/legacy/bootstrap.d.ts +10 -0
  670. package/es/legacy/bootstrap.js +73 -0
  671. package/es/legacy/bootstrap.js.map +1 -0
  672. package/es/legacy/module-types.d.ts +2 -0
  673. package/es/legacy/module-types.js +2 -0
  674. package/es/legacy/module-types.js.map +1 -0
  675. package/es/modules.d.ts +5 -6
  676. package/es/modules.js +37 -33
  677. package/es/modules.js.map +1 -1
  678. package/es/picker/global-picker-service.js +2 -16
  679. package/es/picker/global-picker-service.js.map +1 -1
  680. package/es/picker/pick-interceptor.js +8 -32
  681. package/es/picker/pick-interceptor.js.map +1 -1
  682. package/es/picker/pick-modules.d.ts +5 -3
  683. package/es/picker/pick-modules.js +4 -4
  684. package/es/picker/pick-modules.js.map +1 -1
  685. package/es/picker/picker-service.d.ts +13 -4
  686. package/es/picker/picker-service.js +16 -26
  687. package/es/picker/picker-service.js.map +1 -1
  688. package/es/plugins/base-plugin.d.ts +8 -0
  689. package/es/plugins/base-plugin.js +7 -0
  690. package/es/plugins/base-plugin.js.map +1 -0
  691. package/es/plugins/browser-env-plugin.d.ts +8 -0
  692. package/es/plugins/browser-env-plugin.js +16 -0
  693. package/es/plugins/browser-env-plugin.js.map +1 -0
  694. package/es/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +4 -1
  695. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js +26 -3
  696. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  697. package/es/plugins/builtin-plugin/richtext-edit-plugin.js +3 -1
  698. package/es/plugins/builtin-plugin/richtext-edit-plugin.js.map +1 -1
  699. package/es/plugins/index.d.ts +5 -0
  700. package/es/plugins/index.js +10 -0
  701. package/es/plugins/index.js.map +1 -0
  702. package/es/plugins/picker-plugin.d.ts +7 -0
  703. package/es/plugins/picker-plugin.js +11 -0
  704. package/es/plugins/picker-plugin.js.map +1 -0
  705. package/es/plugins/plugin-modules.d.ts +4 -3
  706. package/es/plugins/plugin-modules.js +4 -4
  707. package/es/plugins/plugin-modules.js.map +1 -1
  708. package/es/plugins/plugin-service.d.ts +16 -2
  709. package/es/plugins/plugin-service.js +25 -32
  710. package/es/plugins/plugin-service.js.map +1 -1
  711. package/es/plugins/renderer-plugin.d.ts +7 -0
  712. package/es/plugins/renderer-plugin.js +11 -0
  713. package/es/plugins/renderer-plugin.js.map +1 -0
  714. package/es/plugins/types.d.ts +28 -0
  715. package/es/plugins/types.js +2 -0
  716. package/es/plugins/types.js.map +1 -0
  717. package/es/register/register-arc.js +2 -2
  718. package/es/register/register-arc.js.map +1 -1
  719. package/es/register/register-arc3d.js +2 -2
  720. package/es/register/register-arc3d.js.map +1 -1
  721. package/es/register/register-area.js +2 -2
  722. package/es/register/register-area.js.map +1 -1
  723. package/es/register/register-circle.js +2 -2
  724. package/es/register/register-circle.js.map +1 -1
  725. package/es/register/register-glyph.js +2 -2
  726. package/es/register/register-glyph.js.map +1 -1
  727. package/es/register/register-group.js +2 -2
  728. package/es/register/register-group.js.map +1 -1
  729. package/es/register/register-image.js +2 -2
  730. package/es/register/register-image.js.map +1 -1
  731. package/es/register/register-line.js +2 -2
  732. package/es/register/register-line.js.map +1 -1
  733. package/es/register/register-path.js +2 -2
  734. package/es/register/register-path.js.map +1 -1
  735. package/es/register/register-polygon.js +2 -2
  736. package/es/register/register-polygon.js.map +1 -1
  737. package/es/register/register-pyramid3d.js +2 -2
  738. package/es/register/register-pyramid3d.js.map +1 -1
  739. package/es/register/register-rect.js +2 -2
  740. package/es/register/register-rect.js.map +1 -1
  741. package/es/register/register-rect3d.js +2 -2
  742. package/es/register/register-rect3d.js.map +1 -1
  743. package/es/register/register-richtext.js +2 -2
  744. package/es/register/register-richtext.js.map +1 -1
  745. package/es/register/register-shadowRoot.js +2 -2
  746. package/es/register/register-shadowRoot.js.map +1 -1
  747. package/es/register/register-star.js +2 -2
  748. package/es/register/register-star.js.map +1 -1
  749. package/es/register/register-symbol.js +2 -2
  750. package/es/register/register-symbol.js.map +1 -1
  751. package/es/register/register-text.js +2 -2
  752. package/es/register/register-text.js.map +1 -1
  753. package/es/register/register-wraptext.js +2 -2
  754. package/es/register/register-wraptext.js.map +1 -1
  755. package/es/registry/contribution-registry.d.ts +9 -0
  756. package/es/registry/contribution-registry.js +25 -0
  757. package/es/registry/contribution-registry.js.map +1 -0
  758. package/es/registry/index.d.ts +5 -0
  759. package/es/registry/index.js +10 -0
  760. package/es/registry/index.js.map +1 -0
  761. package/es/registry/picker-registry.d.ts +10 -0
  762. package/es/registry/picker-registry.js +21 -0
  763. package/es/registry/picker-registry.js.map +1 -0
  764. package/es/registry/plugin-registry.d.ts +10 -0
  765. package/es/registry/plugin-registry.js +21 -0
  766. package/es/registry/plugin-registry.js.map +1 -0
  767. package/es/registry/renderer-registry.d.ts +11 -0
  768. package/es/registry/renderer-registry.js +29 -0
  769. package/es/registry/renderer-registry.js.map +1 -0
  770. package/es/registry/types.d.ts +34 -0
  771. package/es/registry/types.js +2 -0
  772. package/es/registry/types.js.map +1 -0
  773. package/es/render/contributions/modules.d.ts +2 -2
  774. package/es/render/contributions/modules.js +3 -1
  775. package/es/render/contributions/modules.js.map +1 -1
  776. package/es/render/contributions/render/arc-module.d.ts +4 -2
  777. package/es/render/contributions/render/arc-module.js +4 -4
  778. package/es/render/contributions/render/arc-module.js.map +1 -1
  779. package/es/render/contributions/render/arc-render.js +2 -24
  780. package/es/render/contributions/render/arc-render.js.map +1 -1
  781. package/es/render/contributions/render/arc3d-module.d.ts +4 -2
  782. package/es/render/contributions/render/arc3d-module.js +4 -4
  783. package/es/render/contributions/render/arc3d-module.js.map +1 -1
  784. package/es/render/contributions/render/arc3d-render.js +2 -14
  785. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  786. package/es/render/contributions/render/area-module.d.ts +4 -2
  787. package/es/render/contributions/render/area-module.js +4 -4
  788. package/es/render/contributions/render/area-module.js.map +1 -1
  789. package/es/render/contributions/render/area-render.js +2 -24
  790. package/es/render/contributions/render/area-render.js.map +1 -1
  791. package/es/render/contributions/render/base-render.js +8 -5
  792. package/es/render/contributions/render/base-render.js.map +1 -1
  793. package/es/render/contributions/render/circle-module.d.ts +4 -2
  794. package/es/render/contributions/render/circle-module.js +4 -4
  795. package/es/render/contributions/render/circle-module.js.map +1 -1
  796. package/es/render/contributions/render/circle-render.js +2 -24
  797. package/es/render/contributions/render/circle-render.js.map +1 -1
  798. package/es/render/contributions/render/contributions/base-contribution-render.js +2 -24
  799. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  800. package/es/render/contributions/render/contributions/rect-contribution-render.js +4 -20
  801. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  802. package/es/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  803. package/es/render/contributions/render/draw-contribution.d.ts +13 -4
  804. package/es/render/contributions/render/draw-contribution.js +24 -34
  805. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  806. package/es/render/contributions/render/draw-interceptor.js +4 -19
  807. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  808. package/es/render/contributions/render/glyph-module.d.ts +4 -2
  809. package/es/render/contributions/render/glyph-module.js +4 -4
  810. package/es/render/contributions/render/glyph-module.js.map +1 -1
  811. package/es/render/contributions/render/glyph-render.js +2 -14
  812. package/es/render/contributions/render/glyph-render.js.map +1 -1
  813. package/es/render/contributions/render/graphic-render.js +1 -13
  814. package/es/render/contributions/render/graphic-render.js.map +1 -1
  815. package/es/render/contributions/render/group-render.js +2 -24
  816. package/es/render/contributions/render/group-render.js.map +1 -1
  817. package/es/render/contributions/render/image-module.d.ts +4 -2
  818. package/es/render/contributions/render/image-module.js +4 -4
  819. package/es/render/contributions/render/image-module.js.map +1 -1
  820. package/es/render/contributions/render/image-render.d.ts +2 -2
  821. package/es/render/contributions/render/image-render.js +9 -31
  822. package/es/render/contributions/render/image-render.js.map +1 -1
  823. package/es/render/contributions/render/incremental-area-render.js +2 -14
  824. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  825. package/es/render/contributions/render/incremental-draw-contribution.d.ts +2 -2
  826. package/es/render/contributions/render/incremental-draw-contribution.js +3 -29
  827. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  828. package/es/render/contributions/render/incremental-line-render.js +2 -14
  829. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  830. package/es/render/contributions/render/line-module.d.ts +4 -2
  831. package/es/render/contributions/render/line-module.js +4 -4
  832. package/es/render/contributions/render/line-module.js.map +1 -1
  833. package/es/render/contributions/render/line-render.js +2 -14
  834. package/es/render/contributions/render/line-render.js.map +1 -1
  835. package/es/render/contributions/render/module.d.ts +4 -3
  836. package/es/render/contributions/render/module.js +10 -10
  837. package/es/render/contributions/render/module.js.map +1 -1
  838. package/es/render/contributions/render/path-module.d.ts +4 -2
  839. package/es/render/contributions/render/path-module.js +4 -4
  840. package/es/render/contributions/render/path-module.js.map +1 -1
  841. package/es/render/contributions/render/path-render.js +2 -24
  842. package/es/render/contributions/render/path-render.js.map +1 -1
  843. package/es/render/contributions/render/polygon-module.d.ts +4 -2
  844. package/es/render/contributions/render/polygon-module.js +4 -4
  845. package/es/render/contributions/render/polygon-module.js.map +1 -1
  846. package/es/render/contributions/render/polygon-render.js +2 -24
  847. package/es/render/contributions/render/polygon-render.js.map +1 -1
  848. package/es/render/contributions/render/pyramid3d-module.d.ts +4 -2
  849. package/es/render/contributions/render/pyramid3d-module.js +4 -4
  850. package/es/render/contributions/render/pyramid3d-module.js.map +1 -1
  851. package/es/render/contributions/render/pyramid3d-render.js +2 -14
  852. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  853. package/es/render/contributions/render/rect-module.d.ts +4 -2
  854. package/es/render/contributions/render/rect-module.js +7 -7
  855. package/es/render/contributions/render/rect-module.js.map +1 -1
  856. package/es/render/contributions/render/rect-render.js +2 -24
  857. package/es/render/contributions/render/rect-render.js.map +1 -1
  858. package/es/render/contributions/render/rect3d-module.d.ts +4 -2
  859. package/es/render/contributions/render/rect3d-module.js +4 -4
  860. package/es/render/contributions/render/rect3d-module.js.map +1 -1
  861. package/es/render/contributions/render/rect3d-render.js +2 -14
  862. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  863. package/es/render/contributions/render/render-slector.js.map +1 -1
  864. package/es/render/contributions/render/richtext-module.d.ts +4 -2
  865. package/es/render/contributions/render/richtext-module.js +4 -4
  866. package/es/render/contributions/render/richtext-module.js.map +1 -1
  867. package/es/render/contributions/render/richtext-render.js +2 -16
  868. package/es/render/contributions/render/richtext-render.js.map +1 -1
  869. package/es/render/contributions/render/star-module.d.ts +4 -2
  870. package/es/render/contributions/render/star-module.js +9 -5
  871. package/es/render/contributions/render/star-module.js.map +1 -1
  872. package/es/render/contributions/render/star-render.js +2 -24
  873. package/es/render/contributions/render/star-render.js.map +1 -1
  874. package/es/render/contributions/render/symbol-module.d.ts +4 -2
  875. package/es/render/contributions/render/symbol-module.js +4 -4
  876. package/es/render/contributions/render/symbol-module.js.map +1 -1
  877. package/es/render/contributions/render/symbol-render.js +2 -24
  878. package/es/render/contributions/render/symbol-render.js.map +1 -1
  879. package/es/render/contributions/render/text-module.d.ts +4 -2
  880. package/es/render/contributions/render/text-module.js +4 -4
  881. package/es/render/contributions/render/text-module.js.map +1 -1
  882. package/es/render/contributions/render/text-render.js +2 -24
  883. package/es/render/contributions/render/text-render.js.map +1 -1
  884. package/es/render/render-modules.d.ts +4 -3
  885. package/es/render/render-modules.js +4 -4
  886. package/es/render/render-modules.js.map +1 -1
  887. package/es/render/render-service.d.ts +1 -1
  888. package/es/render/render-service.js +4 -22
  889. package/es/render/render-service.js.map +1 -1
  890. package/package.json +8 -7
  891. package/cjs/common/inversify/annotation/inject.d.ts +0 -1
  892. package/cjs/common/inversify/annotation/inject.js +0 -10
  893. package/cjs/common/inversify/annotation/inject.js.map +0 -1
  894. package/cjs/common/inversify/annotation/inject_base.d.ts +0 -14
  895. package/cjs/common/inversify/annotation/inject_base.js +0 -39
  896. package/cjs/common/inversify/annotation/inject_base.js.map +0 -1
  897. package/cjs/common/inversify/annotation/injectable.d.ts +0 -1
  898. package/cjs/common/inversify/annotation/injectable.js +0 -46
  899. package/cjs/common/inversify/annotation/injectable.js.map +0 -1
  900. package/cjs/common/inversify/annotation/multi_inject.d.ts +0 -1
  901. package/cjs/common/inversify/annotation/multi_inject.js +0 -10
  902. package/cjs/common/inversify/annotation/multi_inject.js.map +0 -1
  903. package/cjs/common/inversify/annotation/named.d.ts +0 -1
  904. package/cjs/common/inversify/annotation/named.js +0 -14
  905. package/cjs/common/inversify/annotation/named.js.map +0 -1
  906. package/cjs/common/inversify/annotation/optional.d.ts +0 -2
  907. package/cjs/common/inversify/annotation/optional.js +0 -14
  908. package/cjs/common/inversify/annotation/optional.js.map +0 -1
  909. package/cjs/common/inversify/binding.d.ts +0 -18
  910. package/cjs/common/inversify/binding.js +0 -26
  911. package/cjs/common/inversify/binding.js.map +0 -1
  912. package/cjs/common/inversify/container.d.ts +0 -28
  913. package/cjs/common/inversify/container.js +0 -158
  914. package/cjs/common/inversify/container.js.map +0 -1
  915. package/cjs/common/inversify/cotainer-module.d.ts +0 -6
  916. package/cjs/common/inversify/cotainer-module.js +0 -16
  917. package/cjs/common/inversify/cotainer-module.js.map +0 -1
  918. package/cjs/common/inversify/index.d.ts +0 -7
  919. package/cjs/common/inversify/index.js +0 -75
  920. package/cjs/common/inversify/index.js.map +0 -1
  921. package/cjs/common/inversify/interfaces.d.ts +0 -218
  922. package/cjs/common/inversify/interfaces.js.map +0 -1
  923. package/cjs/common/inversify/literal_types.d.ts +0 -5
  924. package/cjs/common/inversify/literal_types.js +0 -34
  925. package/cjs/common/inversify/literal_types.js.map +0 -1
  926. package/cjs/common/inversify/meta-data.d.ts +0 -6
  927. package/cjs/common/inversify/meta-data.js +0 -19
  928. package/cjs/common/inversify/meta-data.js.map +0 -1
  929. package/cjs/common/inversify/metadata_keys.d.ts +0 -12
  930. package/cjs/common/inversify/metadata_keys.js +0 -15
  931. package/cjs/common/inversify/metadata_keys.js.map +0 -1
  932. package/cjs/common/inversify/metadata_reader.d.ts +0 -6
  933. package/cjs/common/inversify/metadata_reader.js +0 -28
  934. package/cjs/common/inversify/metadata_reader.js.map +0 -1
  935. package/cjs/common/inversify/syntax/binding_in_syntax.d.ts +0 -10
  936. package/cjs/common/inversify/syntax/binding_in_syntax.js +0 -29
  937. package/cjs/common/inversify/syntax/binding_in_syntax.js.map +0 -1
  938. package/cjs/common/inversify/syntax/binding_to_syntax.d.ts +0 -12
  939. package/cjs/common/inversify/syntax/binding_to_syntax.js +0 -40
  940. package/cjs/common/inversify/syntax/binding_to_syntax.js.map +0 -1
  941. package/cjs/common/inversify/syntax/constraint_helpers.d.ts +0 -2
  942. package/cjs/common/inversify/syntax/constraint_helpers.js +0 -20
  943. package/cjs/common/inversify/syntax/constraint_helpers.js.map +0 -1
  944. package/cjs/common/inversify-lite/annotation/decorator_utils.d.ts +0 -16
  945. package/cjs/common/inversify-lite/annotation/decorator_utils.js +0 -97
  946. package/cjs/common/inversify-lite/annotation/decorator_utils.js.map +0 -1
  947. package/cjs/common/inversify-lite/annotation/inject.d.ts +0 -2
  948. package/cjs/common/inversify-lite/annotation/inject.js +0 -36
  949. package/cjs/common/inversify-lite/annotation/inject.js.map +0 -1
  950. package/cjs/common/inversify-lite/annotation/inject_base.d.ts +0 -3
  951. package/cjs/common/inversify-lite/annotation/inject_base.js +0 -20
  952. package/cjs/common/inversify-lite/annotation/inject_base.js.map +0 -1
  953. package/cjs/common/inversify-lite/annotation/injectable.d.ts +0 -2
  954. package/cjs/common/inversify-lite/annotation/injectable.js +0 -48
  955. package/cjs/common/inversify-lite/annotation/injectable.js.map +0 -1
  956. package/cjs/common/inversify-lite/annotation/lazy_service_identifier.d.ts +0 -7
  957. package/cjs/common/inversify-lite/annotation/lazy_service_identifier.js +0 -17
  958. package/cjs/common/inversify-lite/annotation/lazy_service_identifier.js.map +0 -1
  959. package/cjs/common/inversify-lite/annotation/multi_inject.d.ts +0 -2
  960. package/cjs/common/inversify-lite/annotation/multi_inject.js +0 -36
  961. package/cjs/common/inversify-lite/annotation/multi_inject.js.map +0 -1
  962. package/cjs/common/inversify-lite/annotation/named.d.ts +0 -2
  963. package/cjs/common/inversify-lite/annotation/named.js +0 -39
  964. package/cjs/common/inversify-lite/annotation/named.js.map +0 -1
  965. package/cjs/common/inversify-lite/annotation/property_event_decorator.d.ts +0 -4
  966. package/cjs/common/inversify-lite/annotation/property_event_decorator.js +0 -24
  967. package/cjs/common/inversify-lite/annotation/property_event_decorator.js.map +0 -1
  968. package/cjs/common/inversify-lite/bindings/binding.d.ts +0 -20
  969. package/cjs/common/inversify-lite/bindings/binding.js +0 -27
  970. package/cjs/common/inversify-lite/bindings/binding.js.map +0 -1
  971. package/cjs/common/inversify-lite/bindings/binding_count.d.ts +0 -5
  972. package/cjs/common/inversify-lite/bindings/binding_count.js +0 -10
  973. package/cjs/common/inversify-lite/bindings/binding_count.js.map +0 -1
  974. package/cjs/common/inversify-lite/constants/error_msgs.d.ts +0 -32
  975. package/cjs/common/inversify-lite/constants/error_msgs.js +0 -50
  976. package/cjs/common/inversify-lite/constants/error_msgs.js.map +0 -1
  977. package/cjs/common/inversify-lite/constants/literal_types.d.ts +0 -5
  978. package/cjs/common/inversify-lite/constants/literal_types.js +0 -35
  979. package/cjs/common/inversify-lite/constants/literal_types.js.map +0 -1
  980. package/cjs/common/inversify-lite/constants/metadata_keys.d.ts +0 -13
  981. package/cjs/common/inversify-lite/constants/metadata_keys.js +0 -16
  982. package/cjs/common/inversify-lite/constants/metadata_keys.js.map +0 -1
  983. package/cjs/common/inversify-lite/container/container.d.ts +0 -46
  984. package/cjs/common/inversify-lite/container/container.js +0 -290
  985. package/cjs/common/inversify-lite/container/container.js.map +0 -1
  986. package/cjs/common/inversify-lite/container/container_module.d.ts +0 -11
  987. package/cjs/common/inversify-lite/container/container_module.js +0 -24
  988. package/cjs/common/inversify-lite/container/container_module.js.map +0 -1
  989. package/cjs/common/inversify-lite/container/lookup.d.ts +0 -16
  990. package/cjs/common/inversify-lite/container/lookup.js +0 -97
  991. package/cjs/common/inversify-lite/container/lookup.js.map +0 -1
  992. package/cjs/common/inversify-lite/index.d.ts +0 -1
  993. package/cjs/common/inversify-lite/index.js.map +0 -1
  994. package/cjs/common/inversify-lite/interfaces/interfaces.d.ts +0 -237
  995. package/cjs/common/inversify-lite/interfaces/interfaces.js.map +0 -1
  996. package/cjs/common/inversify-lite/planning/context.d.ts +0 -11
  997. package/cjs/common/inversify-lite/planning/context.js +0 -22
  998. package/cjs/common/inversify-lite/planning/context.js.map +0 -1
  999. package/cjs/common/inversify-lite/planning/metadata.d.ts +0 -8
  1000. package/cjs/common/inversify-lite/planning/metadata.js +0 -44
  1001. package/cjs/common/inversify-lite/planning/metadata.js.map +0 -1
  1002. package/cjs/common/inversify-lite/planning/metadata_reader.d.ts +0 -6
  1003. package/cjs/common/inversify-lite/planning/metadata_reader.js +0 -51
  1004. package/cjs/common/inversify-lite/planning/metadata_reader.js.map +0 -1
  1005. package/cjs/common/inversify-lite/planning/plan.d.ts +0 -7
  1006. package/cjs/common/inversify-lite/planning/plan.js +0 -14
  1007. package/cjs/common/inversify-lite/planning/plan.js.map +0 -1
  1008. package/cjs/common/inversify-lite/planning/planner.d.ts +0 -5
  1009. package/cjs/common/inversify-lite/planning/planner.js +0 -132
  1010. package/cjs/common/inversify-lite/planning/planner.js.map +0 -1
  1011. package/cjs/common/inversify-lite/planning/queryable_string.d.ts +0 -9
  1012. package/cjs/common/inversify-lite/planning/queryable_string.js +0 -23
  1013. package/cjs/common/inversify-lite/planning/queryable_string.js.map +0 -1
  1014. package/cjs/common/inversify-lite/planning/reflection_utils.d.ts +0 -5
  1015. package/cjs/common/inversify-lite/planning/reflection_utils.js +0 -129
  1016. package/cjs/common/inversify-lite/planning/reflection_utils.js.map +0 -1
  1017. package/cjs/common/inversify-lite/planning/request.d.ts +0 -14
  1018. package/cjs/common/inversify-lite/planning/request.js +0 -22
  1019. package/cjs/common/inversify-lite/planning/request.js.map +0 -1
  1020. package/cjs/common/inversify-lite/planning/target.d.ts +0 -23
  1021. package/cjs/common/inversify-lite/planning/target.js +0 -81
  1022. package/cjs/common/inversify-lite/planning/target.js.map +0 -1
  1023. package/cjs/common/inversify-lite/resolution/instantiation.d.ts +0 -3
  1024. package/cjs/common/inversify-lite/resolution/instantiation.js +0 -143
  1025. package/cjs/common/inversify-lite/resolution/instantiation.js.map +0 -1
  1026. package/cjs/common/inversify-lite/resolution/resolver.d.ts +0 -3
  1027. package/cjs/common/inversify-lite/resolution/resolver.js +0 -74
  1028. package/cjs/common/inversify-lite/resolution/resolver.js.map +0 -1
  1029. package/cjs/common/inversify-lite/scope/scope.d.ts +0 -3
  1030. package/cjs/common/inversify-lite/scope/scope.js +0 -56
  1031. package/cjs/common/inversify-lite/scope/scope.js.map +0 -1
  1032. package/cjs/common/inversify-lite/syntax/binding_in_syntax.d.ts +0 -9
  1033. package/cjs/common/inversify-lite/syntax/binding_in_syntax.js +0 -25
  1034. package/cjs/common/inversify-lite/syntax/binding_in_syntax.js.map +0 -1
  1035. package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.d.ts +0 -12
  1036. package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.js +0 -29
  1037. package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.js.map +0 -1
  1038. package/cjs/common/inversify-lite/syntax/binding_on_syntax.d.ts +0 -6
  1039. package/cjs/common/inversify-lite/syntax/binding_on_syntax.js +0 -14
  1040. package/cjs/common/inversify-lite/syntax/binding_on_syntax.js.map +0 -1
  1041. package/cjs/common/inversify-lite/syntax/binding_to_syntax.d.ts +0 -18
  1042. package/cjs/common/inversify-lite/syntax/binding_to_syntax.js +0 -88
  1043. package/cjs/common/inversify-lite/syntax/binding_to_syntax.js.map +0 -1
  1044. package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.d.ts +0 -8
  1045. package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.js +0 -19
  1046. package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.js.map +0 -1
  1047. package/cjs/common/inversify-lite/syntax/binding_when_syntax.d.ts +0 -7
  1048. package/cjs/common/inversify-lite/syntax/binding_when_syntax.js +0 -20
  1049. package/cjs/common/inversify-lite/syntax/binding_when_syntax.js.map +0 -1
  1050. package/cjs/common/inversify-lite/syntax/constraint_helpers.d.ts +0 -3
  1051. package/cjs/common/inversify-lite/syntax/constraint_helpers.js +0 -38
  1052. package/cjs/common/inversify-lite/syntax/constraint_helpers.js.map +0 -1
  1053. package/cjs/common/inversify-lite/utils/async.d.ts +0 -3
  1054. package/cjs/common/inversify-lite/utils/async.js +0 -15
  1055. package/cjs/common/inversify-lite/utils/async.js.map +0 -1
  1056. package/cjs/common/inversify-lite/utils/binding_utils.d.ts +0 -4
  1057. package/cjs/common/inversify-lite/utils/binding_utils.js +0 -94
  1058. package/cjs/common/inversify-lite/utils/binding_utils.js.map +0 -1
  1059. package/cjs/common/inversify-lite/utils/clonable.d.ts +0 -3
  1060. package/cjs/common/inversify-lite/utils/clonable.js +0 -10
  1061. package/cjs/common/inversify-lite/utils/clonable.js.map +0 -1
  1062. package/cjs/common/inversify-lite/utils/exceptions.d.ts +0 -2
  1063. package/cjs/common/inversify-lite/utils/exceptions.js +0 -43
  1064. package/cjs/common/inversify-lite/utils/exceptions.js.map +0 -1
  1065. package/cjs/common/inversify-lite/utils/factory_type.d.ts +0 -5
  1066. package/cjs/common/inversify-lite/utils/factory_type.js +0 -11
  1067. package/cjs/common/inversify-lite/utils/factory_type.js.map +0 -1
  1068. package/cjs/common/inversify-lite/utils/id.d.ts +0 -2
  1069. package/cjs/common/inversify-lite/utils/id.js +0 -14
  1070. package/cjs/common/inversify-lite/utils/id.js.map +0 -1
  1071. package/cjs/common/inversify-lite/utils/js.d.ts +0 -1
  1072. package/cjs/common/inversify-lite/utils/js.js +0 -14
  1073. package/cjs/common/inversify-lite/utils/js.js.map +0 -1
  1074. package/cjs/common/inversify-lite/utils/serialization.d.ts +0 -10
  1075. package/cjs/common/inversify-lite/utils/serialization.js +0 -99
  1076. package/cjs/common/inversify-lite/utils/serialization.js.map +0 -1
  1077. package/cjs/container.d.ts +0 -2
  1078. package/cjs/container.js +0 -10
  1079. package/cjs/container.js.map +0 -1
  1080. package/es/common/inversify/annotation/inject.d.ts +0 -1
  1081. package/es/common/inversify/annotation/inject.js +0 -6
  1082. package/es/common/inversify/annotation/inject.js.map +0 -1
  1083. package/es/common/inversify/annotation/inject_base.d.ts +0 -14
  1084. package/es/common/inversify/annotation/inject_base.js +0 -29
  1085. package/es/common/inversify/annotation/inject_base.js.map +0 -1
  1086. package/es/common/inversify/annotation/injectable.d.ts +0 -1
  1087. package/es/common/inversify/annotation/injectable.js +0 -10
  1088. package/es/common/inversify/annotation/injectable.js.map +0 -1
  1089. package/es/common/inversify/annotation/multi_inject.d.ts +0 -1
  1090. package/es/common/inversify/annotation/multi_inject.js +0 -6
  1091. package/es/common/inversify/annotation/multi_inject.js.map +0 -1
  1092. package/es/common/inversify/annotation/named.d.ts +0 -1
  1093. package/es/common/inversify/annotation/named.js +0 -10
  1094. package/es/common/inversify/annotation/named.js.map +0 -1
  1095. package/es/common/inversify/annotation/optional.d.ts +0 -2
  1096. package/es/common/inversify/annotation/optional.js +0 -12
  1097. package/es/common/inversify/annotation/optional.js.map +0 -1
  1098. package/es/common/inversify/binding.d.ts +0 -18
  1099. package/es/common/inversify/binding.js +0 -22
  1100. package/es/common/inversify/binding.js.map +0 -1
  1101. package/es/common/inversify/container.d.ts +0 -28
  1102. package/es/common/inversify/container.js +0 -158
  1103. package/es/common/inversify/container.js.map +0 -1
  1104. package/es/common/inversify/cotainer-module.d.ts +0 -6
  1105. package/es/common/inversify/cotainer-module.js +0 -8
  1106. package/es/common/inversify/cotainer-module.js.map +0 -1
  1107. package/es/common/inversify/index.d.ts +0 -7
  1108. package/es/common/inversify/index.js +0 -14
  1109. package/es/common/inversify/index.js.map +0 -1
  1110. package/es/common/inversify/interfaces.d.ts +0 -218
  1111. package/es/common/inversify/interfaces.js +0 -2
  1112. package/es/common/inversify/interfaces.js.map +0 -1
  1113. package/es/common/inversify/literal_types.d.ts +0 -5
  1114. package/es/common/inversify/literal_types.js +0 -20
  1115. package/es/common/inversify/literal_types.js.map +0 -1
  1116. package/es/common/inversify/meta-data.d.ts +0 -6
  1117. package/es/common/inversify/meta-data.js +0 -11
  1118. package/es/common/inversify/meta-data.js.map +0 -1
  1119. package/es/common/inversify/metadata_keys.d.ts +0 -12
  1120. package/es/common/inversify/metadata_keys.js +0 -28
  1121. package/es/common/inversify/metadata_keys.js.map +0 -1
  1122. package/es/common/inversify/metadata_reader.d.ts +0 -6
  1123. package/es/common/inversify/metadata_reader.js +0 -18
  1124. package/es/common/inversify/metadata_reader.js.map +0 -1
  1125. package/es/common/inversify/syntax/binding_in_syntax.d.ts +0 -10
  1126. package/es/common/inversify/syntax/binding_in_syntax.js +0 -24
  1127. package/es/common/inversify/syntax/binding_in_syntax.js.map +0 -1
  1128. package/es/common/inversify/syntax/binding_to_syntax.d.ts +0 -12
  1129. package/es/common/inversify/syntax/binding_to_syntax.js +0 -36
  1130. package/es/common/inversify/syntax/binding_to_syntax.js.map +0 -1
  1131. package/es/common/inversify/syntax/constraint_helpers.d.ts +0 -2
  1132. package/es/common/inversify/syntax/constraint_helpers.js +0 -18
  1133. package/es/common/inversify/syntax/constraint_helpers.js.map +0 -1
  1134. package/es/common/inversify-lite/annotation/decorator_utils.d.ts +0 -16
  1135. package/es/common/inversify-lite/annotation/decorator_utils.js +0 -67
  1136. package/es/common/inversify-lite/annotation/decorator_utils.js.map +0 -1
  1137. package/es/common/inversify-lite/annotation/inject.d.ts +0 -2
  1138. package/es/common/inversify-lite/annotation/inject.js +0 -8
  1139. package/es/common/inversify-lite/annotation/inject.js.map +0 -1
  1140. package/es/common/inversify-lite/annotation/inject_base.d.ts +0 -3
  1141. package/es/common/inversify-lite/annotation/inject_base.js +0 -16
  1142. package/es/common/inversify-lite/annotation/inject_base.js.map +0 -1
  1143. package/es/common/inversify-lite/annotation/injectable.d.ts +0 -2
  1144. package/es/common/inversify-lite/annotation/injectable.js +0 -16
  1145. package/es/common/inversify-lite/annotation/injectable.js.map +0 -1
  1146. package/es/common/inversify-lite/annotation/lazy_service_identifier.d.ts +0 -7
  1147. package/es/common/inversify-lite/annotation/lazy_service_identifier.js +0 -9
  1148. package/es/common/inversify-lite/annotation/lazy_service_identifier.js.map +0 -1
  1149. package/es/common/inversify-lite/annotation/multi_inject.d.ts +0 -2
  1150. package/es/common/inversify-lite/annotation/multi_inject.js +0 -8
  1151. package/es/common/inversify-lite/annotation/multi_inject.js.map +0 -1
  1152. package/es/common/inversify-lite/annotation/named.d.ts +0 -2
  1153. package/es/common/inversify-lite/annotation/named.js +0 -12
  1154. package/es/common/inversify-lite/annotation/named.js.map +0 -1
  1155. package/es/common/inversify-lite/annotation/property_event_decorator.d.ts +0 -4
  1156. package/es/common/inversify-lite/annotation/property_event_decorator.js +0 -14
  1157. package/es/common/inversify-lite/annotation/property_event_decorator.js.map +0 -1
  1158. package/es/common/inversify-lite/bindings/binding.d.ts +0 -20
  1159. package/es/common/inversify-lite/bindings/binding.js +0 -23
  1160. package/es/common/inversify-lite/bindings/binding.js.map +0 -1
  1161. package/es/common/inversify-lite/bindings/binding_count.d.ts +0 -5
  1162. package/es/common/inversify-lite/bindings/binding_count.js +0 -6
  1163. package/es/common/inversify-lite/bindings/binding_count.js.map +0 -1
  1164. package/es/common/inversify-lite/constants/error_msgs.d.ts +0 -32
  1165. package/es/common/inversify-lite/constants/error_msgs.js +0 -64
  1166. package/es/common/inversify-lite/constants/error_msgs.js.map +0 -1
  1167. package/es/common/inversify-lite/constants/literal_types.d.ts +0 -5
  1168. package/es/common/inversify-lite/constants/literal_types.js +0 -21
  1169. package/es/common/inversify-lite/constants/literal_types.js.map +0 -1
  1170. package/es/common/inversify-lite/constants/metadata_keys.d.ts +0 -13
  1171. package/es/common/inversify-lite/constants/metadata_keys.js +0 -30
  1172. package/es/common/inversify-lite/constants/metadata_keys.js.map +0 -1
  1173. package/es/common/inversify-lite/container/container.d.ts +0 -46
  1174. package/es/common/inversify-lite/container/container.js +0 -279
  1175. package/es/common/inversify-lite/container/container.js.map +0 -1
  1176. package/es/common/inversify-lite/container/container_module.d.ts +0 -11
  1177. package/es/common/inversify-lite/container/container_module.js +0 -14
  1178. package/es/common/inversify-lite/container/container_module.js.map +0 -1
  1179. package/es/common/inversify-lite/container/lookup.d.ts +0 -16
  1180. package/es/common/inversify-lite/container/lookup.js +0 -68
  1181. package/es/common/inversify-lite/container/lookup.js.map +0 -1
  1182. package/es/common/inversify-lite/index.d.ts +0 -1
  1183. package/es/common/inversify-lite/index.js +0 -2
  1184. package/es/common/inversify-lite/index.js.map +0 -1
  1185. package/es/common/inversify-lite/interfaces/interfaces.d.ts +0 -237
  1186. package/es/common/inversify-lite/interfaces/interfaces.js +0 -2
  1187. package/es/common/inversify-lite/interfaces/interfaces.js.map +0 -1
  1188. package/es/common/inversify-lite/planning/context.d.ts +0 -11
  1189. package/es/common/inversify-lite/planning/context.js +0 -16
  1190. package/es/common/inversify-lite/planning/context.js.map +0 -1
  1191. package/es/common/inversify-lite/planning/metadata.d.ts +0 -8
  1192. package/es/common/inversify-lite/planning/metadata.js +0 -13
  1193. package/es/common/inversify-lite/planning/metadata.js.map +0 -1
  1194. package/es/common/inversify-lite/planning/metadata_reader.d.ts +0 -6
  1195. package/es/common/inversify-lite/planning/metadata_reader.js +0 -18
  1196. package/es/common/inversify-lite/planning/metadata_reader.js.map +0 -1
  1197. package/es/common/inversify-lite/planning/plan.d.ts +0 -7
  1198. package/es/common/inversify-lite/planning/plan.js +0 -8
  1199. package/es/common/inversify-lite/planning/plan.js.map +0 -1
  1200. package/es/common/inversify-lite/planning/planner.d.ts +0 -5
  1201. package/es/common/inversify-lite/planning/planner.js +0 -120
  1202. package/es/common/inversify-lite/planning/planner.js.map +0 -1
  1203. package/es/common/inversify-lite/planning/queryable_string.d.ts +0 -9
  1204. package/es/common/inversify-lite/planning/queryable_string.js +0 -17
  1205. package/es/common/inversify-lite/planning/queryable_string.js.map +0 -1
  1206. package/es/common/inversify-lite/planning/reflection_utils.d.ts +0 -5
  1207. package/es/common/inversify-lite/planning/reflection_utils.js +0 -99
  1208. package/es/common/inversify-lite/planning/reflection_utils.js.map +0 -1
  1209. package/es/common/inversify-lite/planning/request.d.ts +0 -14
  1210. package/es/common/inversify-lite/planning/request.js +0 -16
  1211. package/es/common/inversify-lite/planning/request.js.map +0 -1
  1212. package/es/common/inversify-lite/planning/target.d.ts +0 -23
  1213. package/es/common/inversify-lite/planning/target.js +0 -58
  1214. package/es/common/inversify-lite/planning/target.js.map +0 -1
  1215. package/es/common/inversify-lite/resolution/instantiation.d.ts +0 -3
  1216. package/es/common/inversify-lite/resolution/instantiation.js +0 -117
  1217. package/es/common/inversify-lite/resolution/instantiation.js.map +0 -1
  1218. package/es/common/inversify-lite/resolution/resolver.d.ts +0 -3
  1219. package/es/common/inversify-lite/resolution/resolver.js +0 -55
  1220. package/es/common/inversify-lite/resolution/resolver.js.map +0 -1
  1221. package/es/common/inversify-lite/scope/scope.d.ts +0 -3
  1222. package/es/common/inversify-lite/scope/scope.js +0 -50
  1223. package/es/common/inversify-lite/scope/scope.js.map +0 -1
  1224. package/es/common/inversify-lite/syntax/binding_in_syntax.d.ts +0 -9
  1225. package/es/common/inversify-lite/syntax/binding_in_syntax.js +0 -21
  1226. package/es/common/inversify-lite/syntax/binding_in_syntax.js.map +0 -1
  1227. package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.d.ts +0 -12
  1228. package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.js +0 -25
  1229. package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.js.map +0 -1
  1230. package/es/common/inversify-lite/syntax/binding_on_syntax.d.ts +0 -6
  1231. package/es/common/inversify-lite/syntax/binding_on_syntax.js +0 -8
  1232. package/es/common/inversify-lite/syntax/binding_on_syntax.js.map +0 -1
  1233. package/es/common/inversify-lite/syntax/binding_to_syntax.d.ts +0 -18
  1234. package/es/common/inversify-lite/syntax/binding_to_syntax.js +0 -63
  1235. package/es/common/inversify-lite/syntax/binding_to_syntax.js.map +0 -1
  1236. package/es/common/inversify-lite/syntax/binding_when_on_syntax.d.ts +0 -8
  1237. package/es/common/inversify-lite/syntax/binding_when_on_syntax.js +0 -13
  1238. package/es/common/inversify-lite/syntax/binding_when_on_syntax.js.map +0 -1
  1239. package/es/common/inversify-lite/syntax/binding_when_syntax.d.ts +0 -7
  1240. package/es/common/inversify-lite/syntax/binding_when_syntax.js +0 -15
  1241. package/es/common/inversify-lite/syntax/binding_when_syntax.js.map +0 -1
  1242. package/es/common/inversify-lite/syntax/constraint_helpers.d.ts +0 -3
  1243. package/es/common/inversify-lite/syntax/constraint_helpers.js +0 -11
  1244. package/es/common/inversify-lite/syntax/constraint_helpers.js.map +0 -1
  1245. package/es/common/inversify-lite/utils/async.d.ts +0 -3
  1246. package/es/common/inversify-lite/utils/async.js +0 -10
  1247. package/es/common/inversify-lite/utils/async.js.map +0 -1
  1248. package/es/common/inversify-lite/utils/binding_utils.d.ts +0 -4
  1249. package/es/common/inversify-lite/utils/binding_utils.js +0 -65
  1250. package/es/common/inversify-lite/utils/binding_utils.js.map +0 -1
  1251. package/es/common/inversify-lite/utils/clonable.d.ts +0 -3
  1252. package/es/common/inversify-lite/utils/clonable.js +0 -6
  1253. package/es/common/inversify-lite/utils/clonable.js.map +0 -1
  1254. package/es/common/inversify-lite/utils/exceptions.d.ts +0 -2
  1255. package/es/common/inversify-lite/utils/exceptions.js +0 -8
  1256. package/es/common/inversify-lite/utils/exceptions.js.map +0 -1
  1257. package/es/common/inversify-lite/utils/factory_type.d.ts +0 -5
  1258. package/es/common/inversify-lite/utils/factory_type.js +0 -7
  1259. package/es/common/inversify-lite/utils/factory_type.js.map +0 -1
  1260. package/es/common/inversify-lite/utils/id.d.ts +0 -2
  1261. package/es/common/inversify-lite/utils/id.js +0 -8
  1262. package/es/common/inversify-lite/utils/id.js.map +0 -1
  1263. package/es/common/inversify-lite/utils/js.d.ts +0 -1
  1264. package/es/common/inversify-lite/utils/js.js +0 -8
  1265. package/es/common/inversify-lite/utils/js.js.map +0 -1
  1266. package/es/common/inversify-lite/utils/serialization.d.ts +0 -10
  1267. package/es/common/inversify-lite/utils/serialization.js +0 -66
  1268. package/es/common/inversify-lite/utils/serialization.js.map +0 -1
  1269. package/es/container.d.ts +0 -2
  1270. package/es/container.js +0 -4
  1271. package/es/container.js.map +0 -1
@@ -2,16 +2,55 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.Graphic = exports.NOWORK_ANIMATE_ATTR = exports.GRAPHIC_UPDATE_TAG_KEY = exports.PURE_STYLE_KEY = void 0;
5
+ }), exports.Graphic = exports.NOWORK_ANIMATE_ATTR = exports.shouldUseSimpleAttributeFastPath = exports.GRAPHIC_UPDATE_TAG_KEY = exports.PURE_STYLE_KEY = void 0;
6
6
 
7
- const vutils_1 = require("@visactor/vutils"), vutils_2 = require("@visactor/vutils"), node_tree_1 = require("./node-tree"), event_1 = require("../event"), config_1 = require("./config"), application_1 = require("../application"), custom_path2d_1 = require("../common/custom-path2d"), loader_1 = require("../resource-loader/loader"), enums_1 = require("../common/enums"), bounds_context_1 = require("../common/bounds-context"), render_command_list_1 = require("../common/render-command-list"), utils_1 = require("../common/utils"), builtin_symbol_1 = require("./builtin-symbol"), xml_1 = require("../common/xml"), constants_1 = require("./constants"), config_2 = require("../animate/config"), canvas_1 = require("../canvas"), _tempBounds = new vutils_2.AABBBounds, tempMatrix = new vutils_2.Matrix, tempBounds = new vutils_2.AABBBounds;
7
+ const vutils_1 = require("@visactor/vutils"), node_tree_1 = require("./node-tree"), event_1 = require("../event"), config_1 = require("./config"), application_1 = require("../application"), custom_path2d_1 = require("../common/custom-path2d"), loader_1 = require("../resource-loader/loader"), enums_1 = require("../common/enums"), bounds_context_1 = require("../common/bounds-context"), render_command_list_1 = require("../common/render-command-list"), utils_1 = require("../common/utils"), builtin_symbol_1 = require("./builtin-symbol"), xml_1 = require("../common/xml"), constants_1 = require("./constants"), config_2 = require("../animate/config"), canvas_1 = require("../canvas"), state_definition_compiler_1 = require("./state/state-definition-compiler"), state_engine_1 = require("./state/state-engine"), state_model_1 = require("./state/state-model"), attribute_update_classifier_1 = require("./state/attribute-update-classifier"), state_style_resolver_1 = require("./state/state-style-resolver"), state_transition_orchestrator_1 = require("./state/state-transition-orchestrator"), shared_state_scope_1 = require("./state/shared-state-scope"), shared_state_refresh_1 = require("./state/shared-state-refresh"), state_perf_monitor_1 = require("./state/state-perf-monitor"), _tempBounds = new vutils_1.AABBBounds, loadShadowRootFactory = () => require("./shadow-root"), tempMatrix = new vutils_1.Matrix;
8
8
 
9
9
  exports.PURE_STYLE_KEY = [ "stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity" ],
10
- exports.GRAPHIC_UPDATE_TAG_KEY = [ "lineWidth", "pathProxy", "scaleX", "scaleY", "angle", "anchor", "visible" ];
10
+ exports.GRAPHIC_UPDATE_TAG_KEY = [ "lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible" ];
11
11
 
12
- const tempConstantXYKey = [ "x", "y" ], tempConstantScaleXYKey = [ "scaleX", "scaleY" ], tempConstantAngleKey = [ "angle" ], builtinTextureTypes = new Set([ "circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave" ]), point = new vutils_2.Point;
12
+ const tempConstantXYKey = [ "x", "y" ], tempConstantScaleXYKey = [ "scaleX", "scaleY" ], tempConstantAngleKey = [ "angle" ], builtinTextureTypes = new Set([ "circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave" ]), point = new vutils_1.Point;
13
13
 
14
- exports.NOWORK_ANIMATE_ATTR = {
14
+ function isPlainObjectValue(value) {
15
+ return "object" == typeof value && null != value && !(0, vutils_1.isArray)(value);
16
+ }
17
+
18
+ function cloneAttributeValue(value) {
19
+ if (!isPlainObjectValue(value)) return value;
20
+ const source = value, clone = {};
21
+ return Object.keys(source).forEach((key => {
22
+ const nextValue = source[key];
23
+ clone[key] = isPlainObjectValue(nextValue) ? cloneAttributeValue(nextValue) : nextValue;
24
+ })), clone;
25
+ }
26
+
27
+ function cloneSimpleAttributeRecord(value) {
28
+ return isPlainObjectValue(value) ? Object.assign({}, value) : value;
29
+ }
30
+
31
+ function shouldUseSimpleAttributeFastPath(value) {
32
+ return !!isPlainObjectValue(value) && !Object.keys(value).some((key => isPlainObjectValue(value[key])));
33
+ }
34
+
35
+ function cloneAttributeSurface(value) {
36
+ if (!isPlainObjectValue(value)) return value;
37
+ const source = value, clone = {};
38
+ return Object.keys(source).forEach((key => {
39
+ const nextValue = source[key];
40
+ clone[key] = isPlainObjectValue(nextValue) ? Object.assign({}, nextValue) : nextValue;
41
+ })), clone;
42
+ }
43
+
44
+ function deepMergeAttributeValue(base, value) {
45
+ var _a;
46
+ const result = null !== (_a = cloneAttributeValue(base)) && void 0 !== _a ? _a : {};
47
+ return Object.keys(value).forEach((key => {
48
+ const nextValue = value[key], previousValue = result[key];
49
+ isPlainObjectValue(previousValue) && isPlainObjectValue(nextValue) ? result[key] = deepMergeAttributeValue(previousValue, nextValue) : result[key] = cloneAttributeValue(nextValue);
50
+ })), result;
51
+ }
52
+
53
+ exports.shouldUseSimpleAttributeFastPath = shouldUseSimpleAttributeFastPath, exports.NOWORK_ANIMATE_ATTR = {
15
54
  strokeSeg: 1,
16
55
  boundsPadding: 2,
17
56
  pickMode: 1,
@@ -67,11 +106,18 @@ class Graphic extends node_tree_1.Node {
67
106
  }
68
107
  constructor(params = {}) {
69
108
  var _a;
70
- super(), this._AABBBounds = new vutils_2.AABBBounds, this._updateTag = enums_1.UpdateTag.INIT,
71
- this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0,
72
- params.background && this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0),
109
+ super(), this.resolverEpoch = 0, this._AABBBounds = new vutils_1.AABBBounds, this._updateTag = enums_1.UpdateTag.INIT;
110
+ const useSimpleAttributeFastPath = shouldUseSimpleAttributeFastPath(params), initialBaseAttributes = useSimpleAttributeFastPath ? cloneSimpleAttributeRecord(params) : cloneAttributeValue(params);
111
+ this.baseAttributes = initialBaseAttributes, this.attribute = useSimpleAttributeFastPath ? cloneSimpleAttributeRecord(initialBaseAttributes) : cloneAttributeSurface(initialBaseAttributes),
112
+ this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background && this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0),
73
113
  isExternalTexture(params.texture) && this.loadImage(params.texture, !1), params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
74
114
  }
115
+ get normalAttrs() {
116
+ return this.baseAttributes;
117
+ }
118
+ set normalAttrs(value) {
119
+ this._deprecatedNormalAttrsView = null != value ? value : void 0;
120
+ }
75
121
  getGraphicService() {
76
122
  var _a, _b;
77
123
  return null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application_1.application.graphicService;
@@ -79,6 +125,208 @@ class Graphic extends node_tree_1.Node {
79
125
  getAttributes() {
80
126
  return this.attribute;
81
127
  }
128
+ getStateStyleResolver(mergeMode) {
129
+ return "deep" === mergeMode ? (this.deepStateStyleResolver || (this.deepStateStyleResolver = new state_style_resolver_1.StateStyleResolver({
130
+ mergeMode: "deep"
131
+ })), this.deepStateStyleResolver) : (this.stateStyleResolver || (this.stateStyleResolver = new state_style_resolver_1.StateStyleResolver),
132
+ this.stateStyleResolver);
133
+ }
134
+ getStateTransitionOrchestrator() {
135
+ return this.stateTransitionOrchestrator || (this.stateTransitionOrchestrator = new state_transition_orchestrator_1.StateTransitionOrchestrator),
136
+ this.stateTransitionOrchestrator;
137
+ }
138
+ resolveBoundSharedStateScope() {
139
+ var _a;
140
+ let parent = this.parent;
141
+ for (;parent; ) {
142
+ if (parent.sharedStateScope) return parent.sharedStateScope;
143
+ parent = parent.parent;
144
+ }
145
+ return null === (_a = this.stage) || void 0 === _a ? void 0 : _a.rootSharedStateScope;
146
+ }
147
+ syncSharedStateScopeBindingFromTree(markDirty = !0) {
148
+ var _a;
149
+ const nextScope = this.resolveBoundSharedStateScope();
150
+ return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(),
151
+ !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0,
152
+ this.localFallbackCompiledDefinitions = void 0, this.compiledStateDefinitions = void 0,
153
+ this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0,
154
+ this.stateEngineStateProxyModeKey = void 0, this.syncSharedStateActiveRegistrations(),
155
+ markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(),
156
+ !0);
157
+ }
158
+ syncSharedStateActiveRegistrations() {
159
+ var _a, _b;
160
+ const nextScopes = (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.boundSharedStateScope ? new Set((0,
161
+ shared_state_scope_1.collectSharedStateScopeChain)(this.boundSharedStateScope)) : new Set;
162
+ (null !== (_b = this.registeredActiveScopes) && void 0 !== _b ? _b : new Set).forEach((scope => {
163
+ nextScopes.has(scope) || scope.subtreeActiveDescendants.delete(this);
164
+ })), nextScopes.forEach((scope => {
165
+ scope.subtreeActiveDescendants.add(this);
166
+ })), this.registeredActiveScopes = nextScopes;
167
+ }
168
+ clearSharedStateActiveRegistrations() {
169
+ const previousScopes = this.registeredActiveScopes;
170
+ previousScopes && (previousScopes.forEach((scope => {
171
+ scope.subtreeActiveDescendants.delete(this);
172
+ })), previousScopes.clear()), this.registeredActiveScopes = void 0;
173
+ }
174
+ markSharedStateDirty() {
175
+ this.sharedStateDirty = !0, (0, shared_state_refresh_1.enqueueGraphicSharedStateRefresh)(this.stage, this),
176
+ (0, shared_state_refresh_1.scheduleStageSharedStateRefresh)(this.stage);
177
+ }
178
+ onParentSharedStateTreeChanged(stage, layer) {
179
+ this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingFromTree() : this.setStage(stage, layer);
180
+ }
181
+ refreshSharedStateBeforeRender() {
182
+ var _a;
183
+ (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? (this.syncSharedStateScopeBindingFromTree(!1),
184
+ this.boundSharedStateScope && (0, shared_state_scope_1.ensureSharedStateScopeFresh)(this.boundSharedStateScope),
185
+ this.recomputeCurrentStatePatch(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
186
+ type: enums_1.AttributeUpdateType.STATE
187
+ }), this._emitCustomEvent("afterStateUpdate", {
188
+ type: enums_1.AttributeUpdateType.STATE
189
+ }), this.sharedStateDirty = !1) : this.sharedStateDirty = !1;
190
+ }
191
+ getLocalStatesVersion() {
192
+ var _a, _b;
193
+ return this.localStateDefinitionsSource !== this.states && (this.localStateDefinitionsSource = this.states,
194
+ this.localFallbackVersion = (null !== (_a = this.localFallbackVersion) && void 0 !== _a ? _a : 0) + 1),
195
+ null !== (_b = this.localFallbackVersion) && void 0 !== _b ? _b : 0;
196
+ }
197
+ resolveEffectiveCompiledDefinitions() {
198
+ this.syncSharedStateScopeBindingFromTree(!1);
199
+ const boundScope = this.boundSharedStateScope;
200
+ boundScope && ((0, shared_state_scope_1.ensureSharedStateScopeFresh)(boundScope),
201
+ this.boundSharedStateRevision = boundScope.revision);
202
+ const hasStates = !!this.states && Object.keys(this.states).length > 0;
203
+ if (!boundScope) {
204
+ if (!hasStates) return {
205
+ compiledDefinitions: void 0,
206
+ stateProxyModeKey: "none"
207
+ };
208
+ const cacheKey = `local:${this.getLocalStatesVersion()}`;
209
+ return this.compiledStateDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.compiledStateDefinitions = (new state_definition_compiler_1.StateDefinitionCompiler).compile(this.states),
210
+ this.compiledStateDefinitionsCacheKey = cacheKey), {
211
+ compiledDefinitions: this.compiledStateDefinitions,
212
+ stateProxyModeKey: this.stateProxy ? "legacy-all" : "none"
213
+ };
214
+ }
215
+ const sharedCompiledDefinitions = boundScope.effectiveCompiledDefinitions;
216
+ if (!hasStates) return this.localFallbackCompiledDefinitions = void 0, {
217
+ compiledDefinitions: sharedCompiledDefinitions,
218
+ stateProxyModeKey: this.stateProxy ? "shared-disabled" : "none",
219
+ stateProxyEligibility: this.stateProxy ? () => !1 : void 0
220
+ };
221
+ const localStates = this.states, missingLocalStateDefinitions = {}, missingStateNames = [];
222
+ if (Object.keys(localStates).forEach((stateName => {
223
+ sharedCompiledDefinitions.has(stateName) || (missingLocalStateDefinitions[stateName] = localStates[stateName],
224
+ missingStateNames.push(stateName));
225
+ })), !missingStateNames.length) return this.localFallbackCompiledDefinitions = void 0,
226
+ {
227
+ compiledDefinitions: sharedCompiledDefinitions,
228
+ stateProxyModeKey: this.stateProxy ? "shared-disabled" : "none",
229
+ stateProxyEligibility: this.stateProxy ? () => !1 : void 0
230
+ };
231
+ const localStatesVersion = this.getLocalStatesVersion(), stateProxyModeKey = this.stateProxy ? `missing:${missingStateNames.sort().join("|")}` : "none", cacheKey = `shared:${boundScope.revision}:fallback:${localStatesVersion}:${stateProxyModeKey}`;
232
+ return this.localFallbackCompiledDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.localFallbackCompiledDefinitions = (new state_definition_compiler_1.StateDefinitionCompiler).compile(Object.assign(Object.assign({}, boundScope.effectiveSourceDefinitions), missingLocalStateDefinitions)),
233
+ this.compiledStateDefinitionsCacheKey = cacheKey), {
234
+ compiledDefinitions: this.localFallbackCompiledDefinitions,
235
+ stateProxyModeKey: stateProxyModeKey,
236
+ stateProxyEligibility: this.stateProxy ? stateName => !sharedCompiledDefinitions.has(stateName) : void 0
237
+ };
238
+ }
239
+ recomputeCurrentStatePatch() {
240
+ var _a, _b, _c, _d;
241
+ if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [],
242
+ this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
243
+ const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute, stateModel = this.createStateModel();
244
+ null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs);
245
+ const transition = stateModel.useStates(this.currentStates), effectiveStates = null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states, resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
246
+ this.currentStates = transition.states, this.effectiveStates = [ ...effectiveStates ],
247
+ this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs), this.syncSharedStateActiveRegistrations();
248
+ }
249
+ buildStaticAttributeSnapshot() {
250
+ var _a;
251
+ const snapshot = cloneAttributeValue(null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : {}), resolvedPatch = this.resolvedStatePatch;
252
+ return resolvedPatch ? (Object.keys(resolvedPatch).forEach((key => {
253
+ const nextValue = resolvedPatch[key], previousValue = snapshot[key];
254
+ "deep" === this.stateMergeMode && isPlainObjectValue(previousValue) && isPlainObjectValue(nextValue) ? snapshot[key] = deepMergeAttributeValue(previousValue, nextValue) : snapshot[key] = cloneAttributeValue(nextValue);
255
+ })), snapshot) : snapshot;
256
+ }
257
+ syncObjectToSnapshot(target, snapshot) {
258
+ const delta = new Map;
259
+ return new Set([ ...Object.keys(target), ...Object.keys(snapshot) ]).forEach((key => {
260
+ const hasNext = Object.prototype.hasOwnProperty.call(snapshot, key), previousValue = target[key];
261
+ if (!hasNext) return void (Object.prototype.hasOwnProperty.call(target, key) && (delta.set(key, {
262
+ prev: previousValue,
263
+ next: void 0
264
+ }), delete target[key]));
265
+ const nextValue = snapshot[key];
266
+ (0, vutils_1.isEqual)(previousValue, nextValue) || (delta.set(key, {
267
+ prev: previousValue,
268
+ next: nextValue
269
+ }), target[key] = cloneAttributeValue(nextValue));
270
+ })), delta;
271
+ }
272
+ _syncAttribute() {
273
+ const snapshot = this.buildStaticAttributeSnapshot(), delta = this.syncObjectToSnapshot(this.attribute, snapshot);
274
+ return this.valid = this.isValid(), delta;
275
+ }
276
+ _syncFinalAttributeFromStaticTruth() {
277
+ const target = this.finalAttribute;
278
+ if (!target) return;
279
+ const snapshot = this.buildStaticAttributeSnapshot();
280
+ this.syncObjectToSnapshot(target, snapshot);
281
+ }
282
+ submitUpdateByDelta(delta, forceUpdateTag = !1) {
283
+ var _a;
284
+ if (forceUpdateTag) return this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(),
285
+ void this.addUpdateLayoutTag();
286
+ let category = attribute_update_classifier_1.UpdateCategory.NONE;
287
+ delta.forEach(((entry, key) => {
288
+ let nextCategory = (0, attribute_update_classifier_1.classifyAttributeDelta)(key, entry.prev, entry.next);
289
+ nextCategory & attribute_update_classifier_1.UpdateCategory.PICK && (nextCategory |= attribute_update_classifier_1.UpdateCategory.BOUNDS),
290
+ nextCategory === attribute_update_classifier_1.UpdateCategory.PAINT && this.needUpdateTag(key) && (nextCategory = attribute_update_classifier_1.UpdateCategory.SHAPE | attribute_update_classifier_1.UpdateCategory.BOUNDS),
291
+ category |= nextCategory;
292
+ })), category !== attribute_update_classifier_1.UpdateCategory.NONE && (null === (_a = (0,
293
+ state_perf_monitor_1.getStageStatePerfMonitor)(this.stage)) || void 0 === _a || _a.recordCategory(category)),
294
+ category & attribute_update_classifier_1.UpdateCategory.SHAPE ? this.addUpdateShapeAndBoundsTag() : category & attribute_update_classifier_1.UpdateCategory.BOUNDS && this.addUpdateBoundTag(),
295
+ category & attribute_update_classifier_1.UpdateCategory.PAINT && this.addUpdatePaintTag(),
296
+ category & attribute_update_classifier_1.UpdateCategory.TRANSFORM && this.addUpdatePositionTag(),
297
+ category & attribute_update_classifier_1.UpdateCategory.LAYOUT && this.addUpdateLayoutTag();
298
+ }
299
+ commitBaseAttributeMutation(forceUpdateTag = !1, context) {
300
+ var _a, _b;
301
+ (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && (this.resolverEpoch += 1,
302
+ null === (_b = this.stateEngine) || void 0 === _b || _b.invalidateResolverCache(),
303
+ this.recomputeCurrentStatePatch());
304
+ const delta = this._syncAttribute();
305
+ this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
306
+ }
307
+ applyBaseAttributes(params) {
308
+ const keys = Object.keys(params);
309
+ for (let i = 0; i < keys.length; i++) {
310
+ const key = keys[i];
311
+ this.baseAttributes[key] = cloneAttributeValue(params[key]);
312
+ }
313
+ }
314
+ applyTransientAttributes(params, forceUpdateTag = !1, context) {
315
+ const delta = new Map, keys = Object.keys(params);
316
+ for (let i = 0; i < keys.length; i++) {
317
+ const key = keys[i], previousValue = this.attribute[key], nextValue = params[key];
318
+ (0, vutils_1.isEqual)(previousValue, nextValue) || (delta.set(key, {
319
+ prev: previousValue,
320
+ next: nextValue
321
+ }), this.attribute[key] = cloneAttributeValue(nextValue));
322
+ }
323
+ this.valid = this.isValid(), this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
324
+ }
325
+ _restoreAttributeFromStaticTruth(context) {
326
+ this._syncFinalAttributeFromStaticTruth();
327
+ const delta = this._syncAttribute();
328
+ this.submitUpdateByDelta(delta), this.onAttributeUpdate(context);
329
+ }
82
330
  setMode(mode) {
83
331
  "3d" === mode ? this.set3dMode() : this.set2dMode();
84
332
  }
@@ -100,6 +348,17 @@ class Graphic extends node_tree_1.Node {
100
348
  onAnimateBind(animate) {
101
349
  this._emitCustomEvent("animate-bind", animate);
102
350
  }
351
+ visitTrackedAnimates(cb) {
352
+ const hook = this.forEachTrackedAnimate;
353
+ "function" != typeof hook ? this.animates && this.animates.forEach(cb) : hook.call(this, cb);
354
+ }
355
+ hasAnyTrackedAnimate() {
356
+ var _a;
357
+ const hook = this.hasTrackedAnimate;
358
+ if ("function" == typeof hook) return hook.call(this);
359
+ const getTrackedAnimates = this.getTrackedAnimates;
360
+ return "function" == typeof getTrackedAnimates ? getTrackedAnimates.call(this).size > 0 : !!(null === (_a = this.animates) || void 0 === _a ? void 0 : _a.size);
361
+ }
103
362
  tryUpdateAABBBounds() {
104
363
  const full = "imprecise" === this.attribute.boundsMode;
105
364
  if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
@@ -177,7 +436,7 @@ class Graphic extends node_tree_1.Node {
177
436
  bounds;
178
437
  }
179
438
  updatePathProxyAABBBounds(aabbBounds) {
180
- const path = this.getPathProxy();
439
+ const path = "function" == typeof this.pathProxy ? this.pathProxy(this.attribute) : this.pathProxy;
181
440
  if (!path) return !1;
182
441
  const boundsContext = new bounds_context_1.BoundsContext(aabbBounds);
183
442
  return (0, render_command_list_1.renderCommandList)(path.commandList, boundsContext, 0, 0),
@@ -202,7 +461,7 @@ class Graphic extends node_tree_1.Node {
202
461
  return !0;
203
462
  }
204
463
  tryUpdateLocalTransMatrix(clearTag = !0) {
205
- return this._transMatrix || (this._transMatrix = new vutils_2.Matrix), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(),
464
+ return this._transMatrix || (this._transMatrix = new vutils_1.Matrix), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(),
206
465
  clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
207
466
  }
208
467
  shouldUpdateAABBBounds() {
@@ -231,7 +490,7 @@ class Graphic extends node_tree_1.Node {
231
490
  containsPoint(x, y, mode, picker) {
232
491
  if (!picker) return !1;
233
492
  if (mode === enums_1.IContainPointMode.GLOBAL) {
234
- const point = new vutils_2.Point(x, y);
493
+ const point = new vutils_1.Point(x, y);
235
494
  this.parent && this.parent.globalTransMatrix.transformPoint(point, point), x = point.x,
236
495
  y = point.y;
237
496
  }
@@ -244,11 +503,11 @@ class Graphic extends node_tree_1.Node {
244
503
  this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
245
504
  }
246
505
  setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
247
- this.setAttributes(params, forceUpdateTag, context), this.animates && this.animates.forEach((animate => {
506
+ this.visitTrackedAnimates((animate => {
248
507
  (animate.priority !== 1 / 0 || ignorePriority) && Object.keys(params).forEach((key => {
249
508
  animate.preventAttr(key);
250
509
  }));
251
- }));
510
+ })), this.applyTransientAttributes(params, forceUpdateTag, context);
252
511
  }
253
512
  setAttributes(params, forceUpdateTag = !1, context) {
254
513
  params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background && this.loadImage(params.background, !0),
@@ -256,23 +515,15 @@ class Graphic extends node_tree_1.Node {
256
515
  this._setAttributes(params, forceUpdateTag, context));
257
516
  }
258
517
  _setAttributes(params, forceUpdateTag = !1, context) {
259
- const keys = Object.keys(params);
260
- for (let i = 0; i < keys.length; i++) {
261
- const key = keys[i];
262
- this.attribute[key] = params[key];
263
- }
264
- this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTags(keys) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(),
265
- this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context);
518
+ this.applyBaseAttributes(params), this.commitBaseAttributeMutation(forceUpdateTag, context);
266
519
  }
267
520
  setAttribute(key, value, forceUpdateTag, context) {
268
- var _a;
269
521
  const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
270
522
  [key]: value
271
523
  }, this.attribute, key, context);
272
- params ? this._setAttributes(params, forceUpdateTag, context) : (0, vutils_2.isNil)(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value,
273
- this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(),
274
- this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value,
275
- "background" === key ? this.loadImage(value, !0) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
524
+ params ? this._setAttributes(params, forceUpdateTag, context) : (this.applyBaseAttributes({
525
+ [key]: value
526
+ }), this.commitBaseAttributeMutation(!!forceUpdateTag, context)), "background" === key ? this.loadImage(value, !0) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
276
527
  }
277
528
  needUpdateTags(keys, k = exports.GRAPHIC_UPDATE_TAG_KEY) {
278
529
  for (let i = 0; i < k.length; i++) {
@@ -292,7 +543,8 @@ class Graphic extends node_tree_1.Node {
292
543
  type: enums_1.AttributeUpdateType.INIT
293
544
  };
294
545
  params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params,
295
- this.attribute = params, params.background && this.loadImage(params.background, !0),
546
+ this.baseAttributes = cloneAttributeValue(params), this.attribute || (this.attribute = {}),
547
+ this.resolvedStatePatch = void 0, this._syncAttribute(), params.background && this.loadImage(params.background, !0),
296
548
  isExternalTexture(params.texture) && this.loadImage(params.texture, !1), params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic),
297
549
  this._updateTag = enums_1.UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
298
550
  }
@@ -305,15 +557,14 @@ class Graphic extends node_tree_1.Node {
305
557
  x: x,
306
558
  y: y
307
559
  }, this.attribute, tempConstantXYKey, context);
308
- params && (x = params.x, y = params.y, delete params.x, delete params.y, this._setAttributes(params));
309
- const attribute = this.attribute, postMatrix = attribute.postMatrix;
560
+ params && (x = params.x, y = params.y, delete params.x, delete params.y, this.applyBaseAttributes(params));
561
+ const attribute = this.baseAttributes, postMatrix = attribute.postMatrix;
310
562
  return postMatrix ? application_1.application.transformUtil.fromMatrix(postMatrix, postMatrix).translate(x, y) : (attribute.x = (null !== (_a = attribute.x) && void 0 !== _a ? _a : config_1.DefaultTransform.x) + x,
311
563
  attribute.y = (null !== (_b = attribute.y) && void 0 !== _b ? _b : config_1.DefaultTransform.y) + y),
312
- this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
313
- this.onAttributeUpdate(context), this;
564
+ this.commitBaseAttributeMutation(!1, context), this;
314
565
  }
315
566
  translateTo(x, y) {
316
- const attribute = this.attribute;
567
+ const attribute = this.baseAttributes;
317
568
  if (attribute.x === x && attribute.y === y) return this;
318
569
  const context = {
319
570
  type: enums_1.AttributeUpdateType.TRANSLATE_TO
@@ -321,9 +572,9 @@ class Graphic extends node_tree_1.Node {
321
572
  x: x,
322
573
  y: y
323
574
  }, this.attribute, tempConstantXYKey, context);
324
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.x = x,
325
- attribute.y = y, this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
326
- this.onAttributeUpdate(context), this);
575
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
576
+ this) : (attribute.x = x, attribute.y = y, this.commitBaseAttributeMutation(!1, context),
577
+ this);
327
578
  }
328
579
  scale(scaleX, scaleY, scaleCenter) {
329
580
  var _a, _b;
@@ -336,19 +587,18 @@ class Graphic extends node_tree_1.Node {
336
587
  scaleCenter: scaleCenter
337
588
  }, this.attribute, tempConstantScaleXYKey, context);
338
589
  params && (scaleX = params.scaleX, scaleY = params.scaleY, delete params.scaleX,
339
- delete params.scaleY, this._setAttributes(params));
340
- const attribute = this.attribute;
590
+ delete params.scaleY, this.applyBaseAttributes(params));
591
+ const attribute = this.baseAttributes;
341
592
  if (scaleCenter) {
342
593
  let {postMatrix: postMatrix} = this.attribute;
343
- postMatrix || (postMatrix = new vutils_2.Matrix, attribute.postMatrix = postMatrix),
594
+ postMatrix || (postMatrix = new vutils_1.Matrix, attribute.postMatrix = postMatrix),
344
595
  application_1.application.transformUtil.fromMatrix(postMatrix, postMatrix).scale(scaleX, scaleY, scaleCenter);
345
596
  } else attribute.scaleX = (null !== (_a = attribute.scaleX) && void 0 !== _a ? _a : config_1.DefaultTransform.scaleX) * scaleX,
346
597
  attribute.scaleY = (null !== (_b = attribute.scaleY) && void 0 !== _b ? _b : config_1.DefaultTransform.scaleY) * scaleY;
347
- return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
348
- this.onAttributeUpdate(context), this;
598
+ return this.commitBaseAttributeMutation(!1, context), this;
349
599
  }
350
600
  scaleTo(scaleX, scaleY) {
351
- const attribute = this.attribute;
601
+ const attribute = this.baseAttributes;
352
602
  if (attribute.scaleX === scaleX && attribute.scaleY === scaleY) return this;
353
603
  const context = {
354
604
  type: enums_1.AttributeUpdateType.SCALE_TO
@@ -356,9 +606,9 @@ class Graphic extends node_tree_1.Node {
356
606
  scaleX: scaleX,
357
607
  scaleY: scaleY
358
608
  }, this.attribute, tempConstantScaleXYKey, context);
359
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.scaleX = scaleX,
360
- attribute.scaleY = scaleY, this.addUpdatePositionTag(), this.addUpdateBoundTag(),
361
- this.addUpdateLayoutTag(), this.onAttributeUpdate(context), this);
609
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
610
+ this) : (attribute.scaleX = scaleX, attribute.scaleY = scaleY, this.commitBaseAttributeMutation(!1, context),
611
+ this);
362
612
  }
363
613
  rotate(angle, rotateCenter) {
364
614
  var _a;
@@ -369,25 +619,24 @@ class Graphic extends node_tree_1.Node {
369
619
  angle: angle,
370
620
  rotateCenter: rotateCenter
371
621
  }, this.attribute, tempConstantAngleKey, context);
372
- params && (delete params.angle, this._setAttributes(params, !1, context));
373
- const attribute = this.attribute;
622
+ params && (delete params.angle, this.applyBaseAttributes(params));
623
+ const attribute = this.baseAttributes;
374
624
  if (rotateCenter) {
375
- let {postMatrix: postMatrix} = this.attribute;
376
- postMatrix || (postMatrix = new vutils_2.Matrix, attribute.postMatrix = postMatrix),
625
+ let {postMatrix: postMatrix} = this.baseAttributes;
626
+ postMatrix || (postMatrix = new vutils_1.Matrix, this.baseAttributes.postMatrix = postMatrix),
377
627
  application_1.application.transformUtil.fromMatrix(postMatrix, postMatrix).rotate(angle, rotateCenter);
378
628
  } else attribute.angle = (null !== (_a = attribute.angle) && void 0 !== _a ? _a : config_1.DefaultTransform.angle) + angle;
379
- return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
380
- this.onAttributeUpdate(context), this;
629
+ return this.commitBaseAttributeMutation(!1, context), this;
381
630
  }
382
631
  rotateTo(angle) {
383
- const attribute = this.attribute;
632
+ const attribute = this.baseAttributes;
384
633
  if (attribute.angle === angle) return this;
385
634
  const context = {
386
635
  type: enums_1.AttributeUpdateType.ROTATE_TO
387
636
  }, params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(angle, this.attribute, tempConstantAngleKey, context);
388
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.angle = angle,
389
- this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
390
- this.onAttributeUpdate(context), this);
637
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
638
+ this) : (attribute.angle = angle, this.commitBaseAttributeMutation(!1, context),
639
+ this);
391
640
  }
392
641
  skewTo(b, c) {
393
642
  return this;
@@ -401,99 +650,146 @@ class Graphic extends node_tree_1.Node {
401
650
  this.tryUpdateLocalTransMatrix());
402
651
  }
403
652
  hasState(stateName) {
404
- return !(!this.currentStates || !this.currentStates.length) && (!!(0, vutils_2.isNil)(stateName) || this.currentStates.includes(stateName));
653
+ return !(!this.currentStates || !this.currentStates.length) && (!!(0, vutils_1.isNil)(stateName) || this.currentStates.includes(stateName));
405
654
  }
406
655
  getState(stateName) {
407
656
  var _a;
408
657
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
409
658
  }
410
- applyStateAttrs(attrs, stateNames, hasAnimation, isClear) {
411
- var _a, _b;
412
- if (hasAnimation) {
413
- const keys = Object.keys(attrs), noWorkAttrs = this.getNoWorkAnimateAttr(), animateAttrs = {};
414
- let noAnimateAttrs;
415
- keys.forEach((key => {
416
- noWorkAttrs[key] ? (noAnimateAttrs || (noAnimateAttrs = {}), noAnimateAttrs[key] = attrs[key]) : animateAttrs[key] = isClear && void 0 === attrs[key] ? this.getDefaultAttribute(key) : attrs[key];
417
- }));
418
- const stateAnimateConfig = null !== (_b = null !== (_a = this.context && this.context.stateAnimateConfig) && void 0 !== _a ? _a : this.stateAnimateConfig) && void 0 !== _b ? _b : config_2.DefaultStateAnimateConfig;
419
- this.applyAnimationState([ "state" ], [ {
420
- name: "state",
421
- animation: {
422
- type: "state",
423
- to: animateAttrs,
424
- duration: stateAnimateConfig.duration,
425
- easing: stateAnimateConfig.easing
426
- }
427
- } ]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
428
- type: enums_1.AttributeUpdateType.STATE
429
- }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
430
- } else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
431
- type: enums_1.AttributeUpdateType.STATE
432
- }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
433
- this._emitCustomEvent("afterStateUpdate", {
434
- type: enums_1.AttributeUpdateType.STATE
659
+ createStateModel() {
660
+ const {compiledDefinitions: compiledDefinitions, stateProxyEligibility: stateProxyEligibility, stateProxyModeKey: stateProxyModeKey} = this.resolveEffectiveCompiledDefinitions();
661
+ return this.compiledStateDefinitions = compiledDefinitions, compiledDefinitions ? this.stateEngine && this.stateEngineCompiledDefinitions === compiledDefinitions && this.stateEngineStateProxy === this.stateProxy && this.stateEngineStateSort === this.stateSort && this.stateEngineMergeMode === this.stateMergeMode && this.stateEngineStateProxyModeKey === stateProxyModeKey || (this.stateEngine = new state_engine_1.StateEngine({
662
+ compiledDefinitions: compiledDefinitions,
663
+ stateSort: this.stateSort,
664
+ stateProxy: this.stateProxy,
665
+ stateProxyEligibility: stateProxyEligibility,
666
+ states: this.states,
667
+ mergeMode: this.stateMergeMode
668
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy,
669
+ this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode,
670
+ this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0,
671
+ this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0),
672
+ new state_model_1.StateModel({
673
+ states: this.states,
674
+ currentStates: this.currentStates,
675
+ stateSort: this.stateSort,
676
+ stateProxy: this.stateProxy,
677
+ stateEngine: this.stateEngine
678
+ });
679
+ }
680
+ resolveStateAnimateConfig(animateConfig) {
681
+ var _a, _b, _c;
682
+ return null !== (_c = null !== (_a = null != animateConfig ? animateConfig : this.stateAnimateConfig) && void 0 !== _a ? _a : null === (_b = this.context) || void 0 === _b ? void 0 : _b.stateAnimateConfig) && void 0 !== _c ? _c : config_2.DefaultStateAnimateConfig;
683
+ }
684
+ applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig) {
685
+ const resolvedAnimateConfig = hasAnimation ? this.resolveStateAnimateConfig(animateConfig) : void 0, transitionOptions = resolvedAnimateConfig ? {
686
+ animateConfig: resolvedAnimateConfig
687
+ } : void 0;
688
+ if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, stateNames, transitionOptions);
689
+ const plan = this.getStateTransitionOrchestrator().analyzeTransition({}, attrs, stateNames, hasAnimation, {
690
+ noWorkAnimateAttr: this.getNoWorkAnimateAttr(),
691
+ animateConfig: resolvedAnimateConfig
435
692
  });
693
+ this.getStateTransitionOrchestrator().applyTransition(this, plan, hasAnimation, transitionOptions);
436
694
  }
437
695
  updateNormalAttrs(stateAttrs) {
438
- const newNormalAttrs = {};
439
- this.normalAttrs ? (Object.keys(stateAttrs).forEach((key => {
440
- key in this.normalAttrs ? (newNormalAttrs[key] = this.normalAttrs[key], delete this.normalAttrs[key]) : newNormalAttrs[key] = this.getNormalAttribute(key);
441
- })), Object.keys(this.normalAttrs).forEach((key => {
442
- stateAttrs[key] = this.normalAttrs[key];
443
- }))) : Object.keys(stateAttrs).forEach((key => {
444
- newNormalAttrs[key] = this.getNormalAttribute(key);
445
- })), this.normalAttrs = newNormalAttrs;
696
+ this._deprecatedNormalAttrsView = cloneAttributeValue(this.baseAttributes);
446
697
  }
447
698
  stopStateAnimates(type = "end") {
448
- this.animates && this.animates.forEach((animate => {
449
- animate.stateNames && (animate.stop(type), this.animates.delete(animate.id));
450
- }));
699
+ const stopAnimationState = this.stopAnimationState;
700
+ if ("function" == typeof stopAnimationState) return void stopAnimationState.call(this, "state", type);
701
+ const stateAnimates = [];
702
+ this.visitTrackedAnimates((animate => {
703
+ animate.stateNames && stateAnimates.push(animate);
704
+ })), stateAnimates.forEach((animate => animate.stop(type)));
451
705
  }
452
706
  getNormalAttribute(key) {
453
707
  var _a, _b;
454
708
  const value = this.attribute[key];
455
- return this.animates && this.animates.size ? 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];
709
+ return this.hasAnyTrackedAnimate() ? 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];
456
710
  }
457
711
  clearStates(hasAnimation) {
458
- this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [],
459
- this.normalAttrs = null;
712
+ var _a, _b, _c;
713
+ const previousStates = this.currentStates ? this.currentStates.slice() : [], transition = this.createStateModel().clearStates();
714
+ if (!transition.changed && 0 === previousStates.length) return this.currentStates = [],
715
+ this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1,
716
+ void this.clearSharedStateActiveRegistrations();
717
+ const resolvedStateAttrs = cloneAttributeValue(null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : {});
718
+ transition.changed && !this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !0) || (this.currentStates = transition.states,
719
+ this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1,
720
+ this.clearSharedStateActiveRegistrations(), null === (_b = (0, state_perf_monitor_1.getStageStatePerfMonitor)(this.stage)) || void 0 === _b || _b.incrementCounter("stateCommits"),
721
+ null === (_c = (0, state_perf_monitor_1.getStageStatePerfMonitor)(this.stage)) || void 0 === _c || _c.recordEvent("state-commit", {
722
+ graphicId: this._uid,
723
+ targetStates: []
724
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0)) : (this.stopStateAnimates(),
725
+ this._restoreAttributeFromStaticTruth({
726
+ type: enums_1.AttributeUpdateType.STATE
727
+ }), this._emitCustomEvent("afterStateUpdate", {
728
+ type: enums_1.AttributeUpdateType.STATE
729
+ })));
460
730
  }
461
731
  removeState(stateName, hasAnimation) {
462
- if (this.currentStates) {
463
- const filter = (0, vutils_1.isArray)(stateName) ? s => !stateName.includes(s) : s => s !== stateName, newStates = this.currentStates.filter(filter);
464
- newStates.length !== this.currentStates.length && this.useStates(newStates, hasAnimation);
465
- }
732
+ const transition = this.createStateModel().removeState(stateName);
733
+ transition.changed && this.useStates(transition.states, hasAnimation);
466
734
  }
467
735
  toggleState(stateName, hasAnimation) {
468
- if (this.hasState(stateName)) this.removeState(stateName, hasAnimation); else {
469
- if ((this.currentStates ? this.currentStates.indexOf(stateName) : -1) < 0) {
470
- const nextStates = this.currentStates ? this.currentStates.slice() : [];
471
- nextStates.push(stateName), this.useStates(nextStates, hasAnimation);
472
- }
473
- }
736
+ const transition = this.createStateModel().toggleState(stateName);
737
+ transition.changed && this.useStates(transition.states, hasAnimation);
474
738
  }
475
739
  addState(stateName, keepCurrentStates, hasAnimation) {
476
- var _a;
477
- if (this.currentStates && this.currentStates.includes(stateName) && (keepCurrentStates || 1 === this.currentStates.length)) return;
478
- const newStates = keepCurrentStates && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? this.currentStates.concat([ stateName ]) : [ stateName ];
479
- this.useStates(newStates, hasAnimation);
740
+ const transition = this.createStateModel().addState(stateName, keepCurrentStates);
741
+ transition.changed && this.useStates(transition.states, hasAnimation);
480
742
  }
481
743
  useStates(states, hasAnimation) {
482
- var _a;
744
+ var _a, _b, _c, _d, _e;
483
745
  if (!states.length) return void this.clearStates(hasAnimation);
484
- if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some(((stateName, index) => this.currentStates[index] !== stateName)))) return;
485
- this.stateSort && (states = states.sort(this.stateSort));
486
- const stateAttrs = {};
487
- states.forEach((stateName => {
488
- var _a;
489
- const attrs = this.stateProxy ? this.stateProxy(stateName, states) : null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
490
- attrs && Object.assign(stateAttrs, attrs);
491
- })), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
746
+ const previousStates = this.currentStates ? this.currentStates.slice() : [], stateResolveBaseAttrs = null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute, stateModel = this.createStateModel();
747
+ null === (_b = this.stateEngine) || void 0 === _b || _b.setResolveContext(this, stateResolveBaseAttrs);
748
+ const transition = stateModel.useStates(states);
749
+ if (!transition.changed && this.sameStateNames(previousStates, transition.states)) return;
750
+ const effectiveStates = null !== (_c = transition.effectiveStates) && void 0 !== _c ? _c : transition.states, resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
751
+ this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1) && (this.currentStates = transition.states,
752
+ this.effectiveStates = [ ...effectiveStates ], this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs),
753
+ this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), null === (_d = (0,
754
+ state_perf_monitor_1.getStageStatePerfMonitor)(this.stage)) || void 0 === _d || _d.incrementCounter("stateCommits"),
755
+ null === (_e = (0, state_perf_monitor_1.getStageStatePerfMonitor)(this.stage)) || void 0 === _e || _e.recordEvent("state-commit", {
756
+ graphicId: this._uid,
757
+ targetStates: [ ...transition.states ]
758
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation)) : (this.stopStateAnimates(),
759
+ this._restoreAttributeFromStaticTruth({
760
+ type: enums_1.AttributeUpdateType.STATE
761
+ }), this._emitCustomEvent("afterStateUpdate", {
762
+ type: enums_1.AttributeUpdateType.STATE
763
+ })));
764
+ }
765
+ invalidateResolver() {
766
+ var _a, _b;
767
+ if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
768
+ const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute;
769
+ this.stateEngine.setResolveContext(this, stateResolveBaseAttrs), this.resolverEpoch += 1,
770
+ this.stateEngine.invalidateResolverCache();
771
+ const transition = this.stateEngine.applyStates(this.currentStates), resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
772
+ this.effectiveStates = [ ...transition.effectiveStates ], this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs),
773
+ this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(),
774
+ this._restoreAttributeFromStaticTruth({
775
+ type: enums_1.AttributeUpdateType.STATE
776
+ }), this._emitCustomEvent("afterStateUpdate", {
777
+ type: enums_1.AttributeUpdateType.STATE
778
+ });
779
+ }
780
+ sameStateNames(left, right) {
781
+ const normalizedLeft = null != left ? left : [], normalizedRight = null != right ? right : [];
782
+ if (normalizedLeft.length !== normalizedRight.length) return !1;
783
+ for (let index = 0; index < normalizedLeft.length; index++) if (normalizedLeft[index] !== normalizedRight[index]) return !1;
784
+ return !0;
492
785
  }
493
786
  addUpdateBoundTag() {
494
787
  this._updateTag |= enums_1.UpdateTag.UPDATE_BOUNDS, this.parent && this.parent.addChildUpdateBoundTag(),
495
788
  this.glyphHost && this.glyphHost.addUpdateBoundTag();
496
789
  }
790
+ addUpdatePaintTag() {
791
+ this._updateTag |= enums_1.UpdateTag.UPDATE_PAINT;
792
+ }
497
793
  addUpdateShapeTag() {
498
794
  this._updateTag |= enums_1.UpdateTag.UPDATE_SHAPE;
499
795
  }
@@ -507,6 +803,9 @@ class Graphic extends node_tree_1.Node {
507
803
  clearUpdateBoundTag() {
508
804
  this._updateTag &= enums_1.UpdateTag.CLEAR_BOUNDS;
509
805
  }
806
+ clearUpdatePaintTag() {
807
+ this._updateTag &= enums_1.UpdateTag.CLEAR_PAINT;
808
+ }
510
809
  addUpdatePositionTag() {
511
810
  this.shadowRoot && this.shadowRoot.addUpdateGlobalPositionTag(), this._updateTag |= enums_1.UpdateTag.UPDATE_GLOBAL_LOCAL_MATRIX;
512
811
  }
@@ -550,7 +849,7 @@ class Graphic extends node_tree_1.Node {
550
849
  let _anchor = [ 0, 0 ];
551
850
  const params = {};
552
851
  if (anchor && angle && (_anchor = this.getAnchor(anchor, params)), !scaleCenter || 1 === scaleX && 1 === scaleY) (0,
553
- vutils_2.normalTransform)(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor); else {
852
+ vutils_1.normalTransform)(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor); else {
554
853
  const m = this._transMatrix;
555
854
  m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]),
556
855
  m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params, !0), application_1.application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
@@ -572,23 +871,35 @@ class Graphic extends node_tree_1.Node {
572
871
  }
573
872
  }
574
873
  setStage(stage, layer) {
575
- if (this.stage !== stage) {
576
- if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer),
577
- this.animates && this.animates.size) {
578
- const timeline = stage.getTimeline();
579
- this.animates.forEach((a => {
580
- a.timeline.isGlobal && (a.setTimeline(timeline), timeline.addAnimate(a));
874
+ var _a, _b, _c, _d, _e, _f, _g, _h;
875
+ const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application_1.application.graphicService, previousStage = this.stage;
876
+ if (this.stage !== stage || this.layer !== layer) {
877
+ if (this.stage = stage, this.layer = layer, this.syncSharedStateScopeBindingFromTree(!!(null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length)),
878
+ this.setStageToShadowRoot(stage, layer), this.hasAnyTrackedAnimate()) {
879
+ const previousTimeline = null === (_e = null == previousStage ? void 0 : previousStage.getTimeline) || void 0 === _e ? void 0 : _e.call(previousStage), nextTimeline = null === (_f = null == stage ? void 0 : stage.getTimeline) || void 0 === _f ? void 0 : _f.call(stage), detachedStageAnimates = [];
880
+ this.visitTrackedAnimates((a => {
881
+ (!!previousTimeline && a.timeline === previousTimeline || a.timeline.isGlobal) && (nextTimeline ? a.timeline !== nextTimeline && (previousTimeline && a.timeline === previousTimeline && previousTimeline.removeAnimate(a, !1),
882
+ a.setTimeline(nextTimeline), nextTimeline.addAnimate(a)) : previousTimeline && a.timeline === previousTimeline && (previousTimeline.removeAnimate(a, !1),
883
+ detachedStageAnimates.push(a)));
884
+ })), detachedStageAnimates.length && (detachedStageAnimates.forEach((animate => {
885
+ var _a;
886
+ animate.stop();
887
+ const untrackAnimate = this.untrackAnimate;
888
+ "function" == typeof untrackAnimate ? untrackAnimate.call(this, animate.id) : null === (_a = this.animates) || void 0 === _a || _a.delete(animate.id);
889
+ })), this._restoreAttributeFromStaticTruth({
890
+ type: enums_1.AttributeUpdateType.ANIMATE_END
581
891
  }));
582
892
  }
583
- this._onSetStage && this._onSetStage(this, stage, layer), this.getGraphicService().onSetStage(this, stage);
893
+ return this._onSetStage && this._onSetStage(this, stage, layer), void (null === (_g = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _g || _g.call(graphicService, this, stage));
584
894
  }
895
+ this.syncSharedStateScopeBindingFromTree(!!(null === (_h = this.currentStates) || void 0 === _h ? void 0 : _h.length));
585
896
  }
586
897
  setStageToShadowRoot(stage, layer) {
587
898
  this.shadowRoot && this.shadowRoot.setStage(stage, layer);
588
899
  }
589
900
  onAddStep(step) {}
590
901
  onStop(props) {
591
- props && this.setAttributes(props, !1, {
902
+ this._restoreAttributeFromStaticTruth({
592
903
  type: enums_1.AttributeUpdateType.ANIMATE_END
593
904
  });
594
905
  }
@@ -603,7 +914,8 @@ class Graphic extends node_tree_1.Node {
603
914
  this._onSetStage = cb, immediate && this.stage && cb(this, this.stage);
604
915
  }
605
916
  attachShadow(shadowRoot) {
606
- return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application_1.application.graphicService.creator.shadowRoot(this),
917
+ var _a, _b, _c;
918
+ return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null !== (_c = null != shadowRoot ? shadowRoot : null === (_b = (_a = application_1.application.graphicService.creator).shadowRoot) || void 0 === _b ? void 0 : _b.call(_a, this)) && void 0 !== _c ? _c : require("./shadow-root").createShadowRoot(this),
607
919
  this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
608
920
  }
609
921
  detachShadow() {
@@ -619,16 +931,8 @@ class Graphic extends node_tree_1.Node {
619
931
  };
620
932
  }
621
933
  createPathProxy(path) {
622
- const proxy = (0, vutils_2.isString)(path, !0) ? (new custom_path2d_1.CustomPath2D).fromString(path) : new custom_path2d_1.CustomPath2D;
623
- return this.pathProxy = proxy, this.attribute.pathProxy = proxy, this.addUpdateShapeAndBoundsTag(),
624
- this.onAttributeUpdate(), proxy;
625
- }
626
- getPathProxy() {
627
- var _a;
628
- const attributePathProxy = null === (_a = this.attribute) || void 0 === _a ? void 0 : _a.pathProxy, rawPathProxy = null != attributePathProxy ? attributePathProxy : this.pathProxy;
629
- if (!rawPathProxy) return null;
630
- const resolvedPathProxy = "function" == typeof rawPathProxy ? rawPathProxy(this.attribute) : rawPathProxy;
631
- return resolvedPathProxy ? (0, vutils_2.isString)(resolvedPathProxy, !0) ? (new custom_path2d_1.CustomPath2D).fromString(resolvedPathProxy) : resolvedPathProxy : null;
934
+ return (0, vutils_1.isString)(path, !0) ? this.pathProxy = (new custom_path2d_1.CustomPath2D).fromString(path) : this.pathProxy = new custom_path2d_1.CustomPath2D,
935
+ this.pathProxy;
632
936
  }
633
937
  loadImage(image, background = !1) {
634
938
  if (background && (null == image ? void 0 : image.background) && (image = image.background),
@@ -642,8 +946,8 @@ class Graphic extends node_tree_1.Node {
642
946
  };
643
947
  this.resources.set(url, cache), "string" == typeof image ? (cache.state = "loading",
644
948
  image.startsWith("<svg") ? (loader_1.ResourceLoader.GetSvg(image, this), this.backgroundImg = this.backgroundImg || background) : ((0,
645
- vutils_2.isValidUrl)(image) || image.includes("/") || (0, vutils_2.isBase64)(image)) && (loader_1.ResourceLoader.GetImage(image, this),
646
- this.backgroundImg = this.backgroundImg || background)) : (0, vutils_2.isObject)(image) ? (cache.state = "success",
949
+ vutils_1.isValidUrl)(image) || image.includes("/") || (0, vutils_1.isBase64)(image)) && (loader_1.ResourceLoader.GetImage(image, this),
950
+ this.backgroundImg = this.backgroundImg || background)) : (0, vutils_1.isObject)(image) ? (cache.state = "success",
647
951
  cache.data = image, this.backgroundImg = this.backgroundImg || background) : cache.state = "fail";
648
952
  }
649
953
  setShadowGraphic(graphic) {
@@ -662,33 +966,51 @@ class Graphic extends node_tree_1.Node {
662
966
  const res = this.resources.get(url);
663
967
  res && (res.state = "fail", cb && cb());
664
968
  }
665
- _stopAnimates(animates) {
666
- animates && animates.forEach((animate => {
969
+ _stopAnimates() {
970
+ const animates = [];
971
+ this.visitTrackedAnimates((animate => {
972
+ animates.push(animate);
973
+ })), animates.forEach((animate => {
667
974
  animate.stop();
668
975
  }));
669
976
  }
670
977
  stopAnimates(stopChildren = !1) {
671
- this._stopAnimates(this.animates), this.shadowRoot && this.shadowRoot.stopAnimates(!0),
672
- this.isContainer && stopChildren && this.forEachChildren((c => {
978
+ this._stopAnimates(), this.shadowRoot && this.shadowRoot.stopAnimates(!0), this.isContainer && stopChildren && this.forEachChildren((c => {
673
979
  c.stopAnimates(stopChildren);
674
980
  }));
675
981
  }
676
982
  release() {
677
- this.releaseStatus = "released", this.stopAnimates(), application_1.application.graphicService.onRelease(this),
983
+ var _a, _b, _c;
984
+ this.releaseStatus = "released", this.clearSharedStateActiveRegistrations(), this.stopAnimates();
985
+ const graphicService = null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application_1.application.graphicService;
986
+ null === (_c = null == graphicService ? void 0 : graphicService.onRelease) || void 0 === _c || _c.call(graphicService, this),
678
987
  super.release();
679
988
  }
680
- _emitCustomEvent(type, context) {
989
+ _dispatchCustomEvent(type, context) {
681
990
  var _a, _b;
682
991
  if (this._events && type in this._events) {
683
992
  const changeEvent = new event_1.CustomEvent(type, context);
684
- changeEvent.bubbles = !1, changeEvent.manager = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem) || void 0 === _b ? void 0 : _b.manager,
685
- this.dispatchEvent(changeEvent);
993
+ changeEvent.bubbles = !1;
994
+ const manager = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem) || void 0 === _b ? void 0 : _b.manager;
995
+ return manager ? (changeEvent.manager = manager, this.dispatchEvent(changeEvent)) : node_tree_1.Node.prototype.dispatchEvent.call(this, changeEvent);
686
996
  }
997
+ return !0;
998
+ }
999
+ beforeStateUpdate(attrs, prevStates, nextStates, hasAnimation, isClear) {
1000
+ return this._dispatchCustomEvent("beforeStateUpdate", {
1001
+ type: enums_1.AttributeUpdateType.STATE,
1002
+ attrs: Object.assign({}, attrs),
1003
+ prevStates: prevStates.slice(),
1004
+ nextStates: nextStates.slice(),
1005
+ hasAnimation: !!hasAnimation,
1006
+ isClear: !!isClear
1007
+ });
1008
+ }
1009
+ _emitCustomEvent(type, context) {
1010
+ this._dispatchCustomEvent(type, context);
687
1011
  }
688
1012
  toCustomPath() {
689
1013
  var _a, _b, _c;
690
- const pathProxy = this.getPathProxy();
691
- if (pathProxy) return pathProxy;
692
1014
  const renderer = null === (_c = null === (_b = (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.renderService) || application_1.application.renderService) || void 0 === _b ? void 0 : _b.drawContribution) || void 0 === _c ? void 0 : _c.getRenderContribution(this);
693
1015
  if (renderer) {
694
1016
  const context = new canvas_1.EmptyContext2d(null, 1);
@@ -699,14 +1021,14 @@ class Graphic extends node_tree_1.Node {
699
1021
  }
700
1022
 
701
1023
  function backgroundNotImage(image) {
702
- return "string" == typeof image ? !(image.startsWith("<svg") || (0, vutils_2.isValidUrl)(image) || image.includes("/") || (0,
703
- vutils_2.isBase64)(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
1024
+ return "string" == typeof image ? !(image.startsWith("<svg") || (0, vutils_1.isValidUrl)(image) || image.includes("/") || (0,
1025
+ vutils_1.isBase64)(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
704
1026
  }
705
1027
 
706
1028
  function isExternalTexture(texture) {
707
1029
  return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || (0,
708
- vutils_2.isValidUrl)(texture) || texture.includes("/") || (0, vutils_2.isBase64)(texture)) : (0,
709
- vutils_2.isObject)(texture));
1030
+ vutils_1.isValidUrl)(texture) || texture.includes("/") || (0, vutils_1.isBase64)(texture)) : (0,
1031
+ vutils_1.isObject)(texture));
710
1032
  }
711
1033
 
712
1034
  exports.Graphic = Graphic, Graphic.userSymbolMap = {}, Graphic.mixin(event_1.EventTarget);