@visactor/vrender 0.9.0 → 0.9.1-circular.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 (1086) hide show
  1. package/cjs/allocator/allocator-modules.d.ts +1 -3
  2. package/cjs/allocator/allocator-modules.js +1 -22
  3. package/cjs/allocator/allocator-modules.js.map +1 -1
  4. package/cjs/allocator/canvas-allocate.d.ts +2 -5
  5. package/cjs/allocator/canvas-allocate.js +11 -27
  6. package/cjs/allocator/canvas-allocate.js.map +1 -1
  7. package/cjs/allocator/constants.d.ts +0 -2
  8. package/cjs/allocator/constants.js +3 -5
  9. package/cjs/allocator/constants.js.map +1 -1
  10. package/cjs/allocator/graphic-allocate.d.ts +1 -58
  11. package/cjs/allocator/graphic-allocate.js +1 -160
  12. package/cjs/allocator/graphic-allocate.js.map +1 -1
  13. package/cjs/allocator/interface.d.ts +10 -0
  14. package/cjs/allocator/interface.js.map +1 -1
  15. package/cjs/allocator/matrix-allocate.d.ts +2 -0
  16. package/cjs/allocator/matrix-allocate.js +9 -16
  17. package/cjs/allocator/matrix-allocate.js.map +1 -1
  18. package/cjs/animate/Ticker/default-ticker.js +5 -5
  19. package/cjs/animate/Ticker/default-ticker.js.map +1 -1
  20. package/cjs/animate/animate.d.ts +1 -1
  21. package/cjs/animate/animate.js +15 -15
  22. package/cjs/animate/animate.js.map +1 -1
  23. package/cjs/animate/custom-animate.d.ts +3 -3
  24. package/cjs/animate/custom-animate.js +23 -25
  25. package/cjs/animate/custom-animate.js.map +1 -1
  26. package/cjs/animate/default-ticker.d.ts +2 -0
  27. package/cjs/animate/default-ticker.js +14 -0
  28. package/cjs/animate/default-ticker.js.map +1 -0
  29. package/cjs/animate/morphing.d.ts +1 -1
  30. package/cjs/animate/morphing.js +15 -17
  31. package/cjs/animate/morphing.js.map +1 -1
  32. package/cjs/animate/timeline.js +6 -5
  33. package/cjs/animate/timeline.js.map +1 -1
  34. package/cjs/application.d.ts +11 -0
  35. package/cjs/application.js +9 -0
  36. package/cjs/application.js.map +1 -0
  37. package/cjs/canvas/contributions/browser/canvas.js +2 -2
  38. package/cjs/canvas/contributions/browser/canvas.js.map +1 -1
  39. package/cjs/canvas/contributions/browser/conical-gradient.js +2 -2
  40. package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
  41. package/cjs/canvas/contributions/browser/context.d.ts +2 -4
  42. package/cjs/canvas/contributions/browser/context.js +13 -13
  43. package/cjs/canvas/contributions/browser/context.js.map +1 -1
  44. package/cjs/canvas/contributions/taro/context.js +8 -8
  45. package/cjs/canvas/contributions/taro/context.js.map +1 -1
  46. package/cjs/canvas/empty-context.d.ts +1 -1
  47. package/cjs/canvas/empty-context.js +7 -7
  48. package/cjs/canvas/empty-context.js.map +1 -1
  49. package/cjs/canvas/index.d.ts +0 -3
  50. package/cjs/canvas/index.js +2 -14
  51. package/cjs/canvas/index.js.map +1 -1
  52. package/cjs/canvas/util.d.ts +3 -0
  53. package/cjs/canvas/util.js +22 -10
  54. package/cjs/canvas/util.js.map +1 -1
  55. package/cjs/color-string/colorName.js +1 -1
  56. package/cjs/color-string/index.js +1 -1
  57. package/cjs/color-string/interpolate.js +1 -1
  58. package/cjs/common/{bezier.d.ts → bezier-utils.d.ts} +0 -3
  59. package/cjs/common/bezier-utils.js +35 -0
  60. package/cjs/common/bezier-utils.js.map +1 -0
  61. package/cjs/common/canvas-utils.d.ts +1 -1
  62. package/cjs/common/canvas-utils.js +11 -7
  63. package/cjs/common/canvas-utils.js.map +1 -1
  64. package/cjs/common/custom-path2d.d.ts +47 -0
  65. package/cjs/common/{path.js → custom-path2d.js} +11 -230
  66. package/cjs/common/custom-path2d.js.map +1 -0
  67. package/cjs/common/enums.d.ts +12 -0
  68. package/cjs/common/enums.js +10 -3
  69. package/cjs/common/enums.js.map +1 -1
  70. package/cjs/common/generator.js +1 -2
  71. package/cjs/common/morphing-utils.d.ts +1 -2
  72. package/cjs/common/morphing-utils.js +8 -11
  73. package/cjs/common/morphing-utils.js.map +1 -1
  74. package/cjs/common/polygon.js +1 -0
  75. package/cjs/common/render-area.d.ts +2 -3
  76. package/cjs/common/render-area.js +8 -8
  77. package/cjs/common/render-area.js.map +1 -1
  78. package/cjs/common/render-curve.d.ts +1 -2
  79. package/cjs/common/render-curve.js +3 -3
  80. package/cjs/common/render-curve.js.map +1 -1
  81. package/cjs/common/seg-context.d.ts +7 -13
  82. package/cjs/common/seg-context.js +7 -13
  83. package/cjs/common/seg-context.js.map +1 -1
  84. package/cjs/common/{curve → segment}/basis.d.ts +12 -5
  85. package/cjs/common/{curve → segment}/basis.js +4 -4
  86. package/cjs/common/segment/basis.js.map +1 -0
  87. package/cjs/common/segment/common.d.ts +3 -0
  88. package/cjs/common/segment/common.js.map +1 -0
  89. package/cjs/common/segment/curve/arc.d.ts +14 -0
  90. package/cjs/common/segment/curve/arc.js +29 -0
  91. package/cjs/common/segment/curve/arc.js.map +1 -0
  92. package/cjs/common/segment/curve/base.d.ts +13 -0
  93. package/cjs/common/segment/curve/base.js +15 -0
  94. package/cjs/common/segment/curve/base.js.map +1 -0
  95. package/cjs/common/segment/curve/cubic-bezier.d.ts +17 -0
  96. package/cjs/common/segment/curve/cubic-bezier.js +42 -0
  97. package/cjs/common/segment/curve/cubic-bezier.js.map +1 -0
  98. package/cjs/common/segment/curve/curve-context.d.ts +19 -0
  99. package/cjs/common/segment/curve/curve-context.js +48 -0
  100. package/cjs/common/segment/curve/curve-context.js.map +1 -0
  101. package/cjs/common/segment/curve/ellipse.d.ts +18 -0
  102. package/cjs/common/segment/curve/ellipse.js +30 -0
  103. package/cjs/common/segment/curve/ellipse.js.map +1 -0
  104. package/cjs/common/segment/curve/line.d.ts +16 -0
  105. package/cjs/common/segment/curve/line.js +41 -0
  106. package/cjs/common/segment/curve/line.js.map +1 -0
  107. package/cjs/common/segment/curve/move.d.ts +13 -0
  108. package/cjs/common/segment/curve/move.js +28 -0
  109. package/cjs/common/segment/curve/move.js.map +1 -0
  110. package/cjs/common/segment/curve/path.d.ts +11 -0
  111. package/cjs/common/segment/curve/path.js +31 -0
  112. package/cjs/common/segment/curve/path.js.map +1 -0
  113. package/cjs/common/segment/curve/quadratic-bezier.d.ts +14 -0
  114. package/cjs/common/segment/curve/quadratic-bezier.js +29 -0
  115. package/cjs/common/segment/curve/quadratic-bezier.js.map +1 -0
  116. package/{es/common/curve → cjs/common/segment}/index.d.ts +2 -4
  117. package/cjs/common/{curve → segment}/index.js +1 -2
  118. package/cjs/common/segment/index.js.map +1 -0
  119. package/cjs/common/segment/linear-closed.d.ts +24 -0
  120. package/cjs/common/{curve → segment}/linear-closed.js +4 -4
  121. package/cjs/common/segment/linear-closed.js.map +1 -0
  122. package/cjs/common/segment/linear.d.ts +24 -0
  123. package/cjs/common/{curve → segment}/linear.js +4 -4
  124. package/cjs/common/segment/linear.js.map +1 -0
  125. package/{es/common/curve → cjs/common/segment}/monotone.d.ts +12 -5
  126. package/cjs/common/{curve → segment}/monotone.js +5 -5
  127. package/cjs/common/segment/monotone.js.map +1 -0
  128. package/cjs/common/segment/step.d.ts +25 -0
  129. package/cjs/common/{curve → segment}/step.js +4 -4
  130. package/cjs/common/segment/step.js.map +1 -0
  131. package/cjs/common/shape/arc.d.ts +3 -0
  132. package/cjs/common/shape/arc.js +17 -2
  133. package/cjs/common/shape/arc.js.map +1 -1
  134. package/cjs/common/shape/rect.d.ts +1 -1
  135. package/cjs/common/sort.js +1 -1
  136. package/cjs/common/split-path.js +1 -1
  137. package/cjs/common/split-path.js.map +1 -1
  138. package/cjs/common/store.js +1 -1
  139. package/cjs/common/text.js +1 -1
  140. package/cjs/common/utils.d.ts +2 -1
  141. package/cjs/common/utils.js +16 -7
  142. package/cjs/common/utils.js.map +1 -1
  143. package/cjs/container.js +2 -1
  144. package/cjs/container.js.map +1 -1
  145. package/cjs/core/application.js +1 -1
  146. package/cjs/core/camera.js +8 -8
  147. package/cjs/core/camera.js.map +1 -1
  148. package/cjs/core/constants.d.ts +1 -5
  149. package/cjs/core/constants.js +3 -20
  150. package/cjs/core/constants.js.map +1 -1
  151. package/cjs/core/contributions/env/browser-contribution.js +2 -2
  152. package/cjs/core/contributions/env/browser-contribution.js.map +1 -1
  153. package/cjs/core/contributions/env/modules.js +2 -2
  154. package/cjs/core/contributions/env/modules.js.map +1 -1
  155. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +2 -2
  156. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  157. package/cjs/core/contributions/layerHandler/modules.js +2 -2
  158. package/cjs/core/contributions/layerHandler/modules.js.map +1 -1
  159. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +2 -2
  160. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  161. package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +1 -1
  162. package/cjs/core/contributions/textMeasure/AtextMeasure.js +4 -4
  163. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  164. package/cjs/core/contributions/textMeasure/ITextMeasure.d.ts +1 -1
  165. package/cjs/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  166. package/cjs/core/contributions/textMeasure/modules.js +2 -2
  167. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  168. package/cjs/core/contributions/window/base-contribution.js +2 -2
  169. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  170. package/cjs/core/contributions/window/browser-contribution.js +2 -2
  171. package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
  172. package/cjs/core/contributions/window/feishu-contribution.js +2 -2
  173. package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
  174. package/cjs/core/contributions/window/lynx-contribution.js +2 -2
  175. package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
  176. package/cjs/core/contributions/window/modules.js +5 -5
  177. package/cjs/core/contributions/window/modules.js.map +1 -1
  178. package/cjs/core/contributions/window/node-contribution.js.map +1 -1
  179. package/cjs/core/contributions/window/taro-contribution.js +2 -2
  180. package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
  181. package/cjs/core/core-modules.js +5 -5
  182. package/cjs/core/core-modules.js.map +1 -1
  183. package/cjs/core/global-module.d.ts +5 -0
  184. package/cjs/core/global-module.js +19 -0
  185. package/cjs/core/global-module.js.map +1 -0
  186. package/cjs/core/global.d.ts +3 -3
  187. package/cjs/core/global.js +3 -3
  188. package/cjs/core/global.js.map +1 -1
  189. package/cjs/core/graphic-utils.d.ts +3 -25
  190. package/cjs/core/graphic-utils.js +10 -11
  191. package/cjs/core/graphic-utils.js.map +1 -1
  192. package/cjs/core/index.d.ts +2 -0
  193. package/cjs/core/index.js +3 -2
  194. package/cjs/core/index.js.map +1 -1
  195. package/cjs/core/interface.d.ts +30 -0
  196. package/cjs/core/interface.js +6 -0
  197. package/cjs/core/interface.js.map +1 -0
  198. package/cjs/core/layer-service.d.ts +1 -8
  199. package/cjs/core/layer-service.js +2 -4
  200. package/cjs/core/layer-service.js.map +1 -1
  201. package/cjs/core/layer.d.ts +1 -1
  202. package/cjs/core/layer.js +8 -7
  203. package/cjs/core/layer.js.map +1 -1
  204. package/cjs/core/light.js +1 -1
  205. package/cjs/core/stage.js +8 -8
  206. package/cjs/core/stage.js.map +1 -1
  207. package/cjs/core/window.js +4 -4
  208. package/cjs/core/window.js.map +1 -1
  209. package/cjs/create.d.ts +1 -1
  210. package/cjs/create.js +4 -3
  211. package/cjs/create.js.map +1 -1
  212. package/cjs/event/constant.js +1 -1
  213. package/cjs/event/event-manager.js +1 -1
  214. package/cjs/event/event-system.js +1 -1
  215. package/cjs/event/event-target.js +1 -1
  216. package/cjs/event/extension/gesture.js +2 -2
  217. package/cjs/event/extension/gesture.js.map +1 -1
  218. package/cjs/event/index.js +1 -1
  219. package/cjs/event/interface.js +1 -1
  220. package/cjs/event/type.js +2 -1
  221. package/cjs/event/util.js +1 -1
  222. package/cjs/graphic/arc.d.ts +1 -2
  223. package/cjs/graphic/arc.js +7 -11
  224. package/cjs/graphic/arc.js.map +1 -1
  225. package/cjs/graphic/arc3d.d.ts +0 -1
  226. package/cjs/graphic/arc3d.js +6 -8
  227. package/cjs/graphic/arc3d.js.map +1 -1
  228. package/cjs/graphic/area.d.ts +1 -2
  229. package/cjs/graphic/area.js +8 -12
  230. package/cjs/graphic/area.js.map +1 -1
  231. package/cjs/graphic/bounds.js +1 -1
  232. package/cjs/graphic/builtin-symbol/utils.js +3 -3
  233. package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
  234. package/cjs/graphic/circle.d.ts +1 -2
  235. package/cjs/graphic/circle.js +7 -11
  236. package/cjs/graphic/circle.js.map +1 -1
  237. package/cjs/graphic/config.js +5 -7
  238. package/cjs/graphic/config.js.map +1 -1
  239. package/{es/graphic/constant.d.ts → cjs/graphic/constants.d.ts} +2 -1
  240. package/cjs/graphic/constants.js +21 -0
  241. package/cjs/graphic/constants.js.map +1 -0
  242. package/cjs/graphic/glyph.d.ts +0 -1
  243. package/cjs/graphic/glyph.js +4 -6
  244. package/cjs/graphic/glyph.js.map +1 -1
  245. package/cjs/graphic/graphic-service/graphic-module.js +8 -7
  246. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  247. package/cjs/graphic/graphic-service/graphic-service.d.ts +4 -60
  248. package/cjs/graphic/graphic-service/graphic-service.js +48 -48
  249. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  250. package/cjs/graphic/graphic.d.ts +0 -1
  251. package/cjs/graphic/graphic.js +14 -23
  252. package/cjs/graphic/graphic.js.map +1 -1
  253. package/cjs/graphic/group.d.ts +0 -1
  254. package/cjs/graphic/group.js +16 -15
  255. package/cjs/graphic/group.js.map +1 -1
  256. package/cjs/graphic/image.d.ts +0 -1
  257. package/cjs/graphic/image.js +5 -9
  258. package/cjs/graphic/image.js.map +1 -1
  259. package/cjs/graphic/index.d.ts +1 -0
  260. package/cjs/graphic/index.js +2 -1
  261. package/cjs/graphic/index.js.map +1 -1
  262. package/cjs/graphic/line.d.ts +1 -2
  263. package/cjs/graphic/line.js +7 -11
  264. package/cjs/graphic/line.js.map +1 -1
  265. package/cjs/graphic/node-tree.js +2 -2
  266. package/cjs/graphic/node-tree.js.map +1 -1
  267. package/cjs/graphic/path.d.ts +1 -2
  268. package/cjs/graphic/path.js +9 -13
  269. package/cjs/graphic/path.js.map +1 -1
  270. package/cjs/graphic/polygon.d.ts +1 -2
  271. package/cjs/graphic/polygon.js +5 -9
  272. package/cjs/graphic/polygon.js.map +1 -1
  273. package/cjs/graphic/pyramid3d.d.ts +0 -1
  274. package/cjs/graphic/pyramid3d.js +5 -7
  275. package/cjs/graphic/pyramid3d.js.map +1 -1
  276. package/cjs/graphic/rect.d.ts +1 -2
  277. package/cjs/graphic/rect.js +6 -10
  278. package/cjs/graphic/rect.js.map +1 -1
  279. package/cjs/graphic/rect3d.d.ts +0 -1
  280. package/cjs/graphic/rect3d.js +3 -7
  281. package/cjs/graphic/rect3d.js.map +1 -1
  282. package/cjs/graphic/richtext/icon.js +3 -3
  283. package/cjs/graphic/richtext/icon.js.map +1 -1
  284. package/cjs/graphic/richtext/paragraph.d.ts +1 -0
  285. package/cjs/graphic/richtext/paragraph.js +7 -2
  286. package/cjs/graphic/richtext/paragraph.js.map +1 -1
  287. package/cjs/graphic/richtext/utils.d.ts +0 -2
  288. package/cjs/graphic/richtext/utils.js +12 -25
  289. package/cjs/graphic/richtext/utils.js.map +1 -1
  290. package/cjs/graphic/richtext/wrapper.js +2 -2
  291. package/cjs/graphic/richtext/wrapper.js.map +1 -1
  292. package/cjs/graphic/richtext.d.ts +0 -1
  293. package/cjs/graphic/richtext.js +5 -9
  294. package/cjs/graphic/richtext.js.map +1 -1
  295. package/cjs/graphic/symbol.d.ts +1 -2
  296. package/cjs/graphic/symbol.js +7 -11
  297. package/cjs/graphic/symbol.js.map +1 -1
  298. package/cjs/graphic/text.d.ts +0 -1
  299. package/cjs/graphic/text.js +12 -15
  300. package/cjs/graphic/text.js.map +1 -1
  301. package/cjs/graphic/tools.d.ts +1 -0
  302. package/cjs/graphic/tools.js +11 -3
  303. package/cjs/graphic/tools.js.map +1 -1
  304. package/cjs/graphic/wrap-text.js +2 -2
  305. package/cjs/graphic/wrap-text.js.map +1 -1
  306. package/cjs/index.d.ts +21 -3
  307. package/cjs/index.js +14 -12
  308. package/cjs/index.js.map +1 -1
  309. package/cjs/interface/common.d.ts +1 -0
  310. package/cjs/interface/common.js.map +1 -1
  311. package/cjs/interface/context.d.ts +3 -3
  312. package/cjs/interface/context.js.map +1 -1
  313. package/{es/common/curve/interface.d.ts → cjs/interface/curve.d.ts} +19 -19
  314. package/cjs/interface/curve.js +6 -0
  315. package/cjs/interface/curve.js.map +1 -0
  316. package/cjs/interface/graphic/area.d.ts +2 -2
  317. package/cjs/interface/graphic/area.js.map +1 -1
  318. package/cjs/interface/graphic/creator.js.map +1 -1
  319. package/cjs/interface/graphic/line.d.ts +2 -2
  320. package/cjs/interface/graphic/line.js.map +1 -1
  321. package/cjs/interface/graphic/path.d.ts +1 -2
  322. package/cjs/interface/graphic/path.js.map +1 -1
  323. package/cjs/interface/graphic/richText.d.ts +2 -4
  324. package/cjs/interface/graphic/richText.js.map +1 -1
  325. package/cjs/interface/graphic-service.d.ts +58 -0
  326. package/cjs/interface/graphic-service.js +6 -0
  327. package/cjs/interface/graphic-service.js.map +1 -0
  328. package/cjs/interface/graphic.d.ts +4 -4
  329. package/cjs/interface/graphic.js.map +1 -1
  330. package/cjs/interface/index.d.ts +2 -0
  331. package/cjs/interface/index.js +2 -1
  332. package/cjs/interface/index.js.map +1 -1
  333. package/cjs/interface/path.d.ts +11 -19
  334. package/cjs/interface/path.js +1 -8
  335. package/cjs/interface/path.js.map +1 -1
  336. package/cjs/kits/env.js +3 -3
  337. package/cjs/kits/env.js.map +1 -1
  338. package/cjs/modules.d.ts +2 -19
  339. package/cjs/modules.js +12 -17
  340. package/cjs/modules.js.map +1 -1
  341. package/cjs/picker/canvas-picker-service.d.ts +1 -1
  342. package/cjs/picker/canvas-picker-service.js +10 -9
  343. package/cjs/picker/canvas-picker-service.js.map +1 -1
  344. package/cjs/picker/contributions/canvas-picker/arc-picker.js +4 -4
  345. package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  346. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js +4 -4
  347. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  348. package/cjs/picker/contributions/canvas-picker/area-picker.js +3 -3
  349. package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  350. package/cjs/picker/contributions/canvas-picker/circle-picker.js +4 -4
  351. package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  352. package/cjs/picker/contributions/canvas-picker/glyph-picker.js +2 -2
  353. package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  354. package/cjs/picker/contributions/canvas-picker/image-picker.js +2 -2
  355. package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  356. package/cjs/picker/contributions/canvas-picker/line-picker.js +5 -5
  357. package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  358. package/cjs/picker/contributions/canvas-picker/module.js +2 -2
  359. package/cjs/picker/contributions/canvas-picker/module.js.map +1 -1
  360. package/cjs/picker/contributions/canvas-picker/path-picker.js +5 -5
  361. package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  362. package/cjs/picker/contributions/canvas-picker/polygon-picker.js +3 -3
  363. package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  364. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js +4 -4
  365. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  366. package/cjs/picker/contributions/canvas-picker/rect-picker.js +4 -4
  367. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  368. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js +4 -4
  369. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  370. package/cjs/picker/contributions/canvas-picker/richtext-picker.js +2 -2
  371. package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  372. package/cjs/picker/contributions/canvas-picker/symbol-picker.js +5 -5
  373. package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  374. package/cjs/picker/contributions/canvas-picker/text-picker.js +5 -5
  375. package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  376. package/cjs/picker/contributions/math-picker/arc-picker.js +3 -3
  377. package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
  378. package/cjs/picker/contributions/math-picker/area-picker.js +3 -3
  379. package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
  380. package/cjs/picker/contributions/math-picker/circle-picker.js +3 -3
  381. package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
  382. package/cjs/picker/contributions/math-picker/glyph-picker.js +2 -2
  383. package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  384. package/cjs/picker/contributions/math-picker/line-picker.js +3 -3
  385. package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
  386. package/cjs/picker/contributions/math-picker/module.js +2 -2
  387. package/cjs/picker/contributions/math-picker/module.js.map +1 -1
  388. package/cjs/picker/contributions/math-picker/path-picker.js +3 -3
  389. package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
  390. package/cjs/picker/contributions/math-picker/polygon-picker.js +3 -3
  391. package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  392. package/cjs/picker/contributions/math-picker/rect-picker.js +4 -4
  393. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  394. package/cjs/picker/contributions/math-picker/symbol-picker.js +3 -3
  395. package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  396. package/cjs/picker/contributions/math-picker/text-picker.js +2 -2
  397. package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
  398. package/cjs/picker/contributions/modules.js.map +1 -1
  399. package/cjs/picker/math-picker-service.d.ts +1 -1
  400. package/cjs/picker/math-picker-service.js +4 -3
  401. package/cjs/picker/math-picker-service.js.map +1 -1
  402. package/cjs/picker/pick-interceptor.js +2 -2
  403. package/cjs/picker/pick-interceptor.js.map +1 -1
  404. package/cjs/picker/pick-modules.js +2 -2
  405. package/cjs/picker/pick-modules.js.map +1 -1
  406. package/cjs/picker/picker-service.d.ts +1 -1
  407. package/cjs/picker/picker-service.js +10 -10
  408. package/cjs/picker/picker-service.js.map +1 -1
  409. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js +2 -2
  410. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  411. package/cjs/plugins/builtin-plugin/auto-render-plugin.js +6 -6
  412. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  413. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js +8 -8
  414. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  415. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js +7 -7
  416. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  417. package/cjs/render/contributions/render/arc-render.d.ts +1 -2
  418. package/cjs/render/contributions/render/arc-render.js +22 -117
  419. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  420. package/cjs/render/contributions/render/arc3d-render.js +10 -10
  421. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  422. package/cjs/render/contributions/render/area-render.d.ts +2 -2
  423. package/cjs/render/contributions/render/area-render.js +18 -17
  424. package/cjs/render/contributions/render/area-render.js.map +1 -1
  425. package/cjs/render/contributions/render/base-render.js +3 -3
  426. package/cjs/render/contributions/render/base-render.js.map +1 -1
  427. package/cjs/render/contributions/render/circle-render.d.ts +1 -1
  428. package/cjs/render/contributions/render/circle-render.js +6 -5
  429. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  430. package/cjs/render/contributions/render/contributions/arc-contribution-render.js +5 -5
  431. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  432. package/cjs/render/contributions/render/contributions/area-contribution-render.js +6 -2
  433. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  434. package/cjs/render/contributions/render/contributions/base-contribution-render.js +3 -3
  435. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  436. package/cjs/render/contributions/render/contributions/circle-contribution-render.js +3 -3
  437. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  438. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  439. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  440. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +7 -7
  441. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  442. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +3 -3
  443. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  444. package/cjs/render/contributions/render/draw-contribution.d.ts +2 -2
  445. package/cjs/render/contributions/render/draw-contribution.js +6 -6
  446. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  447. package/cjs/render/contributions/render/draw-interceptor.js +5 -5
  448. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  449. package/cjs/render/contributions/render/glyph-render.js +3 -3
  450. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  451. package/cjs/render/contributions/render/group-render.d.ts +1 -1
  452. package/cjs/render/contributions/render/group-render.js +9 -8
  453. package/cjs/render/contributions/render/group-render.js.map +1 -1
  454. package/cjs/render/contributions/render/image-render.d.ts +1 -1
  455. package/cjs/render/contributions/render/image-render.js +6 -5
  456. package/cjs/render/contributions/render/image-render.js.map +1 -1
  457. package/cjs/render/contributions/render/incremental-area-render.js +4 -4
  458. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  459. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +2 -2
  460. package/cjs/render/contributions/render/incremental-draw-contribution.js +4 -4
  461. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  462. package/cjs/render/contributions/render/incremental-line-render.js +4 -4
  463. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  464. package/cjs/render/contributions/render/index.d.ts +1 -0
  465. package/cjs/render/contributions/render/index.js +1 -1
  466. package/cjs/render/contributions/render/index.js.map +1 -1
  467. package/cjs/render/contributions/render/line-render.d.ts +1 -2
  468. package/cjs/render/contributions/render/line-render.js +11 -11
  469. package/cjs/render/contributions/render/line-render.js.map +1 -1
  470. package/cjs/render/contributions/render/module.js +12 -12
  471. package/cjs/render/contributions/render/module.js.map +1 -1
  472. package/cjs/render/contributions/render/path-render.d.ts +1 -1
  473. package/cjs/render/contributions/render/path-render.js +9 -8
  474. package/cjs/render/contributions/render/path-render.js.map +1 -1
  475. package/cjs/render/contributions/render/polygon-render.d.ts +1 -1
  476. package/cjs/render/contributions/render/polygon-render.js +6 -5
  477. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  478. package/cjs/render/contributions/render/pyramid3d-render.js +7 -7
  479. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  480. package/cjs/render/contributions/render/rect-render.d.ts +1 -1
  481. package/cjs/render/contributions/render/rect-render.js +7 -6
  482. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  483. package/cjs/render/contributions/render/rect3d-render.js +7 -7
  484. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  485. package/cjs/render/contributions/render/richtext-render.js +6 -6
  486. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  487. package/cjs/render/contributions/render/symbol-render.d.ts +1 -1
  488. package/cjs/render/contributions/render/symbol-render.js +7 -6
  489. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  490. package/cjs/render/contributions/render/text-render.js +10 -10
  491. package/cjs/render/contributions/render/text-render.js.map +1 -1
  492. package/cjs/render/contributions/render/utils.d.ts +13 -3
  493. package/cjs/render/contributions/render/utils.js +105 -7
  494. package/cjs/render/contributions/render/utils.js.map +1 -1
  495. package/cjs/resource-loader/loader.d.ts +1 -1
  496. package/cjs/resource-loader/loader.js +8 -8
  497. package/cjs/resource-loader/loader.js.map +1 -1
  498. package/cjs/{common → tapable}/interface.js +2 -0
  499. package/cjs/tapable/interface.js.map +1 -0
  500. package/dist/vrender.js.js +1 -1
  501. package/dist/vrender.js.min.js +1 -1
  502. package/es/allocator/allocator-modules.d.ts +1 -3
  503. package/es/allocator/allocator-modules.js +1 -22
  504. package/es/allocator/allocator-modules.js.map +1 -1
  505. package/es/allocator/canvas-allocate.d.ts +2 -5
  506. package/es/allocator/canvas-allocate.js +9 -27
  507. package/es/allocator/canvas-allocate.js.map +1 -1
  508. package/es/allocator/constants.d.ts +0 -2
  509. package/es/allocator/constants.js +1 -6
  510. package/es/allocator/constants.js.map +1 -1
  511. package/es/allocator/graphic-allocate.d.ts +1 -58
  512. package/es/allocator/graphic-allocate.js +1 -181
  513. package/es/allocator/graphic-allocate.js.map +1 -1
  514. package/es/allocator/interface.d.ts +10 -0
  515. package/es/allocator/interface.js.map +1 -1
  516. package/es/allocator/matrix-allocate.d.ts +2 -0
  517. package/es/allocator/matrix-allocate.js +7 -19
  518. package/es/allocator/matrix-allocate.js.map +1 -1
  519. package/es/animate/Ticker/default-ticker.js +5 -5
  520. package/es/animate/Ticker/default-ticker.js.map +1 -1
  521. package/es/animate/animate.d.ts +1 -1
  522. package/es/animate/animate.js +3 -1
  523. package/es/animate/animate.js.map +1 -1
  524. package/es/animate/custom-animate.d.ts +3 -3
  525. package/es/animate/custom-animate.js +20 -20
  526. package/es/animate/custom-animate.js.map +1 -1
  527. package/es/animate/default-ticker.d.ts +2 -0
  528. package/es/animate/default-ticker.js +12 -0
  529. package/es/animate/default-ticker.js.map +1 -0
  530. package/es/animate/morphing.d.ts +1 -1
  531. package/es/animate/morphing.js +15 -16
  532. package/es/animate/morphing.js.map +1 -1
  533. package/es/animate/timeline.js +5 -2
  534. package/es/animate/timeline.js.map +1 -1
  535. package/es/application.d.ts +11 -0
  536. package/es/application.js +3 -0
  537. package/es/application.js.map +1 -0
  538. package/es/canvas/contributions/browser/canvas.js +2 -2
  539. package/es/canvas/contributions/browser/canvas.js.map +1 -1
  540. package/es/canvas/contributions/browser/conical-gradient.js +4 -4
  541. package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
  542. package/es/canvas/contributions/browser/context.d.ts +2 -4
  543. package/es/canvas/contributions/browser/context.js +12 -11
  544. package/es/canvas/contributions/browser/context.js.map +1 -1
  545. package/es/canvas/contributions/taro/context.js +8 -7
  546. package/es/canvas/contributions/taro/context.js.map +1 -1
  547. package/es/canvas/empty-context.d.ts +1 -1
  548. package/es/canvas/empty-context.js +5 -3
  549. package/es/canvas/empty-context.js.map +1 -1
  550. package/es/canvas/index.d.ts +0 -3
  551. package/es/canvas/index.js +0 -12
  552. package/es/canvas/index.js.map +1 -1
  553. package/es/canvas/util.d.ts +3 -0
  554. package/es/canvas/util.js +15 -1
  555. package/es/canvas/util.js.map +1 -1
  556. package/es/color-string/colorName.js +1 -1
  557. package/es/color-string/index.js +1 -1
  558. package/es/color-string/interpolate.js +1 -1
  559. package/es/common/{bezier.d.ts → bezier-utils.d.ts} +0 -3
  560. package/es/common/{bezier.js → bezier-utils.js} +1 -13
  561. package/es/common/bezier-utils.js.map +1 -0
  562. package/es/common/canvas-utils.d.ts +1 -1
  563. package/es/common/canvas-utils.js +6 -3
  564. package/es/common/canvas-utils.js.map +1 -1
  565. package/es/common/custom-path2d.d.ts +47 -0
  566. package/es/common/{path.js → custom-path2d.js} +7 -207
  567. package/es/common/custom-path2d.js.map +1 -0
  568. package/es/common/enums.d.ts +12 -0
  569. package/es/common/enums.js +14 -0
  570. package/es/common/enums.js.map +1 -1
  571. package/es/common/generator.js +1 -2
  572. package/es/common/morphing-utils.d.ts +1 -2
  573. package/es/common/morphing-utils.js +3 -6
  574. package/es/common/morphing-utils.js.map +1 -1
  575. package/es/common/polygon.js +2 -1
  576. package/es/common/render-area.d.ts +2 -3
  577. package/es/common/render-area.js +5 -1
  578. package/es/common/render-area.js.map +1 -1
  579. package/es/common/render-curve.d.ts +1 -2
  580. package/es/common/render-curve.js +2 -2
  581. package/es/common/render-curve.js.map +1 -1
  582. package/es/common/seg-context.d.ts +7 -13
  583. package/es/common/seg-context.js +4 -6
  584. package/es/common/seg-context.js.map +1 -1
  585. package/es/common/{curve → segment}/basis.d.ts +12 -5
  586. package/es/common/{curve → segment}/basis.js +4 -4
  587. package/es/common/segment/basis.js.map +1 -0
  588. package/es/common/segment/common.d.ts +3 -0
  589. package/es/common/segment/common.js.map +1 -0
  590. package/es/common/segment/curve/arc.d.ts +14 -0
  591. package/es/common/segment/curve/arc.js +22 -0
  592. package/es/common/segment/curve/arc.js.map +1 -0
  593. package/es/common/segment/curve/base.d.ts +13 -0
  594. package/es/common/segment/curve/base.js +7 -0
  595. package/es/common/segment/curve/base.js.map +1 -0
  596. package/es/common/segment/curve/cubic-bezier.d.ts +17 -0
  597. package/es/common/segment/curve/cubic-bezier.js +37 -0
  598. package/es/common/segment/curve/cubic-bezier.js.map +1 -0
  599. package/es/common/segment/curve/curve-context.d.ts +19 -0
  600. package/es/common/segment/curve/curve-context.js +44 -0
  601. package/es/common/segment/curve/curve-context.js.map +1 -0
  602. package/es/common/segment/curve/ellipse.d.ts +18 -0
  603. package/es/common/segment/curve/ellipse.js +24 -0
  604. package/es/common/segment/curve/ellipse.js.map +1 -0
  605. package/es/common/segment/curve/line.d.ts +16 -0
  606. package/es/common/segment/curve/line.js +34 -0
  607. package/es/common/segment/curve/line.js.map +1 -0
  608. package/es/common/segment/curve/move.d.ts +13 -0
  609. package/es/common/segment/curve/move.js +22 -0
  610. package/es/common/segment/curve/move.js.map +1 -0
  611. package/es/common/segment/curve/path.d.ts +11 -0
  612. package/es/common/segment/curve/path.js +23 -0
  613. package/es/common/segment/curve/path.js.map +1 -0
  614. package/es/common/segment/curve/quadratic-bezier.d.ts +14 -0
  615. package/es/common/segment/curve/quadratic-bezier.js +23 -0
  616. package/es/common/segment/curve/quadratic-bezier.js.map +1 -0
  617. package/{cjs/common/curve → es/common/segment}/index.d.ts +2 -4
  618. package/es/common/{curve → segment}/index.js +0 -2
  619. package/es/common/segment/index.js.map +1 -0
  620. package/es/common/segment/linear-closed.d.ts +24 -0
  621. package/es/common/{curve → segment}/linear-closed.js +4 -4
  622. package/es/common/segment/linear-closed.js.map +1 -0
  623. package/es/common/segment/linear.d.ts +24 -0
  624. package/es/common/{curve → segment}/linear.js +4 -4
  625. package/es/common/segment/linear.js.map +1 -0
  626. package/{cjs/common/curve → es/common/segment}/monotone.d.ts +12 -5
  627. package/es/common/{curve → segment}/monotone.js +4 -4
  628. package/es/common/segment/monotone.js.map +1 -0
  629. package/es/common/segment/step.d.ts +25 -0
  630. package/es/common/{curve → segment}/step.js +4 -4
  631. package/es/common/segment/step.js.map +1 -0
  632. package/es/common/shape/arc.d.ts +3 -0
  633. package/es/common/shape/arc.js +13 -0
  634. package/es/common/shape/arc.js.map +1 -1
  635. package/es/common/shape/rect.d.ts +1 -1
  636. package/es/common/sort.js +1 -1
  637. package/es/common/split-path.js +1 -1
  638. package/es/common/split-path.js.map +1 -1
  639. package/es/common/store.js +1 -1
  640. package/es/common/text.js +1 -1
  641. package/es/common/utils.d.ts +2 -1
  642. package/es/common/utils.js +15 -6
  643. package/es/common/utils.js.map +1 -1
  644. package/es/container.js +2 -1
  645. package/es/container.js.map +1 -1
  646. package/es/core/application.js +1 -1
  647. package/es/core/camera.js +2 -2
  648. package/es/core/camera.js.map +1 -1
  649. package/es/core/constants.d.ts +1 -5
  650. package/es/core/constants.js +2 -10
  651. package/es/core/constants.js.map +1 -1
  652. package/es/core/contributions/env/browser-contribution.js +1 -1
  653. package/es/core/contributions/env/browser-contribution.js.map +1 -1
  654. package/es/core/contributions/env/modules.js +1 -1
  655. package/es/core/contributions/env/modules.js.map +1 -1
  656. package/es/core/contributions/layerHandler/canvas2d-contribution.js +2 -2
  657. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  658. package/es/core/contributions/layerHandler/modules.js +1 -1
  659. package/es/core/contributions/layerHandler/modules.js.map +1 -1
  660. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +2 -2
  661. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  662. package/es/core/contributions/textMeasure/AtextMeasure.d.ts +1 -1
  663. package/es/core/contributions/textMeasure/AtextMeasure.js +1 -1
  664. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  665. package/es/core/contributions/textMeasure/ITextMeasure.d.ts +1 -1
  666. package/es/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  667. package/es/core/contributions/textMeasure/modules.js +1 -1
  668. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  669. package/es/core/contributions/window/base-contribution.js +1 -1
  670. package/es/core/contributions/window/base-contribution.js.map +1 -1
  671. package/es/core/contributions/window/browser-contribution.js +1 -1
  672. package/es/core/contributions/window/browser-contribution.js.map +1 -1
  673. package/es/core/contributions/window/feishu-contribution.js +1 -1
  674. package/es/core/contributions/window/feishu-contribution.js.map +1 -1
  675. package/es/core/contributions/window/lynx-contribution.js +1 -1
  676. package/es/core/contributions/window/lynx-contribution.js.map +1 -1
  677. package/es/core/contributions/window/modules.js +1 -1
  678. package/es/core/contributions/window/modules.js.map +1 -1
  679. package/es/core/contributions/window/node-contribution.js.map +1 -1
  680. package/es/core/contributions/window/taro-contribution.js +1 -1
  681. package/es/core/contributions/window/taro-contribution.js.map +1 -1
  682. package/es/core/core-modules.js +5 -3
  683. package/es/core/core-modules.js.map +1 -1
  684. package/es/core/global-module.d.ts +5 -0
  685. package/es/core/global-module.js +19 -0
  686. package/es/core/global-module.js.map +1 -0
  687. package/es/core/global.d.ts +3 -3
  688. package/es/core/global.js +2 -2
  689. package/es/core/global.js.map +1 -1
  690. package/es/core/graphic-utils.d.ts +3 -25
  691. package/es/core/graphic-utils.js +4 -8
  692. package/es/core/graphic-utils.js.map +1 -1
  693. package/es/core/index.d.ts +2 -0
  694. package/es/core/index.js +5 -1
  695. package/es/core/index.js.map +1 -1
  696. package/es/core/interface.d.ts +30 -0
  697. package/es/core/interface.js +2 -0
  698. package/es/core/interface.js.map +1 -0
  699. package/es/core/layer-service.d.ts +1 -8
  700. package/es/core/layer-service.js +1 -3
  701. package/es/core/layer-service.js.map +1 -1
  702. package/es/core/layer.d.ts +1 -1
  703. package/es/core/layer.js +9 -5
  704. package/es/core/layer.js.map +1 -1
  705. package/es/core/light.js +1 -1
  706. package/es/core/stage.js +3 -3
  707. package/es/core/stage.js.map +1 -1
  708. package/es/core/window.js +3 -3
  709. package/es/core/window.js.map +1 -1
  710. package/es/create.d.ts +1 -1
  711. package/es/create.js +3 -2
  712. package/es/create.js.map +1 -1
  713. package/es/event/constant.js +1 -1
  714. package/es/event/event-manager.js +1 -1
  715. package/es/event/event-system.js +1 -1
  716. package/es/event/event-target.js +1 -1
  717. package/es/event/extension/gesture.js +2 -2
  718. package/es/event/extension/gesture.js.map +1 -1
  719. package/es/event/index.js +1 -1
  720. package/es/event/interface.js +1 -1
  721. package/es/event/type.js +2 -1
  722. package/es/event/util.js +1 -1
  723. package/es/graphic/arc.d.ts +1 -2
  724. package/es/graphic/arc.js +8 -6
  725. package/es/graphic/arc.js.map +1 -1
  726. package/es/graphic/arc3d.d.ts +0 -1
  727. package/es/graphic/arc3d.js +5 -7
  728. package/es/graphic/arc3d.js.map +1 -1
  729. package/es/graphic/area.d.ts +1 -2
  730. package/es/graphic/area.js +8 -6
  731. package/es/graphic/area.js.map +1 -1
  732. package/es/graphic/bounds.js +1 -1
  733. package/es/graphic/builtin-symbol/utils.js +1 -1
  734. package/es/graphic/builtin-symbol/utils.js.map +1 -1
  735. package/es/graphic/circle.d.ts +1 -2
  736. package/es/graphic/circle.js +8 -6
  737. package/es/graphic/circle.js.map +1 -1
  738. package/es/graphic/config.js +4 -6
  739. package/es/graphic/config.js.map +1 -1
  740. package/{cjs/graphic/constant.d.ts → es/graphic/constants.d.ts} +2 -1
  741. package/es/graphic/{constant.js → constants.js} +6 -6
  742. package/es/graphic/constants.js.map +1 -0
  743. package/es/graphic/glyph.d.ts +0 -1
  744. package/es/graphic/glyph.js +4 -4
  745. package/es/graphic/glyph.js.map +1 -1
  746. package/es/graphic/graphic-service/graphic-module.js +7 -3
  747. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  748. package/es/graphic/graphic-service/graphic-service.d.ts +4 -60
  749. package/es/graphic/graphic-service/graphic-service.js +42 -40
  750. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  751. package/es/graphic/graphic.d.ts +0 -1
  752. package/es/graphic/graphic.js +13 -20
  753. package/es/graphic/graphic.js.map +1 -1
  754. package/es/graphic/group.d.ts +0 -1
  755. package/es/graphic/group.js +13 -13
  756. package/es/graphic/group.js.map +1 -1
  757. package/es/graphic/image.d.ts +0 -1
  758. package/es/graphic/image.js +5 -5
  759. package/es/graphic/image.js.map +1 -1
  760. package/es/graphic/index.d.ts +1 -0
  761. package/es/graphic/index.js +2 -0
  762. package/es/graphic/index.js.map +1 -1
  763. package/es/graphic/line.d.ts +1 -2
  764. package/es/graphic/line.js +8 -6
  765. package/es/graphic/line.js.map +1 -1
  766. package/es/graphic/node-tree.js +1 -1
  767. package/es/graphic/node-tree.js.map +1 -1
  768. package/es/graphic/path.d.ts +1 -2
  769. package/es/graphic/path.js +7 -5
  770. package/es/graphic/path.js.map +1 -1
  771. package/es/graphic/polygon.d.ts +1 -2
  772. package/es/graphic/polygon.js +5 -5
  773. package/es/graphic/polygon.js.map +1 -1
  774. package/es/graphic/pyramid3d.d.ts +0 -1
  775. package/es/graphic/pyramid3d.js +4 -6
  776. package/es/graphic/pyramid3d.js.map +1 -1
  777. package/es/graphic/rect.d.ts +1 -2
  778. package/es/graphic/rect.js +7 -5
  779. package/es/graphic/rect.js.map +1 -1
  780. package/es/graphic/rect3d.d.ts +0 -1
  781. package/es/graphic/rect3d.js +1 -3
  782. package/es/graphic/rect3d.js.map +1 -1
  783. package/es/graphic/richtext/icon.js +1 -1
  784. package/es/graphic/richtext/icon.js.map +1 -1
  785. package/es/graphic/richtext/paragraph.d.ts +1 -0
  786. package/es/graphic/richtext/paragraph.js +5 -0
  787. package/es/graphic/richtext/paragraph.js.map +1 -1
  788. package/es/graphic/richtext/utils.d.ts +0 -2
  789. package/es/graphic/richtext/utils.js +9 -18
  790. package/es/graphic/richtext/utils.js.map +1 -1
  791. package/es/graphic/richtext/wrapper.js +3 -1
  792. package/es/graphic/richtext/wrapper.js.map +1 -1
  793. package/es/graphic/richtext.d.ts +0 -1
  794. package/es/graphic/richtext.js +5 -5
  795. package/es/graphic/richtext.js.map +1 -1
  796. package/es/graphic/symbol.d.ts +1 -2
  797. package/es/graphic/symbol.js +7 -5
  798. package/es/graphic/symbol.js.map +1 -1
  799. package/es/graphic/text.d.ts +0 -1
  800. package/es/graphic/text.js +10 -8
  801. package/es/graphic/text.js.map +1 -1
  802. package/es/graphic/tools.d.ts +1 -0
  803. package/es/graphic/tools.js +8 -2
  804. package/es/graphic/tools.js.map +1 -1
  805. package/es/graphic/wrap-text.js +3 -3
  806. package/es/graphic/wrap-text.js.map +1 -1
  807. package/es/index.d.ts +21 -3
  808. package/es/index.js +38 -8
  809. package/es/index.js.map +1 -1
  810. package/es/interface/common.d.ts +1 -0
  811. package/es/interface/common.js.map +1 -1
  812. package/es/interface/context.d.ts +3 -3
  813. package/es/interface/context.js.map +1 -1
  814. package/{cjs/common/curve/interface.d.ts → es/interface/curve.d.ts} +19 -19
  815. package/es/interface/curve.js +2 -0
  816. package/es/interface/curve.js.map +1 -0
  817. package/es/interface/graphic/area.d.ts +2 -2
  818. package/es/interface/graphic/area.js.map +1 -1
  819. package/es/interface/graphic/creator.js.map +1 -1
  820. package/es/interface/graphic/line.d.ts +2 -2
  821. package/es/interface/graphic/line.js.map +1 -1
  822. package/es/interface/graphic/path.d.ts +1 -2
  823. package/es/interface/graphic/path.js.map +1 -1
  824. package/es/interface/graphic/richText.d.ts +2 -4
  825. package/es/interface/graphic/richText.js.map +1 -1
  826. package/es/interface/graphic-service.d.ts +58 -0
  827. package/es/interface/graphic-service.js +2 -0
  828. package/es/interface/graphic-service.js.map +1 -0
  829. package/es/interface/graphic.d.ts +4 -4
  830. package/es/interface/graphic.js.map +1 -1
  831. package/es/interface/index.d.ts +2 -0
  832. package/es/interface/index.js +4 -0
  833. package/es/interface/index.js.map +1 -1
  834. package/es/interface/path.d.ts +11 -19
  835. package/es/interface/path.js +0 -8
  836. package/es/interface/path.js.map +1 -1
  837. package/es/kits/env.js +1 -1
  838. package/es/kits/env.js.map +1 -1
  839. package/es/modules.d.ts +2 -19
  840. package/es/modules.js +18 -37
  841. package/es/modules.js.map +1 -1
  842. package/es/picker/canvas-picker-service.d.ts +1 -1
  843. package/es/picker/canvas-picker-service.js +1 -1
  844. package/es/picker/canvas-picker-service.js.map +1 -1
  845. package/es/picker/contributions/canvas-picker/arc-picker.js +4 -2
  846. package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  847. package/es/picker/contributions/canvas-picker/arc3d-picker.js +4 -2
  848. package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  849. package/es/picker/contributions/canvas-picker/area-picker.js +3 -1
  850. package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  851. package/es/picker/contributions/canvas-picker/circle-picker.js +4 -2
  852. package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  853. package/es/picker/contributions/canvas-picker/glyph-picker.js +1 -1
  854. package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  855. package/es/picker/contributions/canvas-picker/image-picker.js +1 -1
  856. package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  857. package/es/picker/contributions/canvas-picker/line-picker.js +5 -3
  858. package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  859. package/es/picker/contributions/canvas-picker/module.js +1 -1
  860. package/es/picker/contributions/canvas-picker/module.js.map +1 -1
  861. package/es/picker/contributions/canvas-picker/path-picker.js +5 -3
  862. package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  863. package/es/picker/contributions/canvas-picker/polygon-picker.js +3 -1
  864. package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  865. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js +4 -2
  866. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  867. package/es/picker/contributions/canvas-picker/rect-picker.js +5 -3
  868. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  869. package/es/picker/contributions/canvas-picker/rect3d-picker.js +4 -2
  870. package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  871. package/es/picker/contributions/canvas-picker/richtext-picker.js +1 -1
  872. package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  873. package/es/picker/contributions/canvas-picker/symbol-picker.js +5 -3
  874. package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  875. package/es/picker/contributions/canvas-picker/text-picker.js +5 -3
  876. package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  877. package/es/picker/contributions/math-picker/arc-picker.js +3 -1
  878. package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
  879. package/es/picker/contributions/math-picker/area-picker.js +3 -1
  880. package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
  881. package/es/picker/contributions/math-picker/circle-picker.js +3 -1
  882. package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
  883. package/es/picker/contributions/math-picker/glyph-picker.js +1 -1
  884. package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  885. package/es/picker/contributions/math-picker/line-picker.js +3 -1
  886. package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
  887. package/es/picker/contributions/math-picker/module.js +1 -1
  888. package/es/picker/contributions/math-picker/module.js.map +1 -1
  889. package/es/picker/contributions/math-picker/path-picker.js +3 -1
  890. package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
  891. package/es/picker/contributions/math-picker/polygon-picker.js +3 -1
  892. package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  893. package/es/picker/contributions/math-picker/rect-picker.js +4 -2
  894. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  895. package/es/picker/contributions/math-picker/symbol-picker.js +3 -1
  896. package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  897. package/es/picker/contributions/math-picker/text-picker.js +1 -1
  898. package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
  899. package/es/picker/contributions/modules.js.map +1 -1
  900. package/es/picker/math-picker-service.d.ts +1 -1
  901. package/es/picker/math-picker-service.js +1 -1
  902. package/es/picker/math-picker-service.js.map +1 -1
  903. package/es/picker/pick-interceptor.js +1 -1
  904. package/es/picker/pick-interceptor.js.map +1 -1
  905. package/es/picker/pick-modules.js +1 -1
  906. package/es/picker/pick-modules.js.map +1 -1
  907. package/es/picker/picker-service.d.ts +1 -1
  908. package/es/picker/picker-service.js +4 -2
  909. package/es/picker/picker-service.js.map +1 -1
  910. package/es/plugins/builtin-plugin/3dview-transform-plugin.js +1 -1
  911. package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  912. package/es/plugins/builtin-plugin/auto-render-plugin.js +6 -6
  913. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  914. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js +8 -8
  915. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  916. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js +7 -7
  917. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  918. package/es/render/contributions/render/arc-render.d.ts +1 -2
  919. package/es/render/contributions/render/arc-render.js +10 -76
  920. package/es/render/contributions/render/arc-render.js.map +1 -1
  921. package/es/render/contributions/render/arc3d-render.js +10 -8
  922. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  923. package/es/render/contributions/render/area-render.d.ts +2 -2
  924. package/es/render/contributions/render/area-render.js +12 -6
  925. package/es/render/contributions/render/area-render.js.map +1 -1
  926. package/es/render/contributions/render/base-render.js +1 -1
  927. package/es/render/contributions/render/base-render.js.map +1 -1
  928. package/es/render/contributions/render/circle-render.d.ts +1 -1
  929. package/es/render/contributions/render/circle-render.js +5 -3
  930. package/es/render/contributions/render/circle-render.js.map +1 -1
  931. package/es/render/contributions/render/contributions/arc-contribution-render.js +3 -3
  932. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  933. package/es/render/contributions/render/contributions/area-contribution-render.js +3 -1
  934. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  935. package/es/render/contributions/render/contributions/base-contribution-render.js +1 -1
  936. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  937. package/es/render/contributions/render/contributions/circle-contribution-render.js +1 -1
  938. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  939. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  940. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  941. package/es/render/contributions/render/contributions/rect-contribution-render.js +5 -3
  942. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  943. package/es/render/contributions/render/contributions/symbol-contribution-render.js +1 -1
  944. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  945. package/es/render/contributions/render/draw-contribution.d.ts +2 -2
  946. package/es/render/contributions/render/draw-contribution.js +7 -3
  947. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  948. package/es/render/contributions/render/draw-interceptor.js +4 -2
  949. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  950. package/es/render/contributions/render/glyph-render.js +3 -1
  951. package/es/render/contributions/render/glyph-render.js.map +1 -1
  952. package/es/render/contributions/render/group-render.d.ts +1 -1
  953. package/es/render/contributions/render/group-render.js +8 -4
  954. package/es/render/contributions/render/group-render.js.map +1 -1
  955. package/es/render/contributions/render/image-render.d.ts +1 -1
  956. package/es/render/contributions/render/image-render.js +4 -2
  957. package/es/render/contributions/render/image-render.js.map +1 -1
  958. package/es/render/contributions/render/incremental-area-render.js +5 -3
  959. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  960. package/es/render/contributions/render/incremental-draw-contribution.d.ts +2 -2
  961. package/es/render/contributions/render/incremental-draw-contribution.js +5 -3
  962. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  963. package/es/render/contributions/render/incremental-line-render.js +5 -3
  964. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  965. package/es/render/contributions/render/index.d.ts +1 -0
  966. package/es/render/contributions/render/index.js +2 -0
  967. package/es/render/contributions/render/index.js.map +1 -1
  968. package/es/render/contributions/render/line-render.d.ts +1 -2
  969. package/es/render/contributions/render/line-render.js +11 -7
  970. package/es/render/contributions/render/line-render.js.map +1 -1
  971. package/es/render/contributions/render/module.js +1 -1
  972. package/es/render/contributions/render/module.js.map +1 -1
  973. package/es/render/contributions/render/path-render.d.ts +1 -1
  974. package/es/render/contributions/render/path-render.js +8 -4
  975. package/es/render/contributions/render/path-render.js.map +1 -1
  976. package/es/render/contributions/render/polygon-render.d.ts +1 -1
  977. package/es/render/contributions/render/polygon-render.js +5 -3
  978. package/es/render/contributions/render/polygon-render.js.map +1 -1
  979. package/es/render/contributions/render/pyramid3d-render.js +7 -5
  980. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  981. package/es/render/contributions/render/rect-render.d.ts +1 -1
  982. package/es/render/contributions/render/rect-render.js +7 -3
  983. package/es/render/contributions/render/rect-render.js.map +1 -1
  984. package/es/render/contributions/render/rect3d-render.js +7 -5
  985. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  986. package/es/render/contributions/render/richtext-render.js +4 -2
  987. package/es/render/contributions/render/richtext-render.js.map +1 -1
  988. package/es/render/contributions/render/symbol-render.d.ts +1 -1
  989. package/es/render/contributions/render/symbol-render.js +6 -4
  990. package/es/render/contributions/render/symbol-render.js.map +1 -1
  991. package/es/render/contributions/render/text-render.js +9 -7
  992. package/es/render/contributions/render/text-render.js.map +1 -1
  993. package/es/render/contributions/render/utils.d.ts +13 -3
  994. package/es/render/contributions/render/utils.js +76 -5
  995. package/es/render/contributions/render/utils.js.map +1 -1
  996. package/es/resource-loader/loader.d.ts +1 -1
  997. package/es/resource-loader/loader.js +8 -8
  998. package/es/resource-loader/loader.js.map +1 -1
  999. package/es/{common → tapable}/interface.js +2 -0
  1000. package/es/tapable/interface.js.map +1 -0
  1001. package/es/tsconfig.tsbuildinfo +1 -1
  1002. package/package.json +4 -3
  1003. package/cjs/allocator/index.d.ts +0 -3
  1004. package/cjs/allocator/index.js +0 -21
  1005. package/cjs/allocator/index.js.map +0 -1
  1006. package/cjs/canvas/constants.d.ts +0 -2
  1007. package/cjs/canvas/constants.js +0 -7
  1008. package/cjs/canvas/constants.js.map +0 -1
  1009. package/cjs/canvas/creator.d.ts +0 -3
  1010. package/cjs/canvas/creator.js +0 -18
  1011. package/cjs/canvas/creator.js.map +0 -1
  1012. package/cjs/common/bezier.js +0 -45
  1013. package/cjs/common/bezier.js.map +0 -1
  1014. package/cjs/common/curve/basis.js.map +0 -1
  1015. package/cjs/common/curve/common.d.ts +0 -3
  1016. package/cjs/common/curve/common.js.map +0 -1
  1017. package/cjs/common/curve/index.js.map +0 -1
  1018. package/cjs/common/curve/interface.js +0 -18
  1019. package/cjs/common/curve/interface.js.map +0 -1
  1020. package/cjs/common/curve/linear-closed.d.ts +0 -17
  1021. package/cjs/common/curve/linear-closed.js.map +0 -1
  1022. package/cjs/common/curve/linear.d.ts +0 -17
  1023. package/cjs/common/curve/linear.js.map +0 -1
  1024. package/cjs/common/curve/monotone.js.map +0 -1
  1025. package/cjs/common/curve/step.d.ts +0 -18
  1026. package/cjs/common/curve/step.js.map +0 -1
  1027. package/cjs/common/index.d.ts +0 -20
  1028. package/cjs/common/index.js +0 -30
  1029. package/cjs/common/index.js.map +0 -1
  1030. package/cjs/common/interface.js.map +0 -1
  1031. package/cjs/common/path.d.ts +0 -160
  1032. package/cjs/common/path.js.map +0 -1
  1033. package/cjs/core/contributions/constants.d.ts +0 -1
  1034. package/cjs/core/contributions/constants.js +0 -6
  1035. package/cjs/core/contributions/constants.js.map +0 -1
  1036. package/cjs/graphic/constant.js +0 -22
  1037. package/cjs/graphic/constant.js.map +0 -1
  1038. package/cjs/graphic/graphic-service/index.d.ts +0 -1
  1039. package/cjs/graphic/graphic-service/index.js +0 -21
  1040. package/cjs/graphic/graphic-service/index.js.map +0 -1
  1041. package/cjs/interface/graphic-creator.d.ts +0 -39
  1042. package/cjs/interface/graphic-creator.js +0 -6
  1043. package/cjs/interface/graphic-creator.js.map +0 -1
  1044. package/es/allocator/index.d.ts +0 -3
  1045. package/es/allocator/index.js +0 -5
  1046. package/es/allocator/index.js.map +0 -1
  1047. package/es/canvas/constants.d.ts +0 -2
  1048. package/es/canvas/constants.js +0 -4
  1049. package/es/canvas/constants.js.map +0 -1
  1050. package/es/canvas/creator.d.ts +0 -3
  1051. package/es/canvas/creator.js +0 -14
  1052. package/es/canvas/creator.js.map +0 -1
  1053. package/es/common/bezier.js.map +0 -1
  1054. package/es/common/curve/basis.js.map +0 -1
  1055. package/es/common/curve/common.d.ts +0 -3
  1056. package/es/common/curve/common.js.map +0 -1
  1057. package/es/common/curve/index.js.map +0 -1
  1058. package/es/common/curve/interface.js +0 -6
  1059. package/es/common/curve/interface.js.map +0 -1
  1060. package/es/common/curve/linear-closed.d.ts +0 -17
  1061. package/es/common/curve/linear-closed.js.map +0 -1
  1062. package/es/common/curve/linear.d.ts +0 -17
  1063. package/es/common/curve/linear.js.map +0 -1
  1064. package/es/common/curve/monotone.js.map +0 -1
  1065. package/es/common/curve/step.d.ts +0 -18
  1066. package/es/common/curve/step.js.map +0 -1
  1067. package/es/common/index.d.ts +0 -20
  1068. package/es/common/index.js +0 -40
  1069. package/es/common/index.js.map +0 -1
  1070. package/es/common/interface.js.map +0 -1
  1071. package/es/common/path.d.ts +0 -160
  1072. package/es/common/path.js.map +0 -1
  1073. package/es/core/contributions/constants.d.ts +0 -1
  1074. package/es/core/contributions/constants.js +0 -2
  1075. package/es/core/contributions/constants.js.map +0 -1
  1076. package/es/graphic/constant.js.map +0 -1
  1077. package/es/graphic/graphic-service/index.d.ts +0 -1
  1078. package/es/graphic/graphic-service/index.js +0 -2
  1079. package/es/graphic/graphic-service/index.js.map +0 -1
  1080. package/es/interface/graphic-creator.d.ts +0 -39
  1081. package/es/interface/graphic-creator.js +0 -2
  1082. package/es/interface/graphic-creator.js.map +0 -1
  1083. /package/cjs/common/{curve → segment}/common.js +0 -0
  1084. /package/cjs/{common → tapable}/interface.d.ts +0 -0
  1085. /package/es/common/{curve → segment}/common.js +0 -0
  1086. /package/es/{common → tapable}/interface.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6BzC,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,IAAI;IACV,UAAU,EAAE,CA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rix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillColor: 'black',\n fillOpacity: 1,\n fill: null,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeColor: 'black',\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: null\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA6BvD,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,KAAK;IACX,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,CAAC;IA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AE,CAAC,EACrB,WAAW,EAAE,IAAI,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,mCAChC,gBAAgB,KACnB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,YAAiC,EAC5C,iBAAiB,EAAE,KAAkC,EACrD,SAAS,EAAE,MAAiC,EAC5C,YAAY,EAAE,KAAmC,EACjD,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,EAAE,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,KAAK,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,iCAChC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,IAAI,EAAE,IAAI,GACX,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,mCACpC,qBAAqB,KACxB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,CAAC,EAClB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,IAAI,EACpB,mBAAmB,EAAE,0BAA0B,EAC/C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common/custom-path2d';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillOpacity: 1,\n fill: false,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: false\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
@@ -1,4 +1,3 @@
1
- export declare function genNumberType(): number;
2
1
  export declare const ARC_NUMBER_TYPE: number;
3
2
  export declare const ARC3D_NUMBER_TYPE: number;
4
3
  export declare const AREA_NUMBER_TYPE: number;
@@ -15,3 +14,5 @@ export declare const RECT3D_NUMBER_TYPE: number;
15
14
  export declare const RICHTEXT_NUMBER_TYPE: number;
16
15
  export declare const SYMBOL_NUMBER_TYPE: number;
17
16
  export declare const TEXT_NUMBER_TYPE: number;
17
+ export declare const GraphicService: unique symbol;
18
+ export declare const GraphicCreator: unique symbol;
@@ -1,8 +1,4 @@
1
- let NUMBER_TYPE = 0;
2
-
3
- export function genNumberType() {
4
- return NUMBER_TYPE++;
5
- }
1
+ import { genNumberType } from "./tools";
6
2
 
7
3
  export const ARC_NUMBER_TYPE = genNumberType();
8
4
 
@@ -35,4 +31,8 @@ export const RICHTEXT_NUMBER_TYPE = genNumberType();
35
31
  export const SYMBOL_NUMBER_TYPE = genNumberType();
36
32
 
37
33
  export const TEXT_NUMBER_TYPE = genNumberType();
38
- //# sourceMappingURL=constant.js.map
34
+
35
+ export const GraphicService = Symbol.for("GraphicService");
36
+
37
+ export const GraphicCreator = Symbol.for("GraphicCreator");
38
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/graphic/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,EAAE,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,EAAE,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,EAAE,CAAC;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC","file":"constants.js","sourcesContent":["import { genNumberType } from './tools';\n\nexport const ARC_NUMBER_TYPE = genNumberType();\nexport const ARC3D_NUMBER_TYPE = genNumberType();\nexport const AREA_NUMBER_TYPE = genNumberType();\nexport const CIRCLE_NUMBER_TYPE = genNumberType();\nexport const GLYPH_NUMBER_TYPE = genNumberType();\nexport const GROUP_NUMBER_TYPE = genNumberType();\nexport const IMAGE_NUMBER_TYPE = genNumberType();\nexport const LINE_NUMBER_TYPE = genNumberType();\nexport const PATH_NUMBER_TYPE = genNumberType();\nexport const POLYGON_NUMBER_TYPE = genNumberType();\nexport const PYRAMID3D_NUMBER_TYPE = genNumberType();\nexport const RECT_NUMBER_TYPE = genNumberType();\nexport const RECT3D_NUMBER_TYPE = genNumberType();\nexport const RICHTEXT_NUMBER_TYPE = genNumberType();\nexport const SYMBOL_NUMBER_TYPE = genNumberType();\nexport const TEXT_NUMBER_TYPE = genNumberType();\n\nexport const GraphicService = Symbol.for('GraphicService');\nexport const GraphicCreator = Symbol.for('GraphicCreator');\n"]}
@@ -1,7 +1,6 @@
1
1
  import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';
2
2
  import { Graphic } from './graphic';
3
3
  import { GraphicType, IGraphic, IGlyph, IGlyphGraphicAttribute, IGraphicAttribute, ISetAttributeContext } from '../interface';
4
- export declare const GLYPH_NUMBER_TYPE: number;
5
4
  export declare class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {
6
5
  type: GraphicType;
7
6
  _onInit: (g: IGlyph) => void;
@@ -1,10 +1,10 @@
1
- import { Graphic, genNumberType } from "./graphic";
1
+ import { Graphic } from "./graphic";
2
2
 
3
3
  import { getTheme } from "./theme";
4
4
 
5
- import { graphicService } from "../modules";
5
+ import { application } from "../application";
6
6
 
7
- export const GLYPH_NUMBER_TYPE = genNumberType();
7
+ import { GLYPH_NUMBER_TYPE } from "./constants";
8
8
 
9
9
  export class Glyph extends Graphic {
10
10
  constructor(params) {
@@ -75,7 +75,7 @@ export class Glyph extends Graphic {
75
75
  }
76
76
  doUpdateAABBBounds() {
77
77
  this._AABBBounds.setValue(1 / 0, 1 / 0, -1 / 0, -1 / 0);
78
- const bounds = graphicService.updateGlyphAABBBounds(this.attribute, getTheme(this).glyph, this._AABBBounds, this);
78
+ const bounds = application.graphicService.updateGlyphAABBBounds(this.attribute, getTheme(this).glyph, this._AABBBounds, this);
79
79
  return this.clearUpdateBoundTag(), bounds;
80
80
  }
81
81
  tryUpdateOBBBounds() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AASnD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEjD,MAAM,OAAO,KAAM,SAAQ,OAA+B;IAoBxD,YAAY,MAAuC;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QApBhB,SAAI,GAAgB,OAAO,CAAC;QAqB1B,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,aAAa,CAAC,UAAsB;QAClC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACrB,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;YACnB,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAES,gBAAgB;QACxB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC1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C;IAED,WAAW,CAAC,YAAsB;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACzC,OAAO;SACR;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAChC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;YACrF,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC/E,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;QAC/C,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","file":"glyph.js","sourcesContent":["import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic, genNumberType } from './graphic';\nimport {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { graphicService } from '../modules';\n\nexport const GLYPH_NUMBER_TYPE = genNumberType();\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,OAAO,KAAM,SAAQ,OAA+B;IAoBxD,YAAY,MAAuC;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QApBhB,SAAI,GAAgB,OAAO,CAAC;QAqB1B,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,aAAa,CAAC,UAAsB;QAClC,IAAI,CAAC,gBAA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AC,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","file":"glyph.js","sourcesContent":["import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic } from './graphic';\nimport {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { application } from '../application';\nimport { GLYPH_NUMBER_TYPE } from './constants';\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = application.graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  import { ContainerModule } from "inversify";
2
2
 
3
- import { bindContributionProvider } from "../../common";
3
+ import { bindContributionProvider } from "../../common/contribution-provider";
4
4
 
5
5
  import { ArcBoundsContribution, DefaultArcOuterBorderBoundsContribution } from "./arc-contribution";
6
6
 
7
7
  import { CircleBoundsContribution, DefaultCircleOuterBorderBoundsContribution } from "./circle-contribution";
8
8
 
9
- import { DefaultGraphicService, GraphicService } from "./graphic-service";
9
+ import { DefaultGraphicService } from "./graphic-service";
10
10
 
11
11
  import { DefaultPathOuterBorderBoundsContribution, PathBoundsContribution } from "./path-contribution";
12
12
 
@@ -14,6 +14,10 @@ import { RectBoundsContribution, DefaultRectOuterBorderBoundsContribution } from
14
14
 
15
15
  import { DefaultSymbolOuterBorderBoundsContribution, SymbolBoundsContribution } from "./symbol-contribution";
16
16
 
17
+ import { GraphicCreator, GraphicService } from "../constants";
18
+
19
+ import { graphicCreator } from "../graphic-creator";
20
+
17
21
  export default new ContainerModule((bind => {
18
22
  bind(DefaultGraphicService).toSelf().inSingletonScope(), bind(GraphicService).toService(DefaultGraphicService),
19
23
  bind(DefaultRectOuterBorderBoundsContribution).toSelf().inSingletonScope(), bind(RectBoundsContribution).toService(DefaultRectOuterBorderBoundsContribution),
@@ -25,6 +29,6 @@ export default new ContainerModule((bind => {
25
29
  bind(ArcBoundsContribution).toService(DefaultArcOuterBorderBoundsContribution),
26
30
  bindContributionProvider(bind, ArcBoundsContribution), bind(DefaultPathOuterBorderBoundsContribution).toSelf().inSingletonScope(),
27
31
  bind(PathBoundsContribution).toService(DefaultPathOuterBorderBoundsContribution),
28
- bindContributionProvider(bind, PathBoundsContribution);
32
+ bindContributionProvider(bind, PathBoundsContribution), bind(GraphicCreator).toConstantValue(graphicCreator);
29
33
  }));
30
34
  //# 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,WAAW,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,uCAAuC,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CA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/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;AAMzD,CAAC,CAAC,CAAC","file":"graphic-module.js","sourcesContent":["import { ContainerModule } from 'inversify';\nimport { bindContributionProvider } from '../../common';\nimport { ArcBoundsContribution, DefaultArcOuterBorderBoundsContribution } from './arc-contribution';\nimport { CircleBoundsContribution, DefaultCircleOuterBorderBoundsContribution } from './circle-contribution';\n// import { DefaultTheme } from './default-theme';\nimport { DefaultGraphicService, GraphicService } from './graphic-service';\nimport { DefaultPathOuterBorderBoundsContribution, PathBoundsContribution } from './path-contribution';\nimport { RectBoundsContribution, DefaultRectOuterBorderBoundsContribution } from './rect-contribution';\nimport { DefaultSymbolOuterBorderBoundsContribution, SymbolBoundsContribution } from './symbol-contribution';\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 // 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,WAAW,CAAC;AAC5C,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,IAA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../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,13 +1,12 @@
1
1
  import { AABBBounds, IAABBBounds, IBounds, IMatrix } from '@visactor/vutils';
2
2
  import { SyncHook } from '../../tapable';
3
- import { 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, IImage, ITransform } from '../../interface';
4
- import { graphicCreator } from '../graphic-creator';
3
+ import { 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 } from '../../interface';
5
4
  import { IRectBoundsContribution } from './rect-contribution';
6
- import { ContributionProvider } from '../../common';
7
5
  import { ISymbolBoundsContribution } from './symbol-contribution';
8
6
  import { ICircleBoundsContribution } from './circle-contribution';
9
7
  import { IArcBoundsContribution } from './arc-contribution';
10
8
  import { IPathBoundsContribution } from './path-contribution';
9
+ import { ContributionProvider } from '../../common/contribution-provider';
11
10
  export declare function rotateX(out: mat4, a: mat4, rad: number): mat4;
12
11
  export declare function rotateY(out: mat4, a: mat4, rad: number): mat4;
13
12
  export declare function translate(out: mat4, a: mat4, v: vec3): mat4;
@@ -17,46 +16,8 @@ export declare function multiplyMat4Mat4(out: mat4, a: mat4, b: mat4): mat4;
17
16
  export declare function getExtraModelMatrix(dx: number, dy: number, graphic: IGraphic): mat4 | null;
18
17
  export declare function getModelMatrix(out: mat4, graphic: IGraphic, theme: ITransform): void;
19
18
  export declare function shouldUseMat4(graphic: IGraphic): number;
20
- export interface IGraphicService {
21
- onAttributeUpdate: (graphic: IGraphic) => void;
22
- onSetStage: (graphic: IGraphic, stage: IStage) => void;
23
- onRemove: (graphic: IGraphic) => void;
24
- onAddIncremental: (graphic: IGraphic, group: IGroup, stage: IStage) => void;
25
- onClearIncremental: (group: IGroup, stage: IStage) => void;
26
- hooks: {
27
- onAttributeUpdate: SyncHook<[IGraphic]>;
28
- onSetStage: SyncHook<[IGraphic, IStage]>;
29
- onRemove: SyncHook<[IGraphic]>;
30
- onAddIncremental: SyncHook<[IGraphic, IGroup, IStage]>;
31
- onClearIncremental: SyncHook<[IGroup, IStage]>;
32
- beforeUpdateAABBBounds: SyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;
33
- afterUpdateAABBBounds: SyncHook<[IGraphic, IStage, IAABBBounds, {
34
- globalAABBBounds: IAABBBounds;
35
- }, boolean]>;
36
- };
37
- beforeUpdateAABBBounds: (graphic: IGraphic, stage: IStage, willUpdate: boolean, bounds: IAABBBounds) => void;
38
- afterUpdateAABBBounds: (graphic: IGraphic, stage: IStage, bounds: IAABBBounds, params: {
39
- globalAABBBounds: IAABBBounds;
40
- }, selfChange: boolean) => void;
41
- creator: typeof graphicCreator;
42
- updateRectAABBBounds: (attribute: IRectGraphicAttribute, rectTheme: Required<IRectGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
43
- updateGroupAABBBounds: (attribute: IGroupGraphicAttribute, groupTheme: Required<IGroupGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGroup) => IAABBBounds;
44
- updateGlyphAABBBounds: (attribute: IGlyphGraphicAttribute, groupTheme: Required<IGlyphGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGlyph) => IAABBBounds;
45
- updateSymbolAABBBounds: (attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, full?: boolean, graphic?: ISymbol) => IAABBBounds;
46
- updateCircleAABBBounds: (attribute: ICircleGraphicAttribute, circleTheme: Required<ICircleGraphicAttribute>, aabbBounds: IAABBBounds, full?: boolean, graphic?: ICircle) => IAABBBounds;
47
- updateArcAABBBounds: (attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, full?: boolean, graphic?: IArc) => IAABBBounds;
48
- updateArc3dAABBBounds: (attribute: IArc3dGraphicAttribute, arcTheme: Required<IArc3dGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IArc3d) => IAABBBounds;
49
- updateAreaAABBBounds: (attribute: IAreaGraphicAttribute, areaTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IArea) => IAABBBounds;
50
- updateLineAABBBounds: (attribute: ILineGraphicAttribute, lineTheme: Required<ILineGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ILine) => IAABBBounds;
51
- updatePathAABBBounds: (attribute: IPathGraphicAttribute, pathTheme: Required<IPathGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IPath) => IAABBBounds;
52
- updatePolygonAABBBounds: (attribute: IPolygonGraphicAttribute, polygonTheme: Required<IPolygonGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IPolygon) => IAABBBounds;
53
- updatePyramid3dAABBBounds: (attribute: IPyramid3dGraphicAttribute, polygonTheme: Required<IPyramid3dGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IPyramid3d) => IAABBBounds;
54
- updateTextAABBBounds: (attribute: ITextGraphicAttribute, textTheme: Required<ITextGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IText) => IAABBBounds;
55
- updateRichTextAABBBounds: (attribute: IRichTextGraphicAttribute, textTheme: Required<IRichTextGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IRichText) => IAABBBounds;
56
- updateImageAABBBounds: (attribute: IImageGraphicAttribute, textTheme: Required<IImageGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IImage) => IAABBBounds;
57
- }
58
- export declare const GraphicService: unique symbol;
59
19
  export declare class DefaultGraphicService implements IGraphicService {
20
+ readonly creator: IGraphicCreator;
60
21
  protected readonly rectBoundsContribitions: ContributionProvider<IRectBoundsContribution>;
61
22
  protected readonly symbolBoundsContribitions: ContributionProvider<ISymbolBoundsContribution>;
62
23
  protected readonly circleBoundsContribitions: ContributionProvider<ICircleBoundsContribution>;
@@ -73,23 +34,6 @@ export declare class DefaultGraphicService implements IGraphicService {
73
34
  globalAABBBounds: IAABBBounds;
74
35
  }, boolean]>;
75
36
  };
76
- creator: {
77
- arc: typeof import("../graphic-creator").createArc;
78
- area: typeof import("../graphic-creator").createArea;
79
- circle: typeof import("../graphic-creator").createCircle;
80
- group: typeof import("../graphic-creator").createGroup;
81
- image: typeof import("../graphic-creator").createImage;
82
- line: typeof import("../graphic-creator").createLine;
83
- path: typeof import("../graphic-creator").createPath;
84
- rect: typeof import("../graphic-creator").createRect;
85
- rect3d: typeof import("../graphic-creator").createRect3d;
86
- symbol: typeof import("../graphic-creator").createSymbol;
87
- text: typeof import("../graphic-creator").createText;
88
- richtext: typeof import("../graphic-creator").createRichText;
89
- polygon: typeof import("../graphic-creator").createPolygon;
90
- shadowRoot: typeof import("../graphic-creator").createShadowRoot;
91
- wrapText: typeof import("../graphic-creator").createWrapText;
92
- };
93
37
  protected _rectBoundsContribitions: IRectBoundsContribution[];
94
38
  protected _symbolBoundsContribitions: ISymbolBoundsContribution[];
95
39
  protected _circleBoundsContribitions: ICircleBoundsContribution[];
@@ -97,7 +41,7 @@ export declare class DefaultGraphicService implements IGraphicService {
97
41
  protected _pathBoundsContribitions: IPathBoundsContribution[];
98
42
  protected tempAABBBounds1: AABBBounds;
99
43
  protected tempAABBBounds2: AABBBounds;
100
- constructor(rectBoundsContribitions: ContributionProvider<IRectBoundsContribution>, symbolBoundsContribitions: ContributionProvider<ISymbolBoundsContribution>, circleBoundsContribitions: ContributionProvider<ICircleBoundsContribution>, arcBoundsContribitions: ContributionProvider<IArcBoundsContribution>, pathBoundsContribitions: ContributionProvider<IPathBoundsContribution>);
44
+ constructor(creator: IGraphicCreator, rectBoundsContribitions: ContributionProvider<IRectBoundsContribution>, symbolBoundsContribitions: ContributionProvider<ISymbolBoundsContribution>, circleBoundsContribitions: ContributionProvider<ICircleBoundsContribution>, arcBoundsContribitions: ContributionProvider<IArcBoundsContribution>, pathBoundsContribitions: ContributionProvider<IPathBoundsContribution>);
101
45
  onAttributeUpdate(graphic: IGraphic): void;
102
46
  onSetStage(graphic: IGraphic, stage: IStage): void;
103
47
  onRemove(graphic: IGraphic<Partial<IGraphicAttribute>>): void;
@@ -16,11 +16,9 @@ import { AABBBounds, epsilon, isArray, pi2, transformBoundsWithMatrix } from "@v
16
16
 
17
17
  import { SyncHook } from "../../tapable";
18
18
 
19
- import { graphicCreator } from "../graphic-creator";
20
-
21
19
  import { RectBoundsContribution } from "./rect-contribution";
22
20
 
23
- import { BoundsContext, circleBounds, ContributionProvider, renderCommandList, textDrawOffsetX } from "../../common";
21
+ import { textDrawOffsetX } from "../../common/text";
24
22
 
25
23
  import { SymbolBoundsContribution } from "./symbol-contribution";
26
24
 
@@ -32,7 +30,17 @@ import { ArcBoundsContribution } from "./arc-contribution";
32
30
 
33
31
  import { PathBoundsContribution } from "./path-contribution";
34
32
 
35
- import { mat4Allocate } from "../../modules";
33
+ import { mat4Allocate } from "../../allocator/matrix-allocate";
34
+
35
+ import { ContributionProvider } from "../../common/contribution-provider";
36
+
37
+ import { BoundsContext } from "../../common/bounds-context";
38
+
39
+ import { renderCommandList } from "../../common/render-command-list";
40
+
41
+ import { circleBounds } from "../../common/utils";
42
+
43
+ import { GraphicCreator } from "../constants";
36
44
 
37
45
  function identity(out) {
38
46
  return out[0] = 1, out[1] = 0, out[2] = 0, out[3] = 0, out[4] = 0, out[5] = 1, out[6] = 0,
@@ -187,13 +195,11 @@ export function shouldUseMat4(graphic) {
187
195
  return alpha || beta;
188
196
  }
189
197
 
190
- export const GraphicService = Symbol.for("GraphicService");
191
-
192
198
  let DefaultGraphicService = class {
193
- constructor(rectBoundsContribitions, symbolBoundsContribitions, circleBoundsContribitions, arcBoundsContribitions, pathBoundsContribitions) {
194
- this.rectBoundsContribitions = rectBoundsContribitions, this.symbolBoundsContribitions = symbolBoundsContribitions,
195
- this.circleBoundsContribitions = circleBoundsContribitions, this.arcBoundsContribitions = arcBoundsContribitions,
196
- this.pathBoundsContribitions = pathBoundsContribitions, this.creator = graphicCreator,
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,
197
203
  this.hooks = {
198
204
  onAttributeUpdate: new SyncHook([ "graphic" ]),
199
205
  onSetStage: new SyncHook([ "graphic", "stage" ]),
@@ -241,19 +247,18 @@ let DefaultGraphicService = class {
241
247
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
242
248
  this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
243
249
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
244
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic),
245
- aabbBounds;
250
+ })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic), aabbBounds;
246
251
  }
247
252
  updateGroupAABBBounds(attribute, groupTheme, aabbBounds, graphic) {
248
253
  const {width: width, height: height, path: path, clip: clip = groupTheme.clip} = attribute;
249
254
  path && path.length ? path.forEach((g => {
250
255
  aabbBounds.union(g.AABBBounds);
251
- })) : null != width && null != height && aabbBounds.set(0, 0, width, height);
256
+ })) : null != width && null != height && aabbBounds.set(0, 0, width, height), clip || graphic.forEachChildren((node => {
257
+ aabbBounds.union(node.AABBBounds);
258
+ }));
252
259
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
253
260
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
254
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), clip || (graphic.forEachChildren((node => {
255
- aabbBounds.union(node.AABBBounds);
256
- })), this.combindShadowAABBBounds(aabbBounds, graphic)), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
261
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
257
262
  aabbBounds;
258
263
  }
259
264
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
@@ -300,8 +305,8 @@ let DefaultGraphicService = class {
300
305
  aabbBounds.translate(deltaX, deltaY);
301
306
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
302
307
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
303
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
304
- this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic), aabbBounds;
308
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic),
309
+ aabbBounds;
305
310
  }
306
311
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
307
312
  if (!graphic) return aabbBounds;
@@ -309,8 +314,8 @@ let DefaultGraphicService = class {
309
314
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
310
315
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
311
316
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
312
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
313
- transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
317
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix),
318
+ aabbBounds;
314
319
  }
315
320
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
316
321
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
@@ -319,8 +324,7 @@ let DefaultGraphicService = class {
319
324
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
320
325
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
321
326
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
322
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic),
323
- aabbBounds;
327
+ })), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic), aabbBounds;
324
328
  }
325
329
  updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic) {
326
330
  if (!graphic) return aabbBounds;
@@ -337,8 +341,8 @@ let DefaultGraphicService = class {
337
341
  }));
338
342
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
339
343
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
340
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
341
- this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
344
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
345
+ aabbBounds;
342
346
  }
343
347
  updateArc3dAABBBounds(attribute, arcTheme, aabbBounds, graphic) {
344
348
  if (!graphic) return aabbBounds;
@@ -348,15 +352,15 @@ let DefaultGraphicService = class {
348
352
  aabbBounds.setValue(-r, -r, r, r);
349
353
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
350
354
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
351
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
352
- this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
355
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
356
+ aabbBounds;
353
357
  }
354
358
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
355
359
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
356
360
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
357
361
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
358
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
359
- this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
362
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
363
+ aabbBounds;
360
364
  }
361
365
  updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic) {
362
366
  const {points: points = polygonTheme.points} = attribute;
@@ -368,8 +372,8 @@ let DefaultGraphicService = class {
368
372
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
369
373
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
370
374
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
371
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
372
- this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic), aabbBounds;
375
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic),
376
+ aabbBounds;
373
377
  }
374
378
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
375
379
  const {points: points = lineTheme.points} = attribute, b = aabbBounds;
@@ -389,8 +393,8 @@ let DefaultGraphicService = class {
389
393
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
390
394
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
391
395
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
392
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
393
- this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic), aabbBounds;
396
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic),
397
+ aabbBounds;
394
398
  }
395
399
  updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic) {
396
400
  const {points: points = areaTheme.points} = attribute, b = aabbBounds;
@@ -415,8 +419,7 @@ let DefaultGraphicService = class {
415
419
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
416
420
  this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
417
421
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
418
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic),
419
- aabbBounds;
422
+ })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic), aabbBounds;
420
423
  }
421
424
  updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) {
422
425
  const {radius: radius = circleTheme.radius} = attribute;
@@ -434,8 +437,7 @@ let DefaultGraphicService = class {
434
437
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
435
438
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
436
439
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
437
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
438
- aabbBounds;
440
+ })), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
439
441
  }
440
442
  updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) {
441
443
  const {outerRadius: outerRadius = arcTheme.outerRadius} = attribute;
@@ -475,8 +477,8 @@ let DefaultGraphicService = class {
475
477
  }
476
478
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
477
479
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
478
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
479
- this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic), aabbBounds;
480
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic),
481
+ aabbBounds;
480
482
  }
481
483
  combindShadowAABBBounds(bounds, graphic) {
482
484
  if (graphic && graphic.shadowRoot) {
@@ -485,7 +487,7 @@ let DefaultGraphicService = class {
485
487
  }
486
488
  }
487
489
  transformAABBBounds(attribute, aabbBounds, theme, graphic) {
488
- const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = (null == theme.stroke ? !!attribute.strokeColor : theme.stroke), shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
490
+ const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = theme.stroke, shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
489
491
  if (stroke) {
490
492
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
491
493
  boundStroke(tb1, scaledHalfLineWidth, "miter" === lineJoin, strokeBoundsBuffer),
@@ -500,7 +502,7 @@ let DefaultGraphicService = class {
500
502
  }
501
503
  };
502
504
 
503
- DefaultGraphicService = __decorate([ injectable(), __param(0, inject(ContributionProvider)), __param(0, named(RectBoundsContribution)), __param(1, inject(ContributionProvider)), __param(1, named(SymbolBoundsContribution)), __param(2, inject(ContributionProvider)), __param(2, named(CircleBoundsContribution)), __param(3, inject(ContributionProvider)), __param(3, named(ArcBoundsContribution)), __param(4, inject(ContributionProvider)), __param(4, named(PathBoundsContribution)), __metadata("design:paramtypes", [ Object, Object, Object, Object, Object ]) ], DefaultGraphicService);
505
+ 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);
504
506
 
505
507
  export { DefaultGraphicService };
506
508
  //# sourceMappingURL=graphic-service.js.map