@visactor/vrender-core 0.17.0-alpha.8 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (706) hide show
  1. package/cjs/allocator/bounds-allocate.d.ts +13 -0
  2. package/cjs/allocator/bounds-allocate.js +38 -0
  3. package/cjs/allocator/bounds-allocate.js.map +1 -0
  4. package/cjs/allocator/canvas-allocate.d.ts +4 -0
  5. package/cjs/allocator/canvas-allocate.js +19 -6
  6. package/cjs/allocator/canvas-allocate.js.map +1 -1
  7. package/cjs/allocator/graphic-allocate.d.ts +56 -1
  8. package/cjs/allocator/graphic-allocate.js +163 -1
  9. package/cjs/allocator/graphic-allocate.js.map +1 -1
  10. package/cjs/animate/Ticker/default-ticker.js +3 -3
  11. package/cjs/animate/Ticker/default-ticker.js.map +1 -1
  12. package/cjs/animate/animate.js +2 -2
  13. package/cjs/animate/animate.js.map +1 -1
  14. package/cjs/animate/config.js +1 -2
  15. package/cjs/animate/custom-animate.d.ts +14 -3
  16. package/cjs/animate/custom-animate.js +100 -5
  17. package/cjs/animate/custom-animate.js.map +1 -1
  18. package/cjs/animate/default-ticker.js +2 -1
  19. package/cjs/canvas/contributions/base-canvas.js +4 -2
  20. package/cjs/canvas/contributions/base-canvas.js.map +1 -1
  21. package/cjs/common/Reflect-metadata.js +349 -359
  22. package/cjs/common/Reflect-metadata.js.map +1 -1
  23. package/cjs/common/bounds-context.js +2 -1
  24. package/cjs/common/inversify/annotation/inject.d.ts +1 -0
  25. package/cjs/common/inversify/annotation/inject.js +10 -0
  26. package/cjs/common/inversify/annotation/inject.js.map +1 -0
  27. package/cjs/common/inversify/annotation/inject_base.d.ts +14 -0
  28. package/cjs/common/inversify/annotation/inject_base.js +39 -0
  29. package/cjs/common/inversify/annotation/inject_base.js.map +1 -0
  30. package/cjs/common/inversify/annotation/injectable.d.ts +1 -0
  31. package/cjs/common/{inversify-lite/annotation/post_construct.js → inversify/annotation/injectable.js} +15 -5
  32. package/cjs/common/inversify/annotation/injectable.js.map +1 -0
  33. package/cjs/common/inversify/annotation/multi_inject.d.ts +1 -0
  34. package/cjs/common/inversify/annotation/multi_inject.js +10 -0
  35. package/cjs/common/inversify/annotation/multi_inject.js.map +1 -0
  36. package/cjs/common/inversify/annotation/named.d.ts +1 -0
  37. package/cjs/common/inversify/annotation/named.js +14 -0
  38. package/cjs/common/inversify/annotation/named.js.map +1 -0
  39. package/cjs/common/inversify/binding.d.ts +18 -0
  40. package/cjs/common/inversify/binding.js +26 -0
  41. package/cjs/common/inversify/binding.js.map +1 -0
  42. package/cjs/common/inversify/container.d.ts +28 -0
  43. package/cjs/common/inversify/container.js +155 -0
  44. package/cjs/common/inversify/container.js.map +1 -0
  45. package/cjs/common/inversify/cotainer-module.d.ts +6 -0
  46. package/cjs/common/inversify/cotainer-module.js +16 -0
  47. package/cjs/common/inversify/cotainer-module.js.map +1 -0
  48. package/cjs/common/inversify/index.d.ts +7 -0
  49. package/cjs/common/inversify/index.js +75 -0
  50. package/cjs/common/inversify/index.js.map +1 -0
  51. package/cjs/common/inversify/interfaces.d.ts +218 -0
  52. package/cjs/common/inversify/interfaces.js +6 -0
  53. package/cjs/common/inversify/interfaces.js.map +1 -0
  54. package/cjs/common/inversify/literal_types.d.ts +5 -0
  55. package/cjs/common/inversify/literal_types.js +34 -0
  56. package/cjs/common/inversify/literal_types.js.map +1 -0
  57. package/cjs/common/inversify/meta-data.d.ts +6 -0
  58. package/cjs/common/inversify/meta-data.js +19 -0
  59. package/cjs/common/inversify/meta-data.js.map +1 -0
  60. package/cjs/common/inversify/metadata_keys.d.ts +12 -0
  61. package/cjs/common/inversify/metadata_keys.js +15 -0
  62. package/cjs/common/inversify/metadata_keys.js.map +1 -0
  63. package/cjs/common/inversify/metadata_reader.d.ts +6 -0
  64. package/cjs/common/inversify/metadata_reader.js +28 -0
  65. package/cjs/common/inversify/metadata_reader.js.map +1 -0
  66. package/cjs/common/inversify/syntax/binding_in_syntax.d.ts +10 -0
  67. package/cjs/common/inversify/syntax/binding_in_syntax.js +29 -0
  68. package/cjs/common/inversify/syntax/binding_in_syntax.js.map +1 -0
  69. package/cjs/common/inversify/syntax/binding_to_syntax.d.ts +12 -0
  70. package/cjs/common/inversify/syntax/binding_to_syntax.js +40 -0
  71. package/cjs/common/inversify/syntax/binding_to_syntax.js.map +1 -0
  72. package/cjs/common/inversify/syntax/constraint_helpers.d.ts +2 -0
  73. package/cjs/common/inversify/syntax/constraint_helpers.js +20 -0
  74. package/cjs/common/inversify/syntax/constraint_helpers.js.map +1 -0
  75. package/cjs/common/inversify-lite/container/container.js +1 -3
  76. package/cjs/common/inversify-lite/container/container.js.map +1 -1
  77. package/cjs/common/inversify-lite/index.d.ts +1 -8
  78. package/cjs/common/inversify-lite/index.js +1 -64
  79. package/cjs/common/inversify-lite/index.js.map +1 -1
  80. package/cjs/common/inversify-lite/interfaces/interfaces.d.ts +0 -2
  81. package/cjs/common/inversify-lite/interfaces/interfaces.js.map +1 -1
  82. package/cjs/common/inversify-lite/planning/queryable_string.d.ts +0 -2
  83. package/cjs/common/inversify-lite/planning/queryable_string.js +0 -10
  84. package/cjs/common/inversify-lite/planning/queryable_string.js.map +1 -1
  85. package/cjs/common/inversify-lite/resolution/resolver.js.map +1 -1
  86. package/cjs/common/segment/monotone.js +2 -2
  87. package/cjs/common/segment/monotone.js.map +1 -1
  88. package/cjs/common/shape/rect.js +2 -1
  89. package/cjs/common/shape/rect.js.map +1 -1
  90. package/cjs/common/sort.js +1 -2
  91. package/cjs/common/store.js +2 -1
  92. package/cjs/common/utils.d.ts +1 -0
  93. package/cjs/common/utils.js +10 -1
  94. package/cjs/common/utils.js.map +1 -1
  95. package/cjs/common/xml/OrderedObjParser.js +2 -2
  96. package/cjs/common/xml/OrderedObjParser.js.map +1 -1
  97. package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -2
  98. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +4 -9
  99. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  100. package/cjs/core/contributions/layerHandler/empty-contribution.d.ts +2 -2
  101. package/cjs/core/contributions/layerHandler/empty-contribution.js +4 -9
  102. package/cjs/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  103. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -2
  104. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +4 -9
  105. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  106. package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +14 -2
  107. package/cjs/core/contributions/textMeasure/AtextMeasure.js +99 -13
  108. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  109. package/cjs/core/contributions/textMeasure/layout.d.ts +2 -2
  110. package/cjs/core/contributions/textMeasure/layout.js +4 -4
  111. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  112. package/cjs/core/contributions/textMeasure/modules.js +1 -2
  113. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  114. package/cjs/core/core-modules.js +5 -6
  115. package/cjs/core/core-modules.js.map +1 -1
  116. package/cjs/core/global-module.js +2 -0
  117. package/cjs/core/global.d.ts +9 -0
  118. package/cjs/core/global.js +23 -5
  119. package/cjs/core/global.js.map +1 -1
  120. package/cjs/core/graphic-utils.d.ts +7 -4
  121. package/cjs/core/graphic-utils.js +18 -14
  122. package/cjs/core/graphic-utils.js.map +1 -1
  123. package/cjs/core/layer-service.d.ts +5 -2
  124. package/cjs/core/layer-service.js +17 -15
  125. package/cjs/core/layer-service.js.map +1 -1
  126. package/cjs/core/stage.d.ts +8 -4
  127. package/cjs/core/stage.js +42 -27
  128. package/cjs/core/stage.js.map +1 -1
  129. package/cjs/core/window.d.ts +2 -2
  130. package/cjs/core/window.js +7 -12
  131. package/cjs/core/window.js.map +1 -1
  132. package/cjs/env-check.d.ts +3 -0
  133. package/cjs/env-check.js +19 -0
  134. package/cjs/env-check.js.map +1 -0
  135. package/cjs/event/event-manager.d.ts +5 -1
  136. package/cjs/event/event-manager.js +31 -25
  137. package/cjs/event/event-manager.js.map +1 -1
  138. package/cjs/event/event-system.js +12 -11
  139. package/cjs/event/event-system.js.map +1 -1
  140. package/cjs/event/federated-event/base-event.d.ts +5 -6
  141. package/cjs/event/federated-event/base-event.js +15 -5
  142. package/cjs/event/federated-event/base-event.js.map +1 -1
  143. package/cjs/event/federated-event/mouse-event.d.ts +6 -6
  144. package/cjs/event/federated-event/mouse-event.js +17 -3
  145. package/cjs/event/federated-event/mouse-event.js.map +1 -1
  146. package/cjs/graphic/area.js +1 -0
  147. package/cjs/graphic/area.js.map +1 -1
  148. package/cjs/graphic/builtin-symbol/index.d.ts +1 -0
  149. package/cjs/graphic/builtin-symbol/index.js +7 -2
  150. package/cjs/graphic/builtin-symbol/index.js.map +1 -1
  151. package/cjs/graphic/builtin-symbol/rect.d.ts +2 -1
  152. package/cjs/graphic/builtin-symbol/rect.js +11 -6
  153. package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
  154. package/cjs/graphic/config.js +11 -3
  155. package/cjs/graphic/config.js.map +1 -1
  156. package/cjs/graphic/graphic-service/arc-contribution.d.ts +1 -5
  157. package/cjs/graphic/graphic-service/arc-contribution.js +0 -18
  158. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  159. package/cjs/graphic/graphic-service/area-contribution.d.ts +1 -1
  160. package/cjs/graphic/graphic-service/area-contribution.js +1 -4
  161. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  162. package/cjs/graphic/graphic-service/circle-contribution.d.ts +1 -5
  163. package/cjs/graphic/graphic-service/circle-contribution.js +0 -18
  164. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  165. package/cjs/graphic/graphic-service/common-contribution.js +2 -11
  166. package/cjs/graphic/graphic-service/common-contribution.js.map +1 -1
  167. package/cjs/graphic/graphic-service/graphic-module.js +2 -17
  168. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  169. package/cjs/graphic/graphic-service/graphic-service.d.ts +5 -9
  170. package/cjs/graphic/graphic-service/graphic-service.js +43 -32
  171. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  172. package/cjs/graphic/graphic-service/path-contribution.d.ts +1 -5
  173. package/cjs/graphic/graphic-service/path-contribution.js +0 -18
  174. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  175. package/cjs/graphic/graphic-service/rect-contribution.d.ts +1 -5
  176. package/cjs/graphic/graphic-service/rect-contribution.js +0 -18
  177. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  178. package/cjs/graphic/graphic-service/symbol-contribution.d.ts +0 -1
  179. package/cjs/graphic/graphic-service/symbol-contribution.js +4 -13
  180. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  181. package/cjs/graphic/graphic.js +9 -7
  182. package/cjs/graphic/graphic.js.map +1 -1
  183. package/cjs/graphic/group.d.ts +1 -0
  184. package/cjs/graphic/group.js +7 -3
  185. package/cjs/graphic/group.js.map +1 -1
  186. package/cjs/graphic/line.js +1 -0
  187. package/cjs/graphic/line.js.map +1 -1
  188. package/cjs/graphic/node-tree.js +1 -1
  189. package/cjs/graphic/node-tree.js.map +1 -1
  190. package/cjs/graphic/rect.d.ts +2 -3
  191. package/cjs/graphic/rect.js +3 -5
  192. package/cjs/graphic/rect.js.map +1 -1
  193. package/cjs/graphic/richtext/line.d.ts +1 -0
  194. package/cjs/graphic/richtext/line.js +6 -3
  195. package/cjs/graphic/richtext/line.js.map +1 -1
  196. package/cjs/graphic/richtext/paragraph.js +12 -11
  197. package/cjs/graphic/richtext/paragraph.js.map +1 -1
  198. package/cjs/graphic/richtext/utils.js +2 -1
  199. package/cjs/graphic/richtext/utils.js.map +1 -1
  200. package/cjs/graphic/richtext.d.ts +3 -3
  201. package/cjs/graphic/richtext.js +12 -3
  202. package/cjs/graphic/richtext.js.map +1 -1
  203. package/cjs/graphic/symbol.js +11 -9
  204. package/cjs/graphic/symbol.js.map +1 -1
  205. package/cjs/graphic/text.d.ts +1 -0
  206. package/cjs/graphic/text.js +97 -11
  207. package/cjs/graphic/text.js.map +1 -1
  208. package/cjs/graphic/theme.d.ts +4 -4
  209. package/cjs/graphic/theme.js +26 -27
  210. package/cjs/graphic/theme.js.map +1 -1
  211. package/cjs/graphic/tools.js +1 -1
  212. package/cjs/graphic/tools.js.map +1 -1
  213. package/cjs/graphic/wrap-text.js +6 -5
  214. package/cjs/graphic/wrap-text.js.map +1 -1
  215. package/cjs/index.d.ts +3 -0
  216. package/cjs/index.js +3 -1
  217. package/cjs/index.js.map +1 -1
  218. package/cjs/interface/allocator.d.ts +1 -0
  219. package/cjs/interface/allocator.js.map +1 -1
  220. package/cjs/interface/event.d.ts +15 -44
  221. package/cjs/interface/event.js.map +1 -1
  222. package/cjs/interface/global.d.ts +1 -0
  223. package/cjs/interface/global.js.map +1 -1
  224. package/cjs/interface/graphic/rect.d.ts +2 -0
  225. package/cjs/interface/graphic/rect.js.map +1 -1
  226. package/cjs/interface/graphic/richText.d.ts +1 -1
  227. package/cjs/interface/graphic/richText.js.map +1 -1
  228. package/cjs/interface/graphic/text.d.ts +5 -1
  229. package/cjs/interface/graphic/text.js.map +1 -1
  230. package/cjs/interface/graphic.d.ts +3 -2
  231. package/cjs/interface/graphic.js.map +1 -1
  232. package/cjs/interface/render.d.ts +2 -2
  233. package/cjs/interface/render.js.map +1 -1
  234. package/cjs/interface/stage.d.ts +8 -1
  235. package/cjs/interface/stage.js.map +1 -1
  236. package/cjs/interface/text.d.ts +2 -2
  237. package/cjs/interface/text.js.map +1 -1
  238. package/cjs/modules.d.ts +1 -2
  239. package/cjs/modules.js +8 -8
  240. package/cjs/modules.js.map +1 -1
  241. package/cjs/picker/global-picker-service.d.ts +2 -2
  242. package/cjs/picker/global-picker-service.js +4 -9
  243. package/cjs/picker/global-picker-service.js.map +1 -1
  244. package/cjs/picker/pick-interceptor.js +2 -1
  245. package/cjs/picker/pick-interceptor.js.map +1 -1
  246. package/cjs/picker/pick-modules.js +2 -4
  247. package/cjs/picker/pick-modules.js.map +1 -1
  248. package/cjs/picker/picker-service.d.ts +2 -2
  249. package/cjs/picker/picker-service.js +11 -7
  250. package/cjs/picker/picker-service.js.map +1 -1
  251. package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +9 -5
  252. package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
  253. package/cjs/plugins/builtin-plugin/html-attribute-plugin.js +1 -1
  254. package/cjs/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
  255. package/cjs/plugins/plugin-modules.js +1 -2
  256. package/cjs/plugins/plugin-modules.js.map +1 -1
  257. package/cjs/render/contributions/render/arc-render.js +2 -1
  258. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  259. package/cjs/render/contributions/render/area-render.d.ts +1 -0
  260. package/cjs/render/contributions/render/area-render.js +44 -6
  261. package/cjs/render/contributions/render/area-render.js.map +1 -1
  262. package/cjs/render/contributions/render/base-render.d.ts +1 -1
  263. package/cjs/render/contributions/render/base-render.js +15 -18
  264. package/cjs/render/contributions/render/base-render.js.map +1 -1
  265. package/cjs/render/contributions/render/circle-render.js +2 -1
  266. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  267. package/cjs/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -7
  268. package/cjs/render/contributions/render/contributions/arc-contribution-render.js +7 -30
  269. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  270. package/cjs/render/contributions/render/contributions/area-contribution-render.d.ts +3 -4
  271. package/cjs/render/contributions/render/contributions/area-contribution-render.js +7 -21
  272. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  273. package/cjs/render/contributions/render/contributions/base-contribution-render.d.ts +4 -0
  274. package/cjs/render/contributions/render/contributions/base-contribution-render.js +24 -15
  275. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  276. package/cjs/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -7
  277. package/cjs/render/contributions/render/contributions/circle-contribution-render.js +7 -30
  278. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  279. package/cjs/render/contributions/render/contributions/constants.d.ts +1 -0
  280. package/cjs/render/contributions/render/contributions/constants.js +2 -2
  281. package/cjs/render/contributions/render/contributions/constants.js.map +1 -1
  282. package/cjs/render/contributions/render/contributions/group-contribution-render.d.ts +1 -0
  283. package/cjs/render/contributions/render/contributions/group-contribution-render.js +8 -14
  284. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  285. package/cjs/render/contributions/render/contributions/image-contribution-render.d.ts +1 -0
  286. package/cjs/render/contributions/render/contributions/image-contribution-render.js +8 -15
  287. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  288. package/cjs/render/contributions/render/contributions/path-contribution-render.d.ts +2 -9
  289. package/cjs/render/contributions/render/contributions/path-contribution-render.js +4 -25
  290. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  291. package/cjs/render/contributions/render/contributions/polygon-contribution-render.d.ts +2 -9
  292. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js +4 -25
  293. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  294. package/cjs/render/contributions/render/contributions/rect-contribution-render.d.ts +5 -7
  295. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +17 -37
  296. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  297. package/cjs/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -7
  298. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +6 -27
  299. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  300. package/cjs/render/contributions/render/contributions/text-contribution-render.d.ts +8 -1
  301. package/cjs/render/contributions/render/contributions/text-contribution-render.js +25 -1
  302. package/cjs/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  303. package/cjs/render/contributions/render/draw-contribution.d.ts +7 -6
  304. package/cjs/render/contributions/render/draw-contribution.js +44 -26
  305. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  306. package/cjs/render/contributions/render/draw-interceptor.d.ts +9 -1
  307. package/cjs/render/contributions/render/draw-interceptor.js +43 -28
  308. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  309. package/cjs/render/contributions/render/glyph-render.d.ts +1 -2
  310. package/cjs/render/contributions/render/glyph-render.js +13 -8
  311. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  312. package/cjs/render/contributions/render/group-render.js +3 -2
  313. package/cjs/render/contributions/render/group-render.js.map +1 -1
  314. package/cjs/render/contributions/render/image-render.js +4 -2
  315. package/cjs/render/contributions/render/image-render.js.map +1 -1
  316. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +2 -6
  317. package/cjs/render/contributions/render/incremental-draw-contribution.js +8 -11
  318. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  319. package/cjs/render/contributions/render/line-render.d.ts +1 -0
  320. package/cjs/render/contributions/render/line-render.js +21 -6
  321. package/cjs/render/contributions/render/line-render.js.map +1 -1
  322. package/cjs/render/contributions/render/module.js +32 -87
  323. package/cjs/render/contributions/render/module.js.map +1 -1
  324. package/cjs/render/contributions/render/path-render.d.ts +2 -1
  325. package/cjs/render/contributions/render/path-render.js +8 -5
  326. package/cjs/render/contributions/render/path-render.js.map +1 -1
  327. package/cjs/render/contributions/render/polygon-render.js +2 -1
  328. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  329. package/cjs/render/contributions/render/rect-render.d.ts +2 -1
  330. package/cjs/render/contributions/render/rect-render.js +11 -5
  331. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  332. package/cjs/render/contributions/render/render-slector.d.ts +1 -4
  333. package/cjs/render/contributions/render/render-slector.js +0 -20
  334. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  335. package/cjs/render/contributions/render/richtext-render.d.ts +1 -0
  336. package/cjs/render/contributions/render/richtext-render.js +12 -7
  337. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  338. package/cjs/render/contributions/render/symbol-render.js +22 -5
  339. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  340. package/cjs/render/contributions/render/text-render.js +13 -10
  341. package/cjs/render/contributions/render/text-render.js.map +1 -1
  342. package/cjs/render/contributions/render/utils.js +2 -2
  343. package/cjs/render/contributions/render/utils.js.map +1 -1
  344. package/cjs/render/render-modules.js +1 -1
  345. package/cjs/render/render-modules.js.map +1 -1
  346. package/cjs/render/render-service.js +1 -1
  347. package/cjs/render/render-service.js.map +1 -1
  348. package/cjs/resource-loader/loader.js +1 -3
  349. package/cjs/resource-loader/loader.js.map +1 -1
  350. package/dist/index.js +6339 -6568
  351. package/dist/index.min.js +1 -1
  352. package/es/allocator/bounds-allocate.d.ts +13 -0
  353. package/es/allocator/bounds-allocate.js +32 -0
  354. package/es/allocator/bounds-allocate.js.map +1 -0
  355. package/es/allocator/canvas-allocate.d.ts +4 -0
  356. package/es/allocator/canvas-allocate.js +19 -6
  357. package/es/allocator/canvas-allocate.js.map +1 -1
  358. package/es/allocator/graphic-allocate.d.ts +56 -1
  359. package/es/allocator/graphic-allocate.js +155 -1
  360. package/es/allocator/graphic-allocate.js.map +1 -1
  361. package/es/animate/Ticker/default-ticker.js +4 -2
  362. package/es/animate/Ticker/default-ticker.js.map +1 -1
  363. package/es/animate/animate.js +3 -3
  364. package/es/animate/animate.js.map +1 -1
  365. package/es/animate/config.js +1 -2
  366. package/es/animate/custom-animate.d.ts +14 -3
  367. package/es/animate/custom-animate.js +103 -5
  368. package/es/animate/custom-animate.js.map +1 -1
  369. package/es/animate/default-ticker.js +2 -1
  370. package/es/canvas/contributions/base-canvas.js +4 -2
  371. package/es/canvas/contributions/base-canvas.js.map +1 -1
  372. package/es/common/Reflect-metadata.js +349 -359
  373. package/es/common/Reflect-metadata.js.map +1 -1
  374. package/es/common/bounds-context.js +2 -1
  375. package/es/common/inversify/annotation/inject.d.ts +1 -0
  376. package/es/common/inversify/annotation/inject.js +6 -0
  377. package/es/common/inversify/annotation/inject.js.map +1 -0
  378. package/es/common/inversify/annotation/inject_base.d.ts +14 -0
  379. package/es/common/inversify/annotation/inject_base.js +29 -0
  380. package/es/common/inversify/annotation/inject_base.js.map +1 -0
  381. package/es/common/inversify/annotation/injectable.d.ts +1 -0
  382. package/es/common/inversify/annotation/injectable.js +10 -0
  383. package/es/common/inversify/annotation/injectable.js.map +1 -0
  384. package/es/common/inversify/annotation/multi_inject.d.ts +1 -0
  385. package/es/common/inversify/annotation/multi_inject.js +6 -0
  386. package/es/common/inversify/annotation/multi_inject.js.map +1 -0
  387. package/es/common/inversify/annotation/named.d.ts +1 -0
  388. package/es/common/inversify/annotation/named.js +10 -0
  389. package/es/common/inversify/annotation/named.js.map +1 -0
  390. package/es/common/inversify/binding.d.ts +18 -0
  391. package/es/common/inversify/binding.js +22 -0
  392. package/es/common/inversify/binding.js.map +1 -0
  393. package/es/common/inversify/container.d.ts +28 -0
  394. package/es/common/inversify/container.js +155 -0
  395. package/es/common/inversify/container.js.map +1 -0
  396. package/es/common/inversify/cotainer-module.d.ts +6 -0
  397. package/es/common/inversify/cotainer-module.js +8 -0
  398. package/es/common/inversify/cotainer-module.js.map +1 -0
  399. package/es/common/inversify/index.d.ts +7 -0
  400. package/es/common/inversify/index.js +14 -0
  401. package/es/common/inversify/index.js.map +1 -0
  402. package/es/common/inversify/interfaces.d.ts +218 -0
  403. package/es/common/inversify/interfaces.js +2 -0
  404. package/es/common/inversify/interfaces.js.map +1 -0
  405. package/es/common/inversify/literal_types.d.ts +5 -0
  406. package/es/common/inversify/literal_types.js +20 -0
  407. package/es/common/inversify/literal_types.js.map +1 -0
  408. package/es/common/inversify/meta-data.d.ts +6 -0
  409. package/es/common/inversify/meta-data.js +11 -0
  410. package/es/common/inversify/meta-data.js.map +1 -0
  411. package/es/common/inversify/metadata_keys.d.ts +12 -0
  412. package/es/common/inversify/metadata_keys.js +28 -0
  413. package/es/common/inversify/metadata_keys.js.map +1 -0
  414. package/es/common/inversify/metadata_reader.d.ts +6 -0
  415. package/es/common/inversify/metadata_reader.js +18 -0
  416. package/es/common/inversify/metadata_reader.js.map +1 -0
  417. package/es/common/inversify/syntax/binding_in_syntax.d.ts +10 -0
  418. package/es/common/inversify/syntax/binding_in_syntax.js +24 -0
  419. package/es/common/inversify/syntax/binding_in_syntax.js.map +1 -0
  420. package/es/common/inversify/syntax/binding_to_syntax.d.ts +12 -0
  421. package/es/common/inversify/syntax/binding_to_syntax.js +36 -0
  422. package/es/common/inversify/syntax/binding_to_syntax.js.map +1 -0
  423. package/es/common/inversify/syntax/constraint_helpers.d.ts +2 -0
  424. package/es/common/inversify/syntax/constraint_helpers.js +18 -0
  425. package/es/common/inversify/syntax/constraint_helpers.js.map +1 -0
  426. package/es/common/inversify-lite/container/container.js +2 -4
  427. package/es/common/inversify-lite/container/container.js.map +1 -1
  428. package/es/common/inversify-lite/index.d.ts +1 -8
  429. package/es/common/inversify-lite/index.js +1 -15
  430. package/es/common/inversify-lite/index.js.map +1 -1
  431. package/es/common/inversify-lite/interfaces/interfaces.d.ts +0 -2
  432. package/es/common/inversify-lite/interfaces/interfaces.js.map +1 -1
  433. package/es/common/inversify-lite/planning/queryable_string.d.ts +0 -2
  434. package/es/common/inversify-lite/planning/queryable_string.js +0 -10
  435. package/es/common/inversify-lite/planning/queryable_string.js.map +1 -1
  436. package/es/common/inversify-lite/resolution/resolver.js.map +1 -1
  437. package/es/common/segment/monotone.js +2 -2
  438. package/es/common/segment/monotone.js.map +1 -1
  439. package/es/common/shape/rect.js +2 -1
  440. package/es/common/shape/rect.js.map +1 -1
  441. package/es/common/sort.js +1 -2
  442. package/es/common/store.js +2 -1
  443. package/es/common/utils.d.ts +1 -0
  444. package/es/common/utils.js +8 -1
  445. package/es/common/utils.js.map +1 -1
  446. package/es/common/xml/OrderedObjParser.js +2 -2
  447. package/es/common/xml/OrderedObjParser.js.map +1 -1
  448. package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -2
  449. package/es/core/contributions/layerHandler/canvas2d-contribution.js +5 -9
  450. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  451. package/es/core/contributions/layerHandler/empty-contribution.d.ts +2 -2
  452. package/es/core/contributions/layerHandler/empty-contribution.js +5 -9
  453. package/es/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  454. package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -2
  455. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +5 -9
  456. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  457. package/es/core/contributions/textMeasure/AtextMeasure.d.ts +14 -2
  458. package/es/core/contributions/textMeasure/AtextMeasure.js +99 -13
  459. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  460. package/es/core/contributions/textMeasure/layout.d.ts +2 -2
  461. package/es/core/contributions/textMeasure/layout.js +4 -4
  462. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  463. package/es/core/contributions/textMeasure/modules.js +1 -1
  464. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  465. package/es/core/core-modules.js +4 -6
  466. package/es/core/core-modules.js.map +1 -1
  467. package/es/core/global-module.js +2 -0
  468. package/es/core/global.d.ts +9 -0
  469. package/es/core/global.js +23 -4
  470. package/es/core/global.js.map +1 -1
  471. package/es/core/graphic-utils.d.ts +7 -4
  472. package/es/core/graphic-utils.js +20 -15
  473. package/es/core/graphic-utils.js.map +1 -1
  474. package/es/core/layer-service.d.ts +5 -2
  475. package/es/core/layer-service.js +18 -15
  476. package/es/core/layer-service.js.map +1 -1
  477. package/es/core/stage.d.ts +8 -4
  478. package/es/core/stage.js +47 -30
  479. package/es/core/stage.js.map +1 -1
  480. package/es/core/window.d.ts +2 -2
  481. package/es/core/window.js +8 -12
  482. package/es/core/window.js.map +1 -1
  483. package/es/env-check.d.ts +3 -0
  484. package/es/env-check.js +12 -0
  485. package/es/env-check.js.map +1 -0
  486. package/es/event/event-manager.d.ts +5 -1
  487. package/es/event/event-manager.js +32 -26
  488. package/es/event/event-manager.js.map +1 -1
  489. package/es/event/event-system.js +8 -6
  490. package/es/event/event-system.js.map +1 -1
  491. package/es/event/federated-event/base-event.d.ts +5 -6
  492. package/es/event/federated-event/base-event.js +15 -5
  493. package/es/event/federated-event/base-event.js.map +1 -1
  494. package/es/event/federated-event/mouse-event.d.ts +6 -6
  495. package/es/event/federated-event/mouse-event.js +16 -4
  496. package/es/event/federated-event/mouse-event.js.map +1 -1
  497. package/es/graphic/area.js +1 -0
  498. package/es/graphic/area.js.map +1 -1
  499. package/es/graphic/builtin-symbol/index.d.ts +1 -0
  500. package/es/graphic/builtin-symbol/index.js +7 -0
  501. package/es/graphic/builtin-symbol/index.js.map +1 -1
  502. package/es/graphic/builtin-symbol/rect.d.ts +2 -1
  503. package/es/graphic/builtin-symbol/rect.js +9 -4
  504. package/es/graphic/builtin-symbol/rect.js.map +1 -1
  505. package/es/graphic/config.js +12 -4
  506. package/es/graphic/config.js.map +1 -1
  507. package/es/graphic/graphic-service/arc-contribution.d.ts +1 -5
  508. package/es/graphic/graphic-service/arc-contribution.js +0 -15
  509. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  510. package/es/graphic/graphic-service/area-contribution.d.ts +1 -1
  511. package/es/graphic/graphic-service/area-contribution.js +2 -1
  512. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  513. package/es/graphic/graphic-service/circle-contribution.d.ts +1 -5
  514. package/es/graphic/graphic-service/circle-contribution.js +0 -15
  515. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  516. package/es/graphic/graphic-service/common-contribution.js +2 -14
  517. package/es/graphic/graphic-service/common-contribution.js.map +1 -1
  518. package/es/graphic/graphic-service/graphic-module.js +1 -23
  519. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  520. package/es/graphic/graphic-service/graphic-service.d.ts +5 -9
  521. package/es/graphic/graphic-service/graphic-service.js +44 -34
  522. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  523. package/es/graphic/graphic-service/path-contribution.d.ts +1 -5
  524. package/es/graphic/graphic-service/path-contribution.js +0 -15
  525. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  526. package/es/graphic/graphic-service/rect-contribution.d.ts +1 -5
  527. package/es/graphic/graphic-service/rect-contribution.js +0 -15
  528. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  529. package/es/graphic/graphic-service/symbol-contribution.d.ts +0 -1
  530. package/es/graphic/graphic-service/symbol-contribution.js +2 -16
  531. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  532. package/es/graphic/graphic.js +8 -6
  533. package/es/graphic/graphic.js.map +1 -1
  534. package/es/graphic/group.d.ts +1 -0
  535. package/es/graphic/group.js +8 -1
  536. package/es/graphic/group.js.map +1 -1
  537. package/es/graphic/line.js +1 -0
  538. package/es/graphic/line.js.map +1 -1
  539. package/es/graphic/node-tree.js +2 -2
  540. package/es/graphic/node-tree.js.map +1 -1
  541. package/es/graphic/rect.d.ts +2 -3
  542. package/es/graphic/rect.js +3 -7
  543. package/es/graphic/rect.js.map +1 -1
  544. package/es/graphic/richtext/line.d.ts +1 -0
  545. package/es/graphic/richtext/line.js +6 -4
  546. package/es/graphic/richtext/line.js.map +1 -1
  547. package/es/graphic/richtext/paragraph.js +5 -2
  548. package/es/graphic/richtext/paragraph.js.map +1 -1
  549. package/es/graphic/richtext/utils.js +2 -1
  550. package/es/graphic/richtext/utils.js.map +1 -1
  551. package/es/graphic/richtext.d.ts +3 -3
  552. package/es/graphic/richtext.js +12 -3
  553. package/es/graphic/richtext.js.map +1 -1
  554. package/es/graphic/symbol.js +11 -10
  555. package/es/graphic/symbol.js.map +1 -1
  556. package/es/graphic/text.d.ts +1 -0
  557. package/es/graphic/text.js +94 -13
  558. package/es/graphic/text.js.map +1 -1
  559. package/es/graphic/theme.d.ts +4 -4
  560. package/es/graphic/theme.js +27 -28
  561. package/es/graphic/theme.js.map +1 -1
  562. package/es/graphic/tools.js +1 -1
  563. package/es/graphic/tools.js.map +1 -1
  564. package/es/graphic/wrap-text.js +6 -4
  565. package/es/graphic/wrap-text.js.map +1 -1
  566. package/es/index.d.ts +3 -0
  567. package/es/index.js +6 -0
  568. package/es/index.js.map +1 -1
  569. package/es/interface/allocator.d.ts +1 -0
  570. package/es/interface/allocator.js.map +1 -1
  571. package/es/interface/event.d.ts +15 -44
  572. package/es/interface/event.js.map +1 -1
  573. package/es/interface/global.d.ts +1 -0
  574. package/es/interface/global.js.map +1 -1
  575. package/es/interface/graphic/rect.d.ts +2 -0
  576. package/es/interface/graphic/rect.js.map +1 -1
  577. package/es/interface/graphic/richText.d.ts +1 -1
  578. package/es/interface/graphic/richText.js.map +1 -1
  579. package/es/interface/graphic/text.d.ts +5 -1
  580. package/es/interface/graphic/text.js.map +1 -1
  581. package/es/interface/graphic.d.ts +3 -2
  582. package/es/interface/graphic.js.map +1 -1
  583. package/es/interface/render.d.ts +2 -2
  584. package/es/interface/render.js.map +1 -1
  585. package/es/interface/stage.d.ts +8 -1
  586. package/es/interface/stage.js.map +1 -1
  587. package/es/interface/text.d.ts +2 -2
  588. package/es/interface/text.js.map +1 -1
  589. package/es/modules.d.ts +1 -2
  590. package/es/modules.js +0 -4
  591. package/es/modules.js.map +1 -1
  592. package/es/picker/global-picker-service.d.ts +2 -2
  593. package/es/picker/global-picker-service.js +5 -9
  594. package/es/picker/global-picker-service.js.map +1 -1
  595. package/es/picker/pick-interceptor.js +2 -1
  596. package/es/picker/pick-interceptor.js.map +1 -1
  597. package/es/picker/pick-modules.js +1 -4
  598. package/es/picker/pick-modules.js.map +1 -1
  599. package/es/picker/picker-service.d.ts +2 -2
  600. package/es/picker/picker-service.js +10 -6
  601. package/es/picker/picker-service.js.map +1 -1
  602. package/es/plugins/builtin-plugin/flex-layout-plugin.js +12 -6
  603. package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
  604. package/es/plugins/builtin-plugin/html-attribute-plugin.js +1 -1
  605. package/es/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
  606. package/es/plugins/plugin-modules.js +1 -2
  607. package/es/plugins/plugin-modules.js.map +1 -1
  608. package/es/render/contributions/render/arc-render.js +3 -0
  609. package/es/render/contributions/render/arc-render.js.map +1 -1
  610. package/es/render/contributions/render/area-render.d.ts +1 -0
  611. package/es/render/contributions/render/area-render.js +45 -5
  612. package/es/render/contributions/render/area-render.js.map +1 -1
  613. package/es/render/contributions/render/base-render.d.ts +1 -1
  614. package/es/render/contributions/render/base-render.js +15 -22
  615. package/es/render/contributions/render/base-render.js.map +1 -1
  616. package/es/render/contributions/render/circle-render.js +3 -0
  617. package/es/render/contributions/render/circle-render.js.map +1 -1
  618. package/es/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -7
  619. package/es/render/contributions/render/contributions/arc-contribution-render.js +6 -32
  620. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  621. package/es/render/contributions/render/contributions/area-contribution-render.d.ts +3 -4
  622. package/es/render/contributions/render/contributions/area-contribution-render.js +5 -23
  623. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  624. package/es/render/contributions/render/contributions/base-contribution-render.d.ts +4 -0
  625. package/es/render/contributions/render/contributions/base-contribution-render.js +21 -16
  626. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  627. package/es/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -7
  628. package/es/render/contributions/render/contributions/circle-contribution-render.js +6 -32
  629. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  630. package/es/render/contributions/render/contributions/constants.d.ts +1 -0
  631. package/es/render/contributions/render/contributions/constants.js +2 -0
  632. package/es/render/contributions/render/contributions/constants.js.map +1 -1
  633. package/es/render/contributions/render/contributions/group-contribution-render.d.ts +1 -0
  634. package/es/render/contributions/render/contributions/group-contribution-render.js +5 -15
  635. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  636. package/es/render/contributions/render/contributions/image-contribution-render.d.ts +1 -0
  637. package/es/render/contributions/render/contributions/image-contribution-render.js +6 -17
  638. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  639. package/es/render/contributions/render/contributions/path-contribution-render.d.ts +2 -9
  640. package/es/render/contributions/render/contributions/path-contribution-render.js +3 -29
  641. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  642. package/es/render/contributions/render/contributions/polygon-contribution-render.d.ts +2 -9
  643. package/es/render/contributions/render/contributions/polygon-contribution-render.js +3 -29
  644. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  645. package/es/render/contributions/render/contributions/rect-contribution-render.d.ts +5 -7
  646. package/es/render/contributions/render/contributions/rect-contribution-render.js +19 -46
  647. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  648. package/es/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -7
  649. package/es/render/contributions/render/contributions/symbol-contribution-render.js +6 -24
  650. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  651. package/es/render/contributions/render/contributions/text-contribution-render.d.ts +8 -1
  652. package/es/render/contributions/render/contributions/text-contribution-render.js +24 -1
  653. package/es/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  654. package/es/render/contributions/render/draw-contribution.d.ts +7 -6
  655. package/es/render/contributions/render/draw-contribution.js +49 -29
  656. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  657. package/es/render/contributions/render/draw-interceptor.d.ts +9 -1
  658. package/es/render/contributions/render/draw-interceptor.js +40 -36
  659. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  660. package/es/render/contributions/render/glyph-render.d.ts +1 -2
  661. package/es/render/contributions/render/glyph-render.js +12 -9
  662. package/es/render/contributions/render/glyph-render.js.map +1 -1
  663. package/es/render/contributions/render/group-render.js +4 -1
  664. package/es/render/contributions/render/group-render.js.map +1 -1
  665. package/es/render/contributions/render/image-render.js +5 -2
  666. package/es/render/contributions/render/image-render.js.map +1 -1
  667. package/es/render/contributions/render/incremental-draw-contribution.d.ts +2 -6
  668. package/es/render/contributions/render/incremental-draw-contribution.js +5 -11
  669. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  670. package/es/render/contributions/render/line-render.d.ts +1 -0
  671. package/es/render/contributions/render/line-render.js +21 -6
  672. package/es/render/contributions/render/line-render.js.map +1 -1
  673. package/es/render/contributions/render/module.js +29 -83
  674. package/es/render/contributions/render/module.js.map +1 -1
  675. package/es/render/contributions/render/path-render.d.ts +2 -1
  676. package/es/render/contributions/render/path-render.js +8 -4
  677. package/es/render/contributions/render/path-render.js.map +1 -1
  678. package/es/render/contributions/render/polygon-render.js +3 -0
  679. package/es/render/contributions/render/polygon-render.js.map +1 -1
  680. package/es/render/contributions/render/rect-render.d.ts +2 -1
  681. package/es/render/contributions/render/rect-render.js +11 -3
  682. package/es/render/contributions/render/rect-render.js.map +1 -1
  683. package/es/render/contributions/render/render-slector.d.ts +1 -4
  684. package/es/render/contributions/render/render-slector.js +0 -15
  685. package/es/render/contributions/render/render-slector.js.map +1 -1
  686. package/es/render/contributions/render/richtext-render.d.ts +1 -0
  687. package/es/render/contributions/render/richtext-render.js +12 -6
  688. package/es/render/contributions/render/richtext-render.js.map +1 -1
  689. package/es/render/contributions/render/symbol-render.js +23 -4
  690. package/es/render/contributions/render/symbol-render.js.map +1 -1
  691. package/es/render/contributions/render/text-render.js +16 -10
  692. package/es/render/contributions/render/text-render.js.map +1 -1
  693. package/es/render/contributions/render/utils.js +2 -2
  694. package/es/render/contributions/render/utils.js.map +1 -1
  695. package/es/render/render-modules.js +1 -1
  696. package/es/render/render-modules.js.map +1 -1
  697. package/es/render/render-service.js +1 -1
  698. package/es/render/render-service.js.map +1 -1
  699. package/es/resource-loader/loader.js +1 -3
  700. package/es/resource-loader/loader.js.map +1 -1
  701. package/package.json +6 -4
  702. package/cjs/common/inversify-lite/annotation/post_construct.d.ts +0 -4
  703. package/cjs/common/inversify-lite/annotation/post_construct.js.map +0 -1
  704. package/es/common/inversify-lite/annotation/post_construct.d.ts +0 -4
  705. package/es/common/inversify-lite/annotation/post_construct.js +0 -10
  706. package/es/common/inversify-lite/annotation/post_construct.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/circle-contribution.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gEAAyD;AAEzD,+DAA6E;AAEhE,QAAA,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAGxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,0DAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,IAAA,2BAAU,GAAE;GACA,0CAA0C,CAEd;AAF5B,gGAA0C","file":"circle-contribution.js","sourcesContent":["import { injectable } from '../../common/inversify-lite';\nimport type { ICircleBoundsContribution } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const CircleBoundsContribution = Symbol.for('CircleBoundsContribution');\n\n@injectable()\nexport class DefaultCircleOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements ICircleBoundsContribution {}\n"]}
1
+ {"version":3,"sources":["../src/graphic/graphic-service/circle-contribution.ts"],"names":[],"mappings":"","file":"circle-contribution.js","sourcesContent":["// import { injectable } from '../../common/inversify-lite';\n// import type { ICircleBoundsContribution } from '../../interface';\n// import { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\n// export const CircleBoundsContribution = Symbol.for('CircleBoundsContribution');\n\n// @injectable()\n// export class DefaultCircleOuterBorderBoundsContribution\n// extends DefaultOuterBorderBoundsContribution\n// implements ICircleBoundsContribution {}\n"]}
@@ -1,18 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
4
- var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
-
9
3
  Object.defineProperty(exports, "__esModule", {
10
4
  value: !0
11
5
  }), exports.DefaultOuterBorderBoundsContribution = void 0;
12
6
 
13
- const inversify_lite_1 = require("../../common/inversify-lite");
14
-
15
- let DefaultOuterBorderBoundsContribution = class {
7
+ class DefaultOuterBorderBoundsContribution {
16
8
  updateBounds(attribute, theme, aabbBounds, graphic) {
17
9
  const {outerBorder: outerBorder, shadowBlur: shadowBlur = theme.shadowBlur} = attribute;
18
10
  if (outerBorder) {
@@ -21,8 +13,7 @@ let DefaultOuterBorderBoundsContribution = class {
21
13
  }
22
14
  return aabbBounds;
23
15
  }
24
- };
16
+ }
25
17
 
26
- DefaultOuterBorderBoundsContribution = __decorate([ (0, inversify_lite_1.injectable)() ], DefaultOuterBorderBoundsContribution),
27
18
  exports.DefaultOuterBorderBoundsContribution = DefaultOuterBorderBoundsContribution;
28
19
  //# sourceMappingURL=common-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/common-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,gEAAyD;AAIlD,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAC/C,YAAY,CACV,SAAqC,EACrC,KAAkC,EAClC,UAAuB,EACvB,OAAkB;QAElB,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC;QACjE,IAAI,WAAW,EAAE;YACf,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC;YAC7C,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAC;YAGzG,UAAU,CAAC,MAAM,CAAE,QAAmB,GAAG,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;SACxE;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAjBY,oCAAoC;IADhD,IAAA,2BAAU,GAAE;GACA,oCAAoC,CAiBhD;AAjBY,oFAAoC","file":"common-contribution.js","sourcesContent":["import type { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from '../../common/inversify-lite';\nimport type { IGraphicAttribute, IGraphic } from '../../interface';\n\n@injectable()\nexport class DefaultOuterBorderBoundsContribution {\n updateBounds(\n attribute: Partial<IGraphicAttribute>,\n theme: Required<IGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ): IAABBBounds {\n const { outerBorder, shadowBlur = theme.shadowBlur } = attribute;\n if (outerBorder) {\n const defaultOuterBorder = theme.outerBorder;\n const { distance = defaultOuterBorder.distance, lineWidth = defaultOuterBorder.lineWidth } = outerBorder;\n\n // rect的distance一定是number\n aabbBounds.expand((distance as number) + (shadowBlur + lineWidth) / 2);\n }\n return aabbBounds;\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/graphic/graphic-service/common-contribution.ts"],"names":[],"mappings":";;;AAGA,MAAa,oCAAoC;IAC/C,YAAY,CACV,SAAqC,EACrC,KAAkC,EAClC,UAAuB,EACvB,OAAkB;QAElB,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC;QACjE,IAAI,WAAW,EAAE;YACf,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC;YAC7C,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAC;YAGzG,UAAU,CAAC,MAAM,CAAE,QAAmB,GAAG,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;SACxE;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAjBD,oFAiBC","file":"common-contribution.js","sourcesContent":["import type { IAABBBounds } from '@visactor/vutils';\nimport type { IGraphicAttribute, IGraphic } from '../../interface';\n\nexport class DefaultOuterBorderBoundsContribution {\n updateBounds(\n attribute: Partial<IGraphicAttribute>,\n theme: Required<IGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ): IAABBBounds {\n const { outerBorder, shadowBlur = theme.shadowBlur } = attribute;\n if (outerBorder) {\n const defaultOuterBorder = theme.outerBorder;\n const { distance = defaultOuterBorder.distance, lineWidth = defaultOuterBorder.lineWidth } = outerBorder;\n\n // rect的distance一定是number\n aabbBounds.expand((distance as number) + (shadowBlur + lineWidth) / 2);\n }\n return aabbBounds;\n }\n}\n"]}
@@ -4,25 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
6
 
7
- const inversify_lite_1 = require("../../common/inversify-lite"), contribution_provider_1 = require("../../common/contribution-provider"), arc_contribution_1 = require("./arc-contribution"), circle_contribution_1 = require("./circle-contribution"), graphic_service_1 = require("./graphic-service"), path_contribution_1 = require("./path-contribution"), rect_contribution_1 = require("./rect-contribution"), symbol_contribution_1 = require("./symbol-contribution"), constants_1 = require("../constants"), graphic_creator_1 = require("../graphic-creator");
7
+ const inversify_lite_1 = require("../../common/inversify-lite"), graphic_service_1 = require("./graphic-service"), constants_1 = require("../constants"), graphic_creator_1 = require("../graphic-creator");
8
8
 
9
9
  exports.default = new inversify_lite_1.ContainerModule((bind => {
10
- bind(graphic_service_1.DefaultGraphicService).toSelf().inSingletonScope(), bind(constants_1.GraphicService).toService(graphic_service_1.DefaultGraphicService),
11
- bind(rect_contribution_1.DefaultRectOuterBorderBoundsContribution).toSelf().inSingletonScope(),
12
- bind(rect_contribution_1.RectBoundsContribution).toService(rect_contribution_1.DefaultRectOuterBorderBoundsContribution),
13
- (0, contribution_provider_1.bindContributionProvider)(bind, rect_contribution_1.RectBoundsContribution),
14
- bind(symbol_contribution_1.DefaultSymbolOuterBorderBoundsContribution).toSelf().inSingletonScope(),
15
- bind(symbol_contribution_1.SymbolBoundsContribution).toService(symbol_contribution_1.DefaultSymbolOuterBorderBoundsContribution),
16
- (0, contribution_provider_1.bindContributionProvider)(bind, symbol_contribution_1.SymbolBoundsContribution),
17
- bind(circle_contribution_1.DefaultCircleOuterBorderBoundsContribution).toSelf().inSingletonScope(),
18
- bind(circle_contribution_1.CircleBoundsContribution).toService(circle_contribution_1.DefaultCircleOuterBorderBoundsContribution),
19
- (0, contribution_provider_1.bindContributionProvider)(bind, circle_contribution_1.CircleBoundsContribution),
20
- bind(arc_contribution_1.DefaultArcOuterBorderBoundsContribution).toSelf().inSingletonScope(),
21
- bind(arc_contribution_1.ArcBoundsContribution).toService(arc_contribution_1.DefaultArcOuterBorderBoundsContribution),
22
- (0, contribution_provider_1.bindContributionProvider)(bind, arc_contribution_1.ArcBoundsContribution),
23
- bind(path_contribution_1.DefaultPathOuterBorderBoundsContribution).toSelf().inSingletonScope(),
24
- bind(path_contribution_1.PathBoundsContribution).toService(path_contribution_1.DefaultPathOuterBorderBoundsContribution),
25
- (0, contribution_provider_1.bindContributionProvider)(bind, path_contribution_1.PathBoundsContribution),
10
+ bind(constants_1.GraphicService).to(graphic_service_1.DefaultGraphicService).inSingletonScope(),
26
11
  bind(constants_1.GraphicCreator).toConstantValue(graphic_creator_1.graphicCreator);
27
12
  }));
28
13
  //# sourceMappingURL=graphic-module.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/graphic-module.ts"],"names":[],"mappings":";;AAAA,gEAA8D;AAC9D,8EAA8E;AAC9E,yDAAoG;AACpG,+DAA6G;AAE7G,uDAA0D;AAC1D,2DAAuG;AACvG,2DAAuG;AACvG,+DAA6G;AAC7G,4CAA8D;AAC9D,wDAAoD;AAGpD,kBAAe,IAAI,gCAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,uCAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,0BAAc,CAAC,CAAC,SAAS,CAAC,uCAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,4DAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,4DAAwC,CAAC,CAAC;IACjF,IAAA,gDAAwB,EAAC,IAAI,EAAE,0CAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,gEAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,8CAAwB,CAAC,CAAC,SAAS,CAAC,gEAA0C,CAAC,CAAC;IACrF,IAAA,gDAAwB,EAAC,IAAI,EAAE,8CAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,gEAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,8CAAwB,CAAC,CAAC,SAAS,CAAC,gEAA0C,CAAC,CAAC;IACrF,IAAA,gDAAwB,EAAC,IAAI,EAAE,8CAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,0DAAuC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1E,IAAI,CAAC,wCAAqB,CAAC,CAAC,SAAS,CAAC,0DAAuC,CAAC,CAAC;IAC/E,IAAA,gDAAwB,EAAC,IAAI,EAAE,wCAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,4DAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,4DAAwC,CAAC,CAAC;IACjF,IAAA,gDAAwB,EAAC,IAAI,EAAE,0CAAsB,CAAC,CAAC;IAEvD,IAAI,CAAC,0BAAc,CAAC,CAAC,eAAe,CAAC,gCAAc,CAAC,CAAC;AAMvD,CAAC,CAAC,CAAC","file":"graphic-module.js","sourcesContent":["import { ContainerModule } from '../../common/inversify-lite';\nimport { bindContributionProvider } from '../../common/contribution-provider';\nimport { ArcBoundsContribution, DefaultArcOuterBorderBoundsContribution } from './arc-contribution';\nimport { CircleBoundsContribution, DefaultCircleOuterBorderBoundsContribution } from './circle-contribution';\n// import { DefaultTheme } from './default-theme';\nimport { DefaultGraphicService } from './graphic-service';\nimport { DefaultPathOuterBorderBoundsContribution, PathBoundsContribution } from './path-contribution';\nimport { RectBoundsContribution, DefaultRectOuterBorderBoundsContribution } from './rect-contribution';\nimport { DefaultSymbolOuterBorderBoundsContribution, SymbolBoundsContribution } from './symbol-contribution';\nimport { GraphicCreator, GraphicService } from '../constants';\nimport { graphicCreator } from '../graphic-creator';\n// import { DefaultThemeService, Theme, ThemeServce } from './theme-service';\n\nexport default new ContainerModule(bind => {\n bind(DefaultGraphicService).toSelf().inSingletonScope();\n bind(GraphicService).toService(DefaultGraphicService);\n\n // rect的bounds contributions\n bind(DefaultRectOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(RectBoundsContribution).toService(DefaultRectOuterBorderBoundsContribution);\n bindContributionProvider(bind, RectBoundsContribution);\n\n // symbol的bounds contributions\n bind(DefaultSymbolOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(SymbolBoundsContribution).toService(DefaultSymbolOuterBorderBoundsContribution);\n bindContributionProvider(bind, SymbolBoundsContribution);\n\n // circle的bounds contributions\n bind(DefaultCircleOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(CircleBoundsContribution).toService(DefaultCircleOuterBorderBoundsContribution);\n bindContributionProvider(bind, CircleBoundsContribution);\n\n // arc的bounds contributions\n bind(DefaultArcOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(ArcBoundsContribution).toService(DefaultArcOuterBorderBoundsContribution);\n bindContributionProvider(bind, ArcBoundsContribution);\n\n // path的bounds contributions\n bind(DefaultPathOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(PathBoundsContribution).toService(DefaultPathOuterBorderBoundsContribution);\n bindContributionProvider(bind, PathBoundsContribution);\n\n bind(GraphicCreator).toConstantValue(graphicCreator);\n // bind(DefaultThemeService).toSelf().inSingletonScope();\n // bind(ThemeServce).toService(DefaultThemeService);\n // bind(DefaultTheme).toSelf().inSingletonScope();\n // bind(Theme).toService(DefaultTheme);\n // bindContributionProvider(bind, Theme);\n});\n"]}
1
+ {"version":3,"sources":["../src/graphic/graphic-service/graphic-module.ts"],"names":[],"mappings":";;AAAA,gEAA8D;AAE9D,uDAA0D;AAC1D,4CAA8D;AAC9D,wDAAoD;AAGpD,kBAAe,IAAI,gCAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,0BAAc,CAAC,CAAC,EAAE,CAAC,uCAAqB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAElE,IAAI,CAAC,0BAAc,CAAC,CAAC,eAAe,CAAC,gCAAc,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC","file":"graphic-module.js","sourcesContent":["import { ContainerModule } from '../../common/inversify-lite';\n// import { DefaultTheme } from './default-theme';\nimport { DefaultGraphicService } from './graphic-service';\nimport { GraphicCreator, GraphicService } from '../constants';\nimport { graphicCreator } from '../graphic-creator';\n// import { DefaultThemeService, Theme, ThemeServce } from './theme-service';\n\nexport default new ContainerModule(bind => {\n bind(GraphicService).to(DefaultGraphicService).inSingletonScope();\n\n bind(GraphicCreator).toConstantValue(graphicCreator);\n});\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { IAABBBounds, IBounds, IMatrix } from '@visactor/vutils';
2
2
  import { AABBBounds } from '@visactor/vutils';
3
- import type { mat4, vec3, IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, IGraphicAttribute, ICircle, ICircleGraphicAttribute, IGraphic, IGroup, IGroupGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRectGraphicAttribute, IStage, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IGlyph, IGlyphGraphicAttribute, IRichTextGraphicAttribute, IRichText, IPyramid3dGraphicAttribute, IPyramid3d, IArc3dGraphicAttribute, IArc3d, IImageGraphicAttribute, ITransform, IGraphicService, IGraphicCreator, ISyncHook, IRectBoundsContribution, ISymbolBoundsContribution, ICircleBoundsContribution, IArcBoundsContribution, IPathBoundsContribution, IContributionProvider } from '../../interface';
3
+ import type { mat4, vec3, IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, IGraphicAttribute, ICircle, ICircleGraphicAttribute, IGraphic, IGroup, IGroupGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRectGraphicAttribute, IStage, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IGlyph, IGlyphGraphicAttribute, IRichTextGraphicAttribute, IRichText, IPyramid3dGraphicAttribute, IPyramid3d, IArc3dGraphicAttribute, IArc3d, IImageGraphicAttribute, ITransform, IGraphicService, IGraphicCreator, ISyncHook, IRectBoundsContribution, ISymbolBoundsContribution, ICircleBoundsContribution, IArcBoundsContribution, IPathBoundsContribution } from '../../interface';
4
4
  export declare function rotateX(out: mat4, a: mat4, rad: number): mat4;
5
5
  export declare function rotateY(out: mat4, a: mat4, rad: number): mat4;
6
6
  export declare function translate(out: mat4, a: mat4, v: vec3): mat4;
@@ -12,11 +12,6 @@ export declare function getModelMatrix(out: mat4, graphic: IGraphic, theme: ITra
12
12
  export declare function shouldUseMat4(graphic: IGraphic): number;
13
13
  export declare class DefaultGraphicService implements IGraphicService {
14
14
  readonly creator: IGraphicCreator;
15
- protected readonly rectBoundsContribitions: IContributionProvider<IRectBoundsContribution>;
16
- protected readonly symbolBoundsContribitions: IContributionProvider<ISymbolBoundsContribution>;
17
- protected readonly circleBoundsContribitions: IContributionProvider<ICircleBoundsContribution>;
18
- protected readonly arcBoundsContribitions: IContributionProvider<IArcBoundsContribution>;
19
- protected readonly pathBoundsContribitions: IContributionProvider<IPathBoundsContribution>;
20
15
  hooks: {
21
16
  onAttributeUpdate: ISyncHook<[IGraphic]>;
22
17
  onSetStage: ISyncHook<[IGraphic, IStage]>;
@@ -36,7 +31,7 @@ export declare class DefaultGraphicService implements IGraphicService {
36
31
  protected _pathBoundsContribitions: IPathBoundsContribution[];
37
32
  protected tempAABBBounds1: AABBBounds;
38
33
  protected tempAABBBounds2: AABBBounds;
39
- constructor(creator: IGraphicCreator, rectBoundsContribitions: IContributionProvider<IRectBoundsContribution>, symbolBoundsContribitions: IContributionProvider<ISymbolBoundsContribution>, circleBoundsContribitions: IContributionProvider<ICircleBoundsContribution>, arcBoundsContribitions: IContributionProvider<IArcBoundsContribution>, pathBoundsContribitions: IContributionProvider<IPathBoundsContribution>);
34
+ constructor(creator: IGraphicCreator);
40
35
  onAttributeUpdate(graphic: IGraphic): void;
41
36
  onSetStage(graphic: IGraphic, stage: IStage): void;
42
37
  onRemove(graphic: IGraphic<Partial<IGraphicAttribute>>): void;
@@ -72,9 +67,10 @@ export declare class DefaultGraphicService implements IGraphicService {
72
67
  protected updateArcAABBBoundsImprecise(attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
73
68
  protected updateArcAABBBoundsAccurate(attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
74
69
  updateSymbolAABBBounds(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, full?: boolean, graphic?: ISymbol): IBounds;
75
- updateSymbolAABBBoundsImprecise(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
76
- updateSymbolAABBBoundsAccurate(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ISymbol): IAABBBounds;
70
+ protected updateSymbolAABBBoundsImprecise(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
71
+ protected updateSymbolAABBBoundsAccurate(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ISymbol): IAABBBounds;
77
72
  updateImageAABBBounds(attribute: IImageGraphicAttribute, imageTheme: Required<IImageGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IBounds;
78
73
  combindShadowAABBBounds(bounds: IAABBBounds, graphic?: IGraphic): void;
79
74
  transformAABBBounds(attribute: Partial<IGraphicAttribute>, aabbBounds: IAABBBounds, theme: Required<IGraphicAttribute>, miter: boolean, graphic?: IGraphic): void;
75
+ protected _validCheck(attribute: Partial<IGraphicAttribute>, theme: Required<IGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): boolean;
80
76
  }
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "__esModule", {
16
16
  value: !0
17
17
  }), exports.DefaultGraphicService = exports.shouldUseMat4 = exports.getModelMatrix = exports.getExtraModelMatrix = exports.multiplyMat4Mat4 = exports.multiplyMat4Mat3 = exports.mat3Tomat4 = exports.translate = exports.rotateY = exports.rotateX = void 0;
18
18
 
19
- const inversify_lite_1 = require("../../common/inversify-lite"), vutils_1 = require("@visactor/vutils"), tapable_1 = require("../../tapable"), rect_contribution_1 = require("./rect-contribution"), text_1 = require("../../common/text"), symbol_contribution_1 = require("./symbol-contribution"), tools_1 = require("../tools"), circle_contribution_1 = require("./circle-contribution"), arc_contribution_1 = require("./arc-contribution"), path_contribution_1 = require("./path-contribution"), matrix_allocate_1 = require("../../allocator/matrix-allocate"), contribution_provider_1 = require("../../common/contribution-provider"), bounds_context_1 = require("../../common/bounds-context"), render_command_list_1 = require("../../common/render-command-list"), utils_1 = require("../../common/utils"), constants_1 = require("../constants");
19
+ const inversify_lite_1 = require("../../common/inversify-lite"), vutils_1 = require("@visactor/vutils"), tapable_1 = require("../../tapable"), text_1 = require("../../common/text"), symbol_contribution_1 = require("./symbol-contribution"), tools_1 = require("../tools"), matrix_allocate_1 = require("../../allocator/matrix-allocate"), bounds_context_1 = require("../../common/bounds-context"), render_command_list_1 = require("../../common/render-command-list"), utils_1 = require("../../common/utils"), constants_1 = require("../constants"), common_contribution_1 = require("./common-contribution");
20
20
 
21
21
  function identity(out) {
22
22
  return out[0] = 1, out[1] = 0, out[2] = 0, out[3] = 0, out[4] = 0, out[5] = 1, out[6] = 0,
@@ -177,11 +177,8 @@ exports.getExtraModelMatrix = getExtraModelMatrix, exports.getModelMatrix = getM
177
177
  exports.shouldUseMat4 = shouldUseMat4;
178
178
 
179
179
  let DefaultGraphicService = class {
180
- constructor(creator, rectBoundsContribitions, symbolBoundsContribitions, circleBoundsContribitions, arcBoundsContribitions, pathBoundsContribitions) {
181
- this.creator = creator, this.rectBoundsContribitions = rectBoundsContribitions,
182
- this.symbolBoundsContribitions = symbolBoundsContribitions, this.circleBoundsContribitions = circleBoundsContribitions,
183
- this.arcBoundsContribitions = arcBoundsContribitions, this.pathBoundsContribitions = pathBoundsContribitions,
184
- this.hooks = {
180
+ constructor(creator) {
181
+ this.creator = creator, this.hooks = {
185
182
  onAttributeUpdate: new tapable_1.SyncHook([ "graphic" ]),
186
183
  onSetStage: new tapable_1.SyncHook([ "graphic", "stage" ]),
187
184
  onRemove: new tapable_1.SyncHook([ "graphic" ]),
@@ -190,7 +187,12 @@ let DefaultGraphicService = class {
190
187
  onClearIncremental: new tapable_1.SyncHook([ "graphic", "group", "stage" ]),
191
188
  beforeUpdateAABBBounds: new tapable_1.SyncHook([ "graphic", "stage", "willUpdate", "aabbBounds" ]),
192
189
  afterUpdateAABBBounds: new tapable_1.SyncHook([ "graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange" ])
193
- }, this.tempAABBBounds1 = new vutils_1.AABBBounds, this.tempAABBBounds2 = new vutils_1.AABBBounds;
190
+ }, this.tempAABBBounds1 = new vutils_1.AABBBounds, this.tempAABBBounds2 = new vutils_1.AABBBounds,
191
+ this._rectBoundsContribitions = [ new common_contribution_1.DefaultOuterBorderBoundsContribution ],
192
+ this._symbolBoundsContribitions = [ new symbol_contribution_1.DefaultSymbolOuterBorderBoundsContribution ],
193
+ this._circleBoundsContribitions = [ new common_contribution_1.DefaultOuterBorderBoundsContribution ],
194
+ this._arcBoundsContribitions = [ new common_contribution_1.DefaultOuterBorderBoundsContribution ],
195
+ this._pathBoundsContribitions = [ new common_contribution_1.DefaultOuterBorderBoundsContribution ];
194
196
  }
195
197
  onAttributeUpdate(graphic) {
196
198
  this.hooks.onAttributeUpdate.taps.length && this.hooks.onAttributeUpdate.call(graphic);
@@ -224,14 +226,16 @@ let DefaultGraphicService = class {
224
226
  !0;
225
227
  }
226
228
  updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
229
+ if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
227
230
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
228
- const {width: width = rectTheme.width, height: height = rectTheme.height} = attribute;
229
- aabbBounds.set(0, 0, width, height);
231
+ let {width: width, height: height} = attribute;
232
+ const {x1: x1, y1: y1, x: x, y: y} = attribute;
233
+ width = null != width ? width : x1 - x, height = null != height ? height : y1 - y,
234
+ aabbBounds.set(0, 0, width || 0, height || 0);
230
235
  }
231
236
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
232
237
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
233
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
234
- this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
238
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
235
239
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
236
240
  })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, !1, graphic), aabbBounds;
237
241
  }
@@ -248,11 +252,12 @@ let DefaultGraphicService = class {
248
252
  aabbBounds;
249
253
  }
250
254
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
251
- return graphic.getSubGraphic().forEach((node => {
255
+ return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach((node => {
252
256
  aabbBounds.union(node.AABBBounds);
253
- })), aabbBounds;
257
+ })), aabbBounds) : aabbBounds;
254
258
  }
255
259
  updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
260
+ if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
256
261
  if (!graphic) return aabbBounds;
257
262
  const {width: width = richtextTheme.width, height: height = richtextTheme.height, maxWidth: maxWidth = richtextTheme.maxWidth, maxHeight: maxHeight = richtextTheme.maxHeight, textAlign: textAlign = richtextTheme.textAlign, textBaseline: textBaseline = richtextTheme.textBaseline} = attribute;
258
263
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height); else {
@@ -295,6 +300,7 @@ let DefaultGraphicService = class {
295
300
  aabbBounds;
296
301
  }
297
302
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
303
+ if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
298
304
  if (!graphic) return aabbBounds;
299
305
  const {text: text = textTheme.text} = graphic.attribute;
300
306
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
@@ -309,10 +315,10 @@ let DefaultGraphicService = class {
309
315
  aabbBounds;
310
316
  }
311
317
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
318
+ if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
312
319
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
313
320
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
314
321
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
315
- this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
316
322
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
317
323
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
318
324
  }));
@@ -350,6 +356,7 @@ let DefaultGraphicService = class {
350
356
  aabbBounds;
351
357
  }
352
358
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
359
+ if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
353
360
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
354
361
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
355
362
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -364,6 +371,7 @@ let DefaultGraphicService = class {
364
371
  })), aabbBounds;
365
372
  }
366
373
  updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
374
+ if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
367
375
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
368
376
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
369
377
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -386,6 +394,7 @@ let DefaultGraphicService = class {
386
394
  })), b;
387
395
  }
388
396
  updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
397
+ if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
389
398
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
390
399
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
391
400
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -410,11 +419,11 @@ let DefaultGraphicService = class {
410
419
  })), b;
411
420
  }
412
421
  updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
422
+ if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
413
423
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
414
424
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
415
425
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
416
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
417
- this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
426
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
418
427
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
419
428
  })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, !1, graphic),
420
429
  aabbBounds;
@@ -429,10 +438,10 @@ let DefaultGraphicService = class {
429
438
  utils_1.circleBounds)(startAngle, endAngle, radius, aabbBounds), aabbBounds;
430
439
  }
431
440
  updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
441
+ if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
432
442
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
433
443
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
434
444
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
435
- this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
436
445
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
437
446
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
438
447
  }));
@@ -460,10 +469,10 @@ let DefaultGraphicService = class {
460
469
  aabbBounds;
461
470
  }
462
471
  updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
472
+ if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
463
473
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
464
474
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
465
475
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
466
- this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
467
476
  this._symbolBoundsContribitions.length && this._symbolBoundsContribitions.forEach((c => {
468
477
  c.updateBounds(attribute, symbolTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
469
478
  }));
@@ -485,6 +494,7 @@ let DefaultGraphicService = class {
485
494
  return graphic.getParsedPath().bounds(size, aabbBounds), aabbBounds;
486
495
  }
487
496
  updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
497
+ if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
488
498
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
489
499
  const {width: width = imageTheme.width, height: height = imageTheme.height} = attribute;
490
500
  aabbBounds.set(0, 0, width, height);
@@ -502,29 +512,30 @@ let DefaultGraphicService = class {
502
512
  }
503
513
  transformAABBBounds(attribute, aabbBounds, theme, miter, graphic) {
504
514
  const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = theme.stroke, shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
505
- if (stroke) {
515
+ if (stroke && lineWidth) {
506
516
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
507
517
  (0, tools_1.boundStroke)(tb1, scaledHalfLineWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1),
508
518
  tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
509
519
  }
510
520
  if (shadowBlur) {
511
- const shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
512
- (0, tools_1.boundStroke)(tb1, shadowBlurHalfWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1);
521
+ const {shadowOffsetX: shadowOffsetX = theme.shadowOffsetX, shadowOffsetY: shadowOffsetY = theme.shadowOffsetY} = attribute, shadowBlurWidth = shadowBlur / Math.abs(scaleX + scaleY) * 2 + Math.max(shadowOffsetX, shadowOffsetY);
522
+ (0, tools_1.boundStroke)(tb1, shadowBlurWidth, miter, strokeBoundsBuffer + 1), aabbBounds.union(tb1);
513
523
  }
514
- this.combindShadowAABBBounds(aabbBounds, graphic), (0, vutils_1.transformBoundsWithMatrix)(aabbBounds, aabbBounds, graphic.transMatrix);
524
+ this.combindShadowAABBBounds(aabbBounds, graphic);
525
+ let updateMatrix = !0;
526
+ const m = graphic.transMatrix;
527
+ graphic && graphic.isContainer && (updateMatrix = !(1 === m.a && 0 === m.b && 0 === m.c && 1 === m.d && 0 === m.e && 0 === m.f)),
528
+ updateMatrix && (0, vutils_1.transformBoundsWithMatrix)(aabbBounds, aabbBounds, m);
529
+ }
530
+ _validCheck(attribute, theme, aabbBounds, graphic) {
531
+ if (!graphic) return !0;
532
+ if (!graphic.valid) return aabbBounds.clear(), !1;
533
+ const {visible: visible = theme.visible} = attribute;
534
+ return !!visible || (aabbBounds.clear(), !1);
515
535
  }
516
536
  };
517
537
 
518
538
  DefaultGraphicService = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
519
- inversify_lite_1.inject)(constants_1.GraphicCreator)), __param(1, (0, inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(1, (0,
520
- inversify_lite_1.named)(rect_contribution_1.RectBoundsContribution)), __param(2, (0,
521
- inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(2, (0,
522
- inversify_lite_1.named)(symbol_contribution_1.SymbolBoundsContribution)), __param(3, (0,
523
- inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(3, (0,
524
- inversify_lite_1.named)(circle_contribution_1.CircleBoundsContribution)), __param(4, (0,
525
- inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(4, (0,
526
- inversify_lite_1.named)(arc_contribution_1.ArcBoundsContribution)), __param(5, (0,
527
- inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(5, (0,
528
- inversify_lite_1.named)(path_contribution_1.PathBoundsContribution)), __metadata("design:paramtypes", [ Object, Object, Object, Object, Object, Object ]) ], DefaultGraphicService),
539
+ inversify_lite_1.inject)(constants_1.GraphicCreator)), __metadata("design:paramtypes", [ Object ]) ], DefaultGraphicService),
529
540
  exports.DefaultGraphicService = DefaultGraphicService;
530
541
  //# sourceMappingURL=graphic-service.js.map