@visactor/vrender 0.9.0-fillstroke.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (810) 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/graphic-allocate.js.map +1 -1
  4. package/cjs/allocator/interface.js.map +1 -1
  5. package/cjs/allocator/matrix-allocate.js.map +1 -1
  6. package/cjs/allocator/point-allocate.js.map +1 -1
  7. package/cjs/animate/Ticker/default-ticker.js.map +1 -1
  8. package/cjs/animate/Ticker/index.js.map +1 -1
  9. package/cjs/animate/Ticker/interface.js.map +1 -1
  10. package/cjs/animate/animate.js.map +1 -1
  11. package/cjs/animate/config.js.map +1 -1
  12. package/cjs/animate/custom-animate.d.ts +2 -2
  13. package/cjs/animate/custom-animate.js +12 -13
  14. package/cjs/animate/custom-animate.js.map +1 -1
  15. package/cjs/animate/easing.js.map +1 -1
  16. package/cjs/animate/index.js.map +1 -1
  17. package/cjs/animate/morphing.js +5 -4
  18. package/cjs/animate/morphing.js.map +1 -1
  19. package/cjs/animate/timeline.js +2 -1
  20. package/cjs/animate/timeline.js.map +1 -1
  21. package/cjs/canvas/contributions/browser/canvas.js.map +1 -1
  22. package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
  23. package/cjs/canvas/contributions/browser/context.d.ts +4 -2
  24. package/cjs/canvas/contributions/browser/context.js +4 -4
  25. package/cjs/canvas/contributions/browser/context.js.map +1 -1
  26. package/cjs/canvas/contributions/browser/index.js.map +1 -1
  27. package/cjs/canvas/contributions/browser/modules.js.map +1 -1
  28. package/cjs/canvas/contributions/feishu/canvas.js.map +1 -1
  29. package/cjs/canvas/contributions/feishu/context.js.map +1 -1
  30. package/cjs/canvas/contributions/feishu/index.js.map +1 -1
  31. package/cjs/canvas/contributions/feishu/modules.js.map +1 -1
  32. package/cjs/canvas/contributions/lynx/canvas.js.map +1 -1
  33. package/cjs/canvas/contributions/lynx/context.js.map +1 -1
  34. package/cjs/canvas/contributions/lynx/index.js.map +1 -1
  35. package/cjs/canvas/contributions/lynx/modules.js.map +1 -1
  36. package/cjs/canvas/contributions/modules.js.map +1 -1
  37. package/cjs/canvas/contributions/taro/canvas.js.map +1 -1
  38. package/cjs/canvas/contributions/taro/context.js +4 -4
  39. package/cjs/canvas/contributions/taro/context.js.map +1 -1
  40. package/cjs/canvas/contributions/taro/index.js.map +1 -1
  41. package/cjs/canvas/contributions/taro/modules.js.map +1 -1
  42. package/cjs/canvas/contributions/tt/canvas.js.map +1 -1
  43. package/cjs/canvas/contributions/tt/context.js.map +1 -1
  44. package/cjs/canvas/contributions/tt/index.js.map +1 -1
  45. package/cjs/canvas/contributions/tt/modules.js.map +1 -1
  46. package/cjs/canvas/empty-context.js.map +1 -1
  47. package/cjs/canvas/index.js.map +1 -1
  48. package/cjs/canvas/interface.js.map +1 -1
  49. package/cjs/canvas/util.js.map +1 -1
  50. package/cjs/color-string/colorName.js.map +1 -1
  51. package/cjs/color-string/index.js.map +1 -1
  52. package/cjs/color-string/interpolate.js.map +1 -1
  53. package/cjs/common/bezier.js.map +1 -1
  54. package/cjs/common/bounds-context.js.map +1 -1
  55. package/cjs/common/canvas-utils.d.ts +1 -1
  56. package/cjs/common/canvas-utils.js +7 -11
  57. package/cjs/common/canvas-utils.js.map +1 -1
  58. package/cjs/common/contribution-provider.js.map +1 -1
  59. package/cjs/common/curve/basis.js.map +1 -1
  60. package/cjs/common/curve/common.js.map +1 -1
  61. package/cjs/common/curve/index.js.map +1 -1
  62. package/cjs/common/curve/interface.js.map +1 -1
  63. package/cjs/common/curve/linear-closed.js.map +1 -1
  64. package/cjs/common/curve/linear.js.map +1 -1
  65. package/cjs/common/curve/monotone.js.map +1 -1
  66. package/cjs/common/curve/step.js.map +1 -1
  67. package/cjs/common/enums.js.map +1 -1
  68. package/cjs/common/generator.js.map +1 -1
  69. package/cjs/common/index.js.map +1 -1
  70. package/cjs/common/matrix.js.map +1 -1
  71. package/cjs/common/morphing-utils.js.map +1 -1
  72. package/cjs/common/path-svg.js.map +1 -1
  73. package/cjs/common/path.js.map +1 -1
  74. package/cjs/common/polygon.js.map +1 -1
  75. package/cjs/common/render-area.js.map +1 -1
  76. package/cjs/common/render-command-list.js.map +1 -1
  77. package/cjs/common/render-curve.js.map +1 -1
  78. package/cjs/common/seg-context.js.map +1 -1
  79. package/cjs/common/shape/arc.js.map +1 -1
  80. package/cjs/common/shape/rect.d.ts +1 -1
  81. package/cjs/common/shape/rect.js.map +1 -1
  82. package/cjs/common/sort.js.map +1 -1
  83. package/cjs/common/split-path.js.map +1 -1
  84. package/cjs/common/store.js.map +1 -1
  85. package/cjs/common/text.js.map +1 -1
  86. package/cjs/common/utils.d.ts +1 -2
  87. package/cjs/common/utils.js +6 -15
  88. package/cjs/common/utils.js.map +1 -1
  89. package/cjs/core/application.js.map +1 -1
  90. package/cjs/core/camera.js.map +1 -1
  91. package/cjs/core/contributions/env/base-contribution.js.map +1 -1
  92. package/cjs/core/contributions/env/browser-contribution.js.map +1 -1
  93. package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
  94. package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
  95. package/cjs/core/contributions/env/modules.js.map +1 -1
  96. package/cjs/core/contributions/env/taro-contribution.js.map +1 -1
  97. package/cjs/core/contributions/index.js.map +1 -1
  98. package/cjs/core/contributions/interface.js.map +1 -1
  99. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  100. package/cjs/core/contributions/layerHandler/modules.js.map +1 -1
  101. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  102. package/cjs/core/contributions/modules.js.map +1 -1
  103. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  104. package/cjs/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  105. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  106. package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
  107. package/cjs/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  108. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  109. package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
  110. package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
  111. package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
  112. package/cjs/core/contributions/window/modules.js.map +1 -1
  113. package/cjs/core/contributions/window/native-contribution.js.map +1 -1
  114. package/cjs/core/contributions/window/node-contribution.js.map +1 -1
  115. package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
  116. package/cjs/core/core-modules.js.map +1 -1
  117. package/cjs/core/global.d.ts +2 -2
  118. package/cjs/core/global.js +2 -1
  119. package/cjs/core/global.js.map +1 -1
  120. package/cjs/core/graphic-utils.js +1 -1
  121. package/cjs/core/graphic-utils.js.map +1 -1
  122. package/cjs/core/index.js +1 -1
  123. package/cjs/core/index.js.map +1 -1
  124. package/cjs/core/layer-service.js +1 -1
  125. package/cjs/core/layer-service.js.map +1 -1
  126. package/cjs/core/layer.js +1 -1
  127. package/cjs/core/layer.js.map +1 -1
  128. package/cjs/core/light.js +1 -1
  129. package/cjs/core/light.js.map +1 -1
  130. package/cjs/core/stage.js +1 -1
  131. package/cjs/core/stage.js.map +1 -1
  132. package/cjs/core/window.js +1 -1
  133. package/cjs/core/window.js.map +1 -1
  134. package/cjs/create.js.map +1 -1
  135. package/cjs/event/constant.js +1 -1
  136. package/cjs/event/constant.js.map +1 -1
  137. package/cjs/event/event-manager.js +1 -1
  138. package/cjs/event/event-manager.js.map +1 -1
  139. package/cjs/event/event-system.js +1 -1
  140. package/cjs/event/event-system.js.map +1 -1
  141. package/cjs/event/event-target.js +1 -2
  142. package/cjs/event/event-target.js.map +1 -1
  143. package/cjs/event/extension/drag.js.map +1 -1
  144. package/cjs/event/extension/gesture.js.map +1 -1
  145. package/cjs/event/extension/index.js.map +1 -1
  146. package/cjs/event/federated-event/base-event.js.map +1 -1
  147. package/cjs/event/federated-event/custom-event.js.map +1 -1
  148. package/cjs/event/federated-event/index.js.map +1 -1
  149. package/cjs/event/federated-event/mouse-event.js.map +1 -1
  150. package/cjs/event/federated-event/pointer-event.js.map +1 -1
  151. package/cjs/event/federated-event/wheel-event.js.map +1 -1
  152. package/cjs/event/index.js +1 -1
  153. package/cjs/event/index.js.map +1 -1
  154. package/cjs/event/interface.js +1 -1
  155. package/cjs/event/interface.js.map +1 -1
  156. package/cjs/event/type.js +1 -1
  157. package/cjs/event/type.js.map +1 -1
  158. package/cjs/event/util.js +1 -1
  159. package/cjs/event/util.js.map +1 -1
  160. package/cjs/export.js.map +1 -1
  161. package/cjs/graphic/arc.js.map +1 -1
  162. package/cjs/graphic/arc3d.js.map +1 -1
  163. package/cjs/graphic/area.js.map +1 -1
  164. package/cjs/graphic/bounds.js.map +1 -1
  165. package/cjs/graphic/builtin-symbol/arrow.js.map +1 -1
  166. package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  167. package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  168. package/cjs/graphic/builtin-symbol/circle.js.map +1 -1
  169. package/cjs/graphic/builtin-symbol/cross.js.map +1 -1
  170. package/cjs/graphic/builtin-symbol/diamond.js.map +1 -1
  171. package/cjs/graphic/builtin-symbol/index.js.map +1 -1
  172. package/cjs/graphic/builtin-symbol/interface.js.map +1 -1
  173. package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
  174. package/cjs/graphic/builtin-symbol/square.js.map +1 -1
  175. package/cjs/graphic/builtin-symbol/star.js.map +1 -1
  176. package/cjs/graphic/builtin-symbol/stroke.js.map +1 -1
  177. package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  178. package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -1
  179. package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -1
  180. package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -1
  181. package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -1
  182. package/cjs/graphic/builtin-symbol/triangle.js.map +1 -1
  183. package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
  184. package/cjs/graphic/builtin-symbol/wedge.js.map +1 -1
  185. package/cjs/graphic/builtin-symbol/wye.js.map +1 -1
  186. package/cjs/graphic/circle.js.map +1 -1
  187. package/cjs/graphic/config.js +4 -2
  188. package/cjs/graphic/config.js.map +1 -1
  189. package/cjs/graphic/glyph.js.map +1 -1
  190. package/cjs/graphic/graphic-creator.js.map +1 -1
  191. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  192. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  193. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  194. package/cjs/graphic/graphic-service/common-contribution.js.map +1 -1
  195. package/cjs/graphic/graphic-service/default-theme.js.map +1 -1
  196. package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
  197. package/cjs/graphic/graphic-service/graphic-service.js +30 -25
  198. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  199. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  200. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  201. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  202. package/cjs/graphic/graphic-service/theme-service.js.map +1 -1
  203. package/cjs/graphic/graphic.js +1 -1
  204. package/cjs/graphic/graphic.js.map +1 -1
  205. package/cjs/graphic/group.js.map +1 -1
  206. package/cjs/graphic/image.js.map +1 -1
  207. package/cjs/graphic/index.js.map +1 -1
  208. package/cjs/graphic/line.js.map +1 -1
  209. package/cjs/graphic/node-tree.js.map +1 -1
  210. package/cjs/graphic/path.js.map +1 -1
  211. package/cjs/graphic/polygon.js.map +1 -1
  212. package/cjs/graphic/pyramid3d.js.map +1 -1
  213. package/cjs/graphic/rect.js.map +1 -1
  214. package/cjs/graphic/rect3d.js.map +1 -1
  215. package/cjs/graphic/richtext/frame.js.map +1 -1
  216. package/cjs/graphic/richtext/icon.js.map +1 -1
  217. package/cjs/graphic/richtext/line.js.map +1 -1
  218. package/cjs/graphic/richtext/paragraph.js.map +1 -1
  219. package/cjs/graphic/richtext/utils.js +8 -6
  220. package/cjs/graphic/richtext/utils.js.map +1 -1
  221. package/cjs/graphic/richtext/wrapper.js.map +1 -1
  222. package/cjs/graphic/richtext.js.map +1 -1
  223. package/cjs/graphic/shadow-root.js.map +1 -1
  224. package/cjs/graphic/symbol.js.map +1 -1
  225. package/cjs/graphic/text.js.map +1 -1
  226. package/cjs/graphic/theme.js.map +1 -1
  227. package/cjs/graphic/tools.js.map +1 -1
  228. package/cjs/graphic/wrap-text.js.map +1 -1
  229. package/cjs/index.js.map +1 -1
  230. package/cjs/interface/animate.js.map +1 -1
  231. package/cjs/interface/camera.js.map +1 -1
  232. package/cjs/interface/canvas.js.map +1 -1
  233. package/cjs/interface/color.js.map +1 -1
  234. package/cjs/interface/common.js.map +1 -1
  235. package/cjs/interface/context.d.ts +3 -3
  236. package/cjs/interface/context.js.map +1 -1
  237. package/cjs/interface/contribution.js.map +1 -1
  238. package/cjs/interface/creator.js.map +1 -1
  239. package/cjs/interface/global.js.map +1 -1
  240. package/cjs/interface/graphic/arc.js.map +1 -1
  241. package/cjs/interface/graphic/arc3d.js.map +1 -1
  242. package/cjs/interface/graphic/area.d.ts +1 -1
  243. package/cjs/interface/graphic/area.js.map +1 -1
  244. package/cjs/interface/graphic/bounds.js.map +1 -1
  245. package/cjs/interface/graphic/circle.js.map +1 -1
  246. package/cjs/interface/graphic/creator.js.map +1 -1
  247. package/cjs/interface/graphic/dynamic-path.js.map +1 -1
  248. package/cjs/interface/graphic/ellipse.js.map +1 -1
  249. package/cjs/interface/graphic/face3d.js.map +1 -1
  250. package/cjs/interface/graphic/glyph.js.map +1 -1
  251. package/cjs/interface/graphic/group.js.map +1 -1
  252. package/cjs/interface/graphic/image.js.map +1 -1
  253. package/cjs/interface/graphic/index.js.map +1 -1
  254. package/cjs/interface/graphic/isogon.js.map +1 -1
  255. package/cjs/interface/graphic/line.d.ts +1 -1
  256. package/cjs/interface/graphic/line.js.map +1 -1
  257. package/cjs/interface/graphic/path.js.map +1 -1
  258. package/cjs/interface/graphic/polygon.js.map +1 -1
  259. package/cjs/interface/graphic/polyline.js.map +1 -1
  260. package/cjs/interface/graphic/pyramid3d.js.map +1 -1
  261. package/cjs/interface/graphic/rect.js.map +1 -1
  262. package/cjs/interface/graphic/rect3d.js.map +1 -1
  263. package/cjs/interface/graphic/richText.d.ts +4 -2
  264. package/cjs/interface/graphic/richText.js.map +1 -1
  265. package/cjs/interface/graphic/shadow-root.js.map +1 -1
  266. package/cjs/interface/graphic/svg.js.map +1 -1
  267. package/cjs/interface/graphic/symbol.js.map +1 -1
  268. package/cjs/interface/graphic/text.js.map +1 -1
  269. package/cjs/interface/graphic/theme.js.map +1 -1
  270. package/cjs/interface/graphic/util.js.map +1 -1
  271. package/cjs/interface/graphic-utils.js.map +1 -1
  272. package/cjs/interface/graphic.d.ts +4 -4
  273. package/cjs/interface/graphic.js.map +1 -1
  274. package/cjs/interface/index.js.map +1 -1
  275. package/cjs/interface/layer.js.map +1 -1
  276. package/cjs/interface/light.js.map +1 -1
  277. package/cjs/interface/matrix.js.map +1 -1
  278. package/cjs/interface/node-tree.js.map +1 -1
  279. package/cjs/interface/path.js.map +1 -1
  280. package/cjs/interface/stage.js.map +1 -1
  281. package/cjs/interface/util.js.map +1 -1
  282. package/cjs/kits/env.js.map +1 -1
  283. package/cjs/kits/index.js.map +1 -1
  284. package/cjs/modules.js.map +1 -1
  285. package/cjs/picker/canvas-picker-service.js.map +1 -1
  286. package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  287. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  288. package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  289. package/cjs/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  290. package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  291. package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  292. package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  293. package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  294. package/cjs/picker/contributions/canvas-picker/module.js.map +1 -1
  295. package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  296. package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  297. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  298. package/cjs/picker/contributions/canvas-picker/rect-picker.js +1 -1
  299. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  300. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  301. package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  302. package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  303. package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  304. package/cjs/picker/contributions/constants.js.map +1 -1
  305. package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
  306. package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
  307. package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
  308. package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  309. package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
  310. package/cjs/picker/contributions/math-picker/module.js.map +1 -1
  311. package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
  312. package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  313. package/cjs/picker/contributions/math-picker/rect-picker.js +1 -1
  314. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  315. package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  316. package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
  317. package/cjs/picker/contributions/modules.js.map +1 -1
  318. package/cjs/picker/contributions/old/circle-picker.js.map +1 -1
  319. package/cjs/picker/contributions/old/rect-picker.js.map +1 -1
  320. package/cjs/picker/global-picker-service.js.map +1 -1
  321. package/cjs/picker/index.js.map +1 -1
  322. package/cjs/picker/math-picker-service.js.map +1 -1
  323. package/cjs/picker/pick-interceptor.js.map +1 -1
  324. package/cjs/picker/pick-modules.js.map +1 -1
  325. package/cjs/picker/picker-service.js.map +1 -1
  326. package/cjs/picker/type.js.map +1 -1
  327. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  328. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  329. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  330. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  331. package/cjs/plugins/interface.js.map +1 -1
  332. package/cjs/plugins/plugin-modules.js.map +1 -1
  333. package/cjs/plugins/plugin-service.js.map +1 -1
  334. package/cjs/render/contributions/interface.js.map +1 -1
  335. package/cjs/render/contributions/modules.js.map +1 -1
  336. package/cjs/render/contributions/render/arc-render.d.ts +1 -1
  337. package/cjs/render/contributions/render/arc-render.js +3 -3
  338. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  339. package/cjs/render/contributions/render/arc3d-render.js +6 -6
  340. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  341. package/cjs/render/contributions/render/area-render.js +4 -4
  342. package/cjs/render/contributions/render/area-render.js.map +1 -1
  343. package/cjs/render/contributions/render/base-render.js.map +1 -1
  344. package/cjs/render/contributions/render/circle-render.js +1 -1
  345. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  346. package/cjs/render/contributions/render/clear-screen.js.map +1 -1
  347. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  348. package/cjs/render/contributions/render/contributions/area-contribution-render.js +2 -6
  349. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  350. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  351. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  352. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  353. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  354. package/cjs/render/contributions/render/contributions/index.js.map +1 -1
  355. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  356. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  357. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +2 -2
  358. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  359. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  360. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  361. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  362. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  363. package/cjs/render/contributions/render/graphic-render.js.map +1 -1
  364. package/cjs/render/contributions/render/group-render.js +1 -1
  365. package/cjs/render/contributions/render/group-render.js.map +1 -1
  366. package/cjs/render/contributions/render/image-render.js.map +1 -1
  367. package/cjs/render/contributions/render/incremental-area-render.js +1 -1
  368. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  369. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  370. package/cjs/render/contributions/render/incremental-line-render.js +1 -1
  371. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  372. package/cjs/render/contributions/render/index.js.map +1 -1
  373. package/cjs/render/contributions/render/line-render.js +4 -4
  374. package/cjs/render/contributions/render/line-render.js.map +1 -1
  375. package/cjs/render/contributions/render/module.js.map +1 -1
  376. package/cjs/render/contributions/render/path-render.js +1 -1
  377. package/cjs/render/contributions/render/path-render.js.map +1 -1
  378. package/cjs/render/contributions/render/polygon-render.js +1 -1
  379. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  380. package/cjs/render/contributions/render/pyramid3d-render.js +3 -3
  381. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  382. package/cjs/render/contributions/render/rect-render.js +1 -1
  383. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  384. package/cjs/render/contributions/render/rect3d-render.js +3 -3
  385. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  386. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  387. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  388. package/cjs/render/contributions/render/symbol-render.js +1 -1
  389. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  390. package/cjs/render/contributions/render/symbol.js.map +1 -1
  391. package/cjs/render/contributions/render/text-render.js +5 -5
  392. package/cjs/render/contributions/render/text-render.js.map +1 -1
  393. package/cjs/render/contributions/render/utils.d.ts +3 -3
  394. package/cjs/render/contributions/render/utils.js +3 -3
  395. package/cjs/render/contributions/render/utils.js.map +1 -1
  396. package/cjs/render/index.js.map +1 -1
  397. package/cjs/render/render-modules.js.map +1 -1
  398. package/cjs/render/render-service.js.map +1 -1
  399. package/cjs/resource-loader/loader.d.ts +1 -1
  400. package/cjs/resource-loader/loader.js.map +1 -1
  401. package/cjs/tapable/Hook.js.map +1 -1
  402. package/cjs/tapable/SyncHook.js.map +1 -1
  403. package/cjs/tapable/index.js.map +1 -1
  404. package/dist/vrender.js.js +1 -1
  405. package/dist/vrender.js.min.js +1 -1
  406. package/es/allocator/allocator-modules.js.map +1 -1
  407. package/es/allocator/canvas-allocate.js.map +1 -1
  408. package/es/allocator/graphic-allocate.js.map +1 -1
  409. package/es/allocator/interface.js.map +1 -1
  410. package/es/allocator/matrix-allocate.js.map +1 -1
  411. package/es/allocator/point-allocate.js.map +1 -1
  412. package/es/animate/Ticker/default-ticker.js.map +1 -1
  413. package/es/animate/Ticker/index.js.map +1 -1
  414. package/es/animate/Ticker/interface.js.map +1 -1
  415. package/es/animate/animate.js.map +1 -1
  416. package/es/animate/config.js.map +1 -1
  417. package/es/animate/custom-animate.d.ts +2 -2
  418. package/es/animate/custom-animate.js +12 -13
  419. package/es/animate/custom-animate.js.map +1 -1
  420. package/es/animate/easing.js.map +1 -1
  421. package/es/animate/index.js.map +1 -1
  422. package/es/animate/morphing.js +5 -4
  423. package/es/animate/morphing.js.map +1 -1
  424. package/es/animate/timeline.js +2 -1
  425. package/es/animate/timeline.js.map +1 -1
  426. package/es/canvas/contributions/browser/canvas.js.map +1 -1
  427. package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
  428. package/es/canvas/contributions/browser/context.d.ts +4 -2
  429. package/es/canvas/contributions/browser/context.js +6 -5
  430. package/es/canvas/contributions/browser/context.js.map +1 -1
  431. package/es/canvas/contributions/browser/index.js.map +1 -1
  432. package/es/canvas/contributions/browser/modules.js.map +1 -1
  433. package/es/canvas/contributions/feishu/canvas.js.map +1 -1
  434. package/es/canvas/contributions/feishu/context.js.map +1 -1
  435. package/es/canvas/contributions/feishu/index.js.map +1 -1
  436. package/es/canvas/contributions/feishu/modules.js.map +1 -1
  437. package/es/canvas/contributions/lynx/canvas.js.map +1 -1
  438. package/es/canvas/contributions/lynx/context.js.map +1 -1
  439. package/es/canvas/contributions/lynx/index.js.map +1 -1
  440. package/es/canvas/contributions/lynx/modules.js.map +1 -1
  441. package/es/canvas/contributions/modules.js.map +1 -1
  442. package/es/canvas/contributions/taro/canvas.js.map +1 -1
  443. package/es/canvas/contributions/taro/context.js +6 -5
  444. package/es/canvas/contributions/taro/context.js.map +1 -1
  445. package/es/canvas/contributions/taro/index.js.map +1 -1
  446. package/es/canvas/contributions/taro/modules.js.map +1 -1
  447. package/es/canvas/contributions/tt/canvas.js.map +1 -1
  448. package/es/canvas/contributions/tt/context.js.map +1 -1
  449. package/es/canvas/contributions/tt/index.js.map +1 -1
  450. package/es/canvas/contributions/tt/modules.js.map +1 -1
  451. package/es/canvas/empty-context.js.map +1 -1
  452. package/es/canvas/index.js.map +1 -1
  453. package/es/canvas/interface.js.map +1 -1
  454. package/es/canvas/util.js.map +1 -1
  455. package/es/color-string/colorName.js.map +1 -1
  456. package/es/color-string/index.js.map +1 -1
  457. package/es/color-string/interpolate.js.map +1 -1
  458. package/es/common/bezier.js.map +1 -1
  459. package/es/common/bounds-context.js.map +1 -1
  460. package/es/common/canvas-utils.d.ts +1 -1
  461. package/es/common/canvas-utils.js +3 -6
  462. package/es/common/canvas-utils.js.map +1 -1
  463. package/es/common/contribution-provider.js.map +1 -1
  464. package/es/common/curve/basis.js.map +1 -1
  465. package/es/common/curve/common.js.map +1 -1
  466. package/es/common/curve/index.js.map +1 -1
  467. package/es/common/curve/interface.js.map +1 -1
  468. package/es/common/curve/linear-closed.js.map +1 -1
  469. package/es/common/curve/linear.js.map +1 -1
  470. package/es/common/curve/monotone.js.map +1 -1
  471. package/es/common/curve/step.js.map +1 -1
  472. package/es/common/enums.js.map +1 -1
  473. package/es/common/generator.js.map +1 -1
  474. package/es/common/index.js.map +1 -1
  475. package/es/common/matrix.js.map +1 -1
  476. package/es/common/morphing-utils.js.map +1 -1
  477. package/es/common/path-svg.js.map +1 -1
  478. package/es/common/path.js.map +1 -1
  479. package/es/common/polygon.js.map +1 -1
  480. package/es/common/render-area.js.map +1 -1
  481. package/es/common/render-command-list.js.map +1 -1
  482. package/es/common/render-curve.js.map +1 -1
  483. package/es/common/seg-context.js.map +1 -1
  484. package/es/common/shape/arc.js.map +1 -1
  485. package/es/common/shape/rect.d.ts +1 -1
  486. package/es/common/shape/rect.js.map +1 -1
  487. package/es/common/sort.js.map +1 -1
  488. package/es/common/split-path.js.map +1 -1
  489. package/es/common/store.js.map +1 -1
  490. package/es/common/text.js.map +1 -1
  491. package/es/common/utils.d.ts +1 -2
  492. package/es/common/utils.js +5 -14
  493. package/es/common/utils.js.map +1 -1
  494. package/es/core/application.js.map +1 -1
  495. package/es/core/camera.js.map +1 -1
  496. package/es/core/contributions/env/base-contribution.js.map +1 -1
  497. package/es/core/contributions/env/browser-contribution.js.map +1 -1
  498. package/es/core/contributions/env/feishu-contribution.js.map +1 -1
  499. package/es/core/contributions/env/lynx-contribution.js.map +1 -1
  500. package/es/core/contributions/env/modules.js.map +1 -1
  501. package/es/core/contributions/env/taro-contribution.js.map +1 -1
  502. package/es/core/contributions/index.js.map +1 -1
  503. package/es/core/contributions/interface.js.map +1 -1
  504. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  505. package/es/core/contributions/layerHandler/modules.js.map +1 -1
  506. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  507. package/es/core/contributions/modules.js.map +1 -1
  508. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  509. package/es/core/contributions/textMeasure/ITextMeasure.js.map +1 -1
  510. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  511. package/es/core/contributions/textMeasure/modules.js.map +1 -1
  512. package/es/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
  513. package/es/core/contributions/window/base-contribution.js.map +1 -1
  514. package/es/core/contributions/window/browser-contribution.js.map +1 -1
  515. package/es/core/contributions/window/feishu-contribution.js.map +1 -1
  516. package/es/core/contributions/window/lynx-contribution.js.map +1 -1
  517. package/es/core/contributions/window/modules.js.map +1 -1
  518. package/es/core/contributions/window/native-contribution.js.map +1 -1
  519. package/es/core/contributions/window/node-contribution.js.map +1 -1
  520. package/es/core/contributions/window/taro-contribution.js.map +1 -1
  521. package/es/core/core-modules.js.map +1 -1
  522. package/es/core/global.d.ts +2 -2
  523. package/es/core/global.js +2 -1
  524. package/es/core/global.js.map +1 -1
  525. package/es/core/graphic-utils.js +1 -1
  526. package/es/core/graphic-utils.js.map +1 -1
  527. package/es/core/index.js +1 -1
  528. package/es/core/index.js.map +1 -1
  529. package/es/core/layer-service.js +1 -1
  530. package/es/core/layer-service.js.map +1 -1
  531. package/es/core/layer.js +1 -1
  532. package/es/core/layer.js.map +1 -1
  533. package/es/core/light.js +1 -1
  534. package/es/core/light.js.map +1 -1
  535. package/es/core/stage.js +1 -1
  536. package/es/core/stage.js.map +1 -1
  537. package/es/core/window.js +1 -1
  538. package/es/core/window.js.map +1 -1
  539. package/es/create.js.map +1 -1
  540. package/es/event/constant.js +1 -1
  541. package/es/event/constant.js.map +1 -1
  542. package/es/event/event-manager.js +1 -1
  543. package/es/event/event-manager.js.map +1 -1
  544. package/es/event/event-system.js +1 -1
  545. package/es/event/event-system.js.map +1 -1
  546. package/es/event/event-target.js +1 -2
  547. package/es/event/event-target.js.map +1 -1
  548. package/es/event/extension/drag.js.map +1 -1
  549. package/es/event/extension/gesture.js.map +1 -1
  550. package/es/event/extension/index.js.map +1 -1
  551. package/es/event/federated-event/base-event.js.map +1 -1
  552. package/es/event/federated-event/custom-event.js.map +1 -1
  553. package/es/event/federated-event/index.js.map +1 -1
  554. package/es/event/federated-event/mouse-event.js.map +1 -1
  555. package/es/event/federated-event/pointer-event.js.map +1 -1
  556. package/es/event/federated-event/wheel-event.js.map +1 -1
  557. package/es/event/index.js +1 -1
  558. package/es/event/index.js.map +1 -1
  559. package/es/event/interface.js +1 -1
  560. package/es/event/interface.js.map +1 -1
  561. package/es/event/type.js +1 -1
  562. package/es/event/type.js.map +1 -1
  563. package/es/event/util.js +1 -1
  564. package/es/event/util.js.map +1 -1
  565. package/es/export.js.map +1 -1
  566. package/es/graphic/arc.js.map +1 -1
  567. package/es/graphic/arc3d.js.map +1 -1
  568. package/es/graphic/area.js.map +1 -1
  569. package/es/graphic/bounds.js.map +1 -1
  570. package/es/graphic/builtin-symbol/arrow.js.map +1 -1
  571. package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  572. package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  573. package/es/graphic/builtin-symbol/circle.js.map +1 -1
  574. package/es/graphic/builtin-symbol/cross.js.map +1 -1
  575. package/es/graphic/builtin-symbol/diamond.js.map +1 -1
  576. package/es/graphic/builtin-symbol/index.js.map +1 -1
  577. package/es/graphic/builtin-symbol/interface.js.map +1 -1
  578. package/es/graphic/builtin-symbol/rect.js.map +1 -1
  579. package/es/graphic/builtin-symbol/square.js.map +1 -1
  580. package/es/graphic/builtin-symbol/star.js.map +1 -1
  581. package/es/graphic/builtin-symbol/stroke.js.map +1 -1
  582. package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  583. package/es/graphic/builtin-symbol/triangle-down.js.map +1 -1
  584. package/es/graphic/builtin-symbol/triangle-left.js.map +1 -1
  585. package/es/graphic/builtin-symbol/triangle-right.js.map +1 -1
  586. package/es/graphic/builtin-symbol/triangle-up.js.map +1 -1
  587. package/es/graphic/builtin-symbol/triangle.js.map +1 -1
  588. package/es/graphic/builtin-symbol/utils.js.map +1 -1
  589. package/es/graphic/builtin-symbol/wedge.js.map +1 -1
  590. package/es/graphic/builtin-symbol/wye.js.map +1 -1
  591. package/es/graphic/circle.js.map +1 -1
  592. package/es/graphic/config.js +4 -2
  593. package/es/graphic/config.js.map +1 -1
  594. package/es/graphic/glyph.js.map +1 -1
  595. package/es/graphic/graphic-creator.js.map +1 -1
  596. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  597. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  598. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  599. package/es/graphic/graphic-service/common-contribution.js.map +1 -1
  600. package/es/graphic/graphic-service/default-theme.js.map +1 -1
  601. package/es/graphic/graphic-service/graphic-module.js.map +1 -1
  602. package/es/graphic/graphic-service/graphic-service.js +30 -26
  603. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  604. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  605. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  606. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  607. package/es/graphic/graphic-service/theme-service.js.map +1 -1
  608. package/es/graphic/graphic.js +1 -1
  609. package/es/graphic/graphic.js.map +1 -1
  610. package/es/graphic/group.js.map +1 -1
  611. package/es/graphic/image.js.map +1 -1
  612. package/es/graphic/index.js.map +1 -1
  613. package/es/graphic/line.js.map +1 -1
  614. package/es/graphic/node-tree.js.map +1 -1
  615. package/es/graphic/path.js.map +1 -1
  616. package/es/graphic/polygon.js.map +1 -1
  617. package/es/graphic/pyramid3d.js.map +1 -1
  618. package/es/graphic/rect.js.map +1 -1
  619. package/es/graphic/rect3d.js.map +1 -1
  620. package/es/graphic/richtext/frame.js.map +1 -1
  621. package/es/graphic/richtext/icon.js.map +1 -1
  622. package/es/graphic/richtext/line.js.map +1 -1
  623. package/es/graphic/richtext/paragraph.js.map +1 -1
  624. package/es/graphic/richtext/utils.js +8 -6
  625. package/es/graphic/richtext/utils.js.map +1 -1
  626. package/es/graphic/richtext/wrapper.js.map +1 -1
  627. package/es/graphic/richtext.js.map +1 -1
  628. package/es/graphic/shadow-root.js.map +1 -1
  629. package/es/graphic/symbol.js.map +1 -1
  630. package/es/graphic/text.js.map +1 -1
  631. package/es/graphic/theme.js.map +1 -1
  632. package/es/graphic/tools.js.map +1 -1
  633. package/es/graphic/wrap-text.js.map +1 -1
  634. package/es/index.js.map +1 -1
  635. package/es/interface/animate.js.map +1 -1
  636. package/es/interface/camera.js.map +1 -1
  637. package/es/interface/canvas.js.map +1 -1
  638. package/es/interface/color.js.map +1 -1
  639. package/es/interface/common.js.map +1 -1
  640. package/es/interface/context.d.ts +3 -3
  641. package/es/interface/context.js.map +1 -1
  642. package/es/interface/contribution.js.map +1 -1
  643. package/es/interface/creator.js.map +1 -1
  644. package/es/interface/global.js.map +1 -1
  645. package/es/interface/graphic/arc.js.map +1 -1
  646. package/es/interface/graphic/arc3d.js.map +1 -1
  647. package/es/interface/graphic/area.d.ts +1 -1
  648. package/es/interface/graphic/area.js.map +1 -1
  649. package/es/interface/graphic/bounds.js.map +1 -1
  650. package/es/interface/graphic/circle.js.map +1 -1
  651. package/es/interface/graphic/creator.js.map +1 -1
  652. package/es/interface/graphic/dynamic-path.js.map +1 -1
  653. package/es/interface/graphic/ellipse.js.map +1 -1
  654. package/es/interface/graphic/face3d.js.map +1 -1
  655. package/es/interface/graphic/glyph.js.map +1 -1
  656. package/es/interface/graphic/group.js.map +1 -1
  657. package/es/interface/graphic/image.js.map +1 -1
  658. package/es/interface/graphic/index.js.map +1 -1
  659. package/es/interface/graphic/isogon.js.map +1 -1
  660. package/es/interface/graphic/line.d.ts +1 -1
  661. package/es/interface/graphic/line.js.map +1 -1
  662. package/es/interface/graphic/path.js.map +1 -1
  663. package/es/interface/graphic/polygon.js.map +1 -1
  664. package/es/interface/graphic/polyline.js.map +1 -1
  665. package/es/interface/graphic/pyramid3d.js.map +1 -1
  666. package/es/interface/graphic/rect.js.map +1 -1
  667. package/es/interface/graphic/rect3d.js.map +1 -1
  668. package/es/interface/graphic/richText.d.ts +4 -2
  669. package/es/interface/graphic/richText.js.map +1 -1
  670. package/es/interface/graphic/shadow-root.js.map +1 -1
  671. package/es/interface/graphic/svg.js.map +1 -1
  672. package/es/interface/graphic/symbol.js.map +1 -1
  673. package/es/interface/graphic/text.js.map +1 -1
  674. package/es/interface/graphic/theme.js.map +1 -1
  675. package/es/interface/graphic/util.js.map +1 -1
  676. package/es/interface/graphic-utils.js.map +1 -1
  677. package/es/interface/graphic.d.ts +4 -4
  678. package/es/interface/graphic.js.map +1 -1
  679. package/es/interface/index.js.map +1 -1
  680. package/es/interface/layer.js.map +1 -1
  681. package/es/interface/light.js.map +1 -1
  682. package/es/interface/matrix.js.map +1 -1
  683. package/es/interface/node-tree.js.map +1 -1
  684. package/es/interface/path.js.map +1 -1
  685. package/es/interface/stage.js.map +1 -1
  686. package/es/interface/util.js.map +1 -1
  687. package/es/kits/env.js.map +1 -1
  688. package/es/kits/index.js.map +1 -1
  689. package/es/modules.js.map +1 -1
  690. package/es/picker/canvas-picker-service.js.map +1 -1
  691. package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  692. package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  693. package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  694. package/es/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  695. package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  696. package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  697. package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  698. package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  699. package/es/picker/contributions/canvas-picker/module.js.map +1 -1
  700. package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  701. package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  702. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  703. package/es/picker/contributions/canvas-picker/rect-picker.js +1 -1
  704. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  705. package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  706. package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  707. package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  708. package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  709. package/es/picker/contributions/constants.js.map +1 -1
  710. package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
  711. package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
  712. package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
  713. package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  714. package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
  715. package/es/picker/contributions/math-picker/module.js.map +1 -1
  716. package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
  717. package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  718. package/es/picker/contributions/math-picker/rect-picker.js +1 -1
  719. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  720. package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  721. package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
  722. package/es/picker/contributions/modules.js.map +1 -1
  723. package/es/picker/contributions/old/circle-picker.js.map +1 -1
  724. package/es/picker/contributions/old/rect-picker.js.map +1 -1
  725. package/es/picker/global-picker-service.js.map +1 -1
  726. package/es/picker/index.js.map +1 -1
  727. package/es/picker/math-picker-service.js.map +1 -1
  728. package/es/picker/pick-interceptor.js.map +1 -1
  729. package/es/picker/pick-modules.js.map +1 -1
  730. package/es/picker/picker-service.js.map +1 -1
  731. package/es/picker/type.js.map +1 -1
  732. package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  733. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  734. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  735. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  736. package/es/plugins/interface.js.map +1 -1
  737. package/es/plugins/plugin-modules.js.map +1 -1
  738. package/es/plugins/plugin-service.js.map +1 -1
  739. package/es/render/contributions/interface.js.map +1 -1
  740. package/es/render/contributions/modules.js.map +1 -1
  741. package/es/render/contributions/render/arc-render.d.ts +1 -1
  742. package/es/render/contributions/render/arc-render.js +3 -3
  743. package/es/render/contributions/render/arc-render.js.map +1 -1
  744. package/es/render/contributions/render/arc3d-render.js +6 -6
  745. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  746. package/es/render/contributions/render/area-render.js +4 -4
  747. package/es/render/contributions/render/area-render.js.map +1 -1
  748. package/es/render/contributions/render/base-render.js.map +1 -1
  749. package/es/render/contributions/render/circle-render.js +1 -1
  750. package/es/render/contributions/render/circle-render.js.map +1 -1
  751. package/es/render/contributions/render/clear-screen.js.map +1 -1
  752. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  753. package/es/render/contributions/render/contributions/area-contribution-render.js +1 -3
  754. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  755. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  756. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  757. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  758. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  759. package/es/render/contributions/render/contributions/index.js.map +1 -1
  760. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  761. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  762. package/es/render/contributions/render/contributions/rect-contribution-render.js +2 -2
  763. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  764. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  765. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  766. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  767. package/es/render/contributions/render/glyph-render.js.map +1 -1
  768. package/es/render/contributions/render/graphic-render.js.map +1 -1
  769. package/es/render/contributions/render/group-render.js +1 -1
  770. package/es/render/contributions/render/group-render.js.map +1 -1
  771. package/es/render/contributions/render/image-render.js.map +1 -1
  772. package/es/render/contributions/render/incremental-area-render.js +1 -1
  773. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  774. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  775. package/es/render/contributions/render/incremental-line-render.js +1 -1
  776. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  777. package/es/render/contributions/render/index.js.map +1 -1
  778. package/es/render/contributions/render/line-render.js +4 -4
  779. package/es/render/contributions/render/line-render.js.map +1 -1
  780. package/es/render/contributions/render/module.js.map +1 -1
  781. package/es/render/contributions/render/path-render.js +1 -1
  782. package/es/render/contributions/render/path-render.js.map +1 -1
  783. package/es/render/contributions/render/polygon-render.js +1 -1
  784. package/es/render/contributions/render/polygon-render.js.map +1 -1
  785. package/es/render/contributions/render/pyramid3d-render.js +3 -3
  786. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  787. package/es/render/contributions/render/rect-render.js +1 -1
  788. package/es/render/contributions/render/rect-render.js.map +1 -1
  789. package/es/render/contributions/render/rect3d-render.js +3 -3
  790. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  791. package/es/render/contributions/render/render-slector.js.map +1 -1
  792. package/es/render/contributions/render/richtext-render.js.map +1 -1
  793. package/es/render/contributions/render/symbol-render.js +1 -1
  794. package/es/render/contributions/render/symbol-render.js.map +1 -1
  795. package/es/render/contributions/render/symbol.js.map +1 -1
  796. package/es/render/contributions/render/text-render.js +5 -5
  797. package/es/render/contributions/render/text-render.js.map +1 -1
  798. package/es/render/contributions/render/utils.d.ts +3 -3
  799. package/es/render/contributions/render/utils.js +3 -4
  800. package/es/render/contributions/render/utils.js.map +1 -1
  801. package/es/render/index.js.map +1 -1
  802. package/es/render/render-modules.js.map +1 -1
  803. package/es/render/render-service.js.map +1 -1
  804. package/es/resource-loader/loader.d.ts +1 -1
  805. package/es/resource-loader/loader.js.map +1 -1
  806. package/es/tapable/Hook.js.map +1 -1
  807. package/es/tapable/SyncHook.js.map +1 -1
  808. package/es/tapable/index.js.map +1 -1
  809. package/es/tsconfig.tsbuildinfo +1 -0
  810. package/package.json +21 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/builtin-symbol/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIjD,MAAM,OAAO,iBAAiB;IAK5B,YAAY,IAAY,EAAE,IAAmB;QAF7C,YAAO,GAAW,EAAE,CAAC;QAGnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;QAClF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAChE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACrB,OAAO;SACR;QACD,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IACzC,CAAC;CACF","file":"utils.js","sourcesContent":["import { IAABBBounds, IBounds } from '@visactor/vutils';\nimport { renderCommandList } from '../../common';\nimport { IContext2d, ICustomPath2D, IGraphic } from '../../interface';\nimport { ISymbolClass } from './interface';\n\nexport class CustomSymbolClass implements ISymbolClass {\n type: string;\n path: ICustomPath2D;\n pathStr: string = '';\n\n constructor(type: string, path: ICustomPath2D) {\n this.type = type;\n this.path = path;\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n renderCommandList(this.path.commandList, ctx, x, y, size + offset, size + offset);\n return false;\n }\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n renderCommandList(this.path.commandList, ctx, x, y, size, size);\n return false;\n }\n\n bounds(size: number, bounds: IBounds) {\n if (!this.path.bounds) {\n return;\n }\n bounds.x1 = this.path.bounds.x1 * size;\n bounds.y1 = this.path.bounds.y1 * size;\n bounds.x2 = this.path.bounds.x2 * size;\n bounds.y2 = this.path.bounds.y2 * size;\n }\n}\n\n// export function CustomSymbol(): ISymbolClass {\n\n// }\n"]}
1
+ {"version":3,"sources":["../../src/graphic/builtin-symbol/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIjD,MAAM,OAAO,iBAAiB;IAK5B,YAAY,IAAY,EAAE,IAAmB;QAF7C,YAAO,GAAW,EAAE,CAAC;QAGnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;QAClF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAChE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACrB,OAAO;SACR;QACD,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACvC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IACzC,CAAC;CACF","file":"utils.js","sourcesContent":["import { IAABBBounds, IBounds } from '@visactor/vutils';\nimport { renderCommandList } from '../../common';\nimport { IContext2d, ICustomPath2D, IGraphic } from '../../interface';\nimport { ISymbolClass } from './interface';\n\nexport class CustomSymbolClass implements ISymbolClass {\n type: string;\n path: ICustomPath2D;\n pathStr: string = '';\n\n constructor(type: string, path: ICustomPath2D) {\n this.type = type;\n this.path = path;\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n renderCommandList(this.path.commandList, ctx, x, y, size + offset, size + offset);\n return false;\n }\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n renderCommandList(this.path.commandList, ctx, x, y, size, size);\n return false;\n }\n\n bounds(size: number, bounds: IBounds) {\n if (!this.path.bounds) {\n return;\n }\n bounds.x1 = this.path.bounds.x1 * size;\n bounds.y1 = this.path.bounds.y1 * size;\n bounds.x2 = this.path.bounds.x2 * size;\n bounds.y2 = this.path.bounds.y2 * size;\n }\n}\n\n// export function CustomSymbol(): ISymbolClass {\n\n// }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/builtin-symbol/wedge.ts"],"names":[],"mappings":"AAmCA,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IAC9E,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;IAC3C,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;IAC5C,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAW;IAAxB;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,8EAA8E,CAAC;IAmBnG,CAAC;IAjBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"wedge.js","sourcesContent":["import { IBounds } from '@visactor/vutils';\nimport { IContext2d, SymbolType } from '../../interface';\nimport { ISymbolClass } from './interface';\n\n/**\n * 部分源码参考 https://github.com/vega/vega/blob/main/packages/vega-scenegraph/src/path/symbols.js\n * Copyright (c) 2015-2023, University of Washington Interactive Data Lab\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n 3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nexport function wedge(ctx: IContext2d, r: number, transX: number, transY: number) {\n const h = r * 2;\n ctx.moveTo(transX, -r + transY);\n ctx.lineTo(h / 3 / 2 + transX, r + transY);\n ctx.lineTo(-h / 3 / 2 + transX, r + transY);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class WedgeSymbol implements ISymbolClass {\n type: SymbolType = 'wedge';\n pathStr: string = 'M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n return wedge(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n return wedge(ctx, r, transX, transY);\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new WedgeSymbol();\n"]}
1
+ {"version":3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AAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"wedge.js","sourcesContent":["import { IBounds } from '@visactor/vutils';\nimport { IContext2d, SymbolType } from '../../interface';\nimport { ISymbolClass } from './interface';\n\n/**\n * 部分源码参考 https://github.com/vega/vega/blob/main/packages/vega-scenegraph/src/path/symbols.js\n * Copyright (c) 2015-2023, University of Washington Interactive Data Lab\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n 3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nexport function wedge(ctx: IContext2d, r: number, transX: number, transY: number) {\n const h = r * 2;\n ctx.moveTo(transX, -r + transY);\n ctx.lineTo(h / 3 / 2 + transX, r + transY);\n ctx.lineTo(-h / 3 / 2 + transX, r + transY);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class WedgeSymbol implements ISymbolClass {\n type: SymbolType = 'wedge';\n pathStr: string = 'M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n return wedge(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n return wedge(ctx, r, transX, transY);\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new WedgeSymbol();\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/builtin-symbol/wye.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAsBjD,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;AACf,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACtB,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;AACvB,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IAC5E,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,GAAG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AAE,GAAG,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;IAC/D,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,OAAO,SAAS;IAAtB;QACE,SAAI,GAAe,KAAK,CAAC;QAEzB,YAAO,GAEL,4IAA4I,CAAC;IAsBjJ,CAAC;IApBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QAEnB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAE5B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QAEnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,SAAS,EAAE,CAAC","file":"wye.js","sourcesContent":["import { IBounds, sqrt } from '@visactor/vutils';\nimport { IContext2d, SymbolType } from '../../interface';\nimport { ISymbolClass } from './interface';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/wye.js\nconst c = -0.5;\nconst s = sqrt(3) / 2;\nconst k = 1 / sqrt(12);\nconst a = (k / 2 + 1) * 3;\nexport function wye(ctx: IContext2d, r: number, transX: number, transY: number) {\n const x0 = r / 2;\n const y0 = r * k;\n const x1 = x0;\n const y1 = r * k + r;\n const x2 = -x1;\n const y2 = y1;\n ctx.moveTo(x0 + transX, y0 + transY);\n ctx.lineTo(x1 + transX, y1 + transY);\n ctx.lineTo(x2 + transX, y2 + transY);\n ctx.lineTo(c * x0 - s * y0 + transX, s * x0 + c * y0 + transY);\n ctx.lineTo(c * x1 - s * y1 + transX, s * x1 + c * y1 + transY);\n ctx.lineTo(c * x2 - s * y2 + transX, s * x2 + c * y2 + transY);\n ctx.lineTo(c * x0 + s * y0 + transX, c * y0 - s * x0 + transY);\n ctx.lineTo(c * x1 + s * y1 + transX, c * y1 - s * x1 + transY);\n ctx.lineTo(c * x2 + s * y2 + transX, c * y2 - s * x2 + transY);\n ctx.closePath();\n return false;\n}\n\n// 以中心为锚点,size为wye外接正方形的面积\nexport class WyeSymbol implements ISymbolClass {\n type: SymbolType = 'wye';\n /* eslint-disable max-len */\n pathStr: string =\n /* eslint-disable max-len */\n 'M4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,-4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,4.51351666838205,0';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n // const r = sqrt(size / a);\n return wye(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n // const r = sqrt(size / a);\n return wye(ctx, r, transX, transY);\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n // const r = sqrt(size / a);//d3 用的这个\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new WyeSymbol();\n"]}
1
+ {"version":3,"sources":["../../src/graphic/builtin-symbol/wye.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAsBjD,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;AACf,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACtB,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;AACvB,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IAC5E,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,CA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AAe,KAAK,CAAC;QAEzB,YAAO,GAEL,4IAA4I,CAAC;IAsBjJ,CAAC;IApBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QAEnB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAE5B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QAEnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,SAAS,EAAE,CAAC","file":"wye.js","sourcesContent":["import { IBounds, sqrt } from '@visactor/vutils';\nimport { IContext2d, SymbolType } from '../../interface';\nimport { ISymbolClass } from './interface';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/wye.js\nconst c = -0.5;\nconst s = sqrt(3) / 2;\nconst k = 1 / sqrt(12);\nconst a = (k / 2 + 1) * 3;\nexport function wye(ctx: IContext2d, r: number, transX: number, transY: number) {\n const x0 = r / 2;\n const y0 = r * k;\n const x1 = x0;\n const y1 = r * k + r;\n const x2 = -x1;\n const y2 = y1;\n ctx.moveTo(x0 + transX, y0 + transY);\n ctx.lineTo(x1 + transX, y1 + transY);\n ctx.lineTo(x2 + transX, y2 + transY);\n ctx.lineTo(c * x0 - s * y0 + transX, s * x0 + c * y0 + transY);\n ctx.lineTo(c * x1 - s * y1 + transX, s * x1 + c * y1 + transY);\n ctx.lineTo(c * x2 - s * y2 + transX, s * x2 + c * y2 + transY);\n ctx.lineTo(c * x0 + s * y0 + transX, c * y0 - s * x0 + transY);\n ctx.lineTo(c * x1 + s * y1 + transX, c * y1 - s * x1 + transY);\n ctx.lineTo(c * x2 + s * y2 + transX, c * y2 - s * x2 + transY);\n ctx.closePath();\n return false;\n}\n\n// 以中心为锚点,size为wye外接正方形的面积\nexport class WyeSymbol implements ISymbolClass {\n type: SymbolType = 'wye';\n /* eslint-disable max-len */\n pathStr: string =\n /* eslint-disable max-len */\n 'M4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,-4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,4.51351666838205,0';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n // const r = sqrt(size / a);\n return wye(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n // const r = sqrt(size / a);\n return wye(ctx, r, transX, transY);\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n // const r = sqrt(size / a);//d3 用的这个\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new WyeSymbol();\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/circle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAElD,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAAC,CAAC;AAM9F,MAAM,OAAO,MAAO,SAAQ,OAAgC;IAG1D,YAAY,SAAkC,EAAE,MAAM,EAAE,CAAC,EAAE;QACzD,KAAK,CAAC,MAAM,CAAC,CAAC;QAHhB,SAAI,GAAa,QAAQ,CAAC;QAIxB,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC;IACvC,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;IACO,QAAQ;QACd,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;QACxD,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnG,CAAC;IAES,kBAA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;IACD,aAAa,CAAC,GAAW;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,qBAAqB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrD,MAAM,OAAO,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YACzC,IAAI,GAAG,KAAK,OAAO,EAAE;gBACnB,OAAO,IAAI,CAAC;aACb;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,YAAY;;QACV,MAAM,CAAC,GAAG,CAAC,CAAC;QACZ,MAAM,CAAC,GAAG,CAAC,CAAC;QAEZ,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,MAAM,MAAM,GAAG,MAAA,SAAS,CAAC,MAAM,mCAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QACtE,MAAM,UAAU,GAAG,MAAA,SAAS,CAAC,UAAU,mCAAI,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAClF,MAAM,QAAQ,GAAG,MAAA,SAAS,CAAC,QAAQ,mCAAI,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAE5E,MAAM,IAAI,GAAG,IAAI,YAAY,EAAE,CAAC;QAEhC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO,IAAI,MAAM,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;IAC3C,CAAC;CACF","file":"circle.js","sourcesContent":["import { pi2, epsilon, AABBBounds, OBBBounds, transformBounds } from '@visactor/vutils';\nimport { ICircle, ICircleGraphicAttribute } from '../interface/graphic/circle';\nimport { Graphic, GRAPHIC_UPDATE_TAG_KEY, genNumberType } from './graphic';\nimport { circleBounds, parsePadding, CustomPath2D } from '../common';\nimport { getTheme } from './theme';\nimport { graphicService } from '../modules';\n\nexport const CIRCLE_NUMBER_TYPE = genNumberType();\n\nconst CIRCLE_UPDATE_TAG_KEY = ['radius', 'startAngle', 'endAngle', ...GRAPHIC_UPDATE_TAG_KEY];\n\n/**\n * 圆形图元\n * 默认顺时针绘制\n */\nexport class Circle extends Graphic<ICircleGraphicAttribute> implements ICircle {\n type: 'circle' = 'circle';\n\n constructor(params: ICircleGraphicAttribute = { radius: 1 }) {\n super(params);\n this.numberType = CIRCLE_NUMBER_TYPE;\n }\n\n isValid(): boolean {\n return super.isValid() && this._isValid();\n }\n private _isValid(): boolean {\n const { startAngle, endAngle, radius } = this.attribute;\n return this._validNumber(startAngle) && this._validNumber(endAngle) && this._validNumber(radius);\n }\n\n protected doUpdateAABBBounds(full?: boolean): AABBBounds {\n const circleTheme = getTheme(this).circle;\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const attribute = this.attribute;\n const bounds = graphicService.updateCircleAABBBounds(\n attribute,\n getTheme(this).circle,\n this._AABBBounds,\n full,\n this\n );\n\n const { boundsPadding = circleTheme.boundsPadding } = attribute;\n const paddingArray = parsePadding(boundsPadding);\n if (paddingArray) {\n (bounds as AABBBounds).expand(paddingArray);\n }\n\n this.clearUpdateBoundTag();\n return bounds as AABBBounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n getDefaultAttribute(name: string) {\n const circleTheme = getTheme(this).circle;\n return circleTheme[name];\n }\n\n needUpdateTags(keys: string[]): boolean {\n for (let i = 0; i < CIRCLE_UPDATE_TAG_KEY.length; i++) {\n const attrKey = CIRCLE_UPDATE_TAG_KEY[i];\n if (keys.indexOf(attrKey) !== -1) {\n return true;\n }\n }\n return false;\n }\n needUpdateTag(key: string): boolean {\n for (let i = 0; i < CIRCLE_UPDATE_TAG_KEY.length; i++) {\n const attrKey = CIRCLE_UPDATE_TAG_KEY[i];\n if (key === attrKey) {\n return true;\n }\n }\n return false;\n }\n\n toCustomPath() {\n const x = 0;\n const y = 0;\n\n const attribute = this.attribute;\n const radius = attribute.radius ?? this.getDefaultAttribute('radius');\n const startAngle = attribute.startAngle ?? this.getDefaultAttribute('startAngle');\n const endAngle = attribute.endAngle ?? this.getDefaultAttribute('endAngle');\n\n const path = new CustomPath2D();\n\n path.arc(x, y, radius, startAngle, endAngle);\n\n return path;\n }\n\n clone() {\n return new Circle({ ...this.attribute });\n }\n}\n\n// addAttributeToPrototype(DefaultCircleStyle, Circle, PURE_STYLE_KEY);\n"]}
1
+ {"version":3,"sources":["../../src/graphic/circle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAElD,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAAC,CAAC;AAM9F,MAAM,OAAO,MAAO,SAAQ,OAAgC;IAG1D,YAAY,SAAkC,EAAE,MAAM,EAAE,CAAC,EAAE;QACzD,KAAK,CAAC,MAAM,CAAC,CAAC;QAHhB,SAAI,GAAa,QAAQ,CAAC;QAIxB,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC;IACvC,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;IACO,QAAQ;QACd,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;QACxD,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,Q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C,CAAC,EAAE;gBAChC,OAAO,IAAI,CAAC;aACb;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,aAAa,CAAC,GAAW;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,qBAAqB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrD,MAAM,OAAO,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YACzC,IAAI,GAAG,KAAK,OAAO,EAAE;gBACnB,OAAO,IAAI,CAAC;aACb;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,YAAY;;QACV,MAAM,CAAC,GAAG,CAAC,CAAC;QACZ,MAAM,CAAC,GAAG,CAAC,CAAC;QAEZ,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,MAAM,MAAM,GAAG,MAAA,SAAS,CAAC,MAAM,mCAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QACtE,MAAM,UAAU,GAAG,MAAA,SAAS,CAAC,UAAU,mCAAI,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAClF,MAAM,QAAQ,GAAG,MAAA,SAAS,CAAC,QAAQ,mCAAI,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAE5E,MAAM,IAAI,GAAG,IAAI,YAAY,EAAE,CAAC;QAEhC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO,IAAI,MAAM,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;IAC3C,CAAC;CACF","file":"circle.js","sourcesContent":["import { pi2, epsilon, AABBBounds, OBBBounds, transformBounds } from '@visactor/vutils';\nimport { ICircle, ICircleGraphicAttribute } from '../interface/graphic/circle';\nimport { Graphic, GRAPHIC_UPDATE_TAG_KEY, genNumberType } from './graphic';\nimport { circleBounds, parsePadding, CustomPath2D } from '../common';\nimport { getTheme } from './theme';\nimport { graphicService } from '../modules';\n\nexport const CIRCLE_NUMBER_TYPE = genNumberType();\n\nconst CIRCLE_UPDATE_TAG_KEY = ['radius', 'startAngle', 'endAngle', ...GRAPHIC_UPDATE_TAG_KEY];\n\n/**\n * 圆形图元\n * 默认顺时针绘制\n */\nexport class Circle extends Graphic<ICircleGraphicAttribute> implements ICircle {\n type: 'circle' = 'circle';\n\n constructor(params: ICircleGraphicAttribute = { radius: 1 }) {\n super(params);\n this.numberType = CIRCLE_NUMBER_TYPE;\n }\n\n isValid(): boolean {\n return super.isValid() && this._isValid();\n }\n private _isValid(): boolean {\n const { startAngle, endAngle, radius } = this.attribute;\n return this._validNumber(startAngle) && this._validNumber(endAngle) && this._validNumber(radius);\n }\n\n protected doUpdateAABBBounds(full?: boolean): AABBBounds {\n const circleTheme = getTheme(this).circle;\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const attribute = this.attribute;\n const bounds = graphicService.updateCircleAABBBounds(\n attribute,\n getTheme(this).circle,\n this._AABBBounds,\n full,\n this\n );\n\n const { boundsPadding = circleTheme.boundsPadding } = attribute;\n const paddingArray = parsePadding(boundsPadding);\n if (paddingArray) {\n (bounds as AABBBounds).expand(paddingArray);\n }\n\n this.clearUpdateBoundTag();\n return bounds as AABBBounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n getDefaultAttribute(name: string) {\n const circleTheme = getTheme(this).circle;\n return circleTheme[name];\n }\n\n needUpdateTags(keys: string[]): boolean {\n for (let i = 0; i < CIRCLE_UPDATE_TAG_KEY.length; i++) {\n const attrKey = CIRCLE_UPDATE_TAG_KEY[i];\n if (keys.indexOf(attrKey) !== -1) {\n return true;\n }\n }\n return false;\n }\n needUpdateTag(key: string): boolean {\n for (let i = 0; i < CIRCLE_UPDATE_TAG_KEY.length; i++) {\n const attrKey = CIRCLE_UPDATE_TAG_KEY[i];\n if (key === attrKey) {\n return true;\n }\n }\n return false;\n }\n\n toCustomPath() {\n const x = 0;\n const y = 0;\n\n const attribute = this.attribute;\n const radius = attribute.radius ?? this.getDefaultAttribute('radius');\n const startAngle = attribute.startAngle ?? this.getDefaultAttribute('startAngle');\n const endAngle = attribute.endAngle ?? this.getDefaultAttribute('endAngle');\n\n const path = new CustomPath2D();\n\n path.arc(x, y, radius, startAngle, endAngle);\n\n return path;\n }\n\n clone() {\n return new Circle({ ...this.attribute });\n }\n}\n\n// addAttributeToPrototype(DefaultCircleStyle, Circle, PURE_STYLE_KEY);\n"]}
@@ -23,8 +23,9 @@ export const DefaultTransform = {
23
23
  };
24
24
 
25
25
  export const DefaultFillStyle = {
26
+ fillColor: "black",
26
27
  fillOpacity: 1,
27
- fill: !1,
28
+ fill: null,
28
29
  shadowBlur: 0,
29
30
  shadowColor: "black",
30
31
  shadowOffsetX: 0,
@@ -32,6 +33,7 @@ export const DefaultFillStyle = {
32
33
  };
33
34
 
34
35
  const commonStroke = {
36
+ strokeColor: "black",
35
37
  strokeOpacity: 1,
36
38
  lineDash: [],
37
39
  lineDashOffset: 0,
@@ -40,7 +42,7 @@ const commonStroke = {
40
42
  lineJoin: "miter",
41
43
  miterLimit: 10,
42
44
  strokeBoundsBuffer: 2,
43
- stroke: !1
45
+ stroke: null
44
46
  };
45
47
 
46
48
  export const DefaultStrokeStyle = Object.assign({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6BzC,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,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EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,IAAI,EACpB,mBAAmB,EAAE,0BAA0B,EAC/C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillOpacity: 1,\n fill: false,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: false\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6BzC,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM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Y,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,IAAI,EACpB,mBAAmB,EAAE,0BAA0B,EAC/C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillColor: 'black',\n fillOpacity: 1,\n fill: null,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeColor: 'black',\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: null\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AASnD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEjD,MAAM,OAAO,KAAM,SAAQ,OAA+B;IAoBxD,YAAY,MAAuC;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QApBhB,SAAI,GAAgB,OAAO,CAAC;QAqB1B,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;QACpC,IAAI,CAAC,UAA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AK;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;QAC/C,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","file":"glyph.js","sourcesContent":["import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic, genNumberType } from './graphic';\nimport {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { graphicService } from '../modules';\n\nexport const GLYPH_NUMBER_TYPE = genNumberType();\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
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zC,OAAO;SACR;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAChC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;YACrF,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC/E,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;QAC/C,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","file":"glyph.js","sourcesContent":["import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic, genNumberType } from './graphic';\nimport {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { graphicService } from '../modules';\n\nexport const GLYPH_NUMBER_TYPE = genNumberType();\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-creator.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,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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,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,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,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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAYlE,IAAM,uCAAuC,GAA7C,MAAM,uCACX,SAAQ,oCAAoC;CACR,CAAA;AAFzB,uCAAuC;IADnD,UAAU,EAAE;GACA,uCAAuC,CAEd;SAFzB,uCAAuC","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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAYlE,IAAM,uCAAuC,GAA7C,MAAM,uCACX,SAAQ,oCAAoC;CACR,CAAA;AAFzB,uCAAuC;IADnD,UAAU,EAAE;GACA,uCAAuC,CAEd;SAFzB,uCAAuC","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,MAAM,CAAC,MAAM,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,MAAM,CAAC,MAAM,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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAYxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,oCAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,UAAU,EAAE;GACA,0CAA0C,CAEd;SAF5B,0CAA0C","file":"circle-contribution.js","sourcesContent":["import { 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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAYxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,oCAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,UAAU,EAAE;GACA,0CAA0C,CAEd;SAF5B,0CAA0C","file":"circle-contribution.js","sourcesContent":["import { 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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;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,UAAU,EAAE;GACA,oCAAoC,CAiBhD;SAjBY,oCAAoC","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,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;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,UAAU,EAAE;GACA,oCAAoC,CAiBhD;SAjBY,oCAAoC","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,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,uCAAuC,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AAE7G,OAAO,EAAE,qBAAqB,EAAE,cA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AAC,CAAC;IAGtD,IAAI,CAAC,wCAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IACjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;AAMzD,CAAC,CAAC,CAAC","file":"graphic-module.js","sourcesContent":["import { ContainerModule } from 'inversify';\nimport { bindContributionProvider } from '../../common';\nimport { ArcBoundsContribution, DefaultArcOuterBorderBoundsContribution } from './arc-contribution';\nimport { CircleBoundsContribution, DefaultCircleOuterBorderBoundsContribution } from './circle-contribution';\n// import { DefaultTheme } from './default-theme';\nimport { DefaultGraphicService, GraphicService } from './graphic-service';\nimport { DefaultPathOuterBorderBoundsContribution, PathBoundsContribution } from './path-contribution';\nimport { RectBoundsContribution, DefaultRectOuterBorderBoundsContribution } from './rect-contribution';\nimport { DefaultSymbolOuterBorderBoundsContribution, SymbolBoundsContribution } from './symbol-contribution';\n// import { DefaultThemeService, Theme, ThemeServce } from './theme-service';\n\nexport default new ContainerModule(bind => {\n bind(DefaultGraphicService).toSelf().inSingletonScope();\n bind(GraphicService).toService(DefaultGraphicService);\n\n // rect的bounds contributions\n bind(DefaultRectOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(RectBoundsContribution).toService(DefaultRectOuterBorderBoundsContribution);\n bindContributionProvider(bind, RectBoundsContribution);\n\n // symbol的bounds contributions\n bind(DefaultSymbolOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(SymbolBoundsContribution).toService(DefaultSymbolOuterBorderBoundsContribution);\n bindContributionProvider(bind, SymbolBoundsContribution);\n\n // circle的bounds contributions\n bind(DefaultCircleOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(CircleBoundsContribution).toService(DefaultCircleOuterBorderBoundsContribution);\n bindContributionProvider(bind, CircleBoundsContribution);\n\n // arc的bounds contributions\n bind(DefaultArcOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(ArcBoundsContribution).toService(DefaultArcOuterBorderBoundsContribution);\n bindContributionProvider(bind, ArcBoundsContribution);\n\n // path的bounds contributions\n bind(DefaultPathOuterBorderBoundsContribution).toSelf().inSingletonScope();\n bind(PathBoundsContribution).toService(DefaultPathOuterBorderBoundsContribution);\n bindContributionProvider(bind, PathBoundsContribution);\n // bind(DefaultThemeService).toSelf().inSingletonScope();\n // bind(ThemeServce).toService(DefaultThemeService);\n // bind(DefaultTheme).toSelf().inSingletonScope();\n // bind(Theme).toService(DefaultTheme);\n // bindContributionProvider(bind, Theme);\n});\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-service/graphic-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,uCAAuC,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AAE7G,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,wCAAwC,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,wCAAwC,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,wCAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IACjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,0CAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,0CAA0C,CAAC,CAAC;IACrF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,0CAA0C,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7E,IAAI,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,0CAA0C,CAAC,CAAC;IACrF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAGzD,IAAI,CAAC,uCAAuC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1E,IAAI,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC;IAC/E,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAGtD,IAAI,CAAC,wCAAwC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3E,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IACjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;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"]}
@@ -241,18 +241,19 @@ let DefaultGraphicService = class {
241
241
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
242
242
  this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
243
243
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
244
- })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic), aabbBounds;
244
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic),
245
+ aabbBounds;
245
246
  }
246
247
  updateGroupAABBBounds(attribute, groupTheme, aabbBounds, graphic) {
247
248
  const {width: width, height: height, path: path, clip: clip = groupTheme.clip} = attribute;
248
249
  path && path.length ? path.forEach((g => {
249
250
  aabbBounds.union(g.AABBBounds);
250
- })) : null != width && null != height && aabbBounds.set(0, 0, width, height), clip || graphic.forEachChildren((node => {
251
- aabbBounds.union(node.AABBBounds);
252
- }));
251
+ })) : null != width && null != height && aabbBounds.set(0, 0, width, height);
253
252
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
254
253
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
255
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
254
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), clip || (graphic.forEachChildren((node => {
255
+ aabbBounds.union(node.AABBBounds);
256
+ })), this.combindShadowAABBBounds(aabbBounds, graphic)), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
256
257
  aabbBounds;
257
258
  }
258
259
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
@@ -299,8 +300,8 @@ let DefaultGraphicService = class {
299
300
  aabbBounds.translate(deltaX, deltaY);
300
301
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
301
302
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
302
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic),
303
- aabbBounds;
303
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
304
+ this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic), aabbBounds;
304
305
  }
305
306
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
306
307
  if (!graphic) return aabbBounds;
@@ -308,8 +309,8 @@ let DefaultGraphicService = class {
308
309
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
309
310
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
310
311
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
311
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix),
312
- aabbBounds;
312
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
313
+ transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
313
314
  }
314
315
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
315
316
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
@@ -318,7 +319,8 @@ let DefaultGraphicService = class {
318
319
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
319
320
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
320
321
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
321
- })), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic), aabbBounds;
322
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic),
323
+ aabbBounds;
322
324
  }
323
325
  updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic) {
324
326
  if (!graphic) return aabbBounds;
@@ -335,8 +337,8 @@ let DefaultGraphicService = class {
335
337
  }));
336
338
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
337
339
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
338
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
339
- aabbBounds;
340
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
341
+ this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
340
342
  }
341
343
  updateArc3dAABBBounds(attribute, arcTheme, aabbBounds, graphic) {
342
344
  if (!graphic) return aabbBounds;
@@ -346,15 +348,15 @@ let DefaultGraphicService = class {
346
348
  aabbBounds.setValue(-r, -r, r, r);
347
349
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
348
350
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
349
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
350
- aabbBounds;
351
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
352
+ this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
351
353
  }
352
354
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
353
355
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
354
356
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
355
357
  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, polygonTheme, graphic),
357
- aabbBounds;
358
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
359
+ this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
358
360
  }
359
361
  updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic) {
360
362
  const {points: points = polygonTheme.points} = attribute;
@@ -366,8 +368,8 @@ let DefaultGraphicService = class {
366
368
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
367
369
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
368
370
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
369
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic),
370
- aabbBounds;
371
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
372
+ this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic), aabbBounds;
371
373
  }
372
374
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
373
375
  const {points: points = lineTheme.points} = attribute, b = aabbBounds;
@@ -387,8 +389,8 @@ let DefaultGraphicService = class {
387
389
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
388
390
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
389
391
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
390
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic),
391
- aabbBounds;
392
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
393
+ this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic), aabbBounds;
392
394
  }
393
395
  updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic) {
394
396
  const {points: points = areaTheme.points} = attribute, b = aabbBounds;
@@ -413,7 +415,8 @@ let DefaultGraphicService = class {
413
415
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
414
416
  this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
415
417
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
416
- })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic), aabbBounds;
418
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic),
419
+ aabbBounds;
417
420
  }
418
421
  updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) {
419
422
  const {radius: radius = circleTheme.radius} = attribute;
@@ -431,7 +434,8 @@ let DefaultGraphicService = class {
431
434
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
432
435
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
433
436
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
434
- })), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
437
+ })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
438
+ aabbBounds;
435
439
  }
436
440
  updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) {
437
441
  const {outerRadius: outerRadius = arcTheme.outerRadius} = attribute;
@@ -449,7 +453,7 @@ let DefaultGraphicService = class {
449
453
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
450
454
  this._symbolBoundsContribitions.length && this._symbolBoundsContribitions.forEach((c => {
451
455
  c.updateBounds(attribute, symbolTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
452
- })), aabbBounds;
456
+ })), this.transformAABBBounds(attribute, aabbBounds, symbolTheme, graphic), aabbBounds;
453
457
  }
454
458
  updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) {
455
459
  const {size: size = symbolTheme.size} = attribute;
@@ -471,8 +475,8 @@ let DefaultGraphicService = class {
471
475
  }
472
476
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
473
477
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
474
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic),
475
- aabbBounds;
478
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
479
+ this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic), aabbBounds;
476
480
  }
477
481
  combindShadowAABBBounds(bounds, graphic) {
478
482
  if (graphic && graphic.shadowRoot) {
@@ -481,7 +485,7 @@ let DefaultGraphicService = class {
481
485
  }
482
486
  }
483
487
  transformAABBBounds(attribute, aabbBounds, theme, graphic) {
484
- 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;
488
+ const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = (null == theme.stroke ? !!attribute.strokeColor : theme.stroke), shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
485
489
  if (stroke) {
486
490
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
487
491
  boundStroke(tb1, scaledHalfLineWidth, "miter" === lineJoin, strokeBoundsBuffer),