@visactor/vrender 0.11.1 → 0.11.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1100) 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/timeline.d.ts +1 -11
  13. package/cjs/animate/timeline.js.map +1 -1
  14. package/cjs/application.d.ts +3 -3
  15. package/cjs/application.js.map +1 -1
  16. package/cjs/canvas/constants.d.ts +2 -0
  17. package/cjs/canvas/{interface.js → constants.js} +1 -1
  18. package/cjs/canvas/constants.js.map +1 -0
  19. package/cjs/canvas/contributions/browser/conical-gradient.js +19 -18
  20. package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
  21. package/cjs/canvas/contributions/browser/modules.js +3 -3
  22. package/cjs/canvas/contributions/browser/modules.js.map +1 -1
  23. package/cjs/canvas/contributions/feishu/modules.js +3 -3
  24. package/cjs/canvas/contributions/feishu/modules.js.map +1 -1
  25. package/cjs/canvas/contributions/lynx/modules.js +3 -3
  26. package/cjs/canvas/contributions/lynx/modules.js.map +1 -1
  27. package/cjs/canvas/contributions/node/canvas.js +2 -2
  28. package/cjs/canvas/contributions/node/canvas.js.map +1 -1
  29. package/cjs/canvas/contributions/node/modules.js +3 -3
  30. package/cjs/canvas/contributions/node/modules.js.map +1 -1
  31. package/cjs/canvas/contributions/taro/modules.js +3 -3
  32. package/cjs/canvas/contributions/taro/modules.js.map +1 -1
  33. package/cjs/canvas/contributions/tt/modules.js +3 -3
  34. package/cjs/canvas/contributions/tt/modules.js.map +1 -1
  35. package/cjs/canvas/index.d.ts +1 -1
  36. package/cjs/canvas/index.js +1 -1
  37. package/cjs/canvas/index.js.map +1 -1
  38. package/cjs/canvas/util.d.ts +3 -3
  39. package/cjs/canvas/util.js +3 -3
  40. package/cjs/canvas/util.js.map +1 -1
  41. package/cjs/common/contribution-provider.d.ts +1 -4
  42. package/cjs/common/contribution-provider.js.map +1 -1
  43. package/cjs/common/enums.d.ts +4 -0
  44. package/cjs/common/enums.js +6 -3
  45. package/cjs/common/enums.js.map +1 -1
  46. package/cjs/common/text.d.ts +5 -12
  47. package/cjs/common/text.js.map +1 -1
  48. package/cjs/constants.d.ts +2 -0
  49. package/cjs/constants.js +7 -0
  50. package/cjs/constants.js.map +1 -0
  51. package/cjs/core/application.d.ts +0 -6
  52. package/cjs/core/application.js.map +1 -1
  53. package/cjs/core/contributions/env/feishu-contribution.d.ts +1 -13
  54. package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
  55. package/cjs/core/contributions/env/lynx-contribution.d.ts +1 -13
  56. package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
  57. package/cjs/core/contributions/env/modules.js +7 -7
  58. package/cjs/core/contributions/env/modules.js.map +1 -1
  59. package/cjs/core/contributions/env/taro-contribution.d.ts +1 -30
  60. package/cjs/core/contributions/env/taro-contribution.js.map +1 -1
  61. package/cjs/core/contributions/index.d.ts +1 -1
  62. package/cjs/core/contributions/index.js.map +1 -1
  63. package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -4
  64. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +2 -2
  65. package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  66. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -3
  67. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +2 -2
  68. package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  69. package/cjs/core/contributions/modules.d.ts +1 -1
  70. package/cjs/core/contributions/modules.js.map +1 -1
  71. package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +4 -3
  72. package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  73. package/cjs/core/contributions/textMeasure/layout.d.ts +4 -30
  74. package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
  75. package/cjs/core/contributions/window/base-contribution.d.ts +3 -3
  76. package/cjs/core/contributions/window/base-contribution.js +3 -0
  77. package/cjs/core/contributions/window/base-contribution.js.map +1 -1
  78. package/cjs/core/contributions/window/browser-contribution.d.ts +2 -3
  79. package/cjs/core/contributions/window/browser-contribution.js +2 -2
  80. package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
  81. package/cjs/core/contributions/window/feishu-contribution.d.ts +2 -3
  82. package/cjs/core/contributions/window/feishu-contribution.js +2 -2
  83. package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
  84. package/cjs/core/contributions/window/lynx-contribution.d.ts +2 -3
  85. package/cjs/core/contributions/window/lynx-contribution.js +2 -2
  86. package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
  87. package/cjs/core/contributions/window/node-contribution.d.ts +2 -3
  88. package/cjs/core/contributions/window/node-contribution.js +2 -2
  89. package/cjs/core/contributions/window/node-contribution.js.map +1 -1
  90. package/cjs/core/contributions/window/taro-contribution.d.ts +2 -3
  91. package/cjs/core/contributions/window/taro-contribution.js +2 -2
  92. package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
  93. package/cjs/core/core-modules.js +2 -2
  94. package/cjs/core/core-modules.js.map +1 -1
  95. package/cjs/core/global-module.d.ts +1 -1
  96. package/cjs/core/global-module.js +4 -4
  97. package/cjs/core/global-module.js.map +1 -1
  98. package/cjs/core/global.d.ts +4 -6
  99. package/cjs/core/global.js +2 -2
  100. package/cjs/core/global.js.map +1 -1
  101. package/cjs/core/graphic-utils.d.ts +7 -7
  102. package/cjs/core/graphic-utils.js +2 -2
  103. package/cjs/core/graphic-utils.js.map +1 -1
  104. package/cjs/core/index.d.ts +1 -1
  105. package/cjs/core/index.js +1 -1
  106. package/cjs/core/index.js.map +1 -1
  107. package/cjs/core/layer-service.d.ts +2 -2
  108. package/cjs/core/layer-service.js +2 -2
  109. package/cjs/core/layer-service.js.map +1 -1
  110. package/cjs/core/layer.d.ts +2 -32
  111. package/cjs/core/layer.js.map +1 -1
  112. package/cjs/core/stage.d.ts +5 -10
  113. package/cjs/core/stage.js +4 -3
  114. package/cjs/core/stage.js.map +1 -1
  115. package/cjs/core/window.d.ts +3 -68
  116. package/cjs/core/window.js +2 -2
  117. package/cjs/core/window.js.map +1 -1
  118. package/cjs/event/event-manager.d.ts +2 -2
  119. package/cjs/event/event-manager.js.map +1 -1
  120. package/cjs/event/event-system.d.ts +1 -1
  121. package/cjs/event/event-system.js.map +1 -1
  122. package/cjs/event/event-target.d.ts +1 -1
  123. package/cjs/event/event-target.js.map +1 -1
  124. package/cjs/event/extension/drag.d.ts +1 -1
  125. package/cjs/event/extension/drag.js.map +1 -1
  126. package/cjs/event/extension/gesture.d.ts +3 -25
  127. package/cjs/event/extension/gesture.js.map +1 -1
  128. package/cjs/event/federated-event/base-event.d.ts +1 -1
  129. package/cjs/event/federated-event/base-event.js.map +1 -1
  130. package/cjs/event/index.d.ts +1 -1
  131. package/cjs/event/index.js +1 -1
  132. package/cjs/event/index.js.map +1 -1
  133. package/cjs/graphic/arc.d.ts +3 -3
  134. package/cjs/graphic/arc.js.map +1 -1
  135. package/cjs/graphic/arc3d.d.ts +2 -2
  136. package/cjs/graphic/arc3d.js.map +1 -1
  137. package/cjs/graphic/area.d.ts +2 -2
  138. package/cjs/graphic/area.js.map +1 -1
  139. package/cjs/graphic/bounds.d.ts +1 -1
  140. package/cjs/graphic/bounds.js.map +1 -1
  141. package/cjs/graphic/builtin-symbol/arrow.d.ts +2 -3
  142. package/cjs/graphic/builtin-symbol/arrow.js.map +1 -1
  143. package/cjs/graphic/builtin-symbol/arrow2-left.d.ts +2 -3
  144. package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  145. package/cjs/graphic/builtin-symbol/arrow2-right.d.ts +2 -3
  146. package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  147. package/cjs/graphic/builtin-symbol/circle.d.ts +2 -3
  148. package/cjs/graphic/builtin-symbol/circle.js.map +1 -1
  149. package/cjs/graphic/builtin-symbol/cross.d.ts +2 -3
  150. package/cjs/graphic/builtin-symbol/cross.js.map +1 -1
  151. package/cjs/graphic/builtin-symbol/diamond.d.ts +2 -3
  152. package/cjs/graphic/builtin-symbol/diamond.js.map +1 -1
  153. package/cjs/graphic/builtin-symbol/index.d.ts +1 -2
  154. package/cjs/graphic/builtin-symbol/index.js +1 -1
  155. package/cjs/graphic/builtin-symbol/index.js.map +1 -1
  156. package/cjs/graphic/builtin-symbol/rect.d.ts +2 -3
  157. package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
  158. package/cjs/graphic/builtin-symbol/square.d.ts +2 -3
  159. package/cjs/graphic/builtin-symbol/square.js.map +1 -1
  160. package/cjs/graphic/builtin-symbol/star.d.ts +2 -3
  161. package/cjs/graphic/builtin-symbol/star.js.map +1 -1
  162. package/cjs/graphic/builtin-symbol/stroke.d.ts +2 -3
  163. package/cjs/graphic/builtin-symbol/stroke.js.map +1 -1
  164. package/cjs/graphic/builtin-symbol/thin-triangle.d.ts +2 -3
  165. package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  166. package/cjs/graphic/builtin-symbol/triangle-down.d.ts +2 -3
  167. package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -1
  168. package/cjs/graphic/builtin-symbol/triangle-left.d.ts +2 -3
  169. package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -1
  170. package/cjs/graphic/builtin-symbol/triangle-right.d.ts +2 -3
  171. package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -1
  172. package/cjs/graphic/builtin-symbol/triangle-up.d.ts +2 -3
  173. package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -1
  174. package/cjs/graphic/builtin-symbol/triangle.d.ts +1 -2
  175. package/cjs/graphic/builtin-symbol/triangle.js.map +1 -1
  176. package/cjs/graphic/builtin-symbol/utils.d.ts +2 -3
  177. package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
  178. package/cjs/graphic/builtin-symbol/wedge.d.ts +2 -3
  179. package/cjs/graphic/builtin-symbol/wedge.js.map +1 -1
  180. package/cjs/graphic/builtin-symbol/wye.d.ts +2 -3
  181. package/cjs/graphic/builtin-symbol/wye.js.map +1 -1
  182. package/cjs/graphic/circle.d.ts +2 -2
  183. package/cjs/graphic/circle.js.map +1 -1
  184. package/cjs/graphic/config.d.ts +1 -1
  185. package/cjs/graphic/config.js +3 -2
  186. package/cjs/graphic/config.js.map +1 -1
  187. package/cjs/graphic/glyph.d.ts +2 -2
  188. package/cjs/graphic/glyph.js.map +1 -1
  189. package/cjs/graphic/graphic-creator.d.ts +1 -1
  190. package/cjs/graphic/graphic-creator.js.map +1 -1
  191. package/cjs/graphic/graphic-service/arc-contribution.d.ts +1 -5
  192. package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
  193. package/cjs/graphic/graphic-service/area-contribution.d.ts +0 -5
  194. package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
  195. package/cjs/graphic/graphic-service/circle-contribution.d.ts +1 -5
  196. package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
  197. package/cjs/graphic/graphic-service/graphic-service.d.ts +17 -23
  198. package/cjs/graphic/graphic-service/graphic-service.js +40 -28
  199. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  200. package/cjs/graphic/graphic-service/path-contribution.d.ts +1 -5
  201. package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
  202. package/cjs/graphic/graphic-service/rect-contribution.d.ts +1 -5
  203. package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
  204. package/cjs/graphic/graphic-service/symbol-contribution.d.ts +2 -5
  205. package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
  206. package/cjs/graphic/graphic.d.ts +5 -6
  207. package/cjs/graphic/graphic.js +1 -1
  208. package/cjs/graphic/graphic.js.map +1 -1
  209. package/cjs/graphic/group.d.ts +3 -3
  210. package/cjs/graphic/group.js.map +1 -1
  211. package/cjs/graphic/image.d.ts +2 -2
  212. package/cjs/graphic/image.js +2 -2
  213. package/cjs/graphic/image.js.map +1 -1
  214. package/cjs/graphic/line.d.ts +2 -2
  215. package/cjs/graphic/line.js.map +1 -1
  216. package/cjs/graphic/node-tree.d.ts +3 -2
  217. package/cjs/graphic/node-tree.js +1 -1
  218. package/cjs/graphic/node-tree.js.map +1 -1
  219. package/cjs/graphic/path.d.ts +2 -2
  220. package/cjs/graphic/path.js.map +1 -1
  221. package/cjs/graphic/polygon.d.ts +3 -3
  222. package/cjs/graphic/polygon.js.map +1 -1
  223. package/cjs/graphic/pyramid3d.d.ts +3 -3
  224. package/cjs/graphic/pyramid3d.js.map +1 -1
  225. package/cjs/graphic/rect.d.ts +2 -2
  226. package/cjs/graphic/rect.js.map +1 -1
  227. package/cjs/graphic/rect3d.d.ts +1 -1
  228. package/cjs/graphic/rect3d.js.map +1 -1
  229. package/cjs/graphic/richtext.d.ts +2 -2
  230. package/cjs/graphic/richtext.js.map +1 -1
  231. package/cjs/graphic/shadow-root.d.ts +2 -2
  232. package/cjs/graphic/shadow-root.js.map +1 -1
  233. package/cjs/graphic/symbol.d.ts +2 -3
  234. package/cjs/graphic/symbol.js.map +1 -1
  235. package/cjs/graphic/text.d.ts +2 -3
  236. package/cjs/graphic/text.js.map +1 -1
  237. package/cjs/graphic/theme.d.ts +1 -1
  238. package/cjs/graphic/theme.js.map +1 -1
  239. package/cjs/graphic/tools.d.ts +3 -3
  240. package/cjs/graphic/tools.js +2 -2
  241. package/cjs/graphic/tools.js.map +1 -1
  242. package/cjs/graphic/wrap-text.d.ts +1 -1
  243. package/cjs/graphic/wrap-text.js.map +1 -1
  244. package/cjs/index.d.ts +1 -1
  245. package/cjs/index.js +18 -18
  246. package/cjs/index.js.map +1 -1
  247. package/cjs/{allocator/interface.d.ts → interface/allocator.d.ts} +12 -1
  248. package/cjs/{animate/Ticker/interface.js → interface/allocator.js} +1 -1
  249. package/cjs/interface/allocator.js.map +1 -0
  250. package/cjs/interface/animate.d.ts +35 -0
  251. package/cjs/interface/animate.js.map +1 -1
  252. package/cjs/interface/canvas.d.ts +7 -1
  253. package/cjs/interface/canvas.js.map +1 -1
  254. package/cjs/interface/common.d.ts +1 -0
  255. package/cjs/interface/common.js.map +1 -1
  256. package/cjs/interface/context.d.ts +6 -6
  257. package/cjs/interface/context.js.map +1 -1
  258. package/cjs/interface/contribution.d.ts +105 -1
  259. package/cjs/interface/contribution.js.map +1 -1
  260. package/{es/core/interface.d.ts → cjs/interface/core.d.ts} +8 -3
  261. package/cjs/{event/type.js → interface/core.js} +1 -1
  262. package/cjs/interface/core.js.map +1 -0
  263. package/cjs/interface/creator.d.ts +2 -2
  264. package/cjs/interface/creator.js.map +1 -1
  265. package/cjs/interface/event.d.ts +193 -0
  266. package/cjs/{allocator/interface.js → interface/event.js} +1 -1
  267. package/cjs/interface/event.js.map +1 -0
  268. package/cjs/interface/global.d.ts +6 -8
  269. package/cjs/interface/global.js +1 -2
  270. package/cjs/interface/global.js.map +1 -1
  271. package/cjs/interface/graphic/arc.d.ts +1 -1
  272. package/cjs/interface/graphic/arc.js.map +1 -1
  273. package/cjs/interface/graphic/arc3d.d.ts +2 -1
  274. package/cjs/interface/graphic/arc3d.js.map +1 -1
  275. package/cjs/interface/graphic/creator.d.ts +16 -16
  276. package/cjs/interface/graphic/creator.js.map +1 -1
  277. package/cjs/interface/graphic/group.d.ts +2 -1
  278. package/cjs/interface/graphic/group.js.map +1 -1
  279. package/cjs/interface/graphic/image.d.ts +1 -1
  280. package/cjs/interface/graphic/image.js.map +1 -1
  281. package/cjs/interface/graphic/index.d.ts +24 -0
  282. package/cjs/interface/graphic/index.js +13 -1
  283. package/cjs/interface/graphic/index.js.map +1 -1
  284. package/cjs/interface/graphic/line.d.ts +1 -1
  285. package/cjs/interface/graphic/line.js.map +1 -1
  286. package/cjs/interface/graphic/rect.d.ts +1 -1
  287. package/cjs/interface/graphic/rect.js.map +1 -1
  288. package/cjs/interface/graphic/rect3d.d.ts +2 -1
  289. package/cjs/interface/graphic/rect3d.js.map +1 -1
  290. package/cjs/interface/graphic/richText.d.ts +90 -2
  291. package/cjs/interface/graphic/richText.js.map +1 -1
  292. package/cjs/interface/graphic/symbol.d.ts +10 -1
  293. package/cjs/interface/graphic/symbol.js.map +1 -1
  294. package/cjs/interface/graphic/text.d.ts +25 -1
  295. package/cjs/interface/graphic/text.js.map +1 -1
  296. package/cjs/interface/graphic-service.d.ts +30 -10
  297. package/cjs/interface/graphic-service.js.map +1 -1
  298. package/cjs/interface/graphic.d.ts +1 -0
  299. package/cjs/interface/graphic.js.map +1 -1
  300. package/cjs/interface/index.d.ts +11 -18
  301. package/cjs/interface/index.js +8 -11
  302. package/cjs/interface/index.js.map +1 -1
  303. package/cjs/interface/layer.d.ts +37 -6
  304. package/cjs/interface/layer.js.map +1 -1
  305. package/cjs/interface/light.d.ts +1 -1
  306. package/cjs/interface/light.js.map +1 -1
  307. package/cjs/interface/loader.d.ts +17 -0
  308. package/cjs/{core/interface.js → interface/loader.js} +1 -1
  309. package/cjs/interface/loader.js.map +1 -0
  310. package/cjs/interface/node-tree.d.ts +1 -1
  311. package/cjs/interface/node-tree.js.map +1 -1
  312. package/cjs/interface/path.d.ts +1 -1
  313. package/cjs/interface/path.js.map +1 -1
  314. package/cjs/interface/picker.d.ts +48 -0
  315. package/cjs/interface/picker.js +6 -0
  316. package/cjs/interface/picker.js.map +1 -0
  317. package/cjs/interface/plugin.d.ts +15 -0
  318. package/cjs/interface/plugin.js +6 -0
  319. package/cjs/interface/plugin.js.map +1 -0
  320. package/cjs/interface/render.d.ts +89 -0
  321. package/cjs/interface/render.js +6 -0
  322. package/cjs/interface/render.js.map +1 -0
  323. package/cjs/interface/stage.d.ts +17 -17
  324. package/cjs/interface/stage.js.map +1 -1
  325. package/cjs/interface/sync-hook.d.ts +26 -0
  326. package/cjs/{core/contributions/interface.js → interface/sync-hook.js} +1 -1
  327. package/cjs/interface/sync-hook.js.map +1 -0
  328. package/cjs/{core/contributions/textMeasure/ITextMeasure.d.ts → interface/text.d.ts} +2 -2
  329. package/cjs/{picker/type.js → interface/text.js} +1 -1
  330. package/cjs/interface/text.js.map +1 -0
  331. package/cjs/interface/theme-service.js.map +1 -0
  332. package/cjs/interface/window.d.ts +72 -0
  333. package/cjs/interface/window.js +6 -0
  334. package/cjs/interface/window.js.map +1 -0
  335. package/cjs/modules.d.ts +2 -3
  336. package/cjs/modules.js +2 -2
  337. package/cjs/modules.js.map +1 -1
  338. package/cjs/picker/canvas-picker-service.d.ts +6 -9
  339. package/cjs/picker/canvas-picker-service.js +2 -2
  340. package/cjs/picker/canvas-picker-service.js.map +1 -1
  341. package/cjs/picker/contributions/canvas-picker/arc-picker.d.ts +2 -4
  342. package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  343. package/cjs/picker/contributions/canvas-picker/arc3d-picker.d.ts +2 -4
  344. package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  345. package/cjs/picker/contributions/canvas-picker/area-picker.d.ts +2 -4
  346. package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  347. package/cjs/picker/contributions/canvas-picker/base-picker.d.ts +1 -1
  348. package/cjs/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  349. package/cjs/picker/contributions/canvas-picker/circle-picker.d.ts +2 -4
  350. package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  351. package/cjs/picker/contributions/canvas-picker/glyph-picker.d.ts +2 -4
  352. package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  353. package/cjs/picker/contributions/canvas-picker/image-picker.d.ts +2 -3
  354. package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  355. package/cjs/picker/contributions/canvas-picker/line-picker.d.ts +2 -4
  356. package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  357. package/cjs/picker/contributions/canvas-picker/path-picker.d.ts +2 -4
  358. package/cjs/picker/contributions/canvas-picker/path-picker.js +3 -1
  359. package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  360. package/cjs/picker/contributions/canvas-picker/polygon-picker.d.ts +2 -4
  361. package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  362. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.d.ts +2 -4
  363. package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  364. package/cjs/picker/contributions/canvas-picker/rect-picker.d.ts +2 -4
  365. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  366. package/cjs/picker/contributions/canvas-picker/rect3d-picker.d.ts +2 -4
  367. package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  368. package/cjs/picker/contributions/canvas-picker/richtext-picker.d.ts +2 -4
  369. package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  370. package/cjs/picker/contributions/canvas-picker/symbol-picker.d.ts +2 -4
  371. package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  372. package/cjs/picker/contributions/canvas-picker/text-picker.d.ts +2 -4
  373. package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  374. package/cjs/picker/contributions/math-picker/arc-picker.d.ts +2 -4
  375. package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
  376. package/cjs/picker/contributions/math-picker/area-picker.d.ts +2 -4
  377. package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
  378. package/cjs/picker/contributions/math-picker/circle-picker.d.ts +2 -4
  379. package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
  380. package/cjs/picker/contributions/math-picker/glyph-picker.d.ts +2 -4
  381. package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  382. package/cjs/picker/contributions/math-picker/line-picker.d.ts +2 -4
  383. package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
  384. package/cjs/picker/contributions/math-picker/path-picker.d.ts +2 -4
  385. package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
  386. package/cjs/picker/contributions/math-picker/polygon-picker.d.ts +2 -4
  387. package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  388. package/cjs/picker/contributions/math-picker/rect-picker.d.ts +2 -4
  389. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  390. package/cjs/picker/contributions/math-picker/symbol-picker.d.ts +2 -4
  391. package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  392. package/cjs/picker/contributions/math-picker/text-picker.d.ts +2 -3
  393. package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
  394. package/cjs/picker/global-picker-service.d.ts +2 -9
  395. package/cjs/picker/global-picker-service.js +2 -2
  396. package/cjs/picker/global-picker-service.js.map +1 -1
  397. package/cjs/picker/math-picker-service.d.ts +6 -8
  398. package/cjs/picker/math-picker-service.js +2 -2
  399. package/cjs/picker/math-picker-service.js.map +1 -1
  400. package/cjs/picker/pick-interceptor.d.ts +2 -12
  401. package/cjs/picker/pick-interceptor.js.map +1 -1
  402. package/cjs/picker/picker-service.d.ts +4 -33
  403. package/cjs/picker/picker-service.js +2 -2
  404. package/cjs/picker/picker-service.js.map +1 -1
  405. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.d.ts +1 -2
  406. package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  407. package/cjs/plugins/builtin-plugin/auto-render-plugin.d.ts +1 -1
  408. package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  409. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +1 -1
  410. package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  411. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +1 -3
  412. package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  413. package/cjs/plugins/plugin-service.d.ts +1 -14
  414. package/cjs/plugins/plugin-service.js.map +1 -1
  415. package/cjs/render/contributions/render/arc-render.d.ts +3 -7
  416. package/cjs/render/contributions/render/arc-render.js +3 -3
  417. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  418. package/cjs/render/contributions/render/arc3d-render.d.ts +1 -3
  419. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  420. package/cjs/render/contributions/render/area-render.d.ts +3 -7
  421. package/cjs/render/contributions/render/area-render.js +3 -3
  422. package/cjs/render/contributions/render/area-render.js.map +1 -1
  423. package/cjs/render/contributions/render/base-render.d.ts +2 -2
  424. package/cjs/render/contributions/render/base-render.js +1 -1
  425. package/cjs/render/contributions/render/base-render.js.map +1 -1
  426. package/cjs/render/contributions/render/circle-render.d.ts +3 -7
  427. package/cjs/render/contributions/render/circle-render.js +3 -3
  428. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  429. package/cjs/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -5
  430. package/cjs/render/contributions/render/contributions/arc-contribution-render.js +5 -5
  431. package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  432. package/cjs/render/contributions/render/contributions/area-contribution-render.d.ts +3 -7
  433. package/cjs/render/contributions/render/contributions/area-contribution-render.js +3 -3
  434. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  435. package/cjs/render/contributions/render/contributions/base-contribution-render.d.ts +2 -10
  436. package/cjs/render/contributions/render/contributions/base-contribution-render.js +6 -11
  437. package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  438. package/cjs/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -5
  439. package/cjs/render/contributions/render/contributions/circle-contribution-render.js +5 -5
  440. package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  441. package/cjs/render/contributions/render/contributions/group-contribution-render.d.ts +3 -8
  442. package/cjs/render/contributions/render/contributions/group-contribution-render.js +2 -2
  443. package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  444. package/cjs/render/contributions/render/contributions/image-contribution-render.d.ts +3 -5
  445. package/cjs/render/contributions/render/contributions/image-contribution-render.js +2 -2
  446. package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  447. package/cjs/render/contributions/render/contributions/path-contribution-render.d.ts +3 -5
  448. package/cjs/render/contributions/render/contributions/path-contribution-render.js +3 -3
  449. package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  450. package/cjs/render/contributions/render/contributions/polygon-contribution-render.d.ts +3 -5
  451. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js +3 -3
  452. package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  453. package/cjs/render/contributions/render/contributions/rect-contribution-render.d.ts +3 -8
  454. package/cjs/render/contributions/render/contributions/rect-contribution-render.js +9 -9
  455. package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  456. package/cjs/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -5
  457. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +5 -5
  458. package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  459. package/cjs/render/contributions/render/draw-contribution.d.ts +5 -10
  460. package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
  461. package/cjs/render/contributions/render/draw-interceptor.d.ts +1 -8
  462. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  463. package/cjs/render/contributions/render/glyph-render.d.ts +1 -3
  464. package/cjs/render/contributions/render/glyph-render.js.map +1 -1
  465. package/cjs/render/contributions/render/graphic-render.d.ts +1 -17
  466. package/cjs/render/contributions/render/graphic-render.js.map +1 -1
  467. package/cjs/render/contributions/render/group-render.d.ts +3 -7
  468. package/cjs/render/contributions/render/group-render.js +3 -3
  469. package/cjs/render/contributions/render/group-render.js.map +1 -1
  470. package/cjs/render/contributions/render/image-render.d.ts +3 -7
  471. package/cjs/render/contributions/render/image-render.js +11 -5
  472. package/cjs/render/contributions/render/image-render.js.map +1 -1
  473. package/cjs/render/contributions/render/incremental-area-render.d.ts +1 -3
  474. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  475. package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +5 -10
  476. package/cjs/render/contributions/render/incremental-draw-contribution.js +2 -2
  477. package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  478. package/cjs/render/contributions/render/incremental-line-render.d.ts +1 -3
  479. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  480. package/cjs/render/contributions/render/line-render.d.ts +1 -3
  481. package/cjs/render/contributions/render/line-render.js.map +1 -1
  482. package/cjs/render/contributions/render/path-render.d.ts +3 -7
  483. package/cjs/render/contributions/render/path-render.js +3 -3
  484. package/cjs/render/contributions/render/path-render.js.map +1 -1
  485. package/cjs/render/contributions/render/polygon-render.d.ts +3 -7
  486. package/cjs/render/contributions/render/polygon-render.js +3 -3
  487. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  488. package/cjs/render/contributions/render/pyramid3d-render.d.ts +1 -3
  489. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  490. package/cjs/render/contributions/render/rect-render.d.ts +3 -7
  491. package/cjs/render/contributions/render/rect-render.js +3 -3
  492. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  493. package/cjs/render/contributions/render/rect3d-render.d.ts +1 -3
  494. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  495. package/cjs/render/contributions/render/render-slector.d.ts +1 -5
  496. package/cjs/render/contributions/render/render-slector.js.map +1 -1
  497. package/cjs/render/contributions/render/richtext-render.d.ts +1 -3
  498. package/cjs/render/contributions/render/richtext-render.js.map +1 -1
  499. package/cjs/render/contributions/render/symbol-render.d.ts +3 -7
  500. package/cjs/render/contributions/render/symbol-render.js +3 -3
  501. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  502. package/cjs/render/contributions/render/text-render.d.ts +2 -4
  503. package/cjs/render/contributions/render/text-render.js.map +1 -1
  504. package/cjs/render/contributions/render/utils.d.ts +1 -3
  505. package/cjs/render/contributions/render/utils.js.map +1 -1
  506. package/cjs/render/render-service.d.ts +2 -56
  507. package/cjs/render/render-service.js.map +1 -1
  508. package/cjs/resource-loader/loader.d.ts +2 -20
  509. package/cjs/resource-loader/loader.js.map +1 -1
  510. package/cjs/tapable/Hook.d.ts +5 -22
  511. package/cjs/tapable/Hook.js.map +1 -1
  512. package/cjs/tapable/SyncHook.d.ts +3 -2
  513. package/cjs/tapable/SyncHook.js.map +1 -1
  514. package/dist/index.js +671 -636
  515. package/dist/index.min.js +1 -1
  516. package/es/allocator/canvas-allocate.d.ts +1 -2
  517. package/es/allocator/canvas-allocate.js.map +1 -1
  518. package/es/allocator/matrix-allocate.d.ts +3 -5
  519. package/es/allocator/matrix-allocate.js.map +1 -1
  520. package/es/animate/Ticker/default-ticker.d.ts +1 -15
  521. package/es/animate/Ticker/default-ticker.js.map +1 -1
  522. package/es/animate/Ticker/index.d.ts +0 -1
  523. package/es/animate/Ticker/index.js +0 -2
  524. package/es/animate/Ticker/index.js.map +1 -1
  525. package/es/animate/animate.d.ts +1 -2
  526. package/es/animate/animate.js.map +1 -1
  527. package/es/animate/timeline.d.ts +1 -11
  528. package/es/animate/timeline.js.map +1 -1
  529. package/es/application.d.ts +3 -3
  530. package/es/application.js.map +1 -1
  531. package/es/canvas/constants.d.ts +2 -0
  532. package/es/canvas/{interface.js → constants.js} +1 -1
  533. package/es/canvas/constants.js.map +1 -0
  534. package/es/canvas/contributions/browser/conical-gradient.js +19 -18
  535. package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
  536. package/es/canvas/contributions/browser/modules.js +1 -1
  537. package/es/canvas/contributions/browser/modules.js.map +1 -1
  538. package/es/canvas/contributions/feishu/modules.js +1 -1
  539. package/es/canvas/contributions/feishu/modules.js.map +1 -1
  540. package/es/canvas/contributions/lynx/modules.js +1 -1
  541. package/es/canvas/contributions/lynx/modules.js.map +1 -1
  542. package/es/canvas/contributions/node/canvas.js +3 -1
  543. package/es/canvas/contributions/node/canvas.js.map +1 -1
  544. package/es/canvas/contributions/node/modules.js +1 -1
  545. package/es/canvas/contributions/node/modules.js.map +1 -1
  546. package/es/canvas/contributions/taro/modules.js +1 -1
  547. package/es/canvas/contributions/taro/modules.js.map +1 -1
  548. package/es/canvas/contributions/tt/modules.js +1 -1
  549. package/es/canvas/contributions/tt/modules.js.map +1 -1
  550. package/es/canvas/index.d.ts +1 -1
  551. package/es/canvas/index.js +1 -1
  552. package/es/canvas/index.js.map +1 -1
  553. package/es/canvas/util.d.ts +3 -3
  554. package/es/canvas/util.js +1 -1
  555. package/es/canvas/util.js.map +1 -1
  556. package/es/common/contribution-provider.d.ts +1 -4
  557. package/es/common/contribution-provider.js.map +1 -1
  558. package/es/common/enums.d.ts +4 -0
  559. package/es/common/enums.js +7 -0
  560. package/es/common/enums.js.map +1 -1
  561. package/es/common/text.d.ts +5 -12
  562. package/es/common/text.js.map +1 -1
  563. package/es/constants.d.ts +2 -0
  564. package/es/constants.js +4 -0
  565. package/es/constants.js.map +1 -0
  566. package/es/core/application.d.ts +0 -6
  567. package/es/core/application.js.map +1 -1
  568. package/es/core/contributions/env/feishu-contribution.d.ts +1 -13
  569. package/es/core/contributions/env/feishu-contribution.js.map +1 -1
  570. package/es/core/contributions/env/lynx-contribution.d.ts +1 -13
  571. package/es/core/contributions/env/lynx-contribution.js.map +1 -1
  572. package/es/core/contributions/env/modules.js +1 -1
  573. package/es/core/contributions/env/modules.js.map +1 -1
  574. package/es/core/contributions/env/taro-contribution.d.ts +1 -30
  575. package/es/core/contributions/env/taro-contribution.js.map +1 -1
  576. package/es/core/contributions/index.d.ts +1 -1
  577. package/es/core/contributions/index.js.map +1 -1
  578. package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +2 -4
  579. package/es/core/contributions/layerHandler/canvas2d-contribution.js +1 -1
  580. package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
  581. package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +2 -3
  582. package/es/core/contributions/layerHandler/offscreen2d-contribution.js +1 -1
  583. package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
  584. package/es/core/contributions/modules.d.ts +1 -1
  585. package/es/core/contributions/modules.js.map +1 -1
  586. package/es/core/contributions/textMeasure/AtextMeasure.d.ts +4 -3
  587. package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
  588. package/es/core/contributions/textMeasure/layout.d.ts +4 -30
  589. package/es/core/contributions/textMeasure/layout.js.map +1 -1
  590. package/es/core/contributions/window/base-contribution.d.ts +3 -3
  591. package/es/core/contributions/window/base-contribution.js +3 -0
  592. package/es/core/contributions/window/base-contribution.js.map +1 -1
  593. package/es/core/contributions/window/browser-contribution.d.ts +2 -3
  594. package/es/core/contributions/window/browser-contribution.js +1 -1
  595. package/es/core/contributions/window/browser-contribution.js.map +1 -1
  596. package/es/core/contributions/window/feishu-contribution.d.ts +2 -3
  597. package/es/core/contributions/window/feishu-contribution.js +1 -1
  598. package/es/core/contributions/window/feishu-contribution.js.map +1 -1
  599. package/es/core/contributions/window/lynx-contribution.d.ts +2 -3
  600. package/es/core/contributions/window/lynx-contribution.js +1 -1
  601. package/es/core/contributions/window/lynx-contribution.js.map +1 -1
  602. package/es/core/contributions/window/node-contribution.d.ts +2 -3
  603. package/es/core/contributions/window/node-contribution.js +1 -1
  604. package/es/core/contributions/window/node-contribution.js.map +1 -1
  605. package/es/core/contributions/window/taro-contribution.d.ts +2 -3
  606. package/es/core/contributions/window/taro-contribution.js +1 -1
  607. package/es/core/contributions/window/taro-contribution.js.map +1 -1
  608. package/es/core/core-modules.js +2 -2
  609. package/es/core/core-modules.js.map +1 -1
  610. package/es/core/global-module.d.ts +1 -1
  611. package/es/core/global-module.js +2 -2
  612. package/es/core/global-module.js.map +1 -1
  613. package/es/core/global.d.ts +4 -6
  614. package/es/core/global.js +3 -3
  615. package/es/core/global.js.map +1 -1
  616. package/es/core/graphic-utils.d.ts +7 -7
  617. package/es/core/graphic-utils.js +2 -2
  618. package/es/core/graphic-utils.js.map +1 -1
  619. package/es/core/index.d.ts +1 -1
  620. package/es/core/index.js +1 -1
  621. package/es/core/index.js.map +1 -1
  622. package/es/core/layer-service.d.ts +2 -2
  623. package/es/core/layer-service.js +2 -2
  624. package/es/core/layer-service.js.map +1 -1
  625. package/es/core/layer.d.ts +2 -32
  626. package/es/core/layer.js.map +1 -1
  627. package/es/core/stage.d.ts +5 -10
  628. package/es/core/stage.js +4 -3
  629. package/es/core/stage.js.map +1 -1
  630. package/es/core/window.d.ts +3 -68
  631. package/es/core/window.js +2 -2
  632. package/es/core/window.js.map +1 -1
  633. package/es/event/event-manager.d.ts +2 -2
  634. package/es/event/event-manager.js.map +1 -1
  635. package/es/event/event-system.d.ts +1 -1
  636. package/es/event/event-system.js.map +1 -1
  637. package/es/event/event-target.d.ts +1 -1
  638. package/es/event/event-target.js.map +1 -1
  639. package/es/event/extension/drag.d.ts +1 -1
  640. package/es/event/extension/drag.js.map +1 -1
  641. package/es/event/extension/gesture.d.ts +3 -25
  642. package/es/event/extension/gesture.js.map +1 -1
  643. package/es/event/federated-event/base-event.d.ts +1 -1
  644. package/es/event/federated-event/base-event.js.map +1 -1
  645. package/es/event/index.d.ts +1 -1
  646. package/es/event/index.js +1 -1
  647. package/es/event/index.js.map +1 -1
  648. package/es/graphic/arc.d.ts +3 -3
  649. package/es/graphic/arc.js.map +1 -1
  650. package/es/graphic/arc3d.d.ts +2 -2
  651. package/es/graphic/arc3d.js.map +1 -1
  652. package/es/graphic/area.d.ts +2 -2
  653. package/es/graphic/area.js.map +1 -1
  654. package/es/graphic/bounds.d.ts +1 -1
  655. package/es/graphic/bounds.js.map +1 -1
  656. package/es/graphic/builtin-symbol/arrow.d.ts +2 -3
  657. package/es/graphic/builtin-symbol/arrow.js.map +1 -1
  658. package/es/graphic/builtin-symbol/arrow2-left.d.ts +2 -3
  659. package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
  660. package/es/graphic/builtin-symbol/arrow2-right.d.ts +2 -3
  661. package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
  662. package/es/graphic/builtin-symbol/circle.d.ts +2 -3
  663. package/es/graphic/builtin-symbol/circle.js.map +1 -1
  664. package/es/graphic/builtin-symbol/cross.d.ts +2 -3
  665. package/es/graphic/builtin-symbol/cross.js.map +1 -1
  666. package/es/graphic/builtin-symbol/diamond.d.ts +2 -3
  667. package/es/graphic/builtin-symbol/diamond.js.map +1 -1
  668. package/es/graphic/builtin-symbol/index.d.ts +1 -2
  669. package/es/graphic/builtin-symbol/index.js +0 -2
  670. package/es/graphic/builtin-symbol/index.js.map +1 -1
  671. package/es/graphic/builtin-symbol/rect.d.ts +2 -3
  672. package/es/graphic/builtin-symbol/rect.js.map +1 -1
  673. package/es/graphic/builtin-symbol/square.d.ts +2 -3
  674. package/es/graphic/builtin-symbol/square.js.map +1 -1
  675. package/es/graphic/builtin-symbol/star.d.ts +2 -3
  676. package/es/graphic/builtin-symbol/star.js.map +1 -1
  677. package/es/graphic/builtin-symbol/stroke.d.ts +2 -3
  678. package/es/graphic/builtin-symbol/stroke.js.map +1 -1
  679. package/es/graphic/builtin-symbol/thin-triangle.d.ts +2 -3
  680. package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -1
  681. package/es/graphic/builtin-symbol/triangle-down.d.ts +2 -3
  682. package/es/graphic/builtin-symbol/triangle-down.js.map +1 -1
  683. package/es/graphic/builtin-symbol/triangle-left.d.ts +2 -3
  684. package/es/graphic/builtin-symbol/triangle-left.js.map +1 -1
  685. package/es/graphic/builtin-symbol/triangle-right.d.ts +2 -3
  686. package/es/graphic/builtin-symbol/triangle-right.js.map +1 -1
  687. package/es/graphic/builtin-symbol/triangle-up.d.ts +2 -3
  688. package/es/graphic/builtin-symbol/triangle-up.js.map +1 -1
  689. package/es/graphic/builtin-symbol/triangle.d.ts +1 -2
  690. package/es/graphic/builtin-symbol/triangle.js.map +1 -1
  691. package/es/graphic/builtin-symbol/utils.d.ts +2 -3
  692. package/es/graphic/builtin-symbol/utils.js.map +1 -1
  693. package/es/graphic/builtin-symbol/wedge.d.ts +2 -3
  694. package/es/graphic/builtin-symbol/wedge.js.map +1 -1
  695. package/es/graphic/builtin-symbol/wye.d.ts +2 -3
  696. package/es/graphic/builtin-symbol/wye.js.map +1 -1
  697. package/es/graphic/circle.d.ts +2 -2
  698. package/es/graphic/circle.js.map +1 -1
  699. package/es/graphic/config.d.ts +1 -1
  700. package/es/graphic/config.js +3 -2
  701. package/es/graphic/config.js.map +1 -1
  702. package/es/graphic/glyph.d.ts +2 -2
  703. package/es/graphic/glyph.js.map +1 -1
  704. package/es/graphic/graphic-creator.d.ts +1 -1
  705. package/es/graphic/graphic-creator.js.map +1 -1
  706. package/es/graphic/graphic-service/arc-contribution.d.ts +1 -5
  707. package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
  708. package/es/graphic/graphic-service/area-contribution.d.ts +0 -5
  709. package/es/graphic/graphic-service/area-contribution.js.map +1 -1
  710. package/es/graphic/graphic-service/circle-contribution.d.ts +1 -5
  711. package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
  712. package/es/graphic/graphic-service/graphic-service.d.ts +17 -23
  713. package/es/graphic/graphic-service/graphic-service.js +40 -28
  714. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  715. package/es/graphic/graphic-service/path-contribution.d.ts +1 -5
  716. package/es/graphic/graphic-service/path-contribution.js.map +1 -1
  717. package/es/graphic/graphic-service/rect-contribution.d.ts +1 -5
  718. package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
  719. package/es/graphic/graphic-service/symbol-contribution.d.ts +2 -5
  720. package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
  721. package/es/graphic/graphic.d.ts +5 -6
  722. package/es/graphic/graphic.js +1 -1
  723. package/es/graphic/graphic.js.map +1 -1
  724. package/es/graphic/group.d.ts +3 -3
  725. package/es/graphic/group.js.map +1 -1
  726. package/es/graphic/image.d.ts +2 -2
  727. package/es/graphic/image.js +2 -2
  728. package/es/graphic/image.js.map +1 -1
  729. package/es/graphic/line.d.ts +2 -2
  730. package/es/graphic/line.js.map +1 -1
  731. package/es/graphic/node-tree.d.ts +3 -2
  732. package/es/graphic/node-tree.js +1 -1
  733. package/es/graphic/node-tree.js.map +1 -1
  734. package/es/graphic/path.d.ts +2 -2
  735. package/es/graphic/path.js.map +1 -1
  736. package/es/graphic/polygon.d.ts +3 -3
  737. package/es/graphic/polygon.js.map +1 -1
  738. package/es/graphic/pyramid3d.d.ts +3 -3
  739. package/es/graphic/pyramid3d.js.map +1 -1
  740. package/es/graphic/rect.d.ts +2 -2
  741. package/es/graphic/rect.js.map +1 -1
  742. package/es/graphic/rect3d.d.ts +1 -1
  743. package/es/graphic/rect3d.js.map +1 -1
  744. package/es/graphic/richtext.d.ts +2 -2
  745. package/es/graphic/richtext.js.map +1 -1
  746. package/es/graphic/shadow-root.d.ts +2 -2
  747. package/es/graphic/shadow-root.js.map +1 -1
  748. package/es/graphic/symbol.d.ts +2 -3
  749. package/es/graphic/symbol.js.map +1 -1
  750. package/es/graphic/text.d.ts +2 -3
  751. package/es/graphic/text.js.map +1 -1
  752. package/es/graphic/theme.d.ts +1 -1
  753. package/es/graphic/theme.js.map +1 -1
  754. package/es/graphic/tools.d.ts +3 -3
  755. package/es/graphic/tools.js +2 -2
  756. package/es/graphic/tools.js.map +1 -1
  757. package/es/graphic/wrap-text.d.ts +1 -1
  758. package/es/graphic/wrap-text.js.map +1 -1
  759. package/es/index.d.ts +1 -1
  760. package/es/index.js +1 -1
  761. package/es/index.js.map +1 -1
  762. package/es/{allocator/interface.d.ts → interface/allocator.d.ts} +12 -1
  763. package/es/interface/allocator.js +2 -0
  764. package/es/interface/allocator.js.map +1 -0
  765. package/es/interface/animate.d.ts +35 -0
  766. package/es/interface/animate.js.map +1 -1
  767. package/es/interface/canvas.d.ts +7 -1
  768. package/es/interface/canvas.js.map +1 -1
  769. package/es/interface/common.d.ts +1 -0
  770. package/es/interface/common.js.map +1 -1
  771. package/es/interface/context.d.ts +6 -6
  772. package/es/interface/context.js.map +1 -1
  773. package/es/interface/contribution.d.ts +105 -1
  774. package/es/interface/contribution.js.map +1 -1
  775. package/{cjs/core/interface.d.ts → es/interface/core.d.ts} +8 -3
  776. package/es/interface/core.js +2 -0
  777. package/es/interface/core.js.map +1 -0
  778. package/es/interface/creator.d.ts +2 -2
  779. package/es/interface/creator.js.map +1 -1
  780. package/es/interface/event.d.ts +193 -0
  781. package/es/interface/event.js +2 -0
  782. package/es/interface/event.js.map +1 -0
  783. package/es/interface/global.d.ts +6 -8
  784. package/es/interface/global.js +1 -3
  785. package/es/interface/global.js.map +1 -1
  786. package/es/interface/graphic/arc.d.ts +1 -1
  787. package/es/interface/graphic/arc.js.map +1 -1
  788. package/es/interface/graphic/arc3d.d.ts +2 -1
  789. package/es/interface/graphic/arc3d.js.map +1 -1
  790. package/es/interface/graphic/creator.d.ts +16 -16
  791. package/es/interface/graphic/creator.js.map +1 -1
  792. package/es/interface/graphic/group.d.ts +2 -1
  793. package/es/interface/graphic/group.js.map +1 -1
  794. package/es/interface/graphic/image.d.ts +1 -1
  795. package/es/interface/graphic/image.js.map +1 -1
  796. package/es/interface/graphic/index.d.ts +24 -0
  797. package/es/interface/graphic/index.js +48 -0
  798. package/es/interface/graphic/index.js.map +1 -1
  799. package/es/interface/graphic/line.d.ts +1 -1
  800. package/es/interface/graphic/line.js.map +1 -1
  801. package/es/interface/graphic/rect.d.ts +1 -1
  802. package/es/interface/graphic/rect.js.map +1 -1
  803. package/es/interface/graphic/rect3d.d.ts +2 -1
  804. package/es/interface/graphic/rect3d.js.map +1 -1
  805. package/es/interface/graphic/richText.d.ts +90 -2
  806. package/es/interface/graphic/richText.js.map +1 -1
  807. package/es/interface/graphic/symbol.d.ts +10 -1
  808. package/es/interface/graphic/symbol.js.map +1 -1
  809. package/es/interface/graphic/text.d.ts +25 -1
  810. package/es/interface/graphic/text.js.map +1 -1
  811. package/es/interface/graphic-service.d.ts +30 -10
  812. package/es/interface/graphic-service.js.map +1 -1
  813. package/es/interface/graphic.d.ts +1 -0
  814. package/es/interface/graphic.js.map +1 -1
  815. package/es/interface/index.d.ts +11 -18
  816. package/es/interface/index.js +22 -36
  817. package/es/interface/index.js.map +1 -1
  818. package/es/interface/layer.d.ts +37 -6
  819. package/es/interface/layer.js.map +1 -1
  820. package/es/interface/light.d.ts +1 -1
  821. package/es/interface/light.js.map +1 -1
  822. package/es/interface/loader.d.ts +17 -0
  823. package/es/interface/loader.js +2 -0
  824. package/es/interface/loader.js.map +1 -0
  825. package/es/interface/node-tree.d.ts +1 -1
  826. package/es/interface/node-tree.js.map +1 -1
  827. package/es/interface/path.d.ts +1 -1
  828. package/es/interface/path.js.map +1 -1
  829. package/es/interface/picker.d.ts +48 -0
  830. package/es/interface/picker.js +2 -0
  831. package/es/interface/picker.js.map +1 -0
  832. package/es/interface/plugin.d.ts +15 -0
  833. package/es/interface/plugin.js +2 -0
  834. package/es/interface/plugin.js.map +1 -0
  835. package/es/interface/render.d.ts +89 -0
  836. package/es/interface/render.js +2 -0
  837. package/es/interface/render.js.map +1 -0
  838. package/es/interface/stage.d.ts +17 -17
  839. package/es/interface/stage.js.map +1 -1
  840. package/es/interface/sync-hook.d.ts +26 -0
  841. package/es/interface/sync-hook.js +2 -0
  842. package/es/interface/sync-hook.js.map +1 -0
  843. package/es/{core/contributions/textMeasure/ITextMeasure.d.ts → interface/text.d.ts} +2 -2
  844. package/es/interface/text.js +2 -0
  845. package/es/interface/text.js.map +1 -0
  846. package/es/interface/theme-service.js.map +1 -0
  847. package/es/interface/window.d.ts +72 -0
  848. package/es/interface/window.js +2 -0
  849. package/es/interface/window.js.map +1 -0
  850. package/es/modules.d.ts +2 -3
  851. package/es/modules.js +2 -2
  852. package/es/modules.js.map +1 -1
  853. package/es/picker/canvas-picker-service.d.ts +6 -9
  854. package/es/picker/canvas-picker-service.js +2 -2
  855. package/es/picker/canvas-picker-service.js.map +1 -1
  856. package/es/picker/contributions/canvas-picker/arc-picker.d.ts +2 -4
  857. package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
  858. package/es/picker/contributions/canvas-picker/arc3d-picker.d.ts +2 -4
  859. package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
  860. package/es/picker/contributions/canvas-picker/area-picker.d.ts +2 -4
  861. package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
  862. package/es/picker/contributions/canvas-picker/base-picker.d.ts +1 -1
  863. package/es/picker/contributions/canvas-picker/base-picker.js.map +1 -1
  864. package/es/picker/contributions/canvas-picker/circle-picker.d.ts +2 -4
  865. package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
  866. package/es/picker/contributions/canvas-picker/glyph-picker.d.ts +2 -4
  867. package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
  868. package/es/picker/contributions/canvas-picker/image-picker.d.ts +2 -3
  869. package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
  870. package/es/picker/contributions/canvas-picker/line-picker.d.ts +2 -4
  871. package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
  872. package/es/picker/contributions/canvas-picker/path-picker.d.ts +2 -4
  873. package/es/picker/contributions/canvas-picker/path-picker.js +3 -1
  874. package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
  875. package/es/picker/contributions/canvas-picker/polygon-picker.d.ts +2 -4
  876. package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
  877. package/es/picker/contributions/canvas-picker/pyramid3d-picker.d.ts +2 -4
  878. package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
  879. package/es/picker/contributions/canvas-picker/rect-picker.d.ts +2 -4
  880. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  881. package/es/picker/contributions/canvas-picker/rect3d-picker.d.ts +2 -4
  882. package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
  883. package/es/picker/contributions/canvas-picker/richtext-picker.d.ts +2 -4
  884. package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
  885. package/es/picker/contributions/canvas-picker/symbol-picker.d.ts +2 -4
  886. package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
  887. package/es/picker/contributions/canvas-picker/text-picker.d.ts +2 -4
  888. package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
  889. package/es/picker/contributions/math-picker/arc-picker.d.ts +2 -4
  890. package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
  891. package/es/picker/contributions/math-picker/area-picker.d.ts +2 -4
  892. package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
  893. package/es/picker/contributions/math-picker/circle-picker.d.ts +2 -4
  894. package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
  895. package/es/picker/contributions/math-picker/glyph-picker.d.ts +2 -4
  896. package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
  897. package/es/picker/contributions/math-picker/line-picker.d.ts +2 -4
  898. package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
  899. package/es/picker/contributions/math-picker/path-picker.d.ts +2 -4
  900. package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
  901. package/es/picker/contributions/math-picker/polygon-picker.d.ts +2 -4
  902. package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
  903. package/es/picker/contributions/math-picker/rect-picker.d.ts +2 -4
  904. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  905. package/es/picker/contributions/math-picker/symbol-picker.d.ts +2 -4
  906. package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
  907. package/es/picker/contributions/math-picker/text-picker.d.ts +2 -3
  908. package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
  909. package/es/picker/global-picker-service.d.ts +2 -9
  910. package/es/picker/global-picker-service.js +1 -1
  911. package/es/picker/global-picker-service.js.map +1 -1
  912. package/es/picker/math-picker-service.d.ts +6 -8
  913. package/es/picker/math-picker-service.js +2 -2
  914. package/es/picker/math-picker-service.js.map +1 -1
  915. package/es/picker/pick-interceptor.d.ts +2 -12
  916. package/es/picker/pick-interceptor.js.map +1 -1
  917. package/es/picker/picker-service.d.ts +4 -33
  918. package/es/picker/picker-service.js +2 -2
  919. package/es/picker/picker-service.js.map +1 -1
  920. package/es/plugins/builtin-plugin/3dview-transform-plugin.d.ts +1 -2
  921. package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
  922. package/es/plugins/builtin-plugin/auto-render-plugin.d.ts +1 -1
  923. package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
  924. package/es/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +1 -1
  925. package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
  926. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +1 -3
  927. package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
  928. package/es/plugins/plugin-service.d.ts +1 -14
  929. package/es/plugins/plugin-service.js.map +1 -1
  930. package/es/render/contributions/render/arc-render.d.ts +3 -7
  931. package/es/render/contributions/render/arc-render.js +1 -1
  932. package/es/render/contributions/render/arc-render.js.map +1 -1
  933. package/es/render/contributions/render/arc3d-render.d.ts +1 -3
  934. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  935. package/es/render/contributions/render/area-render.d.ts +3 -7
  936. package/es/render/contributions/render/area-render.js +1 -1
  937. package/es/render/contributions/render/area-render.js.map +1 -1
  938. package/es/render/contributions/render/base-render.d.ts +2 -2
  939. package/es/render/contributions/render/base-render.js +1 -1
  940. package/es/render/contributions/render/base-render.js.map +1 -1
  941. package/es/render/contributions/render/circle-render.d.ts +3 -7
  942. package/es/render/contributions/render/circle-render.js +1 -1
  943. package/es/render/contributions/render/circle-render.js.map +1 -1
  944. package/es/render/contributions/render/contributions/arc-contribution-render.d.ts +3 -5
  945. package/es/render/contributions/render/contributions/arc-contribution-render.js +3 -1
  946. package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
  947. package/es/render/contributions/render/contributions/area-contribution-render.d.ts +3 -7
  948. package/es/render/contributions/render/contributions/area-contribution-render.js +3 -1
  949. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  950. package/es/render/contributions/render/contributions/base-contribution-render.d.ts +2 -10
  951. package/es/render/contributions/render/contributions/base-contribution-render.js +1 -6
  952. package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
  953. package/es/render/contributions/render/contributions/circle-contribution-render.d.ts +3 -5
  954. package/es/render/contributions/render/contributions/circle-contribution-render.js +3 -1
  955. package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
  956. package/es/render/contributions/render/contributions/group-contribution-render.d.ts +3 -8
  957. package/es/render/contributions/render/contributions/group-contribution-render.js +3 -1
  958. package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
  959. package/es/render/contributions/render/contributions/image-contribution-render.d.ts +3 -5
  960. package/es/render/contributions/render/contributions/image-contribution-render.js +3 -1
  961. package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
  962. package/es/render/contributions/render/contributions/path-contribution-render.d.ts +3 -5
  963. package/es/render/contributions/render/contributions/path-contribution-render.js +3 -1
  964. package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
  965. package/es/render/contributions/render/contributions/polygon-contribution-render.d.ts +3 -5
  966. package/es/render/contributions/render/contributions/polygon-contribution-render.js +3 -1
  967. package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
  968. package/es/render/contributions/render/contributions/rect-contribution-render.d.ts +3 -8
  969. package/es/render/contributions/render/contributions/rect-contribution-render.js +3 -1
  970. package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
  971. package/es/render/contributions/render/contributions/symbol-contribution-render.d.ts +3 -5
  972. package/es/render/contributions/render/contributions/symbol-contribution-render.js +3 -1
  973. package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
  974. package/es/render/contributions/render/draw-contribution.d.ts +5 -10
  975. package/es/render/contributions/render/draw-contribution.js.map +1 -1
  976. package/es/render/contributions/render/draw-interceptor.d.ts +1 -8
  977. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  978. package/es/render/contributions/render/glyph-render.d.ts +1 -3
  979. package/es/render/contributions/render/glyph-render.js.map +1 -1
  980. package/es/render/contributions/render/graphic-render.d.ts +1 -17
  981. package/es/render/contributions/render/graphic-render.js.map +1 -1
  982. package/es/render/contributions/render/group-render.d.ts +3 -7
  983. package/es/render/contributions/render/group-render.js +2 -2
  984. package/es/render/contributions/render/group-render.js.map +1 -1
  985. package/es/render/contributions/render/image-render.d.ts +3 -7
  986. package/es/render/contributions/render/image-render.js +12 -4
  987. package/es/render/contributions/render/image-render.js.map +1 -1
  988. package/es/render/contributions/render/incremental-area-render.d.ts +1 -3
  989. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  990. package/es/render/contributions/render/incremental-draw-contribution.d.ts +5 -10
  991. package/es/render/contributions/render/incremental-draw-contribution.js +2 -2
  992. package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
  993. package/es/render/contributions/render/incremental-line-render.d.ts +1 -3
  994. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  995. package/es/render/contributions/render/line-render.d.ts +1 -3
  996. package/es/render/contributions/render/line-render.js.map +1 -1
  997. package/es/render/contributions/render/path-render.d.ts +3 -7
  998. package/es/render/contributions/render/path-render.js +1 -1
  999. package/es/render/contributions/render/path-render.js.map +1 -1
  1000. package/es/render/contributions/render/polygon-render.d.ts +3 -7
  1001. package/es/render/contributions/render/polygon-render.js +1 -1
  1002. package/es/render/contributions/render/polygon-render.js.map +1 -1
  1003. package/es/render/contributions/render/pyramid3d-render.d.ts +1 -3
  1004. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  1005. package/es/render/contributions/render/rect-render.d.ts +3 -7
  1006. package/es/render/contributions/render/rect-render.js +1 -1
  1007. package/es/render/contributions/render/rect-render.js.map +1 -1
  1008. package/es/render/contributions/render/rect3d-render.d.ts +1 -3
  1009. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  1010. package/es/render/contributions/render/render-slector.d.ts +1 -5
  1011. package/es/render/contributions/render/render-slector.js.map +1 -1
  1012. package/es/render/contributions/render/richtext-render.d.ts +1 -3
  1013. package/es/render/contributions/render/richtext-render.js.map +1 -1
  1014. package/es/render/contributions/render/symbol-render.d.ts +3 -7
  1015. package/es/render/contributions/render/symbol-render.js +1 -1
  1016. package/es/render/contributions/render/symbol-render.js.map +1 -1
  1017. package/es/render/contributions/render/text-render.d.ts +2 -4
  1018. package/es/render/contributions/render/text-render.js.map +1 -1
  1019. package/es/render/contributions/render/utils.d.ts +1 -3
  1020. package/es/render/contributions/render/utils.js.map +1 -1
  1021. package/es/render/render-service.d.ts +2 -56
  1022. package/es/render/render-service.js.map +1 -1
  1023. package/es/resource-loader/loader.d.ts +2 -20
  1024. package/es/resource-loader/loader.js.map +1 -1
  1025. package/es/tapable/Hook.d.ts +5 -22
  1026. package/es/tapable/Hook.js.map +1 -1
  1027. package/es/tapable/SyncHook.d.ts +3 -2
  1028. package/es/tapable/SyncHook.js.map +1 -1
  1029. package/es/tsconfig.tsbuildinfo +1 -1
  1030. package/package.json +2 -1
  1031. package/cjs/allocator/interface.js.map +0 -1
  1032. package/cjs/animate/Ticker/interface.d.ts +0 -12
  1033. package/cjs/animate/Ticker/interface.js.map +0 -1
  1034. package/cjs/canvas/interface.d.ts +0 -9
  1035. package/cjs/canvas/interface.js.map +0 -1
  1036. package/cjs/core/contributions/interface.d.ts +0 -3
  1037. package/cjs/core/contributions/interface.js.map +0 -1
  1038. package/cjs/core/contributions/textMeasure/ITextMeasure.js +0 -6
  1039. package/cjs/core/contributions/textMeasure/ITextMeasure.js.map +0 -1
  1040. package/cjs/core/interface.js.map +0 -1
  1041. package/cjs/event/interface.d.ts +0 -26
  1042. package/cjs/event/interface.js +0 -6
  1043. package/cjs/event/interface.js.map +0 -1
  1044. package/cjs/event/type.d.ts +0 -24
  1045. package/cjs/event/type.js.map +0 -1
  1046. package/cjs/graphic/builtin-symbol/interface.d.ts +0 -10
  1047. package/cjs/graphic/builtin-symbol/interface.js +0 -6
  1048. package/cjs/graphic/builtin-symbol/interface.js.map +0 -1
  1049. package/cjs/graphic/graphic-service/theme-service.js.map +0 -1
  1050. package/cjs/picker/type.d.ts +0 -5
  1051. package/cjs/picker/type.js.map +0 -1
  1052. package/cjs/plugins/interface.d.ts +0 -1
  1053. package/cjs/plugins/interface.js +0 -3
  1054. package/cjs/plugins/interface.js.map +0 -1
  1055. package/cjs/render/contributions/interface.d.ts +0 -3
  1056. package/cjs/render/contributions/interface.js +0 -6
  1057. package/cjs/render/contributions/interface.js.map +0 -1
  1058. package/cjs/tapable/interface.d.ts +0 -1
  1059. package/cjs/tapable/interface.js +0 -3
  1060. package/cjs/tapable/interface.js.map +0 -1
  1061. package/es/allocator/interface.js +0 -2
  1062. package/es/allocator/interface.js.map +0 -1
  1063. package/es/animate/Ticker/interface.d.ts +0 -12
  1064. package/es/animate/Ticker/interface.js +0 -2
  1065. package/es/animate/Ticker/interface.js.map +0 -1
  1066. package/es/canvas/interface.d.ts +0 -9
  1067. package/es/canvas/interface.js.map +0 -1
  1068. package/es/core/contributions/interface.d.ts +0 -3
  1069. package/es/core/contributions/interface.js +0 -2
  1070. package/es/core/contributions/interface.js.map +0 -1
  1071. package/es/core/contributions/textMeasure/ITextMeasure.js +0 -2
  1072. package/es/core/contributions/textMeasure/ITextMeasure.js.map +0 -1
  1073. package/es/core/interface.js +0 -2
  1074. package/es/core/interface.js.map +0 -1
  1075. package/es/event/interface.d.ts +0 -26
  1076. package/es/event/interface.js +0 -2
  1077. package/es/event/interface.js.map +0 -1
  1078. package/es/event/type.d.ts +0 -24
  1079. package/es/event/type.js +0 -2
  1080. package/es/event/type.js.map +0 -1
  1081. package/es/graphic/builtin-symbol/interface.d.ts +0 -10
  1082. package/es/graphic/builtin-symbol/interface.js +0 -2
  1083. package/es/graphic/builtin-symbol/interface.js.map +0 -1
  1084. package/es/graphic/graphic-service/theme-service.js.map +0 -1
  1085. package/es/picker/type.d.ts +0 -5
  1086. package/es/picker/type.js +0 -2
  1087. package/es/picker/type.js.map +0 -1
  1088. package/es/plugins/interface.d.ts +0 -1
  1089. package/es/plugins/interface.js +0 -3
  1090. package/es/plugins/interface.js.map +0 -1
  1091. package/es/render/contributions/interface.d.ts +0 -3
  1092. package/es/render/contributions/interface.js +0 -2
  1093. package/es/render/contributions/interface.js.map +0 -1
  1094. package/es/tapable/interface.d.ts +0 -1
  1095. package/es/tapable/interface.js +0 -3
  1096. package/es/tapable/interface.js.map +0 -1
  1097. /package/cjs/{graphic/graphic-service → interface}/theme-service.d.ts +0 -0
  1098. /package/cjs/{graphic/graphic-service → interface}/theme-service.js +0 -0
  1099. /package/es/{graphic/graphic-service → interface}/theme-service.d.ts +0 -0
  1100. /package/es/{graphic/graphic-service → interface}/theme-service.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/creator.ts"],"names":[],"mappings":"","file":"creator.js","sourcesContent":["import { IGraphicAttribute } from '../graphic';\nimport { IArcAttribute, IArcGraphicAttribute } from './arc';\nimport { IAreaAttribute, IAreaGraphicAttribute } from './area';\nimport { ICircleAttribute, ICircleGraphicAttribute } from './circle';\nimport { IEllipseAttribute } from './ellipse';\nimport { IGroupAttribute, IGroupGraphicAttribute } from './group';\nimport { IImageAttribute, IImageGraphicAttribute } from './image';\nimport { IIsogonAttribute } from './isogon';\nimport { ILineAttribute, ILineGraphicAttribute } from './line';\nimport { IPathAttribute, IPathGraphicAttribute } from './path';\nimport { IPolygonAttribute } from './polygon';\nimport { IRectAttribute, IRectGraphicAttribute } from './rect';\nimport { IRichTextAttribute, IRichTextGraphicAttribute } from './richText';\nimport { ISvgAttribute } from './svg';\nimport { ISymbolAttribute, ISymbolGraphicAttribute } from './symbol';\nimport { ITextAttribute, ITextGraphicAttribute, IWrapTextGraphicAttribute } from './text';\n\nexport type IMarkAttribute =\n | IGraphicAttribute\n | IArcAttribute\n | IAreaAttribute\n | ICircleAttribute\n | IEllipseAttribute\n | IGroupAttribute\n | IImageAttribute\n | IIsogonAttribute\n | ILineAttribute\n | IPathAttribute\n | IPolygonAttribute\n | IRectAttribute\n | IRichTextAttribute\n | ISvgAttribute\n | ISymbolAttribute\n | ITextAttribute;\n\nexport type IThemeAttribute =\n | IArcGraphicAttribute\n | IAreaGraphicAttribute\n | ICircleGraphicAttribute\n // | IEllipseGraphicAttribute\n // | IGroupGraphicAttribute\n | IImageGraphicAttribute\n // | IIsogonGraphicAttribute\n | ILineGraphicAttribute\n | IPathGraphicAttribute\n // | IPolygonGraphicAttribute\n | IRectGraphicAttribute\n // | IRichTextGraphicAttribute\n // | ISvgGraphicAttribute\n | ISymbolGraphicAttribute\n | ITextGraphicAttribute\n | IRichTextGraphicAttribute\n | IWrapTextGraphicAttribute;\n\n/**\n * facet object map\n */\nexport interface GraphicAttributeMap {\n readonly arc: IArcGraphicAttribute;\n readonly area: IAreaGraphicAttribute;\n readonly circle: ICircleGraphicAttribute;\n readonly image: IImageGraphicAttribute;\n readonly line: ILineGraphicAttribute;\n readonly path: IPathGraphicAttribute;\n readonly group: IGroupGraphicAttribute;\n readonly rect: IRectGraphicAttribute;\n readonly symbol: ISymbolGraphicAttribute;\n readonly text: ITextGraphicAttribute;\n readonly richtext: IRichTextGraphicAttribute;\n readonly wrapText: IWrapTextGraphicAttribute;\n}\n\n// export declare function createArc(params: Partial<IArcAttribute & IGraphicAttribute>): IArc;\n// export declare function createArea(params: Partial<IAreaAttribute & IGraphicAttribute>): IArea;\n// export declare function createCircle(params: Partial<ICircleAttribute & IGraphicAttribute>): ICircle;\n// // export declare function createDynamicPath(params: Params<Partial<IDynamicPathShape>, Partial<IGraphicAttribute>>): IDynamicPath;\n// export declare function createEllipse(params: Partial<IEllipseAttribute & IGraphicAttribute>): IEllipse;\n// export declare function createGlyph(): IGlyph;\n// export declare function createGroup(params: Partial<IGroupAttribute & IGraphicAttribute>): IGroup;\n// export declare function createImage(params: Partial<IImageAttribute & IGraphicAttribute>): IImage;\n// export declare function createIsogon(params: Partial<IIsogonAttribute & IGraphicAttribute>): IIsogon;\n// export declare function createIine(params: Partial<ILineAttribute & IGraphicAttribute>): ILine;\n// export declare function createPath(params: Partial<IPathAttribute & IGraphicAttribute>): IPath;\n// export declare function createPolygon(params: Partial<IPolygonAttribute & IGraphicAttribute>): IPolygon;\n// // export declare function createPolyline(params: Partial<IArcAttribute & IGraphicAttribute>): IPolyline;\n// export declare function createRect(params: Partial<IRectAttribute & IGraphicAttribute>): IRect;\n// export declare function createRichText(params: Partial<IRichTextAttribute & IGraphicAttribute>): IRichText;\n// export declare function createSvg(params: Partial<ISvgAttribute & IGraphicAttribute>): ISvg;\n// export declare function createSymbol(params: Partial<ISymbolAttribute & IGraphicAttribute>): ISymbol;\n// export declare function createText(params: Partial<ITextAttribute & IGraphicAttribute>): IText;\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/creator.ts"],"names":[],"mappings":"","file":"creator.js","sourcesContent":["import type { IGraphicAttribute } from '../graphic';\nimport type { IArcAttribute, IArcGraphicAttribute } from './arc';\nimport type { IAreaAttribute, IAreaGraphicAttribute } from './area';\nimport type { ICircleAttribute, ICircleGraphicAttribute } from './circle';\nimport type { IEllipseAttribute } from './ellipse';\nimport type { IGroupAttribute, IGroupGraphicAttribute } from './group';\nimport type { IImageAttribute, IImageGraphicAttribute } from './image';\nimport type { IIsogonAttribute } from './isogon';\nimport type { ILineAttribute, ILineGraphicAttribute } from './line';\nimport type { IPathAttribute, IPathGraphicAttribute } from './path';\nimport type { IPolygonAttribute } from './polygon';\nimport type { IRectAttribute, IRectGraphicAttribute } from './rect';\nimport type { IRichTextAttribute, IRichTextGraphicAttribute } from './richText';\nimport type { ISvgAttribute } from './svg';\nimport type { ISymbolAttribute, ISymbolGraphicAttribute } from './symbol';\nimport type { ITextAttribute, ITextGraphicAttribute, IWrapTextGraphicAttribute } from './text';\n\nexport type IMarkAttribute =\n | IGraphicAttribute\n | IArcAttribute\n | IAreaAttribute\n | ICircleAttribute\n | IEllipseAttribute\n | IGroupAttribute\n | IImageAttribute\n | IIsogonAttribute\n | ILineAttribute\n | IPathAttribute\n | IPolygonAttribute\n | IRectAttribute\n | IRichTextAttribute\n | ISvgAttribute\n | ISymbolAttribute\n | ITextAttribute;\n\nexport type IThemeAttribute =\n | IArcGraphicAttribute\n | IAreaGraphicAttribute\n | ICircleGraphicAttribute\n // | IEllipseGraphicAttribute\n // | IGroupGraphicAttribute\n | IImageGraphicAttribute\n // | IIsogonGraphicAttribute\n | ILineGraphicAttribute\n | IPathGraphicAttribute\n // | IPolygonGraphicAttribute\n | IRectGraphicAttribute\n // | IRichTextGraphicAttribute\n // | ISvgGraphicAttribute\n | ISymbolGraphicAttribute\n | ITextGraphicAttribute\n | IRichTextGraphicAttribute\n | IWrapTextGraphicAttribute;\n\n/**\n * facet object map\n */\nexport interface GraphicAttributeMap {\n readonly arc: IArcGraphicAttribute;\n readonly area: IAreaGraphicAttribute;\n readonly circle: ICircleGraphicAttribute;\n readonly image: IImageGraphicAttribute;\n readonly line: ILineGraphicAttribute;\n readonly path: IPathGraphicAttribute;\n readonly group: IGroupGraphicAttribute;\n readonly rect: IRectGraphicAttribute;\n readonly symbol: ISymbolGraphicAttribute;\n readonly text: ITextGraphicAttribute;\n readonly richtext: IRichTextGraphicAttribute;\n readonly wrapText: IWrapTextGraphicAttribute;\n}\n\n// export declare function createArc(params: Partial<IArcAttribute & IGraphicAttribute>): IArc;\n// export declare function createArea(params: Partial<IAreaAttribute & IGraphicAttribute>): IArea;\n// export declare function createCircle(params: Partial<ICircleAttribute & IGraphicAttribute>): ICircle;\n// // export declare function createDynamicPath(params: Params<Partial<IDynamicPathShape>, Partial<IGraphicAttribute>>): IDynamicPath;\n// export declare function createEllipse(params: Partial<IEllipseAttribute & IGraphicAttribute>): IEllipse;\n// export declare function createGlyph(): IGlyph;\n// export declare function createGroup(params: Partial<IGroupAttribute & IGraphicAttribute>): IGroup;\n// export declare function createImage(params: Partial<IImageAttribute & IGraphicAttribute>): IImage;\n// export declare function createIsogon(params: Partial<IIsogonAttribute & IGraphicAttribute>): IIsogon;\n// export declare function createIine(params: Partial<ILineAttribute & IGraphicAttribute>): ILine;\n// export declare function createPath(params: Partial<IPathAttribute & IGraphicAttribute>): IPath;\n// export declare function createPolygon(params: Partial<IPolygonAttribute & IGraphicAttribute>): IPolygon;\n// // export declare function createPolyline(params: Partial<IArcAttribute & IGraphicAttribute>): IPolyline;\n// export declare function createRect(params: Partial<IRectAttribute & IGraphicAttribute>): IRect;\n// export declare function createRichText(params: Partial<IRichTextAttribute & IGraphicAttribute>): IRichText;\n// export declare function createSvg(params: Partial<ISvgAttribute & IGraphicAttribute>): ISvg;\n// export declare function createSymbol(params: Partial<ISymbolAttribute & IGraphicAttribute>): ISymbol;\n// export declare function createText(params: Partial<ITextAttribute & IGraphicAttribute>): IText;\n"]}
@@ -1,6 +1,7 @@
1
1
  import type { ITheme, IThemeSpec } from './theme';
2
- import type { GraphicAttributeMap, INode } from '../../interface';
3
2
  import type { IGraphicAttribute, IGraphic } from '../graphic';
3
+ import type { INode } from '../node-tree';
4
+ import type { GraphicAttributeMap } from './creator';
4
5
  export type IGroupAttribute = {
5
6
  path: IGraphic[];
6
7
  width: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/group.ts"],"names":[],"mappings":"","file":"group.js","sourcesContent":["import type { ITheme, IThemeSpec } from './theme';\nimport type { GraphicAttributeMap, INode } from '../../interface';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type IGroupAttribute = {\n path: IGraphic[];\n width: number;\n height: number;\n cornerRadius: number | number[];\n clip: boolean;\n visibleAll: boolean;\n};\n\nexport type IGroupGraphicAttribute = Partial<IGraphicAttribute> & Partial<IGroupAttribute>;\n\nexport interface IGroup extends IGraphic<IGroupGraphicAttribute> {\n childrenPickable?: boolean; // 子元素是否可以被pick\n\n theme?: ITheme;\n\n createTheme: () => void;\n hideAll: () => void;\n showAll: () => void;\n\n setTheme: (t: IThemeSpec) => void;\n\n incrementalAppendChild: (node: INode, highPerformance?: boolean) => INode | null;\n incrementalClearChild: () => void;\n\n createOrUpdateChild: <T extends keyof GraphicAttributeMap>(\n graphicName: string,\n attributes: GraphicAttributeMap[T],\n graphicType: T\n ) => INode;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/group.ts"],"names":[],"mappings":"","file":"group.js","sourcesContent":["import type { ITheme, IThemeSpec } from './theme';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { INode } from '../node-tree';\nimport type { GraphicAttributeMap } from './creator';\n\nexport type IGroupAttribute = {\n path: IGraphic[];\n width: number;\n height: number;\n cornerRadius: number | number[];\n clip: boolean;\n visibleAll: boolean;\n};\n\nexport type IGroupGraphicAttribute = Partial<IGraphicAttribute> & Partial<IGroupAttribute>;\n\nexport interface IGroup extends IGraphic<IGroupGraphicAttribute> {\n childrenPickable?: boolean; // 子元素是否可以被pick\n\n theme?: ITheme;\n\n createTheme: () => void;\n hideAll: () => void;\n showAll: () => void;\n\n setTheme: (t: IThemeSpec) => void;\n\n incrementalAppendChild: (node: INode, highPerformance?: boolean) => INode | null;\n incrementalClearChild: () => void;\n\n createOrUpdateChild: <T extends keyof GraphicAttributeMap>(\n graphicName: string,\n attributes: GraphicAttributeMap[T],\n graphicType: T\n ) => INode;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { IGraphicAttribute, IGraphic } from '../graphic';
2
- export type IRepeatType = 'no-repeat' | 'repeat' | 'stretch';
2
+ export type IRepeatType = 'no-repeat' | 'repeat';
3
3
  export type IImageAttribute = {
4
4
  width: number;
5
5
  height: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/image.ts"],"names":[],"mappings":"","file":"image.js","sourcesContent":["import type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type IRepeatType = 'no-repeat' | 'repeat' | 'stretch';\n\nexport type IImageAttribute = {\n width: number;\n height: number;\n repeatX: IRepeatType;\n repeatY: IRepeatType;\n image: string | HTMLImageElement | HTMLCanvasElement;\n};\n\nexport type IImageGraphicAttribute = Partial<IGraphicAttribute> & Partial<IImageAttribute>;\n\nexport interface IImage extends IGraphic<IImageGraphicAttribute> {\n successCallback?: () => void;\n failCallback?: () => void;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/image.ts"],"names":[],"mappings":"","file":"image.js","sourcesContent":["import type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type IRepeatType = 'no-repeat' | 'repeat';\n\nexport type IImageAttribute = {\n width: number;\n height: number;\n repeatX: IRepeatType;\n repeatY: IRepeatType;\n image: string | HTMLImageElement | HTMLCanvasElement;\n};\n\nexport type IImageGraphicAttribute = Partial<IGraphicAttribute> & Partial<IImageAttribute>;\n\nexport interface IImage extends IGraphic<IImageGraphicAttribute> {\n successCallback?: () => void;\n failCallback?: () => void;\n}\n"]}
@@ -1,2 +1,26 @@
1
1
  export * from './creator';
2
2
  export * from './theme';
3
+ export * from './arc';
4
+ export * from './arc3d';
5
+ export * from './area';
6
+ export * from './bounds';
7
+ export * from './circle';
8
+ export * from './ellipse';
9
+ export * from './face3d';
10
+ export * from './glyph';
11
+ export * from './group';
12
+ export * from './image';
13
+ export * from './isogon';
14
+ export * from './line';
15
+ export * from './path';
16
+ export * from './polygon';
17
+ export * from './polyline';
18
+ export * from './pyramid3d';
19
+ export * from './rect';
20
+ export * from './rect3d';
21
+ export * from './richText';
22
+ export * from './shadow-root';
23
+ export * from './svg';
24
+ export * from './symbol';
25
+ export * from './text';
26
+ export * from './util';
@@ -1,4 +1,52 @@
1
1
  export * from "./creator";
2
2
 
3
3
  export * from "./theme";
4
+
5
+ export * from "./arc";
6
+
7
+ export * from "./arc3d";
8
+
9
+ export * from "./area";
10
+
11
+ export * from "./bounds";
12
+
13
+ export * from "./circle";
14
+
15
+ export * from "./ellipse";
16
+
17
+ export * from "./face3d";
18
+
19
+ export * from "./glyph";
20
+
21
+ export * from "./group";
22
+
23
+ export * from "./image";
24
+
25
+ export * from "./isogon";
26
+
27
+ export * from "./line";
28
+
29
+ export * from "./path";
30
+
31
+ export * from "./polygon";
32
+
33
+ export * from "./polyline";
34
+
35
+ export * from "./pyramid3d";
36
+
37
+ export * from "./rect";
38
+
39
+ export * from "./rect3d";
40
+
41
+ export * from "./richText";
42
+
43
+ export * from "./shadow-root";
44
+
45
+ export * from "./svg";
46
+
47
+ export * from "./symbol";
48
+
49
+ export * from "./text";
50
+
51
+ export * from "./util";
4
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","file":"index.js","sourcesContent":["export * from './creator';\nexport * from './theme';\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC","file":"index.js","sourcesContent":["export * from './creator';\nexport * from './theme';\nexport * from './arc';\nexport * from './arc3d';\nexport * from './area';\nexport * from './bounds';\nexport * from './circle';\nexport * from './ellipse';\nexport * from './face3d';\nexport * from './glyph';\nexport * from './group';\nexport * from './image';\nexport * from './isogon';\nexport * from './line';\nexport * from './path';\nexport * from './polygon';\nexport * from './polyline';\nexport * from './pyramid3d';\nexport * from './rect';\nexport * from './rect3d';\nexport * from './richText';\nexport * from './shadow-root';\nexport * from './svg';\nexport * from './symbol';\nexport * from './text';\nexport * from './util';\n"]}
@@ -1,7 +1,7 @@
1
1
  import type { IPointLike } from '@visactor/vutils';
2
2
  import type { IGraphicAttribute, IGraphic } from '../graphic';
3
3
  import type { ICurveType } from '../common';
4
- import { ISegPath2D } from '../curve';
4
+ import type { ISegPath2D } from '../curve';
5
5
  export type IClipRangeByDimensionType = 'x' | 'y' | 'auto' | 'default';
6
6
  export type ILineAttribute = {
7
7
  segments: ISegment[];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/line.ts"],"names":[],"mappings":"","file":"line.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { ICurveType } from '../common';\nimport { ISegPath2D } from '../curve';\n\n// 依据x纬度做clipRange\n// 依据y纬度做clipRange\n// 依据线段自动匹配纬度做clipRange\n// 依据线长纬度做clipRange\nexport type IClipRangeByDimensionType = 'x' | 'y' | 'auto' | 'default';\n\nexport type ILineAttribute = {\n segments: ISegment[]; // 分段设置point和样式\n points: IPointLike[]; // segments points 二选一\n curveType: ICurveType;\n clipRange: number;\n clipRangeByDimension: IClipRangeByDimensionType;\n};\n\nexport type ILineGraphicAttribute = Partial<IGraphicAttribute> & Partial<ILineAttribute>;\n\nexport interface ILine extends IGraphic<ILineGraphicAttribute> {\n cache?: ISegPath2D | ISegPath2D[];\n}\n\ntype ISegmentStyle = Pick<\n IGraphicAttribute,\n 'stroke' | 'strokeOpacity' | 'lineDash' | 'lineDashOffset' | 'lineCap' | 'lineJoin' | 'lineWidth' | 'miterLimit'\n>;\n\nexport interface ISegment extends Partial<ISegmentStyle> {\n points: IPointLike[];\n simplify?: boolean;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/line.ts"],"names":[],"mappings":"","file":"line.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { ICurveType } from '../common';\nimport type { ISegPath2D } from '../curve';\n\n// 依据x纬度做clipRange\n// 依据y纬度做clipRange\n// 依据线段自动匹配纬度做clipRange\n// 依据线长纬度做clipRange\nexport type IClipRangeByDimensionType = 'x' | 'y' | 'auto' | 'default';\n\nexport type ILineAttribute = {\n segments: ISegment[]; // 分段设置point和样式\n points: IPointLike[]; // segments points 二选一\n curveType: ICurveType;\n clipRange: number;\n clipRangeByDimension: IClipRangeByDimensionType;\n};\n\nexport type ILineGraphicAttribute = Partial<IGraphicAttribute> & Partial<ILineAttribute>;\n\nexport interface ILine extends IGraphic<ILineGraphicAttribute> {\n cache?: ISegPath2D | ISegPath2D[];\n}\n\ntype ISegmentStyle = Pick<\n IGraphicAttribute,\n 'stroke' | 'strokeOpacity' | 'lineDash' | 'lineDashOffset' | 'lineCap' | 'lineJoin' | 'lineWidth' | 'miterLimit'\n>;\n\nexport interface ISegment extends Partial<ISegmentStyle> {\n points: IPointLike[];\n simplify?: boolean;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import type { ICustomPath2D } from '../../interface';
2
1
  import type { IGraphicAttribute, IGraphic } from '../graphic';
2
+ import type { ICustomPath2D } from '../path';
3
3
  export type IRectAttribute = {
4
4
  width: number;
5
5
  height: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/rect.ts"],"names":[],"mappings":"","file":"rect.js","sourcesContent":["import type { ICustomPath2D } from '../../interface';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type IRectAttribute = {\n width: number;\n height: number;\n cornerRadius: number | number[];\n};\n\nexport type IRectGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRectAttribute>;\n\nexport interface IRect extends IGraphic<IRectGraphicAttribute> {\n cache?: ICustomPath2D;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/rect.ts"],"names":[],"mappings":"","file":"rect.js","sourcesContent":["import type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { ICustomPath2D } from '../path';\n\nexport type IRectAttribute = {\n width: number;\n height: number;\n cornerRadius: number | number[];\n};\n\nexport type IRectGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRectAttribute>;\n\nexport interface IRect extends IGraphic<IRectGraphicAttribute> {\n cache?: ICustomPath2D;\n}\n"]}
@@ -1,5 +1,6 @@
1
- import type { ICustomPath2D, IRectGraphicAttribute } from '../../interface';
2
1
  import type { IGraphic } from '../graphic';
2
+ import type { ICustomPath2D } from '../path';
3
+ import type { IRectGraphicAttribute } from './rect';
3
4
  export type IRect3dGraphicAttribute = Partial<IRectGraphicAttribute> & {
4
5
  length?: number;
5
6
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/rect3d.ts"],"names":[],"mappings":"","file":"rect3d.js","sourcesContent":["import type { ICustomPath2D, IRectGraphicAttribute } from '../../interface';\nimport type { IGraphic } from '../graphic';\n\nexport type IRect3dGraphicAttribute = Partial<IRectGraphicAttribute> & {\n length?: number; // 长度\n};\n\nexport interface IRect3d extends IGraphic {\n attribute: IRect3dGraphicAttribute;\n\n cache?: ICustomPath2D;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/rect3d.ts"],"names":[],"mappings":"","file":"rect3d.js","sourcesContent":["import type { IGraphic } from '../graphic';\nimport type { ICustomPath2D } from '../path';\nimport type { IRectGraphicAttribute } from './rect';\n\nexport type IRect3dGraphicAttribute = Partial<IRectGraphicAttribute> & {\n length?: number; // 长度\n};\n\nexport interface IRect3d extends IGraphic {\n attribute: IRect3dGraphicAttribute;\n\n cache?: ICustomPath2D;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import type Frame from '../../graphic/richtext/frame';
2
1
  import type { IColor } from '../color';
2
+ import type { IContext2d } from '../context';
3
3
  import type { IGraphicAttribute, IGraphic } from '../graphic';
4
4
  import type { IImage, IImageGraphicAttribute } from './image';
5
5
  export type IRichTextAttribute = {
@@ -77,8 +77,96 @@ export type IRichTextIconGraphicAttribute = IImageGraphicAttribute & {
77
77
  direction?: RichTextLayoutDirectionType;
78
78
  margin?: number | number[];
79
79
  };
80
+ export interface IRichTextParagraph {
81
+ text: string;
82
+ ascent: number;
83
+ descent: number;
84
+ width: number;
85
+ height: number;
86
+ lineHeight: number;
87
+ fontSize: number;
88
+ length: number;
89
+ newLine: boolean;
90
+ character: IRichTextParagraphCharacter;
91
+ left: number;
92
+ top: number;
93
+ direction?: 'horizontal' | 'vertical';
94
+ widthOrigin?: number;
95
+ heightOrigin?: number;
96
+ textBaseline?: CanvasTextBaseline;
97
+ ellipsis: 'normal' | 'add' | 'replace' | 'hide';
98
+ ellipsisWidth: number;
99
+ ellipsisOtherParagraphWidth: number;
100
+ verticalEllipsis?: boolean;
101
+ updateWidth: () => void;
102
+ draw: (ctx: IContext2d, baseline: number, deltaLeft: number, isLineFirst: boolean, textAlign: string) => void;
103
+ getWidthWithEllips: (direction: string) => number;
104
+ }
105
+ export interface IRichTextLine {
106
+ left: number;
107
+ top: number;
108
+ width: number;
109
+ height: number;
110
+ baseline: number;
111
+ ascent: number;
112
+ descent: number;
113
+ paragraphs: (IRichTextParagraph | IRichTextIcon)[];
114
+ actualWidth: number;
115
+ blankWidth: number;
116
+ textAlign: string;
117
+ direction: 'horizontal' | 'vertical';
118
+ directionKey: {
119
+ width: string;
120
+ height: string;
121
+ left: string;
122
+ x: string;
123
+ y: string;
124
+ };
125
+ draw: (ctx: IContext2d, lastLine: boolean, x: number, y: number, drawIcon: (icon: IRichTextIcon, context: IContext2d, x: number, y: number, baseline: number) => void) => void;
126
+ getWidthWithEllips: () => number;
127
+ }
128
+ export interface IRichTextFrame {
129
+ left: number;
130
+ top: number;
131
+ bottom: number;
132
+ right: number;
133
+ width: number;
134
+ height: number;
135
+ actualHeight: number;
136
+ ellipsis: boolean | string;
137
+ wordBreak: 'break-word' | 'break-all';
138
+ verticalDirection: 'top' | 'middle' | 'bottom';
139
+ lines: IRichTextLine[];
140
+ globalAlign: 'left' | 'center' | 'right';
141
+ globalBaseline: 'top' | 'middle' | 'bottom';
142
+ layoutDirection: 'horizontal' | 'vertical';
143
+ directionKey: {
144
+ width: string;
145
+ height: string;
146
+ left: string;
147
+ top: string;
148
+ bottom: string;
149
+ };
150
+ isWidthMax: boolean;
151
+ isHeightMax: boolean;
152
+ singleLine: boolean;
153
+ icons: Map<string, IRichTextIcon>;
154
+ draw: (ctx: IContext2d, drawIcon: (icon: IRichTextIcon, context: IContext2d, x: number, y: number, baseline: number) => void) => boolean;
155
+ getActualSize: () => {
156
+ width: number;
157
+ height: number;
158
+ };
159
+ getRawActualSize: () => {
160
+ width: number;
161
+ height: number;
162
+ };
163
+ getActualSizeWidthEllipsis: () => {
164
+ width: number;
165
+ height: number;
166
+ };
167
+ }
80
168
  export interface IRichText extends IGraphic<IRichTextGraphicAttribute> {
81
- getFrameCache: () => Frame;
169
+ getFrameCache: () => IRichTextFrame;
82
170
  }
83
171
  export interface IRichTextIcon extends IImage {
84
172
  attribute: IRichTextIconGraphicAttribute;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/richText.ts"],"names":[],"mappings":"","file":"richText.js","sourcesContent":["import type Frame from '../../graphic/richtext/frame';\nimport type { IColor } from '../color';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { IImage, IImageGraphicAttribute } from './image';\n\nexport type IRichTextAttribute = {\n width: number;\n height: number;\n ellipsis: boolean | string;\n wordBreak: RichTextWordBreak;\n verticalDirection: RichTextVerticalDirection;\n maxHeight: number;\n maxWidth: number;\n textAlign: RichTextGlobalAlignType;\n textBaseline: RichTextGlobalBaselineType;\n layoutDirection: RichTextLayoutDirectionType;\n textConfig: IRichTextCharacter[];\n singleLine: boolean;\n};\n\nexport type IRichTextGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRichTextAttribute>;\n\nexport type RichTextWordBreak = 'break-word' | 'break-all';\nexport type RichTextVerticalDirection = 'top' | 'middle' | 'bottom';\nexport type RichTextGlobalAlignType = 'left' | 'right' | 'center';\nexport type RichTextGlobalBaselineType = 'top' | 'middle' | 'bottom';\nexport type RichTextLayoutDirectionType = 'horizontal' | 'vertical';\nexport type RichTextFontStyle = 'normal' | 'italic' | 'oblique';\nexport type RichTextTextDecoration = 'none' | 'underline' | 'line-through';\n// export type RichTextTextAlign = 'left' | 'right' | 'center';\nexport type RichTextScript = 'normal' | 'sub' | 'super';\n\nexport type IRichTextBasicCharacter = {\n lineHeight?: number;\n textAlign?: CanvasTextAlign; // left, right, center\n textBaseline?: CanvasTextBaseline;\n direction?: RichTextLayoutDirectionType;\n};\n\nexport type IRichTextParagraphCharacter = IRichTextBasicCharacter & {\n text: string;\n fontSize?: number;\n fontFamily?: string;\n fill?: IColor | boolean;\n stroke?: IColor | boolean;\n fontWeight?: string;\n // lineHeight?: number;\n fontStyle?: RichTextFontStyle; // normal, italic, oblique\n textDecoration?: RichTextTextDecoration; // none, underline, line-through\n // textAlign?: RichTextTextAlign; // left, right, center\n script?: RichTextScript; // normal, sub, super\n underline?: boolean;\n lineThrough?: boolean;\n // direction?: RichTextLayoutDirectionType;\n};\n\nexport type IRichTextImageCharacter = IRichTextBasicCharacter & {\n // 图片基础属性\n image: string | HTMLImageElement | HTMLCanvasElement;\n width: number;\n height: number;\n\n // hover相关属性\n // backgroundShow?: boolean; // 是否显示background\n backgroundShowMode?: 'always' | 'hover';\n backgroundFill?: boolean | IColor; // 背景矩形填充颜色\n backgroundFillOpacity?: number; // 背景矩形填充透明度\n backgroundStroke?: boolean | IColor; // 背景矩形边框颜色\n backgroundStrokeOpacity?: number; // 背景矩形边框透明度\n backgroundRadius?: number; // 背景矩形圆角\n // background size 同时控制了该icon的响应范围\n backgroundWidth?: number;\n backgroundHeight?: number;\n\n // 唯一标识符\n id?: string;\n\n // lineHeight?: number;\n // textAlign?: RichTextTextAlign; // left, right, center\n // direction?: RichTextLayoutDirectionType;\n margin?: number | number[];\n\n funcType?: string;\n hoverImage?: string | HTMLImageElement | HTMLCanvasElement;\n};\n\nexport type IRichTextCharacter = IRichTextParagraphCharacter | IRichTextImageCharacter;\n\nexport type IRichTextIconGraphicAttribute = IImageGraphicAttribute & {\n id?: string;\n backgroundShowMode?: 'always' | 'hover' | 'never';\n backgroundFill?: boolean | IColor; // 背景矩形填充颜色\n backgroundFillOpacity?: number; // 背景矩形填充透明度\n backgroundStroke?: boolean | IColor; // 背景矩形边框颜色\n backgroundStrokeOpacity?: number; // 背景矩形边框透明度\n backgroundRadius?: number; // 背景矩形圆角\n backgroundWidth?: number;\n backgroundHeight?: number;\n\n // lineHeight?: number;\n textAlign?: CanvasTextAlign; // left, right, center\n textBaseline?: CanvasTextBaseline;\n direction?: RichTextLayoutDirectionType;\n\n margin?: number | number[];\n\n // backgroundShow?: boolean;\n};\n\nexport interface IRichText extends IGraphic<IRichTextGraphicAttribute> {\n getFrameCache: () => Frame;\n}\n\nexport interface IRichTextIcon extends IImage {\n attribute: IRichTextIconGraphicAttribute;\n richtextId?: string;\n globalX?: number;\n globalY?: number;\n\n _x: number;\n _y: number;\n _hovered: boolean;\n _marginArray: [number, number, number, number];\n\n setHoverState: (hovered: boolean) => void;\n}\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/richText.ts"],"names":[],"mappings":"","file":"richText.js","sourcesContent":["import type { IColor } from '../color';\nimport type { IContext2d } from '../context';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { IImage, IImageGraphicAttribute } from './image';\n\nexport type IRichTextAttribute = {\n width: number;\n height: number;\n ellipsis: boolean | string;\n wordBreak: RichTextWordBreak;\n verticalDirection: RichTextVerticalDirection;\n maxHeight: number;\n maxWidth: number;\n textAlign: RichTextGlobalAlignType;\n textBaseline: RichTextGlobalBaselineType;\n layoutDirection: RichTextLayoutDirectionType;\n textConfig: IRichTextCharacter[];\n singleLine: boolean;\n};\n\nexport type IRichTextGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRichTextAttribute>;\n\nexport type RichTextWordBreak = 'break-word' | 'break-all';\nexport type RichTextVerticalDirection = 'top' | 'middle' | 'bottom';\nexport type RichTextGlobalAlignType = 'left' | 'right' | 'center';\nexport type RichTextGlobalBaselineType = 'top' | 'middle' | 'bottom';\nexport type RichTextLayoutDirectionType = 'horizontal' | 'vertical';\nexport type RichTextFontStyle = 'normal' | 'italic' | 'oblique';\nexport type RichTextTextDecoration = 'none' | 'underline' | 'line-through';\n// export type RichTextTextAlign = 'left' | 'right' | 'center';\nexport type RichTextScript = 'normal' | 'sub' | 'super';\n\nexport type IRichTextBasicCharacter = {\n lineHeight?: number;\n textAlign?: CanvasTextAlign; // left, right, center\n textBaseline?: CanvasTextBaseline;\n direction?: RichTextLayoutDirectionType;\n};\n\nexport type IRichTextParagraphCharacter = IRichTextBasicCharacter & {\n text: string;\n fontSize?: number;\n fontFamily?: string;\n fill?: IColor | boolean;\n stroke?: IColor | boolean;\n fontWeight?: string;\n // lineHeight?: number;\n fontStyle?: RichTextFontStyle; // normal, italic, oblique\n textDecoration?: RichTextTextDecoration; // none, underline, line-through\n // textAlign?: RichTextTextAlign; // left, right, center\n script?: RichTextScript; // normal, sub, super\n underline?: boolean;\n lineThrough?: boolean;\n // direction?: RichTextLayoutDirectionType;\n};\n\nexport type IRichTextImageCharacter = IRichTextBasicCharacter & {\n // 图片基础属性\n image: string | HTMLImageElement | HTMLCanvasElement;\n width: number;\n height: number;\n\n // hover相关属性\n // backgroundShow?: boolean; // 是否显示background\n backgroundShowMode?: 'always' | 'hover';\n backgroundFill?: boolean | IColor; // 背景矩形填充颜色\n backgroundFillOpacity?: number; // 背景矩形填充透明度\n backgroundStroke?: boolean | IColor; // 背景矩形边框颜色\n backgroundStrokeOpacity?: number; // 背景矩形边框透明度\n backgroundRadius?: number; // 背景矩形圆角\n // background size 同时控制了该icon的响应范围\n backgroundWidth?: number;\n backgroundHeight?: number;\n\n // 唯一标识符\n id?: string;\n\n // lineHeight?: number;\n // textAlign?: RichTextTextAlign; // left, right, center\n // direction?: RichTextLayoutDirectionType;\n margin?: number | number[];\n\n funcType?: string;\n hoverImage?: string | HTMLImageElement | HTMLCanvasElement;\n};\n\nexport type IRichTextCharacter = IRichTextParagraphCharacter | IRichTextImageCharacter;\n\nexport type IRichTextIconGraphicAttribute = IImageGraphicAttribute & {\n id?: string;\n backgroundShowMode?: 'always' | 'hover' | 'never';\n backgroundFill?: boolean | IColor; // 背景矩形填充颜色\n backgroundFillOpacity?: number; // 背景矩形填充透明度\n backgroundStroke?: boolean | IColor; // 背景矩形边框颜色\n backgroundStrokeOpacity?: number; // 背景矩形边框透明度\n backgroundRadius?: number; // 背景矩形圆角\n backgroundWidth?: number;\n backgroundHeight?: number;\n\n // lineHeight?: number;\n textAlign?: CanvasTextAlign; // left, right, center\n textBaseline?: CanvasTextBaseline;\n direction?: RichTextLayoutDirectionType;\n\n margin?: number | number[];\n\n // backgroundShow?: boolean;\n};\n\nexport interface IRichTextParagraph {\n text: string;\n ascent: number;\n descent: number;\n width: number;\n height: number;\n lineHeight: number;\n fontSize: number;\n length: number;\n newLine: boolean;\n character: IRichTextParagraphCharacter;\n left: number;\n top: number;\n direction?: 'horizontal' | 'vertical';\n widthOrigin?: number;\n heightOrigin?: number;\n textBaseline?: CanvasTextBaseline;\n ellipsis: 'normal' | 'add' | 'replace' | 'hide';\n ellipsisWidth: number;\n ellipsisOtherParagraphWidth: number;\n verticalEllipsis?: boolean;\n updateWidth: () => void;\n draw: (ctx: IContext2d, baseline: number, deltaLeft: number, isLineFirst: boolean, textAlign: string) => void;\n getWidthWithEllips: (direction: string) => number;\n}\n\nexport interface IRichTextLine {\n left: number;\n top: number;\n width: number;\n height: number;\n baseline: number;\n ascent: number;\n descent: number;\n paragraphs: (IRichTextParagraph | IRichTextIcon)[];\n actualWidth: number;\n blankWidth: number;\n textAlign: string;\n direction: 'horizontal' | 'vertical';\n directionKey: {\n width: string;\n height: string;\n left: string;\n x: string;\n y: string;\n };\n draw: (\n ctx: IContext2d,\n lastLine: boolean,\n x: number,\n y: number,\n drawIcon: (icon: IRichTextIcon, context: IContext2d, x: number, y: number, baseline: number) => void\n ) => void;\n getWidthWithEllips: () => number;\n}\n\nexport interface IRichTextFrame {\n left: number;\n top: number;\n bottom: number;\n right: number;\n width: number;\n height: number;\n actualHeight: number;\n ellipsis: boolean | string;\n wordBreak: 'break-word' | 'break-all';\n verticalDirection: 'top' | 'middle' | 'bottom';\n lines: IRichTextLine[];\n globalAlign: 'left' | 'center' | 'right';\n globalBaseline: 'top' | 'middle' | 'bottom';\n layoutDirection: 'horizontal' | 'vertical';\n directionKey: {\n width: string;\n height: string;\n left: string;\n top: string;\n bottom: string;\n };\n isWidthMax: boolean;\n isHeightMax: boolean;\n singleLine: boolean;\n icons: Map<string, IRichTextIcon>;\n draw: (\n ctx: IContext2d,\n drawIcon: (icon: IRichTextIcon, context: IContext2d, x: number, y: number, baseline: number) => void\n ) => boolean;\n getActualSize: () => {\n width: number;\n height: number;\n };\n getRawActualSize: () => {\n width: number;\n height: number;\n };\n getActualSizeWidthEllipsis: () => {\n width: number;\n height: number;\n };\n}\n\nexport interface IRichText extends IGraphic<IRichTextGraphicAttribute> {\n getFrameCache: () => IRichTextFrame;\n}\n\nexport interface IRichTextIcon extends IImage {\n attribute: IRichTextIconGraphicAttribute;\n richtextId?: string;\n globalX?: number;\n globalY?: number;\n\n _x: number;\n _y: number;\n _hovered: boolean;\n _marginArray: [number, number, number, number];\n\n setHoverState: (hovered: boolean) => void;\n}\n"]}
@@ -1,5 +1,6 @@
1
- import type { ISymbolClass } from '../../graphic';
1
+ import type { IBounds } from '@visactor/vutils';
2
2
  import type { IGraphicAttribute, IGraphic } from '../graphic';
3
+ import type { ICustomPath2D, IPath2D } from '../path';
3
4
  export type ISymbolAttribute = {
4
5
  symbolType: SymbolType;
5
6
  size: number | [number, number];
@@ -9,3 +10,11 @@ export interface ISymbol extends IGraphic<ISymbolGraphicAttribute> {
9
10
  getParsedPath: () => ISymbolClass;
10
11
  }
11
12
  export type SymbolType = 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | string;
13
+ export interface ISymbolClass {
14
+ type: SymbolType | string;
15
+ path?: ICustomPath2D;
16
+ pathStr: string;
17
+ draw: (ctx: IPath2D, size: number | [number, number], x: number, y: number, z?: number) => boolean;
18
+ drawOffset: (ctx: IPath2D, size: number | [number, number], x: number, y: number, offset: number, z?: number) => boolean;
19
+ bounds: (size: number | [number, number], bounds: IBounds) => void;
20
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/symbol.ts"],"names":[],"mappings":"","file":"symbol.js","sourcesContent":["import type { ISymbolClass } from '../../graphic';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type ISymbolAttribute = {\n symbolType: SymbolType;\n size: number | [number, number];\n};\n\nexport type ISymbolGraphicAttribute = Partial<IGraphicAttribute> & Partial<ISymbolAttribute>;\n\nexport interface ISymbol extends IGraphic<ISymbolGraphicAttribute> {\n getParsedPath: () => ISymbolClass;\n}\n\nexport type SymbolType =\n | 'circle'\n | 'cross'\n | 'diamond'\n | 'square'\n | 'arrow'\n | 'arrow2Left'\n | 'arrow2Right'\n | 'wedge'\n | 'thinTriangle'\n | 'triangle'\n | 'triangleUp'\n | 'triangleDown'\n | 'triangleRight'\n | 'triangleLeft'\n | 'stroke'\n | 'star'\n | 'wye'\n | 'rect'\n | string;\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/symbol.ts"],"names":[],"mappings":"","file":"symbol.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\nimport type { ICustomPath2D, IPath2D } from '../path';\n\nexport type ISymbolAttribute = {\n symbolType: SymbolType;\n size: number | [number, number];\n};\n\nexport type ISymbolGraphicAttribute = Partial<IGraphicAttribute> & Partial<ISymbolAttribute>;\n\nexport interface ISymbol extends IGraphic<ISymbolGraphicAttribute> {\n getParsedPath: () => ISymbolClass;\n}\n\nexport type SymbolType =\n | 'circle'\n | 'cross'\n | 'diamond'\n | 'square'\n | 'arrow'\n | 'arrow2Left'\n | 'arrow2Right'\n | 'wedge'\n | 'thinTriangle'\n | 'triangle'\n | 'triangleUp'\n | 'triangleDown'\n | 'triangleRight'\n | 'triangleLeft'\n | 'stroke'\n | 'star'\n | 'wye'\n | 'rect'\n | string;\n\nexport interface ISymbolClass {\n type: SymbolType | string;\n path?: ICustomPath2D;\n pathStr: string;\n\n // 返回true表示内部已经调用closePath,返回false表示没有调用closePath,外部需要调用closePath\n draw: (ctx: IPath2D, size: number | [number, number], x: number, y: number, z?: number) => boolean;\n drawOffset: (\n ctx: IPath2D,\n size: number | [number, number],\n x: number,\n y: number,\n offset: number,\n z?: number\n ) => boolean;\n\n bounds: (size: number | [number, number], bounds: IBounds) => void;\n}\n"]}
@@ -1,6 +1,30 @@
1
1
  import type { IAABBBounds } from '@visactor/vutils';
2
- import type { LayoutType } from '../../core/contributions/textMeasure/layout';
3
2
  import type { IGraphicAttribute, IGraphic } from '../graphic';
3
+ export interface TextLayoutBBox {
4
+ width: number;
5
+ height: number;
6
+ xOffset: number;
7
+ yOffset: number;
8
+ }
9
+ export interface LayoutItemType {
10
+ str: string;
11
+ leftOffset?: number;
12
+ topOffset?: number;
13
+ width: number;
14
+ }
15
+ export interface SimplifyLayoutType {
16
+ lines: LayoutItemType[];
17
+ }
18
+ export interface LayoutType {
19
+ bbox: TextLayoutBBox;
20
+ lines: LayoutItemType[];
21
+ fontFamily: string;
22
+ fontSize: number;
23
+ fontWeight?: string | number;
24
+ lineHeight: number;
25
+ textAlign: TextAlignType;
26
+ textBaseline: TextBaselineType;
27
+ }
4
28
  export type ITextAttribute = {
5
29
  text: string | number | string[] | number[];
6
30
  maxLineWidth: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic/text.ts"],"names":[],"mappings":"","file":"text.js","sourcesContent":["import type { IAABBBounds } from '@visactor/vutils';\nimport type { LayoutType } from '../../core/contributions/textMeasure/layout';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport type ITextAttribute = {\n text: string | number | string[] | number[];\n maxLineWidth: number;\n textAlign: TextAlignType;\n textBaseline: TextBaselineType;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n ellipsis: boolean | string;\n fontVariant: string;\n fontStyle: string;\n lineHeight: number;\n underline: number;\n lineThrough: number;\n // textDecoration: number;\n // textDecorationWidth: number;\n // padding?: number | number[];\n};\nexport type ITextCache = {\n // 单行文本的时候缓存用\n clipedText?: string;\n clipedWidth?: number;\n // 多行文本的布局缓存\n layoutData?: LayoutType;\n};\n\nexport type ITextGraphicAttribute = Partial<IGraphicAttribute> & Partial<ITextAttribute>;\n\nexport type IWrapTextGraphicAttribute = ITextGraphicAttribute & {\n heightLimit?: number;\n lineClamp?: number;\n};\n\nexport interface IText extends IGraphic<ITextGraphicAttribute> {\n // 判断是否被ellipisised\n clipedText?: string;\n clipedWidth?: number;\n cliped?: boolean;\n multilineLayout?: LayoutType;\n font?: string;\n cache?: ITextCache;\n\n updateMultilineAABBBounds: (text: (number | string)[]) => IAABBBounds;\n updateSingallineAABBBounds: (text: number | string) => IAABBBounds;\n}\n\nexport type TextAlignType = 'left' | 'right' | 'center' | 'start' | 'end';\nexport type TextBaselineType = 'top' | 'middle' | 'bottom' | 'alphabetic';\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic/text.ts"],"names":[],"mappings":"","file":"text.js","sourcesContent":["import type { IAABBBounds } from '@visactor/vutils';\nimport type { IGraphicAttribute, IGraphic } from '../graphic';\n\nexport interface TextLayoutBBox {\n width: number; // 包围盒的宽度\n height: number; // 包围盒的高度\n xOffset: number;\n yOffset: number;\n}\n\nexport interface LayoutItemType {\n str: string; // 这行的字符串\n leftOffset?: number; // 该行距离左侧的偏移\n topOffset?: number; // 该行距离右侧的偏移\n width: number;\n}\n\nexport interface SimplifyLayoutType {\n lines: LayoutItemType[];\n}\n\nexport interface LayoutType {\n bbox: TextLayoutBBox;\n lines: LayoutItemType[];\n fontFamily: string;\n fontSize: number;\n fontWeight?: string | number;\n lineHeight: number;\n textAlign: TextAlignType;\n textBaseline: TextBaselineType;\n}\n\nexport type ITextAttribute = {\n text: string | number | string[] | number[];\n maxLineWidth: number;\n textAlign: TextAlignType;\n textBaseline: TextBaselineType;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n ellipsis: boolean | string;\n fontVariant: string;\n fontStyle: string;\n lineHeight: number;\n underline: number;\n lineThrough: number;\n // textDecoration: number;\n // textDecorationWidth: number;\n // padding?: number | number[];\n};\nexport type ITextCache = {\n // 单行文本的时候缓存用\n clipedText?: string;\n clipedWidth?: number;\n // 多行文本的布局缓存\n layoutData?: LayoutType;\n};\n\nexport type ITextGraphicAttribute = Partial<IGraphicAttribute> & Partial<ITextAttribute>;\n\nexport type IWrapTextGraphicAttribute = ITextGraphicAttribute & {\n heightLimit?: number;\n lineClamp?: number;\n};\n\nexport interface IText extends IGraphic<ITextGraphicAttribute> {\n // 判断是否被ellipisised\n clipedText?: string;\n clipedWidth?: number;\n cliped?: boolean;\n multilineLayout?: LayoutType;\n font?: string;\n cache?: ITextCache;\n\n updateMultilineAABBBounds: (text: (number | string)[]) => IAABBBounds;\n updateSingallineAABBBounds: (text: number | string) => IAABBBounds;\n}\n\nexport type TextAlignType = 'left' | 'right' | 'center' | 'start' | 'end';\nexport type TextBaselineType = 'top' | 'middle' | 'bottom' | 'alphabetic';\n"]}
@@ -1,6 +1,8 @@
1
- import { IAABBBounds } from '@visactor/vutils';
2
- import { SyncHook } from '../tapable/SyncHook';
3
- import { IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, ICircle, ICircleGraphicAttribute, IGraphic, IGroup, IGroupGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRectGraphicAttribute, IStage, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IGlyph, IGlyphGraphicAttribute, IRichTextGraphicAttribute, IRichText, IPyramid3dGraphicAttribute, IPyramid3d, IArc3dGraphicAttribute, IArc3d, IImageGraphicAttribute, IImage, IRect, IRect3d, IShadowRoot, IWrapTextGraphicAttribute, IRect3dGraphicAttribute } from '.';
1
+ import type { IAABBBounds } from '@visactor/vutils';
2
+ import type { ISyncHook } from './sync-hook';
3
+ import type { IGraphic } from './graphic';
4
+ import type { IStage } from './stage';
5
+ import type { IRectGraphicAttribute, IGroup, IGroupGraphicAttribute, IGlyphGraphicAttribute, ISymbolGraphicAttribute, ICircleGraphicAttribute, ICircle, IGlyph, ISymbol, IArcGraphicAttribute, IArc, IArc3dGraphicAttribute, IAreaGraphicAttribute, IArc3d, IArea, ILineGraphicAttribute, IPathGraphicAttribute, ILine, IPath, IPolygonGraphicAttribute, IPolygon, IPyramid3dGraphicAttribute, IPyramid3d, ITextGraphicAttribute, IText, IRichTextGraphicAttribute, IRichText, IImageGraphicAttribute, IImage, IRect3dGraphicAttribute, IRect, IRect3d, IShadowRoot, IWrapTextGraphicAttribute } from './graphic/index';
4
6
  export interface IGraphicService {
5
7
  onAttributeUpdate: (graphic: IGraphic) => void;
6
8
  onSetStage: (graphic: IGraphic, stage: IStage) => void;
@@ -8,13 +10,13 @@ export interface IGraphicService {
8
10
  onAddIncremental: (graphic: IGraphic, group: IGroup, stage: IStage) => void;
9
11
  onClearIncremental: (group: IGroup, stage: IStage) => void;
10
12
  hooks: {
11
- onAttributeUpdate: SyncHook<[IGraphic]>;
12
- onSetStage: SyncHook<[IGraphic, IStage]>;
13
- onRemove: SyncHook<[IGraphic]>;
14
- onAddIncremental: SyncHook<[IGraphic, IGroup, IStage]>;
15
- onClearIncremental: SyncHook<[IGroup, IStage]>;
16
- beforeUpdateAABBBounds: SyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;
17
- afterUpdateAABBBounds: SyncHook<[IGraphic, IStage, IAABBBounds, {
13
+ onAttributeUpdate: ISyncHook<[IGraphic]>;
14
+ onSetStage: ISyncHook<[IGraphic, IStage]>;
15
+ onRemove: ISyncHook<[IGraphic]>;
16
+ onAddIncremental: ISyncHook<[IGraphic, IGroup, IStage]>;
17
+ onClearIncremental: ISyncHook<[IGroup, IStage]>;
18
+ beforeUpdateAABBBounds: ISyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;
19
+ afterUpdateAABBBounds: ISyncHook<[IGraphic, IStage, IAABBBounds, {
18
20
  globalAABBBounds: IAABBBounds;
19
21
  }, boolean]>;
20
22
  };
@@ -56,3 +58,21 @@ export type IGraphicCreator = {
56
58
  shadowRoot: (graphic?: IGraphic) => IShadowRoot;
57
59
  wrapText: (attributes: IWrapTextGraphicAttribute) => IText;
58
60
  };
61
+ export interface IArcBoundsContribution {
62
+ updateBounds: (attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
63
+ }
64
+ export interface IAreaBoundsContribution {
65
+ updateBounds: (attribute: IAreaGraphicAttribute, arcTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
66
+ }
67
+ export interface ICircleBoundsContribution {
68
+ updateBounds: (attribute: ICircleGraphicAttribute, circleTheme: Required<ICircleGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
69
+ }
70
+ export interface IPathBoundsContribution {
71
+ updateBounds: (attribute: IPathGraphicAttribute, pathTheme: Required<IPathGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
72
+ }
73
+ export interface IRectBoundsContribution {
74
+ updateBounds: (attribute: IRectGraphicAttribute, rectTheme: Required<IRectGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
75
+ }
76
+ export interface ISymbolBoundsContribution {
77
+ updateBounds: (attribute: ISymbolGraphicAttribute, SymbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic) => IAABBBounds;
78
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic-service.ts"],"names":[],"mappings":"","file":"graphic-service.js","sourcesContent":["import { IAABBBounds } from '@visactor/vutils';\nimport { SyncHook } from '../tapable/SyncHook';\nimport {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGraphic,\n IGroup,\n IGroupGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygon,\n IPolygonGraphicAttribute,\n IRectGraphicAttribute,\n IStage,\n ISymbol,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n IGlyph,\n IGlyphGraphicAttribute,\n IRichTextGraphicAttribute,\n IRichText,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n IArc3dGraphicAttribute,\n IArc3d,\n IImageGraphicAttribute,\n IImage,\n IRect,\n IRect3d,\n IShadowRoot,\n IWrapTextGraphicAttribute,\n IRect3dGraphicAttribute\n} from '.';\n\nexport interface IGraphicService {\n // themeService: IThemeService;\n onAttributeUpdate: (graphic: IGraphic) => void;\n onSetStage: (graphic: IGraphic, stage: IStage) => void;\n onRemove: (graphic: IGraphic) => void;\n onAddIncremental: (graphic: IGraphic, group: IGroup, stage: IStage) => void;\n onClearIncremental: (group: IGroup, stage: IStage) => void;\n hooks: {\n onAttributeUpdate: SyncHook<[IGraphic]>;\n onSetStage: SyncHook<[IGraphic, IStage]>;\n onRemove: SyncHook<[IGraphic]>;\n onAddIncremental: SyncHook<[IGraphic, IGroup, IStage]>;\n onClearIncremental: SyncHook<[IGroup, IStage]>;\n beforeUpdateAABBBounds: SyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;\n afterUpdateAABBBounds: SyncHook<[IGraphic, IStage, IAABBBounds, { globalAABBBounds: IAABBBounds }, boolean]>;\n };\n beforeUpdateAABBBounds: (graphic: IGraphic, stage: IStage, willUpdate: boolean, bounds: IAABBBounds) => void;\n afterUpdateAABBBounds: (\n graphic: IGraphic,\n stage: IStage,\n bounds: IAABBBounds,\n params: { globalAABBBounds: IAABBBounds },\n selfChange: boolean\n ) => void;\n\n creator: IGraphicCreator;\n\n updateRectAABBBounds: (\n attribute: IRectGraphicAttribute,\n rectTheme: Required<IRectGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n\n updateGroupAABBBounds: (\n attribute: IGroupGraphicAttribute,\n groupTheme: Required<IGroupGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGroup\n ) => IAABBBounds;\n\n updateGlyphAABBBounds: (\n attribute: IGlyphGraphicAttribute,\n groupTheme: Required<IGlyphGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGlyph\n ) => IAABBBounds;\n\n updateSymbolAABBBounds: (\n attribute: ISymbolGraphicAttribute,\n symbolTheme: Required<ISymbolGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: ISymbol\n ) => IAABBBounds;\n\n updateCircleAABBBounds: (\n attribute: ICircleGraphicAttribute,\n circleTheme: Required<ICircleGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: ICircle\n ) => IAABBBounds;\n\n updateArcAABBBounds: (\n attribute: IArcGraphicAttribute,\n arcTheme: Required<IArcGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: IArc\n ) => IAABBBounds;\n\n updateArc3dAABBBounds: (\n attribute: IArc3dGraphicAttribute,\n arcTheme: Required<IArc3dGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IArc3d\n ) => IAABBBounds;\n\n updateAreaAABBBounds: (\n attribute: IAreaGraphicAttribute,\n areaTheme: Required<IAreaGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IArea\n ) => IAABBBounds;\n\n updateLineAABBBounds: (\n attribute: ILineGraphicAttribute,\n lineTheme: Required<ILineGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: ILine\n ) => IAABBBounds;\n\n updatePathAABBBounds: (\n attribute: IPathGraphicAttribute,\n pathTheme: Required<IPathGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPath\n ) => IAABBBounds;\n\n updatePolygonAABBBounds: (\n attribute: IPolygonGraphicAttribute,\n polygonTheme: Required<IPolygonGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPolygon\n ) => IAABBBounds;\n\n updatePyramid3dAABBBounds: (\n attribute: IPyramid3dGraphicAttribute,\n polygonTheme: Required<IPyramid3dGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPyramid3d\n ) => IAABBBounds;\n\n updateTextAABBBounds: (\n attribute: ITextGraphicAttribute,\n textTheme: Required<ITextGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IText\n ) => IAABBBounds;\n\n updateRichTextAABBBounds: (\n attribute: IRichTextGraphicAttribute,\n textTheme: Required<IRichTextGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IRichText\n ) => IAABBBounds;\n\n updateImageAABBBounds: (\n attribute: IImageGraphicAttribute,\n textTheme: Required<IImageGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IImage\n ) => IAABBBounds;\n}\n\nexport type IGraphicCreator = {\n arc: (attributes: IArcGraphicAttribute) => IArc;\n area: (attributes: IAreaGraphicAttribute) => IArea;\n circle: (attributes: ICircleGraphicAttribute) => ICircle;\n group: (attributes: IGroupGraphicAttribute) => IGroup;\n image: (attributes: IImageGraphicAttribute) => IImage;\n line: (attributes: ILineGraphicAttribute) => ILine;\n path: (attributes: IPathGraphicAttribute) => IPath;\n rect: (attributes: IRectGraphicAttribute) => IRect;\n rect3d: (attributes: IRect3dGraphicAttribute) => IRect3d;\n symbol: (attributes: ISymbolGraphicAttribute) => ISymbol;\n text: (attributes: ITextGraphicAttribute) => IText;\n richtext: (attributes: IRichTextGraphicAttribute) => IRichText;\n polygon: (attributes: IPolygonGraphicAttribute) => IPolygon;\n shadowRoot: (graphic?: IGraphic) => IShadowRoot;\n wrapText: (attributes: IWrapTextGraphicAttribute) => IText;\n};\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic-service.ts"],"names":[],"mappings":"","file":"graphic-service.js","sourcesContent":["import type { IAABBBounds } from '@visactor/vutils';\n\nimport type { ISyncHook } from './sync-hook';\nimport type { IGraphic } from './graphic';\nimport type { IStage } from './stage';\nimport type {\n IRectGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IGlyphGraphicAttribute,\n ISymbolGraphicAttribute,\n ICircleGraphicAttribute,\n ICircle,\n IGlyph,\n ISymbol,\n IArcGraphicAttribute,\n IArc,\n IArc3dGraphicAttribute,\n IAreaGraphicAttribute,\n IArc3d,\n IArea,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n ILine,\n IPath,\n IPolygonGraphicAttribute,\n IPolygon,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n ITextGraphicAttribute,\n IText,\n IRichTextGraphicAttribute,\n IRichText,\n IImageGraphicAttribute,\n IImage,\n IRect3dGraphicAttribute,\n IRect,\n IRect3d,\n IShadowRoot,\n IWrapTextGraphicAttribute\n} from './graphic/index';\n\nexport interface IGraphicService {\n // themeService: IThemeService;\n onAttributeUpdate: (graphic: IGraphic) => void;\n onSetStage: (graphic: IGraphic, stage: IStage) => void;\n onRemove: (graphic: IGraphic) => void;\n onAddIncremental: (graphic: IGraphic, group: IGroup, stage: IStage) => void;\n onClearIncremental: (group: IGroup, stage: IStage) => void;\n hooks: {\n onAttributeUpdate: ISyncHook<[IGraphic]>;\n onSetStage: ISyncHook<[IGraphic, IStage]>;\n onRemove: ISyncHook<[IGraphic]>;\n onAddIncremental: ISyncHook<[IGraphic, IGroup, IStage]>;\n onClearIncremental: ISyncHook<[IGroup, IStage]>;\n beforeUpdateAABBBounds: ISyncHook<[IGraphic, IStage, boolean, IAABBBounds]>;\n afterUpdateAABBBounds: ISyncHook<[IGraphic, IStage, IAABBBounds, { globalAABBBounds: IAABBBounds }, boolean]>;\n };\n beforeUpdateAABBBounds: (graphic: IGraphic, stage: IStage, willUpdate: boolean, bounds: IAABBBounds) => void;\n afterUpdateAABBBounds: (\n graphic: IGraphic,\n stage: IStage,\n bounds: IAABBBounds,\n params: { globalAABBBounds: IAABBBounds },\n selfChange: boolean\n ) => void;\n\n creator: IGraphicCreator;\n\n updateRectAABBBounds: (\n attribute: IRectGraphicAttribute,\n rectTheme: Required<IRectGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n\n updateGroupAABBBounds: (\n attribute: IGroupGraphicAttribute,\n groupTheme: Required<IGroupGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGroup\n ) => IAABBBounds;\n\n updateGlyphAABBBounds: (\n attribute: IGlyphGraphicAttribute,\n groupTheme: Required<IGlyphGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGlyph\n ) => IAABBBounds;\n\n updateSymbolAABBBounds: (\n attribute: ISymbolGraphicAttribute,\n symbolTheme: Required<ISymbolGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: ISymbol\n ) => IAABBBounds;\n\n updateCircleAABBBounds: (\n attribute: ICircleGraphicAttribute,\n circleTheme: Required<ICircleGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: ICircle\n ) => IAABBBounds;\n\n updateArcAABBBounds: (\n attribute: IArcGraphicAttribute,\n arcTheme: Required<IArcGraphicAttribute>,\n aabbBounds: IAABBBounds,\n full?: boolean,\n graphic?: IArc\n ) => IAABBBounds;\n\n updateArc3dAABBBounds: (\n attribute: IArc3dGraphicAttribute,\n arcTheme: Required<IArc3dGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IArc3d\n ) => IAABBBounds;\n\n updateAreaAABBBounds: (\n attribute: IAreaGraphicAttribute,\n areaTheme: Required<IAreaGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IArea\n ) => IAABBBounds;\n\n updateLineAABBBounds: (\n attribute: ILineGraphicAttribute,\n lineTheme: Required<ILineGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: ILine\n ) => IAABBBounds;\n\n updatePathAABBBounds: (\n attribute: IPathGraphicAttribute,\n pathTheme: Required<IPathGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPath\n ) => IAABBBounds;\n\n updatePolygonAABBBounds: (\n attribute: IPolygonGraphicAttribute,\n polygonTheme: Required<IPolygonGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPolygon\n ) => IAABBBounds;\n\n updatePyramid3dAABBBounds: (\n attribute: IPyramid3dGraphicAttribute,\n polygonTheme: Required<IPyramid3dGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IPyramid3d\n ) => IAABBBounds;\n\n updateTextAABBBounds: (\n attribute: ITextGraphicAttribute,\n textTheme: Required<ITextGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IText\n ) => IAABBBounds;\n\n updateRichTextAABBBounds: (\n attribute: IRichTextGraphicAttribute,\n textTheme: Required<IRichTextGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IRichText\n ) => IAABBBounds;\n\n updateImageAABBBounds: (\n attribute: IImageGraphicAttribute,\n textTheme: Required<IImageGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IImage\n ) => IAABBBounds;\n}\n\nexport type IGraphicCreator = {\n arc: (attributes: IArcGraphicAttribute) => IArc;\n area: (attributes: IAreaGraphicAttribute) => IArea;\n circle: (attributes: ICircleGraphicAttribute) => ICircle;\n group: (attributes: IGroupGraphicAttribute) => IGroup;\n image: (attributes: IImageGraphicAttribute) => IImage;\n line: (attributes: ILineGraphicAttribute) => ILine;\n path: (attributes: IPathGraphicAttribute) => IPath;\n rect: (attributes: IRectGraphicAttribute) => IRect;\n rect3d: (attributes: IRect3dGraphicAttribute) => IRect3d;\n symbol: (attributes: ISymbolGraphicAttribute) => ISymbol;\n text: (attributes: ITextGraphicAttribute) => IText;\n richtext: (attributes: IRichTextGraphicAttribute) => IRichText;\n polygon: (attributes: IPolygonGraphicAttribute) => IPolygon;\n shadowRoot: (graphic?: IGraphic) => IShadowRoot;\n wrapText: (attributes: IWrapTextGraphicAttribute) => IText;\n};\n\nexport interface IArcBoundsContribution {\n updateBounds: (\n attribute: IArcGraphicAttribute,\n arcTheme: Required<IArcGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\nexport interface IAreaBoundsContribution {\n updateBounds: (\n attribute: IAreaGraphicAttribute,\n arcTheme: Required<IAreaGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\nexport interface ICircleBoundsContribution {\n updateBounds: (\n attribute: ICircleGraphicAttribute,\n circleTheme: Required<ICircleGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\nexport interface IPathBoundsContribution {\n updateBounds: (\n attribute: IPathGraphicAttribute,\n pathTheme: Required<IPathGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\nexport interface IRectBoundsContribution {\n updateBounds: (\n attribute: IRectGraphicAttribute,\n rectTheme: Required<IRectGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n\nexport interface ISymbolBoundsContribution {\n updateBounds: (\n attribute: ISymbolGraphicAttribute,\n SymbolTheme: Required<ISymbolGraphicAttribute>,\n aabbBounds: IAABBBounds,\n graphic?: IGraphic\n ) => IAABBBounds;\n}\n"]}
@@ -202,4 +202,5 @@ export type IAnimateConfig = {
202
202
  duration?: number;
203
203
  easing?: EasingType;
204
204
  };
205
+ export type GraphicReleaseStatus = 'released' | 'willRelease';
205
206
  export {};
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/interface/graphic.ts"],"names":[],"mappings":"","file":"graphic.js","sourcesContent":["import type { IAABBBounds, IOBBBounds, IMatrix, IPointLike, IPoint } from '@visactor/vutils';\nimport type { IAnimate, IStep, EasingType, IAnimateTarget } from './animate';\nimport type { IColor } from './color';\nimport type { IGroup } from './graphic/group';\nimport type { IShadowRoot } from './graphic/shadow-root';\nimport type { ILayer } from './layer';\nimport type { INode } from './node-tree';\nimport type { ICustomPath2D } from './path';\nimport type { IStage } from './stage';\nimport type { IGlyphGraphicAttribute } from './graphic/glyph';\nimport type { IContainPointMode } from '../common/enums';\nimport type { IFace3d } from './graphic/face3d';\n\ntype IStrokeSeg = {\n start: number; // 百分比\n // end和length二选一\n end: number; // 百分比\n length: number; // 像素长度\n};\n\n// TODO 最后加一个any\nexport type GraphicType =\n | 'area'\n | 'circle'\n | 'ellipse'\n | 'line'\n | 'rect'\n | 'rect3d'\n | 'path'\n | 'richtext'\n | 'text'\n | 'arc'\n | 'arc3d'\n | 'image'\n | 'symbol'\n | 'group'\n | 'shadowroot'\n | 'polygon'\n | 'pyramid3d'\n | 'glyph';\n\n// Cursor style\n// See: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\nexport type Cursor =\n | 'auto'\n | 'default'\n | 'none'\n | 'context-menu'\n | 'help'\n | 'pointer'\n | 'progress'\n | 'wait'\n | 'cell'\n | 'crosshair'\n | 'text'\n | 'vertical-text'\n | 'alias'\n | 'copy'\n | 'move'\n | 'no-drop'\n | 'not-allowed'\n | 'grab'\n | 'grabbing'\n | 'all-scroll'\n | 'col-resize'\n | 'row-resize'\n | 'n-resize'\n | 'e-resize'\n | 's-resize'\n | 'w-resize'\n | 'ne-resize'\n | 'nw-resize'\n | 'se-resize'\n | 'sw-resize'\n | 'ew-resize'\n | 'ns-resize'\n | 'nesw-resize'\n | 'nwse-resize'\n | 'zoom-in'\n | 'zoom-out';\n\nexport type ITransform = {\n x: number;\n y: number;\n z: number;\n dx: number;\n dy: number;\n dz: number;\n scrollX: number;\n scrollY: number;\n scaleX: number;\n scaleY: number;\n scaleZ: number;\n angle: number;\n alpha: number;\n beta: number;\n anchor: [number | string, number | string]; // 基于AABB的锚点位置,用于简单的定位某些path\n anchor3d: [number | string, number | string, number] | [number | string, number | string]; // 3d的锚点位置\n postMatrix: IMatrix;\n};\n\nexport type IFillType = boolean | string | IColor;\nexport type IFillStyle = {\n fillOpacity: number;\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n fill: IFillType;\n};\n\nexport type IBorderStyle = Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> & {\n distance: number | string;\n};\n\nexport type IStrokeType = boolean | string | IColor | null;\nexport type IStrokeStyle = {\n outerBorder: Partial<IBorderStyle>;\n innerBorder: Partial<IBorderStyle>;\n strokeOpacity: number;\n lineDash: number[];\n lineDashOffset: number;\n lineWidth: number;\n lineCap: CanvasLineCap;\n lineJoin: CanvasLineJoin;\n miterLimit: number;\n // 描边的boundsBuffer,用于控制bounds的buffer\n strokeBoundsBuffer: number;\n /**\n * stroke - true 全描边\n * stroke - false 不描边\n * stroke 为数值类型,适用于rect\\arc等图形,用于配置部分描边的场景,其中\n *\n * 0b00000 - 不描边\n * 0b000001 - top\n * 0b000010 - right\n * 0b000100 - bottom\n * 0b001000 - left\n * 相应的:\n * 0b000011 - top + right\n * 0b000111 - top + right + bottom\n * 0b001111 - 全描边\n *\n * stroke - boolean[],适用于rect\\arc等图形,用于配置部分描边的场景\n */\n stroke: IStrokeType[] | IStrokeType;\n};\n\ntype TextureType = 'circle' | 'diamond' | 'rect' | 'vertical-line' | 'horizontal-line' | 'bias-lr' | 'bias-rl' | 'grid';\n\nexport type IGraphicStyle = IFillStyle &\n IStrokeStyle & {\n opacity: number;\n backgroundMode: number; // 填充模式(与具体图元有关)\n background: string | HTMLImageElement | HTMLCanvasElement | null; // 背景,可以与fill同时存在\n texture: TextureType | string; // 纹理\n textureColor: string; // 纹理颜色\n textureSize: number; // 纹理大小\n texturePadding: number; // 纹理间隙\n blur: number;\n cursor: Cursor | null; // 鼠标样式\n };\n\nexport type IGraphicAttribute = IGraphicStyle &\n ITransform & {\n /**\n * stroke百分比\n */\n strokeSeg: IStrokeSeg | null;\n // 包围盒的padding\n boundsPadding: number | number[];\n /**\n * 选择模式,精确模式,粗糙模式(包围盒模式),自定义模式\n */\n pickMode: 'accurate' | 'imprecise' | 'custom';\n boundsMode: 'accurate' | 'imprecise';\n customPickShape: () => boolean | null;\n /**\n * 是否支持事件拾取,默认为 true。\n * @default true\n */\n pickable: boolean;\n /**\n * 对于 group 节点,是否支持其子元素的事件拾取,默认为 true。\n * 如果 group `pickable` 关闭,`childrenPickable` 开启,那么 group 的子节点仍参与事件拾取\n * @default true\n */\n childrenPickable: boolean;\n /**\n * 元素是否可见。\n * @default true\n */\n visible: boolean;\n zIndex: number;\n layout: any;\n /**\n * 是否在3d中控制方向\n * false: 不控制方向\n * true: 始终控制方向朝摄像机\n */\n keepDirIn3d?: boolean;\n };\n\nexport interface IGraphicJson<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>> {\n attribute: Partial<T>;\n _uid: number;\n type: string;\n name: string;\n children: IGraphicJson<T>[];\n}\n\n/** the context of setAttribute */\nexport type ISetAttributeContext = {\n /** type of setAttribute */\n type?: number;\n animationState?: {\n step?: IStep;\n isFirstFrameOfStep?: boolean;\n /** ratio of animation */\n ratio?: number;\n /** is animation end? */\n end?: boolean;\n };\n};\n\nexport type IGraphicAnimateParams = {\n id?: number | string;\n onStart?: () => void;\n onFrame?: (step: IStep, ratio: number) => void;\n onEnd?: () => void;\n onRemove?: () => void;\n interpolate?: (key: string, ratio: number, from: any, to: any, nextAttributes: any) => boolean;\n};\n\nexport interface IGraphic<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>>\n extends INode,\n IAnimateTarget {\n type?: GraphicType;\n numberType?: number;\n stage?: IStage;\n layer?: ILayer;\n shadowRoot?: IShadowRoot;\n glyphHost?: IGraphic<IGlyphGraphicAttribute>;\n backgroundImg?: boolean;\n\n valid: boolean;\n parent: IGroup | null;\n isContainer?: boolean;\n // 是否是3d模式(是否应用3d视角)\n in3dMode?: boolean;\n\n // 上次更新的stamp\n stamp?: number;\n animationBackUps?: {\n from: Record<string, any>;\n to: Record<string, any>;\n };\n\n attribute: Partial<T>;\n\n /** 用于实现morph动画场景,转换成bezier曲线渲染 */\n pathProxy?: ICustomPath2D | ((attrs: T) => ICustomPath2D);\n incremental?: number;\n incrementalAt?: number;\n\n /** 记录state对应的图形属性 */\n states?: Record<string, Partial<T>>;\n normalAttrs?: Partial<T>;\n stateProxy?: (stateName: string, targetStates?: string[]) => Partial<T>;\n findFace?: () => IFace3d;\n toggleState: (stateName: string, hasAnimation?: boolean) => void;\n removeState: (stateName: string, hasAnimation?: boolean) => void;\n clearStates: (hasAnimation?: boolean) => void;\n useStates: (states: string[], hasAnimation?: boolean) => void;\n addState: (stateName: string, keepCurrentStates?: boolean, hasAnimation?: boolean) => void;\n hasState: (stateName?: string) => boolean;\n getState: (stateName: string) => Partial<T>;\n onBeforeAttributeUpdate?: (\n val: any,\n attributes: Partial<T>,\n key: null | string | string[],\n context?: ISetAttributeContext\n ) => T | undefined;\n applyStateAttrs: (attrs: Partial<T>, stateNames: string[], hasAnimation?: boolean, isClear?: boolean) => void;\n updateNormalAttrs: (stateAttrs: Partial<T>) => void;\n\n // get\n readonly AABBBounds: IAABBBounds; // 用于获取当前节点的AABB包围盒\n readonly OBBBounds: IOBBBounds; // 获取OBB包围盒,旋转防重叠需要用\n readonly globalAABBBounds: IAABBBounds; // 全局AABB包围盒\n readonly transMatrix: IMatrix; // 变换矩阵,动态计算\n readonly globalTransMatrix: IMatrix; // 变换矩阵,动态计算\n\n getOffsetXY: (attr?: ITransform) => IPoint;\n\n // function\n containsPoint: (x: number, y: number, mode?: IContainPointMode) => boolean;\n\n setMode: (mode: '3d' | '2d') => void;\n isValid: () => boolean;\n\n // TODO: transform API\n // 基于当前transform的变换,普通用户尽量别用,拿捏不住的~\n translate: (x: number, y: number) => this;\n translateTo: (x: number, y: number) => this;\n scale: (scaleX: number, scaleY: number, scaleCenter?: IPointLike) => this;\n scaleTo: (scaleX: number, scaleY: number) => this;\n rotate: (angle: number) => this;\n rotateTo: (angle: number) => this;\n skewTo: (b: number, c: number) => this;\n addUpdateBoundTag: () => void;\n addUpdateShapeAndBoundsTag: () => void;\n\n update: (d?: { bounds: boolean; trans: boolean }) => void;\n\n // animate\n animate: (params?: IGraphicAnimateParams) => IAnimate;\n\n // 语法糖,可有可无,有的为了首屏性能考虑做成get方法,有的由外界直接托管,内部不赋值\n name?: string;\n\n // 供render处理shape缓存tag\n shouldUpdateShape: () => boolean;\n clearUpdateShapeTag: () => void;\n\n // // 供render缓存shape\n // cacheShape?: ICustomPath2D;\n // // 线段使用的path2D\n // cacheLine?: ISegPath2D | ISegPath2D[];\n // // 面积图使用的path2D\n // cacheArea?: IAreaCacheItem | IAreaCacheItem[];\n\n setAttributes: (params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext) => void;\n\n initAttributes: (params: Partial<T>) => void;\n\n setAttribute: (key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) => void;\n\n setStage: (stage?: IStage, layer?: ILayer) => void;\n onSetStage: (cb: (g: IGraphic, stage: IStage) => void) => void;\n\n shouldUpdateAABBBounds: () => boolean;\n shouldSelfChangeUpdateAABBBounds: () => boolean;\n shouldUpdateGlobalMatrix: () => boolean;\n\n addUpdatePositionTag: () => void;\n addUpdateGlobalPositionTag: () => void;\n\n attachShadow: () => IShadowRoot;\n detachShadow: () => void;\n\n toJson: () => IGraphicJson;\n\n /** 创建pathProxy */\n createPathProxy: (path?: string) => void;\n /** 将图形转换成CustomPath2D */\n toCustomPath?: () => ICustomPath2D;\n\n resources?: Map<\n string | HTMLImageElement | HTMLCanvasElement,\n { state: 'init' | 'loading' | 'success' | 'fail'; data?: HTMLImageElement | HTMLCanvasElement }\n >;\n imageLoadSuccess: (url: string, data: HTMLImageElement) => void;\n imageLoadFail: (url: string) => void;\n\n clone: () => IGraphic;\n}\n\nexport interface IRoot extends IGraphic {\n pick: (x: number, y: number) => IGraphic;\n}\n\n/**\n * 动画配置\n */\nexport type IAnimateConfig = {\n duration?: number;\n easing?: EasingType;\n};\n"]}
1
+ {"version":3,"sources":["../../src/interface/graphic.ts"],"names":[],"mappings":"","file":"graphic.js","sourcesContent":["import type { IAABBBounds, IOBBBounds, IMatrix, IPointLike, IPoint } from '@visactor/vutils';\nimport type { IAnimate, IStep, EasingType, IAnimateTarget } from './animate';\nimport type { IColor } from './color';\nimport type { IGroup } from './graphic/group';\nimport type { IShadowRoot } from './graphic/shadow-root';\nimport type { ILayer } from './layer';\nimport type { INode } from './node-tree';\nimport type { ICustomPath2D } from './path';\nimport type { IStage } from './stage';\nimport type { IGlyphGraphicAttribute } from './graphic/glyph';\nimport type { IContainPointMode } from '../common/enums';\nimport type { IFace3d } from './graphic/face3d';\n\ntype IStrokeSeg = {\n start: number; // 百分比\n // end和length二选一\n end: number; // 百分比\n length: number; // 像素长度\n};\n\n// TODO 最后加一个any\nexport type GraphicType =\n | 'area'\n | 'circle'\n | 'ellipse'\n | 'line'\n | 'rect'\n | 'rect3d'\n | 'path'\n | 'richtext'\n | 'text'\n | 'arc'\n | 'arc3d'\n | 'image'\n | 'symbol'\n | 'group'\n | 'shadowroot'\n | 'polygon'\n | 'pyramid3d'\n | 'glyph';\n\n// Cursor style\n// See: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\nexport type Cursor =\n | 'auto'\n | 'default'\n | 'none'\n | 'context-menu'\n | 'help'\n | 'pointer'\n | 'progress'\n | 'wait'\n | 'cell'\n | 'crosshair'\n | 'text'\n | 'vertical-text'\n | 'alias'\n | 'copy'\n | 'move'\n | 'no-drop'\n | 'not-allowed'\n | 'grab'\n | 'grabbing'\n | 'all-scroll'\n | 'col-resize'\n | 'row-resize'\n | 'n-resize'\n | 'e-resize'\n | 's-resize'\n | 'w-resize'\n | 'ne-resize'\n | 'nw-resize'\n | 'se-resize'\n | 'sw-resize'\n | 'ew-resize'\n | 'ns-resize'\n | 'nesw-resize'\n | 'nwse-resize'\n | 'zoom-in'\n | 'zoom-out';\n\nexport type ITransform = {\n x: number;\n y: number;\n z: number;\n dx: number;\n dy: number;\n dz: number;\n scrollX: number;\n scrollY: number;\n scaleX: number;\n scaleY: number;\n scaleZ: number;\n angle: number;\n alpha: number;\n beta: number;\n anchor: [number | string, number | string]; // 基于AABB的锚点位置,用于简单的定位某些path\n anchor3d: [number | string, number | string, number] | [number | string, number | string]; // 3d的锚点位置\n postMatrix: IMatrix;\n};\n\nexport type IFillType = boolean | string | IColor;\nexport type IFillStyle = {\n fillOpacity: number;\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n fill: IFillType;\n};\n\nexport type IBorderStyle = Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> & {\n distance: number | string;\n};\n\nexport type IStrokeType = boolean | string | IColor | null;\nexport type IStrokeStyle = {\n outerBorder: Partial<IBorderStyle>;\n innerBorder: Partial<IBorderStyle>;\n strokeOpacity: number;\n lineDash: number[];\n lineDashOffset: number;\n lineWidth: number;\n lineCap: CanvasLineCap;\n lineJoin: CanvasLineJoin;\n miterLimit: number;\n // 描边的boundsBuffer,用于控制bounds的buffer\n strokeBoundsBuffer: number;\n /**\n * stroke - true 全描边\n * stroke - false 不描边\n * stroke 为数值类型,适用于rect\\arc等图形,用于配置部分描边的场景,其中\n *\n * 0b00000 - 不描边\n * 0b000001 - top\n * 0b000010 - right\n * 0b000100 - bottom\n * 0b001000 - left\n * 相应的:\n * 0b000011 - top + right\n * 0b000111 - top + right + bottom\n * 0b001111 - 全描边\n *\n * stroke - boolean[],适用于rect\\arc等图形,用于配置部分描边的场景\n */\n stroke: IStrokeType[] | IStrokeType;\n};\n\ntype TextureType = 'circle' | 'diamond' | 'rect' | 'vertical-line' | 'horizontal-line' | 'bias-lr' | 'bias-rl' | 'grid';\n\nexport type IGraphicStyle = IFillStyle &\n IStrokeStyle & {\n opacity: number;\n backgroundMode: number; // 填充模式(与具体图元有关)\n background: string | HTMLImageElement | HTMLCanvasElement | null; // 背景,可以与fill同时存在\n texture: TextureType | string; // 纹理\n textureColor: string; // 纹理颜色\n textureSize: number; // 纹理大小\n texturePadding: number; // 纹理间隙\n blur: number;\n cursor: Cursor | null; // 鼠标样式\n };\n\nexport type IGraphicAttribute = IGraphicStyle &\n ITransform & {\n /**\n * stroke百分比\n */\n strokeSeg: IStrokeSeg | null;\n // 包围盒的padding\n boundsPadding: number | number[];\n /**\n * 选择模式,精确模式,粗糙模式(包围盒模式),自定义模式\n */\n pickMode: 'accurate' | 'imprecise' | 'custom';\n boundsMode: 'accurate' | 'imprecise';\n customPickShape: () => boolean | null;\n /**\n * 是否支持事件拾取,默认为 true。\n * @default true\n */\n pickable: boolean;\n /**\n * 对于 group 节点,是否支持其子元素的事件拾取,默认为 true。\n * 如果 group `pickable` 关闭,`childrenPickable` 开启,那么 group 的子节点仍参与事件拾取\n * @default true\n */\n childrenPickable: boolean;\n /**\n * 元素是否可见。\n * @default true\n */\n visible: boolean;\n zIndex: number;\n layout: any;\n /**\n * 是否在3d中控制方向\n * false: 不控制方向\n * true: 始终控制方向朝摄像机\n */\n keepDirIn3d?: boolean;\n };\n\nexport interface IGraphicJson<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>> {\n attribute: Partial<T>;\n _uid: number;\n type: string;\n name: string;\n children: IGraphicJson<T>[];\n}\n\n/** the context of setAttribute */\nexport type ISetAttributeContext = {\n /** type of setAttribute */\n type?: number;\n animationState?: {\n step?: IStep;\n isFirstFrameOfStep?: boolean;\n /** ratio of animation */\n ratio?: number;\n /** is animation end? */\n end?: boolean;\n };\n};\n\nexport type IGraphicAnimateParams = {\n id?: number | string;\n onStart?: () => void;\n onFrame?: (step: IStep, ratio: number) => void;\n onEnd?: () => void;\n onRemove?: () => void;\n interpolate?: (key: string, ratio: number, from: any, to: any, nextAttributes: any) => boolean;\n};\n\nexport interface IGraphic<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>>\n extends INode,\n IAnimateTarget {\n type?: GraphicType;\n numberType?: number;\n stage?: IStage;\n layer?: ILayer;\n shadowRoot?: IShadowRoot;\n glyphHost?: IGraphic<IGlyphGraphicAttribute>;\n backgroundImg?: boolean;\n\n valid: boolean;\n parent: IGroup | null;\n isContainer?: boolean;\n // 是否是3d模式(是否应用3d视角)\n in3dMode?: boolean;\n\n // 上次更新的stamp\n stamp?: number;\n animationBackUps?: {\n from: Record<string, any>;\n to: Record<string, any>;\n };\n\n attribute: Partial<T>;\n\n /** 用于实现morph动画场景,转换成bezier曲线渲染 */\n pathProxy?: ICustomPath2D | ((attrs: T) => ICustomPath2D);\n incremental?: number;\n incrementalAt?: number;\n\n /** 记录state对应的图形属性 */\n states?: Record<string, Partial<T>>;\n normalAttrs?: Partial<T>;\n stateProxy?: (stateName: string, targetStates?: string[]) => Partial<T>;\n findFace?: () => IFace3d;\n toggleState: (stateName: string, hasAnimation?: boolean) => void;\n removeState: (stateName: string, hasAnimation?: boolean) => void;\n clearStates: (hasAnimation?: boolean) => void;\n useStates: (states: string[], hasAnimation?: boolean) => void;\n addState: (stateName: string, keepCurrentStates?: boolean, hasAnimation?: boolean) => void;\n hasState: (stateName?: string) => boolean;\n getState: (stateName: string) => Partial<T>;\n onBeforeAttributeUpdate?: (\n val: any,\n attributes: Partial<T>,\n key: null | string | string[],\n context?: ISetAttributeContext\n ) => T | undefined;\n applyStateAttrs: (attrs: Partial<T>, stateNames: string[], hasAnimation?: boolean, isClear?: boolean) => void;\n updateNormalAttrs: (stateAttrs: Partial<T>) => void;\n\n // get\n readonly AABBBounds: IAABBBounds; // 用于获取当前节点的AABB包围盒\n readonly OBBBounds: IOBBBounds; // 获取OBB包围盒,旋转防重叠需要用\n readonly globalAABBBounds: IAABBBounds; // 全局AABB包围盒\n readonly transMatrix: IMatrix; // 变换矩阵,动态计算\n readonly globalTransMatrix: IMatrix; // 变换矩阵,动态计算\n\n getOffsetXY: (attr?: ITransform) => IPoint;\n\n // function\n containsPoint: (x: number, y: number, mode?: IContainPointMode) => boolean;\n\n setMode: (mode: '3d' | '2d') => void;\n isValid: () => boolean;\n\n // TODO: transform API\n // 基于当前transform的变换,普通用户尽量别用,拿捏不住的~\n translate: (x: number, y: number) => this;\n translateTo: (x: number, y: number) => this;\n scale: (scaleX: number, scaleY: number, scaleCenter?: IPointLike) => this;\n scaleTo: (scaleX: number, scaleY: number) => this;\n rotate: (angle: number) => this;\n rotateTo: (angle: number) => this;\n skewTo: (b: number, c: number) => this;\n addUpdateBoundTag: () => void;\n addUpdateShapeAndBoundsTag: () => void;\n\n update: (d?: { bounds: boolean; trans: boolean }) => void;\n\n // animate\n animate: (params?: IGraphicAnimateParams) => IAnimate;\n\n // 语法糖,可有可无,有的为了首屏性能考虑做成get方法,有的由外界直接托管,内部不赋值\n name?: string;\n\n // 供render处理shape缓存tag\n shouldUpdateShape: () => boolean;\n clearUpdateShapeTag: () => void;\n\n // // 供render缓存shape\n // cacheShape?: ICustomPath2D;\n // // 线段使用的path2D\n // cacheLine?: ISegPath2D | ISegPath2D[];\n // // 面积图使用的path2D\n // cacheArea?: IAreaCacheItem | IAreaCacheItem[];\n\n setAttributes: (params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext) => void;\n\n initAttributes: (params: Partial<T>) => void;\n\n setAttribute: (key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext) => void;\n\n setStage: (stage?: IStage, layer?: ILayer) => void;\n onSetStage: (cb: (g: IGraphic, stage: IStage) => void) => void;\n\n shouldUpdateAABBBounds: () => boolean;\n shouldSelfChangeUpdateAABBBounds: () => boolean;\n shouldUpdateGlobalMatrix: () => boolean;\n\n addUpdatePositionTag: () => void;\n addUpdateGlobalPositionTag: () => void;\n\n attachShadow: () => IShadowRoot;\n detachShadow: () => void;\n\n toJson: () => IGraphicJson;\n\n /** 创建pathProxy */\n createPathProxy: (path?: string) => void;\n /** 将图形转换成CustomPath2D */\n toCustomPath?: () => ICustomPath2D;\n\n resources?: Map<\n string | HTMLImageElement | HTMLCanvasElement,\n { state: 'init' | 'loading' | 'success' | 'fail'; data?: HTMLImageElement | HTMLCanvasElement }\n >;\n imageLoadSuccess: (url: string, data: HTMLImageElement) => void;\n imageLoadFail: (url: string) => void;\n\n clone: () => IGraphic;\n}\n\nexport interface IRoot extends IGraphic {\n pick: (x: number, y: number) => IGraphic;\n}\n\n/**\n * 动画配置\n */\nexport type IAnimateConfig = {\n duration?: number;\n easing?: EasingType;\n};\n\nexport type GraphicReleaseStatus = 'released' | 'willRelease';\n"]}