@visactor/vrender 0.9.1 → 0.9.2-fill-stroke.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 (376) hide show
  1. package/cjs/allocator/constants.d.ts +9 -0
  2. package/cjs/allocator/constants.js +10 -0
  3. package/cjs/allocator/constants.js.map +1 -0
  4. package/cjs/animate/custom-animate.d.ts +2 -2
  5. package/cjs/animate/custom-animate.js +13 -12
  6. package/cjs/animate/custom-animate.js.map +1 -1
  7. package/cjs/animate/default-ticker.d.ts +2 -0
  8. package/cjs/animate/default-ticker.js +14 -0
  9. package/cjs/animate/default-ticker.js.map +1 -0
  10. package/cjs/animate/morphing.js +4 -5
  11. package/cjs/animate/morphing.js.map +1 -1
  12. package/cjs/animate/timeline.js +1 -2
  13. package/cjs/application.d.ts +11 -0
  14. package/cjs/application.js +9 -0
  15. package/cjs/application.js.map +1 -0
  16. package/cjs/canvas/contributions/browser/context.d.ts +2 -4
  17. package/cjs/canvas/contributions/browser/context.js +4 -4
  18. package/cjs/canvas/contributions/browser/context.js.map +1 -1
  19. package/cjs/canvas/contributions/taro/context.js +4 -4
  20. package/cjs/canvas/contributions/taro/context.js.map +1 -1
  21. package/cjs/common/bezier-utils.d.ts +5 -0
  22. package/cjs/common/bezier-utils.js +35 -0
  23. package/cjs/common/bezier-utils.js.map +1 -0
  24. package/cjs/common/canvas-utils.d.ts +1 -1
  25. package/cjs/common/canvas-utils.js +11 -7
  26. package/cjs/common/canvas-utils.js.map +1 -1
  27. package/cjs/common/custom-path2d.d.ts +47 -0
  28. package/cjs/common/custom-path2d.js +333 -0
  29. package/cjs/common/custom-path2d.js.map +1 -0
  30. package/cjs/common/segment/basis.d.ts +25 -0
  31. package/cjs/common/segment/basis.js +68 -0
  32. package/cjs/common/segment/basis.js.map +1 -0
  33. package/cjs/common/segment/common.d.ts +3 -0
  34. package/cjs/common/segment/common.js +12 -0
  35. package/cjs/common/segment/common.js.map +1 -0
  36. package/cjs/common/segment/curve/arc.d.ts +14 -0
  37. package/cjs/common/segment/curve/arc.js +29 -0
  38. package/cjs/common/segment/curve/arc.js.map +1 -0
  39. package/cjs/common/segment/curve/base.d.ts +13 -0
  40. package/cjs/common/segment/curve/base.js +15 -0
  41. package/cjs/common/segment/curve/base.js.map +1 -0
  42. package/cjs/common/segment/curve/cubic-bezier.d.ts +17 -0
  43. package/cjs/common/segment/curve/cubic-bezier.js +42 -0
  44. package/cjs/common/segment/curve/cubic-bezier.js.map +1 -0
  45. package/cjs/common/segment/curve/curve-context.d.ts +19 -0
  46. package/cjs/common/segment/curve/curve-context.js +48 -0
  47. package/cjs/common/segment/curve/curve-context.js.map +1 -0
  48. package/cjs/common/segment/curve/ellipse.d.ts +18 -0
  49. package/cjs/common/segment/curve/ellipse.js +30 -0
  50. package/cjs/common/segment/curve/ellipse.js.map +1 -0
  51. package/cjs/common/segment/curve/line.d.ts +16 -0
  52. package/cjs/common/segment/curve/line.js +41 -0
  53. package/cjs/common/segment/curve/line.js.map +1 -0
  54. package/cjs/common/segment/curve/move.d.ts +13 -0
  55. package/cjs/common/segment/curve/move.js +28 -0
  56. package/cjs/common/segment/curve/move.js.map +1 -0
  57. package/cjs/common/segment/curve/path.d.ts +11 -0
  58. package/cjs/common/segment/curve/path.js +31 -0
  59. package/cjs/common/segment/curve/path.js.map +1 -0
  60. package/cjs/common/segment/curve/quadratic-bezier.d.ts +14 -0
  61. package/cjs/common/segment/curve/quadratic-bezier.js +29 -0
  62. package/cjs/common/segment/curve/quadratic-bezier.js.map +1 -0
  63. package/cjs/common/segment/index.d.ts +10 -0
  64. package/cjs/common/segment/index.js +56 -0
  65. package/cjs/common/segment/index.js.map +1 -0
  66. package/cjs/common/segment/linear-closed.d.ts +24 -0
  67. package/cjs/common/segment/linear-closed.js +60 -0
  68. package/cjs/common/segment/linear-closed.js.map +1 -0
  69. package/cjs/common/segment/linear.d.ts +24 -0
  70. package/cjs/common/segment/linear.js +59 -0
  71. package/cjs/common/segment/linear.js.map +1 -0
  72. package/cjs/common/segment/monotone.d.ts +33 -0
  73. package/cjs/common/segment/monotone.js +128 -0
  74. package/cjs/common/segment/monotone.js.map +1 -0
  75. package/cjs/common/segment/step.d.ts +25 -0
  76. package/cjs/common/segment/step.js +65 -0
  77. package/cjs/common/segment/step.js.map +1 -0
  78. package/cjs/common/shape/rect.d.ts +1 -1
  79. package/cjs/common/utils.d.ts +2 -1
  80. package/cjs/common/utils.js +15 -6
  81. package/cjs/common/utils.js.map +1 -1
  82. package/cjs/container.d.ts +2 -0
  83. package/cjs/container.js +10 -0
  84. package/cjs/container.js.map +1 -0
  85. package/cjs/core/constants.d.ts +3 -0
  86. package/cjs/core/constants.js +8 -0
  87. package/cjs/core/constants.js.map +1 -0
  88. package/cjs/core/global-module.d.ts +5 -0
  89. package/cjs/core/global-module.js +19 -0
  90. package/cjs/core/global-module.js.map +1 -0
  91. package/cjs/core/global.d.ts +2 -2
  92. package/cjs/core/global.js +1 -2
  93. package/cjs/core/graphic-utils.js +1 -1
  94. package/cjs/core/index.js +1 -1
  95. package/cjs/core/interface.d.ts +30 -0
  96. package/cjs/core/interface.js +6 -0
  97. package/cjs/core/interface.js.map +1 -0
  98. package/cjs/core/layer-service.js +1 -1
  99. package/cjs/core/layer.js +1 -1
  100. package/cjs/core/light.js +1 -1
  101. package/cjs/core/stage.d.ts +1 -1
  102. package/cjs/core/stage.js +3 -3
  103. package/cjs/core/stage.js.map +1 -1
  104. package/cjs/core/window.js +1 -1
  105. package/cjs/event/constant.js +1 -1
  106. package/cjs/event/event-manager.js +1 -1
  107. package/cjs/event/event-system.js +1 -1
  108. package/cjs/event/event-target.js +2 -1
  109. package/cjs/event/index.js +1 -1
  110. package/cjs/event/interface.js +1 -1
  111. package/cjs/event/type.js +1 -1
  112. package/cjs/event/util.js +1 -1
  113. package/cjs/graphic/config.js +2 -4
  114. package/cjs/graphic/config.js.map +1 -1
  115. package/cjs/graphic/constants.d.ts +18 -0
  116. package/cjs/graphic/constants.js +21 -0
  117. package/cjs/graphic/constants.js.map +1 -0
  118. package/cjs/graphic/graphic-service/graphic-service.js +24 -29
  119. package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
  120. package/cjs/graphic/graphic.js +1 -1
  121. package/cjs/graphic/graphic.js.map +1 -1
  122. package/cjs/graphic/richtext/utils.js +6 -8
  123. package/cjs/graphic/richtext/utils.js.map +1 -1
  124. package/cjs/interface/context.d.ts +3 -3
  125. package/cjs/interface/context.js.map +1 -1
  126. package/cjs/interface/curve.d.ts +42 -0
  127. package/cjs/interface/curve.js +6 -0
  128. package/cjs/interface/curve.js.map +1 -0
  129. package/cjs/interface/graphic/area.d.ts +1 -1
  130. package/cjs/interface/graphic/area.js.map +1 -1
  131. package/cjs/interface/graphic/creator.js.map +1 -1
  132. package/cjs/interface/graphic/line.d.ts +1 -1
  133. package/cjs/interface/graphic/line.js.map +1 -1
  134. package/cjs/interface/graphic/richText.d.ts +2 -4
  135. package/cjs/interface/graphic/richText.js.map +1 -1
  136. package/cjs/interface/graphic-service.d.ts +58 -0
  137. package/cjs/interface/graphic-service.js +6 -0
  138. package/cjs/interface/graphic-service.js.map +1 -0
  139. package/cjs/interface/graphic.d.ts +4 -4
  140. package/cjs/interface/graphic.js.map +1 -1
  141. package/cjs/interface/stage.d.ts +2 -2
  142. package/cjs/interface/stage.js.map +1 -1
  143. package/cjs/picker/contributions/canvas-picker/rect-picker.js +1 -1
  144. package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  145. package/cjs/picker/contributions/math-picker/rect-picker.js +1 -1
  146. package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
  147. package/cjs/render/contributions/render/arc-render.d.ts +1 -1
  148. package/cjs/render/contributions/render/arc-render.js +3 -3
  149. package/cjs/render/contributions/render/arc-render.js.map +1 -1
  150. package/cjs/render/contributions/render/arc3d-render.js +6 -6
  151. package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
  152. package/cjs/render/contributions/render/area-render.js +4 -4
  153. package/cjs/render/contributions/render/area-render.js.map +1 -1
  154. package/cjs/render/contributions/render/circle-render.js +1 -1
  155. package/cjs/render/contributions/render/circle-render.js.map +1 -1
  156. package/cjs/render/contributions/render/contributions/area-contribution-render.js +6 -2
  157. package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  158. package/cjs/render/contributions/render/group-render.js +1 -1
  159. package/cjs/render/contributions/render/group-render.js.map +1 -1
  160. package/cjs/render/contributions/render/incremental-area-render.js +1 -1
  161. package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
  162. package/cjs/render/contributions/render/incremental-line-render.js +1 -1
  163. package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
  164. package/cjs/render/contributions/render/line-render.js +4 -4
  165. package/cjs/render/contributions/render/line-render.js.map +1 -1
  166. package/cjs/render/contributions/render/path-render.js +1 -1
  167. package/cjs/render/contributions/render/path-render.js.map +1 -1
  168. package/cjs/render/contributions/render/polygon-render.js +1 -1
  169. package/cjs/render/contributions/render/polygon-render.js.map +1 -1
  170. package/cjs/render/contributions/render/pyramid3d-render.js +3 -3
  171. package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
  172. package/cjs/render/contributions/render/rect-render.js +1 -1
  173. package/cjs/render/contributions/render/rect-render.js.map +1 -1
  174. package/cjs/render/contributions/render/rect3d-render.js +3 -3
  175. package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
  176. package/cjs/render/contributions/render/symbol-render.js +1 -1
  177. package/cjs/render/contributions/render/symbol-render.js.map +1 -1
  178. package/cjs/render/contributions/render/text-render.js +5 -5
  179. package/cjs/render/contributions/render/text-render.js.map +1 -1
  180. package/cjs/render/contributions/render/utils.d.ts +3 -3
  181. package/cjs/render/contributions/render/utils.js +3 -3
  182. package/cjs/render/contributions/render/utils.js.map +1 -1
  183. package/cjs/resource-loader/loader.d.ts +1 -1
  184. package/cjs/tapable/interface.d.ts +1 -0
  185. package/cjs/tapable/interface.js +3 -0
  186. package/cjs/tapable/interface.js.map +1 -0
  187. package/dist/vrender.js.js +1 -1
  188. package/dist/vrender.js.min.js +1 -1
  189. package/es/allocator/constants.d.ts +9 -0
  190. package/es/allocator/constants.js +17 -0
  191. package/es/allocator/constants.js.map +1 -0
  192. package/es/animate/custom-animate.d.ts +2 -2
  193. package/es/animate/custom-animate.js +13 -12
  194. package/es/animate/custom-animate.js.map +1 -1
  195. package/es/animate/default-ticker.d.ts +2 -0
  196. package/es/animate/default-ticker.js +12 -0
  197. package/es/animate/default-ticker.js.map +1 -0
  198. package/es/animate/morphing.js +4 -5
  199. package/es/animate/morphing.js.map +1 -1
  200. package/es/animate/timeline.js +1 -2
  201. package/es/application.d.ts +11 -0
  202. package/es/application.js +3 -0
  203. package/es/application.js.map +1 -0
  204. package/es/canvas/contributions/browser/context.d.ts +2 -4
  205. package/es/canvas/contributions/browser/context.js +5 -6
  206. package/es/canvas/contributions/browser/context.js.map +1 -1
  207. package/es/canvas/contributions/taro/context.js +5 -6
  208. package/es/canvas/contributions/taro/context.js.map +1 -1
  209. package/es/common/bezier-utils.d.ts +5 -0
  210. package/es/common/bezier-utils.js +26 -0
  211. package/es/common/bezier-utils.js.map +1 -0
  212. package/es/common/canvas-utils.d.ts +1 -1
  213. package/es/common/canvas-utils.js +6 -3
  214. package/es/common/canvas-utils.js.map +1 -1
  215. package/es/common/custom-path2d.d.ts +47 -0
  216. package/es/common/custom-path2d.js +338 -0
  217. package/es/common/custom-path2d.js.map +1 -0
  218. package/es/common/segment/basis.d.ts +25 -0
  219. package/es/common/segment/basis.js +65 -0
  220. package/es/common/segment/basis.js.map +1 -0
  221. package/es/common/segment/common.d.ts +3 -0
  222. package/es/common/segment/common.js +6 -0
  223. package/es/common/segment/common.js.map +1 -0
  224. package/es/common/segment/curve/arc.d.ts +14 -0
  225. package/es/common/segment/curve/arc.js +22 -0
  226. package/es/common/segment/curve/arc.js.map +1 -0
  227. package/es/common/segment/curve/base.d.ts +13 -0
  228. package/es/common/segment/curve/base.js +7 -0
  229. package/es/common/segment/curve/base.js.map +1 -0
  230. package/es/common/segment/curve/cubic-bezier.d.ts +17 -0
  231. package/es/common/segment/curve/cubic-bezier.js +37 -0
  232. package/es/common/segment/curve/cubic-bezier.js.map +1 -0
  233. package/es/common/segment/curve/curve-context.d.ts +19 -0
  234. package/es/common/segment/curve/curve-context.js +44 -0
  235. package/es/common/segment/curve/curve-context.js.map +1 -0
  236. package/es/common/segment/curve/ellipse.d.ts +18 -0
  237. package/es/common/segment/curve/ellipse.js +24 -0
  238. package/es/common/segment/curve/ellipse.js.map +1 -0
  239. package/es/common/segment/curve/line.d.ts +16 -0
  240. package/es/common/segment/curve/line.js +34 -0
  241. package/es/common/segment/curve/line.js.map +1 -0
  242. package/es/common/segment/curve/move.d.ts +13 -0
  243. package/es/common/segment/curve/move.js +22 -0
  244. package/es/common/segment/curve/move.js.map +1 -0
  245. package/es/common/segment/curve/path.d.ts +11 -0
  246. package/es/common/segment/curve/path.js +23 -0
  247. package/es/common/segment/curve/path.js.map +1 -0
  248. package/es/common/segment/curve/quadratic-bezier.d.ts +14 -0
  249. package/es/common/segment/curve/quadratic-bezier.js +23 -0
  250. package/es/common/segment/curve/quadratic-bezier.js.map +1 -0
  251. package/es/common/segment/index.d.ts +10 -0
  252. package/es/common/segment/index.js +49 -0
  253. package/es/common/segment/index.js.map +1 -0
  254. package/es/common/segment/linear-closed.d.ts +24 -0
  255. package/es/common/segment/linear-closed.js +56 -0
  256. package/es/common/segment/linear-closed.js.map +1 -0
  257. package/es/common/segment/linear.d.ts +24 -0
  258. package/es/common/segment/linear.js +56 -0
  259. package/es/common/segment/linear.js.map +1 -0
  260. package/es/common/segment/monotone.d.ts +33 -0
  261. package/es/common/segment/monotone.js +122 -0
  262. package/es/common/segment/monotone.js.map +1 -0
  263. package/es/common/segment/step.d.ts +25 -0
  264. package/es/common/segment/step.js +62 -0
  265. package/es/common/segment/step.js.map +1 -0
  266. package/es/common/shape/rect.d.ts +1 -1
  267. package/es/common/utils.d.ts +2 -1
  268. package/es/common/utils.js +14 -5
  269. package/es/common/utils.js.map +1 -1
  270. package/es/container.d.ts +2 -0
  271. package/es/container.js +4 -0
  272. package/es/container.js.map +1 -0
  273. package/es/core/constants.d.ts +3 -0
  274. package/es/core/constants.js +6 -0
  275. package/es/core/constants.js.map +1 -0
  276. package/es/core/global-module.d.ts +5 -0
  277. package/es/core/global-module.js +19 -0
  278. package/es/core/global-module.js.map +1 -0
  279. package/es/core/global.d.ts +2 -2
  280. package/es/core/global.js +1 -2
  281. package/es/core/graphic-utils.js +1 -1
  282. package/es/core/index.js +1 -1
  283. package/es/core/interface.d.ts +30 -0
  284. package/es/core/interface.js +2 -0
  285. package/es/core/interface.js.map +1 -0
  286. package/es/core/layer-service.js +1 -1
  287. package/es/core/layer.js +1 -1
  288. package/es/core/light.js +1 -1
  289. package/es/core/stage.d.ts +1 -1
  290. package/es/core/stage.js +3 -3
  291. package/es/core/stage.js.map +1 -1
  292. package/es/core/window.js +1 -1
  293. package/es/event/constant.js +1 -1
  294. package/es/event/event-manager.js +1 -1
  295. package/es/event/event-system.js +1 -1
  296. package/es/event/event-target.js +2 -1
  297. package/es/event/index.js +1 -1
  298. package/es/event/interface.js +1 -1
  299. package/es/event/type.js +1 -1
  300. package/es/event/util.js +1 -1
  301. package/es/graphic/config.js +2 -4
  302. package/es/graphic/config.js.map +1 -1
  303. package/es/graphic/constants.d.ts +18 -0
  304. package/es/graphic/constants.js +38 -0
  305. package/es/graphic/constants.js.map +1 -0
  306. package/es/graphic/graphic-service/graphic-service.js +25 -29
  307. package/es/graphic/graphic-service/graphic-service.js.map +1 -1
  308. package/es/graphic/graphic.js +1 -1
  309. package/es/graphic/graphic.js.map +1 -1
  310. package/es/graphic/richtext/utils.js +6 -8
  311. package/es/graphic/richtext/utils.js.map +1 -1
  312. package/es/interface/context.d.ts +3 -3
  313. package/es/interface/context.js.map +1 -1
  314. package/es/interface/curve.d.ts +42 -0
  315. package/es/interface/curve.js +2 -0
  316. package/es/interface/curve.js.map +1 -0
  317. package/es/interface/graphic/area.d.ts +1 -1
  318. package/es/interface/graphic/area.js.map +1 -1
  319. package/es/interface/graphic/creator.js.map +1 -1
  320. package/es/interface/graphic/line.d.ts +1 -1
  321. package/es/interface/graphic/line.js.map +1 -1
  322. package/es/interface/graphic/richText.d.ts +2 -4
  323. package/es/interface/graphic/richText.js.map +1 -1
  324. package/es/interface/graphic-service.d.ts +58 -0
  325. package/es/interface/graphic-service.js +2 -0
  326. package/es/interface/graphic-service.js.map +1 -0
  327. package/es/interface/graphic.d.ts +4 -4
  328. package/es/interface/graphic.js.map +1 -1
  329. package/es/interface/stage.d.ts +2 -2
  330. package/es/interface/stage.js.map +1 -1
  331. package/es/picker/contributions/canvas-picker/rect-picker.js +1 -1
  332. package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
  333. package/es/picker/contributions/math-picker/rect-picker.js +1 -1
  334. package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
  335. package/es/render/contributions/render/arc-render.d.ts +1 -1
  336. package/es/render/contributions/render/arc-render.js +3 -3
  337. package/es/render/contributions/render/arc-render.js.map +1 -1
  338. package/es/render/contributions/render/arc3d-render.js +6 -6
  339. package/es/render/contributions/render/arc3d-render.js.map +1 -1
  340. package/es/render/contributions/render/area-render.js +4 -4
  341. package/es/render/contributions/render/area-render.js.map +1 -1
  342. package/es/render/contributions/render/circle-render.js +1 -1
  343. package/es/render/contributions/render/circle-render.js.map +1 -1
  344. package/es/render/contributions/render/contributions/area-contribution-render.js +3 -1
  345. package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
  346. package/es/render/contributions/render/group-render.js +1 -1
  347. package/es/render/contributions/render/group-render.js.map +1 -1
  348. package/es/render/contributions/render/incremental-area-render.js +1 -1
  349. package/es/render/contributions/render/incremental-area-render.js.map +1 -1
  350. package/es/render/contributions/render/incremental-line-render.js +1 -1
  351. package/es/render/contributions/render/incremental-line-render.js.map +1 -1
  352. package/es/render/contributions/render/line-render.js +4 -4
  353. package/es/render/contributions/render/line-render.js.map +1 -1
  354. package/es/render/contributions/render/path-render.js +1 -1
  355. package/es/render/contributions/render/path-render.js.map +1 -1
  356. package/es/render/contributions/render/polygon-render.js +1 -1
  357. package/es/render/contributions/render/polygon-render.js.map +1 -1
  358. package/es/render/contributions/render/pyramid3d-render.js +3 -3
  359. package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
  360. package/es/render/contributions/render/rect-render.js +1 -1
  361. package/es/render/contributions/render/rect-render.js.map +1 -1
  362. package/es/render/contributions/render/rect3d-render.js +3 -3
  363. package/es/render/contributions/render/rect3d-render.js.map +1 -1
  364. package/es/render/contributions/render/symbol-render.js +1 -1
  365. package/es/render/contributions/render/symbol-render.js.map +1 -1
  366. package/es/render/contributions/render/text-render.js +5 -5
  367. package/es/render/contributions/render/text-render.js.map +1 -1
  368. package/es/render/contributions/render/utils.d.ts +3 -3
  369. package/es/render/contributions/render/utils.js +4 -3
  370. package/es/render/contributions/render/utils.js.map +1 -1
  371. package/es/resource-loader/loader.d.ts +1 -1
  372. package/es/tapable/interface.d.ts +1 -0
  373. package/es/tapable/interface.js +3 -0
  374. package/es/tapable/interface.js.map +1 -0
  375. package/es/tsconfig.tsbuildinfo +1 -1
  376. package/package.json +1 -1
package/es/event/type.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
package/es/event/util.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const clock = "object" == typeof performance && performance.now ? performance : Date;
2
- //# sourceMappingURL=util.js.map
2
+ //# sourceMappingURL=util.js.map
@@ -23,9 +23,8 @@ export const DefaultTransform = {
23
23
  };
24
24
 
25
25
  export const DefaultFillStyle = {
26
- fillColor: "black",
27
26
  fillOpacity: 1,
28
- fill: null,
27
+ fill: !1,
29
28
  shadowBlur: 0,
30
29
  shadowColor: "black",
31
30
  shadowOffsetX: 0,
@@ -33,7 +32,6 @@ export const DefaultFillStyle = {
33
32
  };
34
33
 
35
34
  const commonStroke = {
36
- strokeColor: "black",
37
35
  strokeOpacity: 1,
38
36
  lineDash: [],
39
37
  lineDashOffset: 0,
@@ -42,7 +40,7 @@ const commonStroke = {
42
40
  lineJoin: "miter",
43
41
  miterLimit: 10,
44
42
  strokeBoundsBuffer: 2,
45
- stroke: null
43
+ stroke: !1
46
44
  };
47
45
 
48
46
  export const DefaultStrokeStyle = Object.assign({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6BzC,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,IAAI;IACV,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,YAAY,GAAsD;IACtE,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,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,mCAChC,gBAAgB,KACnB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,YAAiC,EAC5C,iBAAiB,EAAE,KAAkC,EACrD,SAAS,EAAE,MAAiC,EAC5C,YAAY,EAAE,KAAmC,EACjD,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,EAAE,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,KAAK,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,iCAChC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,IAAI,EAAE,IAAI,GACX,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,mCACpC,qBAAqB,KACxB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,CAAC,EAClB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,IAAI,EACpB,mBAAmB,EAAE,0BAA0B,EAC/C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillColor: 'black',\n fillOpacity: 1,\n fill: null,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeColor: 'black',\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: null\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
1
+ {"version":3,"sources":["../../src/graphic/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6BzC,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,IAAI,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,KAAK;IACX,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,YAAY,GAAsD;IACtE,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,EAAE;IACZ,cAAc,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC;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E,IAAI,EACd,SAAS,EAAE,YAAiC,EAC5C,iBAAiB,EAAE,KAAkC,EACrD,SAAS,EAAE,MAAiC,EAC5C,YAAY,EAAE,KAAmC,EACjD,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,EAAE,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,KAAK,GAClB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,iCAChC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,IAAI,EAAE,IAAI,GACX,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,mCACpC,qBAAqB,KACxB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,CAAC,EAClB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,CAAC,EACT,EAAE,EAAE,EAAE,EAEN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,cAAc,EAAE,IAAI,EACpB,mBAAmB,EAAE,0BAA0B,EAC/C,qBAAqB,EAAE,CAAC,EACxB,gBAAgB,EAAE,KAAK,EACvB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,CAAC,EAC1B,gBAAgB,EAAE,CAAC,EACnB,OAAO,EAAE,CAAC,GACX,CAAC","file":"config.js","sourcesContent":["// 存放公共属性\nimport { Matrix, pi2 } from '@visactor/vutils';\nimport { CustomPath2D } from '../common';\nimport {\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n ICircleGraphicAttribute,\n IFillStyle,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IStrokeStyle,\n IGraphicStyle,\n ISymbolGraphicAttribute,\n ITextAttribute,\n ITextGraphicAttribute,\n IRichTextGraphicAttribute,\n ITransform,\n RichTextWordBreak,\n RichTextVerticalDirection,\n RichTextGlobalAlignType,\n RichTextGlobalBaselineType,\n IRichTextIconGraphicAttribute\n} from '../interface';\n\nexport const DefaultTransform: ITransform = {\n x: 0,\n y: 0,\n z: 0,\n dx: 0,\n dy: 0,\n dz: 0,\n scrollX: 0,\n scrollY: 0,\n scaleX: 1,\n scaleY: 1,\n scaleZ: 1,\n angle: 0,\n alpha: 0,\n beta: 0,\n anchor: [0, 0],\n anchor3d: [0, 0],\n postMatrix: new Matrix()\n};\n\nexport const DefaultFillStyle: IFillStyle = {\n fillOpacity: 1,\n fill: false,\n shadowBlur: 0,\n shadowColor: 'black',\n shadowOffsetX: 0,\n shadowOffsetY: 0\n};\n\nconst commonStroke: Omit<IStrokeStyle, 'outerBorder' | 'innerBorder'> = {\n strokeOpacity: 1,\n lineDash: [],\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n lineJoin: 'miter',\n miterLimit: 10,\n strokeBoundsBuffer: 2,\n stroke: false\n};\n\nexport const DefaultStrokeStyle: IStrokeStyle = {\n outerBorder: { ...commonStroke, distance: 0 },\n innerBorder: { ...commonStroke, distance: 0 },\n ...commonStroke\n};\n\nexport const DefaultTextStyle: Required<ITextAttribute> = {\n text: '',\n maxLineWidth: Infinity,\n textAlign: 'left',\n textBaseline: 'alphabetic',\n fontSize: 16,\n // @ts-ignore\n fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,\n fontWeight: '',\n ellipsis: '…',\n fontVariant: '',\n fontStyle: '',\n lineHeight: 16,\n underline: 0,\n lineThrough: 0\n};\n\nexport const DefaultStyle: IGraphicStyle = {\n opacity: 1,\n background: null,\n texture: null,\n textureColor: 'black',\n textureSize: 10,\n texturePadding: 2,\n backgroundMode: 0,\n blur: 0,\n cursor: null,\n ...DefaultFillStyle,\n ...DefaultStrokeStyle\n};\n\nexport const DefaultAttribute: Required<IGraphicAttribute> = {\n strokeSeg: null,\n pickable: true,\n childrenPickable: true,\n visible: true,\n zIndex: 0,\n layout: null,\n boundsPadding: 0,\n pickMode: 'accurate',\n customPickShape: null,\n boundsMode: 'accurate',\n keepDirIn3d: true,\n ...DefaultStyle,\n ...DefaultTransform\n};\n\nexport function addAttributeToPrototype(obj: Record<string, any>, c: any, keys: string[]) {\n keys.forEach(key => {\n c.prototype[key] = obj[key];\n });\n}\nexport function rewriteProto(obj: Record<string, any>, c: Record<string, any>) {\n Object.setPrototypeOf(obj, c);\n}\n\nexport const DefaultArcAttribute: Required<IArcGraphicAttribute> = {\n ...DefaultAttribute,\n startAngle: 0,\n endAngle: pi2,\n innerRadius: 0,\n outerRadius: 1,\n cornerRadius: 0,\n padRadius: 0,\n padAngle: 0,\n cap: false,\n forceShowCap: false\n};\n\nexport const DefaultAreaAttribute: Required<IAreaGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1\n};\n\nexport const DefaultCircleAttribute: Required<ICircleGraphicAttribute> = {\n ...DefaultAttribute,\n radius: 1,\n startAngle: 0,\n endAngle: pi2\n};\n\nexport const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n path: [],\n clip: false,\n visibleAll: true\n};\n\nexport const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {\n ...DefaultAttribute,\n path: '',\n width: 0,\n height: 0,\n borderRadius: 0,\n clip: false\n};\n\nexport const DefaultLineAttribute: Required<ILineGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n segments: [],\n curveType: 'linear',\n clipRange: 1,\n clipRangeByDimension: 'default'\n};\n\nexport const DefaultPathAttribute: Required<IPathGraphicAttribute> = {\n ...DefaultAttribute,\n path: new CustomPath2D(),\n customPath: () => {\n console.warn('空函数');\n }\n};\n\nexport const DefaultPolygonAttribute: Required<IPolygonGraphicAttribute> = {\n ...DefaultAttribute,\n points: [],\n borderRadius: 0\n};\n\nexport const DefaultRectAttribute: Required<IRectGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0\n};\n\nexport const DefaultRect3dAttribute: Required<IRect3dGraphicAttribute> = {\n ...DefaultAttribute,\n width: 0,\n height: 0,\n borderRadius: 0,\n length: 0\n};\n\nexport const DefaultSymbolAttribute: Required<ISymbolGraphicAttribute> = {\n ...DefaultAttribute,\n symbolType: 'circle',\n size: 10, // 外接**正方形**的边长\n keepDirIn3d: true\n};\n\nexport const DefaultTextAttribute: Required<ITextGraphicAttribute> = {\n ...DefaultAttribute,\n ...DefaultTextStyle,\n strokeBoundsBuffer: 0,\n keepDirIn3d: true\n};\n\nexport const DefaultRichTextAttribute: Required<IRichTextGraphicAttribute> = {\n ...DefaultAttribute,\n width: 300,\n height: 300,\n ellipsis: true,\n wordBreak: 'break-word' as RichTextWordBreak,\n verticalDirection: 'top' as RichTextVerticalDirection,\n textAlign: 'left' as RichTextGlobalAlignType,\n textBaseline: 'top' as RichTextGlobalBaselineType,\n layoutDirection: 'horizontal',\n textConfig: [],\n maxHeight: undefined,\n maxWidth: undefined,\n singleLine: false\n};\n\nexport const DefaultImageAttribute: Required<IImageGraphicAttribute> = {\n repeatX: 'stretch',\n repeatY: 'stretch',\n image: '',\n width: 0,\n height: 0,\n ...DefaultAttribute,\n fill: true\n};\n\nexport const DefaultRichTextIconAttribute: Required<IRichTextIconGraphicAttribute> = {\n ...DefaultImageAttribute,\n backgroundShowMode: 'never',\n backgroundWidth: 0,\n backgroundHeight: 0,\n textAlign: 'left',\n textBaseline: 'middle',\n direction: 'horizontal',\n margin: 0,\n id: '',\n\n width: 20,\n height: 20,\n backgroundFill: true,\n backgroundFillColor: 'rgba(101, 117, 168, 0.1)',\n backgroundFillOpacity: 1,\n backgroundStroke: false,\n backgroundStrokeColor: '#000',\n backgroundStrokeOpacity: 1,\n backgroundRadius: 4,\n opacity: 1\n};\n"]}
@@ -0,0 +1,18 @@
1
+ export declare const ARC_NUMBER_TYPE: number;
2
+ export declare const ARC3D_NUMBER_TYPE: number;
3
+ export declare const AREA_NUMBER_TYPE: number;
4
+ export declare const CIRCLE_NUMBER_TYPE: number;
5
+ export declare const GLYPH_NUMBER_TYPE: number;
6
+ export declare const GROUP_NUMBER_TYPE: number;
7
+ export declare const IMAGE_NUMBER_TYPE: number;
8
+ export declare const LINE_NUMBER_TYPE: number;
9
+ export declare const PATH_NUMBER_TYPE: number;
10
+ export declare const POLYGON_NUMBER_TYPE: number;
11
+ export declare const PYRAMID3D_NUMBER_TYPE: number;
12
+ export declare const RECT_NUMBER_TYPE: number;
13
+ export declare const RECT3D_NUMBER_TYPE: number;
14
+ export declare const RICHTEXT_NUMBER_TYPE: number;
15
+ export declare const SYMBOL_NUMBER_TYPE: number;
16
+ export declare const TEXT_NUMBER_TYPE: number;
17
+ export declare const GraphicService: unique symbol;
18
+ export declare const GraphicCreator: unique symbol;
@@ -0,0 +1,38 @@
1
+ import { genNumberType } from "./tools";
2
+
3
+ export const ARC_NUMBER_TYPE = genNumberType();
4
+
5
+ export const ARC3D_NUMBER_TYPE = genNumberType();
6
+
7
+ export const AREA_NUMBER_TYPE = genNumberType();
8
+
9
+ export const CIRCLE_NUMBER_TYPE = genNumberType();
10
+
11
+ export const GLYPH_NUMBER_TYPE = genNumberType();
12
+
13
+ export const GROUP_NUMBER_TYPE = genNumberType();
14
+
15
+ export const IMAGE_NUMBER_TYPE = genNumberType();
16
+
17
+ export const LINE_NUMBER_TYPE = genNumberType();
18
+
19
+ export const PATH_NUMBER_TYPE = genNumberType();
20
+
21
+ export const POLYGON_NUMBER_TYPE = genNumberType();
22
+
23
+ export const PYRAMID3D_NUMBER_TYPE = genNumberType();
24
+
25
+ export const RECT_NUMBER_TYPE = genNumberType();
26
+
27
+ export const RECT3D_NUMBER_TYPE = genNumberType();
28
+
29
+ export const RICHTEXT_NUMBER_TYPE = genNumberType();
30
+
31
+ export const SYMBOL_NUMBER_TYPE = genNumberType();
32
+
33
+ export const TEXT_NUMBER_TYPE = genNumberType();
34
+
35
+ export const GraphicService = Symbol.for("GraphicService");
36
+
37
+ export const GraphicCreator = Symbol.for("GraphicCreator");
38
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/graphic/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,EAAE,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,EAAE,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,EAAE,CAAC;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC","file":"constants.js","sourcesContent":["import { genNumberType } from './tools';\n\nexport const ARC_NUMBER_TYPE = genNumberType();\nexport const ARC3D_NUMBER_TYPE = genNumberType();\nexport const AREA_NUMBER_TYPE = genNumberType();\nexport const CIRCLE_NUMBER_TYPE = genNumberType();\nexport const GLYPH_NUMBER_TYPE = genNumberType();\nexport const GROUP_NUMBER_TYPE = genNumberType();\nexport const IMAGE_NUMBER_TYPE = genNumberType();\nexport const LINE_NUMBER_TYPE = genNumberType();\nexport const PATH_NUMBER_TYPE = genNumberType();\nexport const POLYGON_NUMBER_TYPE = genNumberType();\nexport const PYRAMID3D_NUMBER_TYPE = genNumberType();\nexport const RECT_NUMBER_TYPE = genNumberType();\nexport const RECT3D_NUMBER_TYPE = genNumberType();\nexport const RICHTEXT_NUMBER_TYPE = genNumberType();\nexport const SYMBOL_NUMBER_TYPE = genNumberType();\nexport const TEXT_NUMBER_TYPE = genNumberType();\n\nexport const GraphicService = Symbol.for('GraphicService');\nexport const GraphicCreator = Symbol.for('GraphicCreator');\n"]}
@@ -241,19 +241,18 @@ let DefaultGraphicService = class {
241
241
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._rectBoundsContribitions || (this._rectBoundsContribitions = this.rectBoundsContribitions.getContributions() || []),
242
242
  this._rectBoundsContribitions.length && this._rectBoundsContribitions.forEach((c => {
243
243
  c.updateBounds(attribute, rectTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
244
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic),
245
- aabbBounds;
244
+ })), this.transformAABBBounds(attribute, aabbBounds, rectTheme, graphic), aabbBounds;
246
245
  }
247
246
  updateGroupAABBBounds(attribute, groupTheme, aabbBounds, graphic) {
248
247
  const {width: width, height: height, path: path, clip: clip = groupTheme.clip} = attribute;
249
248
  path && path.length ? path.forEach((g => {
250
249
  aabbBounds.union(g.AABBBounds);
251
- })) : null != width && null != height && aabbBounds.set(0, 0, width, height);
250
+ })) : null != width && null != height && aabbBounds.set(0, 0, width, height), clip || graphic.forEachChildren((node => {
251
+ aabbBounds.union(node.AABBBounds);
252
+ }));
252
253
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
253
254
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
254
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), clip || (graphic.forEachChildren((node => {
255
- aabbBounds.union(node.AABBBounds);
256
- })), this.combindShadowAABBBounds(aabbBounds, graphic)), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
255
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, groupTheme, graphic),
257
256
  aabbBounds;
258
257
  }
259
258
  updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
@@ -300,8 +299,8 @@ let DefaultGraphicService = class {
300
299
  aabbBounds.translate(deltaX, deltaY);
301
300
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
302
301
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
303
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
304
- this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic), aabbBounds;
302
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, graphic),
303
+ aabbBounds;
305
304
  }
306
305
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
307
306
  if (!graphic) return aabbBounds;
@@ -309,8 +308,8 @@ let DefaultGraphicService = class {
309
308
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
310
309
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
311
310
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
312
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
313
- transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
311
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix),
312
+ aabbBounds;
314
313
  }
315
314
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
316
315
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
@@ -319,8 +318,7 @@ let DefaultGraphicService = class {
319
318
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._pathBoundsContribitions || (this._pathBoundsContribitions = this.pathBoundsContribitions.getContributions() || []),
320
319
  this._pathBoundsContribitions.length && this._pathBoundsContribitions.forEach((c => {
321
320
  c.updateBounds(attribute, pathTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
322
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic),
323
- aabbBounds;
321
+ })), this.transformAABBBounds(attribute, aabbBounds, pathTheme, graphic), aabbBounds;
324
322
  }
325
323
  updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic) {
326
324
  if (!graphic) return aabbBounds;
@@ -337,8 +335,8 @@ let DefaultGraphicService = class {
337
335
  }));
338
336
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
339
337
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
340
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
341
- this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
338
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
339
+ aabbBounds;
342
340
  }
343
341
  updateArc3dAABBBounds(attribute, arcTheme, aabbBounds, graphic) {
344
342
  if (!graphic) return aabbBounds;
@@ -348,15 +346,15 @@ let DefaultGraphicService = class {
348
346
  aabbBounds.setValue(-r, -r, r, r);
349
347
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
350
348
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
351
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
352
- this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
349
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
350
+ aabbBounds;
353
351
  }
354
352
  updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
355
353
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
356
354
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
357
355
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
358
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
359
- this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic), aabbBounds;
356
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, polygonTheme, graphic),
357
+ aabbBounds;
360
358
  }
361
359
  updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic) {
362
360
  const {points: points = polygonTheme.points} = attribute;
@@ -368,8 +366,8 @@ let DefaultGraphicService = class {
368
366
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
369
367
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
370
368
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
371
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
372
- this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic), aabbBounds;
369
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, lineTheme, graphic),
370
+ aabbBounds;
373
371
  }
374
372
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
375
373
  const {points: points = lineTheme.points} = attribute, b = aabbBounds;
@@ -389,8 +387,8 @@ let DefaultGraphicService = class {
389
387
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
390
388
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
391
389
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
392
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
393
- this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic), aabbBounds;
390
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, areaTheme, graphic),
391
+ aabbBounds;
394
392
  }
395
393
  updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic) {
396
394
  const {points: points = areaTheme.points} = attribute, b = aabbBounds;
@@ -415,8 +413,7 @@ let DefaultGraphicService = class {
415
413
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._circleBoundsContribitions || (this._circleBoundsContribitions = this.circleBoundsContribitions.getContributions() || []),
416
414
  this._circleBoundsContribitions.length && this._circleBoundsContribitions.forEach((c => {
417
415
  c.updateBounds(attribute, circleTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
418
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic),
419
- aabbBounds;
416
+ })), this.transformAABBBounds(attribute, aabbBounds, circleTheme, graphic), aabbBounds;
420
417
  }
421
418
  updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) {
422
419
  const {radius: radius = circleTheme.radius} = attribute;
@@ -434,8 +431,7 @@ let DefaultGraphicService = class {
434
431
  tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._arcBoundsContribitions || (this._arcBoundsContribitions = this.arcBoundsContribitions.getContributions() || []),
435
432
  this._arcBoundsContribitions.length && this._arcBoundsContribitions.forEach((c => {
436
433
  c.updateBounds(attribute, arcTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
437
- })), this.combindShadowAABBBounds(aabbBounds, graphic), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic),
438
- aabbBounds;
434
+ })), this.transformAABBBounds(attribute, aabbBounds, arcTheme, graphic), aabbBounds;
439
435
  }
440
436
  updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) {
441
437
  const {outerRadius: outerRadius = arcTheme.outerRadius} = attribute;
@@ -475,8 +471,8 @@ let DefaultGraphicService = class {
475
471
  }
476
472
  const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
477
473
  return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
478
- tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.combindShadowAABBBounds(aabbBounds, graphic),
479
- this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic), aabbBounds;
474
+ tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, graphic),
475
+ aabbBounds;
480
476
  }
481
477
  combindShadowAABBBounds(bounds, graphic) {
482
478
  if (graphic && graphic.shadowRoot) {
@@ -485,7 +481,7 @@ let DefaultGraphicService = class {
485
481
  }
486
482
  }
487
483
  transformAABBBounds(attribute, aabbBounds, theme, graphic) {
488
- const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = (null == theme.stroke ? !!attribute.strokeColor : theme.stroke), shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
484
+ const {scaleX: scaleX = theme.scaleX, scaleY: scaleY = theme.scaleY, stroke: stroke = theme.stroke, shadowBlur: shadowBlur = theme.shadowBlur, lineWidth: lineWidth = theme.lineWidth, lineJoin: lineJoin = theme.lineJoin, strokeBoundsBuffer: strokeBoundsBuffer = theme.strokeBoundsBuffer} = attribute, tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
489
485
  if (stroke) {
490
486
  const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
491
487
  boundStroke(tb1, scaledHalfLineWidth, "miter" === lineJoin, strokeBoundsBuffer),