@visactor/vrender 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1128) hide show
  1. package/cjs/allocator/canvas-allocate.d.ts +1 -2
  2. package/cjs/allocator/canvas-allocate.js.map +1 -1
  3. package/cjs/allocator/matrix-allocate.d.ts +3 -5
  4. package/cjs/allocator/matrix-allocate.js.map +1 -1
  5. package/cjs/animate/Ticker/default-ticker.d.ts +1 -15
  6. package/cjs/animate/Ticker/default-ticker.js.map +1 -1
  7. package/cjs/animate/Ticker/index.d.ts +0 -1
  8. package/cjs/animate/Ticker/index.js +1 -1
  9. package/cjs/animate/Ticker/index.js.map +1 -1
  10. package/cjs/animate/animate.d.ts +1 -2
  11. package/cjs/animate/animate.js.map +1 -1
  12. package/cjs/animate/custom-animate.d.ts +3 -3
  13. package/cjs/animate/custom-animate.js +1 -1
  14. package/cjs/animate/custom-animate.js.map +1 -1
  15. package/cjs/animate/easing.d.ts +6 -0
  16. package/cjs/animate/easing.js +18 -0
  17. package/cjs/animate/easing.js.map +1 -1
  18. package/cjs/animate/timeline.d.ts +1 -11
  19. package/cjs/animate/timeline.js.map +1 -1
  20. package/cjs/application.d.ts +3 -3
  21. package/cjs/application.js.map +1 -1
  22. package/cjs/canvas/constants.d.ts +2 -0
  23. package/cjs/canvas/{interface.js → constants.js} +1 -1
  24. package/cjs/canvas/constants.js.map +1 -0
  25. package/cjs/canvas/contributions/browser/conical-gradient.js +19 -18
  26. package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
  27. package/cjs/canvas/contributions/browser/modules.js +3 -3
  28. package/cjs/canvas/contributions/browser/modules.js.map +1 -1
  29. package/cjs/canvas/contributions/feishu/modules.js +3 -3
  30. package/cjs/canvas/contributions/feishu/modules.js.map +1 -1
  31. package/cjs/canvas/contributions/lynx/context.d.ts +2 -1
  32. package/cjs/canvas/contributions/lynx/context.js +8 -0
  33. package/cjs/canvas/contributions/lynx/context.js.map +1 -1
  34. package/cjs/canvas/contributions/lynx/modules.js +3 -3
  35. package/cjs/canvas/contributions/lynx/modules.js.map +1 -1
  36. package/cjs/canvas/contributions/node/canvas.js +2 -2
  37. package/cjs/canvas/contributions/node/canvas.js.map +1 -1
  38. package/cjs/canvas/contributions/node/modules.js +3 -3
  39. package/cjs/canvas/contributions/node/modules.js.map +1 -1
  40. package/cjs/canvas/contributions/taro/modules.js +3 -3
  41. package/cjs/canvas/contributions/taro/modules.js.map +1 -1
  42. package/cjs/canvas/contributions/tt/modules.js +3 -3
  43. package/cjs/canvas/contributions/tt/modules.js.map +1 -1
  44. package/cjs/canvas/index.d.ts +1 -1
  45. package/cjs/canvas/index.js +1 -1
  46. package/cjs/canvas/index.js.map +1 -1
  47. package/cjs/canvas/util.d.ts +3 -3
  48. package/cjs/canvas/util.js +3 -3
  49. package/cjs/canvas/util.js.map +1 -1
  50. package/cjs/common/contribution-provider.d.ts +1 -4
  51. package/cjs/common/contribution-provider.js.map +1 -1
  52. package/cjs/common/enums.d.ts +4 -0
  53. package/cjs/common/enums.js +6 -3
  54. package/cjs/common/enums.js.map +1 -1
  55. package/cjs/common/text.d.ts +5 -12
  56. package/cjs/common/text.js.map +1 -1
  57. package/cjs/constants.d.ts +2 -0
  58. package/cjs/constants.js +7 -0
  59. package/cjs/constants.js.map +1 -0
  60. package/cjs/core/application.d.ts +0 -6
  61. package/cjs/core/application.js.map +1 -1
  62. package/cjs/core/contributions/env/feishu-contribution.d.ts +1 -13
  63. package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
  64. package/cjs/core/contributions/env/lynx-contribution.d.ts +1 -13
  65. package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
  66. package/cjs/core/contributions/env/modules.js +7 -7
  67. package/cjs/core/contributions/env/modules.js.map +1 -1
  68. package/cjs/core/contributions/env/taro-contribution.d.ts +1 -30
  69. package/cjs/core/contributions/env/taro-contribution.js.map +1 -1
  70. package/cjs/core/contributions/index.d.ts +1 -1
  71. package/cjs/core/contributions/index.js.map +1 -1
  72. package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -4
  73. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +2 -2
  74. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  75. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -3
  76. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +2 -2
  77. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  78. package/cjs/core/contributions/modules.d.ts +1 -1
  79. package/cjs/core/contributions/modules.js.map +1 -1
  80. package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +4 -3
  81. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  82. package/cjs/core/contributions/textMeasure/layout.d.ts +4 -30
  83. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  84. package/cjs/core/contributions/window/base-contribution.d.ts +3 -3
  85. package/cjs/core/contributions/window/base-contribution.js +3 -0
  86. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  87. package/cjs/core/contributions/window/browser-contribution.d.ts +2 -3
  88. package/cjs/core/contributions/window/browser-contribution.js +2 -2
  89. package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
  90. package/cjs/core/contributions/window/feishu-contribution.d.ts +2 -3
  91. package/cjs/core/contributions/window/feishu-contribution.js +2 -2
  92. package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
  93. package/cjs/core/contributions/window/lynx-contribution.d.ts +2 -3
  94. package/cjs/core/contributions/window/lynx-contribution.js +2 -2
  95. package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
  96. package/cjs/core/contributions/window/node-contribution.d.ts +2 -3
  97. package/cjs/core/contributions/window/node-contribution.js +2 -2
  98. package/cjs/core/contributions/window/node-contribution.js.map +1 -1
  99. package/cjs/core/contributions/window/taro-contribution.d.ts +2 -3
  100. package/cjs/core/contributions/window/taro-contribution.js +2 -2
  101. package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
  102. package/cjs/core/core-modules.js +2 -2
  103. package/cjs/core/core-modules.js.map +1 -1
  104. package/cjs/core/global-module.d.ts +1 -1
  105. package/cjs/core/global-module.js +4 -4
  106. package/cjs/core/global-module.js.map +1 -1
  107. package/cjs/core/global.d.ts +4 -6
  108. package/cjs/core/global.js +2 -2
  109. package/cjs/core/global.js.map +1 -1
  110. package/cjs/core/graphic-utils.d.ts +7 -7
  111. package/cjs/core/graphic-utils.js +2 -2
  112. package/cjs/core/graphic-utils.js.map +1 -1
  113. package/cjs/core/index.d.ts +1 -1
  114. package/cjs/core/index.js +1 -1
  115. package/cjs/core/index.js.map +1 -1
  116. package/cjs/core/layer-service.d.ts +2 -2
  117. package/cjs/core/layer-service.js +2 -2
  118. package/cjs/core/layer-service.js.map +1 -1
  119. package/cjs/core/layer.d.ts +2 -32
  120. package/cjs/core/layer.js.map +1 -1
  121. package/cjs/core/stage.d.ts +27 -10
  122. package/cjs/core/stage.js +18 -12
  123. package/cjs/core/stage.js.map +1 -1
  124. package/cjs/core/window.d.ts +3 -68
  125. package/cjs/core/window.js +2 -2
  126. package/cjs/core/window.js.map +1 -1
  127. package/cjs/event/event-manager.d.ts +2 -2
  128. package/cjs/event/event-manager.js.map +1 -1
  129. package/cjs/event/event-system.d.ts +1 -1
  130. package/cjs/event/event-system.js.map +1 -1
  131. package/cjs/event/event-target.d.ts +1 -1
  132. package/cjs/event/event-target.js.map +1 -1
  133. package/cjs/event/extension/drag.d.ts +1 -1
  134. package/cjs/event/extension/drag.js.map +1 -1
  135. package/cjs/event/extension/gesture.d.ts +3 -25
  136. package/cjs/event/extension/gesture.js.map +1 -1
  137. package/cjs/event/federated-event/base-event.d.ts +1 -1
  138. package/cjs/event/federated-event/base-event.js.map +1 -1
  139. package/cjs/event/index.d.ts +1 -1
  140. package/cjs/event/index.js +1 -1
  141. package/cjs/event/index.js.map +1 -1
  142. package/cjs/graphic/arc.d.ts +3 -3
  143. package/cjs/graphic/arc.js.map +1 -1
  144. package/cjs/graphic/arc3d.d.ts +2 -2
  145. package/cjs/graphic/arc3d.js.map +1 -1
  146. package/cjs/graphic/area.d.ts +2 -2
  147. package/cjs/graphic/area.js.map +1 -1
  148. package/cjs/graphic/bounds.d.ts +1 -1
  149. package/cjs/graphic/bounds.js.map +1 -1
  150. package/cjs/graphic/builtin-symbol/arrow.d.ts +2 -3
  151. package/cjs/graphic/builtin-symbol/arrow.js.map +1 -1
  152. package/cjs/graphic/builtin-symbol/arrow2-left.d.ts +2 -3
  153. package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  154. package/cjs/graphic/builtin-symbol/arrow2-right.d.ts +2 -3
  155. package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  156. package/cjs/graphic/builtin-symbol/circle.d.ts +2 -3
  157. package/cjs/graphic/builtin-symbol/circle.js.map +1 -1
  158. package/cjs/graphic/builtin-symbol/cross.d.ts +2 -3
  159. package/cjs/graphic/builtin-symbol/cross.js.map +1 -1
  160. package/cjs/graphic/builtin-symbol/diamond.d.ts +2 -3
  161. package/cjs/graphic/builtin-symbol/diamond.js.map +1 -1
  162. package/cjs/graphic/builtin-symbol/index.d.ts +1 -2
  163. package/cjs/graphic/builtin-symbol/index.js +1 -1
  164. package/cjs/graphic/builtin-symbol/index.js.map +1 -1
  165. package/cjs/graphic/builtin-symbol/rect.d.ts +2 -3
  166. package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
  167. package/cjs/graphic/builtin-symbol/square.d.ts +2 -3
  168. package/cjs/graphic/builtin-symbol/square.js.map +1 -1
  169. package/cjs/graphic/builtin-symbol/star.d.ts +2 -3
  170. package/cjs/graphic/builtin-symbol/star.js.map +1 -1
  171. package/cjs/graphic/builtin-symbol/stroke.d.ts +2 -3
  172. package/cjs/graphic/builtin-symbol/stroke.js.map +1 -1
  173. package/cjs/graphic/builtin-symbol/thin-triangle.d.ts +2 -3
  174. package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  175. package/cjs/graphic/builtin-symbol/triangle-down.d.ts +2 -3
  176. package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -1
  177. package/cjs/graphic/builtin-symbol/triangle-left.d.ts +2 -3
  178. package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -1
  179. package/cjs/graphic/builtin-symbol/triangle-right.d.ts +2 -3
  180. package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -1
  181. package/cjs/graphic/builtin-symbol/triangle-up.d.ts +2 -3
  182. package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -1
  183. package/cjs/graphic/builtin-symbol/triangle.d.ts +1 -2
  184. package/cjs/graphic/builtin-symbol/triangle.js.map +1 -1
  185. package/cjs/graphic/builtin-symbol/utils.d.ts +2 -3
  186. package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
  187. package/cjs/graphic/builtin-symbol/wedge.d.ts +2 -3
  188. package/cjs/graphic/builtin-symbol/wedge.js.map +1 -1
  189. package/cjs/graphic/builtin-symbol/wye.d.ts +2 -3
  190. package/cjs/graphic/builtin-symbol/wye.js.map +1 -1
  191. package/cjs/graphic/circle.d.ts +2 -2
  192. package/cjs/graphic/circle.js.map +1 -1
  193. package/cjs/graphic/config.d.ts +1 -1
  194. package/cjs/graphic/config.js +3 -2
  195. package/cjs/graphic/config.js.map +1 -1
  196. package/cjs/graphic/glyph.d.ts +2 -2
  197. package/cjs/graphic/glyph.js.map +1 -1
  198. package/cjs/graphic/graphic-creator.d.ts +1 -1
  199. package/cjs/graphic/graphic-creator.js.map +1 -1
  200. package/cjs/graphic/graphic-service/arc-contribution.d.ts +1 -5
  201. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  202. package/cjs/graphic/graphic-service/area-contribution.d.ts +0 -5
  203. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  204. package/cjs/graphic/graphic-service/circle-contribution.d.ts +1 -5
  205. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  206. package/cjs/graphic/graphic-service/graphic-service.d.ts +17 -23
  207. package/cjs/graphic/graphic-service/graphic-service.js +46 -29
  208. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  209. package/cjs/graphic/graphic-service/path-contribution.d.ts +1 -5
  210. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  211. package/cjs/graphic/graphic-service/rect-contribution.d.ts +1 -5
  212. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  213. package/cjs/graphic/graphic-service/symbol-contribution.d.ts +2 -5
  214. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  215. package/cjs/graphic/graphic.d.ts +5 -6
  216. package/cjs/graphic/graphic.js +1 -1
  217. package/cjs/graphic/graphic.js.map +1 -1
  218. package/cjs/graphic/group.d.ts +3 -3
  219. package/cjs/graphic/group.js.map +1 -1
  220. package/cjs/graphic/image.d.ts +2 -2
  221. package/cjs/graphic/image.js +2 -2
  222. package/cjs/graphic/image.js.map +1 -1
  223. package/cjs/graphic/line.d.ts +2 -2
  224. package/cjs/graphic/line.js.map +1 -1
  225. package/cjs/graphic/node-tree.d.ts +3 -2
  226. package/cjs/graphic/node-tree.js +1 -1
  227. package/cjs/graphic/node-tree.js.map +1 -1
  228. package/cjs/graphic/path.d.ts +2 -2
  229. package/cjs/graphic/path.js.map +1 -1
  230. package/cjs/graphic/polygon.d.ts +3 -3
  231. package/cjs/graphic/polygon.js.map +1 -1
  232. package/cjs/graphic/pyramid3d.d.ts +3 -3
  233. package/cjs/graphic/pyramid3d.js.map +1 -1
  234. package/cjs/graphic/rect.d.ts +2 -2
  235. package/cjs/graphic/rect.js.map +1 -1
  236. package/cjs/graphic/rect3d.d.ts +1 -1
  237. package/cjs/graphic/rect3d.js.map +1 -1
  238. package/cjs/graphic/richtext/wrapper.d.ts +2 -2
  239. package/cjs/graphic/richtext/wrapper.js +2 -2
  240. package/cjs/graphic/richtext/wrapper.js.map +1 -1
  241. package/cjs/graphic/richtext.d.ts +2 -2
  242. package/cjs/graphic/richtext.js.map +1 -1
  243. package/cjs/graphic/shadow-root.d.ts +2 -2
  244. package/cjs/graphic/shadow-root.js.map +1 -1
  245. package/cjs/graphic/symbol.d.ts +2 -3
  246. package/cjs/graphic/symbol.js.map +1 -1
  247. package/cjs/graphic/text.d.ts +2 -3
  248. package/cjs/graphic/text.js.map +1 -1
  249. package/cjs/graphic/theme.d.ts +1 -1
  250. package/cjs/graphic/theme.js.map +1 -1
  251. package/cjs/graphic/tools.d.ts +3 -3
  252. package/cjs/graphic/tools.js +2 -2
  253. package/cjs/graphic/tools.js.map +1 -1
  254. package/cjs/graphic/wrap-text.d.ts +1 -1
  255. package/cjs/graphic/wrap-text.js.map +1 -1
  256. package/cjs/index.d.ts +1 -1
  257. package/cjs/index.js +1 -1
  258. package/cjs/index.js.map +1 -1
  259. package/cjs/{allocator/interface.d.ts → interface/allocator.d.ts} +12 -1
  260. package/cjs/{animate/Ticker/interface.js → interface/allocator.js} +1 -1
  261. package/cjs/interface/allocator.js.map +1 -0
  262. package/cjs/interface/animate.d.ts +36 -1
  263. package/cjs/interface/animate.js.map +1 -1
  264. package/cjs/interface/canvas.d.ts +7 -1
  265. package/cjs/interface/canvas.js.map +1 -1
  266. package/cjs/interface/common.d.ts +1 -0
  267. package/cjs/interface/common.js.map +1 -1
  268. package/cjs/interface/context.d.ts +6 -6
  269. package/cjs/interface/context.js.map +1 -1
  270. package/cjs/interface/contribution.d.ts +105 -1
  271. package/cjs/interface/contribution.js.map +1 -1
  272. package/{es/core/interface.d.ts → cjs/interface/core.d.ts} +8 -3
  273. package/cjs/{event/type.js → interface/core.js} +1 -1
  274. package/cjs/interface/core.js.map +1 -0
  275. package/cjs/interface/creator.d.ts +2 -2
  276. package/cjs/interface/creator.js.map +1 -1
  277. package/cjs/interface/event.d.ts +193 -0
  278. package/cjs/{allocator/interface.js → interface/event.js} +1 -1
  279. package/cjs/interface/event.js.map +1 -0
  280. package/cjs/interface/global.d.ts +6 -8
  281. package/cjs/interface/global.js +1 -2
  282. package/cjs/interface/global.js.map +1 -1
  283. package/cjs/interface/graphic/arc.d.ts +1 -1
  284. package/cjs/interface/graphic/arc.js.map +1 -1
  285. package/cjs/interface/graphic/arc3d.d.ts +2 -1
  286. package/cjs/interface/graphic/arc3d.js.map +1 -1
  287. package/cjs/interface/graphic/creator.d.ts +16 -16
  288. package/cjs/interface/graphic/creator.js.map +1 -1
  289. package/cjs/interface/graphic/group.d.ts +2 -1
  290. package/cjs/interface/graphic/group.js.map +1 -1
  291. package/cjs/interface/graphic/image.d.ts +1 -1
  292. package/cjs/interface/graphic/image.js.map +1 -1
  293. package/cjs/interface/graphic/index.d.ts +24 -0
  294. package/cjs/interface/graphic/index.js +13 -1
  295. package/cjs/interface/graphic/index.js.map +1 -1
  296. package/cjs/interface/graphic/line.d.ts +1 -1
  297. package/cjs/interface/graphic/line.js.map +1 -1
  298. package/cjs/interface/graphic/rect.d.ts +1 -1
  299. package/cjs/interface/graphic/rect.js.map +1 -1
  300. package/cjs/interface/graphic/rect3d.d.ts +2 -1
  301. package/cjs/interface/graphic/rect3d.js.map +1 -1
  302. package/cjs/interface/graphic/richText.d.ts +90 -2
  303. package/cjs/interface/graphic/richText.js.map +1 -1
  304. package/cjs/interface/graphic/symbol.d.ts +10 -1
  305. package/cjs/interface/graphic/symbol.js.map +1 -1
  306. package/cjs/interface/graphic/text.d.ts +25 -1
  307. package/cjs/interface/graphic/text.js.map +1 -1
  308. package/cjs/interface/graphic-service.d.ts +30 -10
  309. package/cjs/interface/graphic-service.js.map +1 -1
  310. package/cjs/interface/graphic.d.ts +1 -0
  311. package/cjs/interface/graphic.js.map +1 -1
  312. package/cjs/interface/index.d.ts +11 -18
  313. package/cjs/interface/index.js +8 -11
  314. package/cjs/interface/index.js.map +1 -1
  315. package/cjs/interface/layer.d.ts +37 -6
  316. package/cjs/interface/layer.js.map +1 -1
  317. package/cjs/interface/light.d.ts +1 -1
  318. package/cjs/interface/light.js.map +1 -1
  319. package/cjs/interface/loader.d.ts +17 -0
  320. package/cjs/{core/interface.js → interface/loader.js} +1 -1
  321. package/cjs/interface/loader.js.map +1 -0
  322. package/cjs/interface/node-tree.d.ts +1 -1
  323. package/cjs/interface/node-tree.js.map +1 -1
  324. package/cjs/interface/path.d.ts +1 -1
  325. package/cjs/interface/path.js.map +1 -1
  326. package/cjs/interface/picker.d.ts +48 -0
  327. package/cjs/interface/picker.js +6 -0
  328. package/cjs/interface/picker.js.map +1 -0
  329. package/cjs/interface/plugin.d.ts +15 -0
  330. package/cjs/interface/plugin.js +6 -0
  331. package/cjs/interface/plugin.js.map +1 -0
  332. package/cjs/interface/render.d.ts +89 -0
  333. package/cjs/interface/render.js +6 -0
  334. package/cjs/interface/render.js.map +1 -0
  335. package/cjs/interface/stage.d.ts +25 -18
  336. package/cjs/interface/stage.js.map +1 -1
  337. package/cjs/interface/sync-hook.d.ts +26 -0
  338. package/cjs/{core/contributions/interface.js → interface/sync-hook.js} +1 -1
  339. package/cjs/interface/sync-hook.js.map +1 -0
  340. package/cjs/{core/contributions/textMeasure/ITextMeasure.d.ts → interface/text.d.ts} +2 -2
  341. package/cjs/{picker/type.js → interface/text.js} +1 -1
  342. package/cjs/interface/text.js.map +1 -0
  343. package/cjs/interface/theme-service.js.map +1 -0
  344. package/cjs/interface/window.d.ts +72 -0
  345. package/cjs/interface/window.js +6 -0
  346. package/cjs/interface/window.js.map +1 -0
  347. package/cjs/modules.d.ts +2 -3
  348. package/cjs/modules.js +2 -2
  349. package/cjs/modules.js.map +1 -1
  350. package/cjs/picker/canvas-picker-service.d.ts +6 -9
  351. package/cjs/picker/canvas-picker-service.js +2 -2
  352. package/cjs/picker/canvas-picker-service.js.map +1 -1
  353. package/cjs/picker/contributions/canvas-picker/arc-picker.d.ts +2 -4
  354. package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  355. package/cjs/picker/contributions/canvas-picker/arc3d-picker.d.ts +2 -4
  356. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  357. package/cjs/picker/contributions/canvas-picker/area-picker.d.ts +2 -4
  358. package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  359. package/cjs/picker/contributions/canvas-picker/base-picker.d.ts +1 -1
  360. package/cjs/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  361. package/cjs/picker/contributions/canvas-picker/circle-picker.d.ts +2 -4
  362. package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  363. package/cjs/picker/contributions/canvas-picker/glyph-picker.d.ts +2 -4
  364. package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  365. package/cjs/picker/contributions/canvas-picker/image-picker.d.ts +2 -3
  366. package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  367. package/cjs/picker/contributions/canvas-picker/line-picker.d.ts +2 -4
  368. package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  369. package/cjs/picker/contributions/canvas-picker/path-picker.d.ts +2 -4
  370. package/cjs/picker/contributions/canvas-picker/path-picker.js +3 -1
  371. package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  372. package/cjs/picker/contributions/canvas-picker/polygon-picker.d.ts +2 -4
  373. package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  374. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.d.ts +2 -4
  375. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  376. package/cjs/picker/contributions/canvas-picker/rect-picker.d.ts +2 -4
  377. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  378. package/cjs/picker/contributions/canvas-picker/rect3d-picker.d.ts +2 -4
  379. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  380. package/cjs/picker/contributions/canvas-picker/richtext-picker.d.ts +2 -4
  381. package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  382. package/cjs/picker/contributions/canvas-picker/symbol-picker.d.ts +2 -4
  383. package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  384. package/cjs/picker/contributions/canvas-picker/text-picker.d.ts +2 -4
  385. package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  386. package/cjs/picker/contributions/math-picker/arc-picker.d.ts +2 -4
  387. package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
  388. package/cjs/picker/contributions/math-picker/area-picker.d.ts +2 -4
  389. package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
  390. package/cjs/picker/contributions/math-picker/circle-picker.d.ts +2 -4
  391. package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
  392. package/cjs/picker/contributions/math-picker/glyph-picker.d.ts +2 -4
  393. package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  394. package/cjs/picker/contributions/math-picker/line-picker.d.ts +2 -4
  395. package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
  396. package/cjs/picker/contributions/math-picker/path-picker.d.ts +2 -4
  397. package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
  398. package/cjs/picker/contributions/math-picker/polygon-picker.d.ts +2 -4
  399. package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  400. package/cjs/picker/contributions/math-picker/rect-picker.d.ts +2 -4
  401. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  402. package/cjs/picker/contributions/math-picker/symbol-picker.d.ts +2 -4
  403. package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  404. package/cjs/picker/contributions/math-picker/text-picker.d.ts +2 -3
  405. package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
  406. package/cjs/picker/global-picker-service.d.ts +2 -9
  407. package/cjs/picker/global-picker-service.js +2 -2
  408. package/cjs/picker/global-picker-service.js.map +1 -1
  409. package/cjs/picker/math-picker-service.d.ts +6 -8
  410. package/cjs/picker/math-picker-service.js +2 -2
  411. package/cjs/picker/math-picker-service.js.map +1 -1
  412. package/cjs/picker/pick-interceptor.d.ts +2 -12
  413. package/cjs/picker/pick-interceptor.js.map +1 -1
  414. package/cjs/picker/picker-service.d.ts +4 -33
  415. package/cjs/picker/picker-service.js +2 -2
  416. package/cjs/picker/picker-service.js.map +1 -1
  417. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.d.ts +1 -2
  418. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  419. package/cjs/plugins/builtin-plugin/auto-render-plugin.d.ts +1 -1
  420. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  421. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +1 -1
  422. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  423. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +1 -3
  424. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  425. package/cjs/plugins/plugin-service.d.ts +1 -14
  426. package/cjs/plugins/plugin-service.js.map +1 -1
  427. package/cjs/render/contributions/render/arc-render.d.ts +3 -7
  428. package/cjs/render/contributions/render/arc-render.js +3 -3
  429. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  430. package/cjs/render/contributions/render/arc3d-render.d.ts +1 -3
  431. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  432. package/cjs/render/contributions/render/area-render.d.ts +3 -7
  433. package/cjs/render/contributions/render/area-render.js +3 -3
  434. package/cjs/render/contributions/render/area-render.js.map +1 -1
  435. package/cjs/render/contributions/render/base-render.d.ts +2 -2
  436. package/cjs/render/contributions/render/base-render.js +1 -1
  437. package/cjs/render/contributions/render/base-render.js.map +1 -1
  438. package/cjs/render/contributions/render/circle-render.d.ts +3 -7
  439. package/cjs/render/contributions/render/circle-render.js +3 -3
  440. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  441. package/cjs/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -5
  442. package/cjs/render/contributions/render/contributions/arc-contribution-render.js +5 -5
  443. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  444. package/cjs/render/contributions/render/contributions/area-contribution-render.d.ts +3 -7
  445. package/cjs/render/contributions/render/contributions/area-contribution-render.js +3 -3
  446. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  447. package/cjs/render/contributions/render/contributions/base-contribution-render.d.ts +2 -10
  448. package/cjs/render/contributions/render/contributions/base-contribution-render.js +6 -11
  449. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  450. package/cjs/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -5
  451. package/cjs/render/contributions/render/contributions/circle-contribution-render.js +5 -5
  452. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  453. package/cjs/render/contributions/render/contributions/group-contribution-render.d.ts +3 -8
  454. package/cjs/render/contributions/render/contributions/group-contribution-render.js +2 -2
  455. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  456. package/cjs/render/contributions/render/contributions/image-contribution-render.d.ts +3 -5
  457. package/cjs/render/contributions/render/contributions/image-contribution-render.js +2 -2
  458. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  459. package/cjs/render/contributions/render/contributions/path-contribution-render.d.ts +3 -5
  460. package/cjs/render/contributions/render/contributions/path-contribution-render.js +3 -3
  461. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  462. package/cjs/render/contributions/render/contributions/polygon-contribution-render.d.ts +3 -5
  463. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js +3 -3
  464. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  465. package/cjs/render/contributions/render/contributions/rect-contribution-render.d.ts +3 -8
  466. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +9 -9
  467. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  468. package/cjs/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -5
  469. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +5 -5
  470. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  471. package/cjs/render/contributions/render/draw-contribution.d.ts +6 -11
  472. package/cjs/render/contributions/render/draw-contribution.js +4 -2
  473. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  474. package/cjs/render/contributions/render/draw-interceptor.d.ts +1 -8
  475. package/cjs/render/contributions/render/draw-interceptor.js +1 -1
  476. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  477. package/cjs/render/contributions/render/glyph-render.d.ts +1 -3
  478. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  479. package/cjs/render/contributions/render/graphic-render.d.ts +1 -17
  480. package/cjs/render/contributions/render/graphic-render.js.map +1 -1
  481. package/cjs/render/contributions/render/group-render.d.ts +3 -7
  482. package/cjs/render/contributions/render/group-render.js +3 -3
  483. package/cjs/render/contributions/render/group-render.js.map +1 -1
  484. package/cjs/render/contributions/render/image-render.d.ts +3 -7
  485. package/cjs/render/contributions/render/image-render.js +11 -5
  486. package/cjs/render/contributions/render/image-render.js.map +1 -1
  487. package/cjs/render/contributions/render/incremental-area-render.d.ts +1 -3
  488. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  489. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +5 -10
  490. package/cjs/render/contributions/render/incremental-draw-contribution.js +2 -2
  491. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  492. package/cjs/render/contributions/render/incremental-line-render.d.ts +1 -3
  493. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  494. package/cjs/render/contributions/render/line-render.d.ts +1 -3
  495. package/cjs/render/contributions/render/line-render.js.map +1 -1
  496. package/cjs/render/contributions/render/path-render.d.ts +3 -7
  497. package/cjs/render/contributions/render/path-render.js +3 -3
  498. package/cjs/render/contributions/render/path-render.js.map +1 -1
  499. package/cjs/render/contributions/render/polygon-render.d.ts +3 -7
  500. package/cjs/render/contributions/render/polygon-render.js +3 -3
  501. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  502. package/cjs/render/contributions/render/pyramid3d-render.d.ts +1 -3
  503. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  504. package/cjs/render/contributions/render/rect-render.d.ts +3 -7
  505. package/cjs/render/contributions/render/rect-render.js +3 -3
  506. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  507. package/cjs/render/contributions/render/rect3d-render.d.ts +1 -3
  508. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  509. package/cjs/render/contributions/render/render-slector.d.ts +1 -5
  510. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  511. package/cjs/render/contributions/render/richtext-render.d.ts +1 -3
  512. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  513. package/cjs/render/contributions/render/symbol-render.d.ts +3 -7
  514. package/cjs/render/contributions/render/symbol-render.js +3 -3
  515. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  516. package/cjs/render/contributions/render/text-render.d.ts +2 -4
  517. package/cjs/render/contributions/render/text-render.js.map +1 -1
  518. package/cjs/render/contributions/render/utils.d.ts +1 -3
  519. package/cjs/render/contributions/render/utils.js.map +1 -1
  520. package/cjs/render/render-service.d.ts +2 -56
  521. package/cjs/render/render-service.js.map +1 -1
  522. package/cjs/resource-loader/loader.d.ts +2 -20
  523. package/cjs/resource-loader/loader.js.map +1 -1
  524. package/cjs/tapable/Hook.d.ts +5 -22
  525. package/cjs/tapable/Hook.js.map +1 -1
  526. package/cjs/tapable/SyncHook.d.ts +3 -2
  527. package/cjs/tapable/SyncHook.js.map +1 -1
  528. package/dist/index.js +696 -592
  529. package/dist/index.min.js +1 -1
  530. package/es/allocator/canvas-allocate.d.ts +1 -2
  531. package/es/allocator/canvas-allocate.js.map +1 -1
  532. package/es/allocator/matrix-allocate.d.ts +3 -5
  533. package/es/allocator/matrix-allocate.js.map +1 -1
  534. package/es/animate/Ticker/default-ticker.d.ts +1 -15
  535. package/es/animate/Ticker/default-ticker.js.map +1 -1
  536. package/es/animate/Ticker/index.d.ts +0 -1
  537. package/es/animate/Ticker/index.js +0 -2
  538. package/es/animate/Ticker/index.js.map +1 -1
  539. package/es/animate/animate.d.ts +1 -2
  540. package/es/animate/animate.js.map +1 -1
  541. package/es/animate/custom-animate.d.ts +3 -3
  542. package/es/animate/custom-animate.js +1 -1
  543. package/es/animate/custom-animate.js.map +1 -1
  544. package/es/animate/easing.d.ts +6 -0
  545. package/es/animate/easing.js +18 -0
  546. package/es/animate/easing.js.map +1 -1
  547. package/es/animate/timeline.d.ts +1 -11
  548. package/es/animate/timeline.js.map +1 -1
  549. package/es/application.d.ts +3 -3
  550. package/es/application.js.map +1 -1
  551. package/es/canvas/constants.d.ts +2 -0
  552. package/es/canvas/{interface.js → constants.js} +1 -1
  553. package/es/canvas/constants.js.map +1 -0
  554. package/es/canvas/contributions/browser/conical-gradient.js +19 -18
  555. package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
  556. package/es/canvas/contributions/browser/modules.js +1 -1
  557. package/es/canvas/contributions/browser/modules.js.map +1 -1
  558. package/es/canvas/contributions/feishu/modules.js +1 -1
  559. package/es/canvas/contributions/feishu/modules.js.map +1 -1
  560. package/es/canvas/contributions/lynx/context.d.ts +2 -1
  561. package/es/canvas/contributions/lynx/context.js +8 -0
  562. package/es/canvas/contributions/lynx/context.js.map +1 -1
  563. package/es/canvas/contributions/lynx/modules.js +1 -1
  564. package/es/canvas/contributions/lynx/modules.js.map +1 -1
  565. package/es/canvas/contributions/node/canvas.js +3 -1
  566. package/es/canvas/contributions/node/canvas.js.map +1 -1
  567. package/es/canvas/contributions/node/modules.js +1 -1
  568. package/es/canvas/contributions/node/modules.js.map +1 -1
  569. package/es/canvas/contributions/taro/modules.js +1 -1
  570. package/es/canvas/contributions/taro/modules.js.map +1 -1
  571. package/es/canvas/contributions/tt/modules.js +1 -1
  572. package/es/canvas/contributions/tt/modules.js.map +1 -1
  573. package/es/canvas/index.d.ts +1 -1
  574. package/es/canvas/index.js +1 -1
  575. package/es/canvas/index.js.map +1 -1
  576. package/es/canvas/util.d.ts +3 -3
  577. package/es/canvas/util.js +1 -1
  578. package/es/canvas/util.js.map +1 -1
  579. package/es/common/contribution-provider.d.ts +1 -4
  580. package/es/common/contribution-provider.js.map +1 -1
  581. package/es/common/enums.d.ts +4 -0
  582. package/es/common/enums.js +7 -0
  583. package/es/common/enums.js.map +1 -1
  584. package/es/common/text.d.ts +5 -12
  585. package/es/common/text.js.map +1 -1
  586. package/es/constants.d.ts +2 -0
  587. package/es/constants.js +4 -0
  588. package/es/constants.js.map +1 -0
  589. package/es/core/application.d.ts +0 -6
  590. package/es/core/application.js.map +1 -1
  591. package/es/core/contributions/env/feishu-contribution.d.ts +1 -13
  592. package/es/core/contributions/env/feishu-contribution.js.map +1 -1
  593. package/es/core/contributions/env/lynx-contribution.d.ts +1 -13
  594. package/es/core/contributions/env/lynx-contribution.js.map +1 -1
  595. package/es/core/contributions/env/modules.js +1 -1
  596. package/es/core/contributions/env/modules.js.map +1 -1
  597. package/es/core/contributions/env/taro-contribution.d.ts +1 -30
  598. package/es/core/contributions/env/taro-contribution.js.map +1 -1
  599. package/es/core/contributions/index.d.ts +1 -1
  600. package/es/core/contributions/index.js.map +1 -1
  601. package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -4
  602. package/es/core/contributions/layerHandler/canvas2d-contribution.js +1 -1
  603. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  604. package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -3
  605. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +1 -1
  606. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  607. package/es/core/contributions/modules.d.ts +1 -1
  608. package/es/core/contributions/modules.js.map +1 -1
  609. package/es/core/contributions/textMeasure/AtextMeasure.d.ts +4 -3
  610. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  611. package/es/core/contributions/textMeasure/layout.d.ts +4 -30
  612. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  613. package/es/core/contributions/window/base-contribution.d.ts +3 -3
  614. package/es/core/contributions/window/base-contribution.js +3 -0
  615. package/es/core/contributions/window/base-contribution.js.map +1 -1
  616. package/es/core/contributions/window/browser-contribution.d.ts +2 -3
  617. package/es/core/contributions/window/browser-contribution.js +1 -1
  618. package/es/core/contributions/window/browser-contribution.js.map +1 -1
  619. package/es/core/contributions/window/feishu-contribution.d.ts +2 -3
  620. package/es/core/contributions/window/feishu-contribution.js +1 -1
  621. package/es/core/contributions/window/feishu-contribution.js.map +1 -1
  622. package/es/core/contributions/window/lynx-contribution.d.ts +2 -3
  623. package/es/core/contributions/window/lynx-contribution.js +1 -1
  624. package/es/core/contributions/window/lynx-contribution.js.map +1 -1
  625. package/es/core/contributions/window/node-contribution.d.ts +2 -3
  626. package/es/core/contributions/window/node-contribution.js +1 -1
  627. package/es/core/contributions/window/node-contribution.js.map +1 -1
  628. package/es/core/contributions/window/taro-contribution.d.ts +2 -3
  629. package/es/core/contributions/window/taro-contribution.js +1 -1
  630. package/es/core/contributions/window/taro-contribution.js.map +1 -1
  631. package/es/core/core-modules.js +2 -2
  632. package/es/core/core-modules.js.map +1 -1
  633. package/es/core/global-module.d.ts +1 -1
  634. package/es/core/global-module.js +2 -2
  635. package/es/core/global-module.js.map +1 -1
  636. package/es/core/global.d.ts +4 -6
  637. package/es/core/global.js +3 -3
  638. package/es/core/global.js.map +1 -1
  639. package/es/core/graphic-utils.d.ts +7 -7
  640. package/es/core/graphic-utils.js +2 -2
  641. package/es/core/graphic-utils.js.map +1 -1
  642. package/es/core/index.d.ts +1 -1
  643. package/es/core/index.js +1 -1
  644. package/es/core/index.js.map +1 -1
  645. package/es/core/layer-service.d.ts +2 -2
  646. package/es/core/layer-service.js +2 -2
  647. package/es/core/layer-service.js.map +1 -1
  648. package/es/core/layer.d.ts +2 -32
  649. package/es/core/layer.js.map +1 -1
  650. package/es/core/stage.d.ts +27 -10
  651. package/es/core/stage.js +18 -12
  652. package/es/core/stage.js.map +1 -1
  653. package/es/core/window.d.ts +3 -68
  654. package/es/core/window.js +2 -2
  655. package/es/core/window.js.map +1 -1
  656. package/es/event/event-manager.d.ts +2 -2
  657. package/es/event/event-manager.js.map +1 -1
  658. package/es/event/event-system.d.ts +1 -1
  659. package/es/event/event-system.js.map +1 -1
  660. package/es/event/event-target.d.ts +1 -1
  661. package/es/event/event-target.js.map +1 -1
  662. package/es/event/extension/drag.d.ts +1 -1
  663. package/es/event/extension/drag.js.map +1 -1
  664. package/es/event/extension/gesture.d.ts +3 -25
  665. package/es/event/extension/gesture.js.map +1 -1
  666. package/es/event/federated-event/base-event.d.ts +1 -1
  667. package/es/event/federated-event/base-event.js.map +1 -1
  668. package/es/event/index.d.ts +1 -1
  669. package/es/event/index.js +1 -1
  670. package/es/event/index.js.map +1 -1
  671. package/es/graphic/arc.d.ts +3 -3
  672. package/es/graphic/arc.js.map +1 -1
  673. package/es/graphic/arc3d.d.ts +2 -2
  674. package/es/graphic/arc3d.js.map +1 -1
  675. package/es/graphic/area.d.ts +2 -2
  676. package/es/graphic/area.js.map +1 -1
  677. package/es/graphic/bounds.d.ts +1 -1
  678. package/es/graphic/bounds.js.map +1 -1
  679. package/es/graphic/builtin-symbol/arrow.d.ts +2 -3
  680. package/es/graphic/builtin-symbol/arrow.js.map +1 -1
  681. package/es/graphic/builtin-symbol/arrow2-left.d.ts +2 -3
  682. package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  683. package/es/graphic/builtin-symbol/arrow2-right.d.ts +2 -3
  684. package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  685. package/es/graphic/builtin-symbol/circle.d.ts +2 -3
  686. package/es/graphic/builtin-symbol/circle.js.map +1 -1
  687. package/es/graphic/builtin-symbol/cross.d.ts +2 -3
  688. package/es/graphic/builtin-symbol/cross.js.map +1 -1
  689. package/es/graphic/builtin-symbol/diamond.d.ts +2 -3
  690. package/es/graphic/builtin-symbol/diamond.js.map +1 -1
  691. package/es/graphic/builtin-symbol/index.d.ts +1 -2
  692. package/es/graphic/builtin-symbol/index.js +0 -2
  693. package/es/graphic/builtin-symbol/index.js.map +1 -1
  694. package/es/graphic/builtin-symbol/rect.d.ts +2 -3
  695. package/es/graphic/builtin-symbol/rect.js.map +1 -1
  696. package/es/graphic/builtin-symbol/square.d.ts +2 -3
  697. package/es/graphic/builtin-symbol/square.js.map +1 -1
  698. package/es/graphic/builtin-symbol/star.d.ts +2 -3
  699. package/es/graphic/builtin-symbol/star.js.map +1 -1
  700. package/es/graphic/builtin-symbol/stroke.d.ts +2 -3
  701. package/es/graphic/builtin-symbol/stroke.js.map +1 -1
  702. package/es/graphic/builtin-symbol/thin-triangle.d.ts +2 -3
  703. package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  704. package/es/graphic/builtin-symbol/triangle-down.d.ts +2 -3
  705. package/es/graphic/builtin-symbol/triangle-down.js.map +1 -1
  706. package/es/graphic/builtin-symbol/triangle-left.d.ts +2 -3
  707. package/es/graphic/builtin-symbol/triangle-left.js.map +1 -1
  708. package/es/graphic/builtin-symbol/triangle-right.d.ts +2 -3
  709. package/es/graphic/builtin-symbol/triangle-right.js.map +1 -1
  710. package/es/graphic/builtin-symbol/triangle-up.d.ts +2 -3
  711. package/es/graphic/builtin-symbol/triangle-up.js.map +1 -1
  712. package/es/graphic/builtin-symbol/triangle.d.ts +1 -2
  713. package/es/graphic/builtin-symbol/triangle.js.map +1 -1
  714. package/es/graphic/builtin-symbol/utils.d.ts +2 -3
  715. package/es/graphic/builtin-symbol/utils.js.map +1 -1
  716. package/es/graphic/builtin-symbol/wedge.d.ts +2 -3
  717. package/es/graphic/builtin-symbol/wedge.js.map +1 -1
  718. package/es/graphic/builtin-symbol/wye.d.ts +2 -3
  719. package/es/graphic/builtin-symbol/wye.js.map +1 -1
  720. package/es/graphic/circle.d.ts +2 -2
  721. package/es/graphic/circle.js.map +1 -1
  722. package/es/graphic/config.d.ts +1 -1
  723. package/es/graphic/config.js +3 -2
  724. package/es/graphic/config.js.map +1 -1
  725. package/es/graphic/glyph.d.ts +2 -2
  726. package/es/graphic/glyph.js.map +1 -1
  727. package/es/graphic/graphic-creator.d.ts +1 -1
  728. package/es/graphic/graphic-creator.js.map +1 -1
  729. package/es/graphic/graphic-service/arc-contribution.d.ts +1 -5
  730. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  731. package/es/graphic/graphic-service/area-contribution.d.ts +0 -5
  732. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  733. package/es/graphic/graphic-service/circle-contribution.d.ts +1 -5
  734. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  735. package/es/graphic/graphic-service/graphic-service.d.ts +17 -23
  736. package/es/graphic/graphic-service/graphic-service.js +46 -29
  737. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  738. package/es/graphic/graphic-service/path-contribution.d.ts +1 -5
  739. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  740. package/es/graphic/graphic-service/rect-contribution.d.ts +1 -5
  741. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  742. package/es/graphic/graphic-service/symbol-contribution.d.ts +2 -5
  743. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  744. package/es/graphic/graphic.d.ts +5 -6
  745. package/es/graphic/graphic.js +1 -1
  746. package/es/graphic/graphic.js.map +1 -1
  747. package/es/graphic/group.d.ts +3 -3
  748. package/es/graphic/group.js.map +1 -1
  749. package/es/graphic/image.d.ts +2 -2
  750. package/es/graphic/image.js +2 -2
  751. package/es/graphic/image.js.map +1 -1
  752. package/es/graphic/line.d.ts +2 -2
  753. package/es/graphic/line.js.map +1 -1
  754. package/es/graphic/node-tree.d.ts +3 -2
  755. package/es/graphic/node-tree.js +1 -1
  756. package/es/graphic/node-tree.js.map +1 -1
  757. package/es/graphic/path.d.ts +2 -2
  758. package/es/graphic/path.js.map +1 -1
  759. package/es/graphic/polygon.d.ts +3 -3
  760. package/es/graphic/polygon.js.map +1 -1
  761. package/es/graphic/pyramid3d.d.ts +3 -3
  762. package/es/graphic/pyramid3d.js.map +1 -1
  763. package/es/graphic/rect.d.ts +2 -2
  764. package/es/graphic/rect.js.map +1 -1
  765. package/es/graphic/rect3d.d.ts +1 -1
  766. package/es/graphic/rect3d.js.map +1 -1
  767. package/es/graphic/richtext/wrapper.d.ts +2 -2
  768. package/es/graphic/richtext/wrapper.js +2 -2
  769. package/es/graphic/richtext/wrapper.js.map +1 -1
  770. package/es/graphic/richtext.d.ts +2 -2
  771. package/es/graphic/richtext.js.map +1 -1
  772. package/es/graphic/shadow-root.d.ts +2 -2
  773. package/es/graphic/shadow-root.js.map +1 -1
  774. package/es/graphic/symbol.d.ts +2 -3
  775. package/es/graphic/symbol.js.map +1 -1
  776. package/es/graphic/text.d.ts +2 -3
  777. package/es/graphic/text.js.map +1 -1
  778. package/es/graphic/theme.d.ts +1 -1
  779. package/es/graphic/theme.js.map +1 -1
  780. package/es/graphic/tools.d.ts +3 -3
  781. package/es/graphic/tools.js +2 -2
  782. package/es/graphic/tools.js.map +1 -1
  783. package/es/graphic/wrap-text.d.ts +1 -1
  784. package/es/graphic/wrap-text.js.map +1 -1
  785. package/es/index.d.ts +1 -1
  786. package/es/index.js +1 -1
  787. package/es/index.js.map +1 -1
  788. package/es/{allocator/interface.d.ts → interface/allocator.d.ts} +12 -1
  789. package/es/interface/allocator.js +2 -0
  790. package/es/interface/allocator.js.map +1 -0
  791. package/es/interface/animate.d.ts +36 -1
  792. package/es/interface/animate.js.map +1 -1
  793. package/es/interface/canvas.d.ts +7 -1
  794. package/es/interface/canvas.js.map +1 -1
  795. package/es/interface/common.d.ts +1 -0
  796. package/es/interface/common.js.map +1 -1
  797. package/es/interface/context.d.ts +6 -6
  798. package/es/interface/context.js.map +1 -1
  799. package/es/interface/contribution.d.ts +105 -1
  800. package/es/interface/contribution.js.map +1 -1
  801. package/{cjs/core/interface.d.ts → es/interface/core.d.ts} +8 -3
  802. package/es/interface/core.js +2 -0
  803. package/es/interface/core.js.map +1 -0
  804. package/es/interface/creator.d.ts +2 -2
  805. package/es/interface/creator.js.map +1 -1
  806. package/es/interface/event.d.ts +193 -0
  807. package/es/interface/event.js +2 -0
  808. package/es/interface/event.js.map +1 -0
  809. package/es/interface/global.d.ts +6 -8
  810. package/es/interface/global.js +1 -3
  811. package/es/interface/global.js.map +1 -1
  812. package/es/interface/graphic/arc.d.ts +1 -1
  813. package/es/interface/graphic/arc.js.map +1 -1
  814. package/es/interface/graphic/arc3d.d.ts +2 -1
  815. package/es/interface/graphic/arc3d.js.map +1 -1
  816. package/es/interface/graphic/creator.d.ts +16 -16
  817. package/es/interface/graphic/creator.js.map +1 -1
  818. package/es/interface/graphic/group.d.ts +2 -1
  819. package/es/interface/graphic/group.js.map +1 -1
  820. package/es/interface/graphic/image.d.ts +1 -1
  821. package/es/interface/graphic/image.js.map +1 -1
  822. package/es/interface/graphic/index.d.ts +24 -0
  823. package/es/interface/graphic/index.js +48 -0
  824. package/es/interface/graphic/index.js.map +1 -1
  825. package/es/interface/graphic/line.d.ts +1 -1
  826. package/es/interface/graphic/line.js.map +1 -1
  827. package/es/interface/graphic/rect.d.ts +1 -1
  828. package/es/interface/graphic/rect.js.map +1 -1
  829. package/es/interface/graphic/rect3d.d.ts +2 -1
  830. package/es/interface/graphic/rect3d.js.map +1 -1
  831. package/es/interface/graphic/richText.d.ts +90 -2
  832. package/es/interface/graphic/richText.js.map +1 -1
  833. package/es/interface/graphic/symbol.d.ts +10 -1
  834. package/es/interface/graphic/symbol.js.map +1 -1
  835. package/es/interface/graphic/text.d.ts +25 -1
  836. package/es/interface/graphic/text.js.map +1 -1
  837. package/es/interface/graphic-service.d.ts +30 -10
  838. package/es/interface/graphic-service.js.map +1 -1
  839. package/es/interface/graphic.d.ts +1 -0
  840. package/es/interface/graphic.js.map +1 -1
  841. package/es/interface/index.d.ts +11 -18
  842. package/es/interface/index.js +22 -36
  843. package/es/interface/index.js.map +1 -1
  844. package/es/interface/layer.d.ts +37 -6
  845. package/es/interface/layer.js.map +1 -1
  846. package/es/interface/light.d.ts +1 -1
  847. package/es/interface/light.js.map +1 -1
  848. package/es/interface/loader.d.ts +17 -0
  849. package/es/interface/loader.js +2 -0
  850. package/es/interface/loader.js.map +1 -0
  851. package/es/interface/node-tree.d.ts +1 -1
  852. package/es/interface/node-tree.js.map +1 -1
  853. package/es/interface/path.d.ts +1 -1
  854. package/es/interface/path.js.map +1 -1
  855. package/es/interface/picker.d.ts +48 -0
  856. package/es/interface/picker.js +2 -0
  857. package/es/interface/picker.js.map +1 -0
  858. package/es/interface/plugin.d.ts +15 -0
  859. package/es/interface/plugin.js +2 -0
  860. package/es/interface/plugin.js.map +1 -0
  861. package/es/interface/render.d.ts +89 -0
  862. package/es/interface/render.js +2 -0
  863. package/es/interface/render.js.map +1 -0
  864. package/es/interface/stage.d.ts +25 -18
  865. package/es/interface/stage.js.map +1 -1
  866. package/es/interface/sync-hook.d.ts +26 -0
  867. package/es/interface/sync-hook.js +2 -0
  868. package/es/interface/sync-hook.js.map +1 -0
  869. package/es/{core/contributions/textMeasure/ITextMeasure.d.ts → interface/text.d.ts} +2 -2
  870. package/es/interface/text.js +2 -0
  871. package/es/interface/text.js.map +1 -0
  872. package/es/interface/theme-service.js.map +1 -0
  873. package/es/interface/window.d.ts +72 -0
  874. package/es/interface/window.js +2 -0
  875. package/es/interface/window.js.map +1 -0
  876. package/es/modules.d.ts +2 -3
  877. package/es/modules.js +2 -2
  878. package/es/modules.js.map +1 -1
  879. package/es/picker/canvas-picker-service.d.ts +6 -9
  880. package/es/picker/canvas-picker-service.js +2 -2
  881. package/es/picker/canvas-picker-service.js.map +1 -1
  882. package/es/picker/contributions/canvas-picker/arc-picker.d.ts +2 -4
  883. package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  884. package/es/picker/contributions/canvas-picker/arc3d-picker.d.ts +2 -4
  885. package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  886. package/es/picker/contributions/canvas-picker/area-picker.d.ts +2 -4
  887. package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  888. package/es/picker/contributions/canvas-picker/base-picker.d.ts +1 -1
  889. package/es/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  890. package/es/picker/contributions/canvas-picker/circle-picker.d.ts +2 -4
  891. package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  892. package/es/picker/contributions/canvas-picker/glyph-picker.d.ts +2 -4
  893. package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  894. package/es/picker/contributions/canvas-picker/image-picker.d.ts +2 -3
  895. package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  896. package/es/picker/contributions/canvas-picker/line-picker.d.ts +2 -4
  897. package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  898. package/es/picker/contributions/canvas-picker/path-picker.d.ts +2 -4
  899. package/es/picker/contributions/canvas-picker/path-picker.js +3 -1
  900. package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  901. package/es/picker/contributions/canvas-picker/polygon-picker.d.ts +2 -4
  902. package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  903. package/es/picker/contributions/canvas-picker/pyramid3d-picker.d.ts +2 -4
  904. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  905. package/es/picker/contributions/canvas-picker/rect-picker.d.ts +2 -4
  906. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  907. package/es/picker/contributions/canvas-picker/rect3d-picker.d.ts +2 -4
  908. package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  909. package/es/picker/contributions/canvas-picker/richtext-picker.d.ts +2 -4
  910. package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  911. package/es/picker/contributions/canvas-picker/symbol-picker.d.ts +2 -4
  912. package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  913. package/es/picker/contributions/canvas-picker/text-picker.d.ts +2 -4
  914. package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  915. package/es/picker/contributions/math-picker/arc-picker.d.ts +2 -4
  916. package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
  917. package/es/picker/contributions/math-picker/area-picker.d.ts +2 -4
  918. package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
  919. package/es/picker/contributions/math-picker/circle-picker.d.ts +2 -4
  920. package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
  921. package/es/picker/contributions/math-picker/glyph-picker.d.ts +2 -4
  922. package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  923. package/es/picker/contributions/math-picker/line-picker.d.ts +2 -4
  924. package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
  925. package/es/picker/contributions/math-picker/path-picker.d.ts +2 -4
  926. package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
  927. package/es/picker/contributions/math-picker/polygon-picker.d.ts +2 -4
  928. package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  929. package/es/picker/contributions/math-picker/rect-picker.d.ts +2 -4
  930. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  931. package/es/picker/contributions/math-picker/symbol-picker.d.ts +2 -4
  932. package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  933. package/es/picker/contributions/math-picker/text-picker.d.ts +2 -3
  934. package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
  935. package/es/picker/global-picker-service.d.ts +2 -9
  936. package/es/picker/global-picker-service.js +1 -1
  937. package/es/picker/global-picker-service.js.map +1 -1
  938. package/es/picker/math-picker-service.d.ts +6 -8
  939. package/es/picker/math-picker-service.js +2 -2
  940. package/es/picker/math-picker-service.js.map +1 -1
  941. package/es/picker/pick-interceptor.d.ts +2 -12
  942. package/es/picker/pick-interceptor.js.map +1 -1
  943. package/es/picker/picker-service.d.ts +4 -33
  944. package/es/picker/picker-service.js +2 -2
  945. package/es/picker/picker-service.js.map +1 -1
  946. package/es/plugins/builtin-plugin/3dview-transform-plugin.d.ts +1 -2
  947. package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  948. package/es/plugins/builtin-plugin/auto-render-plugin.d.ts +1 -1
  949. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  950. package/es/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +1 -1
  951. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  952. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +1 -3
  953. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  954. package/es/plugins/plugin-service.d.ts +1 -14
  955. package/es/plugins/plugin-service.js.map +1 -1
  956. package/es/render/contributions/render/arc-render.d.ts +3 -7
  957. package/es/render/contributions/render/arc-render.js +1 -1
  958. package/es/render/contributions/render/arc-render.js.map +1 -1
  959. package/es/render/contributions/render/arc3d-render.d.ts +1 -3
  960. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  961. package/es/render/contributions/render/area-render.d.ts +3 -7
  962. package/es/render/contributions/render/area-render.js +1 -1
  963. package/es/render/contributions/render/area-render.js.map +1 -1
  964. package/es/render/contributions/render/base-render.d.ts +2 -2
  965. package/es/render/contributions/render/base-render.js +1 -1
  966. package/es/render/contributions/render/base-render.js.map +1 -1
  967. package/es/render/contributions/render/circle-render.d.ts +3 -7
  968. package/es/render/contributions/render/circle-render.js +1 -1
  969. package/es/render/contributions/render/circle-render.js.map +1 -1
  970. package/es/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -5
  971. package/es/render/contributions/render/contributions/arc-contribution-render.js +3 -1
  972. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  973. package/es/render/contributions/render/contributions/area-contribution-render.d.ts +3 -7
  974. package/es/render/contributions/render/contributions/area-contribution-render.js +3 -1
  975. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  976. package/es/render/contributions/render/contributions/base-contribution-render.d.ts +2 -10
  977. package/es/render/contributions/render/contributions/base-contribution-render.js +1 -6
  978. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  979. package/es/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -5
  980. package/es/render/contributions/render/contributions/circle-contribution-render.js +3 -1
  981. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  982. package/es/render/contributions/render/contributions/group-contribution-render.d.ts +3 -8
  983. package/es/render/contributions/render/contributions/group-contribution-render.js +3 -1
  984. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  985. package/es/render/contributions/render/contributions/image-contribution-render.d.ts +3 -5
  986. package/es/render/contributions/render/contributions/image-contribution-render.js +3 -1
  987. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  988. package/es/render/contributions/render/contributions/path-contribution-render.d.ts +3 -5
  989. package/es/render/contributions/render/contributions/path-contribution-render.js +3 -1
  990. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  991. package/es/render/contributions/render/contributions/polygon-contribution-render.d.ts +3 -5
  992. package/es/render/contributions/render/contributions/polygon-contribution-render.js +3 -1
  993. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  994. package/es/render/contributions/render/contributions/rect-contribution-render.d.ts +3 -8
  995. package/es/render/contributions/render/contributions/rect-contribution-render.js +3 -1
  996. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  997. package/es/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -5
  998. package/es/render/contributions/render/contributions/symbol-contribution-render.js +3 -1
  999. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  1000. package/es/render/contributions/render/draw-contribution.d.ts +6 -11
  1001. package/es/render/contributions/render/draw-contribution.js +4 -2
  1002. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  1003. package/es/render/contributions/render/draw-interceptor.d.ts +1 -8
  1004. package/es/render/contributions/render/draw-interceptor.js +1 -1
  1005. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  1006. package/es/render/contributions/render/glyph-render.d.ts +1 -3
  1007. package/es/render/contributions/render/glyph-render.js.map +1 -1
  1008. package/es/render/contributions/render/graphic-render.d.ts +1 -17
  1009. package/es/render/contributions/render/graphic-render.js.map +1 -1
  1010. package/es/render/contributions/render/group-render.d.ts +3 -7
  1011. package/es/render/contributions/render/group-render.js +2 -2
  1012. package/es/render/contributions/render/group-render.js.map +1 -1
  1013. package/es/render/contributions/render/image-render.d.ts +3 -7
  1014. package/es/render/contributions/render/image-render.js +12 -4
  1015. package/es/render/contributions/render/image-render.js.map +1 -1
  1016. package/es/render/contributions/render/incremental-area-render.d.ts +1 -3
  1017. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  1018. package/es/render/contributions/render/incremental-draw-contribution.d.ts +5 -10
  1019. package/es/render/contributions/render/incremental-draw-contribution.js +2 -2
  1020. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  1021. package/es/render/contributions/render/incremental-line-render.d.ts +1 -3
  1022. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  1023. package/es/render/contributions/render/line-render.d.ts +1 -3
  1024. package/es/render/contributions/render/line-render.js.map +1 -1
  1025. package/es/render/contributions/render/path-render.d.ts +3 -7
  1026. package/es/render/contributions/render/path-render.js +1 -1
  1027. package/es/render/contributions/render/path-render.js.map +1 -1
  1028. package/es/render/contributions/render/polygon-render.d.ts +3 -7
  1029. package/es/render/contributions/render/polygon-render.js +1 -1
  1030. package/es/render/contributions/render/polygon-render.js.map +1 -1
  1031. package/es/render/contributions/render/pyramid3d-render.d.ts +1 -3
  1032. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  1033. package/es/render/contributions/render/rect-render.d.ts +3 -7
  1034. package/es/render/contributions/render/rect-render.js +1 -1
  1035. package/es/render/contributions/render/rect-render.js.map +1 -1
  1036. package/es/render/contributions/render/rect3d-render.d.ts +1 -3
  1037. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  1038. package/es/render/contributions/render/render-slector.d.ts +1 -5
  1039. package/es/render/contributions/render/render-slector.js.map +1 -1
  1040. package/es/render/contributions/render/richtext-render.d.ts +1 -3
  1041. package/es/render/contributions/render/richtext-render.js.map +1 -1
  1042. package/es/render/contributions/render/symbol-render.d.ts +3 -7
  1043. package/es/render/contributions/render/symbol-render.js +1 -1
  1044. package/es/render/contributions/render/symbol-render.js.map +1 -1
  1045. package/es/render/contributions/render/text-render.d.ts +2 -4
  1046. package/es/render/contributions/render/text-render.js.map +1 -1
  1047. package/es/render/contributions/render/utils.d.ts +1 -3
  1048. package/es/render/contributions/render/utils.js.map +1 -1
  1049. package/es/render/render-service.d.ts +2 -56
  1050. package/es/render/render-service.js.map +1 -1
  1051. package/es/resource-loader/loader.d.ts +2 -20
  1052. package/es/resource-loader/loader.js.map +1 -1
  1053. package/es/tapable/Hook.d.ts +5 -22
  1054. package/es/tapable/Hook.js.map +1 -1
  1055. package/es/tapable/SyncHook.d.ts +3 -2
  1056. package/es/tapable/SyncHook.js.map +1 -1
  1057. package/es/tsconfig.tsbuildinfo +1 -1
  1058. package/package.json +2 -1
  1059. package/cjs/allocator/interface.js.map +0 -1
  1060. package/cjs/animate/Ticker/interface.d.ts +0 -12
  1061. package/cjs/animate/Ticker/interface.js.map +0 -1
  1062. package/cjs/canvas/interface.d.ts +0 -9
  1063. package/cjs/canvas/interface.js.map +0 -1
  1064. package/cjs/core/contributions/interface.d.ts +0 -3
  1065. package/cjs/core/contributions/interface.js.map +0 -1
  1066. package/cjs/core/contributions/textMeasure/ITextMeasure.js +0 -6
  1067. package/cjs/core/contributions/textMeasure/ITextMeasure.js.map +0 -1
  1068. package/cjs/core/interface.js.map +0 -1
  1069. package/cjs/event/interface.d.ts +0 -26
  1070. package/cjs/event/interface.js +0 -6
  1071. package/cjs/event/interface.js.map +0 -1
  1072. package/cjs/event/type.d.ts +0 -24
  1073. package/cjs/event/type.js.map +0 -1
  1074. package/cjs/graphic/builtin-symbol/interface.d.ts +0 -10
  1075. package/cjs/graphic/builtin-symbol/interface.js +0 -6
  1076. package/cjs/graphic/builtin-symbol/interface.js.map +0 -1
  1077. package/cjs/graphic/graphic-service/theme-service.js.map +0 -1
  1078. package/cjs/picker/type.d.ts +0 -5
  1079. package/cjs/picker/type.js.map +0 -1
  1080. package/cjs/plugins/interface.d.ts +0 -1
  1081. package/cjs/plugins/interface.js +0 -3
  1082. package/cjs/plugins/interface.js.map +0 -1
  1083. package/cjs/render/contributions/interface.d.ts +0 -3
  1084. package/cjs/render/contributions/interface.js +0 -6
  1085. package/cjs/render/contributions/interface.js.map +0 -1
  1086. package/cjs/tapable/interface.d.ts +0 -1
  1087. package/cjs/tapable/interface.js +0 -3
  1088. package/cjs/tapable/interface.js.map +0 -1
  1089. package/es/allocator/interface.js +0 -2
  1090. package/es/allocator/interface.js.map +0 -1
  1091. package/es/animate/Ticker/interface.d.ts +0 -12
  1092. package/es/animate/Ticker/interface.js +0 -2
  1093. package/es/animate/Ticker/interface.js.map +0 -1
  1094. package/es/canvas/interface.d.ts +0 -9
  1095. package/es/canvas/interface.js.map +0 -1
  1096. package/es/core/contributions/interface.d.ts +0 -3
  1097. package/es/core/contributions/interface.js +0 -2
  1098. package/es/core/contributions/interface.js.map +0 -1
  1099. package/es/core/contributions/textMeasure/ITextMeasure.js +0 -2
  1100. package/es/core/contributions/textMeasure/ITextMeasure.js.map +0 -1
  1101. package/es/core/interface.js +0 -2
  1102. package/es/core/interface.js.map +0 -1
  1103. package/es/event/interface.d.ts +0 -26
  1104. package/es/event/interface.js +0 -2
  1105. package/es/event/interface.js.map +0 -1
  1106. package/es/event/type.d.ts +0 -24
  1107. package/es/event/type.js +0 -2
  1108. package/es/event/type.js.map +0 -1
  1109. package/es/graphic/builtin-symbol/interface.d.ts +0 -10
  1110. package/es/graphic/builtin-symbol/interface.js +0 -2
  1111. package/es/graphic/builtin-symbol/interface.js.map +0 -1
  1112. package/es/graphic/graphic-service/theme-service.js.map +0 -1
  1113. package/es/picker/type.d.ts +0 -5
  1114. package/es/picker/type.js +0 -2
  1115. package/es/picker/type.js.map +0 -1
  1116. package/es/plugins/interface.d.ts +0 -1
  1117. package/es/plugins/interface.js +0 -3
  1118. package/es/plugins/interface.js.map +0 -1
  1119. package/es/render/contributions/interface.d.ts +0 -3
  1120. package/es/render/contributions/interface.js +0 -2
  1121. package/es/render/contributions/interface.js.map +0 -1
  1122. package/es/tapable/interface.d.ts +0 -1
  1123. package/es/tapable/interface.js +0 -3
  1124. package/es/tapable/interface.js.map +0 -1
  1125. /package/cjs/{graphic/graphic-service → interface}/theme-service.d.ts +0 -0
  1126. /package/cjs/{graphic/graphic-service → interface}/theme-service.js +0 -0
  1127. /package/es/{graphic/graphic-service → interface}/theme-service.d.ts +0 -0
  1128. /package/es/{graphic/graphic-service → interface}/theme-service.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA6BvD,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,KAAK;IACX,UAAU,EAAE,C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BAAoB,iDAC5B,gBAAgB,GAChB,gBAAgB,KACnB,kBAAkB,EAAE,CAAC,EACrB,WAAW,EAAE,IAAI,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,mCAChC,gBAAgB,KACnB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,YAAiC,EAC5C,iBAAiB,EAAE,KAAkC,EACrD,SAAS,EAAE,MAAiC,EAC5C,YAAY,EAAE,KAAmC,EACjD,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,EAAE,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,KAAK,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,iCAChC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,IAAI,EAAE,IAAI,GACX,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,mCACpC,qBAAqB,KACxB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,CAAC,EAClB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,0BAA0B,EAC1C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common/custom-path2d';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillOpacity: 1,\n fill: false,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: false\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: undefined,\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 cornerRadius: 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 cornerRadius: 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 cornerRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n cornerRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n cornerRadius: 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: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA6BvD,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,KAAK;IACX,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,YAAY,GAAsD;IACtE,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,EAAE;IACZ,cAAc,EAA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nB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,YAAiC,EAC5C,iBAAiB,EAAE,KAAkC,EACrD,SAAS,EAAE,MAAiC,EAC5C,YAAY,EAAE,KAAmC,EACjD,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,EAAE,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,KAAK,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,iCAChC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,IAAI,EAAE,IAAI,GACX,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,mCACpC,qBAAqB,KACxB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,CAAC,EAClB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,0BAA0B,EAC1C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common/custom-path2d';\nimport type {\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: undefined,\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 cornerRadius: 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 cornerRadius: 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 cornerRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n strokeBoundsBuffer: 0,\n cornerRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n cornerRadius: 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: 'no-repeat',\n repeatY: 'no-repeat',\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: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';
1
+ import type { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';
2
2
  import { Graphic } from './graphic';
3
- import { GraphicType, IGraphic, IGlyph, IGlyphGraphicAttribute, IGraphicAttribute, ISetAttributeContext } from '../interface';
3
+ import type { GraphicType, IGraphic, IGlyph, IGlyphGraphicAttribute, IGraphicAttribute, ISetAttributeContext } from '../interface';
4
4
  export declare class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {
5
5
  type: GraphicType;
6
6
  _onInit: (g: IGlyph) => void;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,OAAO,KAAM,SAAQ,OAA+B;IAoBxD,YAAY,MAAuC;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QApBhB,SAAI,GAAgB,OAAO,CAAC;QAqB1B,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,aAAa,CAAC,UAAsB;QAClC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACx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O,KAAK,CAAC;IACf,CAAC;CACF","file":"glyph.js","sourcesContent":["import { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic } from './graphic';\nimport {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { application } from '../application';\nimport { GLYPH_NUMBER_TYPE } from './constants';\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = application.graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/graphic/glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,M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C,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 type { AABBBounds, IPointLike, OBBBounds } from '@visactor/vutils';\nimport { Graphic } from './graphic';\nimport type {\n GraphicType,\n IGraphic,\n IGlyph,\n IGlyphGraphicAttribute,\n IGraphicAttribute,\n ISetAttributeContext\n} from '../interface';\nimport { getTheme } from './theme';\nimport { application } from '../application';\nimport { GLYPH_NUMBER_TYPE } from './constants';\n\nexport class Glyph extends Graphic<IGlyphGraphicAttribute> implements IGlyph {\n type: GraphicType = 'glyph';\n declare _onInit: (g: IGlyph) => void;\n declare _onUpdate: (g: IGlyph) => void;\n declare glyphStates?: Record<\n string,\n {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n }\n >;\n declare glyphStateProxy?: (\n stateName: string,\n targetStates?: string[]\n ) => {\n attributes: Partial<IGlyphGraphicAttribute>;\n subAttributes: Partial<IGraphicAttribute>[];\n };\n protected declare subGraphic: IGraphic[];\n\n constructor(params: Partial<IGlyphGraphicAttribute>) {\n super(params);\n this.numberType = GLYPH_NUMBER_TYPE;\n this.subGraphic = [];\n this._onInit && this._onInit(this);\n this.valid = this.isValid();\n }\n\n setSubGraphic(subGraphic: IGraphic[]) {\n this.detachSubGraphic();\n this.subGraphic = subGraphic;\n subGraphic.forEach(g => {\n g.glyphHost = this;\n Object.setPrototypeOf(g.attribute, this.attribute);\n });\n this.valid = this.isValid();\n this.addUpdateBoundTag();\n }\n\n protected detachSubGraphic() {\n this.subGraphic.forEach(g => {\n g.glyphHost = null;\n Object.setPrototypeOf(g.attribute, {});\n });\n }\n\n getSubGraphic() {\n return this.subGraphic;\n }\n\n onInit(cb: (g: this) => void): void {\n this._onInit = cb;\n }\n\n onUpdate(cb: (g: this) => void): void {\n this._onUpdate = cb;\n }\n\n isValid(): boolean {\n return true;\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) {\n super.setAttribute(key, value, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n setAttributes(\n params: Partial<IGlyphGraphicAttribute>,\n forceUpdateTag: boolean = false,\n context?: ISetAttributeContext\n ) {\n super.setAttributes(params, forceUpdateTag, context);\n this.subGraphic.forEach(g => {\n g.addUpdateShapeAndBoundsTag();\n g.addUpdatePositionTag();\n });\n }\n\n translate(x: number, y: number) {\n super.translate(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n translateTo(x: number, y: number) {\n super.translateTo(x, y);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scale(scaleX: number, scaleY: number, scaleCenter?: IPointLike) {\n super.scale(scaleX, scaleY, scaleCenter);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n scaleTo(scaleX: number, scaleY: number) {\n super.scaleTo(scaleX, scaleY);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotate(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n rotateTo(angle: number) {\n super.rotate(angle);\n\n this.subGraphic.forEach(g => {\n g.addUpdatePositionTag();\n g.addUpdateBoundTag();\n });\n return this;\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const bounds = application.graphicService.updateGlyphAABBBounds(\n this.attribute,\n getTheme(this).glyph,\n this._AABBBounds,\n this\n ) as AABBBounds;\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n needUpdateTags(keys: string[]): boolean {\n return false;\n }\n needUpdateTag(key: string): boolean {\n return false;\n }\n\n useStates(states: string[], hasAnimation?: boolean): void {\n if (!states.length) {\n this.clearStates(hasAnimation);\n return;\n }\n\n const isChange =\n this.currentStates?.length !== states.length ||\n states.some((stateName, index) => this.currentStates[index] !== stateName);\n if (!isChange) {\n return;\n }\n\n const stateAttrs = {};\n const subAttrs = this.subGraphic.map(() => ({}));\n states.forEach(stateName => {\n const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];\n\n if (attrs) {\n Object.assign(stateAttrs, attrs.attributes);\n\n if (attrs.subAttributes?.length) {\n subAttrs.forEach((subAttrs, index) => {\n Object.assign(subAttrs, attrs.subAttributes[index]);\n });\n }\n }\n });\n\n this.subGraphic.forEach((graphic, index) => {\n graphic.updateNormalAttrs(subAttrs[index]);\n graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);\n });\n\n this.updateNormalAttrs(stateAttrs);\n this.currentStates = states;\n this.applyStateAttrs(stateAttrs, states, hasAnimation);\n }\n\n clearStates(hasAnimation?: boolean) {\n if (!this.hasState() || !this.normalAttrs) {\n return;\n }\n\n this.subGraphic.forEach(graphic => {\n graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, true);\n graphic.normalAttrs = null;\n });\n\n this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, true);\n this.normalAttrs = null;\n\n this.currentStates = [];\n }\n\n clone(): Graphic<Partial<IGlyphGraphicAttribute>> {\n const glyph = new Glyph({ ...this.attribute });\n glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));\n return glyph;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, ICircle, ICircleGraphicAttribute, IGroup, IGroupGraphicAttribute, IImageGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygonGraphicAttribute, IRect, IRectGraphicAttribute, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, ISymbol, IImage, IPolygon, IShadowRoot, IGraphic, IRichTextGraphicAttribute, IRichText, IGlyph, IGlyphGraphicAttribute, IRect3d, IRect3dGraphicAttribute, IArc3dGraphicAttribute, IPyramid3dGraphicAttribute, IPyramid3d, IWrapTextGraphicAttribute } from '../interface';
1
+ import type { IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, ICircle, ICircleGraphicAttribute, IGroup, IGroupGraphicAttribute, IImageGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygonGraphicAttribute, IRect, IRectGraphicAttribute, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, ISymbol, IImage, IPolygon, IShadowRoot, IGraphic, IRichTextGraphicAttribute, IRichText, IGlyph, IGlyphGraphicAttribute, IRect3d, IRect3dGraphicAttribute, IArc3dGraphicAttribute, IPyramid3dGraphicAttribute, IPyramid3d, IWrapTextGraphicAttribute } from '../interface';
2
2
  export declare function createArc(attributes: IArcGraphicAttribute): IArc;
3
3
  export declare function createArc3d(attributes: IArc3dGraphicAttribute): IArc;
4
4
  export declare function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/graphic-creator.ts"],"names":[],"mappings":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AC;AACjC,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AACD,MAAM,UAAU,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;CACzB,CAAC","file":"graphic-creator.js","sourcesContent":["import {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n ISymbol,\n IImage,\n IPolygon,\n IShadowRoot,\n IGraphic,\n IRichTextGraphicAttribute,\n IRichText,\n IGlyph,\n IGlyphGraphicAttribute,\n IRect3d,\n IRect3dGraphicAttribute,\n IArc3dGraphicAttribute,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n IWrapTextGraphicAttribute\n} from '../interface';\nimport { Arc } from './arc';\nimport { Area } from './area';\nimport { Circle } from './circle';\nimport { Group } from './group';\nimport { Image } from './image';\nimport { Line } from './line';\nimport { Path } from './path';\nimport { Polygon } from './polygon';\nimport { Rect } from './rect';\n// 这里git会将Symbol强行转成小写symbol,先重命名一下\nimport { Symbol as MarkSymbol } from './symbol';\nimport { ShadowRoot as MarkShadowRoot } from './shadow-root';\nimport { Text } from './text';\nimport { RichText } from './richtext';\nimport { Glyph } from './glyph';\nimport { Rect3d } from './rect3d';\nimport { Arc3d } from './arc3d';\nimport { Pyramid3d } from './pyramid3d';\nimport { WrapText } from './wrap-text';\n\nexport function createArc(attributes: IArcGraphicAttribute): IArc {\n return new Arc(attributes);\n}\nexport function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n return new Arc3d(attributes);\n}\nexport function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n return new Pyramid3d(attributes);\n}\nexport function createArea(attributes: IAreaGraphicAttribute): IArea {\n return new Area(attributes);\n}\nexport function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n return new Circle(attributes);\n}\nexport function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n return new Group(attributes);\n}\nexport function createLine(attributes: ILineGraphicAttribute): ILine {\n return new Line(attributes);\n}\nexport function createPath(attributes: IPathGraphicAttribute): IPath {\n return new Path(attributes);\n}\nexport function createRect(attributes: IRectGraphicAttribute): IRect {\n return new Rect(attributes);\n}\nexport function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n return new Rect3d(attributes);\n}\nexport function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n return new Glyph(attributes);\n}\nexport function createText(attributes: ITextGraphicAttribute): IText {\n return new Text(attributes);\n}\nexport function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n return new WrapText(attributes);\n}\nexport function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n return new MarkSymbol(attributes);\n}\nexport function createImage(attributes: IImageGraphicAttribute): IImage {\n return new Image(attributes);\n}\nexport function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n return new Polygon(attributes);\n}\nexport function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n return new MarkShadowRoot(graphic);\n}\nexport function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n return new RichText(attributes);\n}\n\nexport const graphicCreator = {\n arc: createArc,\n area: createArea,\n circle: createCircle,\n group: createGroup,\n image: createImage,\n line: createLine,\n path: createPath,\n rect: createRect,\n rect3d: createRect3d,\n symbol: createSymbol,\n text: createText,\n richtext: createRichText,\n polygon: createPolygon,\n shadowRoot: createShadowRoot,\n wrapText: createWrapText\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/graphic-creator.ts"],"names":[],"mappings":"AAoCA,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,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAA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AAC,UAAqC;IAClE,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AACD,MAAM,UAAU,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AACD,MAAM,UAAU,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AACD,MAAM,UAAU,aAAa,CAAC,UAAoC;IAChE,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AACD,MAAM,UAAU,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;CACzB,CAAC","file":"graphic-creator.js","sourcesContent":["import type {\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,9 +1,5 @@
1
- import { IAABBBounds } from '@visactor/vutils';
2
- import { IGraphic, IArcGraphicAttribute } from '../../interface';
1
+ import type { IArcBoundsContribution } from '../../interface';
3
2
  import { DefaultOuterBorderBoundsContribution } from './common-contribution';
4
3
  export declare const ArcBoundsContribution: unique symbol;
5
- export interface IArcBoundsContribution {
6
- updateBounds: (attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
7
- }
8
4
  export declare class DefaultArcOuterBorderBoundsContribution extends DefaultOuterBorderBoundsContribution implements IArcBoundsContribution {
9
5
  }
@@ -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":";;;;;;AAAA,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;AAGlE,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 { injectable } from 'inversify';\nimport type { IArcBoundsContribution } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const ArcBoundsContribution = Symbol.for('ArcBoundsContribution');\n\n@injectable()\nexport class DefaultArcOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements IArcBoundsContribution {}\n"]}
@@ -1,6 +1 @@
1
- import { IAABBBounds } from '@visactor/vutils';
2
- import { IGraphic, IAreaGraphicAttribute } from '../../interface';
3
1
  export declare const AreaBoundsContribution: unique symbol;
4
- export interface IAreaBoundsContribution {
5
- updateBounds: (attribute: IAreaGraphicAttribute, arcTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
6
- }
@@ -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":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC","file":"area-contribution.js","sourcesContent":["export const AreaBoundsContribution = Symbol.for('AreaBoundsContribution');\n\n// @injectable()\n// export class DefaultArcOuterBorderBoundsContribution\n// extends DefaultOuterBorderBoundsContribution\n// implements IArcBoundsContribution {}\n"]}
@@ -1,9 +1,5 @@
1
- import { IAABBBounds } from '@visactor/vutils';
2
- import { IGraphic, ICircleGraphicAttribute } from '../../interface';
1
+ import type { ICircleBoundsContribution } from '../../interface';
3
2
  import { DefaultOuterBorderBoundsContribution } from './common-contribution';
4
3
  export declare const CircleBoundsContribution: unique symbol;
5
- export interface ICircleBoundsContribution {
6
- updateBounds: (attribute: ICircleGraphicAttribute, circleTheme: Required<ICircleGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
7
- }
8
4
  export declare class DefaultCircleOuterBorderBoundsContribution extends DefaultOuterBorderBoundsContribution implements ICircleBoundsContribution {
9
5
  }
@@ -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":";;;;;;AAAA,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;AAGxE,IAAM,0CAA0C,GAAhD,MAAM,0CACX,SAAQ,oCAAoC;CACL,CAAA;AAF5B,0CAA0C;IADtD,UAAU,EAAE;GACA,0CAA0C,CAEd;SAF5B,0CAA0C","file":"circle-contribution.js","sourcesContent":["import { injectable } from 'inversify';\nimport type { ICircleBoundsContribution } from '../../interface';\nimport { DefaultOuterBorderBoundsContribution } from './common-contribution';\n\nexport const CircleBoundsContribution = Symbol.for('CircleBoundsContribution');\n\n@injectable()\nexport class DefaultCircleOuterBorderBoundsContribution\n extends DefaultOuterBorderBoundsContribution\n implements ICircleBoundsContribution {}\n"]}
@@ -1,12 +1,6 @@
1
- import { AABBBounds, IAABBBounds, IBounds, IMatrix } from '@visactor/vutils';
2
- import { SyncHook } from '../../tapable';
3
- import { mat4, vec3, IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, IGraphicAttribute, ICircle, ICircleGraphicAttribute, IGraphic, IGroup, IGroupGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRectGraphicAttribute, IStage, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IGlyph, IGlyphGraphicAttribute, IRichTextGraphicAttribute, IRichText, IPyramid3dGraphicAttribute, IPyramid3d, IArc3dGraphicAttribute, IArc3d, IImageGraphicAttribute, ITransform, IGraphicService, IGraphicCreator } from '../../interface';
4
- import { IRectBoundsContribution } from './rect-contribution';
5
- import { ISymbolBoundsContribution } from './symbol-contribution';
6
- import { ICircleBoundsContribution } from './circle-contribution';
7
- import { IArcBoundsContribution } from './arc-contribution';
8
- import { IPathBoundsContribution } from './path-contribution';
9
- import { ContributionProvider } from '../../common/contribution-provider';
1
+ import type { IAABBBounds, IBounds, IMatrix } from '@visactor/vutils';
2
+ import { AABBBounds } from '@visactor/vutils';
3
+ import type { mat4, vec3, IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, IGraphicAttribute, ICircle, ICircleGraphicAttribute, IGraphic, IGroup, IGroupGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRectGraphicAttribute, IStage, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IGlyph, IGlyphGraphicAttribute, IRichTextGraphicAttribute, IRichText, IPyramid3dGraphicAttribute, IPyramid3d, IArc3dGraphicAttribute, IArc3d, IImageGraphicAttribute, ITransform, IGraphicService, IGraphicCreator, ISyncHook, IRectBoundsContribution, ISymbolBoundsContribution, ICircleBoundsContribution, IArcBoundsContribution, IPathBoundsContribution, IContributionProvider } from '../../interface';
10
4
  export declare function rotateX(out: mat4, a: mat4, rad: number): mat4;
11
5
  export declare function rotateY(out: mat4, a: mat4, rad: number): mat4;
12
6
  export declare function translate(out: mat4, a: mat4, v: vec3): mat4;
@@ -18,19 +12,19 @@ export declare function getModelMatrix(out: mat4, graphic: IGraphic, theme: ITra
18
12
  export declare function shouldUseMat4(graphic: IGraphic): number;
19
13
  export declare class DefaultGraphicService implements IGraphicService {
20
14
  readonly creator: IGraphicCreator;
21
- protected readonly rectBoundsContribitions: ContributionProvider<IRectBoundsContribution>;
22
- protected readonly symbolBoundsContribitions: ContributionProvider<ISymbolBoundsContribution>;
23
- protected readonly circleBoundsContribitions: ContributionProvider<ICircleBoundsContribution>;
24
- protected readonly arcBoundsContribitions: ContributionProvider<IArcBoundsContribution>;
25
- protected readonly pathBoundsContribitions: ContributionProvider<IPathBoundsContribution>;
15
+ protected readonly rectBoundsContribitions: IContributionProvider<IRectBoundsContribution>;
16
+ protected readonly symbolBoundsContribitions: IContributionProvider<ISymbolBoundsContribution>;
17
+ protected readonly circleBoundsContribitions: IContributionProvider<ICircleBoundsContribution>;
18
+ protected readonly arcBoundsContribitions: IContributionProvider<IArcBoundsContribution>;
19
+ protected readonly pathBoundsContribitions: IContributionProvider<IPathBoundsContribution>;
26
20
  hooks: {
27
- onAttributeUpdate: SyncHook<[IGraphic]>;
28
- onSetStage: SyncHook<[IGraphic, IStage]>;
29
- onRemove: SyncHook<[IGraphic]>;
30
- onAddIncremental: SyncHook<[IGraphic, IGroup, IStage]>;
31
- onClearIncremental: SyncHook<[IGroup, IStage]>;
32
- beforeUpdateAABBBounds: SyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;
33
- afterUpdateAABBBounds: SyncHook<[IGraphic, IStage, IAABBBounds, {
21
+ onAttributeUpdate: ISyncHook<[IGraphic]>;
22
+ onSetStage: ISyncHook<[IGraphic, IStage]>;
23
+ onRemove: ISyncHook<[IGraphic]>;
24
+ onAddIncremental: ISyncHook<[IGraphic, IGroup, IStage]>;
25
+ onClearIncremental: ISyncHook<[IGroup, IStage]>;
26
+ beforeUpdateAABBBounds: ISyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;
27
+ afterUpdateAABBBounds: ISyncHook<[IGraphic, IStage, IAABBBounds, {
34
28
  globalAABBBounds: IAABBBounds;
35
29
  }, boolean]>;
36
30
  };
@@ -41,7 +35,7 @@ export declare class DefaultGraphicService implements IGraphicService {
41
35
  protected _pathBoundsContribitions: IPathBoundsContribution[];
42
36
  protected tempAABBBounds1: AABBBounds;
43
37
  protected tempAABBBounds2: AABBBounds;
44
- constructor(creator: IGraphicCreator, rectBoundsContribitions: ContributionProvider<IRectBoundsContribution>, symbolBoundsContribitions: ContributionProvider<ISymbolBoundsContribution>, circleBoundsContribitions: ContributionProvider<ICircleBoundsContribution>, arcBoundsContribitions: ContributionProvider<IArcBoundsContribution>, pathBoundsContribitions: ContributionProvider<IPathBoundsContribution>);
38
+ constructor(creator: IGraphicCreator, rectBoundsContribitions: IContributionProvider<IRectBoundsContribution>, symbolBoundsContribitions: IContributionProvider<ISymbolBoundsContribution>, circleBoundsContribitions: IContributionProvider<ICircleBoundsContribution>, arcBoundsContribitions: IContributionProvider<IArcBoundsContribution>, pathBoundsContribitions: IContributionProvider<IPathBoundsContribution>);
45
39
  onAttributeUpdate(graphic: IGraphic): void;
46
40
  onSetStage(graphic: IGraphic, stage: IStage): void;
47
41
  onRemove(graphic: IGraphic<Partial<IGraphicAttribute>>): void;
@@ -80,5 +74,5 @@ export declare class DefaultGraphicService implements IGraphicService {
80
74
  updateSymbolAABBBoundsAccurate(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ISymbol): IAABBBounds;
81
75
  updateImageAABBBounds(attribute: IImageGraphicAttribute, imageTheme: Required<IImageGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IBounds;
82
76
  combindShadowAABBBounds(bounds: IAABBBounds, graphic?: IGraphic): void;
83
- transformAABBBounds(attribute: Partial<IGraphicAttribute>, aabbBounds: IAABBBounds, theme: Required<IGraphicAttribute>, graphic?: IGraphic): void;
77
+ transformAABBBounds(attribute: Partial<IGraphicAttribute>, aabbBounds: IAABBBounds, theme: Required<IGraphicAttribute>, miter: boolean, graphic?: IGraphic): void;
84
78
  }
@@ -247,7 +247,7 @@ let DefaultGraphicService = class {
247
247
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
248
248
  this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
249
249
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
250
- })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic), aabbBounds;
250
+ })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, !1, graphic), aabbBounds;
251
251
  }
252
252
  updateGroupAABBBounds(attribute, groupTheme, aabbBounds, graphic) {
253
253
  const {width: width, height: height, path: path, clip: clip = groupTheme.clip} = attribute;
@@ -258,7 +258,7 @@ let DefaultGraphicService = class {
258
258
  }));
259
259
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
260
260
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
261
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
261
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, !1, graphic),
262
262
  aabbBounds;
263
263
  }
264
264
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
@@ -305,7 +305,7 @@ let DefaultGraphicService = class {
305
305
  aabbBounds.translate(deltaX, deltaY);
306
306
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
307
307
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
308
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic),
308
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, graphic),
309
309
  aabbBounds;
310
310
  }
311
311
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
@@ -320,11 +320,14 @@ let DefaultGraphicService = class {
320
320
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
321
321
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
322
322
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
323
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
324
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
323
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
324
+ this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
325
325
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
326
326
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
327
- })), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic), aabbBounds;
327
+ }));
328
+ const {lineJoin: lineJoin = pathTheme.lineJoin} = attribute;
329
+ return this.transformAABBBounds(attribute, aabbBounds, pathTheme, "miter" === lineJoin, graphic),
330
+ aabbBounds;
328
331
  }
329
332
  updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic) {
330
333
  if (!graphic) return aabbBounds;
@@ -341,7 +344,7 @@ let DefaultGraphicService = class {
341
344
  }));
342
345
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
343
346
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
344
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
347
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, !1, graphic),
345
348
  aabbBounds;
346
349
  }
347
350
  updateArc3dAABBBounds(attribute, arcTheme, aabbBounds, graphic) {
@@ -352,14 +355,15 @@ let DefaultGraphicService = class {
352
355
  aabbBounds.setValue(-r, -r, r, r);
353
356
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
354
357
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
355
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
358
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, !1, graphic),
356
359
  aabbBounds;
357
360
  }
358
361
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
359
362
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
360
363
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
361
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
362
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
364
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
365
+ const {lineJoin: lineJoin = polygonTheme.lineJoin} = attribute;
366
+ return this.transformAABBBounds(attribute, aabbBounds, polygonTheme, "miter" === lineJoin, graphic),
363
367
  aabbBounds;
364
368
  }
365
369
  updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic) {
@@ -371,8 +375,9 @@ let DefaultGraphicService = class {
371
375
  updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
372
376
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
373
377
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
374
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
375
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic),
378
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
379
+ const {lineJoin: lineJoin = lineTheme.lineJoin} = attribute;
380
+ return this.transformAABBBounds(attribute, aabbBounds, lineTheme, "miter" === lineJoin, graphic),
376
381
  aabbBounds;
377
382
  }
378
383
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
@@ -392,8 +397,9 @@ let DefaultGraphicService = class {
392
397
  updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
393
398
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
394
399
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
395
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
396
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic),
400
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
401
+ const {lineJoin: lineJoin = areaTheme.lineJoin} = attribute;
402
+ return this.transformAABBBounds(attribute, aabbBounds, areaTheme, "miter" === lineJoin, graphic),
397
403
  aabbBounds;
398
404
  }
399
405
  updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic) {
@@ -419,7 +425,8 @@ let DefaultGraphicService = class {
419
425
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
420
426
  this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
421
427
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
422
- })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic), aabbBounds;
428
+ })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, !1, graphic),
429
+ aabbBounds;
423
430
  }
424
431
  updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) {
425
432
  const {radius: radius = circleTheme.radius} = attribute;
@@ -433,29 +440,40 @@ let DefaultGraphicService = class {
433
440
  updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
434
441
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
435
442
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
436
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
437
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
443
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
444
+ this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
438
445
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
439
446
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
440
- })), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
447
+ }));
448
+ const {lineJoin: lineJoin = arcTheme.lineJoin} = attribute;
449
+ return this.transformAABBBounds(attribute, aabbBounds, arcTheme, "miter" === lineJoin, graphic),
450
+ aabbBounds;
441
451
  }
442
452
  updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) {
443
453
  const {outerRadius: outerRadius = arcTheme.outerRadius} = attribute;
444
454
  return aabbBounds.set(-outerRadius, -outerRadius, outerRadius, outerRadius), aabbBounds;
445
455
  }
446
456
  updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic) {
447
- const {outerRadius: outerRadius = arcTheme.outerRadius, innerRadius: innerRadius = arcTheme.innerRadius, endAngle: endAngle = arcTheme.endAngle, startAngle: startAngle = arcTheme.startAngle} = attribute;
457
+ const {outerRadius: outerRadius = arcTheme.outerRadius, innerRadius: innerRadius = arcTheme.innerRadius} = attribute;
458
+ let {endAngle: endAngle = arcTheme.endAngle, startAngle: startAngle = arcTheme.startAngle} = attribute;
459
+ if (startAngle > endAngle) {
460
+ const temp = startAngle;
461
+ startAngle = endAngle, endAngle = temp;
462
+ }
448
463
  return outerRadius <= epsilon ? aabbBounds.set(0, 0, 0, 0) : Math.abs(endAngle - startAngle) > pi2 - epsilon ? aabbBounds.set(-outerRadius, -outerRadius, outerRadius, outerRadius) : (circleBounds(startAngle, endAngle, outerRadius, aabbBounds),
449
464
  circleBounds(startAngle, endAngle, innerRadius, aabbBounds)), aabbBounds;
450
465
  }
451
466
  updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
452
467
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
453
468
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
454
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
455
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
469
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
470
+ this._symbolBoundsContribitions || (this._symbolBoundsContribitions = this.symbolBoundsContribitions.getContributions() || []),
456
471
  this._symbolBoundsContribitions.length && this._symbolBoundsContribitions.forEach((c => {
457
472
  c.updateBounds(attribute, symbolTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
458
- })), this.transformAABBBounds(attribute, aabbBounds, symbolTheme, graphic), aabbBounds;
473
+ }));
474
+ const {lineJoin: lineJoin = symbolTheme.lineJoin} = attribute;
475
+ return this.transformAABBBounds(attribute, aabbBounds, symbolTheme, "miter" === lineJoin, graphic),
476
+ aabbBounds;
459
477
  }
460
478
  updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) {
461
479
  const {size: size = symbolTheme.size} = attribute;
@@ -477,7 +495,7 @@ let DefaultGraphicService = class {
477
495
  }
478
496
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
479
497
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
480
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic),
498
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, !1, graphic),
481
499
  aabbBounds;
482
500
  }
483
501
  combindShadowAABBBounds(bounds, graphic) {
@@ -486,17 +504,16 @@ let DefaultGraphicService = class {
486
504
  bounds.union(b);
487
505
  }
488
506
  }
489
- transformAABBBounds(attribute, aabbBounds, theme, graphic) {
490
- const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = theme.stroke, shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
507
+ transformAABBBounds(attribute, aabbBounds, theme, miter, graphic) {
508
+ const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = theme.stroke, shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
491
509
  if (stroke) {
492
510
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
493
- boundStroke(tb1, scaledHalfLineWidth, "miter" === lineJoin, strokeBoundsBuffer),
494
- aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
511
+ boundStroke(tb1, scaledHalfLineWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1),
512
+ tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
495
513
  }
496
514
  if (shadowBlur) {
497
515
  const shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
498
- boundStroke(tb1, shadowBlurHalfWidth, "miter" === lineJoin, strokeBoundsBuffer),
499
- aabbBounds.union(tb1);
516
+ boundStroke(tb1, shadowBlurHalfWidth, miter, strokeBoundsBuffer), aabbBounds.union(tb1);
500
517
  }
501
518
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
502
519
  }