@visactor/vrender-core 0.17.0-alpha.7 → 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 (622) 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 +1 -1
  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 +12 -3
  16. package/cjs/animate/custom-animate.js +92 -2
  17. package/cjs/animate/custom-animate.js.map +1 -1
  18. package/cjs/canvas/contributions/base-canvas.js +4 -2
  19. package/cjs/canvas/contributions/base-canvas.js.map +1 -1
  20. package/cjs/common/Reflect-metadata.js +349 -359
  21. package/cjs/common/Reflect-metadata.js.map +1 -1
  22. package/cjs/common/bezier-utils.js +2 -1
  23. package/cjs/common/inversify/annotation/inject.d.ts +1 -0
  24. package/cjs/common/inversify/annotation/inject.js +10 -0
  25. package/cjs/common/inversify/annotation/inject.js.map +1 -0
  26. package/cjs/common/inversify/annotation/inject_base.d.ts +14 -0
  27. package/cjs/common/inversify/annotation/inject_base.js +39 -0
  28. package/cjs/common/inversify/annotation/inject_base.js.map +1 -0
  29. package/cjs/common/inversify/annotation/injectable.d.ts +1 -0
  30. package/cjs/common/{inversify-lite/annotation/post_construct.js → inversify/annotation/injectable.js} +15 -5
  31. package/cjs/common/inversify/annotation/injectable.js.map +1 -0
  32. package/cjs/common/inversify/annotation/multi_inject.d.ts +1 -0
  33. package/cjs/common/inversify/annotation/multi_inject.js +10 -0
  34. package/cjs/common/inversify/annotation/multi_inject.js.map +1 -0
  35. package/cjs/common/inversify/annotation/named.d.ts +1 -0
  36. package/cjs/common/inversify/annotation/named.js +14 -0
  37. package/cjs/common/inversify/annotation/named.js.map +1 -0
  38. package/cjs/common/inversify/binding.d.ts +18 -0
  39. package/cjs/common/inversify/binding.js +26 -0
  40. package/cjs/common/inversify/binding.js.map +1 -0
  41. package/cjs/common/inversify/container.d.ts +28 -0
  42. package/cjs/common/inversify/container.js +155 -0
  43. package/cjs/common/inversify/container.js.map +1 -0
  44. package/cjs/common/inversify/cotainer-module.d.ts +6 -0
  45. package/cjs/common/inversify/cotainer-module.js +16 -0
  46. package/cjs/common/inversify/cotainer-module.js.map +1 -0
  47. package/cjs/common/inversify/index.d.ts +7 -0
  48. package/cjs/common/inversify/index.js +75 -0
  49. package/cjs/common/inversify/index.js.map +1 -0
  50. package/cjs/common/inversify/interfaces.d.ts +218 -0
  51. package/cjs/common/inversify/interfaces.js +6 -0
  52. package/cjs/common/inversify/interfaces.js.map +1 -0
  53. package/cjs/common/inversify/literal_types.d.ts +5 -0
  54. package/cjs/common/inversify/literal_types.js +34 -0
  55. package/cjs/common/inversify/literal_types.js.map +1 -0
  56. package/cjs/common/inversify/meta-data.d.ts +6 -0
  57. package/cjs/common/inversify/meta-data.js +19 -0
  58. package/cjs/common/inversify/meta-data.js.map +1 -0
  59. package/cjs/common/inversify/metadata_keys.d.ts +12 -0
  60. package/cjs/common/inversify/metadata_keys.js +15 -0
  61. package/cjs/common/inversify/metadata_keys.js.map +1 -0
  62. package/cjs/common/inversify/metadata_reader.d.ts +6 -0
  63. package/cjs/common/inversify/metadata_reader.js +28 -0
  64. package/cjs/common/inversify/metadata_reader.js.map +1 -0
  65. package/cjs/common/inversify/syntax/binding_in_syntax.d.ts +10 -0
  66. package/cjs/common/inversify/syntax/binding_in_syntax.js +29 -0
  67. package/cjs/common/inversify/syntax/binding_in_syntax.js.map +1 -0
  68. package/cjs/common/inversify/syntax/binding_to_syntax.d.ts +12 -0
  69. package/cjs/common/inversify/syntax/binding_to_syntax.js +40 -0
  70. package/cjs/common/inversify/syntax/binding_to_syntax.js.map +1 -0
  71. package/cjs/common/inversify/syntax/constraint_helpers.d.ts +2 -0
  72. package/cjs/common/inversify/syntax/constraint_helpers.js +20 -0
  73. package/cjs/common/inversify/syntax/constraint_helpers.js.map +1 -0
  74. package/cjs/common/inversify-lite/container/container.js +1 -3
  75. package/cjs/common/inversify-lite/container/container.js.map +1 -1
  76. package/cjs/common/inversify-lite/index.d.ts +1 -8
  77. package/cjs/common/inversify-lite/index.js +1 -64
  78. package/cjs/common/inversify-lite/index.js.map +1 -1
  79. package/cjs/common/inversify-lite/interfaces/interfaces.d.ts +0 -2
  80. package/cjs/common/inversify-lite/interfaces/interfaces.js.map +1 -1
  81. package/cjs/common/inversify-lite/planning/queryable_string.d.ts +0 -2
  82. package/cjs/common/inversify-lite/planning/queryable_string.js +0 -10
  83. package/cjs/common/inversify-lite/planning/queryable_string.js.map +1 -1
  84. package/cjs/common/inversify-lite/resolution/resolver.js.map +1 -1
  85. package/cjs/common/shape/rect.js +2 -1
  86. package/cjs/common/shape/rect.js.map +1 -1
  87. package/cjs/common/sort.js +1 -2
  88. package/cjs/common/split-path.js +2 -1
  89. package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -2
  90. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +4 -9
  91. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  92. package/cjs/core/contributions/layerHandler/empty-contribution.d.ts +2 -2
  93. package/cjs/core/contributions/layerHandler/empty-contribution.js +4 -9
  94. package/cjs/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  95. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -2
  96. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +4 -9
  97. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  98. package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +14 -2
  99. package/cjs/core/contributions/textMeasure/AtextMeasure.js +99 -13
  100. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  101. package/cjs/core/contributions/textMeasure/layout.d.ts +2 -2
  102. package/cjs/core/contributions/textMeasure/layout.js +4 -4
  103. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  104. package/cjs/core/contributions/textMeasure/modules.js +1 -2
  105. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  106. package/cjs/core/core-modules.js +5 -6
  107. package/cjs/core/core-modules.js.map +1 -1
  108. package/cjs/core/global.d.ts +4 -0
  109. package/cjs/core/global.js +8 -5
  110. package/cjs/core/global.js.map +1 -1
  111. package/cjs/core/graphic-utils.d.ts +7 -4
  112. package/cjs/core/graphic-utils.js +18 -14
  113. package/cjs/core/graphic-utils.js.map +1 -1
  114. package/cjs/core/layer-service.d.ts +5 -2
  115. package/cjs/core/layer-service.js +13 -13
  116. package/cjs/core/layer-service.js.map +1 -1
  117. package/cjs/core/stage.d.ts +7 -4
  118. package/cjs/core/stage.js +38 -34
  119. package/cjs/core/stage.js.map +1 -1
  120. package/cjs/core/window.d.ts +2 -2
  121. package/cjs/core/window.js +7 -12
  122. package/cjs/core/window.js.map +1 -1
  123. package/cjs/event/event-manager.d.ts +5 -1
  124. package/cjs/event/event-manager.js +28 -22
  125. package/cjs/event/event-manager.js.map +1 -1
  126. package/cjs/event/event-system.js +12 -11
  127. package/cjs/event/event-system.js.map +1 -1
  128. package/cjs/event/federated-event/base-event.d.ts +5 -6
  129. package/cjs/event/federated-event/base-event.js +14 -5
  130. package/cjs/event/federated-event/base-event.js.map +1 -1
  131. package/cjs/event/federated-event/mouse-event.d.ts +6 -6
  132. package/cjs/event/federated-event/mouse-event.js +17 -3
  133. package/cjs/event/federated-event/mouse-event.js.map +1 -1
  134. package/cjs/graphic/area.js +1 -0
  135. package/cjs/graphic/area.js.map +1 -1
  136. package/cjs/graphic/config.js +8 -3
  137. package/cjs/graphic/config.js.map +1 -1
  138. package/cjs/graphic/graphic-service/arc-contribution.d.ts +1 -5
  139. package/cjs/graphic/graphic-service/arc-contribution.js +0 -18
  140. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  141. package/cjs/graphic/graphic-service/area-contribution.d.ts +1 -1
  142. package/cjs/graphic/graphic-service/area-contribution.js +1 -4
  143. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  144. package/cjs/graphic/graphic-service/circle-contribution.d.ts +1 -5
  145. package/cjs/graphic/graphic-service/circle-contribution.js +0 -18
  146. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  147. package/cjs/graphic/graphic-service/common-contribution.js +2 -11
  148. package/cjs/graphic/graphic-service/common-contribution.js.map +1 -1
  149. package/cjs/graphic/graphic-service/graphic-module.js +2 -17
  150. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  151. package/cjs/graphic/graphic-service/graphic-service.d.ts +5 -9
  152. package/cjs/graphic/graphic-service/graphic-service.js +43 -32
  153. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  154. package/cjs/graphic/graphic-service/path-contribution.d.ts +1 -5
  155. package/cjs/graphic/graphic-service/path-contribution.js +0 -18
  156. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  157. package/cjs/graphic/graphic-service/rect-contribution.d.ts +1 -5
  158. package/cjs/graphic/graphic-service/rect-contribution.js +0 -18
  159. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  160. package/cjs/graphic/graphic-service/symbol-contribution.d.ts +0 -1
  161. package/cjs/graphic/graphic-service/symbol-contribution.js +4 -13
  162. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  163. package/cjs/graphic/graphic.js +5 -3
  164. package/cjs/graphic/graphic.js.map +1 -1
  165. package/cjs/graphic/group.d.ts +1 -0
  166. package/cjs/graphic/group.js +7 -3
  167. package/cjs/graphic/group.js.map +1 -1
  168. package/cjs/graphic/line.js +1 -0
  169. package/cjs/graphic/line.js.map +1 -1
  170. package/cjs/graphic/node-tree.js +1 -1
  171. package/cjs/graphic/node-tree.js.map +1 -1
  172. package/cjs/graphic/rect.d.ts +2 -3
  173. package/cjs/graphic/rect.js +3 -5
  174. package/cjs/graphic/rect.js.map +1 -1
  175. package/cjs/graphic/richtext.d.ts +3 -3
  176. package/cjs/graphic/richtext.js.map +1 -1
  177. package/cjs/graphic/symbol.js +8 -7
  178. package/cjs/graphic/symbol.js.map +1 -1
  179. package/cjs/graphic/text.js +8 -8
  180. package/cjs/graphic/text.js.map +1 -1
  181. package/cjs/graphic/theme.d.ts +4 -4
  182. package/cjs/graphic/theme.js +26 -27
  183. package/cjs/graphic/theme.js.map +1 -1
  184. package/cjs/index.d.ts +2 -0
  185. package/cjs/index.js +1 -0
  186. package/cjs/index.js.map +1 -1
  187. package/cjs/interface/allocator.d.ts +1 -0
  188. package/cjs/interface/allocator.js.map +1 -1
  189. package/cjs/interface/event.d.ts +15 -44
  190. package/cjs/interface/event.js.map +1 -1
  191. package/cjs/interface/global.d.ts +1 -0
  192. package/cjs/interface/global.js.map +1 -1
  193. package/cjs/interface/graphic/rect.d.ts +2 -0
  194. package/cjs/interface/graphic/rect.js.map +1 -1
  195. package/cjs/interface/graphic/text.d.ts +1 -0
  196. package/cjs/interface/graphic/text.js.map +1 -1
  197. package/cjs/interface/graphic.d.ts +1 -1
  198. package/cjs/interface/graphic.js.map +1 -1
  199. package/cjs/interface/render.d.ts +2 -2
  200. package/cjs/interface/render.js.map +1 -1
  201. package/cjs/interface/stage.d.ts +8 -1
  202. package/cjs/interface/stage.js.map +1 -1
  203. package/cjs/interface/text.d.ts +2 -2
  204. package/cjs/interface/text.js.map +1 -1
  205. package/cjs/modules.d.ts +1 -2
  206. package/cjs/modules.js +8 -8
  207. package/cjs/modules.js.map +1 -1
  208. package/cjs/picker/global-picker-service.d.ts +2 -2
  209. package/cjs/picker/global-picker-service.js +4 -9
  210. package/cjs/picker/global-picker-service.js.map +1 -1
  211. package/cjs/picker/pick-interceptor.js +2 -1
  212. package/cjs/picker/pick-interceptor.js.map +1 -1
  213. package/cjs/picker/pick-modules.js +2 -4
  214. package/cjs/picker/pick-modules.js.map +1 -1
  215. package/cjs/picker/picker-service.d.ts +2 -2
  216. package/cjs/picker/picker-service.js +6 -6
  217. package/cjs/picker/picker-service.js.map +1 -1
  218. package/cjs/plugins/plugin-modules.js +1 -2
  219. package/cjs/plugins/plugin-modules.js.map +1 -1
  220. package/cjs/render/contributions/render/arc-render.js +2 -1
  221. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  222. package/cjs/render/contributions/render/area-render.d.ts +1 -0
  223. package/cjs/render/contributions/render/area-render.js +44 -6
  224. package/cjs/render/contributions/render/area-render.js.map +1 -1
  225. package/cjs/render/contributions/render/base-render.d.ts +1 -1
  226. package/cjs/render/contributions/render/base-render.js +15 -18
  227. package/cjs/render/contributions/render/base-render.js.map +1 -1
  228. package/cjs/render/contributions/render/circle-render.js +2 -1
  229. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  230. package/cjs/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -7
  231. package/cjs/render/contributions/render/contributions/arc-contribution-render.js +7 -30
  232. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  233. package/cjs/render/contributions/render/contributions/area-contribution-render.d.ts +3 -4
  234. package/cjs/render/contributions/render/contributions/area-contribution-render.js +7 -21
  235. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  236. package/cjs/render/contributions/render/contributions/base-contribution-render.d.ts +4 -0
  237. package/cjs/render/contributions/render/contributions/base-contribution-render.js +18 -11
  238. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  239. package/cjs/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -7
  240. package/cjs/render/contributions/render/contributions/circle-contribution-render.js +7 -30
  241. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  242. package/cjs/render/contributions/render/contributions/constants.d.ts +1 -0
  243. package/cjs/render/contributions/render/contributions/constants.js +2 -2
  244. package/cjs/render/contributions/render/contributions/constants.js.map +1 -1
  245. package/cjs/render/contributions/render/contributions/group-contribution-render.d.ts +1 -0
  246. package/cjs/render/contributions/render/contributions/group-contribution-render.js +8 -14
  247. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  248. package/cjs/render/contributions/render/contributions/image-contribution-render.d.ts +1 -0
  249. package/cjs/render/contributions/render/contributions/image-contribution-render.js +8 -15
  250. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  251. package/cjs/render/contributions/render/contributions/path-contribution-render.d.ts +2 -9
  252. package/cjs/render/contributions/render/contributions/path-contribution-render.js +4 -25
  253. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  254. package/cjs/render/contributions/render/contributions/polygon-contribution-render.d.ts +2 -9
  255. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js +4 -25
  256. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  257. package/cjs/render/contributions/render/contributions/rect-contribution-render.d.ts +5 -7
  258. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +17 -37
  259. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  260. package/cjs/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -7
  261. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +6 -27
  262. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  263. package/cjs/render/contributions/render/contributions/text-contribution-render.d.ts +8 -1
  264. package/cjs/render/contributions/render/contributions/text-contribution-render.js +25 -1
  265. package/cjs/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  266. package/cjs/render/contributions/render/draw-contribution.d.ts +7 -6
  267. package/cjs/render/contributions/render/draw-contribution.js +37 -25
  268. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  269. package/cjs/render/contributions/render/draw-interceptor.d.ts +9 -1
  270. package/cjs/render/contributions/render/draw-interceptor.js +41 -27
  271. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  272. package/cjs/render/contributions/render/group-render.js +3 -2
  273. package/cjs/render/contributions/render/group-render.js.map +1 -1
  274. package/cjs/render/contributions/render/image-render.js +4 -2
  275. package/cjs/render/contributions/render/image-render.js.map +1 -1
  276. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +2 -6
  277. package/cjs/render/contributions/render/incremental-draw-contribution.js +8 -11
  278. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  279. package/cjs/render/contributions/render/line-render.d.ts +1 -0
  280. package/cjs/render/contributions/render/line-render.js +21 -6
  281. package/cjs/render/contributions/render/line-render.js.map +1 -1
  282. package/cjs/render/contributions/render/module.js +32 -87
  283. package/cjs/render/contributions/render/module.js.map +1 -1
  284. package/cjs/render/contributions/render/path-render.d.ts +2 -1
  285. package/cjs/render/contributions/render/path-render.js +8 -5
  286. package/cjs/render/contributions/render/path-render.js.map +1 -1
  287. package/cjs/render/contributions/render/polygon-render.js +2 -1
  288. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  289. package/cjs/render/contributions/render/rect-render.d.ts +2 -1
  290. package/cjs/render/contributions/render/rect-render.js +11 -5
  291. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  292. package/cjs/render/contributions/render/render-slector.d.ts +1 -4
  293. package/cjs/render/contributions/render/render-slector.js +0 -20
  294. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  295. package/cjs/render/contributions/render/richtext-render.d.ts +1 -0
  296. package/cjs/render/contributions/render/richtext-render.js +12 -7
  297. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  298. package/cjs/render/contributions/render/symbol-render.js +22 -5
  299. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  300. package/cjs/render/contributions/render/text-render.js +12 -9
  301. package/cjs/render/contributions/render/text-render.js.map +1 -1
  302. package/cjs/render/contributions/render/utils.js +2 -2
  303. package/cjs/render/contributions/render/utils.js.map +1 -1
  304. package/cjs/render/render-modules.js +1 -1
  305. package/cjs/render/render-modules.js.map +1 -1
  306. package/cjs/render/render-service.js +1 -1
  307. package/cjs/render/render-service.js.map +1 -1
  308. package/dist/index.js +5903 -6437
  309. package/dist/index.min.js +1 -1
  310. package/es/allocator/bounds-allocate.d.ts +13 -0
  311. package/es/allocator/bounds-allocate.js +32 -0
  312. package/es/allocator/bounds-allocate.js.map +1 -0
  313. package/es/allocator/canvas-allocate.d.ts +4 -0
  314. package/es/allocator/canvas-allocate.js +19 -6
  315. package/es/allocator/canvas-allocate.js.map +1 -1
  316. package/es/allocator/graphic-allocate.d.ts +56 -1
  317. package/es/allocator/graphic-allocate.js +155 -1
  318. package/es/allocator/graphic-allocate.js.map +1 -1
  319. package/es/animate/Ticker/default-ticker.js +4 -2
  320. package/es/animate/Ticker/default-ticker.js.map +1 -1
  321. package/es/animate/animate.js +2 -2
  322. package/es/animate/animate.js.map +1 -1
  323. package/es/animate/config.js +1 -2
  324. package/es/animate/custom-animate.d.ts +12 -3
  325. package/es/animate/custom-animate.js +96 -2
  326. package/es/animate/custom-animate.js.map +1 -1
  327. package/es/canvas/contributions/base-canvas.js +4 -2
  328. package/es/canvas/contributions/base-canvas.js.map +1 -1
  329. package/es/common/Reflect-metadata.js +349 -359
  330. package/es/common/Reflect-metadata.js.map +1 -1
  331. package/es/common/bezier-utils.js +2 -1
  332. package/es/common/inversify/annotation/inject.d.ts +1 -0
  333. package/es/common/inversify/annotation/inject.js +6 -0
  334. package/es/common/inversify/annotation/inject.js.map +1 -0
  335. package/es/common/inversify/annotation/inject_base.d.ts +14 -0
  336. package/es/common/inversify/annotation/inject_base.js +29 -0
  337. package/es/common/inversify/annotation/inject_base.js.map +1 -0
  338. package/es/common/inversify/annotation/injectable.d.ts +1 -0
  339. package/es/common/inversify/annotation/injectable.js +10 -0
  340. package/es/common/inversify/annotation/injectable.js.map +1 -0
  341. package/es/common/inversify/annotation/multi_inject.d.ts +1 -0
  342. package/es/common/inversify/annotation/multi_inject.js +6 -0
  343. package/es/common/inversify/annotation/multi_inject.js.map +1 -0
  344. package/es/common/inversify/annotation/named.d.ts +1 -0
  345. package/es/common/inversify/annotation/named.js +10 -0
  346. package/es/common/inversify/annotation/named.js.map +1 -0
  347. package/es/common/inversify/binding.d.ts +18 -0
  348. package/es/common/inversify/binding.js +22 -0
  349. package/es/common/inversify/binding.js.map +1 -0
  350. package/es/common/inversify/container.d.ts +28 -0
  351. package/es/common/inversify/container.js +155 -0
  352. package/es/common/inversify/container.js.map +1 -0
  353. package/es/common/inversify/cotainer-module.d.ts +6 -0
  354. package/es/common/inversify/cotainer-module.js +8 -0
  355. package/es/common/inversify/cotainer-module.js.map +1 -0
  356. package/es/common/inversify/index.d.ts +7 -0
  357. package/es/common/inversify/index.js +14 -0
  358. package/es/common/inversify/index.js.map +1 -0
  359. package/es/common/inversify/interfaces.d.ts +218 -0
  360. package/es/common/inversify/interfaces.js +2 -0
  361. package/es/common/inversify/interfaces.js.map +1 -0
  362. package/es/common/inversify/literal_types.d.ts +5 -0
  363. package/es/common/inversify/literal_types.js +20 -0
  364. package/es/common/inversify/literal_types.js.map +1 -0
  365. package/es/common/inversify/meta-data.d.ts +6 -0
  366. package/es/common/inversify/meta-data.js +11 -0
  367. package/es/common/inversify/meta-data.js.map +1 -0
  368. package/es/common/inversify/metadata_keys.d.ts +12 -0
  369. package/es/common/inversify/metadata_keys.js +28 -0
  370. package/es/common/inversify/metadata_keys.js.map +1 -0
  371. package/es/common/inversify/metadata_reader.d.ts +6 -0
  372. package/es/common/inversify/metadata_reader.js +18 -0
  373. package/es/common/inversify/metadata_reader.js.map +1 -0
  374. package/es/common/inversify/syntax/binding_in_syntax.d.ts +10 -0
  375. package/es/common/inversify/syntax/binding_in_syntax.js +24 -0
  376. package/es/common/inversify/syntax/binding_in_syntax.js.map +1 -0
  377. package/es/common/inversify/syntax/binding_to_syntax.d.ts +12 -0
  378. package/es/common/inversify/syntax/binding_to_syntax.js +36 -0
  379. package/es/common/inversify/syntax/binding_to_syntax.js.map +1 -0
  380. package/es/common/inversify/syntax/constraint_helpers.d.ts +2 -0
  381. package/es/common/inversify/syntax/constraint_helpers.js +18 -0
  382. package/es/common/inversify/syntax/constraint_helpers.js.map +1 -0
  383. package/es/common/inversify-lite/container/container.js +2 -4
  384. package/es/common/inversify-lite/container/container.js.map +1 -1
  385. package/es/common/inversify-lite/index.d.ts +1 -8
  386. package/es/common/inversify-lite/index.js +1 -15
  387. package/es/common/inversify-lite/index.js.map +1 -1
  388. package/es/common/inversify-lite/interfaces/interfaces.d.ts +0 -2
  389. package/es/common/inversify-lite/interfaces/interfaces.js.map +1 -1
  390. package/es/common/inversify-lite/planning/queryable_string.d.ts +0 -2
  391. package/es/common/inversify-lite/planning/queryable_string.js +0 -10
  392. package/es/common/inversify-lite/planning/queryable_string.js.map +1 -1
  393. package/es/common/inversify-lite/resolution/resolver.js.map +1 -1
  394. package/es/common/shape/rect.js +2 -1
  395. package/es/common/shape/rect.js.map +1 -1
  396. package/es/common/sort.js +1 -2
  397. package/es/common/split-path.js +2 -1
  398. package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -2
  399. package/es/core/contributions/layerHandler/canvas2d-contribution.js +5 -9
  400. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  401. package/es/core/contributions/layerHandler/empty-contribution.d.ts +2 -2
  402. package/es/core/contributions/layerHandler/empty-contribution.js +5 -9
  403. package/es/core/contributions/layerHandler/empty-contribution.js.map +1 -1
  404. package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -2
  405. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +5 -9
  406. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  407. package/es/core/contributions/textMeasure/AtextMeasure.d.ts +14 -2
  408. package/es/core/contributions/textMeasure/AtextMeasure.js +99 -13
  409. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  410. package/es/core/contributions/textMeasure/layout.d.ts +2 -2
  411. package/es/core/contributions/textMeasure/layout.js +4 -4
  412. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  413. package/es/core/contributions/textMeasure/modules.js +1 -1
  414. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  415. package/es/core/core-modules.js +4 -6
  416. package/es/core/core-modules.js.map +1 -1
  417. package/es/core/global.d.ts +4 -0
  418. package/es/core/global.js +8 -4
  419. package/es/core/global.js.map +1 -1
  420. package/es/core/graphic-utils.d.ts +7 -4
  421. package/es/core/graphic-utils.js +20 -15
  422. package/es/core/graphic-utils.js.map +1 -1
  423. package/es/core/layer-service.d.ts +5 -2
  424. package/es/core/layer-service.js +14 -13
  425. package/es/core/layer-service.js.map +1 -1
  426. package/es/core/stage.d.ts +7 -4
  427. package/es/core/stage.js +42 -36
  428. package/es/core/stage.js.map +1 -1
  429. package/es/core/window.d.ts +2 -2
  430. package/es/core/window.js +8 -12
  431. package/es/core/window.js.map +1 -1
  432. package/es/event/event-manager.d.ts +5 -1
  433. package/es/event/event-manager.js +29 -23
  434. package/es/event/event-manager.js.map +1 -1
  435. package/es/event/event-system.js +8 -6
  436. package/es/event/event-system.js.map +1 -1
  437. package/es/event/federated-event/base-event.d.ts +5 -6
  438. package/es/event/federated-event/base-event.js +14 -5
  439. package/es/event/federated-event/base-event.js.map +1 -1
  440. package/es/event/federated-event/mouse-event.d.ts +6 -6
  441. package/es/event/federated-event/mouse-event.js +16 -4
  442. package/es/event/federated-event/mouse-event.js.map +1 -1
  443. package/es/graphic/area.js +1 -0
  444. package/es/graphic/area.js.map +1 -1
  445. package/es/graphic/config.js +9 -4
  446. package/es/graphic/config.js.map +1 -1
  447. package/es/graphic/graphic-service/arc-contribution.d.ts +1 -5
  448. package/es/graphic/graphic-service/arc-contribution.js +0 -15
  449. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  450. package/es/graphic/graphic-service/area-contribution.d.ts +1 -1
  451. package/es/graphic/graphic-service/area-contribution.js +2 -1
  452. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  453. package/es/graphic/graphic-service/circle-contribution.d.ts +1 -5
  454. package/es/graphic/graphic-service/circle-contribution.js +0 -15
  455. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  456. package/es/graphic/graphic-service/common-contribution.js +2 -14
  457. package/es/graphic/graphic-service/common-contribution.js.map +1 -1
  458. package/es/graphic/graphic-service/graphic-module.js +1 -23
  459. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  460. package/es/graphic/graphic-service/graphic-service.d.ts +5 -9
  461. package/es/graphic/graphic-service/graphic-service.js +44 -34
  462. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  463. package/es/graphic/graphic-service/path-contribution.d.ts +1 -5
  464. package/es/graphic/graphic-service/path-contribution.js +0 -15
  465. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  466. package/es/graphic/graphic-service/rect-contribution.d.ts +1 -5
  467. package/es/graphic/graphic-service/rect-contribution.js +0 -15
  468. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  469. package/es/graphic/graphic-service/symbol-contribution.d.ts +0 -1
  470. package/es/graphic/graphic-service/symbol-contribution.js +2 -16
  471. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  472. package/es/graphic/graphic.js +5 -3
  473. package/es/graphic/graphic.js.map +1 -1
  474. package/es/graphic/group.d.ts +1 -0
  475. package/es/graphic/group.js +8 -1
  476. package/es/graphic/group.js.map +1 -1
  477. package/es/graphic/line.js +1 -0
  478. package/es/graphic/line.js.map +1 -1
  479. package/es/graphic/node-tree.js +2 -2
  480. package/es/graphic/node-tree.js.map +1 -1
  481. package/es/graphic/rect.d.ts +2 -3
  482. package/es/graphic/rect.js +3 -7
  483. package/es/graphic/rect.js.map +1 -1
  484. package/es/graphic/richtext.d.ts +3 -3
  485. package/es/graphic/richtext.js.map +1 -1
  486. package/es/graphic/symbol.js +7 -7
  487. package/es/graphic/symbol.js.map +1 -1
  488. package/es/graphic/text.js +8 -8
  489. package/es/graphic/text.js.map +1 -1
  490. package/es/graphic/theme.d.ts +4 -4
  491. package/es/graphic/theme.js +27 -28
  492. package/es/graphic/theme.js.map +1 -1
  493. package/es/index.d.ts +2 -0
  494. package/es/index.js +4 -0
  495. package/es/index.js.map +1 -1
  496. package/es/interface/allocator.d.ts +1 -0
  497. package/es/interface/allocator.js.map +1 -1
  498. package/es/interface/event.d.ts +15 -44
  499. package/es/interface/event.js.map +1 -1
  500. package/es/interface/global.d.ts +1 -0
  501. package/es/interface/global.js.map +1 -1
  502. package/es/interface/graphic/rect.d.ts +2 -0
  503. package/es/interface/graphic/rect.js.map +1 -1
  504. package/es/interface/graphic/text.d.ts +1 -0
  505. package/es/interface/graphic/text.js.map +1 -1
  506. package/es/interface/graphic.d.ts +1 -1
  507. package/es/interface/graphic.js.map +1 -1
  508. package/es/interface/render.d.ts +2 -2
  509. package/es/interface/render.js.map +1 -1
  510. package/es/interface/stage.d.ts +8 -1
  511. package/es/interface/stage.js.map +1 -1
  512. package/es/interface/text.d.ts +2 -2
  513. package/es/interface/text.js.map +1 -1
  514. package/es/modules.d.ts +1 -2
  515. package/es/modules.js +0 -4
  516. package/es/modules.js.map +1 -1
  517. package/es/picker/global-picker-service.d.ts +2 -2
  518. package/es/picker/global-picker-service.js +5 -9
  519. package/es/picker/global-picker-service.js.map +1 -1
  520. package/es/picker/pick-interceptor.js +2 -1
  521. package/es/picker/pick-interceptor.js.map +1 -1
  522. package/es/picker/pick-modules.js +1 -4
  523. package/es/picker/pick-modules.js.map +1 -1
  524. package/es/picker/picker-service.d.ts +2 -2
  525. package/es/picker/picker-service.js +5 -5
  526. package/es/picker/picker-service.js.map +1 -1
  527. package/es/plugins/plugin-modules.js +1 -2
  528. package/es/plugins/plugin-modules.js.map +1 -1
  529. package/es/render/contributions/render/arc-render.js +3 -0
  530. package/es/render/contributions/render/arc-render.js.map +1 -1
  531. package/es/render/contributions/render/area-render.d.ts +1 -0
  532. package/es/render/contributions/render/area-render.js +45 -5
  533. package/es/render/contributions/render/area-render.js.map +1 -1
  534. package/es/render/contributions/render/base-render.d.ts +1 -1
  535. package/es/render/contributions/render/base-render.js +15 -22
  536. package/es/render/contributions/render/base-render.js.map +1 -1
  537. package/es/render/contributions/render/circle-render.js +3 -0
  538. package/es/render/contributions/render/circle-render.js.map +1 -1
  539. package/es/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -7
  540. package/es/render/contributions/render/contributions/arc-contribution-render.js +6 -32
  541. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  542. package/es/render/contributions/render/contributions/area-contribution-render.d.ts +3 -4
  543. package/es/render/contributions/render/contributions/area-contribution-render.js +5 -23
  544. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  545. package/es/render/contributions/render/contributions/base-contribution-render.d.ts +4 -0
  546. package/es/render/contributions/render/contributions/base-contribution-render.js +15 -12
  547. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  548. package/es/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -7
  549. package/es/render/contributions/render/contributions/circle-contribution-render.js +6 -32
  550. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  551. package/es/render/contributions/render/contributions/constants.d.ts +1 -0
  552. package/es/render/contributions/render/contributions/constants.js +2 -0
  553. package/es/render/contributions/render/contributions/constants.js.map +1 -1
  554. package/es/render/contributions/render/contributions/group-contribution-render.d.ts +1 -0
  555. package/es/render/contributions/render/contributions/group-contribution-render.js +5 -15
  556. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  557. package/es/render/contributions/render/contributions/image-contribution-render.d.ts +1 -0
  558. package/es/render/contributions/render/contributions/image-contribution-render.js +6 -17
  559. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  560. package/es/render/contributions/render/contributions/path-contribution-render.d.ts +2 -9
  561. package/es/render/contributions/render/contributions/path-contribution-render.js +3 -29
  562. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  563. package/es/render/contributions/render/contributions/polygon-contribution-render.d.ts +2 -9
  564. package/es/render/contributions/render/contributions/polygon-contribution-render.js +3 -29
  565. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  566. package/es/render/contributions/render/contributions/rect-contribution-render.d.ts +5 -7
  567. package/es/render/contributions/render/contributions/rect-contribution-render.js +19 -46
  568. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  569. package/es/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -7
  570. package/es/render/contributions/render/contributions/symbol-contribution-render.js +6 -24
  571. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  572. package/es/render/contributions/render/contributions/text-contribution-render.d.ts +8 -1
  573. package/es/render/contributions/render/contributions/text-contribution-render.js +24 -1
  574. package/es/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
  575. package/es/render/contributions/render/draw-contribution.d.ts +7 -6
  576. package/es/render/contributions/render/draw-contribution.js +42 -28
  577. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  578. package/es/render/contributions/render/draw-interceptor.d.ts +9 -1
  579. package/es/render/contributions/render/draw-interceptor.js +38 -35
  580. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  581. package/es/render/contributions/render/group-render.js +4 -1
  582. package/es/render/contributions/render/group-render.js.map +1 -1
  583. package/es/render/contributions/render/image-render.js +5 -2
  584. package/es/render/contributions/render/image-render.js.map +1 -1
  585. package/es/render/contributions/render/incremental-draw-contribution.d.ts +2 -6
  586. package/es/render/contributions/render/incremental-draw-contribution.js +5 -11
  587. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  588. package/es/render/contributions/render/line-render.d.ts +1 -0
  589. package/es/render/contributions/render/line-render.js +21 -6
  590. package/es/render/contributions/render/line-render.js.map +1 -1
  591. package/es/render/contributions/render/module.js +29 -83
  592. package/es/render/contributions/render/module.js.map +1 -1
  593. package/es/render/contributions/render/path-render.d.ts +2 -1
  594. package/es/render/contributions/render/path-render.js +8 -4
  595. package/es/render/contributions/render/path-render.js.map +1 -1
  596. package/es/render/contributions/render/polygon-render.js +3 -0
  597. package/es/render/contributions/render/polygon-render.js.map +1 -1
  598. package/es/render/contributions/render/rect-render.d.ts +2 -1
  599. package/es/render/contributions/render/rect-render.js +11 -3
  600. package/es/render/contributions/render/rect-render.js.map +1 -1
  601. package/es/render/contributions/render/render-slector.d.ts +1 -4
  602. package/es/render/contributions/render/render-slector.js +0 -15
  603. package/es/render/contributions/render/render-slector.js.map +1 -1
  604. package/es/render/contributions/render/richtext-render.d.ts +1 -0
  605. package/es/render/contributions/render/richtext-render.js +12 -6
  606. package/es/render/contributions/render/richtext-render.js.map +1 -1
  607. package/es/render/contributions/render/symbol-render.js +23 -4
  608. package/es/render/contributions/render/symbol-render.js.map +1 -1
  609. package/es/render/contributions/render/text-render.js +13 -9
  610. package/es/render/contributions/render/text-render.js.map +1 -1
  611. package/es/render/contributions/render/utils.js +2 -2
  612. package/es/render/contributions/render/utils.js.map +1 -1
  613. package/es/render/render-modules.js +1 -1
  614. package/es/render/render-modules.js.map +1 -1
  615. package/es/render/render-service.js +1 -1
  616. package/es/render/render-service.js.map +1 -1
  617. package/package.json +6 -4
  618. package/cjs/common/inversify-lite/annotation/post_construct.d.ts +0 -4
  619. package/cjs/common/inversify-lite/annotation/post_construct.js.map +0 -1
  620. package/es/common/inversify-lite/annotation/post_construct.d.ts +0 -4
  621. package/es/common/inversify-lite/annotation/post_construct.js +0 -10
  622. package/es/common/inversify-lite/annotation/post_construct.js.map +0 -1
@@ -1,2 +1,3 @@
1
- export const AreaBoundsContribution = Symbol.for("AreaBoundsContribution");
1
+
2
+
2
3
  //# sourceMappingURL=area-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/area-contribution.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC","file":"area-contribution.js","sourcesContent":["export const AreaBoundsContribution = Symbol.for('AreaBoundsContribution');\n\n// @injectable()\n// export class DefaultArcOuterBorderBoundsContribution\n// extends DefaultOuterBorderBoundsContribution\n// implements IArcBoundsContribution {}\n"]}
1
+ {"version":3,"sources":["../src/graphic/graphic-service/area-contribution.ts"],"names":[],"mappings":"","file":"area-contribution.js","sourcesContent":["// export const AreaBoundsContribution = Symbol.for('AreaBoundsContribution');\n\n// // @injectable()\n// // export class DefaultArcOuterBorderBoundsContribution\n// // extends DefaultOuterBorderBoundsContribution\n// // implements IArcBoundsContribution {}\n"]}
@@ -1,5 +1 @@
1
- import type { ICircleBoundsContribution } from '../../interface';
2
- import { DefaultOuterBorderBoundsContribution } from './common-contribution';
3
- export declare const CircleBoundsContribution: unique symbol;
4
- export declare class DefaultCircleOuterBorderBoundsContribution extends DefaultOuterBorderBoundsContribution implements ICircleBoundsContribution {
5
- }
1
+
@@ -1,18 +1,3 @@
1
- var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
2
- var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
3
- 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);
4
- return c > 3 && r && Object.defineProperty(target, key, r), r;
5
- };
6
1
 
7
- import { injectable } from "../../common/inversify-lite";
8
2
 
9
- import { DefaultOuterBorderBoundsContribution } from "./common-contribution";
10
-
11
- export const CircleBoundsContribution = Symbol.for("CircleBoundsContribution");
12
-
13
- let DefaultCircleOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
14
-
15
- DefaultCircleOuterBorderBoundsContribution = __decorate([ injectable() ], DefaultCircleOuterBorderBoundsContribution);
16
-
17
- export { DefaultCircleOuterBorderBoundsContribution };
18
3
  //# sourceMappingURL=circle-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/circle-contribution.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAGxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,oCAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,UAAU,EAAE;GACA,0CAA0C,CAEd;SAF5B,0CAA0C","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,12 +1,4 @@
1
- var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
2
- var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
3
- 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);
4
- return c > 3 && r && Object.defineProperty(target, key, r), r;
5
- };
6
-
7
- import { injectable } from "../../common/inversify-lite";
8
-
9
- let DefaultOuterBorderBoundsContribution = class {
1
+ export class DefaultOuterBorderBoundsContribution {
10
2
  updateBounds(attribute, theme, aabbBounds, graphic) {
11
3
  const {outerBorder: outerBorder, shadowBlur: shadowBlur = theme.shadowBlur} = attribute;
12
4
  if (outerBorder) {
@@ -15,9 +7,5 @@ let DefaultOuterBorderBoundsContribution = class {
15
7
  }
16
8
  return aabbBounds;
17
9
  }
18
- };
19
-
20
- DefaultOuterBorderBoundsContribution = __decorate([ injectable() ], DefaultOuterBorderBoundsContribution);
21
-
22
- export { DefaultOuterBorderBoundsContribution };
10
+ }
23
11
  //# sourceMappingURL=common-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/common-contribution.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;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,UAAU,EAAE;GACA,oCAAoC,CAiBhD;SAjBY,oCAAoC","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,MAAM,OAAO,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","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"]}
@@ -1,34 +1,12 @@
1
1
  import { ContainerModule } from "../../common/inversify-lite";
2
2
 
3
- import { bindContributionProvider } from "../../common/contribution-provider";
4
-
5
- import { ArcBoundsContribution, DefaultArcOuterBorderBoundsContribution } from "./arc-contribution";
6
-
7
- import { CircleBoundsContribution, DefaultCircleOuterBorderBoundsContribution } from "./circle-contribution";
8
-
9
3
  import { DefaultGraphicService } from "./graphic-service";
10
4
 
11
- import { DefaultPathOuterBorderBoundsContribution, PathBoundsContribution } from "./path-contribution";
12
-
13
- import { RectBoundsContribution, DefaultRectOuterBorderBoundsContribution } from "./rect-contribution";
14
-
15
- import { DefaultSymbolOuterBorderBoundsContribution, SymbolBoundsContribution } from "./symbol-contribution";
16
-
17
5
  import { GraphicCreator, GraphicService } from "../constants";
18
6
 
19
7
  import { graphicCreator } from "../graphic-creator";
20
8
 
21
9
  export default new ContainerModule((bind => {
22
- bind(DefaultGraphicService).toSelf().inSingletonScope(), bind(GraphicService).toService(DefaultGraphicService),
23
- bind(DefaultRectOuterBorderBoundsContribution).toSelf().inSingletonScope(), bind(RectBoundsContribution).toService(DefaultRectOuterBorderBoundsContribution),
24
- bindContributionProvider(bind, RectBoundsContribution), bind(DefaultSymbolOuterBorderBoundsContribution).toSelf().inSingletonScope(),
25
- bind(SymbolBoundsContribution).toService(DefaultSymbolOuterBorderBoundsContribution),
26
- bindContributionProvider(bind, SymbolBoundsContribution), bind(DefaultCircleOuterBorderBoundsContribution).toSelf().inSingletonScope(),
27
- bind(CircleBoundsContribution).toService(DefaultCircleOuterBorderBoundsContribution),
28
- bindContributionProvider(bind, CircleBoundsContribution), bind(DefaultArcOuterBorderBoundsContribution).toSelf().inSingletonScope(),
29
- bind(ArcBoundsContribution).toService(DefaultArcOuterBorderBoundsContribution),
30
- bindContributionProvider(bind, ArcBoundsContribution), bind(DefaultPathOuterBorderBoundsContribution).toSelf().inSingletonScope(),
31
- bind(PathBoundsContribution).toService(DefaultPathOuterBorderBoundsContribution),
32
- bindContributionProvider(bind, PathBoundsContribution), bind(GraphicCreator).toConstantValue(graphicCreator);
10
+ bind(GraphicService).to(DefaultGraphicService).inSingletonScope(), bind(GraphicCreator).toConstantValue(graphicCreator);
33
11
  }));
34
12
  //# sourceMappingURL=graphic-module.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/graphic-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,uCAAuC,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AAE7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,wCAAwC,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,wCAAwC,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,wCAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IACjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,0CAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,0CAA0C,CAAC,CAAC;IACrF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,0CAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,0CAA0C,CAAC,CAAC;IACrF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,uCAAuC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1E,IAAI,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC;IAC/E,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,wCAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IACjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;IAEvD,IAAI,CAAC,cAAc,CAAC,CAAC,eAAe,CAAC,cAAc,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,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAElE,IAAI,CAAC,cAAc,CAAC,CAAC,eAAe,CAAC,cAAc,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
  }
@@ -10,30 +10,20 @@ var __decorate = this && this.__decorate || function(decorators, target, key, de
10
10
  };
11
11
  };
12
12
 
13
- import { inject, injectable, named } from "../../common/inversify-lite";
13
+ import { inject, injectable } from "../../common/inversify-lite";
14
14
 
15
15
  import { AABBBounds, epsilon, isArray, pi2, transformBoundsWithMatrix } from "@visactor/vutils";
16
16
 
17
17
  import { SyncHook } from "../../tapable";
18
18
 
19
- import { RectBoundsContribution } from "./rect-contribution";
20
-
21
19
  import { textDrawOffsetX } from "../../common/text";
22
20
 
23
- import { SymbolBoundsContribution } from "./symbol-contribution";
21
+ import { DefaultSymbolOuterBorderBoundsContribution } from "./symbol-contribution";
24
22
 
25
23
  import { boundStroke } from "../tools";
26
24
 
27
- import { CircleBoundsContribution } from "./circle-contribution";
28
-
29
- import { ArcBoundsContribution } from "./arc-contribution";
30
-
31
- import { PathBoundsContribution } from "./path-contribution";
32
-
33
25
  import { mat4Allocate } from "../../allocator/matrix-allocate";
34
26
 
35
- import { ContributionProvider } from "../../common/contribution-provider";
36
-
37
27
  import { BoundsContext } from "../../common/bounds-context";
38
28
 
39
29
  import { renderCommandList } from "../../common/render-command-list";
@@ -42,6 +32,8 @@ import { circleBounds } from "../../common/utils";
42
32
 
43
33
  import { GraphicCreator } from "../constants";
44
34
 
35
+ import { DefaultOuterBorderBoundsContribution } from "./common-contribution";
36
+
45
37
  function identity(out) {
46
38
  return out[0] = 1, out[1] = 0, out[2] = 0, out[3] = 0, out[4] = 0, out[5] = 1, out[6] = 0,
47
39
  out[7] = 0, out[8] = 0, out[9] = 0, out[10] = 1, out[11] = 0, out[12] = 0, out[13] = 0,
@@ -196,11 +188,8 @@ export function shouldUseMat4(graphic) {
196
188
  }
197
189
 
198
190
  let DefaultGraphicService = class {
199
- constructor(creator, rectBoundsContribitions, symbolBoundsContribitions, circleBoundsContribitions, arcBoundsContribitions, pathBoundsContribitions) {
200
- this.creator = creator, this.rectBoundsContribitions = rectBoundsContribitions,
201
- this.symbolBoundsContribitions = symbolBoundsContribitions, this.circleBoundsContribitions = circleBoundsContribitions,
202
- this.arcBoundsContribitions = arcBoundsContribitions, this.pathBoundsContribitions = pathBoundsContribitions,
203
- this.hooks = {
191
+ constructor(creator) {
192
+ this.creator = creator, this.hooks = {
204
193
  onAttributeUpdate: new SyncHook([ "graphic" ]),
205
194
  onSetStage: new SyncHook([ "graphic", "stage" ]),
206
195
  onRemove: new SyncHook([ "graphic" ]),
@@ -209,7 +198,10 @@ let DefaultGraphicService = class {
209
198
  onClearIncremental: new SyncHook([ "graphic", "group", "stage" ]),
210
199
  beforeUpdateAABBBounds: new SyncHook([ "graphic", "stage", "willUpdate", "aabbBounds" ]),
211
200
  afterUpdateAABBBounds: new SyncHook([ "graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange" ])
212
- }, this.tempAABBBounds1 = new AABBBounds, this.tempAABBBounds2 = new AABBBounds;
201
+ }, this.tempAABBBounds1 = new AABBBounds, this.tempAABBBounds2 = new AABBBounds,
202
+ this._rectBoundsContribitions = [ new DefaultOuterBorderBoundsContribution ], this._symbolBoundsContribitions = [ new DefaultSymbolOuterBorderBoundsContribution ],
203
+ this._circleBoundsContribitions = [ new DefaultOuterBorderBoundsContribution ],
204
+ this._arcBoundsContribitions = [ new DefaultOuterBorderBoundsContribution ], this._pathBoundsContribitions = [ new DefaultOuterBorderBoundsContribution ];
213
205
  }
214
206
  onAttributeUpdate(graphic) {
215
207
  this.hooks.onAttributeUpdate.taps.length && this.hooks.onAttributeUpdate.call(graphic);
@@ -242,14 +234,16 @@ let DefaultGraphicService = class {
242
234
  return renderCommandList(path.commandList, boundsContext, 0, 0), !0;
243
235
  }
244
236
  updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
237
+ if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
245
238
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
246
- const {width: width = rectTheme.width, height: height = rectTheme.height} = attribute;
247
- aabbBounds.set(0, 0, width, height);
239
+ let {width: width, height: height} = attribute;
240
+ const {x1: x1, y1: y1, x: x, y: y} = attribute;
241
+ width = null != width ? width : x1 - x, height = null != height ? height : y1 - y,
242
+ aabbBounds.set(0, 0, width || 0, height || 0);
248
243
  }
249
244
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
250
245
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
251
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
252
- this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
246
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
253
247
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
254
248
  })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, !1, graphic), aabbBounds;
255
249
  }
@@ -266,11 +260,12 @@ let DefaultGraphicService = class {
266
260
  aabbBounds;
267
261
  }
268
262
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
269
- return graphic.getSubGraphic().forEach((node => {
263
+ return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach((node => {
270
264
  aabbBounds.union(node.AABBBounds);
271
- })), aabbBounds;
265
+ })), aabbBounds) : aabbBounds;
272
266
  }
273
267
  updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
268
+ if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
274
269
  if (!graphic) return aabbBounds;
275
270
  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;
276
271
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height); else {
@@ -313,6 +308,7 @@ let DefaultGraphicService = class {
313
308
  aabbBounds;
314
309
  }
315
310
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
311
+ if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
316
312
  if (!graphic) return aabbBounds;
317
313
  const {text: text = textTheme.text} = graphic.attribute;
318
314
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
@@ -327,10 +323,10 @@ let DefaultGraphicService = class {
327
323
  aabbBounds;
328
324
  }
329
325
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
326
+ if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
330
327
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
331
328
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
332
329
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
333
- this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
334
330
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
335
331
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
336
332
  }));
@@ -368,6 +364,7 @@ let DefaultGraphicService = class {
368
364
  aabbBounds;
369
365
  }
370
366
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
367
+ if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
371
368
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
372
369
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
373
370
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -382,6 +379,7 @@ let DefaultGraphicService = class {
382
379
  })), aabbBounds;
383
380
  }
384
381
  updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
382
+ if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
385
383
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
386
384
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
387
385
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -404,6 +402,7 @@ let DefaultGraphicService = class {
404
402
  })), b;
405
403
  }
406
404
  updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
405
+ if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
407
406
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
408
407
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
409
408
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
@@ -428,11 +427,11 @@ let DefaultGraphicService = class {
428
427
  })), b;
429
428
  }
430
429
  updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
430
+ if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
431
431
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
432
432
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
433
433
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
434
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
435
- this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
434
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
436
435
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
437
436
  })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, !1, graphic),
438
437
  aabbBounds;
@@ -447,10 +446,10 @@ let DefaultGraphicService = class {
447
446
  aabbBounds;
448
447
  }
449
448
  updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
449
+ if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
450
450
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
451
451
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
452
452
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
453
- this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
454
453
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
455
454
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
456
455
  }));
@@ -477,10 +476,10 @@ let DefaultGraphicService = class {
477
476
  circleBounds(startAngle, endAngle, innerRadius, aabbBounds)), aabbBounds;
478
477
  }
479
478
  updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
479
+ if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
480
480
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
481
481
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
482
482
  tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
483
- this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
484
483
  this._symbolBoundsContribitions.length && this._symbolBoundsContribitions.forEach((c => {
485
484
  c.updateBounds(attribute, symbolTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
486
485
  }));
@@ -502,6 +501,7 @@ let DefaultGraphicService = class {
502
501
  return graphic.getParsedPath().bounds(size, aabbBounds), aabbBounds;
503
502
  }
504
503
  updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
504
+ if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
505
505
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
506
506
  const {width: width = imageTheme.width, height: height = imageTheme.height} = attribute;
507
507
  aabbBounds.set(0, 0, width, height);
@@ -519,20 +519,30 @@ let DefaultGraphicService = class {
519
519
  }
520
520
  transformAABBBounds(attribute, aabbBounds, theme, miter, graphic) {
521
521
  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;
522
- if (stroke) {
522
+ if (stroke && lineWidth) {
523
523
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
524
524
  boundStroke(tb1, scaledHalfLineWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1),
525
525
  tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
526
526
  }
527
527
  if (shadowBlur) {
528
- const shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
529
- boundStroke(tb1, shadowBlurHalfWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1);
528
+ const {shadowOffsetX: shadowOffsetX = theme.shadowOffsetX, shadowOffsetY: shadowOffsetY = theme.shadowOffsetY} = attribute, shadowBlurWidth = shadowBlur / Math.abs(scaleX + scaleY) * 2 + Math.max(shadowOffsetX, shadowOffsetY);
529
+ boundStroke(tb1, shadowBlurWidth, miter, strokeBoundsBuffer + 1), aabbBounds.union(tb1);
530
530
  }
531
- this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
531
+ this.combindShadowAABBBounds(aabbBounds, graphic);
532
+ let updateMatrix = !0;
533
+ const m = graphic.transMatrix;
534
+ graphic && graphic.isContainer && (updateMatrix = !(1 === m.a && 0 === m.b && 0 === m.c && 1 === m.d && 0 === m.e && 0 === m.f)),
535
+ updateMatrix && transformBoundsWithMatrix(aabbBounds, aabbBounds, m);
536
+ }
537
+ _validCheck(attribute, theme, aabbBounds, graphic) {
538
+ if (!graphic) return !0;
539
+ if (!graphic.valid) return aabbBounds.clear(), !1;
540
+ const {visible: visible = theme.visible} = attribute;
541
+ return !!visible || (aabbBounds.clear(), !1);
532
542
  }
533
543
  };
534
544
 
535
- DefaultGraphicService = __decorate([ injectable(), __param(0, inject(GraphicCreator)), __param(1, inject(ContributionProvider)), __param(1, named(RectBoundsContribution)), __param(2, inject(ContributionProvider)), __param(2, named(SymbolBoundsContribution)), __param(3, inject(ContributionProvider)), __param(3, named(CircleBoundsContribution)), __param(4, inject(ContributionProvider)), __param(4, named(ArcBoundsContribution)), __param(5, inject(ContributionProvider)), __param(5, named(PathBoundsContribution)), __metadata("design:paramtypes", [ Object, Object, Object, Object, Object, Object ]) ], DefaultGraphicService);
545
+ DefaultGraphicService = __decorate([ injectable(), __param(0, inject(GraphicCreator)), __metadata("design:paramtypes", [ Object ]) ], DefaultGraphicService);
536
546
 
537
547
  export { DefaultGraphicService };
538
548
  //# sourceMappingURL=graphic-service.js.map