@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
@@ -1,6 +1,4 @@
1
- import { isArray, max, OBBBounds } from "@visactor/vutils";
2
-
3
- import { AABBBounds, Matrix, normalTransform, Point, isNil, isString, isValidUrl, isBase64, isObject } from "@visactor/vutils";
1
+ import { AABBBounds, isArray, isEqual, max, Matrix, OBBBounds, normalTransform, Point, isNil, isString, isValidUrl, isBase64, isObject } from "@visactor/vutils";
4
2
 
5
3
  import { Node } from "./node-tree";
6
4
 
@@ -32,14 +30,71 @@ import { DefaultStateAnimateConfig } from "../animate/config";
32
30
 
33
31
  import { EmptyContext2d } from "../canvas";
34
32
 
35
- const _tempBounds = new AABBBounds, tempMatrix = new Matrix, tempBounds = new AABBBounds;
33
+ import { StateDefinitionCompiler } from "./state/state-definition-compiler";
34
+
35
+ import { StateEngine } from "./state/state-engine";
36
+
37
+ import { StateModel } from "./state/state-model";
38
+
39
+ import { UpdateCategory, classifyAttributeDelta } from "./state/attribute-update-classifier";
40
+
41
+ import { StateStyleResolver } from "./state/state-style-resolver";
42
+
43
+ import { StateTransitionOrchestrator } from "./state/state-transition-orchestrator";
44
+
45
+ import { collectSharedStateScopeChain, ensureSharedStateScopeFresh } from "./state/shared-state-scope";
46
+
47
+ import { enqueueGraphicSharedStateRefresh, scheduleStageSharedStateRefresh } from "./state/shared-state-refresh";
48
+
49
+ import { getStageStatePerfMonitor } from "./state/state-perf-monitor";
50
+
51
+ const _tempBounds = new AABBBounds, loadShadowRootFactory = () => require("./shadow-root"), tempMatrix = new Matrix;
36
52
 
37
53
  export const PURE_STYLE_KEY = [ "stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity" ];
38
54
 
39
- export const GRAPHIC_UPDATE_TAG_KEY = [ "lineWidth", "pathProxy", "scaleX", "scaleY", "angle", "anchor", "visible" ];
55
+ export const GRAPHIC_UPDATE_TAG_KEY = [ "lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible" ];
40
56
 
41
57
  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 Point;
42
58
 
59
+ function isPlainObjectValue(value) {
60
+ return "object" == typeof value && null != value && !isArray(value);
61
+ }
62
+
63
+ function cloneAttributeValue(value) {
64
+ if (!isPlainObjectValue(value)) return value;
65
+ const source = value, clone = {};
66
+ return Object.keys(source).forEach((key => {
67
+ const nextValue = source[key];
68
+ clone[key] = isPlainObjectValue(nextValue) ? cloneAttributeValue(nextValue) : nextValue;
69
+ })), clone;
70
+ }
71
+
72
+ function cloneSimpleAttributeRecord(value) {
73
+ return isPlainObjectValue(value) ? Object.assign({}, value) : value;
74
+ }
75
+
76
+ export function shouldUseSimpleAttributeFastPath(value) {
77
+ return !!isPlainObjectValue(value) && !Object.keys(value).some((key => isPlainObjectValue(value[key])));
78
+ }
79
+
80
+ function cloneAttributeSurface(value) {
81
+ if (!isPlainObjectValue(value)) return value;
82
+ const source = value, clone = {};
83
+ return Object.keys(source).forEach((key => {
84
+ const nextValue = source[key];
85
+ clone[key] = isPlainObjectValue(nextValue) ? Object.assign({}, nextValue) : nextValue;
86
+ })), clone;
87
+ }
88
+
89
+ function deepMergeAttributeValue(base, value) {
90
+ var _a;
91
+ const result = null !== (_a = cloneAttributeValue(base)) && void 0 !== _a ? _a : {};
92
+ return Object.keys(value).forEach((key => {
93
+ const nextValue = value[key], previousValue = result[key];
94
+ isPlainObjectValue(previousValue) && isPlainObjectValue(nextValue) ? result[key] = deepMergeAttributeValue(previousValue, nextValue) : result[key] = cloneAttributeValue(nextValue);
95
+ })), result;
96
+ }
97
+
43
98
  export const NOWORK_ANIMATE_ATTR = {
44
99
  strokeSeg: 1,
45
100
  boundsPadding: 2,
@@ -96,10 +151,18 @@ export class Graphic extends Node {
96
151
  }
97
152
  constructor(params = {}) {
98
153
  var _a;
99
- super(), this._AABBBounds = new AABBBounds, this._updateTag = UpdateTag.INIT, this.attribute = params,
154
+ super(), this.resolverEpoch = 0, this._AABBBounds = new AABBBounds, this._updateTag = UpdateTag.INIT;
155
+ const useSimpleAttributeFastPath = shouldUseSimpleAttributeFastPath(params), initialBaseAttributes = useSimpleAttributeFastPath ? cloneSimpleAttributeRecord(params) : cloneAttributeValue(params);
156
+ this.baseAttributes = initialBaseAttributes, this.attribute = useSimpleAttributeFastPath ? cloneSimpleAttributeRecord(initialBaseAttributes) : cloneAttributeSurface(initialBaseAttributes),
100
157
  this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background && this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0),
101
158
  isExternalTexture(params.texture) && this.loadImage(params.texture, !1), params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
102
159
  }
160
+ get normalAttrs() {
161
+ return this.baseAttributes;
162
+ }
163
+ set normalAttrs(value) {
164
+ this._deprecatedNormalAttrsView = null != value ? value : void 0;
165
+ }
103
166
  getGraphicService() {
104
167
  var _a, _b;
105
168
  return null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application.graphicService;
@@ -107,6 +170,203 @@ export class Graphic extends Node {
107
170
  getAttributes() {
108
171
  return this.attribute;
109
172
  }
173
+ getStateStyleResolver(mergeMode) {
174
+ return "deep" === mergeMode ? (this.deepStateStyleResolver || (this.deepStateStyleResolver = new StateStyleResolver({
175
+ mergeMode: "deep"
176
+ })), this.deepStateStyleResolver) : (this.stateStyleResolver || (this.stateStyleResolver = new StateStyleResolver),
177
+ this.stateStyleResolver);
178
+ }
179
+ getStateTransitionOrchestrator() {
180
+ return this.stateTransitionOrchestrator || (this.stateTransitionOrchestrator = new StateTransitionOrchestrator),
181
+ this.stateTransitionOrchestrator;
182
+ }
183
+ resolveBoundSharedStateScope() {
184
+ var _a;
185
+ let parent = this.parent;
186
+ for (;parent; ) {
187
+ if (parent.sharedStateScope) return parent.sharedStateScope;
188
+ parent = parent.parent;
189
+ }
190
+ return null === (_a = this.stage) || void 0 === _a ? void 0 : _a.rootSharedStateScope;
191
+ }
192
+ syncSharedStateScopeBindingFromTree(markDirty = !0) {
193
+ var _a;
194
+ const nextScope = this.resolveBoundSharedStateScope();
195
+ return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(),
196
+ !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0,
197
+ this.localFallbackCompiledDefinitions = void 0, this.compiledStateDefinitions = void 0,
198
+ this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0,
199
+ this.stateEngineStateProxyModeKey = void 0, this.syncSharedStateActiveRegistrations(),
200
+ markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(),
201
+ !0);
202
+ }
203
+ syncSharedStateActiveRegistrations() {
204
+ var _a, _b;
205
+ const nextScopes = (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.boundSharedStateScope ? new Set(collectSharedStateScopeChain(this.boundSharedStateScope)) : new Set;
206
+ (null !== (_b = this.registeredActiveScopes) && void 0 !== _b ? _b : new Set).forEach((scope => {
207
+ nextScopes.has(scope) || scope.subtreeActiveDescendants.delete(this);
208
+ })), nextScopes.forEach((scope => {
209
+ scope.subtreeActiveDescendants.add(this);
210
+ })), this.registeredActiveScopes = nextScopes;
211
+ }
212
+ clearSharedStateActiveRegistrations() {
213
+ const previousScopes = this.registeredActiveScopes;
214
+ previousScopes && (previousScopes.forEach((scope => {
215
+ scope.subtreeActiveDescendants.delete(this);
216
+ })), previousScopes.clear()), this.registeredActiveScopes = void 0;
217
+ }
218
+ markSharedStateDirty() {
219
+ this.sharedStateDirty = !0, enqueueGraphicSharedStateRefresh(this.stage, this),
220
+ scheduleStageSharedStateRefresh(this.stage);
221
+ }
222
+ onParentSharedStateTreeChanged(stage, layer) {
223
+ this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingFromTree() : this.setStage(stage, layer);
224
+ }
225
+ refreshSharedStateBeforeRender() {
226
+ var _a;
227
+ (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? (this.syncSharedStateScopeBindingFromTree(!1),
228
+ this.boundSharedStateScope && ensureSharedStateScopeFresh(this.boundSharedStateScope),
229
+ this.recomputeCurrentStatePatch(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
230
+ type: AttributeUpdateType.STATE
231
+ }), this._emitCustomEvent("afterStateUpdate", {
232
+ type: AttributeUpdateType.STATE
233
+ }), this.sharedStateDirty = !1) : this.sharedStateDirty = !1;
234
+ }
235
+ getLocalStatesVersion() {
236
+ var _a, _b;
237
+ return this.localStateDefinitionsSource !== this.states && (this.localStateDefinitionsSource = this.states,
238
+ this.localFallbackVersion = (null !== (_a = this.localFallbackVersion) && void 0 !== _a ? _a : 0) + 1),
239
+ null !== (_b = this.localFallbackVersion) && void 0 !== _b ? _b : 0;
240
+ }
241
+ resolveEffectiveCompiledDefinitions() {
242
+ this.syncSharedStateScopeBindingFromTree(!1);
243
+ const boundScope = this.boundSharedStateScope;
244
+ boundScope && (ensureSharedStateScopeFresh(boundScope), this.boundSharedStateRevision = boundScope.revision);
245
+ const hasStates = !!this.states && Object.keys(this.states).length > 0;
246
+ if (!boundScope) {
247
+ if (!hasStates) return {
248
+ compiledDefinitions: void 0,
249
+ stateProxyModeKey: "none"
250
+ };
251
+ const cacheKey = `local:${this.getLocalStatesVersion()}`;
252
+ return this.compiledStateDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.compiledStateDefinitions = (new StateDefinitionCompiler).compile(this.states),
253
+ this.compiledStateDefinitionsCacheKey = cacheKey), {
254
+ compiledDefinitions: this.compiledStateDefinitions,
255
+ stateProxyModeKey: this.stateProxy ? "legacy-all" : "none"
256
+ };
257
+ }
258
+ const sharedCompiledDefinitions = boundScope.effectiveCompiledDefinitions;
259
+ if (!hasStates) return this.localFallbackCompiledDefinitions = void 0, {
260
+ compiledDefinitions: sharedCompiledDefinitions,
261
+ stateProxyModeKey: this.stateProxy ? "shared-disabled" : "none",
262
+ stateProxyEligibility: this.stateProxy ? () => !1 : void 0
263
+ };
264
+ const localStates = this.states, missingLocalStateDefinitions = {}, missingStateNames = [];
265
+ if (Object.keys(localStates).forEach((stateName => {
266
+ sharedCompiledDefinitions.has(stateName) || (missingLocalStateDefinitions[stateName] = localStates[stateName],
267
+ missingStateNames.push(stateName));
268
+ })), !missingStateNames.length) return this.localFallbackCompiledDefinitions = void 0,
269
+ {
270
+ compiledDefinitions: sharedCompiledDefinitions,
271
+ stateProxyModeKey: this.stateProxy ? "shared-disabled" : "none",
272
+ stateProxyEligibility: this.stateProxy ? () => !1 : void 0
273
+ };
274
+ const localStatesVersion = this.getLocalStatesVersion(), stateProxyModeKey = this.stateProxy ? `missing:${missingStateNames.sort().join("|")}` : "none", cacheKey = `shared:${boundScope.revision}:fallback:${localStatesVersion}:${stateProxyModeKey}`;
275
+ return this.localFallbackCompiledDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.localFallbackCompiledDefinitions = (new StateDefinitionCompiler).compile(Object.assign(Object.assign({}, boundScope.effectiveSourceDefinitions), missingLocalStateDefinitions)),
276
+ this.compiledStateDefinitionsCacheKey = cacheKey), {
277
+ compiledDefinitions: this.localFallbackCompiledDefinitions,
278
+ stateProxyModeKey: stateProxyModeKey,
279
+ stateProxyEligibility: this.stateProxy ? stateName => !sharedCompiledDefinitions.has(stateName) : void 0
280
+ };
281
+ }
282
+ recomputeCurrentStatePatch() {
283
+ var _a, _b, _c, _d;
284
+ if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [],
285
+ this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
286
+ const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute, stateModel = this.createStateModel();
287
+ null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs);
288
+ 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);
289
+ this.currentStates = transition.states, this.effectiveStates = [ ...effectiveStates ],
290
+ this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs), this.syncSharedStateActiveRegistrations();
291
+ }
292
+ buildStaticAttributeSnapshot() {
293
+ var _a;
294
+ const snapshot = cloneAttributeValue(null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : {}), resolvedPatch = this.resolvedStatePatch;
295
+ return resolvedPatch ? (Object.keys(resolvedPatch).forEach((key => {
296
+ const nextValue = resolvedPatch[key], previousValue = snapshot[key];
297
+ "deep" === this.stateMergeMode && isPlainObjectValue(previousValue) && isPlainObjectValue(nextValue) ? snapshot[key] = deepMergeAttributeValue(previousValue, nextValue) : snapshot[key] = cloneAttributeValue(nextValue);
298
+ })), snapshot) : snapshot;
299
+ }
300
+ syncObjectToSnapshot(target, snapshot) {
301
+ const delta = new Map;
302
+ return new Set([ ...Object.keys(target), ...Object.keys(snapshot) ]).forEach((key => {
303
+ const hasNext = Object.prototype.hasOwnProperty.call(snapshot, key), previousValue = target[key];
304
+ if (!hasNext) return void (Object.prototype.hasOwnProperty.call(target, key) && (delta.set(key, {
305
+ prev: previousValue,
306
+ next: void 0
307
+ }), delete target[key]));
308
+ const nextValue = snapshot[key];
309
+ isEqual(previousValue, nextValue) || (delta.set(key, {
310
+ prev: previousValue,
311
+ next: nextValue
312
+ }), target[key] = cloneAttributeValue(nextValue));
313
+ })), delta;
314
+ }
315
+ _syncAttribute() {
316
+ const snapshot = this.buildStaticAttributeSnapshot(), delta = this.syncObjectToSnapshot(this.attribute, snapshot);
317
+ return this.valid = this.isValid(), delta;
318
+ }
319
+ _syncFinalAttributeFromStaticTruth() {
320
+ const target = this.finalAttribute;
321
+ if (!target) return;
322
+ const snapshot = this.buildStaticAttributeSnapshot();
323
+ this.syncObjectToSnapshot(target, snapshot);
324
+ }
325
+ submitUpdateByDelta(delta, forceUpdateTag = !1) {
326
+ var _a;
327
+ if (forceUpdateTag) return this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(),
328
+ void this.addUpdateLayoutTag();
329
+ let category = UpdateCategory.NONE;
330
+ delta.forEach(((entry, key) => {
331
+ let nextCategory = classifyAttributeDelta(key, entry.prev, entry.next);
332
+ nextCategory & UpdateCategory.PICK && (nextCategory |= UpdateCategory.BOUNDS), nextCategory === UpdateCategory.PAINT && this.needUpdateTag(key) && (nextCategory = UpdateCategory.SHAPE | UpdateCategory.BOUNDS),
333
+ category |= nextCategory;
334
+ })), category !== UpdateCategory.NONE && (null === (_a = getStageStatePerfMonitor(this.stage)) || void 0 === _a || _a.recordCategory(category)),
335
+ category & UpdateCategory.SHAPE ? this.addUpdateShapeAndBoundsTag() : category & UpdateCategory.BOUNDS && this.addUpdateBoundTag(),
336
+ category & UpdateCategory.PAINT && this.addUpdatePaintTag(), category & UpdateCategory.TRANSFORM && this.addUpdatePositionTag(),
337
+ category & UpdateCategory.LAYOUT && this.addUpdateLayoutTag();
338
+ }
339
+ commitBaseAttributeMutation(forceUpdateTag = !1, context) {
340
+ var _a, _b;
341
+ (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && (this.resolverEpoch += 1,
342
+ null === (_b = this.stateEngine) || void 0 === _b || _b.invalidateResolverCache(),
343
+ this.recomputeCurrentStatePatch());
344
+ const delta = this._syncAttribute();
345
+ this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
346
+ }
347
+ applyBaseAttributes(params) {
348
+ const keys = Object.keys(params);
349
+ for (let i = 0; i < keys.length; i++) {
350
+ const key = keys[i];
351
+ this.baseAttributes[key] = cloneAttributeValue(params[key]);
352
+ }
353
+ }
354
+ applyTransientAttributes(params, forceUpdateTag = !1, context) {
355
+ const delta = new Map, keys = Object.keys(params);
356
+ for (let i = 0; i < keys.length; i++) {
357
+ const key = keys[i], previousValue = this.attribute[key], nextValue = params[key];
358
+ isEqual(previousValue, nextValue) || (delta.set(key, {
359
+ prev: previousValue,
360
+ next: nextValue
361
+ }), this.attribute[key] = cloneAttributeValue(nextValue));
362
+ }
363
+ this.valid = this.isValid(), this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
364
+ }
365
+ _restoreAttributeFromStaticTruth(context) {
366
+ this._syncFinalAttributeFromStaticTruth();
367
+ const delta = this._syncAttribute();
368
+ this.submitUpdateByDelta(delta), this.onAttributeUpdate(context);
369
+ }
110
370
  setMode(mode) {
111
371
  "3d" === mode ? this.set3dMode() : this.set2dMode();
112
372
  }
@@ -128,6 +388,17 @@ export class Graphic extends Node {
128
388
  onAnimateBind(animate) {
129
389
  this._emitCustomEvent("animate-bind", animate);
130
390
  }
391
+ visitTrackedAnimates(cb) {
392
+ const hook = this.forEachTrackedAnimate;
393
+ "function" != typeof hook ? this.animates && this.animates.forEach(cb) : hook.call(this, cb);
394
+ }
395
+ hasAnyTrackedAnimate() {
396
+ var _a;
397
+ const hook = this.hasTrackedAnimate;
398
+ if ("function" == typeof hook) return hook.call(this);
399
+ const getTrackedAnimates = this.getTrackedAnimates;
400
+ return "function" == typeof getTrackedAnimates ? getTrackedAnimates.call(this).size > 0 : !!(null === (_a = this.animates) || void 0 === _a ? void 0 : _a.size);
401
+ }
131
402
  tryUpdateAABBBounds() {
132
403
  const full = "imprecise" === this.attribute.boundsMode;
133
404
  if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
@@ -202,7 +473,7 @@ export class Graphic extends Node {
202
473
  bounds;
203
474
  }
204
475
  updatePathProxyAABBBounds(aabbBounds) {
205
- const path = this.getPathProxy();
476
+ const path = "function" == typeof this.pathProxy ? this.pathProxy(this.attribute) : this.pathProxy;
206
477
  if (!path) return !1;
207
478
  const boundsContext = new BoundsContext(aabbBounds);
208
479
  return renderCommandList(path.commandList, boundsContext, 0, 0), !0;
@@ -268,11 +539,11 @@ export class Graphic extends Node {
268
539
  this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
269
540
  }
270
541
  setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
271
- this.setAttributes(params, forceUpdateTag, context), this.animates && this.animates.forEach((animate => {
542
+ this.visitTrackedAnimates((animate => {
272
543
  (animate.priority !== 1 / 0 || ignorePriority) && Object.keys(params).forEach((key => {
273
544
  animate.preventAttr(key);
274
545
  }));
275
- }));
546
+ })), this.applyTransientAttributes(params, forceUpdateTag, context);
276
547
  }
277
548
  setAttributes(params, forceUpdateTag = !1, context) {
278
549
  params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background && this.loadImage(params.background, !0),
@@ -280,23 +551,15 @@ export class Graphic extends Node {
280
551
  this._setAttributes(params, forceUpdateTag, context));
281
552
  }
282
553
  _setAttributes(params, forceUpdateTag = !1, context) {
283
- const keys = Object.keys(params);
284
- for (let i = 0; i < keys.length; i++) {
285
- const key = keys[i];
286
- this.attribute[key] = params[key];
287
- }
288
- this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTags(keys) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(),
289
- this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context);
554
+ this.applyBaseAttributes(params), this.commitBaseAttributeMutation(forceUpdateTag, context);
290
555
  }
291
556
  setAttribute(key, value, forceUpdateTag, context) {
292
- var _a;
293
557
  const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
294
558
  [key]: value
295
559
  }, this.attribute, key, context);
296
- params ? this._setAttributes(params, forceUpdateTag, context) : isNil(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value,
297
- this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(),
298
- this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value,
299
- "background" === key ? this.loadImage(value, !0) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
560
+ params ? this._setAttributes(params, forceUpdateTag, context) : (this.applyBaseAttributes({
561
+ [key]: value
562
+ }), this.commitBaseAttributeMutation(!!forceUpdateTag, context)), "background" === key ? this.loadImage(value, !0) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
300
563
  }
301
564
  needUpdateTags(keys, k = GRAPHIC_UPDATE_TAG_KEY) {
302
565
  for (let i = 0; i < k.length; i++) {
@@ -316,7 +579,8 @@ export class Graphic extends Node {
316
579
  type: AttributeUpdateType.INIT
317
580
  };
318
581
  params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params,
319
- this.attribute = params, params.background && this.loadImage(params.background, !0),
582
+ this.baseAttributes = cloneAttributeValue(params), this.attribute || (this.attribute = {}),
583
+ this.resolvedStatePatch = void 0, this._syncAttribute(), params.background && this.loadImage(params.background, !0),
320
584
  isExternalTexture(params.texture) && this.loadImage(params.texture, !1), params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic),
321
585
  this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
322
586
  }
@@ -329,15 +593,14 @@ export class Graphic extends Node {
329
593
  x: x,
330
594
  y: y
331
595
  }, this.attribute, tempConstantXYKey, context);
332
- params && (x = params.x, y = params.y, delete params.x, delete params.y, this._setAttributes(params));
333
- const attribute = this.attribute, postMatrix = attribute.postMatrix;
596
+ params && (x = params.x, y = params.y, delete params.x, delete params.y, this.applyBaseAttributes(params));
597
+ const attribute = this.baseAttributes, postMatrix = attribute.postMatrix;
334
598
  return postMatrix ? application.transformUtil.fromMatrix(postMatrix, postMatrix).translate(x, y) : (attribute.x = (null !== (_a = attribute.x) && void 0 !== _a ? _a : DefaultTransform.x) + x,
335
599
  attribute.y = (null !== (_b = attribute.y) && void 0 !== _b ? _b : DefaultTransform.y) + y),
336
- this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
337
- this.onAttributeUpdate(context), this;
600
+ this.commitBaseAttributeMutation(!1, context), this;
338
601
  }
339
602
  translateTo(x, y) {
340
- const attribute = this.attribute;
603
+ const attribute = this.baseAttributes;
341
604
  if (attribute.x === x && attribute.y === y) return this;
342
605
  const context = {
343
606
  type: AttributeUpdateType.TRANSLATE_TO
@@ -345,9 +608,9 @@ export class Graphic extends Node {
345
608
  x: x,
346
609
  y: y
347
610
  }, this.attribute, tempConstantXYKey, context);
348
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.x = x,
349
- attribute.y = y, this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
350
- this.onAttributeUpdate(context), this);
611
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
612
+ this) : (attribute.x = x, attribute.y = y, this.commitBaseAttributeMutation(!1, context),
613
+ this);
351
614
  }
352
615
  scale(scaleX, scaleY, scaleCenter) {
353
616
  var _a, _b;
@@ -360,18 +623,17 @@ export class Graphic extends Node {
360
623
  scaleCenter: scaleCenter
361
624
  }, this.attribute, tempConstantScaleXYKey, context);
362
625
  params && (scaleX = params.scaleX, scaleY = params.scaleY, delete params.scaleX,
363
- delete params.scaleY, this._setAttributes(params));
364
- const attribute = this.attribute;
626
+ delete params.scaleY, this.applyBaseAttributes(params));
627
+ const attribute = this.baseAttributes;
365
628
  if (scaleCenter) {
366
629
  let {postMatrix: postMatrix} = this.attribute;
367
630
  postMatrix || (postMatrix = new Matrix, attribute.postMatrix = postMatrix), application.transformUtil.fromMatrix(postMatrix, postMatrix).scale(scaleX, scaleY, scaleCenter);
368
631
  } else attribute.scaleX = (null !== (_a = attribute.scaleX) && void 0 !== _a ? _a : DefaultTransform.scaleX) * scaleX,
369
632
  attribute.scaleY = (null !== (_b = attribute.scaleY) && void 0 !== _b ? _b : DefaultTransform.scaleY) * scaleY;
370
- return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
371
- this.onAttributeUpdate(context), this;
633
+ return this.commitBaseAttributeMutation(!1, context), this;
372
634
  }
373
635
  scaleTo(scaleX, scaleY) {
374
- const attribute = this.attribute;
636
+ const attribute = this.baseAttributes;
375
637
  if (attribute.scaleX === scaleX && attribute.scaleY === scaleY) return this;
376
638
  const context = {
377
639
  type: AttributeUpdateType.SCALE_TO
@@ -379,9 +641,9 @@ export class Graphic extends Node {
379
641
  scaleX: scaleX,
380
642
  scaleY: scaleY
381
643
  }, this.attribute, tempConstantScaleXYKey, context);
382
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.scaleX = scaleX,
383
- attribute.scaleY = scaleY, this.addUpdatePositionTag(), this.addUpdateBoundTag(),
384
- this.addUpdateLayoutTag(), this.onAttributeUpdate(context), this);
644
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
645
+ this) : (attribute.scaleX = scaleX, attribute.scaleY = scaleY, this.commitBaseAttributeMutation(!1, context),
646
+ this);
385
647
  }
386
648
  rotate(angle, rotateCenter) {
387
649
  var _a;
@@ -392,24 +654,24 @@ export class Graphic extends Node {
392
654
  angle: angle,
393
655
  rotateCenter: rotateCenter
394
656
  }, this.attribute, tempConstantAngleKey, context);
395
- params && (delete params.angle, this._setAttributes(params, !1, context));
396
- const attribute = this.attribute;
657
+ params && (delete params.angle, this.applyBaseAttributes(params));
658
+ const attribute = this.baseAttributes;
397
659
  if (rotateCenter) {
398
- let {postMatrix: postMatrix} = this.attribute;
399
- postMatrix || (postMatrix = new Matrix, attribute.postMatrix = postMatrix), application.transformUtil.fromMatrix(postMatrix, postMatrix).rotate(angle, rotateCenter);
660
+ let {postMatrix: postMatrix} = this.baseAttributes;
661
+ postMatrix || (postMatrix = new Matrix, this.baseAttributes.postMatrix = postMatrix),
662
+ application.transformUtil.fromMatrix(postMatrix, postMatrix).rotate(angle, rotateCenter);
400
663
  } else attribute.angle = (null !== (_a = attribute.angle) && void 0 !== _a ? _a : DefaultTransform.angle) + angle;
401
- return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
402
- this.onAttributeUpdate(context), this;
664
+ return this.commitBaseAttributeMutation(!1, context), this;
403
665
  }
404
666
  rotateTo(angle) {
405
- const attribute = this.attribute;
667
+ const attribute = this.baseAttributes;
406
668
  if (attribute.angle === angle) return this;
407
669
  const context = {
408
670
  type: AttributeUpdateType.ROTATE_TO
409
671
  }, params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(angle, this.attribute, tempConstantAngleKey, context);
410
- return params ? (this._setAttributes(params, !1, context), this) : (attribute.angle = angle,
411
- this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(),
412
- this.onAttributeUpdate(context), this);
672
+ return params ? (this.applyBaseAttributes(params), this.commitBaseAttributeMutation(!1, context),
673
+ this) : (attribute.angle = angle, this.commitBaseAttributeMutation(!1, context),
674
+ this);
413
675
  }
414
676
  skewTo(b, c) {
415
677
  return this;
@@ -429,93 +691,139 @@ export class Graphic extends Node {
429
691
  var _a;
430
692
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
431
693
  }
432
- applyStateAttrs(attrs, stateNames, hasAnimation, isClear) {
433
- var _a, _b;
434
- if (hasAnimation) {
435
- const keys = Object.keys(attrs), noWorkAttrs = this.getNoWorkAnimateAttr(), animateAttrs = {};
436
- let noAnimateAttrs;
437
- keys.forEach((key => {
438
- noWorkAttrs[key] ? (noAnimateAttrs || (noAnimateAttrs = {}), noAnimateAttrs[key] = attrs[key]) : animateAttrs[key] = isClear && void 0 === attrs[key] ? this.getDefaultAttribute(key) : attrs[key];
439
- }));
440
- const stateAnimateConfig = null !== (_b = null !== (_a = this.context && this.context.stateAnimateConfig) && void 0 !== _a ? _a : this.stateAnimateConfig) && void 0 !== _b ? _b : DefaultStateAnimateConfig;
441
- this.applyAnimationState([ "state" ], [ {
442
- name: "state",
443
- animation: {
444
- type: "state",
445
- to: animateAttrs,
446
- duration: stateAnimateConfig.duration,
447
- easing: stateAnimateConfig.easing
448
- }
449
- } ]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
450
- type: AttributeUpdateType.STATE
451
- }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
452
- } else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
453
- type: AttributeUpdateType.STATE
454
- }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
455
- this._emitCustomEvent("afterStateUpdate", {
456
- type: AttributeUpdateType.STATE
694
+ createStateModel() {
695
+ const {compiledDefinitions: compiledDefinitions, stateProxyEligibility: stateProxyEligibility, stateProxyModeKey: stateProxyModeKey} = this.resolveEffectiveCompiledDefinitions();
696
+ 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 StateEngine({
697
+ compiledDefinitions: compiledDefinitions,
698
+ stateSort: this.stateSort,
699
+ stateProxy: this.stateProxy,
700
+ stateProxyEligibility: stateProxyEligibility,
701
+ states: this.states,
702
+ mergeMode: this.stateMergeMode
703
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy,
704
+ this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode,
705
+ this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0,
706
+ this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0),
707
+ new StateModel({
708
+ states: this.states,
709
+ currentStates: this.currentStates,
710
+ stateSort: this.stateSort,
711
+ stateProxy: this.stateProxy,
712
+ stateEngine: this.stateEngine
457
713
  });
458
714
  }
715
+ resolveStateAnimateConfig(animateConfig) {
716
+ var _a, _b, _c;
717
+ 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 : DefaultStateAnimateConfig;
718
+ }
719
+ applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig) {
720
+ const resolvedAnimateConfig = hasAnimation ? this.resolveStateAnimateConfig(animateConfig) : void 0, transitionOptions = resolvedAnimateConfig ? {
721
+ animateConfig: resolvedAnimateConfig
722
+ } : void 0;
723
+ if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, stateNames, transitionOptions);
724
+ const plan = this.getStateTransitionOrchestrator().analyzeTransition({}, attrs, stateNames, hasAnimation, {
725
+ noWorkAnimateAttr: this.getNoWorkAnimateAttr(),
726
+ animateConfig: resolvedAnimateConfig
727
+ });
728
+ this.getStateTransitionOrchestrator().applyTransition(this, plan, hasAnimation, transitionOptions);
729
+ }
459
730
  updateNormalAttrs(stateAttrs) {
460
- const newNormalAttrs = {};
461
- this.normalAttrs ? (Object.keys(stateAttrs).forEach((key => {
462
- key in this.normalAttrs ? (newNormalAttrs[key] = this.normalAttrs[key], delete this.normalAttrs[key]) : newNormalAttrs[key] = this.getNormalAttribute(key);
463
- })), Object.keys(this.normalAttrs).forEach((key => {
464
- stateAttrs[key] = this.normalAttrs[key];
465
- }))) : Object.keys(stateAttrs).forEach((key => {
466
- newNormalAttrs[key] = this.getNormalAttribute(key);
467
- })), this.normalAttrs = newNormalAttrs;
731
+ this._deprecatedNormalAttrsView = cloneAttributeValue(this.baseAttributes);
468
732
  }
469
733
  stopStateAnimates(type = "end") {
470
- this.animates && this.animates.forEach((animate => {
471
- animate.stateNames && (animate.stop(type), this.animates.delete(animate.id));
472
- }));
734
+ const stopAnimationState = this.stopAnimationState;
735
+ if ("function" == typeof stopAnimationState) return void stopAnimationState.call(this, "state", type);
736
+ const stateAnimates = [];
737
+ this.visitTrackedAnimates((animate => {
738
+ animate.stateNames && stateAnimates.push(animate);
739
+ })), stateAnimates.forEach((animate => animate.stop(type)));
473
740
  }
474
741
  getNormalAttribute(key) {
475
742
  var _a, _b;
476
743
  const value = this.attribute[key];
477
- 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];
744
+ 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];
478
745
  }
479
746
  clearStates(hasAnimation) {
480
- this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [],
481
- this.normalAttrs = null;
747
+ var _a, _b, _c;
748
+ const previousStates = this.currentStates ? this.currentStates.slice() : [], transition = this.createStateModel().clearStates();
749
+ if (!transition.changed && 0 === previousStates.length) return this.currentStates = [],
750
+ this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1,
751
+ void this.clearSharedStateActiveRegistrations();
752
+ const resolvedStateAttrs = cloneAttributeValue(null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : {});
753
+ transition.changed && !this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !0) || (this.currentStates = transition.states,
754
+ this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1,
755
+ this.clearSharedStateActiveRegistrations(), null === (_b = getStageStatePerfMonitor(this.stage)) || void 0 === _b || _b.incrementCounter("stateCommits"),
756
+ null === (_c = getStageStatePerfMonitor(this.stage)) || void 0 === _c || _c.recordEvent("state-commit", {
757
+ graphicId: this._uid,
758
+ targetStates: []
759
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0)) : (this.stopStateAnimates(),
760
+ this._restoreAttributeFromStaticTruth({
761
+ type: AttributeUpdateType.STATE
762
+ }), this._emitCustomEvent("afterStateUpdate", {
763
+ type: AttributeUpdateType.STATE
764
+ })));
482
765
  }
483
766
  removeState(stateName, hasAnimation) {
484
- if (this.currentStates) {
485
- const filter = isArray(stateName) ? s => !stateName.includes(s) : s => s !== stateName, newStates = this.currentStates.filter(filter);
486
- newStates.length !== this.currentStates.length && this.useStates(newStates, hasAnimation);
487
- }
767
+ const transition = this.createStateModel().removeState(stateName);
768
+ transition.changed && this.useStates(transition.states, hasAnimation);
488
769
  }
489
770
  toggleState(stateName, hasAnimation) {
490
- if (this.hasState(stateName)) this.removeState(stateName, hasAnimation); else {
491
- if ((this.currentStates ? this.currentStates.indexOf(stateName) : -1) < 0) {
492
- const nextStates = this.currentStates ? this.currentStates.slice() : [];
493
- nextStates.push(stateName), this.useStates(nextStates, hasAnimation);
494
- }
495
- }
771
+ const transition = this.createStateModel().toggleState(stateName);
772
+ transition.changed && this.useStates(transition.states, hasAnimation);
496
773
  }
497
774
  addState(stateName, keepCurrentStates, hasAnimation) {
498
- var _a;
499
- if (this.currentStates && this.currentStates.includes(stateName) && (keepCurrentStates || 1 === this.currentStates.length)) return;
500
- const newStates = keepCurrentStates && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? this.currentStates.concat([ stateName ]) : [ stateName ];
501
- this.useStates(newStates, hasAnimation);
775
+ const transition = this.createStateModel().addState(stateName, keepCurrentStates);
776
+ transition.changed && this.useStates(transition.states, hasAnimation);
502
777
  }
503
778
  useStates(states, hasAnimation) {
504
- var _a;
779
+ var _a, _b, _c, _d, _e;
505
780
  if (!states.length) return void this.clearStates(hasAnimation);
506
- if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some(((stateName, index) => this.currentStates[index] !== stateName)))) return;
507
- this.stateSort && (states = states.sort(this.stateSort));
508
- const stateAttrs = {};
509
- states.forEach((stateName => {
510
- var _a;
511
- const attrs = this.stateProxy ? this.stateProxy(stateName, states) : null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
512
- attrs && Object.assign(stateAttrs, attrs);
513
- })), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
781
+ const previousStates = this.currentStates ? this.currentStates.slice() : [], stateResolveBaseAttrs = null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute, stateModel = this.createStateModel();
782
+ null === (_b = this.stateEngine) || void 0 === _b || _b.setResolveContext(this, stateResolveBaseAttrs);
783
+ const transition = stateModel.useStates(states);
784
+ if (!transition.changed && this.sameStateNames(previousStates, transition.states)) return;
785
+ 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);
786
+ this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1) && (this.currentStates = transition.states,
787
+ this.effectiveStates = [ ...effectiveStates ], this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs),
788
+ this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), null === (_d = getStageStatePerfMonitor(this.stage)) || void 0 === _d || _d.incrementCounter("stateCommits"),
789
+ null === (_e = getStageStatePerfMonitor(this.stage)) || void 0 === _e || _e.recordEvent("state-commit", {
790
+ graphicId: this._uid,
791
+ targetStates: [ ...transition.states ]
792
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation)) : (this.stopStateAnimates(),
793
+ this._restoreAttributeFromStaticTruth({
794
+ type: AttributeUpdateType.STATE
795
+ }), this._emitCustomEvent("afterStateUpdate", {
796
+ type: AttributeUpdateType.STATE
797
+ })));
798
+ }
799
+ invalidateResolver() {
800
+ var _a, _b;
801
+ if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
802
+ const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute;
803
+ this.stateEngine.setResolveContext(this, stateResolveBaseAttrs), this.resolverEpoch += 1,
804
+ this.stateEngine.invalidateResolverCache();
805
+ const transition = this.stateEngine.applyStates(this.currentStates), resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
806
+ this.effectiveStates = [ ...transition.effectiveStates ], this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs),
807
+ this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(),
808
+ this._restoreAttributeFromStaticTruth({
809
+ type: AttributeUpdateType.STATE
810
+ }), this._emitCustomEvent("afterStateUpdate", {
811
+ type: AttributeUpdateType.STATE
812
+ });
813
+ }
814
+ sameStateNames(left, right) {
815
+ const normalizedLeft = null != left ? left : [], normalizedRight = null != right ? right : [];
816
+ if (normalizedLeft.length !== normalizedRight.length) return !1;
817
+ for (let index = 0; index < normalizedLeft.length; index++) if (normalizedLeft[index] !== normalizedRight[index]) return !1;
818
+ return !0;
514
819
  }
515
820
  addUpdateBoundTag() {
516
821
  this._updateTag |= UpdateTag.UPDATE_BOUNDS, this.parent && this.parent.addChildUpdateBoundTag(),
517
822
  this.glyphHost && this.glyphHost.addUpdateBoundTag();
518
823
  }
824
+ addUpdatePaintTag() {
825
+ this._updateTag |= UpdateTag.UPDATE_PAINT;
826
+ }
519
827
  addUpdateShapeTag() {
520
828
  this._updateTag |= UpdateTag.UPDATE_SHAPE;
521
829
  }
@@ -529,6 +837,9 @@ export class Graphic extends Node {
529
837
  clearUpdateBoundTag() {
530
838
  this._updateTag &= UpdateTag.CLEAR_BOUNDS;
531
839
  }
840
+ clearUpdatePaintTag() {
841
+ this._updateTag &= UpdateTag.CLEAR_PAINT;
842
+ }
532
843
  addUpdatePositionTag() {
533
844
  this.shadowRoot && this.shadowRoot.addUpdateGlobalPositionTag(), this._updateTag |= UpdateTag.UPDATE_GLOBAL_LOCAL_MATRIX;
534
845
  }
@@ -593,23 +904,35 @@ export class Graphic extends Node {
593
904
  }
594
905
  }
595
906
  setStage(stage, layer) {
596
- if (this.stage !== stage) {
597
- if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer),
598
- this.animates && this.animates.size) {
599
- const timeline = stage.getTimeline();
600
- this.animates.forEach((a => {
601
- a.timeline.isGlobal && (a.setTimeline(timeline), timeline.addAnimate(a));
907
+ var _a, _b, _c, _d, _e, _f, _g, _h;
908
+ 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.graphicService, previousStage = this.stage;
909
+ if (this.stage !== stage || this.layer !== layer) {
910
+ if (this.stage = stage, this.layer = layer, this.syncSharedStateScopeBindingFromTree(!!(null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length)),
911
+ this.setStageToShadowRoot(stage, layer), this.hasAnyTrackedAnimate()) {
912
+ 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 = [];
913
+ this.visitTrackedAnimates((a => {
914
+ (!!previousTimeline && a.timeline === previousTimeline || a.timeline.isGlobal) && (nextTimeline ? a.timeline !== nextTimeline && (previousTimeline && a.timeline === previousTimeline && previousTimeline.removeAnimate(a, !1),
915
+ a.setTimeline(nextTimeline), nextTimeline.addAnimate(a)) : previousTimeline && a.timeline === previousTimeline && (previousTimeline.removeAnimate(a, !1),
916
+ detachedStageAnimates.push(a)));
917
+ })), detachedStageAnimates.length && (detachedStageAnimates.forEach((animate => {
918
+ var _a;
919
+ animate.stop();
920
+ const untrackAnimate = this.untrackAnimate;
921
+ "function" == typeof untrackAnimate ? untrackAnimate.call(this, animate.id) : null === (_a = this.animates) || void 0 === _a || _a.delete(animate.id);
922
+ })), this._restoreAttributeFromStaticTruth({
923
+ type: AttributeUpdateType.ANIMATE_END
602
924
  }));
603
925
  }
604
- this._onSetStage && this._onSetStage(this, stage, layer), this.getGraphicService().onSetStage(this, stage);
926
+ 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));
605
927
  }
928
+ this.syncSharedStateScopeBindingFromTree(!!(null === (_h = this.currentStates) || void 0 === _h ? void 0 : _h.length));
606
929
  }
607
930
  setStageToShadowRoot(stage, layer) {
608
931
  this.shadowRoot && this.shadowRoot.setStage(stage, layer);
609
932
  }
610
933
  onAddStep(step) {}
611
934
  onStop(props) {
612
- props && this.setAttributes(props, !1, {
935
+ this._restoreAttributeFromStaticTruth({
613
936
  type: AttributeUpdateType.ANIMATE_END
614
937
  });
615
938
  }
@@ -624,7 +947,8 @@ export class Graphic extends Node {
624
947
  this._onSetStage = cb, immediate && this.stage && cb(this, this.stage);
625
948
  }
626
949
  attachShadow(shadowRoot) {
627
- return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this),
950
+ var _a, _b, _c;
951
+ return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null !== (_c = null != shadowRoot ? shadowRoot : null === (_b = (_a = application.graphicService.creator).shadowRoot) || void 0 === _b ? void 0 : _b.call(_a, this)) && void 0 !== _c ? _c : require("./shadow-root").createShadowRoot(this),
628
952
  this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
629
953
  }
630
954
  detachShadow() {
@@ -640,16 +964,8 @@ export class Graphic extends Node {
640
964
  };
641
965
  }
642
966
  createPathProxy(path) {
643
- const proxy = isString(path, !0) ? (new CustomPath2D).fromString(path) : new CustomPath2D;
644
- return this.pathProxy = proxy, this.attribute.pathProxy = proxy, this.addUpdateShapeAndBoundsTag(),
645
- this.onAttributeUpdate(), proxy;
646
- }
647
- getPathProxy() {
648
- var _a;
649
- const attributePathProxy = null === (_a = this.attribute) || void 0 === _a ? void 0 : _a.pathProxy, rawPathProxy = null != attributePathProxy ? attributePathProxy : this.pathProxy;
650
- if (!rawPathProxy) return null;
651
- const resolvedPathProxy = "function" == typeof rawPathProxy ? rawPathProxy(this.attribute) : rawPathProxy;
652
- return resolvedPathProxy ? isString(resolvedPathProxy, !0) ? (new CustomPath2D).fromString(resolvedPathProxy) : resolvedPathProxy : null;
967
+ return isString(path, !0) ? this.pathProxy = (new CustomPath2D).fromString(path) : this.pathProxy = new CustomPath2D,
968
+ this.pathProxy;
653
969
  }
654
970
  loadImage(image, background = !1) {
655
971
  if (background && (null == image ? void 0 : image.background) && (image = image.background),
@@ -682,33 +998,51 @@ export class Graphic extends Node {
682
998
  const res = this.resources.get(url);
683
999
  res && (res.state = "fail", cb && cb());
684
1000
  }
685
- _stopAnimates(animates) {
686
- animates && animates.forEach((animate => {
1001
+ _stopAnimates() {
1002
+ const animates = [];
1003
+ this.visitTrackedAnimates((animate => {
1004
+ animates.push(animate);
1005
+ })), animates.forEach((animate => {
687
1006
  animate.stop();
688
1007
  }));
689
1008
  }
690
1009
  stopAnimates(stopChildren = !1) {
691
- this._stopAnimates(this.animates), this.shadowRoot && this.shadowRoot.stopAnimates(!0),
692
- this.isContainer && stopChildren && this.forEachChildren((c => {
1010
+ this._stopAnimates(), this.shadowRoot && this.shadowRoot.stopAnimates(!0), this.isContainer && stopChildren && this.forEachChildren((c => {
693
1011
  c.stopAnimates(stopChildren);
694
1012
  }));
695
1013
  }
696
1014
  release() {
697
- this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this),
1015
+ var _a, _b, _c;
1016
+ this.releaseStatus = "released", this.clearSharedStateActiveRegistrations(), this.stopAnimates();
1017
+ const graphicService = null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application.graphicService;
1018
+ null === (_c = null == graphicService ? void 0 : graphicService.onRelease) || void 0 === _c || _c.call(graphicService, this),
698
1019
  super.release();
699
1020
  }
700
- _emitCustomEvent(type, context) {
1021
+ _dispatchCustomEvent(type, context) {
701
1022
  var _a, _b;
702
1023
  if (this._events && type in this._events) {
703
1024
  const changeEvent = new CustomEvent(type, context);
704
- 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,
705
- this.dispatchEvent(changeEvent);
1025
+ changeEvent.bubbles = !1;
1026
+ const manager = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem) || void 0 === _b ? void 0 : _b.manager;
1027
+ return manager ? (changeEvent.manager = manager, this.dispatchEvent(changeEvent)) : Node.prototype.dispatchEvent.call(this, changeEvent);
706
1028
  }
1029
+ return !0;
1030
+ }
1031
+ beforeStateUpdate(attrs, prevStates, nextStates, hasAnimation, isClear) {
1032
+ return this._dispatchCustomEvent("beforeStateUpdate", {
1033
+ type: AttributeUpdateType.STATE,
1034
+ attrs: Object.assign({}, attrs),
1035
+ prevStates: prevStates.slice(),
1036
+ nextStates: nextStates.slice(),
1037
+ hasAnimation: !!hasAnimation,
1038
+ isClear: !!isClear
1039
+ });
1040
+ }
1041
+ _emitCustomEvent(type, context) {
1042
+ this._dispatchCustomEvent(type, context);
707
1043
  }
708
1044
  toCustomPath() {
709
1045
  var _a, _b, _c;
710
- const pathProxy = this.getPathProxy();
711
- if (pathProxy) return pathProxy;
712
1046
  const renderer = null === (_c = null === (_b = (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.renderService) || application.renderService) || void 0 === _b ? void 0 : _b.drawContribution) || void 0 === _c ? void 0 : _c.getRenderContribution(this);
713
1047
  if (renderer) {
714
1048
  const context = new EmptyContext2d(null, 1);