@visactor/vrender 0.9.0-fillstroke.0 → 0.9.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 (900) hide show
  1. package/cjs/allocator/allocator-modules.js.map +1 -1
  2. package/cjs/allocator/canvas-allocate.js.map +1 -1
  3. package/cjs/allocator/constants.d.ts +11 -0
  4. package/cjs/allocator/constants.js +12 -0
  5. package/cjs/allocator/constants.js.map +1 -0
  6. package/cjs/allocator/graphic-allocate.js.map +1 -1
  7. package/cjs/allocator/index.d.ts +3 -0
  8. package/cjs/allocator/index.js +21 -0
  9. package/cjs/allocator/index.js.map +1 -0
  10. package/cjs/allocator/interface.js.map +1 -1
  11. package/cjs/allocator/matrix-allocate.js.map +1 -1
  12. package/cjs/allocator/point-allocate.js.map +1 -1
  13. package/cjs/animate/Ticker/default-ticker.js.map +1 -1
  14. package/cjs/animate/Ticker/index.js.map +1 -1
  15. package/cjs/animate/Ticker/interface.js.map +1 -1
  16. package/cjs/animate/animate.js.map +1 -1
  17. package/cjs/animate/config.js.map +1 -1
  18. package/cjs/animate/custom-animate.d.ts +2 -2
  19. package/cjs/animate/custom-animate.js +11 -11
  20. package/cjs/animate/custom-animate.js.map +1 -1
  21. package/cjs/animate/easing.js.map +1 -1
  22. package/cjs/animate/index.js.map +1 -1
  23. package/cjs/animate/morphing.js +5 -4
  24. package/cjs/animate/morphing.js.map +1 -1
  25. package/cjs/animate/timeline.js.map +1 -1
  26. package/cjs/canvas/constants.d.ts +2 -0
  27. package/cjs/canvas/constants.js +7 -0
  28. package/cjs/canvas/constants.js.map +1 -0
  29. package/cjs/canvas/contributions/browser/canvas.js.map +1 -1
  30. package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
  31. package/cjs/canvas/contributions/browser/context.d.ts +4 -2
  32. package/cjs/canvas/contributions/browser/context.js +4 -4
  33. package/cjs/canvas/contributions/browser/context.js.map +1 -1
  34. package/cjs/canvas/contributions/browser/index.js.map +1 -1
  35. package/cjs/canvas/contributions/browser/modules.js.map +1 -1
  36. package/cjs/canvas/contributions/feishu/canvas.js.map +1 -1
  37. package/cjs/canvas/contributions/feishu/context.js.map +1 -1
  38. package/cjs/canvas/contributions/feishu/index.js.map +1 -1
  39. package/cjs/canvas/contributions/feishu/modules.js.map +1 -1
  40. package/cjs/canvas/contributions/lynx/canvas.js.map +1 -1
  41. package/cjs/canvas/contributions/lynx/context.js.map +1 -1
  42. package/cjs/canvas/contributions/lynx/index.js.map +1 -1
  43. package/cjs/canvas/contributions/lynx/modules.js.map +1 -1
  44. package/cjs/canvas/contributions/modules.js.map +1 -1
  45. package/cjs/canvas/contributions/taro/canvas.js.map +1 -1
  46. package/cjs/canvas/contributions/taro/context.js +4 -4
  47. package/cjs/canvas/contributions/taro/context.js.map +1 -1
  48. package/cjs/canvas/contributions/taro/index.js.map +1 -1
  49. package/cjs/canvas/contributions/taro/modules.js.map +1 -1
  50. package/cjs/canvas/contributions/tt/canvas.js.map +1 -1
  51. package/cjs/canvas/contributions/tt/context.js.map +1 -1
  52. package/cjs/canvas/contributions/tt/index.js.map +1 -1
  53. package/cjs/canvas/contributions/tt/modules.js.map +1 -1
  54. package/cjs/canvas/creator.d.ts +3 -0
  55. package/cjs/canvas/creator.js +18 -0
  56. package/cjs/canvas/creator.js.map +1 -0
  57. package/cjs/canvas/empty-context.js.map +1 -1
  58. package/cjs/canvas/index.js.map +1 -1
  59. package/cjs/canvas/interface.js.map +1 -1
  60. package/cjs/canvas/util.js.map +1 -1
  61. package/cjs/color-string/colorName.js +1 -1
  62. package/cjs/color-string/colorName.js.map +1 -1
  63. package/cjs/color-string/index.js +1 -1
  64. package/cjs/color-string/index.js.map +1 -1
  65. package/cjs/color-string/interpolate.js +1 -1
  66. package/cjs/color-string/interpolate.js.map +1 -1
  67. package/cjs/common/bezier.js.map +1 -1
  68. package/cjs/common/bounds-context.js.map +1 -1
  69. package/cjs/common/canvas-utils.d.ts +1 -1
  70. package/cjs/common/canvas-utils.js +7 -11
  71. package/cjs/common/canvas-utils.js.map +1 -1
  72. package/cjs/common/contribution-provider.js.map +1 -1
  73. package/cjs/common/curve/basis.js.map +1 -1
  74. package/cjs/common/curve/common.js.map +1 -1
  75. package/cjs/common/curve/index.js.map +1 -1
  76. package/cjs/common/curve/interface.js.map +1 -1
  77. package/cjs/common/curve/linear-closed.js.map +1 -1
  78. package/cjs/common/curve/linear.js.map +1 -1
  79. package/cjs/common/curve/monotone.js.map +1 -1
  80. package/cjs/common/curve/step.js.map +1 -1
  81. package/cjs/common/enums.js.map +1 -1
  82. package/cjs/common/generator.js.map +1 -1
  83. package/cjs/common/index.js.map +1 -1
  84. package/cjs/common/interface.d.ts +1 -0
  85. package/cjs/common/interface.js +1 -0
  86. package/cjs/common/interface.js.map +1 -0
  87. package/cjs/common/matrix.js.map +1 -1
  88. package/cjs/common/morphing-utils.js +2 -1
  89. package/cjs/common/morphing-utils.js.map +1 -1
  90. package/cjs/common/path-svg.js.map +1 -1
  91. package/cjs/common/path.js.map +1 -1
  92. package/cjs/common/polygon.js +0 -1
  93. package/cjs/common/polygon.js.map +1 -1
  94. package/cjs/common/render-area.js.map +1 -1
  95. package/cjs/common/render-command-list.js.map +1 -1
  96. package/cjs/common/render-curve.js.map +1 -1
  97. package/cjs/common/seg-context.js.map +1 -1
  98. package/cjs/common/shape/arc.js.map +1 -1
  99. package/cjs/common/shape/rect.d.ts +1 -1
  100. package/cjs/common/shape/rect.js.map +1 -1
  101. package/cjs/common/sort.js.map +1 -1
  102. package/cjs/common/split-path.js.map +1 -1
  103. package/cjs/common/store.js.map +1 -1
  104. package/cjs/common/text.js.map +1 -1
  105. package/cjs/common/utils.d.ts +1 -2
  106. package/cjs/common/utils.js +6 -15
  107. package/cjs/common/utils.js.map +1 -1
  108. package/cjs/container.d.ts +2 -0
  109. package/cjs/container.js +9 -0
  110. package/cjs/container.js.map +1 -0
  111. package/cjs/core/application.js +1 -1
  112. package/cjs/core/application.js.map +1 -1
  113. package/cjs/core/camera.js +1 -1
  114. package/cjs/core/camera.js.map +1 -1
  115. package/cjs/core/constants.d.ts +7 -0
  116. package/cjs/core/constants.js +25 -0
  117. package/cjs/core/constants.js.map +1 -0
  118. package/cjs/core/contributions/constants.d.ts +1 -0
  119. package/cjs/core/contributions/constants.js +6 -0
  120. package/cjs/core/contributions/constants.js.map +1 -0
  121. package/cjs/core/contributions/env/base-contribution.js.map +1 -1
  122. package/cjs/core/contributions/env/browser-contribution.js.map +1 -1
  123. package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
  124. package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
  125. package/cjs/core/contributions/env/modules.js.map +1 -1
  126. package/cjs/core/contributions/env/taro-contribution.js.map +1 -1
  127. package/cjs/core/contributions/index.js.map +1 -1
  128. package/cjs/core/contributions/interface.js.map +1 -1
  129. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  130. package/cjs/core/contributions/layerHandler/modules.js.map +1 -1
  131. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  132. package/cjs/core/contributions/modules.js.map +1 -1
  133. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  134. package/cjs/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  135. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  136. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  137. package/cjs/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  138. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  139. package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
  140. package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
  141. package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
  142. package/cjs/core/contributions/window/modules.js.map +1 -1
  143. package/cjs/core/contributions/window/native-contribution.js.map +1 -1
  144. package/cjs/core/contributions/window/node-contribution.js.map +1 -1
  145. package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
  146. package/cjs/core/core-modules.js +1 -1
  147. package/cjs/core/core-modules.js.map +1 -1
  148. package/cjs/core/global.d.ts +2 -2
  149. package/cjs/core/global.js +2 -1
  150. package/cjs/core/global.js.map +1 -1
  151. package/cjs/core/graphic-utils.js +1 -1
  152. package/cjs/core/graphic-utils.js.map +1 -1
  153. package/cjs/core/index.js +1 -1
  154. package/cjs/core/index.js.map +1 -1
  155. package/cjs/core/layer-service.js +1 -1
  156. package/cjs/core/layer-service.js.map +1 -1
  157. package/cjs/core/layer.js +1 -1
  158. package/cjs/core/layer.js.map +1 -1
  159. package/cjs/core/light.js +1 -1
  160. package/cjs/core/light.js.map +1 -1
  161. package/cjs/core/stage.js +1 -1
  162. package/cjs/core/stage.js.map +1 -1
  163. package/cjs/core/window.js +1 -1
  164. package/cjs/core/window.js.map +1 -1
  165. package/cjs/create.js.map +1 -1
  166. package/cjs/event/constant.js +1 -1
  167. package/cjs/event/constant.js.map +1 -1
  168. package/cjs/event/event-manager.js +1 -1
  169. package/cjs/event/event-manager.js.map +1 -1
  170. package/cjs/event/event-system.js +1 -1
  171. package/cjs/event/event-system.js.map +1 -1
  172. package/cjs/event/event-target.js +1 -1
  173. package/cjs/event/event-target.js.map +1 -1
  174. package/cjs/event/extension/drag.js.map +1 -1
  175. package/cjs/event/extension/gesture.js.map +1 -1
  176. package/cjs/event/extension/index.js.map +1 -1
  177. package/cjs/event/federated-event/base-event.js.map +1 -1
  178. package/cjs/event/federated-event/custom-event.js.map +1 -1
  179. package/cjs/event/federated-event/index.js.map +1 -1
  180. package/cjs/event/federated-event/mouse-event.js.map +1 -1
  181. package/cjs/event/federated-event/pointer-event.js.map +1 -1
  182. package/cjs/event/federated-event/wheel-event.js.map +1 -1
  183. package/cjs/event/index.js +1 -1
  184. package/cjs/event/index.js.map +1 -1
  185. package/cjs/event/interface.js +1 -1
  186. package/cjs/event/interface.js.map +1 -1
  187. package/cjs/event/type.js +1 -2
  188. package/cjs/event/type.js.map +1 -1
  189. package/cjs/event/util.js +1 -1
  190. package/cjs/event/util.js.map +1 -1
  191. package/cjs/export.js.map +1 -1
  192. package/cjs/graphic/arc.js +1 -1
  193. package/cjs/graphic/arc.js.map +1 -1
  194. package/cjs/graphic/arc3d.js +1 -1
  195. package/cjs/graphic/arc3d.js.map +1 -1
  196. package/cjs/graphic/area.js +1 -1
  197. package/cjs/graphic/area.js.map +1 -1
  198. package/cjs/graphic/bounds.js +1 -1
  199. package/cjs/graphic/bounds.js.map +1 -1
  200. package/cjs/graphic/builtin-symbol/arrow.js.map +1 -1
  201. package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  202. package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  203. package/cjs/graphic/builtin-symbol/circle.js.map +1 -1
  204. package/cjs/graphic/builtin-symbol/cross.js.map +1 -1
  205. package/cjs/graphic/builtin-symbol/diamond.js.map +1 -1
  206. package/cjs/graphic/builtin-symbol/index.js.map +1 -1
  207. package/cjs/graphic/builtin-symbol/interface.js.map +1 -1
  208. package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
  209. package/cjs/graphic/builtin-symbol/square.js.map +1 -1
  210. package/cjs/graphic/builtin-symbol/star.js.map +1 -1
  211. package/cjs/graphic/builtin-symbol/stroke.js.map +1 -1
  212. package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  213. package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -1
  214. package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -1
  215. package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -1
  216. package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -1
  217. package/cjs/graphic/builtin-symbol/triangle.js.map +1 -1
  218. package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
  219. package/cjs/graphic/builtin-symbol/wedge.js.map +1 -1
  220. package/cjs/graphic/builtin-symbol/wye.js.map +1 -1
  221. package/cjs/graphic/circle.js +1 -1
  222. package/cjs/graphic/circle.js.map +1 -1
  223. package/cjs/graphic/config.js +5 -3
  224. package/cjs/graphic/config.js.map +1 -1
  225. package/cjs/graphic/constant.d.ts +17 -0
  226. package/cjs/graphic/constant.js +22 -0
  227. package/cjs/graphic/constant.js.map +1 -0
  228. package/cjs/graphic/glyph.js.map +1 -1
  229. package/cjs/graphic/graphic-creator.js.map +1 -1
  230. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  231. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  232. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  233. package/cjs/graphic/graphic-service/common-contribution.js.map +1 -1
  234. package/cjs/graphic/graphic-service/default-theme.js.map +1 -1
  235. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  236. package/cjs/graphic/graphic-service/graphic-service.js +30 -25
  237. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  238. package/cjs/graphic/graphic-service/index.d.ts +1 -0
  239. package/cjs/graphic/graphic-service/index.js +21 -0
  240. package/cjs/graphic/graphic-service/index.js.map +1 -0
  241. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  242. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  243. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  244. package/cjs/graphic/graphic-service/theme-service.js.map +1 -1
  245. package/cjs/graphic/graphic.js +1 -1
  246. package/cjs/graphic/graphic.js.map +1 -1
  247. package/cjs/graphic/group.js.map +1 -1
  248. package/cjs/graphic/image.js.map +1 -1
  249. package/cjs/graphic/index.js.map +1 -1
  250. package/cjs/graphic/line.js.map +1 -1
  251. package/cjs/graphic/node-tree.js.map +1 -1
  252. package/cjs/graphic/path.js.map +1 -1
  253. package/cjs/graphic/polygon.js.map +1 -1
  254. package/cjs/graphic/pyramid3d.js.map +1 -1
  255. package/cjs/graphic/rect.js.map +1 -1
  256. package/cjs/graphic/rect3d.js.map +1 -1
  257. package/cjs/graphic/richtext/frame.js.map +1 -1
  258. package/cjs/graphic/richtext/icon.js.map +1 -1
  259. package/cjs/graphic/richtext/line.js.map +1 -1
  260. package/cjs/graphic/richtext/paragraph.js.map +1 -1
  261. package/cjs/graphic/richtext/utils.js +8 -6
  262. package/cjs/graphic/richtext/utils.js.map +1 -1
  263. package/cjs/graphic/richtext/wrapper.js.map +1 -1
  264. package/cjs/graphic/richtext.js.map +1 -1
  265. package/cjs/graphic/shadow-root.js.map +1 -1
  266. package/cjs/graphic/symbol.js.map +1 -1
  267. package/cjs/graphic/text.js.map +1 -1
  268. package/cjs/graphic/theme.js.map +1 -1
  269. package/cjs/graphic/tools.js.map +1 -1
  270. package/cjs/graphic/wrap-text.js.map +1 -1
  271. package/cjs/index.js +1 -1
  272. package/cjs/index.js.map +1 -1
  273. package/cjs/interface/animate.js.map +1 -1
  274. package/cjs/interface/camera.js.map +1 -1
  275. package/cjs/interface/canvas.js.map +1 -1
  276. package/cjs/interface/color.js.map +1 -1
  277. package/cjs/interface/common.js.map +1 -1
  278. package/cjs/interface/context.d.ts +3 -3
  279. package/cjs/interface/context.js.map +1 -1
  280. package/cjs/interface/contribution.js.map +1 -1
  281. package/cjs/interface/creator.js.map +1 -1
  282. package/cjs/interface/global.js.map +1 -1
  283. package/cjs/interface/graphic/arc.js.map +1 -1
  284. package/cjs/interface/graphic/arc3d.js.map +1 -1
  285. package/cjs/interface/graphic/area.d.ts +1 -1
  286. package/cjs/interface/graphic/area.js.map +1 -1
  287. package/cjs/interface/graphic/bounds.js.map +1 -1
  288. package/cjs/interface/graphic/circle.js.map +1 -1
  289. package/cjs/interface/graphic/creator.js.map +1 -1
  290. package/cjs/interface/graphic/dynamic-path.js.map +1 -1
  291. package/cjs/interface/graphic/ellipse.js.map +1 -1
  292. package/cjs/interface/graphic/face3d.js.map +1 -1
  293. package/cjs/interface/graphic/glyph.js.map +1 -1
  294. package/cjs/interface/graphic/group.js.map +1 -1
  295. package/cjs/interface/graphic/image.js.map +1 -1
  296. package/cjs/interface/graphic/index.js.map +1 -1
  297. package/cjs/interface/graphic/isogon.js.map +1 -1
  298. package/cjs/interface/graphic/line.d.ts +1 -1
  299. package/cjs/interface/graphic/line.js.map +1 -1
  300. package/cjs/interface/graphic/path.js.map +1 -1
  301. package/cjs/interface/graphic/polygon.js.map +1 -1
  302. package/cjs/interface/graphic/polyline.js.map +1 -1
  303. package/cjs/interface/graphic/pyramid3d.js.map +1 -1
  304. package/cjs/interface/graphic/rect.js.map +1 -1
  305. package/cjs/interface/graphic/rect3d.js.map +1 -1
  306. package/cjs/interface/graphic/richText.d.ts +4 -2
  307. package/cjs/interface/graphic/richText.js.map +1 -1
  308. package/cjs/interface/graphic/shadow-root.js.map +1 -1
  309. package/cjs/interface/graphic/svg.js.map +1 -1
  310. package/cjs/interface/graphic/symbol.js.map +1 -1
  311. package/cjs/interface/graphic/text.js.map +1 -1
  312. package/cjs/interface/graphic/theme.js.map +1 -1
  313. package/cjs/interface/graphic/util.js.map +1 -1
  314. package/cjs/interface/graphic-creator.d.ts +39 -0
  315. package/cjs/interface/graphic-creator.js +6 -0
  316. package/cjs/interface/graphic-creator.js.map +1 -0
  317. package/cjs/interface/graphic-utils.js.map +1 -1
  318. package/cjs/interface/graphic.d.ts +4 -4
  319. package/cjs/interface/graphic.js.map +1 -1
  320. package/cjs/interface/index.js.map +1 -1
  321. package/cjs/interface/layer.js.map +1 -1
  322. package/cjs/interface/light.js.map +1 -1
  323. package/cjs/interface/matrix.js.map +1 -1
  324. package/cjs/interface/node-tree.js.map +1 -1
  325. package/cjs/interface/path.js.map +1 -1
  326. package/cjs/interface/stage.js.map +1 -1
  327. package/cjs/interface/util.js.map +1 -1
  328. package/cjs/kits/env.js.map +1 -1
  329. package/cjs/kits/index.js.map +1 -1
  330. package/cjs/modules.js.map +1 -1
  331. package/cjs/picker/canvas-picker-service.js.map +1 -1
  332. package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  333. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  334. package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  335. package/cjs/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  336. package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  337. package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  338. package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  339. package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  340. package/cjs/picker/contributions/canvas-picker/module.js.map +1 -1
  341. package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  342. package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  343. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  344. package/cjs/picker/contributions/canvas-picker/rect-picker.js +1 -1
  345. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  346. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  347. package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  348. package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  349. package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  350. package/cjs/picker/contributions/constants.js.map +1 -1
  351. package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
  352. package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
  353. package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
  354. package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  355. package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
  356. package/cjs/picker/contributions/math-picker/module.js.map +1 -1
  357. package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
  358. package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  359. package/cjs/picker/contributions/math-picker/rect-picker.js +1 -1
  360. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  361. package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  362. package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
  363. package/cjs/picker/contributions/modules.js.map +1 -1
  364. package/cjs/picker/contributions/old/circle-picker.js.map +1 -1
  365. package/cjs/picker/contributions/old/rect-picker.js.map +1 -1
  366. package/cjs/picker/global-picker-service.js.map +1 -1
  367. package/cjs/picker/index.js.map +1 -1
  368. package/cjs/picker/math-picker-service.js.map +1 -1
  369. package/cjs/picker/pick-interceptor.js.map +1 -1
  370. package/cjs/picker/pick-modules.js.map +1 -1
  371. package/cjs/picker/picker-service.js.map +1 -1
  372. package/cjs/picker/type.js.map +1 -1
  373. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  374. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  375. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  376. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  377. package/cjs/plugins/interface.js.map +1 -1
  378. package/cjs/plugins/plugin-modules.js.map +1 -1
  379. package/cjs/plugins/plugin-service.js.map +1 -1
  380. package/cjs/render/contributions/interface.js.map +1 -1
  381. package/cjs/render/contributions/modules.js.map +1 -1
  382. package/cjs/render/contributions/render/arc-render.d.ts +1 -1
  383. package/cjs/render/contributions/render/arc-render.js +3 -3
  384. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  385. package/cjs/render/contributions/render/arc3d-render.js +6 -6
  386. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  387. package/cjs/render/contributions/render/area-render.js +4 -4
  388. package/cjs/render/contributions/render/area-render.js.map +1 -1
  389. package/cjs/render/contributions/render/base-render.js.map +1 -1
  390. package/cjs/render/contributions/render/circle-render.js +1 -1
  391. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  392. package/cjs/render/contributions/render/clear-screen.js.map +1 -1
  393. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  394. package/cjs/render/contributions/render/contributions/area-contribution-render.js +2 -6
  395. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  396. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  397. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  398. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  399. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  400. package/cjs/render/contributions/render/contributions/index.js.map +1 -1
  401. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  402. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  403. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  404. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  405. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  406. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  407. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  408. package/cjs/render/contributions/render/graphic-render.js.map +1 -1
  409. package/cjs/render/contributions/render/group-render.js +1 -1
  410. package/cjs/render/contributions/render/group-render.js.map +1 -1
  411. package/cjs/render/contributions/render/image-render.js.map +1 -1
  412. package/cjs/render/contributions/render/incremental-area-render.js +1 -1
  413. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  414. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  415. package/cjs/render/contributions/render/incremental-line-render.js +1 -1
  416. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  417. package/cjs/render/contributions/render/index.js.map +1 -1
  418. package/cjs/render/contributions/render/line-render.js +4 -4
  419. package/cjs/render/contributions/render/line-render.js.map +1 -1
  420. package/cjs/render/contributions/render/module.js.map +1 -1
  421. package/cjs/render/contributions/render/path-render.js +1 -1
  422. package/cjs/render/contributions/render/path-render.js.map +1 -1
  423. package/cjs/render/contributions/render/polygon-render.js +1 -1
  424. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  425. package/cjs/render/contributions/render/pyramid3d-render.js +3 -3
  426. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  427. package/cjs/render/contributions/render/rect-render.js +1 -1
  428. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  429. package/cjs/render/contributions/render/rect3d-render.js +3 -3
  430. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  431. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  432. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  433. package/cjs/render/contributions/render/symbol-render.js +1 -1
  434. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  435. package/cjs/render/contributions/render/symbol.js.map +1 -1
  436. package/cjs/render/contributions/render/text-render.js +5 -5
  437. package/cjs/render/contributions/render/text-render.js.map +1 -1
  438. package/cjs/render/contributions/render/utils.d.ts +3 -3
  439. package/cjs/render/contributions/render/utils.js +3 -3
  440. package/cjs/render/contributions/render/utils.js.map +1 -1
  441. package/cjs/render/index.js.map +1 -1
  442. package/cjs/render/render-modules.js.map +1 -1
  443. package/cjs/render/render-service.js.map +1 -1
  444. package/cjs/resource-loader/loader.d.ts +1 -1
  445. package/cjs/resource-loader/loader.js.map +1 -1
  446. package/cjs/tapable/Hook.js.map +1 -1
  447. package/cjs/tapable/SyncHook.js.map +1 -1
  448. package/cjs/tapable/index.js.map +1 -1
  449. package/dist/vrender.js.js +1 -1
  450. package/dist/vrender.js.min.js +1 -1
  451. package/es/allocator/allocator-modules.js.map +1 -1
  452. package/es/allocator/canvas-allocate.js.map +1 -1
  453. package/es/allocator/constants.d.ts +11 -0
  454. package/es/allocator/constants.js +22 -0
  455. package/es/allocator/constants.js.map +1 -0
  456. package/es/allocator/graphic-allocate.js.map +1 -1
  457. package/es/allocator/index.d.ts +3 -0
  458. package/es/allocator/index.js +5 -0
  459. package/es/allocator/index.js.map +1 -0
  460. package/es/allocator/interface.js.map +1 -1
  461. package/es/allocator/matrix-allocate.js.map +1 -1
  462. package/es/allocator/point-allocate.js.map +1 -1
  463. package/es/animate/Ticker/default-ticker.js.map +1 -1
  464. package/es/animate/Ticker/index.js.map +1 -1
  465. package/es/animate/Ticker/interface.js.map +1 -1
  466. package/es/animate/animate.js.map +1 -1
  467. package/es/animate/config.js.map +1 -1
  468. package/es/animate/custom-animate.d.ts +2 -2
  469. package/es/animate/custom-animate.js +11 -11
  470. package/es/animate/custom-animate.js.map +1 -1
  471. package/es/animate/easing.js.map +1 -1
  472. package/es/animate/index.js.map +1 -1
  473. package/es/animate/morphing.js +5 -4
  474. package/es/animate/morphing.js.map +1 -1
  475. package/es/animate/timeline.js.map +1 -1
  476. package/es/canvas/constants.d.ts +2 -0
  477. package/es/canvas/constants.js +4 -0
  478. package/es/canvas/constants.js.map +1 -0
  479. package/es/canvas/contributions/browser/canvas.js.map +1 -1
  480. package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
  481. package/es/canvas/contributions/browser/context.d.ts +4 -2
  482. package/es/canvas/contributions/browser/context.js +6 -5
  483. package/es/canvas/contributions/browser/context.js.map +1 -1
  484. package/es/canvas/contributions/browser/index.js.map +1 -1
  485. package/es/canvas/contributions/browser/modules.js.map +1 -1
  486. package/es/canvas/contributions/feishu/canvas.js.map +1 -1
  487. package/es/canvas/contributions/feishu/context.js.map +1 -1
  488. package/es/canvas/contributions/feishu/index.js.map +1 -1
  489. package/es/canvas/contributions/feishu/modules.js.map +1 -1
  490. package/es/canvas/contributions/lynx/canvas.js.map +1 -1
  491. package/es/canvas/contributions/lynx/context.js.map +1 -1
  492. package/es/canvas/contributions/lynx/index.js.map +1 -1
  493. package/es/canvas/contributions/lynx/modules.js.map +1 -1
  494. package/es/canvas/contributions/modules.js.map +1 -1
  495. package/es/canvas/contributions/taro/canvas.js.map +1 -1
  496. package/es/canvas/contributions/taro/context.js +6 -5
  497. package/es/canvas/contributions/taro/context.js.map +1 -1
  498. package/es/canvas/contributions/taro/index.js.map +1 -1
  499. package/es/canvas/contributions/taro/modules.js.map +1 -1
  500. package/es/canvas/contributions/tt/canvas.js.map +1 -1
  501. package/es/canvas/contributions/tt/context.js.map +1 -1
  502. package/es/canvas/contributions/tt/index.js.map +1 -1
  503. package/es/canvas/contributions/tt/modules.js.map +1 -1
  504. package/es/canvas/creator.d.ts +3 -0
  505. package/es/canvas/creator.js +14 -0
  506. package/es/canvas/creator.js.map +1 -0
  507. package/es/canvas/empty-context.js.map +1 -1
  508. package/es/canvas/index.js.map +1 -1
  509. package/es/canvas/interface.js.map +1 -1
  510. package/es/canvas/util.js.map +1 -1
  511. package/es/color-string/colorName.js +1 -1
  512. package/es/color-string/colorName.js.map +1 -1
  513. package/es/color-string/index.js +1 -1
  514. package/es/color-string/index.js.map +1 -1
  515. package/es/color-string/interpolate.js +1 -1
  516. package/es/color-string/interpolate.js.map +1 -1
  517. package/es/common/bezier.js.map +1 -1
  518. package/es/common/bounds-context.js.map +1 -1
  519. package/es/common/canvas-utils.d.ts +1 -1
  520. package/es/common/canvas-utils.js +3 -6
  521. package/es/common/canvas-utils.js.map +1 -1
  522. package/es/common/contribution-provider.js.map +1 -1
  523. package/es/common/curve/basis.js.map +1 -1
  524. package/es/common/curve/common.js.map +1 -1
  525. package/es/common/curve/index.js.map +1 -1
  526. package/es/common/curve/interface.js.map +1 -1
  527. package/es/common/curve/linear-closed.js.map +1 -1
  528. package/es/common/curve/linear.js.map +1 -1
  529. package/es/common/curve/monotone.js.map +1 -1
  530. package/es/common/curve/step.js.map +1 -1
  531. package/es/common/enums.js.map +1 -1
  532. package/es/common/generator.js.map +1 -1
  533. package/es/common/index.js.map +1 -1
  534. package/es/common/interface.d.ts +1 -0
  535. package/es/common/interface.js +1 -0
  536. package/es/common/interface.js.map +1 -0
  537. package/es/common/matrix.js.map +1 -1
  538. package/es/common/morphing-utils.js +2 -1
  539. package/es/common/morphing-utils.js.map +1 -1
  540. package/es/common/path-svg.js.map +1 -1
  541. package/es/common/path.js.map +1 -1
  542. package/es/common/polygon.js +1 -2
  543. package/es/common/polygon.js.map +1 -1
  544. package/es/common/render-area.js.map +1 -1
  545. package/es/common/render-command-list.js.map +1 -1
  546. package/es/common/render-curve.js.map +1 -1
  547. package/es/common/seg-context.js.map +1 -1
  548. package/es/common/shape/arc.js.map +1 -1
  549. package/es/common/shape/rect.d.ts +1 -1
  550. package/es/common/shape/rect.js.map +1 -1
  551. package/es/common/sort.js.map +1 -1
  552. package/es/common/split-path.js.map +1 -1
  553. package/es/common/store.js.map +1 -1
  554. package/es/common/text.js.map +1 -1
  555. package/es/common/utils.d.ts +1 -2
  556. package/es/common/utils.js +5 -14
  557. package/es/common/utils.js.map +1 -1
  558. package/es/container.d.ts +2 -0
  559. package/es/container.js +3 -0
  560. package/es/container.js.map +1 -0
  561. package/es/core/application.js +1 -1
  562. package/es/core/application.js.map +1 -1
  563. package/es/core/camera.js +1 -1
  564. package/es/core/camera.js.map +1 -1
  565. package/es/core/constants.d.ts +7 -0
  566. package/es/core/constants.js +14 -0
  567. package/es/core/constants.js.map +1 -0
  568. package/es/core/contributions/constants.d.ts +1 -0
  569. package/es/core/contributions/constants.js +2 -0
  570. package/es/core/contributions/constants.js.map +1 -0
  571. package/es/core/contributions/env/base-contribution.js.map +1 -1
  572. package/es/core/contributions/env/browser-contribution.js.map +1 -1
  573. package/es/core/contributions/env/feishu-contribution.js.map +1 -1
  574. package/es/core/contributions/env/lynx-contribution.js.map +1 -1
  575. package/es/core/contributions/env/modules.js.map +1 -1
  576. package/es/core/contributions/env/taro-contribution.js.map +1 -1
  577. package/es/core/contributions/index.js.map +1 -1
  578. package/es/core/contributions/interface.js.map +1 -1
  579. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  580. package/es/core/contributions/layerHandler/modules.js.map +1 -1
  581. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  582. package/es/core/contributions/modules.js.map +1 -1
  583. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  584. package/es/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  585. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  586. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  587. package/es/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  588. package/es/core/contributions/window/base-contribution.js.map +1 -1
  589. package/es/core/contributions/window/browser-contribution.js.map +1 -1
  590. package/es/core/contributions/window/feishu-contribution.js.map +1 -1
  591. package/es/core/contributions/window/lynx-contribution.js.map +1 -1
  592. package/es/core/contributions/window/modules.js.map +1 -1
  593. package/es/core/contributions/window/native-contribution.js.map +1 -1
  594. package/es/core/contributions/window/node-contribution.js.map +1 -1
  595. package/es/core/contributions/window/taro-contribution.js.map +1 -1
  596. package/es/core/core-modules.js +1 -1
  597. package/es/core/core-modules.js.map +1 -1
  598. package/es/core/global.d.ts +2 -2
  599. package/es/core/global.js +2 -1
  600. package/es/core/global.js.map +1 -1
  601. package/es/core/graphic-utils.js +1 -1
  602. package/es/core/graphic-utils.js.map +1 -1
  603. package/es/core/index.js +1 -1
  604. package/es/core/index.js.map +1 -1
  605. package/es/core/layer-service.js +1 -1
  606. package/es/core/layer-service.js.map +1 -1
  607. package/es/core/layer.js +1 -1
  608. package/es/core/layer.js.map +1 -1
  609. package/es/core/light.js +1 -1
  610. package/es/core/light.js.map +1 -1
  611. package/es/core/stage.js +1 -1
  612. package/es/core/stage.js.map +1 -1
  613. package/es/core/window.js +1 -1
  614. package/es/core/window.js.map +1 -1
  615. package/es/create.js.map +1 -1
  616. package/es/event/constant.js +1 -1
  617. package/es/event/constant.js.map +1 -1
  618. package/es/event/event-manager.js +1 -1
  619. package/es/event/event-manager.js.map +1 -1
  620. package/es/event/event-system.js +1 -1
  621. package/es/event/event-system.js.map +1 -1
  622. package/es/event/event-target.js +1 -1
  623. package/es/event/event-target.js.map +1 -1
  624. package/es/event/extension/drag.js.map +1 -1
  625. package/es/event/extension/gesture.js.map +1 -1
  626. package/es/event/extension/index.js.map +1 -1
  627. package/es/event/federated-event/base-event.js.map +1 -1
  628. package/es/event/federated-event/custom-event.js.map +1 -1
  629. package/es/event/federated-event/index.js.map +1 -1
  630. package/es/event/federated-event/mouse-event.js.map +1 -1
  631. package/es/event/federated-event/pointer-event.js.map +1 -1
  632. package/es/event/federated-event/wheel-event.js.map +1 -1
  633. package/es/event/index.js +1 -1
  634. package/es/event/index.js.map +1 -1
  635. package/es/event/interface.js +1 -1
  636. package/es/event/interface.js.map +1 -1
  637. package/es/event/type.js +1 -2
  638. package/es/event/type.js.map +1 -1
  639. package/es/event/util.js +1 -1
  640. package/es/event/util.js.map +1 -1
  641. package/es/export.js.map +1 -1
  642. package/es/graphic/arc.js +1 -1
  643. package/es/graphic/arc.js.map +1 -1
  644. package/es/graphic/arc3d.js +1 -1
  645. package/es/graphic/arc3d.js.map +1 -1
  646. package/es/graphic/area.js +1 -1
  647. package/es/graphic/area.js.map +1 -1
  648. package/es/graphic/bounds.js +1 -1
  649. package/es/graphic/bounds.js.map +1 -1
  650. package/es/graphic/builtin-symbol/arrow.js.map +1 -1
  651. package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  652. package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  653. package/es/graphic/builtin-symbol/circle.js.map +1 -1
  654. package/es/graphic/builtin-symbol/cross.js.map +1 -1
  655. package/es/graphic/builtin-symbol/diamond.js.map +1 -1
  656. package/es/graphic/builtin-symbol/index.js.map +1 -1
  657. package/es/graphic/builtin-symbol/interface.js.map +1 -1
  658. package/es/graphic/builtin-symbol/rect.js.map +1 -1
  659. package/es/graphic/builtin-symbol/square.js.map +1 -1
  660. package/es/graphic/builtin-symbol/star.js.map +1 -1
  661. package/es/graphic/builtin-symbol/stroke.js.map +1 -1
  662. package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  663. package/es/graphic/builtin-symbol/triangle-down.js.map +1 -1
  664. package/es/graphic/builtin-symbol/triangle-left.js.map +1 -1
  665. package/es/graphic/builtin-symbol/triangle-right.js.map +1 -1
  666. package/es/graphic/builtin-symbol/triangle-up.js.map +1 -1
  667. package/es/graphic/builtin-symbol/triangle.js.map +1 -1
  668. package/es/graphic/builtin-symbol/utils.js.map +1 -1
  669. package/es/graphic/builtin-symbol/wedge.js.map +1 -1
  670. package/es/graphic/builtin-symbol/wye.js.map +1 -1
  671. package/es/graphic/circle.js +1 -1
  672. package/es/graphic/circle.js.map +1 -1
  673. package/es/graphic/config.js +5 -3
  674. package/es/graphic/config.js.map +1 -1
  675. package/es/graphic/constant.d.ts +17 -0
  676. package/es/graphic/constant.js +38 -0
  677. package/es/graphic/constant.js.map +1 -0
  678. package/es/graphic/glyph.js.map +1 -1
  679. package/es/graphic/graphic-creator.js.map +1 -1
  680. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  681. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  682. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  683. package/es/graphic/graphic-service/common-contribution.js.map +1 -1
  684. package/es/graphic/graphic-service/default-theme.js.map +1 -1
  685. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  686. package/es/graphic/graphic-service/graphic-service.js +30 -26
  687. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  688. package/es/graphic/graphic-service/index.d.ts +1 -0
  689. package/es/graphic/graphic-service/index.js +2 -0
  690. package/es/graphic/graphic-service/index.js.map +1 -0
  691. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  692. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  693. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  694. package/es/graphic/graphic-service/theme-service.js.map +1 -1
  695. package/es/graphic/graphic.js +1 -1
  696. package/es/graphic/graphic.js.map +1 -1
  697. package/es/graphic/group.js.map +1 -1
  698. package/es/graphic/image.js.map +1 -1
  699. package/es/graphic/index.js.map +1 -1
  700. package/es/graphic/line.js.map +1 -1
  701. package/es/graphic/node-tree.js.map +1 -1
  702. package/es/graphic/path.js.map +1 -1
  703. package/es/graphic/polygon.js.map +1 -1
  704. package/es/graphic/pyramid3d.js.map +1 -1
  705. package/es/graphic/rect.js.map +1 -1
  706. package/es/graphic/rect3d.js.map +1 -1
  707. package/es/graphic/richtext/frame.js.map +1 -1
  708. package/es/graphic/richtext/icon.js.map +1 -1
  709. package/es/graphic/richtext/line.js.map +1 -1
  710. package/es/graphic/richtext/paragraph.js.map +1 -1
  711. package/es/graphic/richtext/utils.js +8 -6
  712. package/es/graphic/richtext/utils.js.map +1 -1
  713. package/es/graphic/richtext/wrapper.js.map +1 -1
  714. package/es/graphic/richtext.js.map +1 -1
  715. package/es/graphic/shadow-root.js.map +1 -1
  716. package/es/graphic/symbol.js.map +1 -1
  717. package/es/graphic/text.js.map +1 -1
  718. package/es/graphic/theme.js.map +1 -1
  719. package/es/graphic/tools.js.map +1 -1
  720. package/es/graphic/wrap-text.js.map +1 -1
  721. package/es/index.js +1 -1
  722. package/es/index.js.map +1 -1
  723. package/es/interface/animate.js.map +1 -1
  724. package/es/interface/camera.js.map +1 -1
  725. package/es/interface/canvas.js.map +1 -1
  726. package/es/interface/color.js.map +1 -1
  727. package/es/interface/common.js.map +1 -1
  728. package/es/interface/context.d.ts +3 -3
  729. package/es/interface/context.js.map +1 -1
  730. package/es/interface/contribution.js.map +1 -1
  731. package/es/interface/creator.js.map +1 -1
  732. package/es/interface/global.js.map +1 -1
  733. package/es/interface/graphic/arc.js.map +1 -1
  734. package/es/interface/graphic/arc3d.js.map +1 -1
  735. package/es/interface/graphic/area.d.ts +1 -1
  736. package/es/interface/graphic/area.js.map +1 -1
  737. package/es/interface/graphic/bounds.js.map +1 -1
  738. package/es/interface/graphic/circle.js.map +1 -1
  739. package/es/interface/graphic/creator.js.map +1 -1
  740. package/es/interface/graphic/dynamic-path.js.map +1 -1
  741. package/es/interface/graphic/ellipse.js.map +1 -1
  742. package/es/interface/graphic/face3d.js.map +1 -1
  743. package/es/interface/graphic/glyph.js.map +1 -1
  744. package/es/interface/graphic/group.js.map +1 -1
  745. package/es/interface/graphic/image.js.map +1 -1
  746. package/es/interface/graphic/index.js.map +1 -1
  747. package/es/interface/graphic/isogon.js.map +1 -1
  748. package/es/interface/graphic/line.d.ts +1 -1
  749. package/es/interface/graphic/line.js.map +1 -1
  750. package/es/interface/graphic/path.js.map +1 -1
  751. package/es/interface/graphic/polygon.js.map +1 -1
  752. package/es/interface/graphic/polyline.js.map +1 -1
  753. package/es/interface/graphic/pyramid3d.js.map +1 -1
  754. package/es/interface/graphic/rect.js.map +1 -1
  755. package/es/interface/graphic/rect3d.js.map +1 -1
  756. package/es/interface/graphic/richText.d.ts +4 -2
  757. package/es/interface/graphic/richText.js.map +1 -1
  758. package/es/interface/graphic/shadow-root.js.map +1 -1
  759. package/es/interface/graphic/svg.js.map +1 -1
  760. package/es/interface/graphic/symbol.js.map +1 -1
  761. package/es/interface/graphic/text.js.map +1 -1
  762. package/es/interface/graphic/theme.js.map +1 -1
  763. package/es/interface/graphic/util.js.map +1 -1
  764. package/es/interface/graphic-creator.d.ts +39 -0
  765. package/es/interface/graphic-creator.js +2 -0
  766. package/es/interface/graphic-creator.js.map +1 -0
  767. package/es/interface/graphic-utils.js.map +1 -1
  768. package/es/interface/graphic.d.ts +4 -4
  769. package/es/interface/graphic.js.map +1 -1
  770. package/es/interface/index.js.map +1 -1
  771. package/es/interface/layer.js.map +1 -1
  772. package/es/interface/light.js.map +1 -1
  773. package/es/interface/matrix.js.map +1 -1
  774. package/es/interface/node-tree.js.map +1 -1
  775. package/es/interface/path.js.map +1 -1
  776. package/es/interface/stage.js.map +1 -1
  777. package/es/interface/util.js.map +1 -1
  778. package/es/kits/env.js.map +1 -1
  779. package/es/kits/index.js.map +1 -1
  780. package/es/modules.js.map +1 -1
  781. package/es/picker/canvas-picker-service.js.map +1 -1
  782. package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  783. package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  784. package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  785. package/es/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  786. package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  787. package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  788. package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  789. package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  790. package/es/picker/contributions/canvas-picker/module.js.map +1 -1
  791. package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  792. package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  793. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  794. package/es/picker/contributions/canvas-picker/rect-picker.js +1 -1
  795. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  796. package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  797. package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  798. package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  799. package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  800. package/es/picker/contributions/constants.js.map +1 -1
  801. package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
  802. package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
  803. package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
  804. package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  805. package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
  806. package/es/picker/contributions/math-picker/module.js.map +1 -1
  807. package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
  808. package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  809. package/es/picker/contributions/math-picker/rect-picker.js +1 -1
  810. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  811. package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  812. package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
  813. package/es/picker/contributions/modules.js.map +1 -1
  814. package/es/picker/contributions/old/circle-picker.js.map +1 -1
  815. package/es/picker/contributions/old/rect-picker.js.map +1 -1
  816. package/es/picker/global-picker-service.js.map +1 -1
  817. package/es/picker/index.js.map +1 -1
  818. package/es/picker/math-picker-service.js.map +1 -1
  819. package/es/picker/pick-interceptor.js.map +1 -1
  820. package/es/picker/pick-modules.js.map +1 -1
  821. package/es/picker/picker-service.js.map +1 -1
  822. package/es/picker/type.js.map +1 -1
  823. package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  824. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  825. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  826. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  827. package/es/plugins/interface.js.map +1 -1
  828. package/es/plugins/plugin-modules.js.map +1 -1
  829. package/es/plugins/plugin-service.js.map +1 -1
  830. package/es/render/contributions/interface.js.map +1 -1
  831. package/es/render/contributions/modules.js.map +1 -1
  832. package/es/render/contributions/render/arc-render.d.ts +1 -1
  833. package/es/render/contributions/render/arc-render.js +3 -3
  834. package/es/render/contributions/render/arc-render.js.map +1 -1
  835. package/es/render/contributions/render/arc3d-render.js +6 -6
  836. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  837. package/es/render/contributions/render/area-render.js +4 -4
  838. package/es/render/contributions/render/area-render.js.map +1 -1
  839. package/es/render/contributions/render/base-render.js.map +1 -1
  840. package/es/render/contributions/render/circle-render.js +1 -1
  841. package/es/render/contributions/render/circle-render.js.map +1 -1
  842. package/es/render/contributions/render/clear-screen.js.map +1 -1
  843. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  844. package/es/render/contributions/render/contributions/area-contribution-render.js +1 -3
  845. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  846. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  847. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  848. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  849. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  850. package/es/render/contributions/render/contributions/index.js.map +1 -1
  851. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  852. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  853. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  854. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  855. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  856. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  857. package/es/render/contributions/render/glyph-render.js.map +1 -1
  858. package/es/render/contributions/render/graphic-render.js.map +1 -1
  859. package/es/render/contributions/render/group-render.js +1 -1
  860. package/es/render/contributions/render/group-render.js.map +1 -1
  861. package/es/render/contributions/render/image-render.js.map +1 -1
  862. package/es/render/contributions/render/incremental-area-render.js +1 -1
  863. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  864. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  865. package/es/render/contributions/render/incremental-line-render.js +1 -1
  866. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  867. package/es/render/contributions/render/index.js.map +1 -1
  868. package/es/render/contributions/render/line-render.js +4 -4
  869. package/es/render/contributions/render/line-render.js.map +1 -1
  870. package/es/render/contributions/render/module.js.map +1 -1
  871. package/es/render/contributions/render/path-render.js +1 -1
  872. package/es/render/contributions/render/path-render.js.map +1 -1
  873. package/es/render/contributions/render/polygon-render.js +1 -1
  874. package/es/render/contributions/render/polygon-render.js.map +1 -1
  875. package/es/render/contributions/render/pyramid3d-render.js +3 -3
  876. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  877. package/es/render/contributions/render/rect-render.js +1 -1
  878. package/es/render/contributions/render/rect-render.js.map +1 -1
  879. package/es/render/contributions/render/rect3d-render.js +3 -3
  880. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  881. package/es/render/contributions/render/render-slector.js.map +1 -1
  882. package/es/render/contributions/render/richtext-render.js.map +1 -1
  883. package/es/render/contributions/render/symbol-render.js +1 -1
  884. package/es/render/contributions/render/symbol-render.js.map +1 -1
  885. package/es/render/contributions/render/symbol.js.map +1 -1
  886. package/es/render/contributions/render/text-render.js +5 -5
  887. package/es/render/contributions/render/text-render.js.map +1 -1
  888. package/es/render/contributions/render/utils.d.ts +3 -3
  889. package/es/render/contributions/render/utils.js +3 -4
  890. package/es/render/contributions/render/utils.js.map +1 -1
  891. package/es/render/index.js.map +1 -1
  892. package/es/render/render-modules.js.map +1 -1
  893. package/es/render/render-service.js.map +1 -1
  894. package/es/resource-loader/loader.d.ts +1 -1
  895. package/es/resource-loader/loader.js.map +1 -1
  896. package/es/tapable/Hook.js.map +1 -1
  897. package/es/tapable/SyncHook.js.map +1 -1
  898. package/es/tapable/index.js.map +1 -1
  899. package/es/tsconfig.tsbuildinfo +1 -0
  900. package/package.json +21 -4
@@ -0,0 +1,17 @@
1
+ export declare function genNumberType(): number;
2
+ export declare const ARC_NUMBER_TYPE: number;
3
+ export declare const ARC3D_NUMBER_TYPE: number;
4
+ export declare const AREA_NUMBER_TYPE: number;
5
+ export declare const CIRCLE_NUMBER_TYPE: number;
6
+ export declare const GLYPH_NUMBER_TYPE: number;
7
+ export declare const GROUP_NUMBER_TYPE: number;
8
+ export declare const IMAGE_NUMBER_TYPE: number;
9
+ export declare const LINE_NUMBER_TYPE: number;
10
+ export declare const PATH_NUMBER_TYPE: number;
11
+ export declare const POLYGON_NUMBER_TYPE: number;
12
+ export declare const PYRAMID3D_NUMBER_TYPE: number;
13
+ export declare const RECT_NUMBER_TYPE: number;
14
+ export declare const RECT3D_NUMBER_TYPE: number;
15
+ export declare const RICHTEXT_NUMBER_TYPE: number;
16
+ export declare const SYMBOL_NUMBER_TYPE: number;
17
+ export declare const TEXT_NUMBER_TYPE: number;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.TEXT_NUMBER_TYPE = exports.SYMBOL_NUMBER_TYPE = exports.RICHTEXT_NUMBER_TYPE = exports.RECT3D_NUMBER_TYPE = exports.RECT_NUMBER_TYPE = exports.PYRAMID3D_NUMBER_TYPE = exports.POLYGON_NUMBER_TYPE = exports.PATH_NUMBER_TYPE = exports.LINE_NUMBER_TYPE = exports.IMAGE_NUMBER_TYPE = exports.GROUP_NUMBER_TYPE = exports.GLYPH_NUMBER_TYPE = exports.CIRCLE_NUMBER_TYPE = exports.AREA_NUMBER_TYPE = exports.ARC3D_NUMBER_TYPE = exports.ARC_NUMBER_TYPE = exports.genNumberType = void 0;
6
+
7
+ let NUMBER_TYPE = 0;
8
+
9
+ function genNumberType() {
10
+ return NUMBER_TYPE++;
11
+ }
12
+
13
+ exports.genNumberType = genNumberType, exports.ARC_NUMBER_TYPE = genNumberType(),
14
+ exports.ARC3D_NUMBER_TYPE = genNumberType(), exports.AREA_NUMBER_TYPE = genNumberType(),
15
+ exports.CIRCLE_NUMBER_TYPE = genNumberType(), exports.GLYPH_NUMBER_TYPE = genNumberType(),
16
+ exports.GROUP_NUMBER_TYPE = genNumberType(), exports.IMAGE_NUMBER_TYPE = genNumberType(),
17
+ exports.LINE_NUMBER_TYPE = genNumberType(), exports.PATH_NUMBER_TYPE = genNumberType(),
18
+ exports.POLYGON_NUMBER_TYPE = genNumberType(), exports.PYRAMID3D_NUMBER_TYPE = genNumberType(),
19
+ exports.RECT_NUMBER_TYPE = genNumberType(), exports.RECT3D_NUMBER_TYPE = genNumberType(),
20
+ exports.RICHTEXT_NUMBER_TYPE = genNumberType(), exports.SYMBOL_NUMBER_TYPE = genNumberType(),
21
+ exports.TEXT_NUMBER_TYPE = genNumberType();
22
+ //# sourceMappingURL=constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/graphic/constant.ts"],"names":[],"mappings":";;;AAAA,IAAI,WAAW,GAAW,CAAC,CAAC;AAC5B,SAAgB,aAAa;IAC3B,OAAO,WAAW,EAAE,CAAC;AACvB,CAAC;AAFD,sCAEC;AAEY,QAAA,eAAe,GAAG,aAAa,EAAE,CAAC;AAClC,QAAA,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACpC,QAAA,gBAAgB,GAAG,aAAa,EAAE,CAAC;AACnC,QAAA,kBAAkB,GAAG,aAAa,EAAE,CAAC;AACrC,QAAA,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACpC,QAAA,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACpC,QAAA,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACpC,QAAA,gBAAgB,GAAG,aAAa,EAAE,CAAC;AACnC,QAAA,gBAAgB,GAAG,aAAa,EAAE,CAAC;AACnC,QAAA,mBAAmB,GAAG,aAAa,EAAE,CAAC;AACtC,QAAA,qBAAqB,GAAG,aAAa,EAAE,CAAC;AACxC,QAAA,gBAAgB,GAAG,aAAa,EAAE,CAAC;AACnC,QAAA,kBAAkB,GAAG,aAAa,EAAE,CAAC;AACrC,QAAA,oBAAoB,GAAG,aAAa,EAAE,CAAC;AACvC,QAAA,kBAAkB,GAAG,aAAa,EAAE,CAAC;AACrC,QAAA,gBAAgB,GAAG,aAAa,EAAE,CAAC","file":"constant.js","sourcesContent":["let NUMBER_TYPE: number = 0;\nexport function genNumberType() {\n return NUMBER_TYPE++;\n}\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"]}
@@ -1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O,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;AAjOD,sBAiOC","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,uCAAmD;AASnD,mCAAmC;AACnC,wCAA4C;AAE/B,QAAA,iBAAiB,GAAG,IAAA,uBAAa,GAAE,CAAC;AAEjD,MAAa,KAAM,SAAQ,iBAA+B;IAoBxD,YAAY,MAAuC;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QApBhB,SAAI,GAAgB,OAAO,CAAC;QAqB1B,IAAI,CAAC,UAAU,GAAG,yBAAiB,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,E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,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;QAC5B,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IACzD,CAAC;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;AAjOD,sBAiOC","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 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-creator.ts"],"names":[],"mappings":";;;AAoCA,+BAA4B;AAC5B,iCAA8B;AAC9B,qCAAkC;AAClC,mCAAgC;AAChC,mCAAgC;AAChC,iCAA8B;AAC9B,iCAA8B;AAC9B,uCAAoC;AACpC,iCAA8B;AAE9B,qCAAgD;AAChD,+CAA6D;AAC7D,iCAA8B;AAC9B,yCAAsC;AACtC,mCAAgC;AAChC,qCAAkC;AAClC,mCAAgC;AAChC,2CAAwC;AACxC,2CAAuC;AAEvC,SAAgB,SAAS,CAAC,UAAgC;IACxD,OAAO,IAAI,SAAG,CAAC,UAAU,CAAC,CAAC;AAC7B,CAAC;AAFD,8BAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAA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;AACD,SAAgB,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,eAAU,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAFD,oCAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,aAAa,CAAC,UAAoC;IAChE,OAAO,IAAI,iBAAO,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AAFD,sCAEC;AACD,SAAgB,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,wBAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAFD,4CAEC;AACD,SAAgB,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,mBAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AAEY,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;CACzB,CAAC","file":"graphic-creator.js","sourcesContent":["import {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n ISymbol,\n IImage,\n IPolygon,\n IShadowRoot,\n IGraphic,\n IRichTextGraphicAttribute,\n IRichText,\n IGlyph,\n IGlyphGraphicAttribute,\n IRect3d,\n IRect3dGraphicAttribute,\n IArc3dGraphicAttribute,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n IWrapTextGraphicAttribute\n} from '../interface';\nimport { Arc } from './arc';\nimport { Area } from './area';\nimport { Circle } from './circle';\nimport { Group } from './group';\nimport { Image } from './image';\nimport { Line } from './line';\nimport { Path } from './path';\nimport { Polygon } from './polygon';\nimport { Rect } from './rect';\n// 这里git会将Symbol强行转成小写symbol,先重命名一下\nimport { Symbol as MarkSymbol } from './symbol';\nimport { ShadowRoot as MarkShadowRoot } from './shadow-root';\nimport { Text } from './text';\nimport { RichText } from './richtext';\nimport { Glyph } from './glyph';\nimport { Rect3d } from './rect3d';\nimport { Arc3d } from './arc3d';\nimport { Pyramid3d } from './pyramid3d';\nimport { WrapText } from './wrap-text';\n\nexport function createArc(attributes: IArcGraphicAttribute): IArc {\n return new Arc(attributes);\n}\nexport function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n return new Arc3d(attributes);\n}\nexport function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n return new Pyramid3d(attributes);\n}\nexport function createArea(attributes: IAreaGraphicAttribute): IArea {\n return new Area(attributes);\n}\nexport function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n return new Circle(attributes);\n}\nexport function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n return new Group(attributes);\n}\nexport function createLine(attributes: ILineGraphicAttribute): ILine {\n return new Line(attributes);\n}\nexport function createPath(attributes: IPathGraphicAttribute): IPath {\n return new Path(attributes);\n}\nexport function createRect(attributes: IRectGraphicAttribute): IRect {\n return new Rect(attributes);\n}\nexport function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n return new Rect3d(attributes);\n}\nexport function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n return new Glyph(attributes);\n}\nexport function createText(attributes: ITextGraphicAttribute): IText {\n return new Text(attributes);\n}\nexport function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n return new WrapText(attributes);\n}\nexport function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n return new MarkSymbol(attributes);\n}\nexport function createImage(attributes: IImageGraphicAttribute): IImage {\n return new Image(attributes);\n}\nexport function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n return new Polygon(attributes);\n}\nexport function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n return new MarkShadowRoot(graphic);\n}\nexport function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n return new RichText(attributes);\n}\n\nexport const graphicCreator = {\n arc: createArc,\n area: createArea,\n circle: createCircle,\n group: createGroup,\n image: createImage,\n line: createLine,\n path: createPath,\n rect: createRect,\n rect3d: createRect3d,\n symbol: createSymbol,\n text: createText,\n richtext: createRichText,\n polygon: createPolygon,\n shadowRoot: createShadowRoot,\n wrapText: createWrapText\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-creator.ts"],"names":[],"mappings":";;;AAoCA,+BAA4B;AAC5B,iCAA8B;AAC9B,qCAAkC;AAClC,mCAAgC;AAChC,mCAAgC;AAChC,iCAA8B;AAC9B,iCAA8B;AAC9B,uCAAoC;AACpC,iCAA8B;AAE9B,qCAAgD;AAChD,+CAA6D;AAC7D,iCAA8B;AAC9B,yCAAsC;AACtC,mCAAgC;AAChC,qCAAkC;AAClC,mCAAgC;AAChC,2CAAwC;AACxC,2CAAuC;AAEvC,SAAgB,SAAS,CAAC,UAAgC;IACxD,OAAO,IAAI,SAAG,CAAC,UAAU,CAAC,CAAC;AAC7B,CAAC;AAFD,8BAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,eAAe,CAAC,UAAsC;IACpE,OAAO,IAAI,qBAAS,CAAC,UAAU,CAAC,CAAC;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AC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,aAAa,CAAC,UAAoC;IAChE,OAAO,IAAI,iBAAO,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AAFD,sCAEC;AACD,SAAgB,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,wBAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAFD,4CAEC;AACD,SAAgB,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,mBAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AAEY,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;CACzB,CAAC","file":"graphic-creator.js","sourcesContent":["import {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n ISymbol,\n IImage,\n IPolygon,\n IShadowRoot,\n IGraphic,\n IRichTextGraphicAttribute,\n IRichText,\n IGlyph,\n IGlyphGraphicAttribute,\n IRect3d,\n IRect3dGraphicAttribute,\n IArc3dGraphicAttribute,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n IWrapTextGraphicAttribute\n} from '../interface';\nimport { Arc } from './arc';\nimport { Area } from './area';\nimport { Circle } from './circle';\nimport { Group } from './group';\nimport { Image } from './image';\nimport { Line } from './line';\nimport { Path } from './path';\nimport { Polygon } from './polygon';\nimport { Rect } from './rect';\n// 这里git会将Symbol强行转成小写symbol,先重命名一下\nimport { Symbol as MarkSymbol } from './symbol';\nimport { ShadowRoot as MarkShadowRoot } from './shadow-root';\nimport { Text } from './text';\nimport { RichText } from './richtext';\nimport { Glyph } from './glyph';\nimport { Rect3d } from './rect3d';\nimport { Arc3d } from './arc3d';\nimport { Pyramid3d } from './pyramid3d';\nimport { WrapText } from './wrap-text';\n\nexport function createArc(attributes: IArcGraphicAttribute): IArc {\n return new Arc(attributes);\n}\nexport function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n return new Arc3d(attributes);\n}\nexport function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n return new Pyramid3d(attributes);\n}\nexport function createArea(attributes: IAreaGraphicAttribute): IArea {\n return new Area(attributes);\n}\nexport function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n return new Circle(attributes);\n}\nexport function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n return new Group(attributes);\n}\nexport function createLine(attributes: ILineGraphicAttribute): ILine {\n return new Line(attributes);\n}\nexport function createPath(attributes: IPathGraphicAttribute): IPath {\n return new Path(attributes);\n}\nexport function createRect(attributes: IRectGraphicAttribute): IRect {\n return new Rect(attributes);\n}\nexport function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n return new Rect3d(attributes);\n}\nexport function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n return new Glyph(attributes);\n}\nexport function createText(attributes: ITextGraphicAttribute): IText {\n return new Text(attributes);\n}\nexport function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n return new WrapText(attributes);\n}\nexport function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n return new MarkSymbol(attributes);\n}\nexport function createImage(attributes: IImageGraphicAttribute): IImage {\n return new Image(attributes);\n}\nexport function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n return new Polygon(attributes);\n}\nexport function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n return new MarkShadowRoot(graphic);\n}\nexport function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n return new RichText(attributes);\n}\n\nexport const graphicCreator = {\n arc: createArc,\n area: createArea,\n circle: createCircle,\n group: createGroup,\n image: createImage,\n line: createLine,\n path: createPath,\n rect: createRect,\n rect3d: createRect3d,\n symbol: createSymbol,\n text: createText,\n richtext: createRichText,\n polygon: createPolygon,\n shadowRoot: createShadowRoot,\n wrapText: createWrapText\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/arc-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAEvC,+DAA6E;AAEhE,QAAA,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAYlE,IAAM,uCAAuC,GAA7C,MAAM,uCACX,SAAQ,0DAAoC;CACR,CAAA;AAFzB,uCAAuC;IADnD,IAAA,sBAAU,GAAE;GACA,uCAAuC,CAEd;AAFzB,0FAAuC","file":"arc-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphic, IArcGraphicAttribute } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const ArcBoundsContribution = Symbol.for('ArcBoundsContribution');\n\nexport interface IArcBoundsContribution {\n updateBounds: (\n attribute: IArcGraphicAttribute,\n arcTheme: Required<IArcGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n@injectable()\nexport class DefaultArcOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements IArcBoundsContribution {}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/arc-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAEvC,+DAA6E;AAEhE,QAAA,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAYlE,IAAM,uCAAuC,GAA7C,MAAM,uCACX,SAAQ,0DAAoC;CACR,CAAA;AAFzB,uCAAuC;IADnD,IAAA,sBAAU,GAAE;GACA,uCAAuC,CAEd;AAFzB,0FAAuC","file":"arc-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphic, IArcGraphicAttribute } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const ArcBoundsContribution = Symbol.for('ArcBoundsContribution');\n\nexport interface IArcBoundsContribution {\n updateBounds: (\n attribute: IArcGraphicAttribute,\n arcTheme: Required<IArcGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n@injectable()\nexport class DefaultArcOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements IArcBoundsContribution {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/area-contribution.ts"],"names":[],"mappings":";;;AAGa,QAAA,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC","file":"area-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { IGraphic, IAreaGraphicAttribute } from '../../interface';\n\nexport const AreaBoundsContribution = Symbol.for('AreaBoundsContribution');\n\nexport interface IAreaBoundsContribution {\n updateBounds: (\n attribute: IAreaGraphicAttribute,\n arcTheme: Required<IAreaGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n// @injectable()\n// export class DefaultArcOuterBorderBoundsContribution\n// extends DefaultOuterBorderBoundsContribution\n// implements IArcBoundsContribution {}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/area-contribution.ts"],"names":[],"mappings":";;;AAGa,QAAA,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC","file":"area-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { IGraphic, IAreaGraphicAttribute } from '../../interface';\n\nexport const AreaBoundsContribution = Symbol.for('AreaBoundsContribution');\n\nexport interface IAreaBoundsContribution {\n updateBounds: (\n attribute: IAreaGraphicAttribute,\n arcTheme: Required<IAreaGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n// @injectable()\n// export class DefaultArcOuterBorderBoundsContribution\n// extends DefaultOuterBorderBoundsContribution\n// implements IArcBoundsContribution {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/circle-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAEvC,+DAA6E;AAEhE,QAAA,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAYxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,0DAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,IAAA,sBAAU,GAAE;GACA,0CAA0C,CAEd;AAF5B,gGAA0C","file":"circle-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphic, ICircleGraphicAttribute } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const CircleBoundsContribution = Symbol.for('CircleBoundsContribution');\n\nexport interface ICircleBoundsContribution {\n updateBounds: (\n attribute: ICircleGraphicAttribute,\n circleTheme: Required<ICircleGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n@injectable()\nexport class DefaultCircleOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements ICircleBoundsContribution {}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/circle-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAEvC,+DAA6E;AAEhE,QAAA,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAYxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,0DAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,IAAA,sBAAU,GAAE;GACA,0CAA0C,CAEd;AAF5B,gGAA0C","file":"circle-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphic, ICircleGraphicAttribute } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const CircleBoundsContribution = Symbol.for('CircleBoundsContribution');\n\nexport interface ICircleBoundsContribution {\n updateBounds: (\n attribute: ICircleGraphicAttribute,\n circleTheme: Required<ICircleGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\n@injectable()\nexport class DefaultCircleOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements ICircleBoundsContribution {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/common-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAIhC,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAC/C,YAAY,CACV,SAAqC,EACrC,KAAkC,EAClC,UAAuB,EACvB,OAAkB;QAElB,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC;QACjE,IAAI,WAAW,EAAE;YACf,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC;YAC7C,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAC;YAGzG,UAAU,CAAC,MAAM,CAAE,QAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SACtE;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAjBY,oCAAoC;IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CAiBhD;AAjBY,oFAAoC","file":"common-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphicAttribute, IGraphic } from '../../interface';\n\n@injectable()\nexport class DefaultOuterBorderBoundsContribution {\n updateBounds(\n attribute: Partial<IGraphicAttribute>,\n theme: Required<IGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ): IAABBBounds {\n const { outerBorder, shadowBlur = theme.shadowBlur } = attribute;\n if (outerBorder) {\n const defaultOuterBorder = theme.outerBorder;\n const { distance = defaultOuterBorder.distance, lineWidth = defaultOuterBorder.lineWidth } = outerBorder;\n\n // rect的distance一定是number\n aabbBounds.expand((distance as number) + shadowBlur + lineWidth / 2);\n }\n return aabbBounds;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/common-contribution.ts"],"names":[],"mappings":";;;;;;;;;AACA,yCAAuC;AAIhC,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAC/C,YAAY,CACV,SAAqC,EACrC,KAAkC,EAClC,UAAuB,EACvB,OAAkB;QAElB,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC;QACjE,IAAI,WAAW,EAAE;YACf,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC;YAC7C,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAC;YAGzG,UAAU,CAAC,MAAM,CAAE,QAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SACtE;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAjBY,oCAAoC;IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CAiBhD;AAjBY,oFAAoC","file":"common-contribution.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { injectable } from 'inversify';\nimport { IGraphicAttribute, IGraphic } from '../../interface';\n\n@injectable()\nexport class DefaultOuterBorderBoundsContribution {\n updateBounds(\n attribute: Partial<IGraphicAttribute>,\n theme: Required<IGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ): IAABBBounds {\n const { outerBorder, shadowBlur = theme.shadowBlur } = attribute;\n if (outerBorder) {\n const defaultOuterBorder = theme.outerBorder;\n const { distance = defaultOuterBorder.distance, lineWidth = defaultOuterBorder.lineWidth } = outerBorder;\n\n // rect的distance一定是number\n aabbBounds.expand((distance as number) + shadowBlur + lineWidth / 2);\n }\n return aabbBounds;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/default-theme.ts"],"names":[],"mappings":"","file":"default-theme.js","sourcesContent":["// import { injectable } from 'inversify';\n// import {\n// ICircleGraphicAttribute,\n// ILineGraphicAttribute,\n// ISymbolGraphicAttribute,\n// ITextGraphicAttribute,\n// IRectGraphicAttribute,\n// IPathGraphicAttribute,\n// IArcGraphicAttribute,\n// IAreaGraphicAttribute,\n// IGroupGraphicAttribute,\n// IPolygonGraphicAttribute\n// } from '../../interface';\n// import { DefaultCircleAttribute } from '../circle';\n// import { DefaultLineAttribute } from '../line';\n// import { DefaultRectAttribute } from '../rect';\n// import { DefaultSymbolAttribute } from '../symbol';\n// import { DefaultTextAttribute } from '../text';\n// import { DefaultPathAttribute } from '../path';\n// import { DefaultArcAttribute } from '../arc';\n// import { DefaultAreaAttribute } from '../area';\n// import { DefaultGroupAttribute } from '../group';\n// import { DefaultPolygonAttribute } from '../polygon';\n// import { DEFAULT_THEME_ID, ITheme, IThemeService } from './theme-service';\n\n// @injectable()\n// export class DefaultTheme implements ITheme {\n// readonly id: string;\n// circleAttribute: Required<ICircleGraphicAttribute>;\n// textAttribute: Required<ITextGraphicAttribute>;\n// symbolAttribute: Required<ISymbolGraphicAttribute>;\n// lineAttribute: Required<ILineGraphicAttribute>;\n// rectAttribute: Required<IRectGraphicAttribute>;\n// pathAttribute: Required<IPathGraphicAttribute>;\n// arcAttribute: Required<IArcGraphicAttribute>;\n// groupAttribute: Required<IGroupGraphicAttribute>;\n// areaAttribute: Required<IAreaGraphicAttribute>;\n// polygonAttribute: Required<IPolygonGraphicAttribute>;\n\n// constructor() {\n// this.id = DEFAULT_THEME_ID;\n// this.circleAttribute = { ...DefaultCircleAttribute };\n// this.textAttribute = { ...DefaultTextAttribute };\n// this.symbolAttribute = { ...DefaultSymbolAttribute };\n// this.lineAttribute = { ...DefaultLineAttribute };\n// this.rectAttribute = { ...DefaultRectAttribute };\n// this.pathAttribute = { ...DefaultPathAttribute };\n// this.arcAttribute = { ...DefaultArcAttribute };\n// this.areaAttribute = { ...DefaultAreaAttribute };\n// this.groupAttribute = { ...DefaultGroupAttribute };\n// this.polygonAttribute = { ...DefaultPolygonAttribute };\n// }\n\n// configure(themeService: IThemeService) {\n// themeService.register(this);\n// }\n\n// activate(): void {\n// return;\n// }\n// deactivate(): void {\n// return;\n// }\n// }\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/default-theme.ts"],"names":[],"mappings":"","file":"default-theme.js","sourcesContent":["// import { injectable } from 'inversify';\n// import {\n// ICircleGraphicAttribute,\n// ILineGraphicAttribute,\n// ISymbolGraphicAttribute,\n// ITextGraphicAttribute,\n// IRectGraphicAttribute,\n// IPathGraphicAttribute,\n// IArcGraphicAttribute,\n// IAreaGraphicAttribute,\n// IGroupGraphicAttribute,\n// IPolygonGraphicAttribute\n// } from '../../interface';\n// import { DefaultCircleAttribute } from '../circle';\n// import { DefaultLineAttribute } from '../line';\n// import { DefaultRectAttribute } from '../rect';\n// import { DefaultSymbolAttribute } from '../symbol';\n// import { DefaultTextAttribute } from '../text';\n// import { DefaultPathAttribute } from '../path';\n// import { DefaultArcAttribute } from '../arc';\n// import { DefaultAreaAttribute } from '../area';\n// import { DefaultGroupAttribute } from '../group';\n// import { DefaultPolygonAttribute } from '../polygon';\n// import { DEFAULT_THEME_ID, ITheme, IThemeService } from './theme-service';\n\n// @injectable()\n// export class DefaultTheme implements ITheme {\n// readonly id: string;\n// circleAttribute: Required<ICircleGraphicAttribute>;\n// textAttribute: Required<ITextGraphicAttribute>;\n// symbolAttribute: Required<ISymbolGraphicAttribute>;\n// lineAttribute: Required<ILineGraphicAttribute>;\n// rectAttribute: Required<IRectGraphicAttribute>;\n// pathAttribute: Required<IPathGraphicAttribute>;\n// arcAttribute: Required<IArcGraphicAttribute>;\n// groupAttribute: Required<IGroupGraphicAttribute>;\n// areaAttribute: Required<IAreaGraphicAttribute>;\n// polygonAttribute: Required<IPolygonGraphicAttribute>;\n\n// constructor() {\n// this.id = DEFAULT_THEME_ID;\n// this.circleAttribute = { ...DefaultCircleAttribute };\n// this.textAttribute = { ...DefaultTextAttribute };\n// this.symbolAttribute = { ...DefaultSymbolAttribute };\n// this.lineAttribute = { ...DefaultLineAttribute };\n// this.rectAttribute = { ...DefaultRectAttribute };\n// this.pathAttribute = { ...DefaultPathAttribute };\n// this.arcAttribute = { ...DefaultArcAttribute };\n// this.areaAttribute = { ...DefaultAreaAttribute };\n// this.groupAttribute = { ...DefaultGroupAttribute };\n// this.polygonAttribute = { ...DefaultPolygonAttribute };\n// }\n\n// configure(themeService: IThemeService) {\n// themeService.register(this);\n// }\n\n// activate(): void {\n// return;\n// }\n// deactivate(): void {\n// return;\n// }\n// }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-service/graphic-module.ts"],"names":[],"mappings":";;AAAA,yCAA4C;AAC5C,yCAAwD;AACxD,yDAAoG;AACpG,+DAA6G;AAE7G,uDAA0E;AAC1E,2DAAuG;AACvG,2DAA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IAAI,EAAE,0CAAsB,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,yCAA4C;AAC5C,yCAAwD;AACxD,yDAAoG;AACpG,+DAA6G;AAE7G,uDAA0E;AAC1E,2DAAuG;AACvG,2DAAuG;AACvG,+DAA6G;AAG7G,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,uCAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,gCAAc,CAAC,CAAC,SAAS,CAAC,uCAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,4DAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,4DAAwC,CAAC,CAAC;IACjF,IAAA,iCAAwB,EAAC,IAAI,EAAE,0CAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,gEAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,8CAAwB,CAAC,CAAC,SAAS,CAAC,gEAA0C,CAAC,CAAC;IACrF,IAAA,iCAAwB,EAAC,IAAI,EAAE,8CAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,gEAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,8CAAwB,CAAC,CAAC,SAAS,CAAC,gEAA0C,CAAC,CAAC;IACrF,IAAA,iCAAwB,EAAC,IAAI,EAAE,8CAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,0DAAuC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1E,IAAI,CAAC,wCAAqB,CAAC,CAAC,SAAS,CAAC,0DAAuC,CAAC,CAAC;IAC/E,IAAA,iCAAwB,EAAC,IAAI,EAAE,wCAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,4DAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,4DAAwC,CAAC,CAAC;IACjF,IAAA,iCAAwB,EAAC,IAAI,EAAE,0CAAsB,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"]}
@@ -228,18 +228,19 @@ let DefaultGraphicService = class {
228
228
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
229
229
  this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
230
230
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
231
- })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic), aabbBounds;
231
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic),
232
+ aabbBounds;
232
233
  }
233
234
  updateGroupAABBBounds(attribute, groupTheme, aabbBounds, graphic) {
234
235
  const {width: width, height: height, path: path, clip: clip = groupTheme.clip} = attribute;
235
236
  path && path.length ? path.forEach((g => {
236
237
  aabbBounds.union(g.AABBBounds);
237
- })) : null != width && null != height && aabbBounds.set(0, 0, width, height), clip || graphic.forEachChildren((node => {
238
- aabbBounds.union(node.AABBBounds);
239
- }));
238
+ })) : null != width && null != height && aabbBounds.set(0, 0, width, height);
240
239
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
241
240
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
242
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
241
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), clip || (graphic.forEachChildren((node => {
242
+ aabbBounds.union(node.AABBBounds);
243
+ })), this.combindShadowAABBBounds(aabbBounds, graphic)), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
243
244
  aabbBounds;
244
245
  }
245
246
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
@@ -286,8 +287,8 @@ let DefaultGraphicService = class {
286
287
  aabbBounds.translate(deltaX, deltaY);
287
288
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
288
289
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
289
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic),
290
- aabbBounds;
290
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
291
+ this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic), aabbBounds;
291
292
  }
292
293
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
293
294
  if (!graphic) return aabbBounds;
@@ -295,7 +296,8 @@ let DefaultGraphicService = class {
295
296
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
296
297
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
297
298
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
298
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), (0, vutils_1.transformBoundsWithMatrix)(aabbBounds, aabbBounds, graphic.transMatrix),
299
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
300
+ (0, vutils_1.transformBoundsWithMatrix)(aabbBounds, aabbBounds, graphic.transMatrix),
299
301
  aabbBounds;
300
302
  }
301
303
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
@@ -305,7 +307,8 @@ let DefaultGraphicService = class {
305
307
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
306
308
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
307
309
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
308
- })), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic), aabbBounds;
310
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic),
311
+ aabbBounds;
309
312
  }
310
313
  updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic) {
311
314
  if (!graphic) return aabbBounds;
@@ -322,8 +325,8 @@ let DefaultGraphicService = class {
322
325
  }));
323
326
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
324
327
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
325
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
326
- aabbBounds;
328
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
329
+ this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
327
330
  }
328
331
  updateArc3dAABBBounds(attribute, arcTheme, aabbBounds, graphic) {
329
332
  if (!graphic) return aabbBounds;
@@ -333,15 +336,15 @@ let DefaultGraphicService = class {
333
336
  aabbBounds.setValue(-r, -r, r, r);
334
337
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
335
338
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
336
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
337
- aabbBounds;
339
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
340
+ this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
338
341
  }
339
342
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
340
343
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
341
344
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
342
345
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
343
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
344
- aabbBounds;
346
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
347
+ this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
345
348
  }
346
349
  updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic) {
347
350
  const {points: points = polygonTheme.points} = attribute;
@@ -353,8 +356,8 @@ let DefaultGraphicService = class {
353
356
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
354
357
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
355
358
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
356
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic),
357
- aabbBounds;
359
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
360
+ this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic), aabbBounds;
358
361
  }
359
362
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
360
363
  const {points: points = lineTheme.points} = attribute, b = aabbBounds;
@@ -374,8 +377,8 @@ let DefaultGraphicService = class {
374
377
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
375
378
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
376
379
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
377
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic),
378
- aabbBounds;
380
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
381
+ this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic), aabbBounds;
379
382
  }
380
383
  updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic) {
381
384
  const {points: points = areaTheme.points} = attribute, b = aabbBounds;
@@ -400,7 +403,8 @@ let DefaultGraphicService = class {
400
403
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
401
404
  this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
402
405
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
403
- })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic), aabbBounds;
406
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic),
407
+ aabbBounds;
404
408
  }
405
409
  updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) {
406
410
  const {radius: radius = circleTheme.radius} = attribute;
@@ -418,7 +422,8 @@ let DefaultGraphicService = class {
418
422
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
419
423
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
420
424
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
421
- })), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
425
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
426
+ aabbBounds;
422
427
  }
423
428
  updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) {
424
429
  const {outerRadius: outerRadius = arcTheme.outerRadius} = attribute;
@@ -437,7 +442,7 @@ let DefaultGraphicService = class {
437
442
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
438
443
  this._symbolBoundsContribitions.length && this._symbolBoundsContribitions.forEach((c => {
439
444
  c.updateBounds(attribute, symbolTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
440
- })), aabbBounds;
445
+ })), this.transformAABBBounds(attribute, aabbBounds, symbolTheme, graphic), aabbBounds;
441
446
  }
442
447
  updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) {
443
448
  const {size: size = symbolTheme.size} = attribute;
@@ -459,8 +464,8 @@ let DefaultGraphicService = class {
459
464
  }
460
465
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
461
466
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
462
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic),
463
- aabbBounds;
467
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
468
+ this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic), aabbBounds;
464
469
  }
465
470
  combindShadowAABBBounds(bounds, graphic) {
466
471
  if (graphic && graphic.shadowRoot) {
@@ -469,7 +474,7 @@ let DefaultGraphicService = class {
469
474
  }
470
475
  }
471
476
  transformAABBBounds(attribute, aabbBounds, theme, graphic) {
472
- 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;
477
+ 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;
473
478
  if (stroke) {
474
479
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
475
480
  (0, tools_1.boundStroke)(tb1, scaledHalfLineWidth, "miter" === lineJoin, strokeBoundsBuffer),