@antv/g2 4.2.4 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3567) hide show
  1. package/LICENSE +3 -3
  2. package/README.en-US.md +9 -8
  3. package/README.md +17 -6
  4. package/dist/g2.min.js +10 -16
  5. package/esm/adjust/index.d.ts +1 -0
  6. package/esm/adjust/index.js +2 -0
  7. package/esm/adjust/index.js.map +1 -0
  8. package/esm/adjust/pack.d.ts +8 -0
  9. package/esm/adjust/pack.js +55 -0
  10. package/esm/adjust/pack.js.map +1 -0
  11. package/esm/animation/fadeIn.d.ts +7 -0
  12. package/esm/animation/fadeIn.js +23 -0
  13. package/esm/animation/fadeIn.js.map +1 -0
  14. package/esm/animation/fadeOut.d.ts +7 -0
  15. package/esm/animation/fadeOut.js +21 -0
  16. package/esm/animation/fadeOut.js.map +1 -0
  17. package/esm/animation/index.d.ts +7 -0
  18. package/esm/animation/index.js +8 -0
  19. package/esm/animation/index.js.map +1 -0
  20. package/esm/animation/morphing.d.ts +13 -0
  21. package/esm/animation/morphing.js +161 -0
  22. package/esm/animation/morphing.js.map +1 -0
  23. package/esm/animation/scaleInX.d.ts +7 -0
  24. package/esm/animation/scaleInX.js +46 -0
  25. package/esm/animation/scaleInX.js.map +1 -0
  26. package/esm/animation/scaleInY.d.ts +7 -0
  27. package/esm/animation/scaleInY.js +46 -0
  28. package/esm/animation/scaleInY.js.map +1 -0
  29. package/esm/animation/scaleOutX.d.ts +7 -0
  30. package/esm/animation/scaleOutX.js +46 -0
  31. package/esm/animation/scaleOutX.js.map +1 -0
  32. package/esm/animation/scaleOutY.d.ts +7 -0
  33. package/esm/animation/scaleOutY.js +46 -0
  34. package/esm/animation/scaleOutY.js.map +1 -0
  35. package/esm/animation/utils.d.ts +2 -0
  36. package/esm/animation/utils.js +17 -0
  37. package/esm/animation/utils.js.map +1 -0
  38. package/esm/api/chart.d.ts +30 -0
  39. package/esm/api/chart.js +102 -0
  40. package/esm/api/chart.js.map +1 -0
  41. package/esm/api/composition/circle.d.ts +21 -0
  42. package/esm/api/composition/circle.js +30 -0
  43. package/esm/api/composition/circle.js.map +1 -0
  44. package/esm/api/composition/flex.d.ts +17 -0
  45. package/esm/api/composition/flex.js +26 -0
  46. package/esm/api/composition/flex.js.map +1 -0
  47. package/esm/api/composition/index.d.ts +26 -0
  48. package/esm/api/composition/index.js +27 -0
  49. package/esm/api/composition/index.js.map +1 -0
  50. package/esm/api/composition/keyframe.d.ts +17 -0
  51. package/esm/api/composition/keyframe.js +26 -0
  52. package/esm/api/composition/keyframe.js.map +1 -0
  53. package/esm/api/composition/layer.d.ts +14 -0
  54. package/esm/api/composition/layer.js +23 -0
  55. package/esm/api/composition/layer.js.map +1 -0
  56. package/esm/api/composition/matrix.d.ts +21 -0
  57. package/esm/api/composition/matrix.js +30 -0
  58. package/esm/api/composition/matrix.js.map +1 -0
  59. package/esm/api/composition/rect.d.ts +23 -0
  60. package/esm/api/composition/rect.js +32 -0
  61. package/esm/api/composition/rect.js.map +1 -0
  62. package/esm/api/composition/view.d.ts +20 -0
  63. package/esm/api/composition/view.js +30 -0
  64. package/esm/api/composition/view.js.map +1 -0
  65. package/esm/api/index.d.ts +1 -0
  66. package/esm/api/index.js +2 -0
  67. package/esm/api/index.js.map +1 -0
  68. package/esm/api/mark/index.d.ts +41 -0
  69. package/esm/api/mark/index.js +22 -0
  70. package/esm/api/mark/index.js.map +1 -0
  71. package/esm/api/mark/mark.d.ts +114 -0
  72. package/esm/api/mark/mark.js +190 -0
  73. package/esm/api/mark/mark.js.map +1 -0
  74. package/esm/api/mark/types.d.ts +21 -0
  75. package/esm/{util → api/mark}/types.js +0 -0
  76. package/esm/api/mark/types.js.map +1 -0
  77. package/esm/api/node.d.ts +31 -0
  78. package/esm/api/node.js +55 -0
  79. package/esm/api/node.js.map +1 -0
  80. package/esm/api/props.d.ts +12 -0
  81. package/esm/api/props.js +75 -0
  82. package/esm/api/props.js.map +1 -0
  83. package/esm/api/types.d.ts +10 -0
  84. package/esm/api/types.js +2 -0
  85. package/esm/api/types.js.map +1 -0
  86. package/esm/component/axis.d.ts +13 -0
  87. package/esm/component/axis.js +294 -0
  88. package/esm/component/axis.js.map +1 -0
  89. package/esm/component/axisX.d.ts +7 -0
  90. package/esm/component/axisX.js +9 -0
  91. package/esm/component/axisX.js.map +1 -0
  92. package/esm/component/axisY.d.ts +7 -0
  93. package/esm/component/axisY.js +9 -0
  94. package/esm/component/axisY.js.map +1 -0
  95. package/esm/component/index.d.ts +5 -0
  96. package/esm/component/index.js +6 -0
  97. package/esm/component/index.js.map +1 -0
  98. package/esm/component/legendCategory.d.ts +10 -0
  99. package/esm/component/legendCategory.js +84 -0
  100. package/esm/component/legendCategory.js.map +1 -0
  101. package/esm/component/legendContinuous.d.ts +9 -0
  102. package/esm/component/legendContinuous.js +38 -0
  103. package/esm/component/legendContinuous.js.map +1 -0
  104. package/esm/component/title.d.ts +6 -0
  105. package/esm/component/title.js +54 -0
  106. package/esm/component/title.js.map +1 -0
  107. package/esm/component/utils.d.ts +8 -0
  108. package/esm/component/utils.js +27 -0
  109. package/esm/component/utils.js.map +1 -0
  110. package/esm/composition/circle.d.ts +7 -0
  111. package/esm/composition/circle.js +85 -0
  112. package/esm/composition/circle.js.map +1 -0
  113. package/esm/composition/flex.d.ts +7 -0
  114. package/esm/composition/flex.js +38 -0
  115. package/esm/composition/flex.js.map +1 -0
  116. package/esm/composition/index.d.ts +8 -0
  117. package/esm/composition/index.js +9 -0
  118. package/esm/composition/index.js.map +1 -0
  119. package/esm/composition/keyframe.d.ts +7 -0
  120. package/esm/composition/keyframe.js +75 -0
  121. package/esm/composition/keyframe.js.map +1 -0
  122. package/esm/composition/layer.d.ts +7 -0
  123. package/esm/composition/layer.js +32 -0
  124. package/esm/composition/layer.js.map +1 -0
  125. package/esm/composition/mark.d.ts +4 -0
  126. package/esm/composition/mark.js +40 -0
  127. package/esm/composition/mark.js.map +1 -0
  128. package/esm/composition/matrix.d.ts +8 -0
  129. package/esm/composition/matrix.js +151 -0
  130. package/esm/composition/matrix.js.map +1 -0
  131. package/esm/composition/rect.d.ts +30 -0
  132. package/esm/composition/rect.js +287 -0
  133. package/esm/composition/rect.js.map +1 -0
  134. package/esm/composition/utils.d.ts +10 -0
  135. package/esm/composition/utils.js +14 -0
  136. package/esm/composition/utils.js.map +1 -0
  137. package/esm/composition/view.d.ts +9 -0
  138. package/esm/composition/view.js +32 -0
  139. package/esm/composition/view.js.map +1 -0
  140. package/esm/coordinate/cartesian.d.ts +7 -0
  141. package/esm/coordinate/cartesian.js +6 -0
  142. package/esm/coordinate/cartesian.js.map +1 -0
  143. package/esm/coordinate/fisheye.d.ts +7 -0
  144. package/esm/coordinate/fisheye.js +6 -0
  145. package/esm/coordinate/fisheye.js.map +1 -0
  146. package/esm/coordinate/index.d.ts +5 -0
  147. package/esm/coordinate/index.js +6 -0
  148. package/esm/coordinate/index.js.map +1 -0
  149. package/esm/coordinate/parallel.d.ts +7 -0
  150. package/esm/coordinate/parallel.js +6 -0
  151. package/esm/coordinate/parallel.js.map +1 -0
  152. package/esm/coordinate/polar.d.ts +8 -0
  153. package/esm/coordinate/polar.js +12 -0
  154. package/esm/coordinate/polar.js.map +1 -0
  155. package/esm/coordinate/transpose.d.ts +7 -0
  156. package/esm/coordinate/transpose.js +11 -0
  157. package/esm/coordinate/transpose.js.map +1 -0
  158. package/esm/encode/column.d.ts +7 -0
  159. package/esm/encode/column.js +8 -0
  160. package/esm/encode/column.js.map +1 -0
  161. package/esm/encode/constant.d.ts +7 -0
  162. package/esm/encode/constant.js +8 -0
  163. package/esm/encode/constant.js.map +1 -0
  164. package/esm/encode/field.d.ts +7 -0
  165. package/esm/encode/field.js +8 -0
  166. package/esm/encode/field.js.map +1 -0
  167. package/esm/encode/index.d.ts +4 -0
  168. package/esm/encode/index.js +5 -0
  169. package/esm/encode/index.js.map +1 -0
  170. package/esm/encode/transform.d.ts +9 -0
  171. package/esm/encode/transform.js +10 -0
  172. package/esm/encode/transform.js.map +1 -0
  173. package/esm/index.d.ts +4 -107
  174. package/esm/index.js +3 -588
  175. package/esm/index.js.map +1 -1
  176. package/esm/interaction/action/index.d.ts +23 -2
  177. package/esm/interaction/action/index.js +23 -2
  178. package/esm/interaction/action/index.js.map +1 -1
  179. package/esm/interaction/action/service/elementSelection.d.ts +4 -0
  180. package/esm/interaction/action/service/elementSelection.js +90 -0
  181. package/esm/interaction/action/service/elementSelection.js.map +1 -0
  182. package/esm/interaction/action/service/fisheyeFocus.d.ts +4 -0
  183. package/esm/interaction/action/service/fisheyeFocus.js +47 -0
  184. package/esm/interaction/action/service/fisheyeFocus.js.map +1 -0
  185. package/esm/interaction/action/service/legendItemSelection.d.ts +4 -0
  186. package/esm/interaction/action/service/legendItemSelection.js +17 -0
  187. package/esm/interaction/action/service/legendItemSelection.js.map +1 -0
  188. package/esm/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  189. package/esm/interaction/action/service/recordCurrentPoint.js +16 -0
  190. package/esm/interaction/action/service/recordCurrentPoint.js.map +1 -0
  191. package/esm/interaction/action/service/recordPoint.d.ts +4 -0
  192. package/esm/interaction/action/service/recordPoint.js +28 -0
  193. package/esm/interaction/action/service/recordPoint.js.map +1 -0
  194. package/esm/interaction/action/service/recordRegion.d.ts +4 -0
  195. package/esm/interaction/action/service/recordRegion.js +30 -0
  196. package/esm/interaction/action/service/recordRegion.js.map +1 -0
  197. package/esm/interaction/action/service/recordState.d.ts +4 -0
  198. package/esm/interaction/action/service/recordState.js +10 -0
  199. package/esm/interaction/action/service/recordState.js.map +1 -0
  200. package/esm/interaction/action/service/recordTip.d.ts +8 -0
  201. package/esm/interaction/action/service/recordTip.js +15 -0
  202. package/esm/interaction/action/service/recordTip.js.map +1 -0
  203. package/esm/interaction/action/service/surfacePointSelection.d.ts +4 -0
  204. package/esm/interaction/action/service/surfacePointSelection.js +19 -0
  205. package/esm/interaction/action/service/surfacePointSelection.js.map +1 -0
  206. package/esm/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  207. package/esm/interaction/action/service/triggerInfoSelection.js +18 -0
  208. package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -0
  209. package/esm/interaction/action/transformer/activeElement.d.ts +4 -0
  210. package/esm/interaction/action/transformer/activeElement.js +23 -0
  211. package/esm/interaction/action/transformer/activeElement.js.map +1 -0
  212. package/esm/interaction/action/transformer/activeRegion.d.ts +4 -0
  213. package/esm/interaction/action/transformer/activeRegion.js +52 -0
  214. package/esm/interaction/action/transformer/activeRegion.js.map +1 -0
  215. package/esm/interaction/action/transformer/button.d.ts +4 -0
  216. package/esm/interaction/action/transformer/button.js +76 -0
  217. package/esm/interaction/action/transformer/button.js.map +1 -0
  218. package/esm/interaction/action/transformer/cursor.d.ts +4 -0
  219. package/esm/interaction/action/transformer/cursor.js +15 -0
  220. package/esm/interaction/action/transformer/cursor.js.map +1 -0
  221. package/esm/interaction/action/transformer/filter.d.ts +7 -0
  222. package/esm/interaction/action/transformer/filter.js +39 -0
  223. package/esm/interaction/action/transformer/filter.js.map +1 -0
  224. package/esm/interaction/action/transformer/filterElement.d.ts +4 -0
  225. package/esm/interaction/action/transformer/filterElement.js +41 -0
  226. package/esm/interaction/action/transformer/filterElement.js.map +1 -0
  227. package/esm/interaction/action/transformer/highlightElement.d.ts +4 -0
  228. package/esm/interaction/action/transformer/highlightElement.js +48 -0
  229. package/esm/interaction/action/transformer/highlightElement.js.map +1 -0
  230. package/esm/interaction/action/transformer/mask.d.ts +7 -0
  231. package/esm/interaction/action/transformer/mask.js +106 -0
  232. package/esm/interaction/action/transformer/mask.js.map +1 -0
  233. package/esm/interaction/action/transformer/move.d.ts +7 -0
  234. package/esm/interaction/action/transformer/move.js +70 -0
  235. package/esm/interaction/action/transformer/move.js.map +1 -0
  236. package/esm/interaction/action/transformer/plot.d.ts +4 -0
  237. package/esm/interaction/action/transformer/plot.js +10 -0
  238. package/esm/interaction/action/transformer/plot.js.map +1 -0
  239. package/esm/interaction/action/transformer/poptip.d.ts +4 -0
  240. package/esm/interaction/action/transformer/poptip.js +39 -0
  241. package/esm/interaction/action/transformer/poptip.js.map +1 -0
  242. package/esm/interaction/action/transformer/setItemState.d.ts +4 -0
  243. package/esm/interaction/action/transformer/setItemState.js +31 -0
  244. package/esm/interaction/action/transformer/setItemState.js.map +1 -0
  245. package/esm/interaction/action/transformer/tooltip.d.ts +9 -0
  246. package/esm/interaction/action/transformer/tooltip.js +289 -0
  247. package/esm/interaction/action/transformer/tooltip.js.map +1 -0
  248. package/esm/interaction/builtin/activeRegion.d.ts +19 -0
  249. package/esm/interaction/builtin/activeRegion.js +18 -0
  250. package/esm/interaction/builtin/activeRegion.js.map +1 -0
  251. package/esm/interaction/builtin/brush.d.ts +132 -0
  252. package/esm/interaction/builtin/brush.js +93 -0
  253. package/esm/interaction/builtin/brush.js.map +1 -0
  254. package/esm/interaction/builtin/brushHighlight.d.ts +98 -0
  255. package/esm/interaction/builtin/brushHighlight.js +111 -0
  256. package/esm/interaction/builtin/brushHighlight.js.map +1 -0
  257. package/esm/interaction/builtin/brushVisible.d.ts +88 -0
  258. package/esm/interaction/builtin/brushVisible.js +62 -0
  259. package/esm/interaction/builtin/brushVisible.js.map +1 -0
  260. package/esm/interaction/builtin/elementActive.d.ts +22 -0
  261. package/esm/interaction/builtin/elementActive.js +25 -0
  262. package/esm/interaction/builtin/elementActive.js.map +1 -0
  263. package/esm/interaction/builtin/elementHighlight.d.ts +19 -0
  264. package/esm/interaction/builtin/elementHighlight.js +24 -0
  265. package/esm/interaction/builtin/elementHighlight.js.map +1 -0
  266. package/esm/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  267. package/esm/interaction/builtin/elementHighlightByColor.js +24 -0
  268. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -0
  269. package/esm/interaction/builtin/elementHighlightByX.d.ts +23 -0
  270. package/esm/interaction/builtin/elementHighlightByX.js +24 -0
  271. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -0
  272. package/esm/interaction/builtin/elementListHighlight.d.ts +43 -0
  273. package/esm/interaction/builtin/elementListHighlight.js +28 -0
  274. package/esm/interaction/builtin/elementListHighlight.js.map +1 -0
  275. package/esm/interaction/builtin/elementSelected.d.ts +20 -0
  276. package/esm/interaction/builtin/elementSelected.js +18 -0
  277. package/esm/interaction/builtin/elementSelected.js.map +1 -0
  278. package/esm/interaction/builtin/ellipsisText.d.ts +19 -0
  279. package/esm/interaction/builtin/ellipsisText.js +17 -0
  280. package/esm/interaction/builtin/ellipsisText.js.map +1 -0
  281. package/esm/interaction/builtin/fisheye.d.ts +33 -0
  282. package/esm/interaction/builtin/fisheye.js +20 -0
  283. package/esm/interaction/builtin/fisheye.js.map +1 -0
  284. package/esm/interaction/builtin/legendActive.d.ts +43 -0
  285. package/esm/interaction/builtin/legendActive.js +30 -0
  286. package/esm/interaction/builtin/legendActive.js.map +1 -0
  287. package/esm/interaction/builtin/legendHighlight.d.ts +43 -0
  288. package/esm/interaction/builtin/legendHighlight.js +30 -0
  289. package/esm/interaction/builtin/legendHighlight.js.map +1 -0
  290. package/esm/interaction/builtin/tooltip.d.ts +44 -0
  291. package/esm/interaction/builtin/tooltip.js +28 -0
  292. package/esm/interaction/builtin/tooltip.js.map +1 -0
  293. package/esm/interaction/create.d.ts +3 -0
  294. package/esm/interaction/create.js +96 -0
  295. package/esm/interaction/create.js.map +1 -0
  296. package/esm/interaction/index.d.ts +18 -25
  297. package/esm/interaction/index.js +18 -42
  298. package/esm/interaction/index.js.map +1 -1
  299. package/esm/interaction/interactor/index.d.ts +2 -0
  300. package/esm/interaction/interactor/index.js +3 -0
  301. package/esm/interaction/interactor/index.js.map +1 -0
  302. package/esm/interaction/interactor/mousePosition.d.ts +3 -0
  303. package/esm/interaction/interactor/mousePosition.js +10 -0
  304. package/esm/interaction/interactor/mousePosition.js.map +1 -0
  305. package/esm/interaction/interactor/touchPosition.d.ts +3 -0
  306. package/esm/interaction/interactor/touchPosition.js +10 -0
  307. package/esm/interaction/interactor/touchPosition.js.map +1 -0
  308. package/esm/interaction/stdlib.d.ts +2 -0
  309. package/esm/interaction/stdlib.js +32 -0
  310. package/esm/interaction/stdlib.js.map +1 -0
  311. package/esm/interaction/types.d.ts +57 -0
  312. package/esm/interaction/types.js +2 -0
  313. package/esm/interaction/types.js.map +1 -0
  314. package/esm/interaction/utils.d.ts +3 -0
  315. package/esm/interaction/utils.js +40 -0
  316. package/esm/interaction/utils.js.map +1 -0
  317. package/esm/mark/annotation/connector.d.ts +4 -0
  318. package/esm/mark/annotation/connector.js +18 -0
  319. package/esm/mark/annotation/connector.js.map +1 -0
  320. package/esm/mark/annotation/index.d.ts +7 -0
  321. package/esm/mark/annotation/index.js +8 -0
  322. package/esm/mark/annotation/index.js.map +1 -0
  323. package/esm/mark/annotation/lineX.d.ts +4 -0
  324. package/esm/mark/annotation/lineX.js +21 -0
  325. package/esm/mark/annotation/lineX.js.map +1 -0
  326. package/esm/mark/annotation/lineY.d.ts +4 -0
  327. package/esm/mark/annotation/lineY.js +21 -0
  328. package/esm/mark/annotation/lineY.js.map +1 -0
  329. package/esm/mark/annotation/range.d.ts +8 -0
  330. package/esm/mark/annotation/range.js +44 -0
  331. package/esm/mark/annotation/range.js.map +1 -0
  332. package/esm/mark/annotation/rangeX.d.ts +4 -0
  333. package/esm/mark/annotation/rangeX.js +14 -0
  334. package/esm/mark/annotation/rangeX.js.map +1 -0
  335. package/esm/mark/annotation/rangeY.d.ts +4 -0
  336. package/esm/mark/annotation/rangeY.js +14 -0
  337. package/esm/mark/annotation/rangeY.js.map +1 -0
  338. package/esm/mark/annotation/text.d.ts +4 -0
  339. package/esm/mark/annotation/text.js +21 -0
  340. package/esm/mark/annotation/text.js.map +1 -0
  341. package/esm/mark/geometry/area.d.ts +4 -0
  342. package/esm/mark/geometry/area.js +70 -0
  343. package/esm/mark/geometry/area.js.map +1 -0
  344. package/esm/mark/geometry/edge.d.ts +13 -0
  345. package/esm/mark/geometry/edge.js +31 -0
  346. package/esm/mark/geometry/edge.js.map +1 -0
  347. package/esm/mark/geometry/grid.d.ts +9 -0
  348. package/esm/mark/geometry/grid.js +46 -0
  349. package/esm/mark/geometry/grid.js.map +1 -0
  350. package/esm/mark/geometry/image.d.ts +4 -0
  351. package/esm/mark/geometry/image.js +34 -0
  352. package/esm/mark/geometry/image.js.map +1 -0
  353. package/esm/mark/geometry/index.d.ts +13 -0
  354. package/esm/mark/geometry/index.js +14 -0
  355. package/esm/mark/geometry/index.js.map +1 -0
  356. package/esm/mark/geometry/interval.d.ts +12 -0
  357. package/esm/mark/geometry/interval.js +59 -0
  358. package/esm/mark/geometry/interval.js.map +1 -0
  359. package/esm/mark/geometry/line.d.ts +7 -0
  360. package/esm/mark/geometry/line.js +76 -0
  361. package/esm/mark/geometry/line.js.map +1 -0
  362. package/esm/mark/geometry/link.d.ts +7 -0
  363. package/esm/mark/geometry/link.js +33 -0
  364. package/esm/mark/geometry/link.js.map +1 -0
  365. package/esm/mark/geometry/node.d.ts +8 -0
  366. package/esm/mark/geometry/node.js +27 -0
  367. package/esm/mark/geometry/node.js.map +1 -0
  368. package/esm/mark/geometry/point.d.ts +10 -0
  369. package/esm/mark/geometry/point.js +71 -0
  370. package/esm/mark/geometry/point.js.map +1 -0
  371. package/esm/mark/geometry/polygon.d.ts +7 -0
  372. package/esm/mark/geometry/polygon.js +43 -0
  373. package/esm/mark/geometry/polygon.js.map +1 -0
  374. package/esm/mark/geometry/schema.d.ts +34 -0
  375. package/esm/mark/geometry/schema.js +90 -0
  376. package/esm/mark/geometry/schema.js.map +1 -0
  377. package/esm/mark/geometry/text.d.ts +4 -0
  378. package/esm/mark/geometry/text.js +35 -0
  379. package/esm/mark/geometry/text.js.map +1 -0
  380. package/esm/mark/geometry/vector.d.ts +8 -0
  381. package/esm/mark/geometry/vector.js +43 -0
  382. package/esm/mark/geometry/vector.js.map +1 -0
  383. package/esm/mark/utils.d.ts +10 -0
  384. package/esm/mark/utils.js +30 -0
  385. package/esm/mark/utils.js.map +1 -0
  386. package/esm/palette/category10.d.ts +7 -0
  387. package/esm/palette/category10.js +19 -0
  388. package/esm/palette/category10.js.map +1 -0
  389. package/esm/palette/category20.d.ts +7 -0
  390. package/esm/palette/category20.js +29 -0
  391. package/esm/palette/category20.js.map +1 -0
  392. package/esm/palette/index.d.ts +2 -0
  393. package/esm/palette/index.js +3 -0
  394. package/esm/palette/index.js.map +1 -0
  395. package/esm/renderer/canvas.d.ts +10 -0
  396. package/esm/renderer/canvas.js +18 -0
  397. package/esm/renderer/canvas.js.map +1 -0
  398. package/esm/renderer/index.d.ts +1 -0
  399. package/esm/renderer/index.js +2 -0
  400. package/esm/renderer/index.js.map +1 -0
  401. package/esm/runtime/component.d.ts +5 -0
  402. package/esm/runtime/component.js +132 -0
  403. package/esm/runtime/component.js.map +1 -0
  404. package/esm/runtime/coordinate.d.ts +7 -0
  405. package/esm/runtime/coordinate.js +34 -0
  406. package/esm/runtime/coordinate.js.map +1 -0
  407. package/esm/runtime/index.d.ts +7 -0
  408. package/esm/runtime/index.js +8 -0
  409. package/esm/runtime/index.js.map +1 -0
  410. package/esm/runtime/layout.d.ts +5 -0
  411. package/esm/runtime/layout.js +115 -0
  412. package/esm/runtime/layout.js.map +1 -0
  413. package/esm/runtime/library.d.ts +3 -0
  414. package/esm/runtime/library.js +26 -0
  415. package/esm/runtime/library.js.map +1 -0
  416. package/esm/runtime/mark.d.ts +6 -0
  417. package/esm/runtime/mark.js +183 -0
  418. package/esm/runtime/mark.js.map +1 -0
  419. package/esm/runtime/plot.d.ts +3 -0
  420. package/esm/runtime/plot.js +554 -0
  421. package/esm/runtime/plot.js.map +1 -0
  422. package/esm/runtime/render.d.ts +2 -0
  423. package/esm/runtime/render.js +78 -0
  424. package/esm/runtime/render.js.map +1 -0
  425. package/esm/runtime/scale.d.ts +8 -0
  426. package/esm/runtime/scale.js +326 -0
  427. package/esm/runtime/scale.js.map +1 -0
  428. package/esm/runtime/types/common.d.ts +125 -0
  429. package/esm/runtime/types/common.js +2 -0
  430. package/esm/runtime/types/common.js.map +1 -0
  431. package/esm/runtime/types/component.d.ts +73 -0
  432. package/esm/runtime/types/component.js +2 -0
  433. package/esm/runtime/types/component.js.map +1 -0
  434. package/esm/runtime/types/encode.d.ts +21 -0
  435. package/esm/runtime/types/encode.js +2 -0
  436. package/esm/runtime/types/encode.js.map +1 -0
  437. package/esm/runtime/types/mark.d.ts +20 -0
  438. package/esm/runtime/types/mark.js +2 -0
  439. package/esm/runtime/types/mark.js.map +1 -0
  440. package/esm/runtime/types/options.d.ts +106 -0
  441. package/esm/runtime/types/options.js +2 -0
  442. package/esm/runtime/types/options.js.map +1 -0
  443. package/esm/runtime/types/transform.d.ts +23 -0
  444. package/esm/runtime/types/transform.js +2 -0
  445. package/esm/runtime/types/transform.js.map +1 -0
  446. package/esm/scale/band.d.ts +4 -0
  447. package/esm/scale/band.js +6 -0
  448. package/esm/scale/band.js.map +1 -0
  449. package/esm/scale/identity.d.ts +4 -0
  450. package/esm/scale/identity.js +6 -0
  451. package/esm/scale/identity.js.map +1 -0
  452. package/esm/scale/index.d.ts +11 -0
  453. package/esm/scale/index.js +12 -0
  454. package/esm/scale/index.js.map +1 -0
  455. package/esm/scale/linear.d.ts +4 -0
  456. package/esm/scale/linear.js +6 -0
  457. package/esm/scale/linear.js.map +1 -0
  458. package/esm/scale/log.d.ts +4 -0
  459. package/esm/scale/log.js +6 -0
  460. package/esm/scale/log.js.map +1 -0
  461. package/esm/scale/ordinal.d.ts +4 -0
  462. package/esm/scale/ordinal.js +6 -0
  463. package/esm/scale/ordinal.js.map +1 -0
  464. package/esm/scale/point.d.ts +4 -0
  465. package/esm/scale/point.js +6 -0
  466. package/esm/scale/point.js.map +1 -0
  467. package/esm/scale/pow.d.ts +4 -0
  468. package/esm/scale/pow.js +6 -0
  469. package/esm/scale/pow.js.map +1 -0
  470. package/esm/scale/quantile.d.ts +4 -0
  471. package/esm/scale/quantile.js +6 -0
  472. package/esm/scale/quantile.js.map +1 -0
  473. package/esm/scale/quantize.d.ts +4 -0
  474. package/esm/scale/quantize.js +6 -0
  475. package/esm/scale/quantize.js.map +1 -0
  476. package/esm/scale/threshold.d.ts +4 -0
  477. package/esm/scale/threshold.js +6 -0
  478. package/esm/scale/threshold.js.map +1 -0
  479. package/esm/scale/time.d.ts +4 -0
  480. package/esm/scale/time.js +6 -0
  481. package/esm/scale/time.js.map +1 -0
  482. package/esm/shape/annotation/badge.d.ts +14 -0
  483. package/esm/shape/annotation/badge.js +93 -0
  484. package/esm/shape/annotation/badge.js.map +1 -0
  485. package/esm/shape/annotation/connector.d.ts +15 -0
  486. package/esm/shape/annotation/connector.js +101 -0
  487. package/esm/shape/annotation/connector.js.map +1 -0
  488. package/esm/shape/annotation/line.d.ts +3 -0
  489. package/esm/shape/annotation/line.js +56 -0
  490. package/esm/shape/annotation/line.js.map +1 -0
  491. package/esm/shape/annotation/text.d.ts +20 -0
  492. package/esm/shape/annotation/text.js +162 -0
  493. package/esm/shape/annotation/text.js.map +1 -0
  494. package/esm/shape/area/area.d.ts +3 -0
  495. package/esm/shape/area/area.js +11 -0
  496. package/esm/shape/area/area.js.map +1 -0
  497. package/esm/shape/area/curveArea.d.ts +8 -0
  498. package/esm/shape/area/curveArea.js +60 -0
  499. package/esm/shape/area/curveArea.js.map +1 -0
  500. package/esm/shape/area/smoothArea.d.ts +5 -0
  501. package/esm/shape/area/smoothArea.js +23 -0
  502. package/esm/shape/area/smoothArea.js.map +1 -0
  503. package/esm/shape/edge/arc.d.ts +8 -0
  504. package/esm/shape/edge/arc.js +51 -0
  505. package/esm/shape/edge/arc.js.map +1 -0
  506. package/esm/shape/edge/edge.d.ts +6 -0
  507. package/esm/shape/edge/edge.js +11 -0
  508. package/esm/shape/edge/edge.js.map +1 -0
  509. package/esm/shape/edge/ribbon.d.ts +15 -0
  510. package/esm/shape/edge/ribbon.js +69 -0
  511. package/esm/shape/edge/ribbon.js.map +1 -0
  512. package/esm/shape/edge/smoothEdge.d.ts +6 -0
  513. package/esm/shape/edge/smoothEdge.js +39 -0
  514. package/esm/shape/edge/smoothEdge.js.map +1 -0
  515. package/esm/shape/edge/vhv.d.ts +12 -0
  516. package/esm/shape/edge/vhv.js +69 -0
  517. package/esm/shape/edge/vhv.js.map +1 -0
  518. package/esm/shape/image/image.d.ts +3 -0
  519. package/esm/shape/image/image.js +38 -0
  520. package/esm/shape/image/image.js.map +1 -0
  521. package/esm/shape/index.d.ts +48 -0
  522. package/esm/shape/index.js +50 -0
  523. package/esm/shape/index.js.map +1 -0
  524. package/esm/shape/interval/colorRect.d.ts +14 -0
  525. package/esm/shape/interval/colorRect.js +80 -0
  526. package/esm/shape/interval/colorRect.js.map +1 -0
  527. package/esm/shape/interval/funnel.d.ts +10 -0
  528. package/esm/shape/interval/funnel.js +43 -0
  529. package/esm/shape/interval/funnel.js.map +1 -0
  530. package/esm/shape/interval/hollowRect.d.ts +6 -0
  531. package/esm/shape/interval/hollowRect.js +9 -0
  532. package/esm/shape/interval/hollowRect.js.map +1 -0
  533. package/esm/shape/interval/pyramid.d.ts +6 -0
  534. package/esm/shape/interval/pyramid.js +38 -0
  535. package/esm/shape/interval/pyramid.js.map +1 -0
  536. package/esm/shape/interval/rect.d.ts +7 -0
  537. package/esm/shape/interval/rect.js +10 -0
  538. package/esm/shape/interval/rect.js.map +1 -0
  539. package/esm/shape/label/label.d.ts +7 -0
  540. package/esm/shape/label/label.js +29 -0
  541. package/esm/shape/label/label.js.map +1 -0
  542. package/esm/shape/line/curveLine.d.ts +8 -0
  543. package/esm/shape/line/curveLine.js +41 -0
  544. package/esm/shape/line/curveLine.js.map +1 -0
  545. package/esm/shape/line/hv.d.ts +3 -0
  546. package/esm/shape/line/hv.js +7 -0
  547. package/esm/shape/line/hv.js.map +1 -0
  548. package/esm/shape/line/hvh.d.ts +3 -0
  549. package/esm/shape/line/hvh.js +7 -0
  550. package/esm/shape/line/hvh.js.map +1 -0
  551. package/esm/shape/line/line.d.ts +3 -0
  552. package/esm/shape/line/line.js +7 -0
  553. package/esm/shape/line/line.js.map +1 -0
  554. package/esm/shape/line/smooth.d.ts +5 -0
  555. package/esm/shape/line/smooth.js +19 -0
  556. package/esm/shape/line/smooth.js.map +1 -0
  557. package/esm/shape/line/vh.d.ts +3 -0
  558. package/esm/shape/line/vh.js +7 -0
  559. package/esm/shape/line/vh.js.map +1 -0
  560. package/esm/shape/link/link.d.ts +13 -0
  561. package/esm/shape/link/link.js +49 -0
  562. package/esm/shape/link/link.js.map +1 -0
  563. package/esm/shape/node/point.d.ts +6 -0
  564. package/esm/shape/node/point.js +27 -0
  565. package/esm/shape/node/point.js.map +1 -0
  566. package/esm/shape/node/polygon.d.ts +3 -0
  567. package/esm/shape/node/polygon.js +8 -0
  568. package/esm/shape/node/polygon.js.map +1 -0
  569. package/esm/shape/point/bowtie.d.ts +6 -0
  570. package/esm/shape/point/bowtie.js +9 -0
  571. package/esm/shape/point/bowtie.js.map +1 -0
  572. package/esm/shape/point/colorPoint.d.ts +11 -0
  573. package/esm/shape/point/colorPoint.js +59 -0
  574. package/esm/shape/point/colorPoint.js.map +1 -0
  575. package/esm/shape/point/cross.d.ts +6 -0
  576. package/esm/shape/point/cross.js +9 -0
  577. package/esm/shape/point/cross.js.map +1 -0
  578. package/esm/shape/point/diamond.d.ts +6 -0
  579. package/esm/shape/point/diamond.js +9 -0
  580. package/esm/shape/point/diamond.js.map +1 -0
  581. package/esm/shape/point/hexagon.d.ts +6 -0
  582. package/esm/shape/point/hexagon.js +9 -0
  583. package/esm/shape/point/hexagon.js.map +1 -0
  584. package/esm/shape/point/hollowBowtie.d.ts +6 -0
  585. package/esm/shape/point/hollowBowtie.js +9 -0
  586. package/esm/shape/point/hollowBowtie.js.map +1 -0
  587. package/esm/shape/point/hollowDiamond.d.ts +6 -0
  588. package/esm/shape/point/hollowDiamond.js +9 -0
  589. package/esm/shape/point/hollowDiamond.js.map +1 -0
  590. package/esm/shape/point/hollowHexagon.d.ts +6 -0
  591. package/esm/shape/point/hollowHexagon.js +9 -0
  592. package/esm/shape/point/hollowHexagon.js.map +1 -0
  593. package/esm/shape/point/hollowPoint.d.ts +6 -0
  594. package/esm/shape/point/hollowPoint.js +9 -0
  595. package/esm/shape/point/hollowPoint.js.map +1 -0
  596. package/esm/shape/point/hollowSquare.d.ts +6 -0
  597. package/esm/shape/point/hollowSquare.js +9 -0
  598. package/esm/shape/point/hollowSquare.js.map +1 -0
  599. package/esm/shape/point/hollowTriangle.d.ts +6 -0
  600. package/esm/shape/point/hollowTriangle.js +9 -0
  601. package/esm/shape/point/hollowTriangle.js.map +1 -0
  602. package/esm/shape/point/hollowTriangleDown.d.ts +6 -0
  603. package/esm/shape/point/hollowTriangleDown.js +9 -0
  604. package/esm/shape/point/hollowTriangleDown.js.map +1 -0
  605. package/esm/shape/point/hyphen.d.ts +6 -0
  606. package/esm/shape/point/hyphen.js +9 -0
  607. package/esm/shape/point/hyphen.js.map +1 -0
  608. package/esm/shape/point/line.d.ts +6 -0
  609. package/esm/shape/point/line.js +9 -0
  610. package/esm/shape/point/line.js.map +1 -0
  611. package/esm/shape/point/plus.d.ts +6 -0
  612. package/esm/shape/point/plus.js +9 -0
  613. package/esm/shape/point/plus.js.map +1 -0
  614. package/esm/shape/point/point.d.ts +6 -0
  615. package/esm/shape/point/point.js +9 -0
  616. package/esm/shape/point/point.js.map +1 -0
  617. package/esm/shape/point/square.d.ts +6 -0
  618. package/esm/shape/point/square.js +9 -0
  619. package/esm/shape/point/square.js.map +1 -0
  620. package/esm/shape/point/symbol.d.ts +49 -0
  621. package/esm/shape/point/symbol.js +142 -0
  622. package/esm/shape/point/symbol.js.map +1 -0
  623. package/esm/shape/point/tick.d.ts +6 -0
  624. package/esm/shape/point/tick.js +9 -0
  625. package/esm/shape/point/tick.js.map +1 -0
  626. package/esm/shape/point/triangle.d.ts +6 -0
  627. package/esm/shape/point/triangle.js +9 -0
  628. package/esm/shape/point/triangle.js.map +1 -0
  629. package/esm/shape/point/triangleDown.d.ts +6 -0
  630. package/esm/shape/point/triangleDown.js +9 -0
  631. package/esm/shape/point/triangleDown.js.map +1 -0
  632. package/esm/shape/polygon/polygon.d.ts +3 -0
  633. package/esm/shape/polygon/polygon.js +67 -0
  634. package/esm/shape/polygon/polygon.js.map +1 -0
  635. package/esm/shape/schema/box.d.ts +3 -0
  636. package/esm/shape/schema/box.js +87 -0
  637. package/esm/shape/schema/box.js.map +1 -0
  638. package/esm/shape/text/text.d.ts +6 -0
  639. package/esm/shape/text/text.js +41 -0
  640. package/esm/shape/text/text.js.map +1 -0
  641. package/esm/shape/utils.d.ts +52 -0
  642. package/esm/shape/utils.js +67 -0
  643. package/esm/shape/utils.js.map +1 -0
  644. package/esm/shape/vector/vector.d.ts +13 -0
  645. package/esm/shape/vector/vector.js +48 -0
  646. package/esm/shape/vector/vector.js.map +1 -0
  647. package/esm/spec/action.d.ts +122 -0
  648. package/esm/spec/action.js +2 -0
  649. package/esm/spec/action.js.map +1 -0
  650. package/esm/spec/animate.d.ts +8 -0
  651. package/esm/spec/animate.js +2 -0
  652. package/esm/spec/animate.js.map +1 -0
  653. package/esm/spec/composition.d.ts +124 -0
  654. package/esm/spec/composition.js +2 -0
  655. package/esm/spec/composition.js.map +1 -0
  656. package/esm/spec/coordinate.d.ts +30 -0
  657. package/esm/spec/coordinate.js +2 -0
  658. package/esm/spec/coordinate.js.map +1 -0
  659. package/esm/spec/encode.d.ts +23 -0
  660. package/esm/spec/encode.js +2 -0
  661. package/esm/spec/encode.js.map +1 -0
  662. package/esm/spec/geometry.d.ts +60 -0
  663. package/esm/spec/geometry.js +2 -0
  664. package/esm/spec/geometry.js.map +1 -0
  665. package/esm/spec/index.d.ts +16 -0
  666. package/esm/spec/index.js +12 -0
  667. package/esm/spec/index.js.map +1 -0
  668. package/esm/spec/interaction.d.ts +66 -0
  669. package/esm/spec/interaction.js +2 -0
  670. package/esm/spec/interaction.js.map +1 -0
  671. package/esm/spec/palette.d.ts +13 -0
  672. package/esm/spec/palette.js +2 -0
  673. package/esm/spec/palette.js.map +1 -0
  674. package/esm/spec/scale.d.ts +27 -0
  675. package/esm/spec/scale.js +2 -0
  676. package/esm/spec/scale.js.map +1 -0
  677. package/esm/spec/statistic.d.ts +69 -0
  678. package/esm/spec/statistic.js +2 -0
  679. package/esm/spec/statistic.js.map +1 -0
  680. package/esm/spec/theme.d.ts +12 -0
  681. package/esm/spec/theme.js +2 -0
  682. package/esm/spec/theme.js.map +1 -0
  683. package/esm/spec/title.d.ts +2 -0
  684. package/esm/spec/title.js +2 -0
  685. package/esm/spec/title.js.map +1 -0
  686. package/esm/spec/transform.d.ts +177 -0
  687. package/esm/spec/transform.js +2 -0
  688. package/esm/spec/transform.js.map +1 -0
  689. package/esm/stdlib/index.d.ts +2 -0
  690. package/esm/stdlib/index.js +185 -0
  691. package/esm/stdlib/index.js.map +1 -0
  692. package/esm/theme/index.d.ts +1 -12
  693. package/esm/theme/index.js +1 -22
  694. package/esm/theme/index.js.map +1 -1
  695. package/esm/theme/light.d.ts +7 -0
  696. package/esm/theme/light.js +30 -0
  697. package/esm/theme/light.js.map +1 -0
  698. package/esm/transform/index.d.ts +36 -0
  699. package/esm/transform/index.js +40 -0
  700. package/esm/transform/index.js.map +1 -0
  701. package/esm/transform/inference/maybeArrayField.d.ts +8 -0
  702. package/esm/transform/inference/maybeArrayField.js +47 -0
  703. package/esm/transform/inference/maybeArrayField.js.map +1 -0
  704. package/esm/transform/inference/maybeKey.d.ts +9 -0
  705. package/esm/transform/inference/maybeKey.js +33 -0
  706. package/esm/transform/inference/maybeKey.js.map +1 -0
  707. package/esm/transform/inference/maybeSeries.d.ts +7 -0
  708. package/esm/transform/inference/maybeSeries.js +23 -0
  709. package/esm/transform/inference/maybeSeries.js.map +1 -0
  710. package/esm/transform/inference/maybeSize.d.ts +7 -0
  711. package/esm/transform/inference/maybeSize.js +14 -0
  712. package/esm/transform/inference/maybeSize.js.map +1 -0
  713. package/esm/transform/inference/maybeStackY.d.ts +9 -0
  714. package/esm/transform/inference/maybeStackY.js +32 -0
  715. package/esm/transform/inference/maybeStackY.js.map +1 -0
  716. package/esm/transform/inference/maybeTitleX.d.ts +7 -0
  717. package/esm/transform/inference/maybeTitleX.js +23 -0
  718. package/esm/transform/inference/maybeTitleX.js.map +1 -0
  719. package/esm/transform/inference/maybeTooltip.d.ts +9 -0
  720. package/esm/transform/inference/maybeTooltip.js +30 -0
  721. package/esm/transform/inference/maybeTooltip.js.map +1 -0
  722. package/esm/transform/inference/maybeTooltipPosition.d.ts +7 -0
  723. package/esm/transform/inference/maybeTooltipPosition.js +12 -0
  724. package/esm/transform/inference/maybeTooltipPosition.js.map +1 -0
  725. package/esm/transform/inference/maybeTooltipY.d.ts +7 -0
  726. package/esm/transform/inference/maybeTooltipY.js +12 -0
  727. package/esm/transform/inference/maybeTooltipY.js.map +1 -0
  728. package/esm/transform/inference/maybeZeroX.d.ts +7 -0
  729. package/esm/transform/inference/maybeZeroX.js +14 -0
  730. package/esm/transform/inference/maybeZeroX.js.map +1 -0
  731. package/esm/transform/inference/maybeZeroY.d.ts +7 -0
  732. package/esm/transform/inference/maybeZeroY.js +14 -0
  733. package/esm/transform/inference/maybeZeroY.js.map +1 -0
  734. package/esm/transform/inference/maybeZeroY1.d.ts +7 -0
  735. package/esm/transform/inference/maybeZeroY1.js +14 -0
  736. package/esm/transform/inference/maybeZeroY1.js.map +1 -0
  737. package/esm/transform/preprocessor/arc.d.ts +7 -0
  738. package/esm/transform/preprocessor/arc.js +16 -0
  739. package/esm/transform/preprocessor/arc.js.map +1 -0
  740. package/esm/transform/preprocessor/cluster.d.ts +5 -0
  741. package/esm/transform/preprocessor/cluster.js +40 -0
  742. package/esm/transform/preprocessor/cluster.js.map +1 -0
  743. package/esm/transform/preprocessor/connector.d.ts +7 -0
  744. package/esm/transform/preprocessor/connector.js +16 -0
  745. package/esm/transform/preprocessor/connector.js.map +1 -0
  746. package/esm/transform/preprocessor/fetch.d.ts +8 -0
  747. package/esm/transform/preprocessor/fetch.js +36 -0
  748. package/esm/transform/preprocessor/fetch.js.map +1 -0
  749. package/esm/transform/preprocessor/filterBy.d.ts +8 -0
  750. package/esm/transform/preprocessor/filterBy.js +18 -0
  751. package/esm/transform/preprocessor/filterBy.js.map +1 -0
  752. package/esm/transform/preprocessor/fold.d.ts +8 -0
  753. package/esm/transform/preprocessor/fold.js +27 -0
  754. package/esm/transform/preprocessor/fold.js.map +1 -0
  755. package/esm/transform/preprocessor/pick.d.ts +7 -0
  756. package/esm/transform/preprocessor/pick.js +12 -0
  757. package/esm/transform/preprocessor/pick.js.map +1 -0
  758. package/esm/transform/preprocessor/rename.d.ts +8 -0
  759. package/esm/transform/preprocessor/rename.js +20 -0
  760. package/esm/transform/preprocessor/rename.js.map +1 -0
  761. package/esm/transform/preprocessor/sankey.d.ts +8 -0
  762. package/esm/transform/preprocessor/sankey.js +80 -0
  763. package/esm/transform/preprocessor/sankey.js.map +1 -0
  764. package/esm/transform/preprocessor/sortBy.d.ts +7 -0
  765. package/esm/transform/preprocessor/sortBy.js +19 -0
  766. package/esm/transform/preprocessor/sortBy.js.map +1 -0
  767. package/esm/transform/preprocessor/subset.d.ts +7 -0
  768. package/esm/transform/preprocessor/subset.js +31 -0
  769. package/esm/transform/preprocessor/subset.js.map +1 -0
  770. package/esm/transform/preprocessor/tree.d.ts +4 -0
  771. package/esm/transform/preprocessor/tree.js +7 -0
  772. package/esm/transform/preprocessor/tree.js.map +1 -0
  773. package/esm/transform/preprocessor/voronoi.d.ts +4 -0
  774. package/esm/transform/preprocessor/voronoi.js +20 -0
  775. package/esm/transform/preprocessor/voronoi.js.map +1 -0
  776. package/esm/transform/preprocessor/wordCloud.d.ts +6 -0
  777. package/esm/transform/preprocessor/wordCloud.js +106 -0
  778. package/esm/transform/preprocessor/wordCloud.js.map +1 -0
  779. package/esm/transform/statistic/Select.d.ts +9 -0
  780. package/esm/transform/statistic/Select.js +58 -0
  781. package/esm/transform/statistic/Select.js.map +1 -0
  782. package/esm/transform/statistic/SelectX.d.ts +7 -0
  783. package/esm/transform/statistic/SelectX.js +23 -0
  784. package/esm/transform/statistic/SelectX.js.map +1 -0
  785. package/esm/transform/statistic/SelectY.d.ts +7 -0
  786. package/esm/transform/statistic/SelectY.js +23 -0
  787. package/esm/transform/statistic/SelectY.js.map +1 -0
  788. package/esm/transform/statistic/dodgeX.d.ts +9 -0
  789. package/esm/transform/statistic/dodgeX.js +56 -0
  790. package/esm/transform/statistic/dodgeX.js.map +1 -0
  791. package/esm/transform/statistic/groupX.d.ts +8 -0
  792. package/esm/transform/statistic/groupX.js +85 -0
  793. package/esm/transform/statistic/groupX.js.map +1 -0
  794. package/esm/transform/statistic/jitter.d.ts +9 -0
  795. package/esm/transform/statistic/jitter.js +40 -0
  796. package/esm/transform/statistic/jitter.js.map +1 -0
  797. package/esm/transform/statistic/jitterY.d.ts +8 -0
  798. package/esm/transform/statistic/jitterY.js +27 -0
  799. package/esm/transform/statistic/jitterY.js.map +1 -0
  800. package/esm/transform/statistic/normalizeY.d.ts +9 -0
  801. package/esm/transform/statistic/normalizeY.js +70 -0
  802. package/esm/transform/statistic/normalizeY.js.map +1 -0
  803. package/esm/transform/statistic/stackEnter.d.ts +13 -0
  804. package/esm/transform/statistic/stackEnter.js +59 -0
  805. package/esm/transform/statistic/stackEnter.js.map +1 -0
  806. package/esm/transform/statistic/stackY.d.ts +9 -0
  807. package/esm/transform/statistic/stackY.js +55 -0
  808. package/esm/transform/statistic/stackY.js.map +1 -0
  809. package/esm/transform/statistic/symmetryY.d.ts +8 -0
  810. package/esm/transform/statistic/symmetryY.js +61 -0
  811. package/esm/transform/statistic/symmetryY.js.map +1 -0
  812. package/esm/transform/statistic/utils.d.ts +9 -0
  813. package/esm/transform/statistic/utils.js +70 -0
  814. package/esm/transform/statistic/utils.js.map +1 -0
  815. package/esm/transform/utils/arc/arc.d.ts +8 -0
  816. package/esm/transform/utils/arc/arc.js +161 -0
  817. package/esm/transform/utils/arc/arc.js.map +1 -0
  818. package/esm/transform/utils/arc/index.d.ts +2 -0
  819. package/esm/transform/utils/arc/index.js +2 -0
  820. package/esm/transform/utils/arc/index.js.map +1 -0
  821. package/esm/transform/utils/arc/sort.d.ts +4 -0
  822. package/esm/transform/utils/arc/sort.js +13 -0
  823. package/esm/transform/utils/arc/sort.js.map +1 -0
  824. package/esm/transform/utils/arc/types.d.ts +26 -0
  825. package/esm/transform/utils/arc/types.js +2 -0
  826. package/esm/transform/utils/arc/types.js.map +1 -0
  827. package/esm/transform/utils/d3-cloud/index.d.ts +1 -0
  828. package/esm/transform/utils/d3-cloud/index.js +395 -0
  829. package/esm/transform/utils/d3-cloud/index.js.map +1 -0
  830. package/esm/transform/utils/d3-sankey/align.d.ts +4 -0
  831. package/esm/transform/utils/d3-sankey/align.js +21 -0
  832. package/esm/transform/utils/d3-sankey/align.js.map +1 -0
  833. package/esm/transform/utils/d3-sankey/constant.d.ts +1 -0
  834. package/esm/transform/utils/d3-sankey/constant.js +6 -0
  835. package/esm/transform/utils/d3-sankey/constant.js.map +1 -0
  836. package/esm/transform/utils/d3-sankey/index.d.ts +12 -0
  837. package/esm/transform/utils/d3-sankey/index.js +13 -0
  838. package/esm/transform/utils/d3-sankey/index.js.map +1 -0
  839. package/esm/transform/utils/d3-sankey/sankey.d.ts +24 -0
  840. package/esm/transform/utils/d3-sankey/sankey.js +388 -0
  841. package/esm/transform/utils/d3-sankey/sankey.js.map +1 -0
  842. package/esm/transform/utils/flow.d.ts +9 -0
  843. package/esm/transform/utils/flow.js +45 -0
  844. package/esm/transform/utils/flow.js.map +1 -0
  845. package/esm/transform/utils/helper.d.ts +14 -0
  846. package/esm/transform/utils/helper.js +40 -0
  847. package/esm/transform/utils/helper.js.map +1 -0
  848. package/esm/transform/utils/memo.d.ts +17 -0
  849. package/esm/transform/utils/memo.js +79 -0
  850. package/esm/transform/utils/memo.js.map +1 -0
  851. package/esm/utils/array.d.ts +14 -0
  852. package/esm/utils/array.js +42 -0
  853. package/esm/utils/array.js.map +1 -0
  854. package/esm/utils/container.d.ts +8 -0
  855. package/esm/utils/container.js +16 -0
  856. package/esm/utils/container.js.map +1 -0
  857. package/esm/utils/coordinate.d.ts +5 -0
  858. package/esm/utils/coordinate.js +20 -0
  859. package/esm/utils/coordinate.js.map +1 -0
  860. package/esm/utils/helper.d.ts +17 -0
  861. package/esm/utils/helper.js +63 -0
  862. package/esm/utils/helper.js.map +1 -0
  863. package/esm/utils/selection.d.ts +64 -0
  864. package/esm/utils/selection.js +285 -0
  865. package/esm/utils/selection.js.map +1 -0
  866. package/esm/utils/vector.d.ts +13 -0
  867. package/esm/utils/vector.js +42 -0
  868. package/esm/utils/vector.js.map +1 -0
  869. package/lib/adjust/index.d.ts +1 -0
  870. package/lib/adjust/index.js +6 -0
  871. package/lib/adjust/index.js.map +1 -0
  872. package/lib/adjust/pack.d.ts +8 -0
  873. package/lib/adjust/pack.js +59 -0
  874. package/lib/adjust/pack.js.map +1 -0
  875. package/lib/animation/fadeIn.d.ts +7 -0
  876. package/lib/animation/fadeIn.js +27 -0
  877. package/lib/animation/fadeIn.js.map +1 -0
  878. package/lib/animation/fadeOut.d.ts +7 -0
  879. package/lib/animation/fadeOut.js +25 -0
  880. package/lib/animation/fadeOut.js.map +1 -0
  881. package/lib/animation/index.d.ts +7 -0
  882. package/lib/animation/index.js +18 -0
  883. package/lib/animation/index.js.map +1 -0
  884. package/lib/animation/morphing.d.ts +13 -0
  885. package/lib/animation/morphing.js +165 -0
  886. package/lib/animation/morphing.js.map +1 -0
  887. package/lib/animation/scaleInX.d.ts +7 -0
  888. package/lib/animation/scaleInX.js +50 -0
  889. package/lib/animation/scaleInX.js.map +1 -0
  890. package/lib/animation/scaleInY.d.ts +7 -0
  891. package/lib/animation/scaleInY.js +50 -0
  892. package/lib/animation/scaleInY.js.map +1 -0
  893. package/lib/animation/scaleOutX.d.ts +7 -0
  894. package/lib/animation/scaleOutX.js +50 -0
  895. package/lib/animation/scaleOutX.js.map +1 -0
  896. package/lib/animation/scaleOutY.d.ts +7 -0
  897. package/lib/animation/scaleOutY.js +50 -0
  898. package/lib/animation/scaleOutY.js.map +1 -0
  899. package/lib/animation/utils.d.ts +2 -0
  900. package/lib/animation/utils.js +21 -0
  901. package/lib/animation/utils.js.map +1 -0
  902. package/lib/api/chart.d.ts +30 -0
  903. package/lib/api/chart.js +106 -0
  904. package/lib/api/chart.js.map +1 -0
  905. package/lib/api/composition/circle.d.ts +21 -0
  906. package/lib/api/composition/circle.js +33 -0
  907. package/lib/api/composition/circle.js.map +1 -0
  908. package/lib/api/composition/flex.d.ts +17 -0
  909. package/lib/api/composition/flex.js +29 -0
  910. package/lib/api/composition/flex.js.map +1 -0
  911. package/lib/api/composition/index.d.ts +26 -0
  912. package/lib/api/composition/index.js +36 -0
  913. package/lib/api/composition/index.js.map +1 -0
  914. package/lib/api/composition/keyframe.d.ts +17 -0
  915. package/lib/api/composition/keyframe.js +29 -0
  916. package/lib/api/composition/keyframe.js.map +1 -0
  917. package/lib/api/composition/layer.d.ts +14 -0
  918. package/lib/api/composition/layer.js +26 -0
  919. package/lib/api/composition/layer.js.map +1 -0
  920. package/lib/api/composition/matrix.d.ts +21 -0
  921. package/lib/api/composition/matrix.js +33 -0
  922. package/lib/api/composition/matrix.js.map +1 -0
  923. package/lib/api/composition/rect.d.ts +23 -0
  924. package/lib/api/composition/rect.js +35 -0
  925. package/lib/api/composition/rect.js.map +1 -0
  926. package/lib/api/composition/view.d.ts +20 -0
  927. package/lib/api/composition/view.js +33 -0
  928. package/lib/api/composition/view.js.map +1 -0
  929. package/lib/api/index.d.ts +1 -0
  930. package/lib/api/index.js +6 -0
  931. package/lib/api/index.js.map +1 -0
  932. package/lib/api/mark/index.d.ts +41 -0
  933. package/lib/api/mark/index.js +25 -0
  934. package/lib/api/mark/index.js.map +1 -0
  935. package/lib/api/mark/mark.d.ts +114 -0
  936. package/lib/api/mark/mark.js +193 -0
  937. package/lib/api/mark/mark.js.map +1 -0
  938. package/lib/api/mark/types.d.ts +21 -0
  939. package/lib/{util → api/mark}/types.js +0 -0
  940. package/lib/api/mark/types.js.map +1 -0
  941. package/lib/api/node.d.ts +31 -0
  942. package/lib/api/node.js +59 -0
  943. package/lib/api/node.js.map +1 -0
  944. package/lib/api/props.d.ts +12 -0
  945. package/lib/api/props.js +81 -0
  946. package/lib/api/props.js.map +1 -0
  947. package/lib/api/types.d.ts +10 -0
  948. package/lib/api/types.js +3 -0
  949. package/lib/api/types.js.map +1 -0
  950. package/lib/component/axis.d.ts +13 -0
  951. package/lib/component/axis.js +298 -0
  952. package/lib/component/axis.js.map +1 -0
  953. package/lib/component/axisX.d.ts +7 -0
  954. package/lib/component/axisX.js +13 -0
  955. package/lib/component/axisX.js.map +1 -0
  956. package/lib/component/axisY.d.ts +7 -0
  957. package/lib/component/axisY.js +13 -0
  958. package/lib/component/axisY.js.map +1 -0
  959. package/lib/component/index.d.ts +5 -0
  960. package/lib/component/index.js +14 -0
  961. package/lib/component/index.js.map +1 -0
  962. package/lib/component/legendCategory.d.ts +10 -0
  963. package/lib/component/legendCategory.js +88 -0
  964. package/lib/component/legendCategory.js.map +1 -0
  965. package/lib/component/legendContinuous.d.ts +9 -0
  966. package/lib/component/legendContinuous.js +42 -0
  967. package/lib/component/legendContinuous.js.map +1 -0
  968. package/lib/component/title.d.ts +6 -0
  969. package/lib/component/title.js +58 -0
  970. package/lib/component/title.js.map +1 -0
  971. package/lib/component/utils.d.ts +8 -0
  972. package/lib/component/utils.js +32 -0
  973. package/lib/component/utils.js.map +1 -0
  974. package/lib/composition/circle.d.ts +7 -0
  975. package/lib/composition/circle.js +89 -0
  976. package/lib/composition/circle.js.map +1 -0
  977. package/lib/composition/flex.d.ts +7 -0
  978. package/lib/composition/flex.js +42 -0
  979. package/lib/composition/flex.js.map +1 -0
  980. package/lib/composition/index.d.ts +8 -0
  981. package/lib/composition/index.js +20 -0
  982. package/lib/composition/index.js.map +1 -0
  983. package/lib/composition/keyframe.d.ts +7 -0
  984. package/lib/composition/keyframe.js +79 -0
  985. package/lib/composition/keyframe.js.map +1 -0
  986. package/lib/composition/layer.d.ts +7 -0
  987. package/lib/composition/layer.js +36 -0
  988. package/lib/composition/layer.js.map +1 -0
  989. package/lib/composition/mark.d.ts +4 -0
  990. package/lib/composition/mark.js +44 -0
  991. package/lib/composition/mark.js.map +1 -0
  992. package/lib/composition/matrix.d.ts +8 -0
  993. package/lib/composition/matrix.js +155 -0
  994. package/lib/composition/matrix.js.map +1 -0
  995. package/lib/composition/rect.d.ts +30 -0
  996. package/lib/composition/rect.js +292 -0
  997. package/lib/composition/rect.js.map +1 -0
  998. package/lib/composition/utils.d.ts +10 -0
  999. package/lib/composition/utils.js +19 -0
  1000. package/lib/composition/utils.js.map +1 -0
  1001. package/lib/composition/view.d.ts +9 -0
  1002. package/lib/composition/view.js +36 -0
  1003. package/lib/composition/view.js.map +1 -0
  1004. package/lib/coordinate/cartesian.d.ts +7 -0
  1005. package/lib/coordinate/cartesian.js +10 -0
  1006. package/lib/coordinate/cartesian.js.map +1 -0
  1007. package/lib/coordinate/fisheye.d.ts +7 -0
  1008. package/lib/coordinate/fisheye.js +10 -0
  1009. package/lib/coordinate/fisheye.js.map +1 -0
  1010. package/lib/coordinate/index.d.ts +5 -0
  1011. package/lib/coordinate/index.js +14 -0
  1012. package/lib/coordinate/index.js.map +1 -0
  1013. package/lib/coordinate/parallel.d.ts +7 -0
  1014. package/lib/coordinate/parallel.js +10 -0
  1015. package/lib/coordinate/parallel.js.map +1 -0
  1016. package/lib/coordinate/polar.d.ts +8 -0
  1017. package/lib/coordinate/polar.js +16 -0
  1018. package/lib/coordinate/polar.js.map +1 -0
  1019. package/lib/coordinate/transpose.d.ts +7 -0
  1020. package/lib/coordinate/transpose.js +15 -0
  1021. package/lib/coordinate/transpose.js.map +1 -0
  1022. package/lib/encode/column.d.ts +7 -0
  1023. package/lib/encode/column.js +12 -0
  1024. package/lib/encode/column.js.map +1 -0
  1025. package/lib/encode/constant.d.ts +7 -0
  1026. package/lib/encode/constant.js +12 -0
  1027. package/lib/encode/constant.js.map +1 -0
  1028. package/lib/encode/field.d.ts +7 -0
  1029. package/lib/encode/field.js +12 -0
  1030. package/lib/encode/field.js.map +1 -0
  1031. package/lib/encode/index.d.ts +4 -0
  1032. package/lib/encode/index.js +12 -0
  1033. package/lib/encode/index.js.map +1 -0
  1034. package/lib/encode/transform.d.ts +9 -0
  1035. package/lib/encode/transform.js +14 -0
  1036. package/lib/encode/transform.js.map +1 -0
  1037. package/lib/index.d.ts +4 -107
  1038. package/lib/index.js +20 -591
  1039. package/lib/index.js.map +1 -1
  1040. package/lib/interaction/action/index.d.ts +23 -2
  1041. package/lib/interaction/action/index.js +47 -10
  1042. package/lib/interaction/action/index.js.map +1 -1
  1043. package/lib/interaction/action/service/elementSelection.d.ts +4 -0
  1044. package/lib/interaction/action/service/elementSelection.js +94 -0
  1045. package/lib/interaction/action/service/elementSelection.js.map +1 -0
  1046. package/lib/interaction/action/service/fisheyeFocus.d.ts +4 -0
  1047. package/lib/interaction/action/service/fisheyeFocus.js +51 -0
  1048. package/lib/interaction/action/service/fisheyeFocus.js.map +1 -0
  1049. package/lib/interaction/action/service/legendItemSelection.d.ts +4 -0
  1050. package/lib/interaction/action/service/legendItemSelection.js +21 -0
  1051. package/lib/interaction/action/service/legendItemSelection.js.map +1 -0
  1052. package/lib/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  1053. package/lib/interaction/action/service/recordCurrentPoint.js +20 -0
  1054. package/lib/interaction/action/service/recordCurrentPoint.js.map +1 -0
  1055. package/lib/interaction/action/service/recordPoint.d.ts +4 -0
  1056. package/lib/interaction/action/service/recordPoint.js +32 -0
  1057. package/lib/interaction/action/service/recordPoint.js.map +1 -0
  1058. package/lib/interaction/action/service/recordRegion.d.ts +4 -0
  1059. package/lib/interaction/action/service/recordRegion.js +34 -0
  1060. package/lib/interaction/action/service/recordRegion.js.map +1 -0
  1061. package/lib/interaction/action/service/recordState.d.ts +4 -0
  1062. package/lib/interaction/action/service/recordState.js +14 -0
  1063. package/lib/interaction/action/service/recordState.js.map +1 -0
  1064. package/lib/interaction/action/service/recordTip.d.ts +8 -0
  1065. package/lib/interaction/action/service/recordTip.js +19 -0
  1066. package/lib/interaction/action/service/recordTip.js.map +1 -0
  1067. package/lib/interaction/action/service/surfacePointSelection.d.ts +4 -0
  1068. package/lib/interaction/action/service/surfacePointSelection.js +23 -0
  1069. package/lib/interaction/action/service/surfacePointSelection.js.map +1 -0
  1070. package/lib/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  1071. package/lib/interaction/action/service/triggerInfoSelection.js +22 -0
  1072. package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -0
  1073. package/lib/interaction/action/transformer/activeElement.d.ts +4 -0
  1074. package/lib/interaction/action/transformer/activeElement.js +27 -0
  1075. package/lib/interaction/action/transformer/activeElement.js.map +1 -0
  1076. package/lib/interaction/action/transformer/activeRegion.d.ts +4 -0
  1077. package/lib/interaction/action/transformer/activeRegion.js +56 -0
  1078. package/lib/interaction/action/transformer/activeRegion.js.map +1 -0
  1079. package/lib/interaction/action/transformer/button.d.ts +4 -0
  1080. package/lib/interaction/action/transformer/button.js +80 -0
  1081. package/lib/interaction/action/transformer/button.js.map +1 -0
  1082. package/lib/interaction/action/transformer/cursor.d.ts +4 -0
  1083. package/lib/interaction/action/transformer/cursor.js +19 -0
  1084. package/lib/interaction/action/transformer/cursor.js.map +1 -0
  1085. package/lib/interaction/action/transformer/filter.d.ts +7 -0
  1086. package/lib/interaction/action/transformer/filter.js +43 -0
  1087. package/lib/interaction/action/transformer/filter.js.map +1 -0
  1088. package/lib/interaction/action/transformer/filterElement.d.ts +4 -0
  1089. package/lib/interaction/action/transformer/filterElement.js +45 -0
  1090. package/lib/interaction/action/transformer/filterElement.js.map +1 -0
  1091. package/lib/interaction/action/transformer/highlightElement.d.ts +4 -0
  1092. package/lib/interaction/action/transformer/highlightElement.js +52 -0
  1093. package/lib/interaction/action/transformer/highlightElement.js.map +1 -0
  1094. package/lib/interaction/action/transformer/mask.d.ts +7 -0
  1095. package/lib/interaction/action/transformer/mask.js +110 -0
  1096. package/lib/interaction/action/transformer/mask.js.map +1 -0
  1097. package/lib/interaction/action/transformer/move.d.ts +7 -0
  1098. package/lib/interaction/action/transformer/move.js +74 -0
  1099. package/lib/interaction/action/transformer/move.js.map +1 -0
  1100. package/lib/interaction/action/transformer/plot.d.ts +4 -0
  1101. package/lib/interaction/action/transformer/plot.js +14 -0
  1102. package/lib/interaction/action/transformer/plot.js.map +1 -0
  1103. package/lib/interaction/action/transformer/poptip.d.ts +4 -0
  1104. package/lib/interaction/action/transformer/poptip.js +43 -0
  1105. package/lib/interaction/action/transformer/poptip.js.map +1 -0
  1106. package/lib/interaction/action/transformer/setItemState.d.ts +4 -0
  1107. package/lib/interaction/action/transformer/setItemState.js +35 -0
  1108. package/lib/interaction/action/transformer/setItemState.js.map +1 -0
  1109. package/lib/interaction/action/transformer/tooltip.d.ts +9 -0
  1110. package/lib/interaction/action/transformer/tooltip.js +293 -0
  1111. package/lib/interaction/action/transformer/tooltip.js.map +1 -0
  1112. package/lib/interaction/builtin/activeRegion.d.ts +19 -0
  1113. package/lib/interaction/builtin/activeRegion.js +22 -0
  1114. package/lib/interaction/builtin/activeRegion.js.map +1 -0
  1115. package/lib/interaction/builtin/brush.d.ts +132 -0
  1116. package/lib/interaction/builtin/brush.js +97 -0
  1117. package/lib/interaction/builtin/brush.js.map +1 -0
  1118. package/lib/interaction/builtin/brushHighlight.d.ts +98 -0
  1119. package/lib/interaction/builtin/brushHighlight.js +115 -0
  1120. package/lib/interaction/builtin/brushHighlight.js.map +1 -0
  1121. package/lib/interaction/builtin/brushVisible.d.ts +88 -0
  1122. package/lib/interaction/builtin/brushVisible.js +66 -0
  1123. package/lib/interaction/builtin/brushVisible.js.map +1 -0
  1124. package/lib/interaction/builtin/elementActive.d.ts +22 -0
  1125. package/lib/interaction/builtin/elementActive.js +29 -0
  1126. package/lib/interaction/builtin/elementActive.js.map +1 -0
  1127. package/lib/interaction/builtin/elementHighlight.d.ts +19 -0
  1128. package/lib/interaction/builtin/elementHighlight.js +28 -0
  1129. package/lib/interaction/builtin/elementHighlight.js.map +1 -0
  1130. package/lib/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  1131. package/lib/interaction/builtin/elementHighlightByColor.js +28 -0
  1132. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -0
  1133. package/lib/interaction/builtin/elementHighlightByX.d.ts +23 -0
  1134. package/lib/interaction/builtin/elementHighlightByX.js +28 -0
  1135. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -0
  1136. package/lib/interaction/builtin/elementListHighlight.d.ts +43 -0
  1137. package/lib/interaction/builtin/elementListHighlight.js +32 -0
  1138. package/lib/interaction/builtin/elementListHighlight.js.map +1 -0
  1139. package/lib/interaction/builtin/elementSelected.d.ts +20 -0
  1140. package/lib/interaction/builtin/elementSelected.js +22 -0
  1141. package/lib/interaction/builtin/elementSelected.js.map +1 -0
  1142. package/lib/interaction/builtin/ellipsisText.d.ts +19 -0
  1143. package/lib/interaction/builtin/ellipsisText.js +21 -0
  1144. package/lib/interaction/builtin/ellipsisText.js.map +1 -0
  1145. package/lib/interaction/builtin/fisheye.d.ts +33 -0
  1146. package/lib/interaction/builtin/fisheye.js +24 -0
  1147. package/lib/interaction/builtin/fisheye.js.map +1 -0
  1148. package/lib/interaction/builtin/legendActive.d.ts +43 -0
  1149. package/lib/interaction/builtin/legendActive.js +34 -0
  1150. package/lib/interaction/builtin/legendActive.js.map +1 -0
  1151. package/lib/interaction/builtin/legendHighlight.d.ts +43 -0
  1152. package/lib/interaction/builtin/legendHighlight.js +34 -0
  1153. package/lib/interaction/builtin/legendHighlight.js.map +1 -0
  1154. package/lib/interaction/builtin/tooltip.d.ts +44 -0
  1155. package/lib/interaction/builtin/tooltip.js +32 -0
  1156. package/lib/interaction/builtin/tooltip.js.map +1 -0
  1157. package/lib/interaction/create.d.ts +3 -0
  1158. package/lib/interaction/create.js +100 -0
  1159. package/lib/interaction/create.js.map +1 -0
  1160. package/lib/interaction/index.d.ts +18 -25
  1161. package/lib/interaction/index.js +50 -51
  1162. package/lib/interaction/index.js.map +1 -1
  1163. package/lib/interaction/interactor/index.d.ts +2 -0
  1164. package/lib/interaction/interactor/index.js +8 -0
  1165. package/lib/interaction/interactor/index.js.map +1 -0
  1166. package/lib/interaction/interactor/mousePosition.d.ts +3 -0
  1167. package/lib/interaction/interactor/mousePosition.js +14 -0
  1168. package/lib/interaction/interactor/mousePosition.js.map +1 -0
  1169. package/lib/interaction/interactor/touchPosition.d.ts +3 -0
  1170. package/lib/interaction/interactor/touchPosition.js +14 -0
  1171. package/lib/interaction/interactor/touchPosition.js.map +1 -0
  1172. package/lib/interaction/stdlib.d.ts +2 -0
  1173. package/lib/interaction/stdlib.js +36 -0
  1174. package/lib/interaction/stdlib.js.map +1 -0
  1175. package/lib/interaction/types.d.ts +57 -0
  1176. package/lib/interaction/types.js +3 -0
  1177. package/lib/interaction/types.js.map +1 -0
  1178. package/lib/interaction/utils.d.ts +3 -0
  1179. package/lib/interaction/utils.js +45 -0
  1180. package/lib/interaction/utils.js.map +1 -0
  1181. package/lib/mark/annotation/connector.d.ts +4 -0
  1182. package/lib/mark/annotation/connector.js +22 -0
  1183. package/lib/mark/annotation/connector.js.map +1 -0
  1184. package/lib/mark/annotation/index.d.ts +7 -0
  1185. package/lib/mark/annotation/index.js +18 -0
  1186. package/lib/mark/annotation/index.js.map +1 -0
  1187. package/lib/mark/annotation/lineX.d.ts +4 -0
  1188. package/lib/mark/annotation/lineX.js +25 -0
  1189. package/lib/mark/annotation/lineX.js.map +1 -0
  1190. package/lib/mark/annotation/lineY.d.ts +4 -0
  1191. package/lib/mark/annotation/lineY.js +25 -0
  1192. package/lib/mark/annotation/lineY.js.map +1 -0
  1193. package/lib/mark/annotation/range.d.ts +8 -0
  1194. package/lib/mark/annotation/range.js +49 -0
  1195. package/lib/mark/annotation/range.js.map +1 -0
  1196. package/lib/mark/annotation/rangeX.d.ts +4 -0
  1197. package/lib/mark/annotation/rangeX.js +18 -0
  1198. package/lib/mark/annotation/rangeX.js.map +1 -0
  1199. package/lib/mark/annotation/rangeY.d.ts +4 -0
  1200. package/lib/mark/annotation/rangeY.js +18 -0
  1201. package/lib/mark/annotation/rangeY.js.map +1 -0
  1202. package/lib/mark/annotation/text.d.ts +4 -0
  1203. package/lib/mark/annotation/text.js +25 -0
  1204. package/lib/mark/annotation/text.js.map +1 -0
  1205. package/lib/mark/geometry/area.d.ts +4 -0
  1206. package/lib/mark/geometry/area.js +74 -0
  1207. package/lib/mark/geometry/area.js.map +1 -0
  1208. package/lib/mark/geometry/edge.d.ts +13 -0
  1209. package/lib/mark/geometry/edge.js +35 -0
  1210. package/lib/mark/geometry/edge.js.map +1 -0
  1211. package/lib/mark/geometry/grid.d.ts +9 -0
  1212. package/lib/mark/geometry/grid.js +50 -0
  1213. package/lib/mark/geometry/grid.js.map +1 -0
  1214. package/lib/mark/geometry/image.d.ts +4 -0
  1215. package/lib/mark/geometry/image.js +38 -0
  1216. package/lib/mark/geometry/image.js.map +1 -0
  1217. package/lib/mark/geometry/index.d.ts +13 -0
  1218. package/lib/mark/geometry/index.js +30 -0
  1219. package/lib/mark/geometry/index.js.map +1 -0
  1220. package/lib/mark/geometry/interval.d.ts +12 -0
  1221. package/lib/mark/geometry/interval.js +63 -0
  1222. package/lib/mark/geometry/interval.js.map +1 -0
  1223. package/lib/mark/geometry/line.d.ts +7 -0
  1224. package/lib/mark/geometry/line.js +80 -0
  1225. package/lib/mark/geometry/line.js.map +1 -0
  1226. package/lib/mark/geometry/link.d.ts +7 -0
  1227. package/lib/mark/geometry/link.js +37 -0
  1228. package/lib/mark/geometry/link.js.map +1 -0
  1229. package/lib/mark/geometry/node.d.ts +8 -0
  1230. package/lib/mark/geometry/node.js +31 -0
  1231. package/lib/mark/geometry/node.js.map +1 -0
  1232. package/lib/mark/geometry/point.d.ts +10 -0
  1233. package/lib/mark/geometry/point.js +75 -0
  1234. package/lib/mark/geometry/point.js.map +1 -0
  1235. package/lib/mark/geometry/polygon.d.ts +7 -0
  1236. package/lib/mark/geometry/polygon.js +47 -0
  1237. package/lib/mark/geometry/polygon.js.map +1 -0
  1238. package/lib/mark/geometry/schema.d.ts +34 -0
  1239. package/lib/mark/geometry/schema.js +94 -0
  1240. package/lib/mark/geometry/schema.js.map +1 -0
  1241. package/lib/mark/geometry/text.d.ts +4 -0
  1242. package/lib/mark/geometry/text.js +39 -0
  1243. package/lib/mark/geometry/text.js.map +1 -0
  1244. package/lib/mark/geometry/vector.d.ts +8 -0
  1245. package/lib/mark/geometry/vector.js +47 -0
  1246. package/lib/mark/geometry/vector.js.map +1 -0
  1247. package/lib/mark/utils.d.ts +10 -0
  1248. package/lib/mark/utils.js +38 -0
  1249. package/lib/mark/utils.js.map +1 -0
  1250. package/lib/palette/category10.d.ts +7 -0
  1251. package/lib/palette/category10.js +23 -0
  1252. package/lib/palette/category10.js.map +1 -0
  1253. package/lib/palette/category20.d.ts +7 -0
  1254. package/lib/palette/category20.js +33 -0
  1255. package/lib/palette/category20.js.map +1 -0
  1256. package/lib/palette/index.d.ts +2 -0
  1257. package/lib/palette/index.js +8 -0
  1258. package/lib/palette/index.js.map +1 -0
  1259. package/lib/renderer/canvas.d.ts +10 -0
  1260. package/lib/renderer/canvas.js +22 -0
  1261. package/lib/renderer/canvas.js.map +1 -0
  1262. package/lib/renderer/index.d.ts +1 -0
  1263. package/lib/renderer/index.js +6 -0
  1264. package/lib/renderer/index.js.map +1 -0
  1265. package/lib/runtime/component.d.ts +5 -0
  1266. package/lib/runtime/component.js +137 -0
  1267. package/lib/runtime/component.js.map +1 -0
  1268. package/lib/runtime/coordinate.d.ts +7 -0
  1269. package/lib/runtime/coordinate.js +41 -0
  1270. package/lib/runtime/coordinate.js.map +1 -0
  1271. package/lib/runtime/index.d.ts +7 -0
  1272. package/lib/runtime/index.js +26 -0
  1273. package/lib/runtime/index.js.map +1 -0
  1274. package/lib/runtime/layout.d.ts +5 -0
  1275. package/lib/runtime/layout.js +120 -0
  1276. package/lib/runtime/layout.js.map +1 -0
  1277. package/lib/runtime/library.d.ts +3 -0
  1278. package/lib/runtime/library.js +30 -0
  1279. package/lib/runtime/library.js.map +1 -0
  1280. package/lib/runtime/mark.d.ts +6 -0
  1281. package/lib/runtime/mark.js +188 -0
  1282. package/lib/runtime/mark.js.map +1 -0
  1283. package/lib/runtime/plot.d.ts +3 -0
  1284. package/lib/runtime/plot.js +558 -0
  1285. package/lib/runtime/plot.js.map +1 -0
  1286. package/lib/runtime/render.d.ts +2 -0
  1287. package/lib/runtime/render.js +82 -0
  1288. package/lib/runtime/render.js.map +1 -0
  1289. package/lib/runtime/scale.d.ts +8 -0
  1290. package/lib/runtime/scale.js +333 -0
  1291. package/lib/runtime/scale.js.map +1 -0
  1292. package/lib/runtime/types/common.d.ts +125 -0
  1293. package/lib/runtime/types/common.js +3 -0
  1294. package/lib/runtime/types/common.js.map +1 -0
  1295. package/lib/runtime/types/component.d.ts +73 -0
  1296. package/lib/runtime/types/component.js +3 -0
  1297. package/lib/runtime/types/component.js.map +1 -0
  1298. package/lib/runtime/types/encode.d.ts +21 -0
  1299. package/lib/runtime/types/encode.js +3 -0
  1300. package/lib/runtime/types/encode.js.map +1 -0
  1301. package/lib/runtime/types/mark.d.ts +20 -0
  1302. package/lib/runtime/types/mark.js +3 -0
  1303. package/lib/runtime/types/mark.js.map +1 -0
  1304. package/lib/runtime/types/options.d.ts +106 -0
  1305. package/lib/runtime/types/options.js +3 -0
  1306. package/lib/runtime/types/options.js.map +1 -0
  1307. package/lib/runtime/types/transform.d.ts +23 -0
  1308. package/lib/runtime/types/transform.js +3 -0
  1309. package/lib/runtime/types/transform.js.map +1 -0
  1310. package/lib/scale/band.d.ts +4 -0
  1311. package/lib/scale/band.js +10 -0
  1312. package/lib/scale/band.js.map +1 -0
  1313. package/lib/scale/identity.d.ts +4 -0
  1314. package/lib/scale/identity.js +10 -0
  1315. package/lib/scale/identity.js.map +1 -0
  1316. package/lib/scale/index.d.ts +11 -0
  1317. package/lib/scale/index.js +26 -0
  1318. package/lib/scale/index.js.map +1 -0
  1319. package/lib/scale/linear.d.ts +4 -0
  1320. package/lib/scale/linear.js +10 -0
  1321. package/lib/scale/linear.js.map +1 -0
  1322. package/lib/scale/log.d.ts +4 -0
  1323. package/lib/scale/log.js +10 -0
  1324. package/lib/scale/log.js.map +1 -0
  1325. package/lib/scale/ordinal.d.ts +4 -0
  1326. package/lib/scale/ordinal.js +10 -0
  1327. package/lib/scale/ordinal.js.map +1 -0
  1328. package/lib/scale/point.d.ts +4 -0
  1329. package/lib/scale/point.js +10 -0
  1330. package/lib/scale/point.js.map +1 -0
  1331. package/lib/scale/pow.d.ts +4 -0
  1332. package/lib/scale/pow.js +10 -0
  1333. package/lib/scale/pow.js.map +1 -0
  1334. package/lib/scale/quantile.d.ts +4 -0
  1335. package/lib/scale/quantile.js +10 -0
  1336. package/lib/scale/quantile.js.map +1 -0
  1337. package/lib/scale/quantize.d.ts +4 -0
  1338. package/lib/scale/quantize.js +10 -0
  1339. package/lib/scale/quantize.js.map +1 -0
  1340. package/lib/scale/threshold.d.ts +4 -0
  1341. package/lib/scale/threshold.js +10 -0
  1342. package/lib/scale/threshold.js.map +1 -0
  1343. package/lib/scale/time.d.ts +4 -0
  1344. package/lib/scale/time.js +10 -0
  1345. package/lib/scale/time.js.map +1 -0
  1346. package/lib/shape/annotation/badge.d.ts +14 -0
  1347. package/lib/shape/annotation/badge.js +97 -0
  1348. package/lib/shape/annotation/badge.js.map +1 -0
  1349. package/lib/shape/annotation/connector.d.ts +15 -0
  1350. package/lib/shape/annotation/connector.js +105 -0
  1351. package/lib/shape/annotation/connector.js.map +1 -0
  1352. package/lib/shape/annotation/line.d.ts +3 -0
  1353. package/lib/shape/annotation/line.js +60 -0
  1354. package/lib/shape/annotation/line.js.map +1 -0
  1355. package/lib/shape/annotation/text.d.ts +20 -0
  1356. package/lib/shape/annotation/text.js +166 -0
  1357. package/lib/shape/annotation/text.js.map +1 -0
  1358. package/lib/shape/area/area.d.ts +3 -0
  1359. package/lib/shape/area/area.js +15 -0
  1360. package/lib/shape/area/area.js.map +1 -0
  1361. package/lib/shape/area/curveArea.d.ts +8 -0
  1362. package/lib/shape/area/curveArea.js +64 -0
  1363. package/lib/shape/area/curveArea.js.map +1 -0
  1364. package/lib/shape/area/smoothArea.d.ts +5 -0
  1365. package/lib/shape/area/smoothArea.js +27 -0
  1366. package/lib/shape/area/smoothArea.js.map +1 -0
  1367. package/lib/shape/edge/arc.d.ts +8 -0
  1368. package/lib/shape/edge/arc.js +55 -0
  1369. package/lib/shape/edge/arc.js.map +1 -0
  1370. package/lib/shape/edge/edge.d.ts +6 -0
  1371. package/lib/shape/edge/edge.js +15 -0
  1372. package/lib/shape/edge/edge.js.map +1 -0
  1373. package/lib/shape/edge/ribbon.d.ts +15 -0
  1374. package/lib/shape/edge/ribbon.js +73 -0
  1375. package/lib/shape/edge/ribbon.js.map +1 -0
  1376. package/lib/shape/edge/smoothEdge.d.ts +6 -0
  1377. package/lib/shape/edge/smoothEdge.js +43 -0
  1378. package/lib/shape/edge/smoothEdge.js.map +1 -0
  1379. package/lib/shape/edge/vhv.d.ts +12 -0
  1380. package/lib/shape/edge/vhv.js +73 -0
  1381. package/lib/shape/edge/vhv.js.map +1 -0
  1382. package/lib/shape/image/image.d.ts +3 -0
  1383. package/lib/shape/image/image.js +42 -0
  1384. package/lib/shape/image/image.js.map +1 -0
  1385. package/lib/shape/index.d.ts +48 -0
  1386. package/lib/shape/index.js +101 -0
  1387. package/lib/shape/index.js.map +1 -0
  1388. package/lib/shape/interval/colorRect.d.ts +14 -0
  1389. package/lib/shape/interval/colorRect.js +84 -0
  1390. package/lib/shape/interval/colorRect.js.map +1 -0
  1391. package/lib/shape/interval/funnel.d.ts +10 -0
  1392. package/lib/shape/interval/funnel.js +47 -0
  1393. package/lib/shape/interval/funnel.js.map +1 -0
  1394. package/lib/shape/interval/hollowRect.d.ts +6 -0
  1395. package/lib/shape/interval/hollowRect.js +13 -0
  1396. package/lib/shape/interval/hollowRect.js.map +1 -0
  1397. package/lib/shape/interval/pyramid.d.ts +6 -0
  1398. package/lib/shape/interval/pyramid.js +42 -0
  1399. package/lib/shape/interval/pyramid.js.map +1 -0
  1400. package/lib/shape/interval/rect.d.ts +7 -0
  1401. package/lib/shape/interval/rect.js +14 -0
  1402. package/lib/shape/interval/rect.js.map +1 -0
  1403. package/lib/shape/label/label.d.ts +7 -0
  1404. package/lib/shape/label/label.js +33 -0
  1405. package/lib/shape/label/label.js.map +1 -0
  1406. package/lib/shape/line/curveLine.d.ts +8 -0
  1407. package/lib/shape/line/curveLine.js +45 -0
  1408. package/lib/shape/line/curveLine.js.map +1 -0
  1409. package/lib/shape/line/hv.d.ts +3 -0
  1410. package/lib/shape/line/hv.js +11 -0
  1411. package/lib/shape/line/hv.js.map +1 -0
  1412. package/lib/shape/line/hvh.d.ts +3 -0
  1413. package/lib/shape/line/hvh.js +11 -0
  1414. package/lib/shape/line/hvh.js.map +1 -0
  1415. package/lib/shape/line/line.d.ts +3 -0
  1416. package/lib/shape/line/line.js +11 -0
  1417. package/lib/shape/line/line.js.map +1 -0
  1418. package/lib/shape/line/smooth.d.ts +5 -0
  1419. package/lib/shape/line/smooth.js +23 -0
  1420. package/lib/shape/line/smooth.js.map +1 -0
  1421. package/lib/shape/line/vh.d.ts +3 -0
  1422. package/lib/shape/line/vh.js +11 -0
  1423. package/lib/shape/line/vh.js.map +1 -0
  1424. package/lib/shape/link/link.d.ts +13 -0
  1425. package/lib/shape/link/link.js +53 -0
  1426. package/lib/shape/link/link.js.map +1 -0
  1427. package/lib/shape/node/point.d.ts +6 -0
  1428. package/lib/shape/node/point.js +31 -0
  1429. package/lib/shape/node/point.js.map +1 -0
  1430. package/lib/shape/node/polygon.d.ts +3 -0
  1431. package/lib/shape/node/polygon.js +12 -0
  1432. package/lib/shape/node/polygon.js.map +1 -0
  1433. package/lib/shape/point/bowtie.d.ts +6 -0
  1434. package/lib/shape/point/bowtie.js +13 -0
  1435. package/lib/shape/point/bowtie.js.map +1 -0
  1436. package/lib/shape/point/colorPoint.d.ts +11 -0
  1437. package/lib/shape/point/colorPoint.js +86 -0
  1438. package/lib/shape/point/colorPoint.js.map +1 -0
  1439. package/lib/shape/point/cross.d.ts +6 -0
  1440. package/lib/shape/point/cross.js +13 -0
  1441. package/lib/shape/point/cross.js.map +1 -0
  1442. package/lib/shape/point/diamond.d.ts +6 -0
  1443. package/lib/shape/point/diamond.js +13 -0
  1444. package/lib/shape/point/diamond.js.map +1 -0
  1445. package/lib/shape/point/hexagon.d.ts +6 -0
  1446. package/lib/shape/point/hexagon.js +13 -0
  1447. package/lib/shape/point/hexagon.js.map +1 -0
  1448. package/lib/shape/point/hollowBowtie.d.ts +6 -0
  1449. package/lib/shape/point/hollowBowtie.js +13 -0
  1450. package/lib/shape/point/hollowBowtie.js.map +1 -0
  1451. package/lib/shape/point/hollowDiamond.d.ts +6 -0
  1452. package/lib/shape/point/hollowDiamond.js +13 -0
  1453. package/lib/shape/point/hollowDiamond.js.map +1 -0
  1454. package/lib/shape/point/hollowHexagon.d.ts +6 -0
  1455. package/lib/shape/point/hollowHexagon.js +13 -0
  1456. package/lib/shape/point/hollowHexagon.js.map +1 -0
  1457. package/lib/shape/point/hollowPoint.d.ts +6 -0
  1458. package/lib/shape/point/hollowPoint.js +13 -0
  1459. package/lib/shape/point/hollowPoint.js.map +1 -0
  1460. package/lib/shape/point/hollowSquare.d.ts +6 -0
  1461. package/lib/shape/point/hollowSquare.js +13 -0
  1462. package/lib/shape/point/hollowSquare.js.map +1 -0
  1463. package/lib/shape/point/hollowTriangle.d.ts +6 -0
  1464. package/lib/shape/point/hollowTriangle.js +13 -0
  1465. package/lib/shape/point/hollowTriangle.js.map +1 -0
  1466. package/lib/shape/point/hollowTriangleDown.d.ts +6 -0
  1467. package/lib/shape/point/hollowTriangleDown.js +13 -0
  1468. package/lib/shape/point/hollowTriangleDown.js.map +1 -0
  1469. package/lib/shape/point/hyphen.d.ts +6 -0
  1470. package/lib/shape/point/hyphen.js +13 -0
  1471. package/lib/shape/point/hyphen.js.map +1 -0
  1472. package/lib/shape/point/line.d.ts +6 -0
  1473. package/lib/shape/point/line.js +13 -0
  1474. package/lib/shape/point/line.js.map +1 -0
  1475. package/lib/shape/point/plus.d.ts +6 -0
  1476. package/lib/shape/point/plus.js +13 -0
  1477. package/lib/shape/point/plus.js.map +1 -0
  1478. package/lib/shape/point/point.d.ts +6 -0
  1479. package/lib/shape/point/point.js +13 -0
  1480. package/lib/shape/point/point.js.map +1 -0
  1481. package/lib/shape/point/square.d.ts +6 -0
  1482. package/lib/shape/point/square.js +13 -0
  1483. package/lib/shape/point/square.js.map +1 -0
  1484. package/lib/shape/point/symbol.d.ts +49 -0
  1485. package/lib/shape/point/symbol.js +157 -0
  1486. package/lib/shape/point/symbol.js.map +1 -0
  1487. package/lib/shape/point/tick.d.ts +6 -0
  1488. package/lib/shape/point/tick.js +13 -0
  1489. package/lib/shape/point/tick.js.map +1 -0
  1490. package/lib/shape/point/triangle.d.ts +6 -0
  1491. package/lib/shape/point/triangle.js +13 -0
  1492. package/lib/shape/point/triangle.js.map +1 -0
  1493. package/lib/shape/point/triangleDown.d.ts +6 -0
  1494. package/lib/shape/point/triangleDown.js +13 -0
  1495. package/lib/shape/point/triangleDown.js.map +1 -0
  1496. package/lib/shape/polygon/polygon.d.ts +3 -0
  1497. package/lib/shape/polygon/polygon.js +71 -0
  1498. package/lib/shape/polygon/polygon.js.map +1 -0
  1499. package/lib/shape/schema/box.d.ts +3 -0
  1500. package/lib/shape/schema/box.js +91 -0
  1501. package/lib/shape/schema/box.js.map +1 -0
  1502. package/lib/shape/text/text.d.ts +6 -0
  1503. package/lib/shape/text/text.js +45 -0
  1504. package/lib/shape/text/text.js.map +1 -0
  1505. package/lib/shape/utils.d.ts +52 -0
  1506. package/lib/shape/utils.js +75 -0
  1507. package/lib/shape/utils.js.map +1 -0
  1508. package/lib/shape/vector/vector.d.ts +13 -0
  1509. package/lib/shape/vector/vector.js +52 -0
  1510. package/lib/shape/vector/vector.js.map +1 -0
  1511. package/lib/spec/action.d.ts +122 -0
  1512. package/lib/spec/action.js +3 -0
  1513. package/lib/spec/action.js.map +1 -0
  1514. package/lib/spec/animate.d.ts +8 -0
  1515. package/lib/spec/animate.js +3 -0
  1516. package/lib/spec/animate.js.map +1 -0
  1517. package/lib/spec/composition.d.ts +124 -0
  1518. package/lib/spec/composition.js +3 -0
  1519. package/lib/spec/composition.js.map +1 -0
  1520. package/lib/spec/coordinate.d.ts +30 -0
  1521. package/lib/spec/coordinate.js +3 -0
  1522. package/lib/spec/coordinate.js.map +1 -0
  1523. package/lib/spec/encode.d.ts +23 -0
  1524. package/lib/spec/encode.js +3 -0
  1525. package/lib/spec/encode.js.map +1 -0
  1526. package/lib/spec/geometry.d.ts +60 -0
  1527. package/lib/spec/geometry.js +3 -0
  1528. package/lib/spec/geometry.js.map +1 -0
  1529. package/lib/spec/index.d.ts +16 -0
  1530. package/lib/spec/index.js +28 -0
  1531. package/lib/spec/index.js.map +1 -0
  1532. package/lib/spec/interaction.d.ts +66 -0
  1533. package/lib/spec/interaction.js +3 -0
  1534. package/lib/spec/interaction.js.map +1 -0
  1535. package/lib/spec/palette.d.ts +13 -0
  1536. package/lib/spec/palette.js +3 -0
  1537. package/lib/spec/palette.js.map +1 -0
  1538. package/lib/spec/scale.d.ts +27 -0
  1539. package/lib/spec/scale.js +3 -0
  1540. package/lib/spec/scale.js.map +1 -0
  1541. package/lib/spec/statistic.d.ts +69 -0
  1542. package/lib/spec/statistic.js +3 -0
  1543. package/lib/spec/statistic.js.map +1 -0
  1544. package/lib/spec/theme.d.ts +12 -0
  1545. package/lib/spec/theme.js +3 -0
  1546. package/lib/spec/theme.js.map +1 -0
  1547. package/lib/spec/title.d.ts +2 -0
  1548. package/lib/spec/title.js +3 -0
  1549. package/lib/spec/title.js.map +1 -0
  1550. package/lib/spec/transform.d.ts +177 -0
  1551. package/lib/spec/transform.js +3 -0
  1552. package/lib/spec/transform.js.map +1 -0
  1553. package/lib/stdlib/index.d.ts +2 -0
  1554. package/lib/stdlib/index.js +189 -0
  1555. package/lib/stdlib/index.js.map +1 -0
  1556. package/lib/theme/index.d.ts +1 -12
  1557. package/lib/theme/index.js +3 -25
  1558. package/lib/theme/index.js.map +1 -1
  1559. package/lib/theme/light.d.ts +7 -0
  1560. package/lib/theme/light.js +34 -0
  1561. package/lib/theme/light.js.map +1 -0
  1562. package/lib/transform/index.d.ts +36 -0
  1563. package/lib/transform/index.js +79 -0
  1564. package/lib/transform/index.js.map +1 -0
  1565. package/lib/transform/inference/maybeArrayField.d.ts +8 -0
  1566. package/lib/transform/inference/maybeArrayField.js +51 -0
  1567. package/lib/transform/inference/maybeArrayField.js.map +1 -0
  1568. package/lib/transform/inference/maybeKey.d.ts +9 -0
  1569. package/lib/transform/inference/maybeKey.js +37 -0
  1570. package/lib/transform/inference/maybeKey.js.map +1 -0
  1571. package/lib/transform/inference/maybeSeries.d.ts +7 -0
  1572. package/lib/transform/inference/maybeSeries.js +27 -0
  1573. package/lib/transform/inference/maybeSeries.js.map +1 -0
  1574. package/lib/transform/inference/maybeSize.d.ts +7 -0
  1575. package/lib/transform/inference/maybeSize.js +18 -0
  1576. package/lib/transform/inference/maybeSize.js.map +1 -0
  1577. package/lib/transform/inference/maybeStackY.d.ts +9 -0
  1578. package/lib/transform/inference/maybeStackY.js +36 -0
  1579. package/lib/transform/inference/maybeStackY.js.map +1 -0
  1580. package/lib/transform/inference/maybeTitleX.d.ts +7 -0
  1581. package/lib/transform/inference/maybeTitleX.js +27 -0
  1582. package/lib/transform/inference/maybeTitleX.js.map +1 -0
  1583. package/lib/transform/inference/maybeTooltip.d.ts +9 -0
  1584. package/lib/transform/inference/maybeTooltip.js +34 -0
  1585. package/lib/transform/inference/maybeTooltip.js.map +1 -0
  1586. package/lib/transform/inference/maybeTooltipPosition.d.ts +7 -0
  1587. package/lib/transform/inference/maybeTooltipPosition.js +16 -0
  1588. package/lib/transform/inference/maybeTooltipPosition.js.map +1 -0
  1589. package/lib/transform/inference/maybeTooltipY.d.ts +7 -0
  1590. package/lib/transform/inference/maybeTooltipY.js +16 -0
  1591. package/lib/transform/inference/maybeTooltipY.js.map +1 -0
  1592. package/lib/transform/inference/maybeZeroX.d.ts +7 -0
  1593. package/lib/transform/inference/maybeZeroX.js +18 -0
  1594. package/lib/transform/inference/maybeZeroX.js.map +1 -0
  1595. package/lib/transform/inference/maybeZeroY.d.ts +7 -0
  1596. package/lib/transform/inference/maybeZeroY.js +18 -0
  1597. package/lib/transform/inference/maybeZeroY.js.map +1 -0
  1598. package/lib/transform/inference/maybeZeroY1.d.ts +7 -0
  1599. package/lib/transform/inference/maybeZeroY1.js +18 -0
  1600. package/lib/transform/inference/maybeZeroY1.js.map +1 -0
  1601. package/lib/transform/preprocessor/arc.d.ts +7 -0
  1602. package/lib/transform/preprocessor/arc.js +20 -0
  1603. package/lib/transform/preprocessor/arc.js.map +1 -0
  1604. package/lib/transform/preprocessor/cluster.d.ts +5 -0
  1605. package/lib/transform/preprocessor/cluster.js +44 -0
  1606. package/lib/transform/preprocessor/cluster.js.map +1 -0
  1607. package/lib/transform/preprocessor/connector.d.ts +7 -0
  1608. package/lib/transform/preprocessor/connector.js +20 -0
  1609. package/lib/transform/preprocessor/connector.js.map +1 -0
  1610. package/lib/transform/preprocessor/fetch.d.ts +8 -0
  1611. package/lib/transform/preprocessor/fetch.js +40 -0
  1612. package/lib/transform/preprocessor/fetch.js.map +1 -0
  1613. package/lib/transform/preprocessor/filterBy.d.ts +8 -0
  1614. package/lib/transform/preprocessor/filterBy.js +22 -0
  1615. package/lib/transform/preprocessor/filterBy.js.map +1 -0
  1616. package/lib/transform/preprocessor/fold.d.ts +8 -0
  1617. package/lib/transform/preprocessor/fold.js +32 -0
  1618. package/lib/transform/preprocessor/fold.js.map +1 -0
  1619. package/lib/transform/preprocessor/pick.d.ts +7 -0
  1620. package/lib/transform/preprocessor/pick.js +16 -0
  1621. package/lib/transform/preprocessor/pick.js.map +1 -0
  1622. package/lib/transform/preprocessor/rename.d.ts +8 -0
  1623. package/lib/transform/preprocessor/rename.js +25 -0
  1624. package/lib/transform/preprocessor/rename.js.map +1 -0
  1625. package/lib/transform/preprocessor/sankey.d.ts +8 -0
  1626. package/lib/transform/preprocessor/sankey.js +84 -0
  1627. package/lib/transform/preprocessor/sankey.js.map +1 -0
  1628. package/lib/transform/preprocessor/sortBy.d.ts +7 -0
  1629. package/lib/transform/preprocessor/sortBy.js +23 -0
  1630. package/lib/transform/preprocessor/sortBy.js.map +1 -0
  1631. package/lib/transform/preprocessor/subset.d.ts +7 -0
  1632. package/lib/transform/preprocessor/subset.js +35 -0
  1633. package/lib/transform/preprocessor/subset.js.map +1 -0
  1634. package/lib/transform/preprocessor/tree.d.ts +4 -0
  1635. package/lib/transform/preprocessor/tree.js +10 -0
  1636. package/lib/transform/preprocessor/tree.js.map +1 -0
  1637. package/lib/transform/preprocessor/voronoi.d.ts +4 -0
  1638. package/lib/transform/preprocessor/voronoi.js +24 -0
  1639. package/lib/transform/preprocessor/voronoi.js.map +1 -0
  1640. package/lib/transform/preprocessor/wordCloud.d.ts +6 -0
  1641. package/lib/transform/preprocessor/wordCloud.js +112 -0
  1642. package/lib/transform/preprocessor/wordCloud.js.map +1 -0
  1643. package/lib/transform/statistic/Select.d.ts +9 -0
  1644. package/lib/transform/statistic/Select.js +62 -0
  1645. package/lib/transform/statistic/Select.js.map +1 -0
  1646. package/lib/transform/statistic/SelectX.d.ts +7 -0
  1647. package/lib/transform/statistic/SelectX.js +27 -0
  1648. package/lib/transform/statistic/SelectX.js.map +1 -0
  1649. package/lib/transform/statistic/SelectY.d.ts +7 -0
  1650. package/lib/transform/statistic/SelectY.js +27 -0
  1651. package/lib/transform/statistic/SelectY.js.map +1 -0
  1652. package/lib/transform/statistic/dodgeX.d.ts +9 -0
  1653. package/lib/transform/statistic/dodgeX.js +60 -0
  1654. package/lib/transform/statistic/dodgeX.js.map +1 -0
  1655. package/lib/transform/statistic/groupX.d.ts +8 -0
  1656. package/lib/transform/statistic/groupX.js +89 -0
  1657. package/lib/transform/statistic/groupX.js.map +1 -0
  1658. package/lib/transform/statistic/jitter.d.ts +9 -0
  1659. package/lib/transform/statistic/jitter.js +45 -0
  1660. package/lib/transform/statistic/jitter.js.map +1 -0
  1661. package/lib/transform/statistic/jitterY.d.ts +8 -0
  1662. package/lib/transform/statistic/jitterY.js +31 -0
  1663. package/lib/transform/statistic/jitterY.js.map +1 -0
  1664. package/lib/transform/statistic/normalizeY.d.ts +9 -0
  1665. package/lib/transform/statistic/normalizeY.js +74 -0
  1666. package/lib/transform/statistic/normalizeY.js.map +1 -0
  1667. package/lib/transform/statistic/stackEnter.d.ts +13 -0
  1668. package/lib/transform/statistic/stackEnter.js +63 -0
  1669. package/lib/transform/statistic/stackEnter.js.map +1 -0
  1670. package/lib/transform/statistic/stackY.d.ts +9 -0
  1671. package/lib/transform/statistic/stackY.js +59 -0
  1672. package/lib/transform/statistic/stackY.js.map +1 -0
  1673. package/lib/transform/statistic/symmetryY.d.ts +8 -0
  1674. package/lib/transform/statistic/symmetryY.js +65 -0
  1675. package/lib/transform/statistic/symmetryY.js.map +1 -0
  1676. package/lib/transform/statistic/utils.d.ts +9 -0
  1677. package/lib/transform/statistic/utils.js +77 -0
  1678. package/lib/transform/statistic/utils.js.map +1 -0
  1679. package/lib/transform/utils/arc/arc.d.ts +8 -0
  1680. package/lib/transform/utils/arc/arc.js +188 -0
  1681. package/lib/transform/utils/arc/arc.js.map +1 -0
  1682. package/lib/transform/utils/arc/index.d.ts +2 -0
  1683. package/lib/transform/utils/arc/index.js +6 -0
  1684. package/lib/transform/utils/arc/index.js.map +1 -0
  1685. package/lib/transform/utils/arc/sort.d.ts +4 -0
  1686. package/lib/transform/utils/arc/sort.js +20 -0
  1687. package/lib/transform/utils/arc/sort.js.map +1 -0
  1688. package/lib/transform/utils/arc/types.d.ts +26 -0
  1689. package/lib/transform/utils/arc/types.js +3 -0
  1690. package/lib/transform/utils/arc/types.js.map +1 -0
  1691. package/lib/transform/utils/d3-cloud/index.d.ts +1 -0
  1692. package/lib/transform/utils/d3-cloud/index.js +399 -0
  1693. package/lib/transform/utils/d3-cloud/index.js.map +1 -0
  1694. package/lib/transform/utils/d3-sankey/align.d.ts +4 -0
  1695. package/lib/transform/utils/d3-sankey/align.js +28 -0
  1696. package/lib/transform/utils/d3-sankey/align.js.map +1 -0
  1697. package/lib/transform/utils/d3-sankey/constant.d.ts +1 -0
  1698. package/lib/transform/utils/d3-sankey/constant.js +10 -0
  1699. package/lib/transform/utils/d3-sankey/constant.js.map +1 -0
  1700. package/lib/transform/utils/d3-sankey/index.d.ts +12 -0
  1701. package/lib/transform/utils/d3-sankey/index.js +20 -0
  1702. package/lib/transform/utils/d3-sankey/index.js.map +1 -0
  1703. package/lib/transform/utils/d3-sankey/sankey.d.ts +24 -0
  1704. package/lib/transform/utils/d3-sankey/sankey.js +392 -0
  1705. package/lib/transform/utils/d3-sankey/sankey.js.map +1 -0
  1706. package/lib/transform/utils/flow.d.ts +9 -0
  1707. package/lib/transform/utils/flow.js +49 -0
  1708. package/lib/transform/utils/flow.js.map +1 -0
  1709. package/lib/transform/utils/helper.d.ts +14 -0
  1710. package/lib/transform/utils/helper.js +48 -0
  1711. package/lib/transform/utils/helper.js.map +1 -0
  1712. package/lib/transform/utils/memo.d.ts +17 -0
  1713. package/lib/transform/utils/memo.js +85 -0
  1714. package/lib/transform/utils/memo.js.map +1 -0
  1715. package/lib/utils/array.d.ts +14 -0
  1716. package/lib/utils/array.js +52 -0
  1717. package/lib/utils/array.js.map +1 -0
  1718. package/lib/utils/container.d.ts +8 -0
  1719. package/lib/utils/container.js +19 -0
  1720. package/lib/utils/container.js.map +1 -0
  1721. package/lib/utils/coordinate.d.ts +5 -0
  1722. package/lib/utils/coordinate.js +27 -0
  1723. package/lib/utils/coordinate.js.map +1 -0
  1724. package/lib/utils/helper.d.ts +17 -0
  1725. package/lib/utils/helper.js +76 -0
  1726. package/lib/utils/helper.js.map +1 -0
  1727. package/lib/utils/selection.d.ts +64 -0
  1728. package/lib/utils/selection.js +290 -0
  1729. package/lib/utils/selection.js.map +1 -0
  1730. package/lib/utils/vector.d.ts +13 -0
  1731. package/lib/utils/vector.js +51 -0
  1732. package/lib/utils/vector.js.map +1 -0
  1733. package/package.json +85 -120
  1734. package/src/adjust/index.ts +1 -0
  1735. package/src/adjust/pack.ts +67 -0
  1736. package/src/animation/fadeIn.ts +30 -0
  1737. package/src/animation/fadeOut.ts +26 -0
  1738. package/src/animation/index.ts +7 -0
  1739. package/src/animation/morphing.ts +212 -0
  1740. package/src/animation/scaleInX.ts +60 -0
  1741. package/src/animation/scaleInY.ts +60 -0
  1742. package/src/animation/scaleOutX.ts +60 -0
  1743. package/src/animation/scaleOutY.ts +60 -0
  1744. package/src/animation/utils.ts +26 -0
  1745. package/src/api/chart.ts +124 -0
  1746. package/src/api/composition/circle.ts +43 -0
  1747. package/src/api/composition/flex.ts +30 -0
  1748. package/src/api/composition/index.ts +39 -0
  1749. package/src/api/composition/keyframe.ts +30 -0
  1750. package/src/api/composition/layer.ts +24 -0
  1751. package/src/api/composition/matrix.ts +43 -0
  1752. package/src/api/composition/rect.ts +47 -0
  1753. package/src/api/composition/view.ts +42 -0
  1754. package/src/api/index.ts +1 -0
  1755. package/src/api/mark/index.ts +62 -0
  1756. package/src/api/mark/mark.ts +249 -0
  1757. package/src/api/mark/types.ts +22 -0
  1758. package/src/api/node.ts +79 -0
  1759. package/src/api/props.ts +86 -0
  1760. package/src/api/types.ts +20 -0
  1761. package/src/component/axis.ts +391 -0
  1762. package/src/component/axisX.ts +16 -0
  1763. package/src/component/axisY.ts +16 -0
  1764. package/src/component/index.ts +5 -0
  1765. package/src/component/legendCategory.ts +99 -0
  1766. package/src/component/legendContinuous.ts +54 -0
  1767. package/src/component/title.ts +76 -0
  1768. package/src/component/utils.ts +38 -0
  1769. package/src/composition/circle.ts +102 -0
  1770. package/src/composition/flex.ts +47 -0
  1771. package/src/composition/index.ts +8 -0
  1772. package/src/composition/keyframe.ts +90 -0
  1773. package/src/composition/layer.ts +25 -0
  1774. package/src/composition/mark.ts +52 -0
  1775. package/src/composition/matrix.ts +170 -0
  1776. package/src/composition/rect.ts +340 -0
  1777. package/src/composition/utils.ts +17 -0
  1778. package/src/composition/view.ts +27 -0
  1779. package/src/coordinate/cartesian.ts +11 -0
  1780. package/src/coordinate/fisheye.ts +16 -0
  1781. package/src/coordinate/index.ts +5 -0
  1782. package/src/coordinate/parallel.ts +11 -0
  1783. package/src/coordinate/polar.ts +22 -0
  1784. package/src/coordinate/transpose.ts +16 -0
  1785. package/src/encode/column.ts +13 -0
  1786. package/src/encode/constant.ts +13 -0
  1787. package/src/encode/field.ts +13 -0
  1788. package/src/encode/index.ts +4 -0
  1789. package/src/encode/transform.ts +15 -0
  1790. package/src/index.ts +4 -738
  1791. package/src/interaction/action/index.ts +47 -2
  1792. package/src/interaction/action/service/elementSelection.ts +125 -0
  1793. package/src/interaction/action/service/fisheyeFocus.ts +62 -0
  1794. package/src/interaction/action/service/legendItemSelection.ts +34 -0
  1795. package/src/interaction/action/service/recordCurrentPoint.ts +22 -0
  1796. package/src/interaction/action/service/recordPoint.ts +35 -0
  1797. package/src/interaction/action/service/recordRegion.ts +41 -0
  1798. package/src/interaction/action/service/recordState.ts +15 -0
  1799. package/src/interaction/action/service/recordTip.ts +20 -0
  1800. package/src/interaction/action/service/surfacePointSelection.ts +28 -0
  1801. package/src/interaction/action/service/triggerInfoSelection.ts +33 -0
  1802. package/src/interaction/action/transformer/activeElement.ts +32 -0
  1803. package/src/interaction/action/transformer/activeRegion.ts +73 -0
  1804. package/src/interaction/action/transformer/button.ts +113 -0
  1805. package/src/interaction/action/transformer/cursor.ts +21 -0
  1806. package/src/interaction/action/transformer/filter.ts +53 -0
  1807. package/src/interaction/action/transformer/filterElement.ts +54 -0
  1808. package/src/interaction/action/transformer/highlightElement.ts +61 -0
  1809. package/src/interaction/action/transformer/mask.ts +115 -0
  1810. package/src/interaction/action/transformer/move.ts +76 -0
  1811. package/src/interaction/action/transformer/plot.ts +15 -0
  1812. package/src/interaction/action/transformer/poptip.ts +51 -0
  1813. package/src/interaction/action/transformer/setItemState.ts +39 -0
  1814. package/src/interaction/action/transformer/tooltip.ts +404 -0
  1815. package/src/interaction/builtin/activeRegion.ts +25 -0
  1816. package/src/interaction/builtin/brush.ts +99 -0
  1817. package/src/interaction/builtin/brushHighlight.ts +122 -0
  1818. package/src/interaction/builtin/brushVisible.ts +69 -0
  1819. package/src/interaction/builtin/elementActive.ts +32 -0
  1820. package/src/interaction/builtin/elementHighlight.ts +31 -0
  1821. package/src/interaction/builtin/elementHighlightByColor.ts +35 -0
  1822. package/src/interaction/builtin/elementHighlightByX.ts +35 -0
  1823. package/src/interaction/builtin/elementListHighlight.ts +39 -0
  1824. package/src/interaction/builtin/elementSelected.ts +25 -0
  1825. package/src/interaction/builtin/ellipsisText.ts +24 -0
  1826. package/src/interaction/builtin/fisheye.ts +25 -0
  1827. package/src/interaction/builtin/legendActive.ts +37 -0
  1828. package/src/interaction/builtin/legendHighlight.ts +37 -0
  1829. package/src/interaction/builtin/tooltip.ts +33 -0
  1830. package/src/interaction/create.ts +153 -0
  1831. package/src/interaction/index.ts +18 -48
  1832. package/src/interaction/interactor/index.ts +2 -0
  1833. package/src/interaction/interactor/mousePosition.ts +13 -0
  1834. package/src/interaction/interactor/touchPosition.ts +13 -0
  1835. package/src/interaction/stdlib.ts +57 -0
  1836. package/src/interaction/types.ts +80 -0
  1837. package/src/interaction/utils.ts +65 -0
  1838. package/src/mark/annotation/connector.ts +27 -0
  1839. package/src/mark/annotation/index.ts +25 -0
  1840. package/src/mark/annotation/lineX.ts +31 -0
  1841. package/src/mark/annotation/lineY.ts +31 -0
  1842. package/src/mark/annotation/range.ts +55 -0
  1843. package/src/mark/annotation/rangeX.ts +23 -0
  1844. package/src/mark/annotation/rangeY.ts +23 -0
  1845. package/src/mark/annotation/text.ts +30 -0
  1846. package/src/mark/geometry/area.ts +85 -0
  1847. package/src/mark/geometry/edge.ts +40 -0
  1848. package/src/mark/geometry/grid.ts +56 -0
  1849. package/src/mark/geometry/image.ts +41 -0
  1850. package/src/mark/geometry/index.ts +13 -0
  1851. package/src/mark/geometry/interval.ts +71 -0
  1852. package/src/mark/geometry/line.ts +94 -0
  1853. package/src/mark/geometry/link.ts +44 -0
  1854. package/src/mark/geometry/node.ts +36 -0
  1855. package/src/mark/geometry/point.ts +80 -0
  1856. package/src/mark/geometry/polygon.ts +54 -0
  1857. package/src/mark/geometry/schema.ts +105 -0
  1858. package/src/mark/geometry/text.ts +43 -0
  1859. package/src/mark/geometry/vector.ts +56 -0
  1860. package/src/mark/utils.ts +35 -0
  1861. package/src/palette/category10.ts +24 -0
  1862. package/src/palette/category20.ts +34 -0
  1863. package/src/palette/index.ts +2 -0
  1864. package/src/renderer/canvas.ts +27 -0
  1865. package/src/renderer/index.ts +1 -0
  1866. package/src/runtime/component.ts +189 -0
  1867. package/src/runtime/coordinate.ts +51 -0
  1868. package/src/runtime/index.ts +7 -0
  1869. package/src/runtime/layout.ts +180 -0
  1870. package/src/runtime/library.ts +27 -0
  1871. package/src/runtime/mark.ts +262 -0
  1872. package/src/runtime/plot.ts +832 -0
  1873. package/src/runtime/render.ts +81 -0
  1874. package/src/runtime/scale.ts +443 -0
  1875. package/src/runtime/types/common.ts +155 -0
  1876. package/src/runtime/types/component.ts +213 -0
  1877. package/src/runtime/types/encode.ts +32 -0
  1878. package/src/runtime/types/mark.ts +31 -0
  1879. package/src/runtime/types/options.ts +159 -0
  1880. package/src/runtime/types/transform.ts +34 -0
  1881. package/src/scale/band.ts +11 -0
  1882. package/src/scale/identity.ts +11 -0
  1883. package/src/scale/index.ts +11 -0
  1884. package/src/scale/linear.ts +11 -0
  1885. package/src/scale/log.ts +11 -0
  1886. package/src/scale/ordinal.ts +11 -0
  1887. package/src/scale/point.ts +12 -0
  1888. package/src/scale/pow.ts +11 -0
  1889. package/src/scale/quantile.ts +11 -0
  1890. package/src/scale/quantize.ts +11 -0
  1891. package/src/scale/threshold.ts +11 -0
  1892. package/src/scale/time.ts +11 -0
  1893. package/src/shape/annotation/badge.ts +114 -0
  1894. package/src/shape/annotation/connector.ts +138 -0
  1895. package/src/shape/annotation/line.ts +55 -0
  1896. package/src/shape/annotation/text.ts +224 -0
  1897. package/src/shape/area/area.ts +17 -0
  1898. package/src/shape/area/curveArea.ts +61 -0
  1899. package/src/shape/area/smoothArea.ts +25 -0
  1900. package/src/shape/edge/arc.ts +46 -0
  1901. package/src/shape/edge/edge.ts +15 -0
  1902. package/src/shape/edge/ribbon.ts +93 -0
  1903. package/src/shape/edge/smoothEdge.ts +41 -0
  1904. package/src/shape/edge/vhv.ts +85 -0
  1905. package/src/shape/image/image.ts +33 -0
  1906. package/src/shape/index.ts +66 -0
  1907. package/src/shape/interval/colorRect.ts +81 -0
  1908. package/src/shape/interval/funnel.ts +58 -0
  1909. package/src/shape/interval/hollowRect.ts +15 -0
  1910. package/src/shape/interval/pyramid.ts +50 -0
  1911. package/src/shape/interval/rect.ts +16 -0
  1912. package/src/shape/label/label.ts +33 -0
  1913. package/src/shape/line/curveLine.ts +44 -0
  1914. package/src/shape/line/hv.ts +13 -0
  1915. package/src/shape/line/hvh.ts +13 -0
  1916. package/src/shape/line/line.ts +13 -0
  1917. package/src/shape/line/smooth.ts +16 -0
  1918. package/src/shape/line/vh.ts +13 -0
  1919. package/src/shape/link/link.ts +51 -0
  1920. package/src/shape/node/point.ts +32 -0
  1921. package/src/shape/node/polygon.ts +12 -0
  1922. package/src/shape/point/bowtie.ts +15 -0
  1923. package/src/shape/point/colorPoint.ts +65 -0
  1924. package/src/shape/point/cross.ts +15 -0
  1925. package/src/shape/point/diamond.ts +15 -0
  1926. package/src/shape/point/hexagon.ts +15 -0
  1927. package/src/shape/point/hollowBowtie.ts +15 -0
  1928. package/src/shape/point/hollowDiamond.ts +19 -0
  1929. package/src/shape/point/hollowHexagon.ts +19 -0
  1930. package/src/shape/point/hollowPoint.ts +15 -0
  1931. package/src/shape/point/hollowSquare.ts +15 -0
  1932. package/src/shape/point/hollowTriangle.ts +19 -0
  1933. package/src/shape/point/hollowTriangleDown.ts +19 -0
  1934. package/src/shape/point/hyphen.ts +15 -0
  1935. package/src/shape/point/line.ts +15 -0
  1936. package/src/shape/point/plus.ts +15 -0
  1937. package/src/shape/point/point.ts +15 -0
  1938. package/src/shape/point/square.ts +15 -0
  1939. package/src/shape/point/symbol.ts +153 -0
  1940. package/src/shape/point/tick.ts +15 -0
  1941. package/src/shape/point/triangle.ts +15 -0
  1942. package/src/shape/point/triangleDown.ts +19 -0
  1943. package/src/shape/polygon/polygon.ts +67 -0
  1944. package/src/shape/schema/box.ts +96 -0
  1945. package/src/shape/text/text.ts +43 -0
  1946. package/src/shape/utils.ts +129 -0
  1947. package/src/shape/vector/vector.ts +51 -0
  1948. package/src/spec/action.ts +196 -0
  1949. package/src/spec/animate.ts +16 -0
  1950. package/src/spec/composition.ts +142 -0
  1951. package/src/spec/coordinate.ts +49 -0
  1952. package/src/spec/encode.ts +46 -0
  1953. package/src/spec/geometry.ts +167 -0
  1954. package/src/spec/index.ts +18 -0
  1955. package/src/spec/interaction.ts +115 -0
  1956. package/src/spec/palette.ts +18 -0
  1957. package/src/spec/scale.ts +78 -0
  1958. package/src/spec/statistic.ts +135 -0
  1959. package/src/spec/theme.ts +20 -0
  1960. package/src/spec/title.ts +3 -0
  1961. package/src/spec/transform.ts +223 -0
  1962. package/src/stdlib/index.ts +345 -0
  1963. package/src/theme/index.ts +1 -28
  1964. package/src/theme/light.ts +34 -0
  1965. package/src/transform/index.ts +47 -0
  1966. package/src/transform/inference/maybeArrayField.ts +55 -0
  1967. package/src/transform/inference/maybeKey.ts +29 -0
  1968. package/src/transform/inference/maybeSeries.ts +26 -0
  1969. package/src/transform/inference/maybeSize.ts +18 -0
  1970. package/src/transform/inference/maybeStackY.ts +38 -0
  1971. package/src/transform/inference/maybeTitleX.ts +26 -0
  1972. package/src/transform/inference/maybeTooltip.ts +35 -0
  1973. package/src/transform/inference/maybeTooltipPosition.ts +16 -0
  1974. package/src/transform/inference/maybeTooltipY.ts +16 -0
  1975. package/src/transform/inference/maybeZeroX.ts +18 -0
  1976. package/src/transform/inference/maybeZeroY.ts +18 -0
  1977. package/src/transform/inference/maybeZeroY1.ts +18 -0
  1978. package/src/transform/preprocessor/arc.ts +21 -0
  1979. package/src/transform/preprocessor/cluster.ts +56 -0
  1980. package/src/transform/preprocessor/connector.ts +22 -0
  1981. package/src/transform/preprocessor/fetch.ts +32 -0
  1982. package/src/transform/preprocessor/filterBy.ts +24 -0
  1983. package/src/transform/preprocessor/fold.ts +32 -0
  1984. package/src/transform/preprocessor/pick.ts +17 -0
  1985. package/src/transform/preprocessor/rename.ts +29 -0
  1986. package/src/transform/preprocessor/sankey.ts +105 -0
  1987. package/src/transform/preprocessor/sortBy.ts +28 -0
  1988. package/src/transform/preprocessor/subset.ts +40 -0
  1989. package/src/transform/preprocessor/tree.ts +12 -0
  1990. package/src/transform/preprocessor/voronoi.ts +30 -0
  1991. package/src/transform/preprocessor/wordCloud.ts +115 -0
  1992. package/src/transform/statistic/dodgeX.ts +56 -0
  1993. package/src/transform/statistic/groupX.ts +91 -0
  1994. package/src/transform/statistic/jitter.ts +49 -0
  1995. package/src/transform/statistic/jitterY.ts +32 -0
  1996. package/src/transform/statistic/normalizeY.ts +69 -0
  1997. package/src/transform/statistic/select.ts +58 -0
  1998. package/src/transform/statistic/selectX.ts +17 -0
  1999. package/src/transform/statistic/selectY.ts +17 -0
  2000. package/src/transform/statistic/stackEnter.ts +65 -0
  2001. package/src/transform/statistic/stackY.ts +58 -0
  2002. package/src/transform/statistic/symmetryY.ts +59 -0
  2003. package/src/transform/statistic/utils.ts +120 -0
  2004. package/src/transform/utils/arc/arc.ts +210 -0
  2005. package/src/transform/utils/arc/index.ts +2 -0
  2006. package/src/transform/utils/arc/sort.ts +15 -0
  2007. package/src/transform/utils/arc/types.ts +27 -0
  2008. package/src/transform/utils/d3-cloud/index.ts +499 -0
  2009. package/src/transform/utils/d3-sankey/align.ts +25 -0
  2010. package/src/transform/utils/d3-sankey/constant.ts +5 -0
  2011. package/src/transform/utils/d3-sankey/index.ts +12 -0
  2012. package/src/transform/utils/d3-sankey/sankey.ts +436 -0
  2013. package/src/transform/utils/flow.ts +36 -0
  2014. package/src/transform/utils/helper.ts +54 -0
  2015. package/src/transform/utils/memo.ts +79 -0
  2016. package/src/utils/array.ts +50 -0
  2017. package/src/utils/container.ts +21 -0
  2018. package/src/utils/coordinate.ts +24 -0
  2019. package/src/utils/helper.ts +69 -0
  2020. package/src/utils/selection.ts +403 -0
  2021. package/src/utils/vector.ts +47 -0
  2022. package/dist/g2.min.js.map +0 -1
  2023. package/esm/animate/animation/fade.d.ts +0 -21
  2024. package/esm/animate/animation/fade.js +0 -42
  2025. package/esm/animate/animation/fade.js.map +0 -1
  2026. package/esm/animate/animation/grow-in.d.ts +0 -30
  2027. package/esm/animate/animation/grow-in.js +0 -38
  2028. package/esm/animate/animation/grow-in.js.map +0 -1
  2029. package/esm/animate/animation/index.d.ts +0 -16
  2030. package/esm/animate/animation/index.js +0 -17
  2031. package/esm/animate/animation/index.js.map +0 -1
  2032. package/esm/animate/animation/path-in.d.ts +0 -12
  2033. package/esm/animate/animation/path-in.js +0 -21
  2034. package/esm/animate/animation/path-in.js.map +0 -1
  2035. package/esm/animate/animation/position-update.d.ts +0 -11
  2036. package/esm/animate/animation/position-update.js +0 -24
  2037. package/esm/animate/animation/position-update.js.map +0 -1
  2038. package/esm/animate/animation/scale-in.d.ts +0 -19
  2039. package/esm/animate/animation/scale-in.js +0 -60
  2040. package/esm/animate/animation/scale-in.js.map +0 -1
  2041. package/esm/animate/animation/sector-path-update.d.ts +0 -27
  2042. package/esm/animate/animation/sector-path-update.js +0 -131
  2043. package/esm/animate/animation/sector-path-update.js.map +0 -1
  2044. package/esm/animate/animation/util.d.ts +0 -19
  2045. package/esm/animate/animation/util.js +0 -89
  2046. package/esm/animate/animation/util.js.map +0 -1
  2047. package/esm/animate/animation/wave-in.d.ts +0 -13
  2048. package/esm/animate/animation/wave-in.js +0 -30
  2049. package/esm/animate/animation/wave-in.js.map +0 -1
  2050. package/esm/animate/animation/zoom.d.ts +0 -21
  2051. package/esm/animate/animation/zoom.js +0 -66
  2052. package/esm/animate/animation/zoom.js.map +0 -1
  2053. package/esm/animate/index.d.ts +0 -48
  2054. package/esm/animate/index.js +0 -249
  2055. package/esm/animate/index.js.map +0 -1
  2056. package/esm/animate/interface.d.ts +0 -18
  2057. package/esm/animate/interface.js +0 -2
  2058. package/esm/animate/interface.js.map +0 -1
  2059. package/esm/api.d.ts +0 -2
  2060. package/esm/api.js +0 -3
  2061. package/esm/api.js.map +0 -1
  2062. package/esm/base.d.ts +0 -33
  2063. package/esm/base.js +0 -55
  2064. package/esm/base.js.map +0 -1
  2065. package/esm/chart/chart.d.ts +0 -61
  2066. package/esm/chart/chart.js +0 -157
  2067. package/esm/chart/chart.js.map +0 -1
  2068. package/esm/chart/controller/annotation.d.ts +0 -162
  2069. package/esm/chart/controller/annotation.js +0 -591
  2070. package/esm/chart/controller/annotation.js.map +0 -1
  2071. package/esm/chart/controller/axis.d.ts +0 -93
  2072. package/esm/chart/controller/axis.js +0 -578
  2073. package/esm/chart/controller/axis.js.map +0 -1
  2074. package/esm/chart/controller/base.d.ts +0 -64
  2075. package/esm/chart/controller/base.js +0 -62
  2076. package/esm/chart/controller/base.js.map +0 -1
  2077. package/esm/chart/controller/coordinate.d.ts +0 -74
  2078. package/esm/chart/controller/coordinate.js +0 -145
  2079. package/esm/chart/controller/coordinate.js.map +0 -1
  2080. package/esm/chart/controller/gesture.d.ts +0 -37
  2081. package/esm/chart/controller/gesture.js +0 -258
  2082. package/esm/chart/controller/gesture.js.map +0 -1
  2083. package/esm/chart/controller/index.d.ts +0 -25
  2084. package/esm/chart/controller/index.js +0 -34
  2085. package/esm/chart/controller/index.js.map +0 -1
  2086. package/esm/chart/controller/legend.d.ts +0 -106
  2087. package/esm/chart/controller/legend.js +0 -484
  2088. package/esm/chart/controller/legend.js.map +0 -1
  2089. package/esm/chart/controller/scrollbar.d.ts +0 -64
  2090. package/esm/chart/controller/scrollbar.js +0 -316
  2091. package/esm/chart/controller/scrollbar.js.map +0 -1
  2092. package/esm/chart/controller/slider.d.ts +0 -88
  2093. package/esm/chart/controller/slider.js +0 -296
  2094. package/esm/chart/controller/slider.js.map +0 -1
  2095. package/esm/chart/controller/tooltip.d.ts +0 -68
  2096. package/esm/chart/controller/tooltip.js +0 -692
  2097. package/esm/chart/controller/tooltip.js.map +0 -1
  2098. package/esm/chart/event.d.ts +0 -47
  2099. package/esm/chart/event.js +0 -91
  2100. package/esm/chart/event.js.map +0 -1
  2101. package/esm/chart/index.d.ts +0 -4
  2102. package/esm/chart/index.js +0 -5
  2103. package/esm/chart/index.js.map +0 -1
  2104. package/esm/chart/layout/auto.d.ts +0 -8
  2105. package/esm/chart/layout/auto.js +0 -64
  2106. package/esm/chart/layout/auto.js.map +0 -1
  2107. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  2108. package/esm/chart/layout/constraint/bounds.js +0 -30
  2109. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  2110. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  2111. package/esm/chart/layout/constraint/constraint.js +0 -82
  2112. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  2113. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  2114. package/esm/chart/layout/constraint/gauss.js +0 -63
  2115. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  2116. package/esm/chart/layout/constraint/index.d.ts +0 -5
  2117. package/esm/chart/layout/constraint/index.js +0 -30
  2118. package/esm/chart/layout/constraint/index.js.map +0 -1
  2119. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  2120. package/esm/chart/layout/constraint/solver.js +0 -78
  2121. package/esm/chart/layout/constraint/solver.js.map +0 -1
  2122. package/esm/chart/layout/constraint/types.d.ts +0 -21
  2123. package/esm/chart/layout/constraint/types.js +0 -13
  2124. package/esm/chart/layout/constraint/types.js.map +0 -1
  2125. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  2126. package/esm/chart/layout/constraint/variable.js +0 -28
  2127. package/esm/chart/layout/constraint/variable.js.map +0 -1
  2128. package/esm/chart/layout/index.d.ts +0 -15
  2129. package/esm/chart/layout/index.js +0 -26
  2130. package/esm/chart/layout/index.js.map +0 -1
  2131. package/esm/chart/layout/padding-cal.d.ts +0 -53
  2132. package/esm/chart/layout/padding-cal.js +0 -108
  2133. package/esm/chart/layout/padding-cal.js.map +0 -1
  2134. package/esm/chart/util/scale-pool.d.ts +0 -57
  2135. package/esm/chart/util/scale-pool.js +0 -212
  2136. package/esm/chart/util/scale-pool.js.map +0 -1
  2137. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  2138. package/esm/chart/util/sync-view-padding.js +0 -14
  2139. package/esm/chart/util/sync-view-padding.js.map +0 -1
  2140. package/esm/chart/view.d.ts +0 -747
  2141. package/esm/chart/view.js +0 -1636
  2142. package/esm/chart/view.js.map +0 -1
  2143. package/esm/component/labels.d.ts +0 -46
  2144. package/esm/component/labels.js +0 -305
  2145. package/esm/component/labels.js.map +0 -1
  2146. package/esm/component/update-label.d.ts +0 -21
  2147. package/esm/component/update-label.js +0 -57
  2148. package/esm/component/update-label.js.map +0 -1
  2149. package/esm/constant.d.ts +0 -124
  2150. package/esm/constant.js +0 -136
  2151. package/esm/constant.js.map +0 -1
  2152. package/esm/core.d.ts +0 -46
  2153. package/esm/core.js +0 -60
  2154. package/esm/core.js.map +0 -1
  2155. package/esm/dependents.d.ts +0 -21
  2156. package/esm/dependents.js +0 -33
  2157. package/esm/dependents.js.map +0 -1
  2158. package/esm/engine/index.d.ts +0 -13
  2159. package/esm/engine/index.js +0 -22
  2160. package/esm/engine/index.js.map +0 -1
  2161. package/esm/facet/circle.d.ts +0 -36
  2162. package/esm/facet/circle.js +0 -119
  2163. package/esm/facet/circle.js.map +0 -1
  2164. package/esm/facet/facet.d.ts +0 -165
  2165. package/esm/facet/facet.js +0 -292
  2166. package/esm/facet/facet.js.map +0 -1
  2167. package/esm/facet/index.d.ts +0 -13
  2168. package/esm/facet/index.js +0 -22
  2169. package/esm/facet/index.js.map +0 -1
  2170. package/esm/facet/list.d.ts +0 -46
  2171. package/esm/facet/list.js +0 -134
  2172. package/esm/facet/list.js.map +0 -1
  2173. package/esm/facet/matrix.d.ts +0 -34
  2174. package/esm/facet/matrix.js +0 -119
  2175. package/esm/facet/matrix.js.map +0 -1
  2176. package/esm/facet/mirror.d.ts +0 -31
  2177. package/esm/facet/mirror.js +0 -144
  2178. package/esm/facet/mirror.js.map +0 -1
  2179. package/esm/facet/rect.d.ts +0 -35
  2180. package/esm/facet/rect.js +0 -141
  2181. package/esm/facet/rect.js.map +0 -1
  2182. package/esm/facet/tree.d.ts +0 -40
  2183. package/esm/facet/tree.js +0 -298
  2184. package/esm/facet/tree.js.map +0 -1
  2185. package/esm/geometry/area.d.ts +0 -46
  2186. package/esm/geometry/area.js +0 -62
  2187. package/esm/geometry/area.js.map +0 -1
  2188. package/esm/geometry/base.d.ts +0 -796
  2189. package/esm/geometry/base.js +0 -1556
  2190. package/esm/geometry/base.js.map +0 -1
  2191. package/esm/geometry/edge.d.ts +0 -15
  2192. package/esm/geometry/edge.js +0 -24
  2193. package/esm/geometry/edge.js.map +0 -1
  2194. package/esm/geometry/element/index.d.ts +0 -127
  2195. package/esm/geometry/element/index.js +0 -438
  2196. package/esm/geometry/element/index.js.map +0 -1
  2197. package/esm/geometry/heatmap.d.ts +0 -31
  2198. package/esm/geometry/heatmap.js +0 -200
  2199. package/esm/geometry/heatmap.js.map +0 -1
  2200. package/esm/geometry/interval.d.ts +0 -41
  2201. package/esm/geometry/interval.js +0 -98
  2202. package/esm/geometry/interval.js.map +0 -1
  2203. package/esm/geometry/label/base.d.ts +0 -76
  2204. package/esm/geometry/label/base.js +0 -416
  2205. package/esm/geometry/label/base.js.map +0 -1
  2206. package/esm/geometry/label/index.d.ts +0 -38
  2207. package/esm/geometry/label/index.js +0 -35
  2208. package/esm/geometry/label/index.js.map +0 -1
  2209. package/esm/geometry/label/interface.d.ts +0 -62
  2210. package/esm/geometry/label/interface.js +0 -2
  2211. package/esm/geometry/label/interface.js.map +0 -1
  2212. package/esm/geometry/label/interval.d.ts +0 -27
  2213. package/esm/geometry/label/interval.js +0 -146
  2214. package/esm/geometry/label/interval.js.map +0 -1
  2215. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  2216. package/esm/geometry/label/layout/adjust-color.js +0 -36
  2217. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  2218. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  2219. package/esm/geometry/label/layout/hide-overlap.js +0 -75
  2220. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  2221. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2222. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  2223. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2224. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2225. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -79
  2226. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2227. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2228. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  2229. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2230. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2231. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  2232. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  2233. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2234. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  2235. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  2236. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  2237. package/esm/geometry/label/layout/overlap.js +0 -223
  2238. package/esm/geometry/label/layout/overlap.js.map +0 -1
  2239. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  2240. package/esm/geometry/label/layout/path/adjust-position.js +0 -95
  2241. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  2242. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  2243. package/esm/geometry/label/layout/pie/distribute.js +0 -196
  2244. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  2245. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  2246. package/esm/geometry/label/layout/pie/outer.js +0 -218
  2247. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  2248. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  2249. package/esm/geometry/label/layout/pie/spider.js +0 -193
  2250. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  2251. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  2252. package/esm/geometry/label/layout/pie/util.js +0 -73
  2253. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  2254. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  2255. package/esm/geometry/label/layout/point/adjust-position.js +0 -95
  2256. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  2257. package/esm/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  2258. package/esm/geometry/label/layout/worker/hide-overlap.js +0 -155
  2259. package/esm/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  2260. package/esm/geometry/label/pie.d.ts +0 -22
  2261. package/esm/geometry/label/pie.js +0 -95
  2262. package/esm/geometry/label/pie.js.map +0 -1
  2263. package/esm/geometry/label/polar.d.ts +0 -64
  2264. package/esm/geometry/label/polar.js +0 -221
  2265. package/esm/geometry/label/polar.js.map +0 -1
  2266. package/esm/geometry/label/util/createWorker.d.ts +0 -1
  2267. package/esm/geometry/label/util/createWorker.js +0 -16
  2268. package/esm/geometry/label/util/createWorker.js.map +0 -1
  2269. package/esm/geometry/label/util/index.d.ts +0 -28
  2270. package/esm/geometry/label/util/index.js +0 -62
  2271. package/esm/geometry/label/util/index.js.map +0 -1
  2272. package/esm/geometry/line.d.ts +0 -11
  2273. package/esm/geometry/line.js +0 -21
  2274. package/esm/geometry/line.js.map +0 -1
  2275. package/esm/geometry/path.d.ts +0 -40
  2276. package/esm/geometry/path.js +0 -150
  2277. package/esm/geometry/path.js.map +0 -1
  2278. package/esm/geometry/point.d.ts +0 -19
  2279. package/esm/geometry/point.js +0 -30
  2280. package/esm/geometry/point.js.map +0 -1
  2281. package/esm/geometry/polygon.d.ts +0 -19
  2282. package/esm/geometry/polygon.js +0 -62
  2283. package/esm/geometry/polygon.js.map +0 -1
  2284. package/esm/geometry/schema.d.ts +0 -18
  2285. package/esm/geometry/schema.js +0 -48
  2286. package/esm/geometry/schema.js.map +0 -1
  2287. package/esm/geometry/shape/area/index.d.ts +0 -2
  2288. package/esm/geometry/shape/area/index.js +0 -44
  2289. package/esm/geometry/shape/area/index.js.map +0 -1
  2290. package/esm/geometry/shape/area/line.d.ts +0 -1
  2291. package/esm/geometry/shape/area/line.js +0 -31
  2292. package/esm/geometry/shape/area/line.js.map +0 -1
  2293. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  2294. package/esm/geometry/shape/area/smooth-line.js +0 -30
  2295. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  2296. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  2297. package/esm/geometry/shape/area/smooth.js +0 -31
  2298. package/esm/geometry/shape/area/smooth.js.map +0 -1
  2299. package/esm/geometry/shape/area/util.d.ts +0 -22
  2300. package/esm/geometry/shape/area/util.js +0 -88
  2301. package/esm/geometry/shape/area/util.js.map +0 -1
  2302. package/esm/geometry/shape/base.d.ts +0 -22
  2303. package/esm/geometry/shape/base.js +0 -162
  2304. package/esm/geometry/shape/base.js.map +0 -1
  2305. package/esm/geometry/shape/constant.d.ts +0 -4
  2306. package/esm/geometry/shape/constant.js +0 -5
  2307. package/esm/geometry/shape/constant.js.map +0 -1
  2308. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  2309. package/esm/geometry/shape/edge/arc.js +0 -84
  2310. package/esm/geometry/shape/edge/arc.js.map +0 -1
  2311. package/esm/geometry/shape/edge/index.d.ts +0 -2
  2312. package/esm/geometry/shape/edge/index.js +0 -31
  2313. package/esm/geometry/shape/edge/index.js.map +0 -1
  2314. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  2315. package/esm/geometry/shape/edge/smooth.js +0 -30
  2316. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  2317. package/esm/geometry/shape/edge/util.d.ts +0 -17
  2318. package/esm/geometry/shape/edge/util.js +0 -32
  2319. package/esm/geometry/shape/edge/util.js.map +0 -1
  2320. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  2321. package/esm/geometry/shape/edge/vhv.js +0 -42
  2322. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  2323. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  2324. package/esm/geometry/shape/interval/funnel.js +0 -31
  2325. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  2326. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  2327. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  2328. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  2329. package/esm/geometry/shape/interval/index.d.ts +0 -3
  2330. package/esm/geometry/shape/interval/index.js +0 -63
  2331. package/esm/geometry/shape/interval/index.js.map +0 -1
  2332. package/esm/geometry/shape/interval/line.d.ts +0 -1
  2333. package/esm/geometry/shape/interval/line.js +0 -54
  2334. package/esm/geometry/shape/interval/line.js.map +0 -1
  2335. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  2336. package/esm/geometry/shape/interval/pyramid.js +0 -31
  2337. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  2338. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  2339. package/esm/geometry/shape/interval/tick.js +0 -78
  2340. package/esm/geometry/shape/interval/tick.js.map +0 -1
  2341. package/esm/geometry/shape/interval/util.d.ts +0 -55
  2342. package/esm/geometry/shape/interval/util.js +0 -318
  2343. package/esm/geometry/shape/interval/util.js.map +0 -1
  2344. package/esm/geometry/shape/line/index.d.ts +0 -8
  2345. package/esm/geometry/shape/line/index.js +0 -105
  2346. package/esm/geometry/shape/line/index.js.map +0 -1
  2347. package/esm/geometry/shape/line/step.d.ts +0 -1
  2348. package/esm/geometry/shape/line/step.js +0 -84
  2349. package/esm/geometry/shape/line/step.js.map +0 -1
  2350. package/esm/geometry/shape/line/util.d.ts +0 -16
  2351. package/esm/geometry/shape/line/util.js +0 -83
  2352. package/esm/geometry/shape/line/util.js.map +0 -1
  2353. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  2354. package/esm/geometry/shape/point/hollow.js +0 -24
  2355. package/esm/geometry/shape/point/hollow.js.map +0 -1
  2356. package/esm/geometry/shape/point/image.d.ts +0 -1
  2357. package/esm/geometry/shape/point/image.js +0 -59
  2358. package/esm/geometry/shape/point/image.js.map +0 -1
  2359. package/esm/geometry/shape/point/index.d.ts +0 -2
  2360. package/esm/geometry/shape/point/index.js +0 -32
  2361. package/esm/geometry/shape/point/index.js.map +0 -1
  2362. package/esm/geometry/shape/point/solid.d.ts +0 -1
  2363. package/esm/geometry/shape/point/solid.js +0 -23
  2364. package/esm/geometry/shape/point/solid.js.map +0 -1
  2365. package/esm/geometry/shape/point/util.d.ts +0 -15
  2366. package/esm/geometry/shape/point/util.js +0 -49
  2367. package/esm/geometry/shape/point/util.js.map +0 -1
  2368. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  2369. package/esm/geometry/shape/polygon/index.js +0 -65
  2370. package/esm/geometry/shape/polygon/index.js.map +0 -1
  2371. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  2372. package/esm/geometry/shape/polygon/square.js +0 -44
  2373. package/esm/geometry/shape/polygon/square.js.map +0 -1
  2374. package/esm/geometry/shape/schema/box.d.ts +0 -1
  2375. package/esm/geometry/shape/schema/box.js +0 -142
  2376. package/esm/geometry/shape/schema/box.js.map +0 -1
  2377. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  2378. package/esm/geometry/shape/schema/candle.js +0 -80
  2379. package/esm/geometry/shape/schema/candle.js.map +0 -1
  2380. package/esm/geometry/shape/schema/index.d.ts +0 -2
  2381. package/esm/geometry/shape/schema/index.js +0 -6
  2382. package/esm/geometry/shape/schema/index.js.map +0 -1
  2383. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  2384. package/esm/geometry/shape/util/get-path-points.js +0 -131
  2385. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  2386. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  2387. package/esm/geometry/shape/util/get-style.js +0 -47
  2388. package/esm/geometry/shape/util/get-style.js.map +0 -1
  2389. package/esm/geometry/shape/util/path.d.ts +0 -32
  2390. package/esm/geometry/shape/util/path.js +0 -313
  2391. package/esm/geometry/shape/util/path.js.map +0 -1
  2392. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  2393. package/esm/geometry/shape/util/split-points.js +0 -24
  2394. package/esm/geometry/shape/util/split-points.js.map +0 -1
  2395. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  2396. package/esm/geometry/shape/violin/hollow.js +0 -51
  2397. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  2398. package/esm/geometry/shape/violin/index.d.ts +0 -2
  2399. package/esm/geometry/shape/violin/index.js +0 -60
  2400. package/esm/geometry/shape/violin/index.js.map +0 -1
  2401. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  2402. package/esm/geometry/shape/violin/smooth.js +0 -28
  2403. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  2404. package/esm/geometry/util/diff.d.ts +0 -11
  2405. package/esm/geometry/util/diff.js +0 -30
  2406. package/esm/geometry/util/diff.js.map +0 -1
  2407. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  2408. package/esm/geometry/util/get-shape-type.js +0 -16
  2409. package/esm/geometry/util/get-shape-type.js.map +0 -1
  2410. package/esm/geometry/util/group-data.d.ts +0 -3
  2411. package/esm/geometry/util/group-data.js +0 -42
  2412. package/esm/geometry/util/group-data.js.map +0 -1
  2413. package/esm/geometry/util/is-model-change.d.ts +0 -9
  2414. package/esm/geometry/util/is-model-change.js +0 -14
  2415. package/esm/geometry/util/is-model-change.js.map +0 -1
  2416. package/esm/geometry/util/parse-fields.d.ts +0 -2
  2417. package/esm/geometry/util/parse-fields.js +0 -9
  2418. package/esm/geometry/util/parse-fields.js.map +0 -1
  2419. package/esm/geometry/util/shape-size.d.ts +0 -2
  2420. package/esm/geometry/util/shape-size.js +0 -124
  2421. package/esm/geometry/util/shape-size.js.map +0 -1
  2422. package/esm/geometry/violin.d.ts +0 -25
  2423. package/esm/geometry/violin.js +0 -67
  2424. package/esm/geometry/violin.js.map +0 -1
  2425. package/esm/interaction/action/active-region.d.ts +0 -33
  2426. package/esm/interaction/action/active-region.js +0 -226
  2427. package/esm/interaction/action/active-region.js.map +0 -1
  2428. package/esm/interaction/action/base.d.ts +0 -29
  2429. package/esm/interaction/action/base.js +0 -36
  2430. package/esm/interaction/action/base.js.map +0 -1
  2431. package/esm/interaction/action/callback.d.ts +0 -17
  2432. package/esm/interaction/action/callback.js +0 -27
  2433. package/esm/interaction/action/callback.js.map +0 -1
  2434. package/esm/interaction/action/component/axis/axis-description.d.ts +0 -9
  2435. package/esm/interaction/action/component/axis/axis-description.js +0 -73
  2436. package/esm/interaction/action/component/axis/axis-description.js.map +0 -1
  2437. package/esm/interaction/action/component/list-active.d.ts +0 -14
  2438. package/esm/interaction/action/component/list-active.js +0 -24
  2439. package/esm/interaction/action/component/list-active.js.map +0 -1
  2440. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  2441. package/esm/interaction/action/component/list-checked.js +0 -82
  2442. package/esm/interaction/action/component/list-checked.js.map +0 -1
  2443. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  2444. package/esm/interaction/action/component/list-focus.js +0 -92
  2445. package/esm/interaction/action/component/list-focus.js.map +0 -1
  2446. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  2447. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  2448. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  2449. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  2450. package/esm/interaction/action/component/list-highlight.js +0 -97
  2451. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  2452. package/esm/interaction/action/component/list-radio.d.ts +0 -24
  2453. package/esm/interaction/action/component/list-radio.js +0 -116
  2454. package/esm/interaction/action/component/list-radio.js.map +0 -1
  2455. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  2456. package/esm/interaction/action/component/list-selected.js +0 -20
  2457. package/esm/interaction/action/component/list-selected.js.map +0 -1
  2458. package/esm/interaction/action/component/list-state.d.ts +0 -46
  2459. package/esm/interaction/action/component/list-state.js +0 -167
  2460. package/esm/interaction/action/component/list-state.js.map +0 -1
  2461. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  2462. package/esm/interaction/action/component/list-unchecked.js +0 -23
  2463. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  2464. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  2465. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  2466. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  2467. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  2468. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  2469. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  2470. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  2471. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  2472. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  2473. package/esm/interaction/action/cursor.d.ts +0 -69
  2474. package/esm/interaction/action/cursor.js +0 -113
  2475. package/esm/interaction/action/cursor.js.map +0 -1
  2476. package/esm/interaction/action/data/filter.d.ts +0 -13
  2477. package/esm/interaction/action/data/filter.js +0 -66
  2478. package/esm/interaction/action/data/filter.js.map +0 -1
  2479. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  2480. package/esm/interaction/action/data/range-filter.js +0 -163
  2481. package/esm/interaction/action/data/range-filter.js.map +0 -1
  2482. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  2483. package/esm/interaction/action/data/sibling-filter.js +0 -39
  2484. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  2485. package/esm/interaction/action/element/active.d.ts +0 -14
  2486. package/esm/interaction/action/element/active.js +0 -24
  2487. package/esm/interaction/action/element/active.js.map +0 -1
  2488. package/esm/interaction/action/element/filter.d.ts +0 -20
  2489. package/esm/interaction/action/element/filter.js +0 -89
  2490. package/esm/interaction/action/element/filter.js.map +0 -1
  2491. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  2492. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  2493. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  2494. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  2495. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  2496. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  2497. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  2498. package/esm/interaction/action/element/highlight-util.js +0 -45
  2499. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  2500. package/esm/interaction/action/element/highlight.d.ts +0 -21
  2501. package/esm/interaction/action/element/highlight.js +0 -93
  2502. package/esm/interaction/action/element/highlight.js.map +0 -1
  2503. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  2504. package/esm/interaction/action/element/link-by-color.js +0 -156
  2505. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  2506. package/esm/interaction/action/element/range-active.d.ts +0 -13
  2507. package/esm/interaction/action/element/range-active.js +0 -23
  2508. package/esm/interaction/action/element/range-active.js.map +0 -1
  2509. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  2510. package/esm/interaction/action/element/range-highlight.js +0 -54
  2511. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  2512. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  2513. package/esm/interaction/action/element/range-selected.js +0 -23
  2514. package/esm/interaction/action/element/range-selected.js.map +0 -1
  2515. package/esm/interaction/action/element/range-state.d.ts +0 -38
  2516. package/esm/interaction/action/element/range-state.js +0 -164
  2517. package/esm/interaction/action/element/range-state.js.map +0 -1
  2518. package/esm/interaction/action/element/selected.d.ts +0 -14
  2519. package/esm/interaction/action/element/selected.js +0 -24
  2520. package/esm/interaction/action/element/selected.js.map +0 -1
  2521. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  2522. package/esm/interaction/action/element/sibling-filter.js +0 -93
  2523. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  2524. package/esm/interaction/action/element/single-active.d.ts +0 -13
  2525. package/esm/interaction/action/element/single-active.js +0 -23
  2526. package/esm/interaction/action/element/single-active.js.map +0 -1
  2527. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  2528. package/esm/interaction/action/element/single-highlight.js +0 -35
  2529. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  2530. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  2531. package/esm/interaction/action/element/single-selected.js +0 -23
  2532. package/esm/interaction/action/element/single-selected.js.map +0 -1
  2533. package/esm/interaction/action/element/single-state.d.ts +0 -18
  2534. package/esm/interaction/action/element/single-state.js +0 -53
  2535. package/esm/interaction/action/element/single-state.js.map +0 -1
  2536. package/esm/interaction/action/element/state-base.d.ts +0 -39
  2537. package/esm/interaction/action/element/state-base.js +0 -59
  2538. package/esm/interaction/action/element/state-base.js.map +0 -1
  2539. package/esm/interaction/action/element/state.d.ts +0 -28
  2540. package/esm/interaction/action/element/state.js +0 -99
  2541. package/esm/interaction/action/element/state.js.map +0 -1
  2542. package/esm/interaction/action/mask/base.d.ts +0 -62
  2543. package/esm/interaction/action/mask/base.js +0 -169
  2544. package/esm/interaction/action/mask/base.js.map +0 -1
  2545. package/esm/interaction/action/mask/circle.d.ts +0 -14
  2546. package/esm/interaction/action/mask/circle.js +0 -37
  2547. package/esm/interaction/action/mask/circle.js.map +0 -1
  2548. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  2549. package/esm/interaction/action/mask/dim-rect.js +0 -62
  2550. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  2551. package/esm/interaction/action/mask/path.d.ts +0 -16
  2552. package/esm/interaction/action/mask/path.js +0 -44
  2553. package/esm/interaction/action/mask/path.js.map +0 -1
  2554. package/esm/interaction/action/mask/rect.d.ts +0 -17
  2555. package/esm/interaction/action/mask/rect.js +0 -39
  2556. package/esm/interaction/action/mask/rect.js.map +0 -1
  2557. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  2558. package/esm/interaction/action/mask/smooth-path.js +0 -21
  2559. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  2560. package/esm/interaction/action/register.d.ts +0 -36
  2561. package/esm/interaction/action/register.js +0 -60
  2562. package/esm/interaction/action/register.js.map +0 -1
  2563. package/esm/interaction/action/util.d.ts +0 -140
  2564. package/esm/interaction/action/util.js +0 -361
  2565. package/esm/interaction/action/util.js.map +0 -1
  2566. package/esm/interaction/action/view/button.d.ts +0 -25
  2567. package/esm/interaction/action/view/button.js +0 -116
  2568. package/esm/interaction/action/view/button.js.map +0 -1
  2569. package/esm/interaction/action/view/drag.d.ts +0 -24
  2570. package/esm/interaction/action/view/drag.js +0 -73
  2571. package/esm/interaction/action/view/drag.js.map +0 -1
  2572. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  2573. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  2574. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  2575. package/esm/interaction/action/view/move.d.ts +0 -28
  2576. package/esm/interaction/action/view/move.js +0 -80
  2577. package/esm/interaction/action/view/move.js.map +0 -1
  2578. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  2579. package/esm/interaction/action/view/scale-transform.js +0 -51
  2580. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  2581. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  2582. package/esm/interaction/action/view/scale-translate.js +0 -112
  2583. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  2584. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  2585. package/esm/interaction/action/view/scale-zoom.js +0 -83
  2586. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  2587. package/esm/interaction/context.d.ts +0 -65
  2588. package/esm/interaction/context.js +0 -142
  2589. package/esm/interaction/context.js.map +0 -1
  2590. package/esm/interaction/grammar-interaction.d.ts +0 -158
  2591. package/esm/interaction/grammar-interaction.js +0 -285
  2592. package/esm/interaction/grammar-interaction.js.map +0 -1
  2593. package/esm/interaction/interaction.d.ts +0 -29
  2594. package/esm/interaction/interaction.js +0 -32
  2595. package/esm/interaction/interaction.js.map +0 -1
  2596. package/esm/interface.d.ts +0 -3686
  2597. package/esm/interface.js +0 -2
  2598. package/esm/interface.js.map +0 -1
  2599. package/esm/theme/style-sheet/dark.d.ts +0 -545
  2600. package/esm/theme/style-sheet/dark.js +0 -500
  2601. package/esm/theme/style-sheet/dark.js.map +0 -1
  2602. package/esm/theme/style-sheet/light.d.ts +0 -541
  2603. package/esm/theme/style-sheet/light.js +0 -496
  2604. package/esm/theme/style-sheet/light.js.map +0 -1
  2605. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  2606. package/esm/theme/util/create-by-style-sheet.js +0 -1425
  2607. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  2608. package/esm/theme/util/create-theme.d.ts +0 -6
  2609. package/esm/theme/util/create-theme.js +0 -12
  2610. package/esm/theme/util/create-theme.js.map +0 -1
  2611. package/esm/theme/util/index.d.ts +0 -1
  2612. package/esm/theme/util/index.js +0 -2
  2613. package/esm/theme/util/index.js.map +0 -1
  2614. package/esm/util/annotation.d.ts +0 -7
  2615. package/esm/util/annotation.js +0 -39
  2616. package/esm/util/annotation.js.map +0 -1
  2617. package/esm/util/attr.d.ts +0 -10
  2618. package/esm/util/attr.js +0 -25
  2619. package/esm/util/attr.js.map +0 -1
  2620. package/esm/util/axis.d.ts +0 -100
  2621. package/esm/util/axis.js +0 -236
  2622. package/esm/util/axis.js.map +0 -1
  2623. package/esm/util/bbox.d.ts +0 -105
  2624. package/esm/util/bbox.js +0 -283
  2625. package/esm/util/bbox.js.map +0 -1
  2626. package/esm/util/collision-detect.d.ts +0 -20
  2627. package/esm/util/collision-detect.js +0 -129
  2628. package/esm/util/collision-detect.js.map +0 -1
  2629. package/esm/util/color.d.ts +0 -1
  2630. package/esm/util/color.js +0 -19
  2631. package/esm/util/color.js.map +0 -1
  2632. package/esm/util/context.d.ts +0 -4
  2633. package/esm/util/context.js +0 -11
  2634. package/esm/util/context.js.map +0 -1
  2635. package/esm/util/coordinate.d.ts +0 -86
  2636. package/esm/util/coordinate.js +0 -147
  2637. package/esm/util/coordinate.js.map +0 -1
  2638. package/esm/util/direction.d.ts +0 -19
  2639. package/esm/util/direction.js +0 -120
  2640. package/esm/util/direction.js.map +0 -1
  2641. package/esm/util/dom.d.ts +0 -19
  2642. package/esm/util/dom.js +0 -61
  2643. package/esm/util/dom.js.map +0 -1
  2644. package/esm/util/event.d.ts +0 -8
  2645. package/esm/util/event.js +0 -14
  2646. package/esm/util/event.js.map +0 -1
  2647. package/esm/util/facet.d.ts +0 -16
  2648. package/esm/util/facet.js +0 -43
  2649. package/esm/util/facet.js.map +0 -1
  2650. package/esm/util/graphics.d.ts +0 -58
  2651. package/esm/util/graphics.js +0 -203
  2652. package/esm/util/graphics.js.map +0 -1
  2653. package/esm/util/grid.d.ts +0 -36
  2654. package/esm/util/grid.js +0 -118
  2655. package/esm/util/grid.js.map +0 -1
  2656. package/esm/util/helper.d.ts +0 -34
  2657. package/esm/util/helper.js +0 -83
  2658. package/esm/util/helper.js.map +0 -1
  2659. package/esm/util/legend.d.ts +0 -45
  2660. package/esm/util/legend.js +0 -145
  2661. package/esm/util/legend.js.map +0 -1
  2662. package/esm/util/marker.d.ts +0 -10
  2663. package/esm/util/marker.js +0 -58
  2664. package/esm/util/marker.js.map +0 -1
  2665. package/esm/util/padding.d.ts +0 -14
  2666. package/esm/util/padding.js +0 -40
  2667. package/esm/util/padding.js.map +0 -1
  2668. package/esm/util/scale.d.ts +0 -42
  2669. package/esm/util/scale.js +0 -129
  2670. package/esm/util/scale.js.map +0 -1
  2671. package/esm/util/stat.d.ts +0 -10
  2672. package/esm/util/stat.js +0 -36
  2673. package/esm/util/stat.js.map +0 -1
  2674. package/esm/util/text.d.ts +0 -23
  2675. package/esm/util/text.js +0 -84
  2676. package/esm/util/text.js.map +0 -1
  2677. package/esm/util/tooltip.d.ts +0 -26
  2678. package/esm/util/tooltip.js +0 -469
  2679. package/esm/util/tooltip.js.map +0 -1
  2680. package/esm/util/transform.d.ts +0 -33
  2681. package/esm/util/transform.js +0 -61
  2682. package/esm/util/transform.js.map +0 -1
  2683. package/esm/util/types.d.ts +0 -6
  2684. package/esm/util/types.js.map +0 -1
  2685. package/lib/animate/animation/fade.d.ts +0 -21
  2686. package/lib/animate/animation/fade.js +0 -47
  2687. package/lib/animate/animation/fade.js.map +0 -1
  2688. package/lib/animate/animation/grow-in.d.ts +0 -30
  2689. package/lib/animate/animation/grow-in.js +0 -44
  2690. package/lib/animate/animation/grow-in.js.map +0 -1
  2691. package/lib/animate/animation/index.d.ts +0 -16
  2692. package/lib/animate/animation/index.js +0 -22
  2693. package/lib/animate/animation/index.js.map +0 -1
  2694. package/lib/animate/animation/path-in.d.ts +0 -12
  2695. package/lib/animate/animation/path-in.js +0 -25
  2696. package/lib/animate/animation/path-in.js.map +0 -1
  2697. package/lib/animate/animation/position-update.d.ts +0 -11
  2698. package/lib/animate/animation/position-update.js +0 -28
  2699. package/lib/animate/animation/position-update.js.map +0 -1
  2700. package/lib/animate/animation/scale-in.d.ts +0 -19
  2701. package/lib/animate/animation/scale-in.js +0 -65
  2702. package/lib/animate/animation/scale-in.js.map +0 -1
  2703. package/lib/animate/animation/sector-path-update.d.ts +0 -27
  2704. package/lib/animate/animation/sector-path-update.js +0 -136
  2705. package/lib/animate/animation/sector-path-update.js.map +0 -1
  2706. package/lib/animate/animation/util.d.ts +0 -19
  2707. package/lib/animate/animation/util.js +0 -94
  2708. package/lib/animate/animation/util.js.map +0 -1
  2709. package/lib/animate/animation/wave-in.d.ts +0 -13
  2710. package/lib/animate/animation/wave-in.js +0 -34
  2711. package/lib/animate/animation/wave-in.js.map +0 -1
  2712. package/lib/animate/animation/zoom.d.ts +0 -21
  2713. package/lib/animate/animation/zoom.js +0 -71
  2714. package/lib/animate/animation/zoom.js.map +0 -1
  2715. package/lib/animate/index.d.ts +0 -48
  2716. package/lib/animate/index.js +0 -255
  2717. package/lib/animate/index.js.map +0 -1
  2718. package/lib/animate/interface.d.ts +0 -18
  2719. package/lib/animate/interface.js +0 -3
  2720. package/lib/animate/interface.js.map +0 -1
  2721. package/lib/api.d.ts +0 -2
  2722. package/lib/api.js +0 -7
  2723. package/lib/api.js.map +0 -1
  2724. package/lib/base.d.ts +0 -33
  2725. package/lib/base.js +0 -57
  2726. package/lib/base.js.map +0 -1
  2727. package/lib/chart/chart.d.ts +0 -61
  2728. package/lib/chart/chart.js +0 -159
  2729. package/lib/chart/chart.js.map +0 -1
  2730. package/lib/chart/controller/annotation.d.ts +0 -162
  2731. package/lib/chart/controller/annotation.js +0 -593
  2732. package/lib/chart/controller/annotation.js.map +0 -1
  2733. package/lib/chart/controller/axis.d.ts +0 -93
  2734. package/lib/chart/controller/axis.js +0 -580
  2735. package/lib/chart/controller/axis.js.map +0 -1
  2736. package/lib/chart/controller/base.d.ts +0 -64
  2737. package/lib/chart/controller/base.js +0 -65
  2738. package/lib/chart/controller/base.js.map +0 -1
  2739. package/lib/chart/controller/coordinate.d.ts +0 -74
  2740. package/lib/chart/controller/coordinate.js +0 -147
  2741. package/lib/chart/controller/coordinate.js.map +0 -1
  2742. package/lib/chart/controller/gesture.d.ts +0 -37
  2743. package/lib/chart/controller/gesture.js +0 -260
  2744. package/lib/chart/controller/gesture.js.map +0 -1
  2745. package/lib/chart/controller/index.d.ts +0 -25
  2746. package/lib/chart/controller/index.js +0 -41
  2747. package/lib/chart/controller/index.js.map +0 -1
  2748. package/lib/chart/controller/legend.d.ts +0 -106
  2749. package/lib/chart/controller/legend.js +0 -486
  2750. package/lib/chart/controller/legend.js.map +0 -1
  2751. package/lib/chart/controller/scrollbar.d.ts +0 -64
  2752. package/lib/chart/controller/scrollbar.js +0 -318
  2753. package/lib/chart/controller/scrollbar.js.map +0 -1
  2754. package/lib/chart/controller/slider.d.ts +0 -88
  2755. package/lib/chart/controller/slider.js +0 -298
  2756. package/lib/chart/controller/slider.js.map +0 -1
  2757. package/lib/chart/controller/tooltip.d.ts +0 -68
  2758. package/lib/chart/controller/tooltip.js +0 -694
  2759. package/lib/chart/controller/tooltip.js.map +0 -1
  2760. package/lib/chart/event.d.ts +0 -47
  2761. package/lib/chart/event.js +0 -93
  2762. package/lib/chart/event.js.map +0 -1
  2763. package/lib/chart/index.d.ts +0 -4
  2764. package/lib/chart/index.js +0 -16
  2765. package/lib/chart/index.js.map +0 -1
  2766. package/lib/chart/layout/auto.d.ts +0 -8
  2767. package/lib/chart/layout/auto.js +0 -68
  2768. package/lib/chart/layout/auto.js.map +0 -1
  2769. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  2770. package/lib/chart/layout/constraint/bounds.js +0 -33
  2771. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  2772. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  2773. package/lib/chart/layout/constraint/constraint.js +0 -85
  2774. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  2775. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  2776. package/lib/chart/layout/constraint/gauss.js +0 -68
  2777. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  2778. package/lib/chart/layout/constraint/index.d.ts +0 -5
  2779. package/lib/chart/layout/constraint/index.js +0 -38
  2780. package/lib/chart/layout/constraint/index.js.map +0 -1
  2781. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  2782. package/lib/chart/layout/constraint/solver.js +0 -81
  2783. package/lib/chart/layout/constraint/solver.js.map +0 -1
  2784. package/lib/chart/layout/constraint/types.d.ts +0 -21
  2785. package/lib/chart/layout/constraint/types.js +0 -16
  2786. package/lib/chart/layout/constraint/types.js.map +0 -1
  2787. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  2788. package/lib/chart/layout/constraint/variable.js +0 -31
  2789. package/lib/chart/layout/constraint/variable.js.map +0 -1
  2790. package/lib/chart/layout/index.d.ts +0 -15
  2791. package/lib/chart/layout/index.js +0 -29
  2792. package/lib/chart/layout/index.js.map +0 -1
  2793. package/lib/chart/layout/padding-cal.d.ts +0 -53
  2794. package/lib/chart/layout/padding-cal.js +0 -111
  2795. package/lib/chart/layout/padding-cal.js.map +0 -1
  2796. package/lib/chart/util/scale-pool.d.ts +0 -57
  2797. package/lib/chart/util/scale-pool.js +0 -215
  2798. package/lib/chart/util/scale-pool.js.map +0 -1
  2799. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  2800. package/lib/chart/util/sync-view-padding.js +0 -18
  2801. package/lib/chart/util/sync-view-padding.js.map +0 -1
  2802. package/lib/chart/view.d.ts +0 -747
  2803. package/lib/chart/view.js +0 -1640
  2804. package/lib/chart/view.js.map +0 -1
  2805. package/lib/component/labels.d.ts +0 -46
  2806. package/lib/component/labels.js +0 -307
  2807. package/lib/component/labels.js.map +0 -1
  2808. package/lib/component/update-label.d.ts +0 -21
  2809. package/lib/component/update-label.js +0 -61
  2810. package/lib/component/update-label.js.map +0 -1
  2811. package/lib/constant.d.ts +0 -124
  2812. package/lib/constant.js +0 -139
  2813. package/lib/constant.js.map +0 -1
  2814. package/lib/core.d.ts +0 -46
  2815. package/lib/core.js +0 -101
  2816. package/lib/core.js.map +0 -1
  2817. package/lib/dependents.d.ts +0 -21
  2818. package/lib/dependents.js +0 -55
  2819. package/lib/dependents.js.map +0 -1
  2820. package/lib/engine/index.d.ts +0 -13
  2821. package/lib/engine/index.js +0 -27
  2822. package/lib/engine/index.js.map +0 -1
  2823. package/lib/facet/circle.d.ts +0 -36
  2824. package/lib/facet/circle.js +0 -121
  2825. package/lib/facet/circle.js.map +0 -1
  2826. package/lib/facet/facet.d.ts +0 -165
  2827. package/lib/facet/facet.js +0 -295
  2828. package/lib/facet/facet.js.map +0 -1
  2829. package/lib/facet/index.d.ts +0 -13
  2830. package/lib/facet/index.js +0 -28
  2831. package/lib/facet/index.js.map +0 -1
  2832. package/lib/facet/list.d.ts +0 -46
  2833. package/lib/facet/list.js +0 -136
  2834. package/lib/facet/list.js.map +0 -1
  2835. package/lib/facet/matrix.d.ts +0 -34
  2836. package/lib/facet/matrix.js +0 -121
  2837. package/lib/facet/matrix.js.map +0 -1
  2838. package/lib/facet/mirror.d.ts +0 -31
  2839. package/lib/facet/mirror.js +0 -146
  2840. package/lib/facet/mirror.js.map +0 -1
  2841. package/lib/facet/rect.d.ts +0 -35
  2842. package/lib/facet/rect.js +0 -143
  2843. package/lib/facet/rect.js.map +0 -1
  2844. package/lib/facet/tree.d.ts +0 -40
  2845. package/lib/facet/tree.js +0 -300
  2846. package/lib/facet/tree.js.map +0 -1
  2847. package/lib/geometry/area.d.ts +0 -46
  2848. package/lib/geometry/area.js +0 -64
  2849. package/lib/geometry/area.js.map +0 -1
  2850. package/lib/geometry/base.d.ts +0 -796
  2851. package/lib/geometry/base.js +0 -1558
  2852. package/lib/geometry/base.js.map +0 -1
  2853. package/lib/geometry/edge.d.ts +0 -15
  2854. package/lib/geometry/edge.js +0 -26
  2855. package/lib/geometry/edge.js.map +0 -1
  2856. package/lib/geometry/element/index.d.ts +0 -127
  2857. package/lib/geometry/element/index.js +0 -440
  2858. package/lib/geometry/element/index.js.map +0 -1
  2859. package/lib/geometry/heatmap.d.ts +0 -31
  2860. package/lib/geometry/heatmap.js +0 -202
  2861. package/lib/geometry/heatmap.js.map +0 -1
  2862. package/lib/geometry/interval.d.ts +0 -41
  2863. package/lib/geometry/interval.js +0 -100
  2864. package/lib/geometry/interval.js.map +0 -1
  2865. package/lib/geometry/label/base.d.ts +0 -76
  2866. package/lib/geometry/label/base.js +0 -418
  2867. package/lib/geometry/label/base.js.map +0 -1
  2868. package/lib/geometry/label/index.d.ts +0 -38
  2869. package/lib/geometry/label/index.js +0 -42
  2870. package/lib/geometry/label/index.js.map +0 -1
  2871. package/lib/geometry/label/interface.d.ts +0 -62
  2872. package/lib/geometry/label/interface.js +0 -3
  2873. package/lib/geometry/label/interface.js.map +0 -1
  2874. package/lib/geometry/label/interval.d.ts +0 -27
  2875. package/lib/geometry/label/interval.js +0 -148
  2876. package/lib/geometry/label/interval.js.map +0 -1
  2877. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  2878. package/lib/geometry/label/layout/adjust-color.js +0 -40
  2879. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  2880. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  2881. package/lib/geometry/label/layout/hide-overlap.js +0 -79
  2882. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  2883. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2884. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  2885. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2886. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2887. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -83
  2888. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2889. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2890. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  2891. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2892. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2893. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  2894. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  2895. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2896. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  2897. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  2898. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  2899. package/lib/geometry/label/layout/overlap.js +0 -228
  2900. package/lib/geometry/label/layout/overlap.js.map +0 -1
  2901. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  2902. package/lib/geometry/label/layout/path/adjust-position.js +0 -99
  2903. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  2904. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  2905. package/lib/geometry/label/layout/pie/distribute.js +0 -200
  2906. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  2907. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  2908. package/lib/geometry/label/layout/pie/outer.js +0 -222
  2909. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  2910. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  2911. package/lib/geometry/label/layout/pie/spider.js +0 -197
  2912. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  2913. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  2914. package/lib/geometry/label/layout/pie/util.js +0 -77
  2915. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  2916. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  2917. package/lib/geometry/label/layout/point/adjust-position.js +0 -99
  2918. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  2919. package/lib/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  2920. package/lib/geometry/label/layout/worker/hide-overlap.js +0 -158
  2921. package/lib/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  2922. package/lib/geometry/label/pie.d.ts +0 -22
  2923. package/lib/geometry/label/pie.js +0 -97
  2924. package/lib/geometry/label/pie.js.map +0 -1
  2925. package/lib/geometry/label/polar.d.ts +0 -64
  2926. package/lib/geometry/label/polar.js +0 -223
  2927. package/lib/geometry/label/polar.js.map +0 -1
  2928. package/lib/geometry/label/util/createWorker.d.ts +0 -1
  2929. package/lib/geometry/label/util/createWorker.js +0 -20
  2930. package/lib/geometry/label/util/createWorker.js.map +0 -1
  2931. package/lib/geometry/label/util/index.d.ts +0 -28
  2932. package/lib/geometry/label/util/index.js +0 -69
  2933. package/lib/geometry/label/util/index.js.map +0 -1
  2934. package/lib/geometry/line.d.ts +0 -11
  2935. package/lib/geometry/line.js +0 -23
  2936. package/lib/geometry/line.js.map +0 -1
  2937. package/lib/geometry/path.d.ts +0 -40
  2938. package/lib/geometry/path.js +0 -152
  2939. package/lib/geometry/path.js.map +0 -1
  2940. package/lib/geometry/point.d.ts +0 -19
  2941. package/lib/geometry/point.js +0 -32
  2942. package/lib/geometry/point.js.map +0 -1
  2943. package/lib/geometry/polygon.d.ts +0 -19
  2944. package/lib/geometry/polygon.js +0 -64
  2945. package/lib/geometry/polygon.js.map +0 -1
  2946. package/lib/geometry/schema.d.ts +0 -18
  2947. package/lib/geometry/schema.js +0 -50
  2948. package/lib/geometry/schema.js.map +0 -1
  2949. package/lib/geometry/shape/area/index.d.ts +0 -2
  2950. package/lib/geometry/shape/area/index.js +0 -46
  2951. package/lib/geometry/shape/area/index.js.map +0 -1
  2952. package/lib/geometry/shape/area/line.d.ts +0 -1
  2953. package/lib/geometry/shape/area/line.js +0 -33
  2954. package/lib/geometry/shape/area/line.js.map +0 -1
  2955. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  2956. package/lib/geometry/shape/area/smooth-line.js +0 -32
  2957. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  2958. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  2959. package/lib/geometry/shape/area/smooth.js +0 -33
  2960. package/lib/geometry/shape/area/smooth.js.map +0 -1
  2961. package/lib/geometry/shape/area/util.d.ts +0 -22
  2962. package/lib/geometry/shape/area/util.js +0 -93
  2963. package/lib/geometry/shape/area/util.js.map +0 -1
  2964. package/lib/geometry/shape/base.d.ts +0 -22
  2965. package/lib/geometry/shape/base.js +0 -168
  2966. package/lib/geometry/shape/base.js.map +0 -1
  2967. package/lib/geometry/shape/constant.d.ts +0 -4
  2968. package/lib/geometry/shape/constant.js +0 -8
  2969. package/lib/geometry/shape/constant.js.map +0 -1
  2970. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  2971. package/lib/geometry/shape/edge/arc.js +0 -86
  2972. package/lib/geometry/shape/edge/arc.js.map +0 -1
  2973. package/lib/geometry/shape/edge/index.d.ts +0 -2
  2974. package/lib/geometry/shape/edge/index.js +0 -33
  2975. package/lib/geometry/shape/edge/index.js.map +0 -1
  2976. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  2977. package/lib/geometry/shape/edge/smooth.js +0 -32
  2978. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  2979. package/lib/geometry/shape/edge/util.d.ts +0 -17
  2980. package/lib/geometry/shape/edge/util.js +0 -37
  2981. package/lib/geometry/shape/edge/util.js.map +0 -1
  2982. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  2983. package/lib/geometry/shape/edge/vhv.js +0 -44
  2984. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  2985. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  2986. package/lib/geometry/shape/interval/funnel.js +0 -33
  2987. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  2988. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  2989. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  2990. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  2991. package/lib/geometry/shape/interval/index.d.ts +0 -3
  2992. package/lib/geometry/shape/interval/index.js +0 -65
  2993. package/lib/geometry/shape/interval/index.js.map +0 -1
  2994. package/lib/geometry/shape/interval/line.d.ts +0 -1
  2995. package/lib/geometry/shape/interval/line.js +0 -56
  2996. package/lib/geometry/shape/interval/line.js.map +0 -1
  2997. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  2998. package/lib/geometry/shape/interval/pyramid.js +0 -33
  2999. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  3000. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  3001. package/lib/geometry/shape/interval/tick.js +0 -80
  3002. package/lib/geometry/shape/interval/tick.js.map +0 -1
  3003. package/lib/geometry/shape/interval/util.d.ts +0 -55
  3004. package/lib/geometry/shape/interval/util.js +0 -328
  3005. package/lib/geometry/shape/interval/util.js.map +0 -1
  3006. package/lib/geometry/shape/line/index.d.ts +0 -8
  3007. package/lib/geometry/shape/line/index.js +0 -109
  3008. package/lib/geometry/shape/line/index.js.map +0 -1
  3009. package/lib/geometry/shape/line/step.d.ts +0 -1
  3010. package/lib/geometry/shape/line/step.js +0 -86
  3011. package/lib/geometry/shape/line/step.js.map +0 -1
  3012. package/lib/geometry/shape/line/util.d.ts +0 -16
  3013. package/lib/geometry/shape/line/util.js +0 -87
  3014. package/lib/geometry/shape/line/util.js.map +0 -1
  3015. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  3016. package/lib/geometry/shape/point/hollow.js +0 -26
  3017. package/lib/geometry/shape/point/hollow.js.map +0 -1
  3018. package/lib/geometry/shape/point/image.d.ts +0 -1
  3019. package/lib/geometry/shape/point/image.js +0 -61
  3020. package/lib/geometry/shape/point/image.js.map +0 -1
  3021. package/lib/geometry/shape/point/index.d.ts +0 -2
  3022. package/lib/geometry/shape/point/index.js +0 -34
  3023. package/lib/geometry/shape/point/index.js.map +0 -1
  3024. package/lib/geometry/shape/point/solid.d.ts +0 -1
  3025. package/lib/geometry/shape/point/solid.js +0 -25
  3026. package/lib/geometry/shape/point/solid.js.map +0 -1
  3027. package/lib/geometry/shape/point/util.d.ts +0 -15
  3028. package/lib/geometry/shape/point/util.js +0 -53
  3029. package/lib/geometry/shape/point/util.js.map +0 -1
  3030. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  3031. package/lib/geometry/shape/polygon/index.js +0 -67
  3032. package/lib/geometry/shape/polygon/index.js.map +0 -1
  3033. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  3034. package/lib/geometry/shape/polygon/square.js +0 -46
  3035. package/lib/geometry/shape/polygon/square.js.map +0 -1
  3036. package/lib/geometry/shape/schema/box.d.ts +0 -1
  3037. package/lib/geometry/shape/schema/box.js +0 -144
  3038. package/lib/geometry/shape/schema/box.js.map +0 -1
  3039. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  3040. package/lib/geometry/shape/schema/candle.js +0 -82
  3041. package/lib/geometry/shape/schema/candle.js.map +0 -1
  3042. package/lib/geometry/shape/schema/index.d.ts +0 -2
  3043. package/lib/geometry/shape/schema/index.js +0 -8
  3044. package/lib/geometry/shape/schema/index.js.map +0 -1
  3045. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  3046. package/lib/geometry/shape/util/get-path-points.js +0 -137
  3047. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  3048. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  3049. package/lib/geometry/shape/util/get-style.js +0 -52
  3050. package/lib/geometry/shape/util/get-style.js.map +0 -1
  3051. package/lib/geometry/shape/util/path.d.ts +0 -32
  3052. package/lib/geometry/shape/util/path.js +0 -322
  3053. package/lib/geometry/shape/util/path.js.map +0 -1
  3054. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  3055. package/lib/geometry/shape/util/split-points.js +0 -28
  3056. package/lib/geometry/shape/util/split-points.js.map +0 -1
  3057. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  3058. package/lib/geometry/shape/violin/hollow.js +0 -53
  3059. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  3060. package/lib/geometry/shape/violin/index.d.ts +0 -2
  3061. package/lib/geometry/shape/violin/index.js +0 -62
  3062. package/lib/geometry/shape/violin/index.js.map +0 -1
  3063. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  3064. package/lib/geometry/shape/violin/smooth.js +0 -30
  3065. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  3066. package/lib/geometry/util/diff.d.ts +0 -11
  3067. package/lib/geometry/util/diff.js +0 -34
  3068. package/lib/geometry/util/diff.js.map +0 -1
  3069. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  3070. package/lib/geometry/util/get-shape-type.js +0 -20
  3071. package/lib/geometry/util/get-shape-type.js.map +0 -1
  3072. package/lib/geometry/util/group-data.d.ts +0 -3
  3073. package/lib/geometry/util/group-data.js +0 -46
  3074. package/lib/geometry/util/group-data.js.map +0 -1
  3075. package/lib/geometry/util/is-model-change.d.ts +0 -9
  3076. package/lib/geometry/util/is-model-change.js +0 -18
  3077. package/lib/geometry/util/is-model-change.js.map +0 -1
  3078. package/lib/geometry/util/parse-fields.d.ts +0 -2
  3079. package/lib/geometry/util/parse-fields.js +0 -13
  3080. package/lib/geometry/util/parse-fields.js.map +0 -1
  3081. package/lib/geometry/util/shape-size.d.ts +0 -2
  3082. package/lib/geometry/util/shape-size.js +0 -128
  3083. package/lib/geometry/util/shape-size.js.map +0 -1
  3084. package/lib/geometry/violin.d.ts +0 -25
  3085. package/lib/geometry/violin.js +0 -69
  3086. package/lib/geometry/violin.js.map +0 -1
  3087. package/lib/interaction/action/active-region.d.ts +0 -33
  3088. package/lib/interaction/action/active-region.js +0 -230
  3089. package/lib/interaction/action/active-region.js.map +0 -1
  3090. package/lib/interaction/action/base.d.ts +0 -29
  3091. package/lib/interaction/action/base.js +0 -38
  3092. package/lib/interaction/action/base.js.map +0 -1
  3093. package/lib/interaction/action/callback.d.ts +0 -17
  3094. package/lib/interaction/action/callback.js +0 -29
  3095. package/lib/interaction/action/callback.js.map +0 -1
  3096. package/lib/interaction/action/component/axis/axis-description.d.ts +0 -9
  3097. package/lib/interaction/action/component/axis/axis-description.js +0 -75
  3098. package/lib/interaction/action/component/axis/axis-description.js.map +0 -1
  3099. package/lib/interaction/action/component/list-active.d.ts +0 -14
  3100. package/lib/interaction/action/component/list-active.js +0 -26
  3101. package/lib/interaction/action/component/list-active.js.map +0 -1
  3102. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  3103. package/lib/interaction/action/component/list-checked.js +0 -84
  3104. package/lib/interaction/action/component/list-checked.js.map +0 -1
  3105. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  3106. package/lib/interaction/action/component/list-focus.js +0 -94
  3107. package/lib/interaction/action/component/list-focus.js.map +0 -1
  3108. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  3109. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  3110. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  3111. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  3112. package/lib/interaction/action/component/list-highlight.js +0 -99
  3113. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  3114. package/lib/interaction/action/component/list-radio.d.ts +0 -24
  3115. package/lib/interaction/action/component/list-radio.js +0 -118
  3116. package/lib/interaction/action/component/list-radio.js.map +0 -1
  3117. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  3118. package/lib/interaction/action/component/list-selected.js +0 -22
  3119. package/lib/interaction/action/component/list-selected.js.map +0 -1
  3120. package/lib/interaction/action/component/list-state.d.ts +0 -46
  3121. package/lib/interaction/action/component/list-state.js +0 -169
  3122. package/lib/interaction/action/component/list-state.js.map +0 -1
  3123. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  3124. package/lib/interaction/action/component/list-unchecked.js +0 -25
  3125. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  3126. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  3127. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  3128. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  3129. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  3130. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  3131. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  3132. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  3133. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  3134. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  3135. package/lib/interaction/action/cursor.d.ts +0 -69
  3136. package/lib/interaction/action/cursor.js +0 -115
  3137. package/lib/interaction/action/cursor.js.map +0 -1
  3138. package/lib/interaction/action/data/filter.d.ts +0 -13
  3139. package/lib/interaction/action/data/filter.js +0 -68
  3140. package/lib/interaction/action/data/filter.js.map +0 -1
  3141. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  3142. package/lib/interaction/action/data/range-filter.js +0 -166
  3143. package/lib/interaction/action/data/range-filter.js.map +0 -1
  3144. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  3145. package/lib/interaction/action/data/sibling-filter.js +0 -41
  3146. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  3147. package/lib/interaction/action/element/active.d.ts +0 -14
  3148. package/lib/interaction/action/element/active.js +0 -26
  3149. package/lib/interaction/action/element/active.js.map +0 -1
  3150. package/lib/interaction/action/element/filter.d.ts +0 -20
  3151. package/lib/interaction/action/element/filter.js +0 -91
  3152. package/lib/interaction/action/element/filter.js.map +0 -1
  3153. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  3154. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  3155. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  3156. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  3157. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  3158. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  3159. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  3160. package/lib/interaction/action/element/highlight-util.js +0 -50
  3161. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  3162. package/lib/interaction/action/element/highlight.d.ts +0 -21
  3163. package/lib/interaction/action/element/highlight.js +0 -96
  3164. package/lib/interaction/action/element/highlight.js.map +0 -1
  3165. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  3166. package/lib/interaction/action/element/link-by-color.js +0 -158
  3167. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  3168. package/lib/interaction/action/element/range-active.d.ts +0 -13
  3169. package/lib/interaction/action/element/range-active.js +0 -25
  3170. package/lib/interaction/action/element/range-active.js.map +0 -1
  3171. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  3172. package/lib/interaction/action/element/range-highlight.js +0 -57
  3173. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  3174. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  3175. package/lib/interaction/action/element/range-selected.js +0 -25
  3176. package/lib/interaction/action/element/range-selected.js.map +0 -1
  3177. package/lib/interaction/action/element/range-state.d.ts +0 -38
  3178. package/lib/interaction/action/element/range-state.js +0 -166
  3179. package/lib/interaction/action/element/range-state.js.map +0 -1
  3180. package/lib/interaction/action/element/selected.d.ts +0 -14
  3181. package/lib/interaction/action/element/selected.js +0 -26
  3182. package/lib/interaction/action/element/selected.js.map +0 -1
  3183. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  3184. package/lib/interaction/action/element/sibling-filter.js +0 -95
  3185. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  3186. package/lib/interaction/action/element/single-active.d.ts +0 -13
  3187. package/lib/interaction/action/element/single-active.js +0 -25
  3188. package/lib/interaction/action/element/single-active.js.map +0 -1
  3189. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  3190. package/lib/interaction/action/element/single-highlight.js +0 -37
  3191. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  3192. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  3193. package/lib/interaction/action/element/single-selected.js +0 -25
  3194. package/lib/interaction/action/element/single-selected.js.map +0 -1
  3195. package/lib/interaction/action/element/single-state.d.ts +0 -18
  3196. package/lib/interaction/action/element/single-state.js +0 -55
  3197. package/lib/interaction/action/element/single-state.js.map +0 -1
  3198. package/lib/interaction/action/element/state-base.d.ts +0 -39
  3199. package/lib/interaction/action/element/state-base.js +0 -61
  3200. package/lib/interaction/action/element/state-base.js.map +0 -1
  3201. package/lib/interaction/action/element/state.d.ts +0 -28
  3202. package/lib/interaction/action/element/state.js +0 -101
  3203. package/lib/interaction/action/element/state.js.map +0 -1
  3204. package/lib/interaction/action/mask/base.d.ts +0 -62
  3205. package/lib/interaction/action/mask/base.js +0 -171
  3206. package/lib/interaction/action/mask/base.js.map +0 -1
  3207. package/lib/interaction/action/mask/circle.d.ts +0 -14
  3208. package/lib/interaction/action/mask/circle.js +0 -39
  3209. package/lib/interaction/action/mask/circle.js.map +0 -1
  3210. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  3211. package/lib/interaction/action/mask/dim-rect.js +0 -64
  3212. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  3213. package/lib/interaction/action/mask/path.d.ts +0 -16
  3214. package/lib/interaction/action/mask/path.js +0 -46
  3215. package/lib/interaction/action/mask/path.js.map +0 -1
  3216. package/lib/interaction/action/mask/rect.d.ts +0 -17
  3217. package/lib/interaction/action/mask/rect.js +0 -41
  3218. package/lib/interaction/action/mask/rect.js.map +0 -1
  3219. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  3220. package/lib/interaction/action/mask/smooth-path.js +0 -23
  3221. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  3222. package/lib/interaction/action/register.d.ts +0 -36
  3223. package/lib/interaction/action/register.js +0 -69
  3224. package/lib/interaction/action/register.js.map +0 -1
  3225. package/lib/interaction/action/util.d.ts +0 -140
  3226. package/lib/interaction/action/util.js +0 -387
  3227. package/lib/interaction/action/util.js.map +0 -1
  3228. package/lib/interaction/action/view/button.d.ts +0 -25
  3229. package/lib/interaction/action/view/button.js +0 -118
  3230. package/lib/interaction/action/view/button.js.map +0 -1
  3231. package/lib/interaction/action/view/drag.d.ts +0 -24
  3232. package/lib/interaction/action/view/drag.js +0 -75
  3233. package/lib/interaction/action/view/drag.js.map +0 -1
  3234. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  3235. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  3236. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  3237. package/lib/interaction/action/view/move.d.ts +0 -28
  3238. package/lib/interaction/action/view/move.js +0 -82
  3239. package/lib/interaction/action/view/move.js.map +0 -1
  3240. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  3241. package/lib/interaction/action/view/scale-transform.js +0 -53
  3242. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  3243. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  3244. package/lib/interaction/action/view/scale-translate.js +0 -114
  3245. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  3246. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  3247. package/lib/interaction/action/view/scale-zoom.js +0 -85
  3248. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  3249. package/lib/interaction/context.d.ts +0 -65
  3250. package/lib/interaction/context.js +0 -144
  3251. package/lib/interaction/context.js.map +0 -1
  3252. package/lib/interaction/grammar-interaction.d.ts +0 -158
  3253. package/lib/interaction/grammar-interaction.js +0 -289
  3254. package/lib/interaction/grammar-interaction.js.map +0 -1
  3255. package/lib/interaction/interaction.d.ts +0 -29
  3256. package/lib/interaction/interaction.js +0 -34
  3257. package/lib/interaction/interaction.js.map +0 -1
  3258. package/lib/interface.d.ts +0 -3686
  3259. package/lib/interface.js +0 -3
  3260. package/lib/interface.js.map +0 -1
  3261. package/lib/theme/style-sheet/dark.d.ts +0 -545
  3262. package/lib/theme/style-sheet/dark.js +0 -504
  3263. package/lib/theme/style-sheet/dark.js.map +0 -1
  3264. package/lib/theme/style-sheet/light.d.ts +0 -541
  3265. package/lib/theme/style-sheet/light.js +0 -500
  3266. package/lib/theme/style-sheet/light.js.map +0 -1
  3267. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  3268. package/lib/theme/util/create-by-style-sheet.js +0 -1429
  3269. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  3270. package/lib/theme/util/create-theme.d.ts +0 -6
  3271. package/lib/theme/util/create-theme.js +0 -16
  3272. package/lib/theme/util/create-theme.js.map +0 -1
  3273. package/lib/theme/util/index.d.ts +0 -1
  3274. package/lib/theme/util/index.js +0 -6
  3275. package/lib/theme/util/index.js.map +0 -1
  3276. package/lib/util/annotation.d.ts +0 -7
  3277. package/lib/util/annotation.js +0 -43
  3278. package/lib/util/annotation.js.map +0 -1
  3279. package/lib/util/attr.d.ts +0 -10
  3280. package/lib/util/attr.js +0 -29
  3281. package/lib/util/attr.js.map +0 -1
  3282. package/lib/util/axis.d.ts +0 -100
  3283. package/lib/util/axis.js +0 -251
  3284. package/lib/util/axis.js.map +0 -1
  3285. package/lib/util/bbox.d.ts +0 -105
  3286. package/lib/util/bbox.js +0 -288
  3287. package/lib/util/bbox.js.map +0 -1
  3288. package/lib/util/collision-detect.d.ts +0 -20
  3289. package/lib/util/collision-detect.js +0 -134
  3290. package/lib/util/collision-detect.js.map +0 -1
  3291. package/lib/util/color.d.ts +0 -1
  3292. package/lib/util/color.js +0 -23
  3293. package/lib/util/color.js.map +0 -1
  3294. package/lib/util/context.d.ts +0 -4
  3295. package/lib/util/context.js +0 -15
  3296. package/lib/util/context.js.map +0 -1
  3297. package/lib/util/coordinate.d.ts +0 -86
  3298. package/lib/util/coordinate.js +0 -157
  3299. package/lib/util/coordinate.js.map +0 -1
  3300. package/lib/util/direction.d.ts +0 -19
  3301. package/lib/util/direction.js +0 -125
  3302. package/lib/util/direction.js.map +0 -1
  3303. package/lib/util/dom.d.ts +0 -19
  3304. package/lib/util/dom.js +0 -68
  3305. package/lib/util/dom.js.map +0 -1
  3306. package/lib/util/event.d.ts +0 -8
  3307. package/lib/util/event.js +0 -18
  3308. package/lib/util/event.js.map +0 -1
  3309. package/lib/util/facet.d.ts +0 -16
  3310. package/lib/util/facet.js +0 -48
  3311. package/lib/util/facet.js.map +0 -1
  3312. package/lib/util/graphics.d.ts +0 -58
  3313. package/lib/util/graphics.js +0 -212
  3314. package/lib/util/graphics.js.map +0 -1
  3315. package/lib/util/grid.d.ts +0 -36
  3316. package/lib/util/grid.js +0 -125
  3317. package/lib/util/grid.js.map +0 -1
  3318. package/lib/util/helper.d.ts +0 -34
  3319. package/lib/util/helper.js +0 -90
  3320. package/lib/util/helper.js.map +0 -1
  3321. package/lib/util/legend.d.ts +0 -45
  3322. package/lib/util/legend.js +0 -152
  3323. package/lib/util/legend.js.map +0 -1
  3324. package/lib/util/marker.d.ts +0 -10
  3325. package/lib/util/marker.js +0 -61
  3326. package/lib/util/marker.js.map +0 -1
  3327. package/lib/util/padding.d.ts +0 -14
  3328. package/lib/util/padding.js +0 -45
  3329. package/lib/util/padding.js.map +0 -1
  3330. package/lib/util/scale.d.ts +0 -42
  3331. package/lib/util/scale.js +0 -138
  3332. package/lib/util/scale.js.map +0 -1
  3333. package/lib/util/stat.d.ts +0 -10
  3334. package/lib/util/stat.js +0 -41
  3335. package/lib/util/stat.js.map +0 -1
  3336. package/lib/util/text.d.ts +0 -23
  3337. package/lib/util/text.js +0 -88
  3338. package/lib/util/text.js.map +0 -1
  3339. package/lib/util/tooltip.d.ts +0 -26
  3340. package/lib/util/tooltip.js +0 -476
  3341. package/lib/util/tooltip.js.map +0 -1
  3342. package/lib/util/transform.d.ts +0 -33
  3343. package/lib/util/transform.js +0 -69
  3344. package/lib/util/transform.js.map +0 -1
  3345. package/lib/util/types.d.ts +0 -6
  3346. package/lib/util/types.js.map +0 -1
  3347. package/src/animate/animation/fade.ts +0 -52
  3348. package/src/animate/animation/grow-in.ts +0 -44
  3349. package/src/animate/animation/index.ts +0 -29
  3350. package/src/animate/animation/path-in.ts +0 -24
  3351. package/src/animate/animation/position-update.ts +0 -33
  3352. package/src/animate/animation/scale-in.ts +0 -75
  3353. package/src/animate/animation/sector-path-update.ts +0 -158
  3354. package/src/animate/animation/util.ts +0 -104
  3355. package/src/animate/animation/wave-in.ts +0 -37
  3356. package/src/animate/animation/zoom.ts +0 -78
  3357. package/src/animate/index.ts +0 -268
  3358. package/src/animate/interface.ts +0 -19
  3359. package/src/api.ts +0 -3
  3360. package/src/base.ts +0 -61
  3361. package/src/chart/chart.ts +0 -218
  3362. package/src/chart/controller/annotation.ts +0 -759
  3363. package/src/chart/controller/axis.ts +0 -699
  3364. package/src/chart/controller/base.ts +0 -105
  3365. package/src/chart/controller/coordinate.ts +0 -177
  3366. package/src/chart/controller/gesture.ts +0 -293
  3367. package/src/chart/controller/index.ts +0 -39
  3368. package/src/chart/controller/legend.ts +0 -566
  3369. package/src/chart/controller/scrollbar.ts +0 -392
  3370. package/src/chart/controller/slider.ts +0 -360
  3371. package/src/chart/controller/tooltip.ts +0 -745
  3372. package/src/chart/event.ts +0 -86
  3373. package/src/chart/index.ts +0 -5
  3374. package/src/chart/layout/auto.ts +0 -76
  3375. package/src/chart/layout/constraint/bounds.ts +0 -51
  3376. package/src/chart/layout/constraint/constraint.ts +0 -97
  3377. package/src/chart/layout/constraint/gauss.ts +0 -71
  3378. package/src/chart/layout/constraint/index.ts +0 -30
  3379. package/src/chart/layout/constraint/solver.ts +0 -97
  3380. package/src/chart/layout/constraint/types.ts +0 -29
  3381. package/src/chart/layout/constraint/variable.ts +0 -33
  3382. package/src/chart/layout/index.ts +0 -33
  3383. package/src/chart/layout/padding-cal.ts +0 -123
  3384. package/src/chart/util/scale-pool.ts +0 -250
  3385. package/src/chart/util/sync-view-padding.ts +0 -17
  3386. package/src/chart/view.ts +0 -2112
  3387. package/src/component/labels.ts +0 -330
  3388. package/src/component/update-label.ts +0 -69
  3389. package/src/constant.ts +0 -143
  3390. package/src/core.ts +0 -81
  3391. package/src/dependents.ts +0 -99
  3392. package/src/engine/index.ts +0 -27
  3393. package/src/facet/circle.ts +0 -135
  3394. package/src/facet/facet.ts +0 -373
  3395. package/src/facet/index.ts +0 -25
  3396. package/src/facet/list.ts +0 -167
  3397. package/src/facet/matrix.ts +0 -149
  3398. package/src/facet/mirror.ts +0 -167
  3399. package/src/facet/rect.ts +0 -177
  3400. package/src/facet/tree.ts +0 -317
  3401. package/src/geometry/area.ts +0 -76
  3402. package/src/geometry/base.ts +0 -2145
  3403. package/src/geometry/edge.ts +0 -16
  3404. package/src/geometry/element/index.ts +0 -519
  3405. package/src/geometry/heatmap.ts +0 -223
  3406. package/src/geometry/interval.ts +0 -109
  3407. package/src/geometry/label/base.ts +0 -458
  3408. package/src/geometry/label/index.ts +0 -59
  3409. package/src/geometry/label/interface.ts +0 -61
  3410. package/src/geometry/label/interval.ts +0 -160
  3411. package/src/geometry/label/layout/adjust-color.ts +0 -40
  3412. package/src/geometry/label/layout/hide-overlap.ts +0 -85
  3413. package/src/geometry/label/layout/interval/adjust-position.ts +0 -72
  3414. package/src/geometry/label/layout/interval/hide-overlap.ts +0 -86
  3415. package/src/geometry/label/layout/limit-in-canvas.ts +0 -48
  3416. package/src/geometry/label/layout/limit-in-plot.ts +0 -99
  3417. package/src/geometry/label/layout/limit-in-shape.ts +0 -22
  3418. package/src/geometry/label/layout/overlap.ts +0 -251
  3419. package/src/geometry/label/layout/path/adjust-position.ts +0 -129
  3420. package/src/geometry/label/layout/pie/distribute.ts +0 -203
  3421. package/src/geometry/label/layout/pie/outer.ts +0 -247
  3422. package/src/geometry/label/layout/pie/spider.ts +0 -201
  3423. package/src/geometry/label/layout/pie/util.ts +0 -85
  3424. package/src/geometry/label/layout/point/adjust-position.ts +0 -129
  3425. package/src/geometry/label/layout/worker/hide-overlap.ts +0 -192
  3426. package/src/geometry/label/pie.ts +0 -97
  3427. package/src/geometry/label/polar.ts +0 -225
  3428. package/src/geometry/label/util/createWorker.ts +0 -15
  3429. package/src/geometry/label/util/index.ts +0 -81
  3430. package/src/geometry/line.ts +0 -18
  3431. package/src/geometry/path.ts +0 -140
  3432. package/src/geometry/point.ts +0 -28
  3433. package/src/geometry/polygon.ts +0 -55
  3434. package/src/geometry/schema.ts +0 -43
  3435. package/src/geometry/shape/area/index.ts +0 -49
  3436. package/src/geometry/shape/area/line.ts +0 -33
  3437. package/src/geometry/shape/area/smooth-line.ts +0 -33
  3438. package/src/geometry/shape/area/smooth.ts +0 -34
  3439. package/src/geometry/shape/area/util.ts +0 -111
  3440. package/src/geometry/shape/base.ts +0 -191
  3441. package/src/geometry/shape/constant.ts +0 -4
  3442. package/src/geometry/shape/edge/arc.ts +0 -104
  3443. package/src/geometry/shape/edge/index.ts +0 -38
  3444. package/src/geometry/shape/edge/smooth.ts +0 -37
  3445. package/src/geometry/shape/edge/util.ts +0 -36
  3446. package/src/geometry/shape/edge/vhv.ts +0 -51
  3447. package/src/geometry/shape/interval/funnel.ts +0 -36
  3448. package/src/geometry/shape/interval/hollow-rect.ts +0 -62
  3449. package/src/geometry/shape/interval/index.ts +0 -77
  3450. package/src/geometry/shape/interval/line.ts +0 -63
  3451. package/src/geometry/shape/interval/pyramid.ts +0 -37
  3452. package/src/geometry/shape/interval/tick.ts +0 -86
  3453. package/src/geometry/shape/interval/util.ts +0 -348
  3454. package/src/geometry/shape/line/index.ts +0 -141
  3455. package/src/geometry/shape/line/step.ts +0 -97
  3456. package/src/geometry/shape/line/util.ts +0 -85
  3457. package/src/geometry/shape/point/hollow.ts +0 -27
  3458. package/src/geometry/shape/point/image.ts +0 -51
  3459. package/src/geometry/shape/point/index.ts +0 -37
  3460. package/src/geometry/shape/point/solid.ts +0 -26
  3461. package/src/geometry/shape/point/util.ts +0 -54
  3462. package/src/geometry/shape/polygon/index.ts +0 -78
  3463. package/src/geometry/shape/polygon/square.ts +0 -52
  3464. package/src/geometry/shape/schema/box.ts +0 -154
  3465. package/src/geometry/shape/schema/candle.ts +0 -90
  3466. package/src/geometry/shape/schema/index.ts +0 -7
  3467. package/src/geometry/shape/util/get-path-points.ts +0 -136
  3468. package/src/geometry/shape/util/get-style.ts +0 -56
  3469. package/src/geometry/shape/util/path.ts +0 -348
  3470. package/src/geometry/shape/util/split-points.ts +0 -26
  3471. package/src/geometry/shape/violin/hollow.ts +0 -59
  3472. package/src/geometry/shape/violin/index.ts +0 -69
  3473. package/src/geometry/shape/violin/smooth.ts +0 -32
  3474. package/src/geometry/util/diff.ts +0 -29
  3475. package/src/geometry/util/get-shape-type.ts +0 -17
  3476. package/src/geometry/util/group-data.ts +0 -30
  3477. package/src/geometry/util/is-model-change.ts +0 -18
  3478. package/src/geometry/util/parse-fields.ts +0 -10
  3479. package/src/geometry/util/shape-size.ts +0 -128
  3480. package/src/geometry/violin.ts +0 -64
  3481. package/src/interaction/action/active-region.ts +0 -216
  3482. package/src/interaction/action/base.ts +0 -49
  3483. package/src/interaction/action/callback.ts +0 -25
  3484. package/src/interaction/action/component/axis/axis-description.ts +0 -84
  3485. package/src/interaction/action/component/list-active.ts +0 -18
  3486. package/src/interaction/action/component/list-checked.ts +0 -84
  3487. package/src/interaction/action/component/list-focus.ts +0 -36
  3488. package/src/interaction/action/component/list-highlight-util.ts +0 -22
  3489. package/src/interaction/action/component/list-highlight.ts +0 -93
  3490. package/src/interaction/action/component/list-radio.ts +0 -128
  3491. package/src/interaction/action/component/list-selected.ts +0 -14
  3492. package/src/interaction/action/component/list-state.ts +0 -175
  3493. package/src/interaction/action/component/list-unchecked.ts +0 -17
  3494. package/src/interaction/action/component/tooltip/ellipsis-text.ts +0 -102
  3495. package/src/interaction/action/component/tooltip/geometry.ts +0 -77
  3496. package/src/interaction/action/component/tooltip/sibling.ts +0 -36
  3497. package/src/interaction/action/cursor.ts +0 -117
  3498. package/src/interaction/action/data/filter.ts +0 -59
  3499. package/src/interaction/action/data/range-filter.ts +0 -173
  3500. package/src/interaction/action/data/sibling-filter.ts +0 -38
  3501. package/src/interaction/action/element/active.ts +0 -18
  3502. package/src/interaction/action/element/filter.ts +0 -88
  3503. package/src/interaction/action/element/highlight-by-color.ts +0 -26
  3504. package/src/interaction/action/element/highlight-by-x.ts +0 -48
  3505. package/src/interaction/action/element/highlight-util.ts +0 -50
  3506. package/src/interaction/action/element/highlight.ts +0 -93
  3507. package/src/interaction/action/element/link-by-color.ts +0 -161
  3508. package/src/interaction/action/element/range-active.ts +0 -17
  3509. package/src/interaction/action/element/range-highlight.ts +0 -54
  3510. package/src/interaction/action/element/range-selected.ts +0 -17
  3511. package/src/interaction/action/element/range-state.ts +0 -162
  3512. package/src/interaction/action/element/selected.ts +0 -18
  3513. package/src/interaction/action/element/sibling-filter.ts +0 -85
  3514. package/src/interaction/action/element/single-active.ts +0 -17
  3515. package/src/interaction/action/element/single-highlight.ts +0 -33
  3516. package/src/interaction/action/element/single-selected.ts +0 -17
  3517. package/src/interaction/action/element/single-state.ts +0 -49
  3518. package/src/interaction/action/element/state-base.ts +0 -63
  3519. package/src/interaction/action/element/state.ts +0 -110
  3520. package/src/interaction/action/mask/base.ts +0 -182
  3521. package/src/interaction/action/mask/circle.ts +0 -31
  3522. package/src/interaction/action/mask/dim-rect.ts +0 -57
  3523. package/src/interaction/action/mask/path.ts +0 -40
  3524. package/src/interaction/action/mask/rect.ts +0 -34
  3525. package/src/interaction/action/mask/smooth-path.ts +0 -16
  3526. package/src/interaction/action/register.ts +0 -76
  3527. package/src/interaction/action/util.ts +0 -386
  3528. package/src/interaction/action/view/button.ts +0 -125
  3529. package/src/interaction/action/view/drag.ts +0 -73
  3530. package/src/interaction/action/view/mousewheel-scroll.ts +0 -38
  3531. package/src/interaction/action/view/move.ts +0 -79
  3532. package/src/interaction/action/view/scale-transform.ts +0 -49
  3533. package/src/interaction/action/view/scale-translate.ts +0 -111
  3534. package/src/interaction/action/view/scale-zoom.ts +0 -80
  3535. package/src/interaction/context.ts +0 -150
  3536. package/src/interaction/grammar-interaction.ts +0 -417
  3537. package/src/interaction/interaction.ts +0 -43
  3538. package/src/interface.ts +0 -3956
  3539. package/src/theme/style-sheet/dark.ts +0 -564
  3540. package/src/theme/style-sheet/light.ts +0 -560
  3541. package/src/theme/util/create-by-style-sheet.ts +0 -1461
  3542. package/src/theme/util/create-theme.ts +0 -17
  3543. package/src/theme/util/index.ts +0 -1
  3544. package/src/util/annotation.ts +0 -42
  3545. package/src/util/attr.ts +0 -26
  3546. package/src/util/axis.ts +0 -261
  3547. package/src/util/bbox.ts +0 -271
  3548. package/src/util/collision-detect.ts +0 -163
  3549. package/src/util/color.ts +0 -21
  3550. package/src/util/context.ts +0 -12
  3551. package/src/util/coordinate.ts +0 -160
  3552. package/src/util/direction.ts +0 -138
  3553. package/src/util/dom.ts +0 -73
  3554. package/src/util/event.ts +0 -14
  3555. package/src/util/facet.ts +0 -48
  3556. package/src/util/graphics.ts +0 -236
  3557. package/src/util/grid.ts +0 -135
  3558. package/src/util/helper.ts +0 -74
  3559. package/src/util/legend.ts +0 -174
  3560. package/src/util/marker.ts +0 -57
  3561. package/src/util/padding.ts +0 -42
  3562. package/src/util/scale.ts +0 -146
  3563. package/src/util/stat.ts +0 -45
  3564. package/src/util/text.ts +0 -106
  3565. package/src/util/tooltip.ts +0 -482
  3566. package/src/util/transform.ts +0 -69
  3567. package/src/util/types.ts +0 -4
package/src/interface.ts DELETED
@@ -1,3956 +0,0 @@
1
- import { COMPONENT_TYPE, DIRECTION, LAYER } from './constant';
2
- import {
3
- AxisLabelCfg,
4
- AxisLineCfg,
5
- AxisSubTickLineCfg,
6
- AxisTickLineCfg,
7
- AxisTitleCfg,
8
- ContinueLegendHandlerCfg,
9
- ContinueLegendLabelCfg,
10
- ContinueLegendRailCfg,
11
- ContinueLegendTrackCfg,
12
- Coordinate,
13
- CrosshairLineCfg,
14
- CrosshairTextBackgroundCfg,
15
- CrosshairTextCfg,
16
- EnhancedTextCfg,
17
- GridLineCfg,
18
- GroupComponent,
19
- HtmlComponent,
20
- ICanvas,
21
- IGroup,
22
- IShape,
23
- CategoryLegendCfg,
24
- LegendBackgroundCfg,
25
- LegendItemNameCfg,
26
- LegendItemValueCfg,
27
- LegendMarkerCfg,
28
- LegendTitleCfg,
29
- LegendPageNavigatorCfg,
30
- PathCommand,
31
- Scale,
32
- ScaleConfig,
33
- ShapeAttrs,
34
- LineAnnotationTextCfg,
35
- TrendCfg,
36
- } from './dependents';
37
-
38
- import { View } from './chart';
39
- import { Facet } from './facet';
40
- import Element from './geometry/element';
41
- import { PaddingCalCtor } from './chart/layout/padding-cal';
42
- import { LegendRadio } from '@antv/component';
43
-
44
- // ============================ 基础类型 ============================
45
- /**
46
- * @title 通用对象
47
- */
48
- export interface LooseObject {
49
- [key: string]: any;
50
- }
51
-
52
- /**
53
- * @title 一个点位置
54
- */
55
- export interface Point {
56
- readonly x: number;
57
- readonly y: number;
58
- }
59
-
60
- /**
61
- * @title 画布范围
62
- */
63
- export interface Region {
64
- readonly start: Point;
65
- readonly end: Point;
66
- }
67
-
68
- /**
69
- * @title 画布大小
70
- */
71
- export interface Size {
72
- readonly width: number;
73
- readonly height: number;
74
- }
75
-
76
- /**
77
- * @title 带范围的点结构
78
- */
79
- export interface RangePoint {
80
- readonly x?: number | number[];
81
- readonly y?: number | number[];
82
- }
83
-
84
- /**
85
- * WAI-ARIA 无障碍标签配置
86
- */
87
- export type AriaOption =
88
- | false
89
- | {
90
- readonly label: string;
91
- };
92
-
93
- /**
94
- * @title 用户数据经过图形映射处理后的数据结构
95
- */
96
- export interface MappingDatum {
97
- /**
98
- * @title 原始数据
99
- */
100
- _origin: Datum;
101
- /**
102
- * @title shape 的关键点信息
103
- */
104
- points?: ShapeVertices;
105
- /**
106
- * @title 相对于当前 shape 的下一个 shape 的关键点信息
107
- */
108
- nextPoints?: ShapeVertices;
109
- /**
110
- * @title x 轴的坐标
111
- */
112
- x?: number[] | number;
113
- /**
114
- * @title y 轴的坐标
115
- */
116
- y?: number[] | number;
117
- /**
118
- * @title 颜色
119
- */
120
- color?: string;
121
- /**
122
- * @title 渲染的 shape 类型
123
- */
124
- shape?: string | string[];
125
- /**
126
- * @title 大小
127
- */
128
- size?: number;
129
- }
130
-
131
- /**
132
- * @title 绘制 Shape 需要的图形、样式、关键点等信息
133
- */
134
- export interface ShapeInfo {
135
- /**
136
- * @title x 坐标
137
- */
138
- x: number | number[];
139
- /**
140
- * @title y 坐标
141
- */
142
- y: number | number[];
143
- /**
144
- * @title 映射的 shape 类型
145
- */
146
- shape?: string | string[];
147
- /**
148
- * @title size 映射值
149
- */
150
- size?: number;
151
- /**
152
- * @title 映射的颜色值
153
- */
154
- color?: string;
155
- /**
156
- * @title 用户设置的图形样式
157
- */
158
- style?: LooseObject;
159
- /**
160
- * @title 是否在极坐标下
161
- */
162
- isInCircle?: boolean;
163
- /**
164
- * @title 对应的原始数据记录
165
- */
166
- data?: Datum | Data;
167
- /**
168
- * @title 存储进行图形映射后的数据
169
- */
170
- mappingData?: MappingDatum | MappingDatum[];
171
- /**
172
- * @title 构成 shape 的关键点
173
- */
174
- points?: ShapeVertices;
175
- /**
176
- * @title 下一个数据集对应的关键点
177
- */
178
- nextPoints?: ShapeVertices;
179
- /**
180
- * @title Geometry.Text 需要
181
- */
182
- text?: string;
183
- /**
184
- * @title 数据是否发生层叠
185
- */
186
- isStack?: boolean;
187
- /**
188
- * @title 是否连接空值,只对 Path Line Area 这三种 Geometry 生效。
189
- */
190
- connectNulls?: boolean;
191
- /**
192
- * @title shape 背景,只对 Interval Geometry 生效,目前只对 interval-rect shape 生效。
193
- */
194
- background?: {
195
- style?: ShapeAttrs;
196
- };
197
- /**
198
- * @title 是否展示单个孤立的数据点,只对 Path Line Area 这三种 Geometry 生效。
199
- */
200
- showSinglePoint?: boolean;
201
- /**
202
- * @title 默认的 shape 样式
203
- */
204
- defaultStyle?: LooseObject;
205
- /**
206
- * @title 自定义的数据,传入到 shapeInfo 中
207
- */
208
- customInfo?: CustomOption;
209
- }
210
-
211
- /**
212
- * @title 用户配置的动画,属性均可选
213
- */
214
- export interface AnimateCfg {
215
- /**
216
- * @title 动画缓动函数
217
- */
218
- readonly easing?: string | AnimateEasingCallback;
219
- /**
220
- * @title 动画执行函数
221
- */
222
- readonly animation?: string;
223
- /**
224
- * @title 动画执行时间
225
- */
226
- readonly duration?: number | AnimateDurationCallback;
227
- /**
228
- * @title 动画延迟时间
229
- */
230
- readonly delay?: number | AnimateDelayCallback;
231
- /**
232
- * @title 动画执行结束后的回调函数
233
- */
234
- readonly callback?: () => any;
235
- /**
236
- * @title 动画是否重复
237
- */
238
- readonly repeat?: boolean;
239
- }
240
-
241
- /**
242
- * @title 传递给 G 的动画配置,duration 必须提供
243
- */
244
- export interface GAnimateCfg {
245
- /**
246
- * @title 动画执行时间
247
- */
248
- readonly duration: number;
249
- /**
250
- * @title 动画缓动函数
251
- */
252
- readonly easing?: string;
253
- /**
254
- * @title 动画执行函数
255
- */
256
- readonly animation?: string;
257
- /**
258
- * @title 动画延迟时间
259
- */
260
- readonly delay?: number;
261
- /**
262
- * @title 动画执行结束后的回调函数
263
- */
264
- readonly callback?: () => any;
265
- /**
266
- * @title 动画是否重复
267
- */
268
- readonly repeat?: boolean;
269
- }
270
-
271
- // ============================ Geometry 接口相关的类型定义 ============================
272
- /**
273
- * @title 图形属性配置项定义,如 geometry.position({})
274
- */
275
- export interface AttributeOption {
276
- /**
277
- * @title 映射的属性字段。
278
- */
279
- fields?: string[];
280
- /**
281
- * @title 回调函数。
282
- */
283
- callback?: (...args) => any;
284
- /**
285
- * @title 指定常量映射规则。
286
- */
287
- values?: any[];
288
- }
289
-
290
- /**
291
- * @title 数据调整配置项定义,`geometry.adjust({})`
292
- */
293
- export interface AdjustOption {
294
- /**
295
- * @title 数据调整类型。
296
- */
297
- readonly type: AdjustType;
298
- /**
299
- * @title 间距
300
- * @description 该属性只对 'dodge' 类型生效,取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距。
301
- * @see ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ps3pToOg2nwAAAAAAAAAAABkARQnAQ)
302
- */
303
- readonly marginRatio?: number;
304
- /**
305
- * @title 分组字段
306
- * @description 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据。
307
- */
308
- readonly dodgeBy?: string;
309
- /**
310
- * @title 是否反序
311
- * @description 该属性只对 'stack' 类型生效,用于控制是否对数据进行反序操作。
312
- */
313
- readonly reverseOrder?: boolean;
314
- }
315
-
316
- /**
317
- * @title `geometry.style({})` 样式配置定义
318
- */
319
- export interface StyleOption {
320
- /**
321
- * @title 映射的字段。
322
- */
323
- readonly fields?: string[];
324
- /**
325
- * @title 回调函数。
326
- */
327
- readonly callback?: (...args) => LooseObject;
328
- /**
329
- * @title 图形样式配置。
330
- */
331
- readonly cfg?: LooseObject;
332
- }
333
-
334
- /**
335
- * @title geometry.custom() custom 自定义的配置,可以传入任何数据
336
- */
337
- export type CustomOption = any;
338
-
339
- /**
340
- * @title `geometry.tooltip({})` Tooltip 配置定义
341
- */
342
- export interface GeometryTooltipOption {
343
- /**
344
- * @title 参与映射的字段。
345
- */
346
- readonly fields: string[];
347
- /**
348
- * @title 回调函数。
349
- */
350
- readonly callback?: (...args) => LooseObject;
351
- }
352
-
353
- export interface GeometryLabelLayoutCfg {
354
- /**
355
- * @title label 布局类型。
356
- */
357
- type: string;
358
- /**
359
- * @title 各个布局函数开放给用户的配置。
360
- */
361
- cfg?: LooseObject;
362
- }
363
-
364
- /**
365
- * @title geometry.label({}) 配置属性
366
- */
367
- export interface GeometryLabelCfg {
368
- /**
369
- * @title 类型
370
- * @description 用于声明渲染的 label 类型。当用户使用了自定义的 label 类型,需要声明具体的 type 类型,否则会使用默认的 label 类型渲染。
371
- */
372
- type?: string;
373
- /**
374
- * @title 相对数据点的偏移距离, polar 和 theta 坐标系下可使用百分比字符串。
375
- */
376
- offset?: number | string;
377
- /**
378
- * @title label 相对于数据点在 X 方向的偏移距离。
379
- */
380
- offsetX?: number;
381
- /**
382
- * @title label 相对于数据点在 Y 方向的偏移距离。
383
- */
384
- offsetY?: number;
385
- /**
386
- * @title 文本内容
387
- * @description 展示的文本内容,如果不声明则按照参与映射的第一字段的值进行显示。当 content 为 IGroup 或者 IShape 类型时,请使用相对定位,即 x 和 y 坐标都设为 0,G2 内部会整体做最后的 label 进行定位的。
388
- * @link 示例: https://g2.antv.vision/zh/examples/pie/basic#pie-custome-label
389
- */
390
- content?: string | IGroup | IShape | GeometryLabelContentCallback;
391
- /**
392
- * @title 文本样式
393
- * @description label 文本图形属性样式。
394
- */
395
- style?: LooseObject;
396
- /**
397
- * @title 是否自动旋转
398
- * @description label 是否自动旋转
399
- * @default true
400
- */
401
- autoRotate?: boolean;
402
- /**
403
- * @title 旋转
404
- * @description 当且仅当 `autoRotate` 为 false 时生效,用于设置文本的旋转角度,**弧度制**。
405
- */
406
- rotate?: number;
407
- /**
408
- * @title 标签高度
409
- * @description 标签高度设置,仅当标签类型 type 为 pie 时生效;也可在主题中设置 pieLabels.labelHeight
410
- */
411
- labelHeight?: number;
412
- /**
413
- * @title 文本连接线
414
- * @description 用于设置文本连接线的样式属性,null 表示不展示。
415
- */
416
- labelLine?: null | boolean | { style?: object };
417
- /**
418
- * @title 文本放射状
419
- * @description 只对极坐标下的文本生效,表示文本是否按照角度进行放射状显示,true 表示开启,false 表示关闭。
420
- */
421
- labelEmit?: boolean;
422
- /**
423
- * @title 文本布局
424
- * 文本布局类型,支持多种布局函数组合使用。
425
- *
426
- * 目前提供了三种:'overlap','fixedOverlap','limitInShape':
427
- * 1. overlap: label 防遮挡,为了防止 label 之间相互覆盖,通过尝试向**四周偏移**来剔除放不下的 label。
428
- * 2. fixed-overlap: 不改变 label 位置的情况下对相互重叠的 label 进行调整。
429
- * 3. limit-in-shape: 剔除 shape 容纳不了的 label。
430
- *
431
- * @example
432
- * ```ts
433
- * layout: {
434
- * type: 'overlap',
435
- * },
436
- * ```
437
- */
438
- layout?: GeometryLabelLayoutCfg | GeometryLabelLayoutCfg[];
439
- /**
440
- * @title 背景
441
- * @description 用于绘制 label 背景
442
- */
443
- background?: {
444
- /**
445
- * @title 背景框图形属性配置
446
- * - fill?: string; 背景框 填充色
447
- * - stroke?: string; 背景框 描边色
448
- * - lineWidth?: string; 背景框 描边宽度
449
- * - radius?: number | number[]; 背景框圆角,支持整数或数组形式
450
- */
451
- style?: ShapeAttrs;
452
- /**
453
- * @title 背景框 内边距
454
- */
455
- padding?: number | number[];
456
- };
457
- /**
458
- * @title 位置
459
- * @description 仅当 geometry 为 interval 时生效,指定当前 label 与当前图形的相对位置。
460
- */
461
- position?:
462
- | ((data: Datum, mappingData: MappingDatum, index: number) => IntervalGeometryLabelPosition)
463
- | IntervalGeometryLabelPosition;
464
- /**
465
- * @title 动画配置。
466
- */
467
- animate?: AnimateOption | false | null;
468
- }
469
-
470
- /**
471
- * @title `geometry().label({})` 配置定义
472
- */
473
- export interface LabelOption {
474
- /**
475
- * @title 映射的字段。
476
- */
477
- fields?: string[];
478
- /**
479
- * @title 回调函数。
480
- */
481
- callback?: LabelCallback;
482
- cfg?: GeometryLabelCfg;
483
- }
484
-
485
- /**
486
- * @title Geometry 下每个 state 的配置结构
487
- */
488
- export interface StateCfg {
489
- /**
490
- * @title 状态样式配置。
491
- */
492
- style?: object | StateStyleCallback;
493
- }
494
-
495
- /**
496
- * @title geometry.state({}) 配置定义
497
- */
498
- export interface StateOption {
499
- /**
500
- * @title 默认状态样式。
501
- */
502
- default?: StateCfg;
503
- /**
504
- * @title active 状态配置。
505
- */
506
- active?: StateCfg;
507
- /**
508
- * @title inactive 状态配置。
509
- */
510
- inactive?: StateCfg;
511
- /**
512
- * @title selected 状态配置。
513
- */
514
- selected?: StateCfg;
515
- }
516
-
517
- /**
518
- * @title interval label 的位置
519
- */
520
- export type IntervalGeometryLabelPosition = 'top' | 'bottom' | 'middle' | 'left' | 'right';
521
- /**
522
- * @title G2 提供的 adjust 类型
523
- */
524
- export type AdjustType = 'stack' | 'jitter' | 'dodge' | 'symmetric';
525
- /**
526
- * @title geometry.color() 图形属性回调函数定义
527
- */
528
- export type ColorAttrCallback = (...args) => string;
529
- /**
530
- * @title geometry.shape() 图形属性回调函数定义
531
- */
532
- export type ShapeAttrCallback = (...args) => string | any[];
533
- /**
534
- * @title geometry.size() 图形属性回调函数定义
535
- */
536
- export type SizeAttrCallback = (...args) => number;
537
- /**
538
- * @title geometry.tooltip() 接口回调函数定义
539
- */
540
- export type TooltipCallback = (...args) => LooseObject;
541
- /**
542
- * @title geometry.style() 接口回调函数定义
543
- */
544
- export type StyleCallback = (...args) => LooseObject;
545
- /**
546
- * @title geometry.label() 接口回调函数定义
547
- */
548
- export type LabelCallback = (...args) => GeometryLabelCfg | null | undefined;
549
- /**
550
- * @title geometry label 中 content 属性的回调函数类型定义
551
- */
552
- export type GeometryLabelContentCallback = (
553
- data: Datum,
554
- mappingData: MappingDatum,
555
- index: number
556
- ) => string | IShape | IGroup;
557
- /**
558
- * @title state 下 style 回调函数定义
559
- */
560
- export type StateStyleCallback = (element: Element) => LooseObject;
561
-
562
- // ============================ Geometry Shape 接口相关的类型定义 ============================
563
- /**
564
- * @title 获取 shape marker 时需要的信息
565
- */
566
- export interface ShapeMarkerCfg {
567
- /**
568
- * @title 颜色。
569
- */
570
- color: string;
571
- /**
572
- * @title 是否是极坐标。
573
- */
574
- isInPolar: boolean;
575
- }
576
-
577
- /**
578
- * @title 图形 marker 的配置信息。
579
- */
580
- export interface ShapeMarkerAttrs {
581
- /**
582
- * @title marker 的形状。
583
- */
584
- symbol: string | ShapeMarkerSymbol;
585
- /**
586
- * @title marker 样式
587
- * @description
588
- * marker 的样式,`ShapeAttrs` 属性结构如下:
589
- *
590
- * ```ts
591
- * {
592
- * // x 坐标
593
- * x?: number;
594
- * // y 坐标
595
- * y?: number;
596
- * // 圆半径
597
- * r?: number;
598
- * // 描边颜色
599
- * stroke?: string | null;
600
- * // 描边透明度
601
- * strokeOpacity?: number;
602
- * // 填充颜色
603
- * fill?: string | null;
604
- * // 填充透明度
605
- * fillOpacity?: number;
606
- * // 整体透明度
607
- * opacity?: number;
608
- * // 线宽
609
- * lineWidth?: number;
610
- * // 指定如何绘制每一条线段末端
611
- * lineCap?: 'butt' | 'round' | 'square';
612
- * // 用来设置2个长度不为0的相连部分(线段,圆弧,曲线)如何连接在一起的属性(长度为0的变形部分,其指定的末端和控制点在同一位置,会被忽略)
613
- * lineJoin?: 'bevel' | 'round' | 'miter';
614
- * // 设置线的虚线样式,可以指定一个数组。一组描述交替绘制线段和间距(坐标空间单位)长度的数字。 如果数组元素的数量是奇数,数组的元素会被复制并重复。例如, [5, 15, 25] 会变成 [5, 15, 25, 5, 15, 25]。这个属性取决于浏览器是否支持 setLineDash() 函数。
615
- * lineDash?: number[] | null;
616
- * // Path 路径
617
- * path?: string | object[];
618
- * // 图形坐标点
619
- * points?: object[];
620
- * // 宽度
621
- * width?: number;
622
- * // 高度
623
- * height?: number;
624
- * // 阴影模糊效果程度
625
- * shadowBlur?: number;
626
- * // 阴影颜色
627
- * shadowColor?: string | null;
628
- * // 阴影 x 方向偏移量
629
- * shadowOffsetX?: number;
630
- * // 阴影 y 方向偏移量
631
- * shadowOffsetY?: number;
632
- * // 设置文本内容的当前对齐方式
633
- * textAlign?: 'start' | 'center' | 'end' | 'left' | 'right';
634
- * // 设置在绘制文本时使用的当前文本基线
635
- * textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
636
- * // 字体样式
637
- * fontStyle?: 'normal' | 'italic' | 'oblique';
638
- * // 文本字体大小
639
- * fontSize?: number;
640
- * // 文本字体
641
- * fontFamily?: string;
642
- * // 文本粗细
643
- * fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
644
- * // 字体变体
645
- * fontVariant?: 'normal' | 'small-caps' | string;
646
- * // 文本行高
647
- * lineHeight?: number;
648
- * [key: string]: any;
649
- * }
650
- * ```
651
- *
652
- * @link https://github.com/antvis/g/blob/28e3178b616573e0fa6d59694f1aaca2baaa9766/packages/g-base/src/types.ts#L37|ShapeAttrs
653
- */
654
- style: ShapeAttrs;
655
- }
656
-
657
- /**
658
- * @title shape 关键点信息
659
- */
660
- export interface ShapePoint {
661
- /**
662
- * @title 数据点映射后对应 x 的值。
663
- */
664
- readonly x: number | number[];
665
- /**
666
- * @title 数据点映射后对应 y 的值。
667
- */
668
- readonly y?: number | number[];
669
- /**
670
- * @title 数据在 y 方向的最小值。
671
- */
672
- readonly y0?: number;
673
- /**
674
- * @title 大小
675
- */
676
- size?: number;
677
- }
678
-
679
- /**
680
- * @title 小提琴图 shape 关键点信息
681
- */
682
- export type ViolinShapePoint = ShapePoint & { _size?: number[] };
683
-
684
- /**
685
- * @title 注册 ShapeFactory 需要实现的接口。
686
- */
687
- export interface RegisterShapeFactory {
688
- /**
689
- * @title 默认的 shape 类型。
690
- */
691
- readonly defaultShapeType: string;
692
- /**
693
- * @title 返回绘制 shape 所有的关键点集合。
694
- */
695
- readonly getDefaultPoints?: (pointInfo: ShapePoint) => Point[];
696
- /**
697
- * @title 获取 shape 的默认绘制样式
698
- */
699
- readonly getDefaultStyle?: (geometryTheme: LooseObject) => LooseObject;
700
- /**
701
- * @title 获取 shape 对应的缩略图配置。
702
- */
703
- readonly getMarker?: (shapeType: string, markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
704
- /**
705
- * @title 创建具体的 G.Shape 实例。
706
- */
707
- readonly drawShape?: (shapeType: string, cfg: ShapeInfo, container: IGroup) => IShape | IGroup;
708
- }
709
-
710
- /**
711
- * @title 注册具体 shape 需要实现的接口。
712
- */
713
- export interface RegisterShape {
714
- /**
715
- * @title 计算绘制需要的关键点,在注册具体的 shape 时由开发者自己定义。
716
- */
717
- readonly getPoints?: (pointInfo: ShapePoint) => Point[];
718
- /**
719
- * @title 获取 shape 对应的缩略图样式配置,在注册具体的 shape 时由开发者自己定义。
720
- */
721
- readonly getMarker?: (markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
722
- /**
723
- * @title 绘制函数。
724
- */
725
- readonly draw: (cfg: ShapeInfo, container: IGroup) => IShape | IGroup | void;
726
- }
727
-
728
- /**
729
- * @title Shape 接口定义。
730
- */
731
- export interface Shape extends RegisterShape {
732
- /**
733
- * @title 坐标系对象。
734
- */
735
- coordinate: Coordinate;
736
- /**
737
- * @title 工具函数,将 0~1 path 转化成实际画布 path。
738
- */
739
- parsePath: (path: any) => PathCommand[];
740
- /**
741
- * @title 工具函数,0~1 的坐标点转换成实际画布坐标点。
742
- */
743
- parsePoint: (point: Point) => Point;
744
- /**
745
- * @title 工具函数,0~1 的坐标点集合转换成实际画布坐标点集合。
746
- */
747
- parsePoints: (points: Point[]) => Point[];
748
- }
749
-
750
- /**
751
- * @title ShapeFactory 接口定义。
752
- */
753
- export interface ShapeFactory extends RegisterShapeFactory {
754
- /**
755
- * @title 工厂名。
756
- */
757
- geometryType: string;
758
- /**
759
- * @title 坐标系对象。
760
- */
761
- coordinate: Coordinate;
762
- /**
763
- * @title ShapeFactory 下所有的主题样式。
764
- */
765
- theme: LooseObject;
766
- /**
767
- * @title 根据名称获取具体的 shape 对象。
768
- */
769
- getShape: (shapeType: string | string[]) => Shape;
770
- /**
771
- * @title 获取构成 shape 的关键点。
772
- */
773
- getShapePoints: (shapeType: string | string[], pointInfo: ShapePoint) => Point[];
774
- }
775
-
776
- /**
777
- * @title 自定义 Shape marker 的函数
778
- */
779
- export type ShapeMarkerSymbol = (x: number, y: number, r: number) => PathCommand[];
780
-
781
- // ============================ Annotation 类型定义 ============================
782
- /**
783
- * @title Annotation position 回调函数
784
- */
785
- export type AnnotationPositionCallback = (
786
- xScales: Scale[] | Record<string, Scale>,
787
- yScales: Scale[] | Record<string, Scale>
788
- ) => [number | string, number | string];
789
- /**
790
- * @title Annotation 位置相关属性的类型定义
791
- */
792
- export type AnnotationPosition =
793
- | [number | string, number | string]
794
- | Record<string, number | string>
795
- | AnnotationPositionCallback;
796
-
797
- /**
798
- * @title Annotation 定义的通用属性,chart.annotation().line({})
799
- */
800
- export interface AnnotationBaseOption {
801
- /**
802
- * @title 类型
803
- */
804
- readonly type?: string;
805
- /**
806
- * @title 是否顶层
807
- * @description 指定 annotation 是否绘制在 canvas 最上层,默认为 false, 即绘制在最下层
808
- */
809
- readonly top?: boolean;
810
- /**
811
- * @title 是否进行动画
812
- */
813
- readonly animate?: boolean;
814
- /**
815
- * @title 动画参数配置
816
- * @description 当且仅当 `animate` 属性为 true,即动画开启时生效。
817
- */
818
- readonly animateOption?: ComponentAnimateOption;
819
- /**
820
- * @title x 方向的偏移量
821
- */
822
- readonly offsetX?: number;
823
- /**
824
- * @title y 方向的偏移量
825
- */
826
- readonly offsetY?: number;
827
- }
828
-
829
- /**
830
- * @title 使用 RegionPosition 定位的组件配置
831
- */
832
- export interface RegionPositionBaseOption extends AnnotationBaseOption {
833
- /**
834
- * @title 起始位置
835
- */
836
- readonly start: AnnotationPosition;
837
- /**
838
- * @title 结束位置
839
- */
840
- readonly end: AnnotationPosition;
841
- /**
842
- * @title 图形样式属性
843
- */
844
- readonly style?: ShapeAttrs;
845
- }
846
-
847
- /**
848
- * @title 使用 PointPosition 定位的组件配置
849
- */
850
- export interface PointPositionBaseOption extends AnnotationBaseOption {
851
- /**
852
- * @title Point 定位位置
853
- */
854
- readonly position: AnnotationPosition;
855
- }
856
-
857
- /**
858
- * @title 使用 Image Annotation 组件的配置定义
859
- */
860
- export interface ImageOption extends RegionPositionBaseOption {
861
- /**
862
- * @title 图片路径
863
- */
864
- readonly src: string;
865
- }
866
-
867
- /**
868
- * @title 使用 Line Annotation 组件的配置定义
869
- */
870
- export interface LineOption extends RegionPositionBaseOption {
871
- /**
872
- * @title 文本配置定义
873
- */
874
- readonly text?: LineAnnotationTextCfg;
875
- }
876
- /**
877
- * @title 使用 Arc Annotation 组件的配置定义
878
- */
879
- export type ArcOption = RegionPositionBaseOption;
880
- /**
881
- * @title 使用 Region Annotation 组件的配置定义
882
- */
883
- export type RegionOption = RegionPositionBaseOption;
884
- /**
885
- * @title 使用 Text Annotation 组件的配置定义
886
- */
887
- export interface TextOption extends PointPositionBaseOption, Omit<EnhancedTextCfg, 'content'> {
888
- content?: string | number | ((filteredData: object[]) => string | number);
889
- }
890
- /**
891
- * @title 使用 DataMarker Annotation 组件的配置定义
892
- */
893
- export interface DataMarkerOption extends PointPositionBaseOption {
894
- /**
895
- * @title point 设置
896
- */
897
- readonly point?: null | { style?: ShapeAttrs };
898
- /**
899
- * @title line 设置
900
- */
901
- readonly line?: null | { style?: ShapeAttrs; length?: number };
902
- /**
903
- * @title text 设置
904
- */
905
- readonly text: null | EnhancedTextCfg;
906
- /**
907
- * @title 文本超出绘制区域时,是否自动调节文本方向,默认为 true
908
- */
909
- readonly autoAdjust?: boolean;
910
- /**
911
- * @title 朝向,默认为 upward,可选值为 'upward' 或者 'downward'
912
- */
913
- readonly direction?: 'upward' | 'downward';
914
- }
915
- /**
916
- * @title 使用 DataRegion Annotation 组件的配置定义
917
- */
918
- export interface DataRegionOption extends RegionPositionBaseOption {
919
- /**
920
- * @title line长度,default为 0
921
- */
922
- readonly lineLength?: number;
923
- /**
924
- * @title 标注区间的配置
925
- */
926
- readonly region?: null | { style?: ShapeAttrs };
927
- /**
928
- * @title 文本的配置
929
- */
930
- readonly text?: null | EnhancedTextCfg;
931
- }
932
- /**
933
- * @title 使用 RegionFilter Annotation 组件的配置定义
934
- */
935
- export interface RegionFilterOption extends RegionPositionBaseOption {
936
- /**
937
- * @title 染色色值
938
- */
939
- readonly color: string;
940
- /**
941
- * @title 适用场景
942
- * @description 可选,设定regionFilter只对特定geom类型起作用,如apply:['area']
943
- */
944
- readonly apply?: string[];
945
- }
946
-
947
- /**
948
- * @title Shape Annotation 的配置
949
- */
950
- export interface ShapeAnnotationOption extends AnnotationBaseOption {
951
- /**
952
- * @title 自定义 Annotation 绘制函数
953
- */
954
- render: (
955
- container: IGroup,
956
- view: View,
957
- helpers: { parsePosition: (position: [string | number, string | number] | Datum) => Point }
958
- ) => void;
959
- }
960
-
961
- /**
962
- * Html Annotation 配置
963
- */
964
- export interface HtmlAnnotationOption extends PointPositionBaseOption {
965
- /**
966
- * @title 容器元素
967
- */
968
- container?: string | HTMLElement;
969
- /**
970
- * @title 自定义 HTML DOM 元素
971
- */
972
- html: string | HTMLElement | ((container: HTMLElement, view: View) => void | string | HTMLElement);
973
- /**
974
- * @title X 方向对齐
975
- */
976
- alignX?: 'left' | 'middle' | 'right';
977
- /**
978
- * @title Y 方向对齐
979
- */
980
- alignY?: 'top' | 'middle' | 'bottom';
981
- /**
982
- * @title X 方向偏移
983
- */
984
- offsetX?: number;
985
- /**
986
- * @title Y 方向偏移
987
- */
988
- offsetY?: number;
989
- }
990
-
991
- // ============================ Chart && View 上的类型定义 ============================
992
- /**
993
- * @title Tooltip 内容框的 css 样式定义
994
- */
995
- export interface TooltipDomStyles {
996
- 'g2-tooltip'?: LooseObject;
997
- 'g2-tooltip-title'?: LooseObject;
998
- 'g2-tooltip-list'?: LooseObject;
999
- 'g2-tooltip-list-item'?: LooseObject;
1000
- 'g2-tooltip-marker'?: LooseObject;
1001
- 'g2-tooltip-value'?: LooseObject;
1002
- 'g2-tooltip-name'?: LooseObject;
1003
- }
1004
-
1005
- /**
1006
- * @title 目前组件动画允许的参数配置
1007
- */
1008
- export interface ComponentAnimateCfg {
1009
- /**
1010
- * @title 动画执行时间
1011
- */
1012
- readonly duration?: number;
1013
- /**
1014
- * @title 动画缓动函数
1015
- */
1016
- readonly easing?: string;
1017
- /**
1018
- * @title 动画延迟时间
1019
- */
1020
- readonly delay?: number;
1021
- }
1022
- /**
1023
- * @title 组件各个动画类型配置
1024
- */
1025
- export interface ComponentAnimateOption {
1026
- /**
1027
- * @title 初入场动画配置
1028
- */
1029
- appear?: ComponentAnimateCfg;
1030
- /**
1031
- * @title 更新动画配置
1032
- */
1033
- update?: ComponentAnimateCfg;
1034
- /**
1035
- * @title 更新后新入场的动画配置
1036
- */
1037
- enter?: ComponentAnimateCfg;
1038
- /**
1039
- * @title 离场动画配置
1040
- */
1041
- leave?: ComponentAnimateCfg;
1042
- }
1043
-
1044
- /**
1045
- * @title 列定义配置项
1046
- */
1047
- export interface ScaleOption extends ScaleConfig {
1048
- /**
1049
- * @title 声明度量类型。
1050
- */
1051
- type?: ScaleType;
1052
- /**
1053
- * @title 同步 scale
1054
- *
1055
- * @example
1056
- * ```ts
1057
- * chart.scale({
1058
- * x: { sync: true },
1059
- * y: { sync: true },
1060
- * x1: { sync: 'x1' },
1061
- * x2: { sync: 'x1' },
1062
- * });
1063
- * ```
1064
- *
1065
- * 通过以上配置,我们会分别对 x 和 y 两个字段,x1 和 x2 两个字段进行同步度量操作。
1066
- */
1067
- sync?: boolean | string;
1068
- /**
1069
- * @title 是否显示最后的 tick
1070
- * @description 只对 `type: 'cat'` 以及 `type: 'time-cat'` 的 scale 生效,强制显示最后的日期 tick。
1071
- */
1072
- showLast?: boolean;
1073
- /**
1074
- * @title 唯一 ID
1075
- * @description
1076
- * 用于声明使用数据记录中的哪些字段来组成一条数据的唯一 id(如有多个字段,则使用 '-' 连接)。
1077
- * 数据 id 用于标识 Element 图形元素,应用于 Geometry 中的图形元素 Element 更新。
1078
- * 默认 G2 内部会有一套 ID 生成规则,如果不能满足用户需求,用户既可以使用该属性配置 id。
1079
- * @example
1080
- * 下面的例子中,声明了将 'x' 和 'y' 字段的数值来作为每条数据记录的 id,即下面数据两条数据的 id 分别为:'1-23' 和 '2-2'。
1081
- * ```ts
1082
- * const data = [
1083
- * { x: 1, y: 23, z: 'a' },
1084
- * { x: 2, y: 2, z: 'b' },
1085
- * ];
1086
- *
1087
- * chart.scale({
1088
- * x: { key: true },
1089
- * y: { key: true },
1090
- * });
1091
- * ```
1092
- */
1093
- key?: boolean;
1094
- }
1095
-
1096
- /**
1097
- * @title Geometry 动画参数配置。geometry.animate()
1098
- */
1099
- export interface AnimateOption {
1100
- /**
1101
- * @title chart 初始化渲染时的入场动画,false/null 表示关闭入场动画。
1102
- */
1103
- appear?: AnimateCfg | false | null;
1104
- /**
1105
- * @title chart 发生更新时,新增元素的入场动画,false/null 表示关闭入场动画。
1106
- */
1107
- enter?: AnimateCfg | false | null;
1108
- /**
1109
- * @title 更新动画配置,false/null 表示关闭更新动画。
1110
- */
1111
- update?: AnimateCfg | false | null;
1112
- /**
1113
- * @title 销毁动画配置,false/null 表示关闭销毁动画。
1114
- */
1115
- leave?: AnimateCfg | false | null;
1116
- }
1117
-
1118
- /**
1119
- * @title 用于配置项式声明交互行为
1120
- */
1121
- export interface InteractionOption {
1122
- /**
1123
- * @title 交互名称
1124
- */
1125
- type: string;
1126
- /**
1127
- * @title 交互配置
1128
- */
1129
- cfg?: LooseObject;
1130
- }
1131
-
1132
- /**
1133
- * @title 用于配置项式的 Geometry 创建方式
1134
- */
1135
- export interface GeometryOption {
1136
- /**
1137
- * @title Geometry 的类型。
1138
- */
1139
- type?: 'interval' | 'line' | 'path' | 'point' | 'area' | 'polygon' | 'schema' | 'edge' | 'heatmap' | string;
1140
- /**
1141
- * @title position 通道映射规则,对应 `geometry.position()`。
1142
- */
1143
- position?: string | AttributeOption;
1144
- /**
1145
- * @title color 通道映射规则,对应 `geometry.color()`。
1146
- */
1147
- color?: string | AttributeOption;
1148
- /**
1149
- * @title shape 通道映射规则,对应 `geometry.shape()`。
1150
- */
1151
- shape?: string | AttributeOption;
1152
- /**
1153
- * @title size 通道映射规则,对应 `geometry.size()`。
1154
- */
1155
- size?: number | string | AttributeOption;
1156
- /**
1157
- * @title adjust 数据调整方式,对应 `geometry.adjust()`。
1158
- */
1159
- adjust?: string | string[] | AdjustOption | AdjustOption[];
1160
- /**
1161
- * @title style 样式配置,对应 `geometry.size()`。
1162
- */
1163
- style?: StyleOption | LooseObject;
1164
- /**
1165
- * @title tooltip 配置,对应 `geometry.tooltip()`。
1166
- */
1167
- tooltip?: GeometryTooltipOption | boolean | string;
1168
- /**
1169
- * @title Geometry 动画配置,对应 `geometry.animate()`。
1170
- */
1171
- animate?: AnimateOption | boolean;
1172
- /**
1173
- * @title Label 配置,对应 `geometry.label()`。
1174
- */
1175
- label?: LabelOption | false | string;
1176
- /**
1177
- * @title state 样式配置,对应 `geometry.state()`。
1178
- */
1179
- state?: StateOption;
1180
- /**
1181
- * @title 其他配置
1182
- */
1183
- cfg?: {
1184
- /**
1185
- * @title 是否对数据进行排序
1186
- */
1187
- sortable?: boolean;
1188
- /**
1189
- * @title 是否可见
1190
- */
1191
- visible?: boolean;
1192
- /**
1193
- * @title 是否连接空值,仅对 'line', 'area' 和 'path' 生效
1194
- */
1195
- connectNulls?: boolean;
1196
- };
1197
- }
1198
-
1199
- /**
1200
- * @title 用于配置型式的 View 声明方式
1201
- */
1202
- export interface ViewOption {
1203
- /**
1204
- * @title view 的唯一表示 ID
1205
- */
1206
- readonly id?: string;
1207
- /**
1208
- * @title view 的绘制范围,起始点为左上角。
1209
- */
1210
- readonly region?: Region;
1211
- /**
1212
- * 设置图表的内边距,使用方式参考 CSS 盒模型。
1213
- * 下图黄色区域即为 padding 的范围。
1214
- * ![](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*pYwiQrdXGJ8AAAAAAAAAAABkARQnAQ)
1215
- *
1216
- * @example
1217
- * 1. padding: 20
1218
- * 2. padding: [ 10, 30, 30 ]
1219
- */
1220
- readonly padding?: ViewPadding;
1221
- /**
1222
- * @title 设置主题。
1223
- */
1224
- readonly theme?: LooseObject | string;
1225
- /**
1226
- * @title 是否可见。
1227
- */
1228
- readonly visible?: boolean;
1229
- /**
1230
- * 图表组件、图形映射等相关的配置。
1231
- */
1232
- readonly options?: Options;
1233
- }
1234
-
1235
- /**
1236
- * @title Chart 构造方法的入参
1237
- */
1238
- export interface ChartCfg
1239
- extends Omit<ViewCfg, 'parent' | 'canvas' | 'foregroundGroup' | 'middleGroup' | 'backgroundGroup' | 'region'> {
1240
- /**
1241
- * @title 指定 chart 绘制的 DOM,可以传入 DOM id,也可以直接传入 dom 实例。
1242
- */
1243
- readonly container: string | HTMLElement;
1244
- /**
1245
- * @title 图表宽度。
1246
- */
1247
- readonly width?: number;
1248
- /**
1249
- * @title 图表高度。
1250
- */
1251
- readonly height?: number;
1252
- /**
1253
- * @title 否自适应容器宽高
1254
- * @description
1255
- * 图表是否自适应容器宽高,默认为 false,用户需要手动设置 width 和 height。当 `autoFit: true` 时,
1256
- * 会自动取图表容器的宽高,如果用户设置了 height,那么会以用户设置的 height 为准。
1257
- * @default false
1258
- */
1259
- readonly autoFit?: boolean;
1260
- /**
1261
- * @title 渲染引擎
1262
- * @default "canvas"
1263
- */
1264
- readonly renderer?: Renderer;
1265
- /**
1266
- * @title 像素比
1267
- * @description 设置设备像素比,默认取浏览器的值 `window.devicePixelRatio`。
1268
- */
1269
- readonly pixelRatio?: number;
1270
- /**
1271
- * @title 是否开启局部刷新
1272
- * @default true
1273
- */
1274
- readonly localRefresh?: boolean;
1275
- /**
1276
- * @title 是否支持 CSS transform
1277
- * @description 开启后图表的交互以及事件将在页面设置了 css transform 属性时生效,默认关闭。
1278
- * @default false
1279
- */
1280
- readonly supportCSSTransform?: boolean;
1281
- /**
1282
- * @title 配置图表默认交互,仅支持字符串形式。
1283
- */
1284
- readonly defaultInteractions?: string[];
1285
- }
1286
-
1287
- export type SyncViewPaddingFn = (chart: View, views: View[], PC: PaddingCalCtor) => void;
1288
-
1289
- /**
1290
- * @title View 构造参数
1291
- */
1292
- export interface ViewCfg {
1293
- /**
1294
- * @title View id,可以由外部传入
1295
- */
1296
- readonly id?: string;
1297
- /**
1298
- * @title 当前 view 的父级 view。
1299
- */
1300
- readonly parent: View;
1301
- /**
1302
- * @title canvas 实例。
1303
- */
1304
- readonly canvas: ICanvas;
1305
- /**
1306
- * @title 前景层
1307
- */
1308
- readonly foregroundGroup: IGroup;
1309
- /**
1310
- * @title 中间层
1311
- */
1312
- readonly middleGroup: IGroup;
1313
- /**
1314
- * @title 背景层
1315
- */
1316
- readonly backgroundGroup: IGroup;
1317
- /**
1318
- * @title view 的绘制范围
1319
- */
1320
- readonly region?: Region;
1321
- /**
1322
- * @title 是否对超出坐标系范围的 Geometry 进行剪切
1323
- */
1324
- readonly limitInPlot?: boolean;
1325
- /**
1326
- * @title 内边距
1327
- * @description 设置图表的内边距,使用方式参考 CSS 盒模型,下图黄色区域即为 padding 的范围。
1328
- * @see ![](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*pYwiQrdXGJ8AAAAAAAAAAABkARQnAQ)
1329
- * @example
1330
- * 1. padding: 20
1331
- * 2. padding: [ 10, 30, 30 ]
1332
- */
1333
- readonly padding?: ViewPadding;
1334
- /**
1335
- * @title 额外边距
1336
- * @description 设置图表的内边距在padding的基础上增加appendPadding的调整。
1337
- * @example
1338
- * 1. padding: 20
1339
- * 2. padding: [ 10, 30, 30 ]
1340
- */
1341
- readonly appendPadding?: ViewAppendPadding;
1342
- /**
1343
- * @title 是否同步子 view 的 padding
1344
- * @description 是否同步子 view 的 padding,可以是 boolean / SyncViewPaddingFn
1345
- * @example
1346
- * view1 的 padding 10
1347
- * view2 的 padding 20
1348
- * 那么两个子 view 的 padding 统一变成最大的 20.
1349
- *
1350
- * 如果是 Funcion,则使用自定义的方式去计算子 view 的 padding,这个函数中去修改所有的 views autoPadding 值
1351
- */
1352
- readonly syncViewPadding?: boolean | SyncViewPaddingFn;
1353
- /**
1354
- * @title 主题
1355
- * @description 设置 view 实例主题
1356
- */
1357
- readonly theme?: LooseObject | string;
1358
- /**
1359
- * @title 图表组件、图形映射等相关的配置。
1360
- */
1361
- readonly options?: Options;
1362
- /**
1363
- * @title 是否可见
1364
- */
1365
- readonly visible?: boolean;
1366
- }
1367
-
1368
- /**
1369
- * @ignore
1370
- * 组件及布局的信息
1371
- */
1372
- export interface ComponentOption {
1373
- readonly id?: string;
1374
- readonly component: GroupComponent | HtmlComponent;
1375
- readonly layer: LAYER;
1376
- direction: DIRECTION;
1377
- readonly type: COMPONENT_TYPE;
1378
- /* 其他的额外信息 */
1379
- readonly extra?: any;
1380
- }
1381
-
1382
- /**
1383
- * @title Legend marker 的配置结构
1384
- */
1385
- export interface MarkerCfg extends LegendMarkerCfg {
1386
- /**
1387
- * @title 配置图例 marker 的 symbol 形状。
1388
- */
1389
- symbol?: Marker | MarkerCallback;
1390
- style?: ShapeAttrs | ((style: ShapeAttrs) => ShapeAttrs);
1391
- }
1392
-
1393
- /**
1394
- * @title Legend item 各个图例项的数据结构
1395
- */
1396
- export interface LegendItem {
1397
- /**
1398
- * 唯一值,用于动画或者查找
1399
- */
1400
- id?: string;
1401
- /**
1402
- * @title 名称
1403
- */
1404
- name: string;
1405
- /**
1406
- * @title 值
1407
- */
1408
- value: any;
1409
- /**
1410
- * @title 图形标记
1411
- */
1412
- marker?: MarkerCfg | ((name: string, index: number, item: { name: string; value: string } & MarkerCfg) => MarkerCfg);
1413
- /**
1414
- * @title 初始是否处于未激活状态
1415
- */
1416
- unchecked?: boolean;
1417
- }
1418
-
1419
- export interface G2LegendTitleCfg extends LegendTitleCfg {
1420
- /**
1421
- * @title title 文本显示内容
1422
- */
1423
- text?: string;
1424
- }
1425
-
1426
- /**
1427
- * 图例项配置
1428
- */
1429
- export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
1430
- /**
1431
- * @title 是否为自定义图例
1432
- * @description 当该属性为 true 时,需要声明 items 属性。
1433
- */
1434
- readonly custom?: boolean;
1435
- /**
1436
- * @title 布局
1437
- * @description 布局方式: horizontal,vertical
1438
- */
1439
- layout?: 'horizontal' | 'vertical';
1440
- /**
1441
- * @title 图例标题配置
1442
- * @description 默认不展示。
1443
- * @example
1444
- * 属性结构如下:
1445
- *
1446
- * ```ts
1447
- * {
1448
- * spacing?: number; // 标题同图例项的间距
1449
- * style?: ShapeAttrs; // 文本样式配置项
1450
- * }
1451
- * ```
1452
- *
1453
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L639|LegendTitleCfg
1454
- */
1455
- title?: G2LegendTitleCfg;
1456
- /**
1457
- * @title 背景框配置项。
1458
- * @example
1459
- * 属性结构如下:
1460
- *
1461
- * ```ts
1462
- * {
1463
- * padding?: number | number[]; // 背景的留白
1464
- * style?: ShapeAttrs; // 背景样式配置项
1465
- * }
1466
- * ```
1467
- *
1468
- * 详见 {@link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L652|LegendBackgroundCfg}
1469
- */
1470
- background?: LegendBackgroundCfg;
1471
- /**
1472
- * @title 图例的位置。
1473
- */
1474
- position?:
1475
- | 'top'
1476
- | 'top-left'
1477
- | 'top-right'
1478
- | 'right'
1479
- | 'right-top'
1480
- | 'right-bottom'
1481
- | 'left'
1482
- | 'left-top'
1483
- | 'left-bottom'
1484
- | 'bottom'
1485
- | 'bottom-left'
1486
- | 'bottom-right';
1487
- /**
1488
- * @title 动画开关,默认关闭。
1489
- */
1490
- animate?: boolean;
1491
- /**
1492
- * @title 动画
1493
- * @description 动画参数配置,当且仅当 `animate` 属性为 true,即动画开启时生效。
1494
- */
1495
- animateOption?: ComponentAnimateOption;
1496
- /**
1497
- * @title 水平间距
1498
- * @description **分类图例适用**,控制图例项水平方向的间距。
1499
- */
1500
- itemSpacing?: number;
1501
- /**
1502
- * @title 垂直间距
1503
- * @description **分类图例适用**,控制图例项垂直方向的间距。
1504
- */
1505
- itemMarginBottom?: number;
1506
- /**
1507
- * @title 图例项的最大宽度
1508
- * @description
1509
- * **分类图例适用**,图例项的最大宽度,超出则自动缩略。
1510
- * `maxItemWidth` 可以是像素值;
1511
- * 也可以是相对值(取 0 到 1 范围的数值),代表占图表宽度的多少
1512
- */
1513
- maxItemWidth?: number;
1514
- /**
1515
- * @title 图例项的宽度
1516
- * @description **分类图例适用**,图例项的宽度, 默认为 null,自动计算。
1517
- */
1518
- itemWidth?: number;
1519
- /**
1520
- * @title 图例项的高度
1521
- * @description **分类图例适用**,图例的高度,默认为 null。
1522
- */
1523
- itemHeight?: number;
1524
- /**
1525
- * @title 图例项 name
1526
- * @description
1527
- * **分类图例适用**,图例项 name 文本的配置。
1528
- * 属性结构如下:
1529
- *
1530
- * ```ts
1531
- * {
1532
- * spacing?: number; // 图例项 name 同后面 value 的间距
1533
- * formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
1534
- * style?: ShapeAttrs; // 文本配置项
1535
- * }
1536
- * ```
1537
- *
1538
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L665|LegendItemNameCfg
1539
- */
1540
- itemName?: LegendItemNameCfg;
1541
- /**
1542
- * @title 图例项 value
1543
- * @description
1544
- * **分类图例适用**,图例项 value 附加值的配置项。
1545
- * 属性结构如下:
1546
- *
1547
- * ```ts
1548
- * {
1549
- * alignRight?: boolean; // 是否右对齐,默认为 false,仅当设置图例项宽度时生效
1550
- * formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
1551
- * style?: ShapeAttrs; // 图例项附加值的配置
1552
- * }
1553
- * ```
1554
- *
1555
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L685|LegendItemValueCfg
1556
- */
1557
- itemValue?: LegendItemValueCfg;
1558
- /**
1559
- * @title 最大宽度
1560
- * @description **分类图例适用**,图例项最大宽度设置。
1561
- */
1562
- maxWidth?: number;
1563
- /**
1564
- * @title 最大高度
1565
- * @description **分类图例适用**,图例项最大高度设置。
1566
- */
1567
- maxHeight?: number;
1568
- /**
1569
- * @title 最大宽度比例
1570
- * @description **分类图例适用**,图例项最大宽度比例(以 view 的 bbox 宽度为参照,默认 0.25)。
1571
- */
1572
- maxWidthRatio?: number;
1573
- /**
1574
- * @title 最大高度比例
1575
- * @description **分类图例适用**,图例项最大高度比例(以 view 的 bbox 高度为参照,默认 0.25)。
1576
- */
1577
- maxHeightRatio?: number;
1578
- /**
1579
- * @title 图例项的 marker
1580
- * @description **分类图例适用**,图例项的 marker 图标的配置。
1581
- */
1582
- marker?: MarkerCfg | ((name: string, index: number, item: { name: string; value: string } & MarkerCfg) => MarkerCfg);
1583
- /**
1584
- * @title 是否进行分页
1585
- * @description **适用于分类图例**,当图例项过多时是否进行分页。
1586
- */
1587
- flipPage?: boolean;
1588
- /**
1589
- * @title 分页器的样式
1590
- * @description **适用于分类图例**,图例分页器的样式设置。
1591
- */
1592
- pageNavigator?: LegendPageNavigatorCfg;
1593
- /**
1594
- * @title 图例项
1595
- * @description **分类图例适用**,用户自己配置图例项的内容。
1596
- */
1597
- items?: LegendItem[];
1598
- /**
1599
- * @title 反选
1600
- * @description **分类图里适用**,用来配置正反选功能
1601
- */
1602
- radio?: LegendRadio;
1603
- /**
1604
- * @title 是否逆序
1605
- * @description **分类图例适用**,是否将图例项逆序展示。
1606
- */
1607
- reversed?: boolean;
1608
-
1609
- /**
1610
- * @title 最小值
1611
- * @description **连续图例适用**,选择范围的最小值。
1612
- */
1613
- min?: number;
1614
- /**
1615
- * @title 最大
1616
- * @description **连续图例适用**,选择范围的最大值。
1617
- */
1618
- max?: number;
1619
- /**
1620
- * @title value
1621
- * @description **连续图例适用**,选择的值。
1622
- */
1623
- value?: number[];
1624
- /**
1625
- * @title 色块样式
1626
- * @description
1627
- * **连续图例适用**,选择范围的色块样式配置项。
1628
- * 属性结构如下:
1629
- *
1630
- * ```ts
1631
- * {
1632
- * style?: ShapeAttrs; // 选定范围的样式
1633
- * }
1634
- * ```
1635
- *
1636
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L574|ContinueLegendTrackCfg
1637
- */
1638
- track?: ContinueLegendTrackCfg;
1639
- /**
1640
- * @title 滑轨(背景
1641
- * @description
1642
- * **连续图例适用**,图例滑轨(背景)的样式配置项。
1643
- * 属性结构如下:
1644
- *
1645
- * ```ts
1646
- * {
1647
- * type?: string; // rail 的类型,color, size
1648
- * size?: number; // 滑轨的宽度
1649
- * defaultLength?: number; // 滑轨的默认长度,,当限制了 maxWidth,maxHeight 时,不会使用这个属性会自动计算长度
1650
- * style?: ShapeAttrs; // 滑轨的样式
1651
- * }
1652
- * ```
1653
- *
1654
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L595|ContinueLegendRailCfg
1655
- */
1656
- rail?: ContinueLegendRailCfg;
1657
- /**
1658
- * @title 文本
1659
- * @description
1660
- * **连续图例适用**,文本的配置项。
1661
- * 属性结构如下:
1662
- *
1663
- * ```ts
1664
- * {
1665
- * // 文本同滑轨的对齐方式,有五种类型
1666
- * // rail : 同滑轨对齐,在滑轨的两端
1667
- * // top, bottom: 图例水平布局时有效
1668
- * // left, right: 图例垂直布局时有效
1669
- * align?: string;
1670
- * spacing?: number; // 文本同滑轨的距离
1671
- * style?: ShapeAttrs; // 文本样式
1672
- * }
1673
- * ```
1674
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L618|ContinueLegendLabelCfg
1675
- */
1676
- label?: ContinueLegendLabelCfg;
1677
- /**
1678
- * @title 滑块
1679
- * @description
1680
- * **连续图例适用**,滑块的配置项。
1681
- * 属性结构如下:
1682
- *
1683
- * ```ts
1684
- * {
1685
- * size?: number; // 滑块的大小
1686
- * style?: ShapeAttrs; // 滑块的样式设置
1687
- * }
1688
- * ```
1689
- *
1690
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L582|ContinueLegendTrackCfg
1691
- */
1692
- handler?: ContinueLegendHandlerCfg;
1693
- /**
1694
- * @title 是否可滑动
1695
- * @description **连续图例适用**,滑块是否可以滑动。
1696
- */
1697
- slidable?: boolean;
1698
- /**
1699
- * @title 图例 x 方向的偏移。
1700
- */
1701
- offsetX?: number;
1702
- /**
1703
- * @title 图例 y 方向的偏移。
1704
- */
1705
- offsetY?: number;
1706
- /**
1707
- * @title 图例在四个方向的偏移量
1708
- */
1709
- padding?: number[];
1710
- /**
1711
- * 图例高亮状态,false 表示默认置灰,无或 true 表示高亮
1712
- */
1713
- selected?: {
1714
- [key: string]: boolean;
1715
- };
1716
- }
1717
-
1718
- /**
1719
- * Tooltip Crosshairs 的文本数据结构。
1720
- */
1721
- export interface TooltipCrosshairsText extends CrosshairTextCfg {
1722
- /**
1723
- * @title crosshairs 文本内容
1724
- */
1725
- content?: string;
1726
- }
1727
-
1728
- /**
1729
- * 辅助线文本回调函数
1730
- * @param type 对应当前 crosshairs 的类型,值为 'x' 或者 'y'
1731
- * @param defaultContent 对应当前 crosshairs 默认的文本内容
1732
- * @param items 对应当前 tooltip 内容框中的数据
1733
- * @param currentPoint 对应当前坐标点
1734
- * @returns 返回当前 crosshairs 对应的辅助线文本配置
1735
- */
1736
- export type TooltipCrosshairsTextCallback = (
1737
- type: string,
1738
- defaultContent: any,
1739
- items: any[],
1740
- currentPoint: Point
1741
- ) => TooltipCrosshairsText;
1742
- /**
1743
- * @title Tooltip crosshairs 配置结构
1744
- */
1745
- export interface TooltipCrosshairs {
1746
- /**
1747
- * @title 类型
1748
- * @description
1749
- * crosshairs 的类型: `x` 表示 x 轴上的辅助线,`y` 表示 y 轴上的辅助项。
1750
- * 以下是在不同坐标系下,crosshairs 各个类型的表现:
1751
- *
1752
- * | 坐标系 | type = 'x' | type = 'xy' | type = 'y' |
1753
- * | ------------ | ------------- | ------------- |
1754
- * | 直角坐标系 | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*jmUBQ4nbtXsAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*RpWXT76ZSQgAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*Xjl8TLIJLuUAAAAAAAAAAABkARQnAQ) |
1755
- * | 极坐标 | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*zbMVSoKTyFsAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*k5EYRJspET0AAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*n_TKQpUaXWEAAAAAAAAAAABkARQnAQ) |
1756
- */
1757
- type?: 'x' | 'y' | 'xy';
1758
- /**
1759
- * @title 辅助线的样式配置。
1760
- * @description
1761
- * 属性结构如下:
1762
- *
1763
- * ```ts
1764
- * {
1765
- * style?: ShapeAttrs; // 线的样式配置
1766
- * }
1767
- * ```
1768
- *
1769
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1177|CrosshairLineCfg
1770
- */
1771
- line?: CrosshairLineCfg;
1772
- /**
1773
- * @title 文本
1774
- * @description 辅助线文本配置,支持回调。
1775
- */
1776
- text?: TooltipCrosshairsText | TooltipCrosshairsTextCallback;
1777
- /**
1778
- * @title 辅助线文本背景配置。
1779
- * @description
1780
- * 属性结构如下:
1781
- *
1782
- * ```ts
1783
- * {
1784
- * padding?: number | number[]; // 文本背景周围的留白
1785
- * style?: ShapeAttrs; // 文本背景的样式
1786
- * }
1787
- * ```
1788
- *
1789
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1185|CrosshairTextBackgroundCfg
1790
- */
1791
- textBackground?: CrosshairTextBackgroundCfg;
1792
- /**
1793
- * @title 辅助线是否跟随鼠标移动
1794
- * @description 即定位到数据点
1795
- * @default false
1796
- */
1797
- follow?: boolean;
1798
- }
1799
-
1800
- export type TooltipTitle = string | ((title: string, datum: Datum) => string);
1801
-
1802
- export type TooltipItem = {
1803
- /**
1804
- * @title 原始数据
1805
- */
1806
- readonly data: Datum; // 原始数据
1807
- /**
1808
- * @title 映射之后的数据
1809
- */
1810
- readonly mappingData: Datum; // 映射后的数据
1811
- /**
1812
- * @title tooltip item 中名称
1813
- */
1814
- readonly name: string;
1815
- /**
1816
- * @title tooltip item 中值
1817
- */
1818
- readonly value: string | number;
1819
- /**
1820
- * @title tooltip item 中颜色
1821
- */
1822
- readonly color: string;
1823
- /**
1824
- * @title tooltip item 中图标类型
1825
- */
1826
- readonly marker: string;
1827
- };
1828
-
1829
- /**
1830
- * @title chart.tooltip() 接口配置属性
1831
- */
1832
- export interface TooltipCfg {
1833
- /**
1834
- * @title 设置 tooltip 内容框是否跟随鼠标移动。
1835
- * @description 默认为 true,跟随鼠标移动,false 则固定位置不随鼠标移动。
1836
- * @default true
1837
- */
1838
- follow?: boolean;
1839
- /**
1840
- * @title tooltip 是否允许鼠标滑入
1841
- * @default false
1842
- */
1843
- enterable?: boolean;
1844
- /**
1845
- * @title tooltip 显示延迟(ms)
1846
- * @description 默认为 16ms,建议在 enterable = true 的时候才设置
1847
- * @default "16ms"
1848
- */
1849
- showDelay?: number;
1850
- /**
1851
- * @title 是否展示 tooltip 标题。
1852
- */
1853
- showTitle?: boolean;
1854
- /**
1855
- * @title 标题
1856
- * @description
1857
- * 设置 tooltip 的标题内容:如果值为数据字段名,则会展示数据中对应该字段的数值,如果数据中不存在该字段,则直接展示 title 值。
1858
- * 同时支持传入方法,回调的方式返回字符串
1859
- */
1860
- title?: TooltipTitle;
1861
- /**
1862
- * @title 设置 tooltip 的固定展示位置,相对于数据点。
1863
- */
1864
- position?: 'top' | 'bottom' | 'left' | 'right';
1865
- /**
1866
- * @title 是否合并当前点对应的所有数据
1867
- * @description true 表示合并当前点对应的所有数据并展示,false 表示只展示离当前点最逼近的数据内容。
1868
- */
1869
- shared?: boolean; // 是否只展示单条数据
1870
- /**
1871
- * @title 是否展示 crosshairs。
1872
- */
1873
- showCrosshairs?: boolean;
1874
- /**
1875
- * @title 交叉线
1876
- * @description 配置 tooltip 的 crosshairs,当且仅当 `showCrosshairs` 为 true 时生效。
1877
- */
1878
- crosshairs?: TooltipCrosshairs;
1879
- /**
1880
- * @title 是否渲染 tooltipMarkers。
1881
- */
1882
- showMarkers?: boolean;
1883
- /**
1884
- * @title tooltipMarker 的样式配置。
1885
- */
1886
- marker?: object;
1887
- /**
1888
- * @title 是否展示 tooltip 内容框
1889
- */
1890
- showContent?: boolean | ((datum: Datum) => boolean);
1891
- /**
1892
- * @title 自定义 tooltip 的容器。
1893
- */
1894
- container?: string | HTMLElement;
1895
- /**
1896
- * @title 图例容器的模板
1897
- * @description 用于指定图例容器的模板,自定义模板时必须包含各个 dom 节点的 class。
1898
- */
1899
- containerTpl?: string;
1900
- /**
1901
- * @title 默认模板
1902
- * @description 每项记录的默认模板,自定义模板时必须包含各个 dom 节点的 class。
1903
- */
1904
- itemTpl?: string;
1905
- /**
1906
- * @title dom 样式
1907
- * @description 传入各个 dom 的样式。
1908
- */
1909
- domStyles?: TooltipDomStyles;
1910
- /**
1911
- * @title tooltip 偏移量。
1912
- */
1913
- offset?: number;
1914
- /**
1915
- * @title 是否将 tooltip items 逆序
1916
- */
1917
- reversed?: boolean;
1918
- /**
1919
- * @title 是否显示空值的 tooltip 项目
1920
- */
1921
- showNil?: boolean;
1922
- /**
1923
- * @description 在 tooltip 渲染之前,对最终的 items 进行自定义处理(比如排序、过滤、格式化等)
1924
- */
1925
- customItems?: (originalItems: TooltipItem[]) => TooltipItem[];
1926
- /**
1927
- * @title 自定义模板
1928
- */
1929
- customContent?: (title: string, data: any[]) => string | HTMLElement;
1930
- }
1931
-
1932
- /**
1933
- * @title 坐标系配置
1934
- */
1935
- export interface CoordinateOption {
1936
- /**
1937
- * @title 坐标系类型
1938
- */
1939
- type?: 'polar' | 'theta' | 'rect' | 'cartesian' | 'helix';
1940
- /**
1941
- * @title 坐标系配置项,目前常用于极坐标。
1942
- */
1943
- cfg?: CoordinateCfg;
1944
- /**
1945
- * @title 坐标系变换
1946
- * @description
1947
- * 1. rotate 表示旋转,使用弧度制。
1948
- * 2. scale 表示沿着 x 和 y 方向的缩放比率。
1949
- * 3. reflect 表示沿 x 方向镜像或者沿 y 轴方向映射。
1950
- * 4. transpose 表示 x,y 轴置换。
1951
- */
1952
- actions?: CoordinateActions[];
1953
- }
1954
-
1955
- /**
1956
- * @title 极坐标系支持的配置属性
1957
- */
1958
- export interface CoordinateCfg {
1959
- /**
1960
- * @title 起始弧度
1961
- * @description 用于极坐标,配置起始弧度。
1962
- */
1963
- startAngle?: number;
1964
- /**
1965
- * @title 结束弧度
1966
- * @description 用于极坐标,配置结束弧度。
1967
- */
1968
- endAngle?: number;
1969
- /**
1970
- * @title 半径
1971
- * @description 用于极坐标,配置极坐标半径,0 - 1 范围的数值。
1972
- */
1973
- radius?: number;
1974
- /**
1975
- * @title 内半径
1976
- * @description 用于极坐标,极坐标内半径,0 -1 范围的数值。
1977
- */
1978
- innerRadius?: number;
1979
- }
1980
-
1981
- /**
1982
- * @title 坐标轴网格线的配置属性
1983
- */
1984
- export interface AxisGridCfg {
1985
- /**
1986
- * @title 线的样式
1987
- * @description
1988
- * 属性结构如下:
1989
- *
1990
- * ```ts
1991
- * {
1992
- * type?: string; // 栅格线的类型,'line' 或者 'circle'
1993
- * style?: ShapeAttrs; // 栅格线的样式配置项
1994
- * }
1995
- * ```
1996
- *
1997
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L407|GridLineCfg
1998
- */
1999
- line?: GridLineCfg;
2000
- /**
2001
- * @title 两个栅格线间的填充色。
2002
- */
2003
- alternateColor?: string | string[];
2004
- /**
2005
- * @title 是否关闭
2006
- * @description 对于 circle 是否关闭 grid。
2007
- */
2008
- closed?: boolean;
2009
- /**
2010
- * @title 是否同刻度线对齐
2011
- * @description 如果值为 false,则会显示在两个刻度中间。
2012
- * @see ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*YX6fS4GTTvMAAAAAAAAAAABkARQnAQ)
2013
- */
2014
- alignTick?: boolean;
2015
- }
2016
-
2017
- /**
2018
- * @title 坐标轴配置属性,chart.axis()
2019
- */
2020
- export interface AxisCfg {
2021
- /**
2022
- * @title 是否渲染在画布顶层
2023
- * @description 防止部分图形中,需要将 axis 显示在图形上面,避免被图形遮挡
2024
- */
2025
- top?: boolean;
2026
- /**
2027
- * @title 坐标轴的位置
2028
- * @description 适用于直角坐标系,设置坐标轴的位置。
2029
- */
2030
- position?: 'top' | 'bottom' | 'right' | 'left';
2031
- /**
2032
- * @title 轴线
2033
- * @description
2034
- * 坐标轴线的配置项,null 表示不展示。
2035
- * 属性结构如下:
2036
- *
2037
- * ```ts
2038
- * {
2039
- * style?: ShapeAttrs; // 坐标轴线的样式配置项
2040
- * }
2041
- * ```
2042
- *
2043
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L91|AxisLineCfg
2044
- */
2045
- line?: AxisLineCfg | null;
2046
- /**
2047
- * @title 刻度线线
2048
- * @description
2049
- * 坐标轴刻度线线的配置项,null 表示不展示。
2050
- * 属性结构如下:
2051
- *
2052
- * ```ts
2053
- * {
2054
- * style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
2055
- * alignTick?: boolean; // 是否同 tick 对齐
2056
- * length?: number; // 长度
2057
- * }
2058
- * ```
2059
- *
2060
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L103|AxisTickLineCfg
2061
- */
2062
- tickLine?: AxisTickLineCfg | null;
2063
- /**
2064
- * @title 子刻度线
2065
- * @description
2066
- * 坐标轴子刻度线的配置项,null 表示不展示。
2067
- * 属性结构如下:
2068
- *
2069
- * ```ts
2070
- * {
2071
- * style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
2072
- * count?: number; // 子刻度个数
2073
- * length?: number; // 子刻度线长度
2074
- * }
2075
- * ```
2076
- *
2077
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L169|AxisSubTickLineCfg
2078
- */
2079
- subTickLine?: AxisSubTickLineCfg | null;
2080
- /**
2081
- * @title 标题
2082
- * @description
2083
- * 标题的配置项,null 表示不展示。
2084
- * 属性结构如下:
2085
- *
2086
- * ```ts
2087
- * {
2088
- * offset?: number; // 标题距离坐标轴的距离
2089
- * style?: ShapeAttrs; // 标题文本配置项
2090
- * autoRotate?: boolean; // 是否自动旋转
2091
- * }
2092
- * ```
2093
- *
2094
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L191|AxisTitleCfg
2095
- */
2096
- title?: AxisTitleCfg | null;
2097
- /**
2098
- * @title 文本标签
2099
- * @description
2100
- * 文本标签的配置项,null 表示不展示。
2101
- * 属性结构如下:
2102
- *
2103
- * ```ts
2104
- * {
2105
- * // 坐标轴文本的样式
2106
- * style?: ShapeAttrs;
2107
- * // label 的偏移量
2108
- * offset?: number;
2109
- * // 文本旋转角度
2110
- * rotate?: number;
2111
- * // 格式化函数
2112
- * formatter?: (text: string, item: ListItem, index: number) => any;
2113
- * // 是否自动旋转,默认 false
2114
- * autoRotate?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2115
- * // 是否自动隐藏,默认 true
2116
- * autoHide?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2117
- * // 是否自动省略,默认 false
2118
- * autoEllipsis?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2119
- * }
2120
- * ```
2121
- *
2122
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L127|AxisLabelCfg
2123
- */
2124
- label?: AxisLabelCfg | null;
2125
- /**
2126
- * @title 网格线
2127
- * @description 坐标轴网格线的配置项,null 表示不展示。
2128
- */
2129
- grid?: AxisGridCfg | null;
2130
- /**
2131
- * @title 动画
2132
- * @default true
2133
- */
2134
- animate?: boolean;
2135
- /**
2136
- * @title 动画参数
2137
- */
2138
- animateOption?: ComponentAnimateOption;
2139
- /**
2140
- * @title 坐标轴 label 的方向
2141
- * @description 标记坐标轴 label 的方向,左侧为 1,右侧为 -1。
2142
- */
2143
- verticalFactor?: number;
2144
- /**
2145
- * @title 坐标轴垂直方向的最大限制长度
2146
- * @description
2147
- * 配置坐标轴垂直方向的最大限制长度,对文本自适应有很大影响。
2148
- * 1. 可以直接设置像素值,如 100;
2149
- * 2. 也可设置绝对值,如 0.2,如果是 x 轴,则相对于图表的高度,如果是 y 轴,则相对于图表的宽度
2150
- *
2151
- * 在 G2 中,x 轴的文本默认最大高度为图表高度的 1/2,y 轴的文本默认最大长度为图表宽度的 1/3
2152
- */
2153
- verticalLimitLength?: number;
2154
- }
2155
-
2156
- export interface SliderCfg {
2157
- /**
2158
- * @title slider 高度
2159
- */
2160
- readonly height?: number;
2161
-
2162
- /**
2163
- * @title 滑块背景区域配置
2164
- */
2165
- readonly trendCfg?: Omit<TrendCfg, 'data'> & { data?: number[] };
2166
- /**
2167
- * @title 滑块背景样式
2168
- */
2169
- readonly backgroundStyle?: any;
2170
- /**
2171
- * @title 滑块前景样式
2172
- */
2173
- readonly foregroundStyle?: any;
2174
- /**
2175
- * @title 滑块两个操作块样式
2176
- */
2177
- readonly handlerStyle?: any;
2178
- /**
2179
- * @title 文本样式
2180
- */
2181
- readonly textStyle?: any;
2182
- /**
2183
- * @title 允许滑动位置的最小值
2184
- */
2185
- readonly minLimit?: number;
2186
- /**
2187
- * @title 允许滑动位置的最大值
2188
- */
2189
- readonly maxLimit?: number;
2190
- /**
2191
- * @title 滑块初始化的起始位置
2192
- */
2193
- readonly start?: number;
2194
- /**
2195
- * @title 滑块初始化的结束位置
2196
- */
2197
- readonly end?: number;
2198
- /**
2199
- * @title 布局的 padding
2200
- */
2201
- readonly padding?: number[];
2202
- /**
2203
- * @title 滑块文本格式化函数
2204
- */
2205
- formatter?: (val: any, datum: Datum, idx: number) => any;
2206
- }
2207
-
2208
- /**
2209
- * 事件 payload
2210
- */
2211
- export type EventPayload = LooseObject & {
2212
- /**
2213
- * @title 触发事件的来源
2214
- */
2215
- source?: string;
2216
- };
2217
-
2218
- export type EventCallback = (event: LooseObject) => void;
2219
- /**
2220
- * todo: 事件名可穷举,后续需要补充
2221
- * 事件配置项
2222
- */
2223
- export interface EventCfg {
2224
- [key: string]: EventCallback;
2225
- }
2226
-
2227
- /**
2228
- * 缩略轴的配置项
2229
- */
2230
- export type SliderOption = SliderCfg | boolean;
2231
-
2232
- /**
2233
- * @title 滚动条组件配置项
2234
- */
2235
- export interface ScrollbarCfg {
2236
- /**
2237
- * @title 滚动条类型,默认 horizontal
2238
- */
2239
- type?: 'horizontal' | 'vertical';
2240
- /**
2241
- * @title 宽度,在 vertical 下生效
2242
- */
2243
- width?: number;
2244
- /**
2245
- * @title 高度,在 horizontal 下生效
2246
- */
2247
- height?: number;
2248
- /**
2249
- * @title 可选 padding
2250
- */
2251
- padding?: Padding;
2252
- /**
2253
- * @title 对应水平滚动条,为 X 轴每个分类字段的宽度;对于垂直滚动条,为 X 轴每个分类字段的高度
2254
- */
2255
- categorySize?: number;
2256
- /**
2257
- * @title 滚动的时候是否开启动画,默认跟随 view 中 animate 配置
2258
- */
2259
- animate?: boolean;
2260
- /**
2261
- * @title 主题样式设置, 暂不提供 hover 高亮滑块样式配置
2262
- */
2263
- style?: {
2264
- /**
2265
- * @title 滑道颜色
2266
- */
2267
- trackColor?: string;
2268
- /**
2269
- * @title 滑块颜色
2270
- */
2271
- thumbColor?: string;
2272
- /**
2273
- * @title 滑块高亮样式,对应主题的 hover.style.thumbColor
2274
- */
2275
- thumbHighlightColor?: string;
2276
- /**
2277
- * @title 是否圆角
2278
- */
2279
- lineCap?: string;
2280
- };
2281
- }
2282
-
2283
- /**
2284
- * @title 滚动条配置
2285
- */
2286
- export type ScrollbarOption = ScrollbarCfg | boolean;
2287
-
2288
- /**
2289
- * @title 配置项声明式
2290
- */
2291
- export interface Options {
2292
- /**
2293
- * @title 数据源配置。
2294
- */
2295
- readonly data?: Data;
2296
- /**
2297
- * @title 设置数据过滤条件,以 data 中的数据属性为 key。
2298
- */
2299
- readonly filters?: Record<string, FilterCondition>;
2300
- /**
2301
- * @title 坐标轴配置,以 data 中的数据属性为 key。
2302
- */
2303
- readonly axes?: Record<string, AxisOption> | boolean;
2304
- /**
2305
- * @title 图例配置,以 data 中的数据属性为 key。
2306
- */
2307
- readonly legends?: AllLegendsOptions;
2308
- /**
2309
- * @title 列定义配置,用于配置数值的类型等,以 data 中的数据属性为 key。
2310
- */
2311
- readonly scales?: Record<string, ScaleOption>;
2312
- /**
2313
- * @title Tooltip 配置。
2314
- */
2315
- readonly tooltip?: TooltipOption;
2316
- /**
2317
- * @title 坐标系配置。
2318
- */
2319
- readonly coordinate?: CoordinateOption;
2320
- /**
2321
- * @title 静态辅助元素声明。
2322
- */
2323
- readonly annotations?: (
2324
- | ArcOption
2325
- | RegionFilterOption
2326
- | ImageOption
2327
- | LineOption
2328
- | TextOption
2329
- | RegionOption
2330
- | DataMarkerOption
2331
- | DataRegionOption
2332
- )[];
2333
- /**
2334
- * @title Geometry 配置
2335
- */
2336
- readonly geometries?: GeometryOption[];
2337
- /**
2338
- * @title 开启/关闭动画,默认开启
2339
- */
2340
- readonly animate?: boolean;
2341
- /**
2342
- * @title 配置需要使用的交互行为
2343
- */
2344
- readonly interactions?: InteractionOption[];
2345
- /**
2346
- * @title 事件配置
2347
- */
2348
- readonly events?: EventCfg;
2349
-
2350
- /**
2351
- * @title 缩略轴的配置
2352
- */
2353
- readonly slider?: SliderOption;
2354
-
2355
- /**
2356
- * @title 滚动条配置
2357
- */
2358
- readonly scrollbar?: ScrollbarOption;
2359
-
2360
- /**
2361
- * @title 子 View
2362
- */
2363
- readonly views?: ViewOption[];
2364
-
2365
- /**
2366
- * @title 分面
2367
- */
2368
- readonly facets?: (RectCfg | MirrorCfg | CircleCfg | ListCfg | TreeCfg)[];
2369
-
2370
- /**
2371
- * @title 其他自定义的 option
2372
- */
2373
- readonly [name: string]: any;
2374
- }
2375
-
2376
- /**
2377
- * @title 支持的 Marker 类型
2378
- */
2379
- export type Marker =
2380
- | 'circle'
2381
- | 'square'
2382
- | 'diamond'
2383
- | 'triangle'
2384
- | 'triangle-down'
2385
- | 'hexagon'
2386
- | 'bowtie'
2387
- | 'cross'
2388
- | 'tick'
2389
- | 'plus'
2390
- | 'hyphen'
2391
- | 'line';
2392
- /**
2393
- * @title 自定义 Marker 的回调函数定义
2394
- */
2395
- export type MarkerCallback = (x: number, y: number, r: number) => PathCommand[];
2396
- /**
2397
- * @title chart.tooltip() 参数类型
2398
- */
2399
- export type TooltipOption = TooltipCfg | boolean;
2400
- /* 筛选器函数类型定义 */
2401
- export type FilterCondition = (value: any, datum: Datum, idx?: number) => boolean;
2402
- /**
2403
- * @title chart.axis() 参数类型
2404
- */
2405
- export type AxisOption = AxisCfg | boolean;
2406
- /**
2407
- * @title chart.legend() 参数类型
2408
- */
2409
- export type LegendOption = LegendCfg | boolean;
2410
- /**
2411
- * @title Options 中 legends 的配置定义
2412
- */
2413
- export type AllLegendsOptions = LegendCfg | Record<string, LegendOption> | boolean;
2414
- /**
2415
- * @title G2 支持的度量类型
2416
- */
2417
- export type ScaleType =
2418
- | 'linear'
2419
- | 'cat'
2420
- | 'category'
2421
- | 'identity'
2422
- | 'log'
2423
- | 'pow'
2424
- | 'time'
2425
- | 'timeCat'
2426
- | 'quantize'
2427
- | 'quantile';
2428
-
2429
- export type CoordinateRotate = ['rotate', number];
2430
- export type CoordinateReflect = ['reflect', 'x' | 'y'];
2431
- export type CoordinateScale = ['scale', number, number];
2432
- export type CoordinateTranspose = ['transpose'];
2433
- /**
2434
- * @title 坐标系支持的 action 配置
2435
- */
2436
- export type CoordinateActions = CoordinateRotate | CoordinateReflect | CoordinateScale | CoordinateTranspose;
2437
-
2438
- // ============================ Facet 分面相关类型定义 ============================
2439
- // 分面基类
2440
- export type FacetCtor = new (view: View, cfg: any) => Facet;
2441
-
2442
- export interface Condition {
2443
- readonly field: string;
2444
- readonly value: any;
2445
- readonly values: any[];
2446
- }
2447
-
2448
- export type FacetDataFilter = (data: Datum[]) => boolean;
2449
-
2450
- /**
2451
- * 默认的基础配置
2452
- */
2453
- export interface FacetCfg<D> {
2454
- /**
2455
- * @title 布局类型。
2456
- */
2457
- readonly type?: string;
2458
- /**
2459
- * @title view 创建回调。
2460
- */
2461
- readonly eachView: (innerView: View, facet?: D) => any;
2462
- /**
2463
- * @title 分面 view 之间的间隔, 百分比或像素值
2464
- */
2465
- readonly spacing?: [number | string, number | string];
2466
- /**
2467
- * @title facet view padding。
2468
- */
2469
- readonly padding?: ViewPadding;
2470
- /**
2471
- * @title 是否显示标题。
2472
- */
2473
- readonly showTitle?: boolean;
2474
- /**
2475
- * @title facet 数据划分维度。
2476
- */
2477
- readonly fields: string[];
2478
- }
2479
-
2480
- /**
2481
- * Facet title 配置项
2482
- */
2483
- export interface FacetTitle {
2484
- /**
2485
- * @title x 方向偏移。
2486
- */
2487
- readonly offsetX?: number;
2488
- /**
2489
- * @title y 方向偏移。
2490
- */
2491
- readonly offsetY?: number;
2492
- /**
2493
- * @title 文本样式。
2494
- */
2495
- readonly style?: object;
2496
- /**
2497
- * @title 格式化
2498
- */
2499
- readonly formatter?: (val: any) => any;
2500
- }
2501
-
2502
- /**
2503
- * 分面数据
2504
- */
2505
- export interface FacetData {
2506
- /**
2507
- * @title 分面类型。
2508
- */
2509
- readonly type: string;
2510
- /**
2511
- * @title 当前分面子 view 的数据。
2512
- */
2513
- readonly data: object[];
2514
- /**
2515
- * @title 当前分面子 view 的范围。
2516
- */
2517
- readonly region: Region;
2518
- /**
2519
- * @title 当前分面子 view 的 padding。
2520
- */
2521
- readonly padding?: number;
2522
- /**
2523
- * @title 当前 facet 对应生成的 view。
2524
- */
2525
- view?: View;
2526
-
2527
- // facet data
2528
- /**
2529
- * @title 分面行字段。
2530
- */
2531
- readonly rowField: string;
2532
- /**
2533
- * @title 分面列字段。
2534
- */
2535
- readonly columnField: string;
2536
- /**
2537
- * @title 当前行分面的枚举值。
2538
- */
2539
- readonly rowValue: string;
2540
- /**
2541
- * @title 当前列分面的枚举值。
2542
- */
2543
- readonly columnValue: string;
2544
- /**
2545
- * @title 当前行索引。
2546
- */
2547
- readonly rowIndex: number;
2548
- /**
2549
- * @title 当前列索引。
2550
- */
2551
- readonly columnIndex: number;
2552
- /**
2553
- * @title 当前行字段的枚举值长度。
2554
- */
2555
- readonly rowValuesLength: number;
2556
- /**
2557
- * @title 当前列字段的枚举值长度。
2558
- */
2559
- readonly columnValuesLength: number;
2560
- }
2561
-
2562
- // ===================== rect 相关类型定义 =====================
2563
- /**
2564
- * @title rect 分面类型配置
2565
- */
2566
- export interface RectCfg extends FacetCfg<RectData> {
2567
- /**
2568
- * @title 行标题的样式。
2569
- */
2570
- readonly columnTitle?: FacetTitle;
2571
- /**
2572
- * @title 列标题的样式。
2573
- */
2574
- readonly rowTitle?: FacetTitle;
2575
- }
2576
-
2577
- export type RectData = FacetData;
2578
-
2579
- // ===================== mirror 相关类型定义 =====================
2580
- /**
2581
- * @title mirror 分面类型配置
2582
- */
2583
- export interface MirrorCfg extends FacetCfg<MirrorData> {
2584
- /**
2585
- * @title 是否转置。
2586
- */
2587
- readonly transpose?: boolean;
2588
- /**
2589
- * @title 标题样式。
2590
- */
2591
- readonly title?: FacetTitle;
2592
- }
2593
-
2594
- export type MirrorData = FacetData;
2595
-
2596
- // ===================== list 相关类型定义 =====================
2597
- /**
2598
- * @title list 分面类型配置
2599
- */
2600
- export interface ListCfg extends FacetCfg<ListData> {
2601
- /**
2602
- * @title 指定每行可显示分面的个数,超出时会自动换行。
2603
- */
2604
- readonly cols?: number;
2605
- /**
2606
- * @title 每个分面标题配置。
2607
- */
2608
- readonly title?: FacetTitle;
2609
- }
2610
-
2611
- export interface ListData extends FacetData {
2612
- readonly total?: number;
2613
- }
2614
-
2615
- // ===================== matrix 相关类型定义 =====================
2616
- /**
2617
- * @title matrix 分面类型配置
2618
- */
2619
- export interface MatrixCfg extends FacetCfg<MirrorData> {
2620
- /**
2621
- * @title 列标题的样式
2622
- */
2623
- readonly columnTitle?: FacetTitle;
2624
- /**
2625
- * @title 列标题的样式
2626
- */
2627
- readonly rowTitle?: FacetTitle;
2628
- }
2629
-
2630
- export type MatrixData = FacetData;
2631
-
2632
- // ===================== circle 相关类型定义 =====================
2633
- /**
2634
- * @title circle 分面类型配置
2635
- */
2636
- export interface CircleCfg extends FacetCfg<CircleData> {
2637
- /**
2638
- * @title 分面标题配置。
2639
- */
2640
- readonly title?: FacetTitle;
2641
- }
2642
-
2643
- export type CircleData = FacetData;
2644
-
2645
- // ===================== tree 相关类型定义 =====================
2646
-
2647
- export interface Line {
2648
- readonly style?: ShapeAttrs;
2649
- readonly smooth?: boolean;
2650
- }
2651
- /**
2652
- * @title tree 分面类型配置
2653
- */
2654
- export interface TreeCfg extends FacetCfg<TreeData> {
2655
- readonly line?: Line;
2656
- readonly title?: FacetTitle;
2657
- }
2658
-
2659
- export interface TreeData extends FacetData {
2660
- children?: TreeData[];
2661
- originColIndex?: number;
2662
- }
2663
-
2664
- /**
2665
- * facet object map
2666
- */
2667
- export interface FacetCfgMap {
2668
- /**
2669
- * @title rect 类型分面配置
2670
- */
2671
- readonly rect: RectCfg;
2672
- /**
2673
- * @title mirror 类型分面配置
2674
- */
2675
- readonly mirror: MirrorCfg;
2676
- /**
2677
- * @title list 类型分面配置
2678
- */
2679
- readonly list: ListCfg;
2680
- /**
2681
- * @title matrix 类型分面配置
2682
- */
2683
- readonly matrix: MatrixCfg;
2684
- /**
2685
- * @title circle 类型分面配置
2686
- */
2687
- readonly circle: CircleCfg;
2688
- /**
2689
- * @title tree 类型分面配置
2690
- */
2691
- readonly tree: TreeCfg;
2692
- }
2693
-
2694
- // ============================ 主题样式表定义 ============================
2695
- export interface StyleSheet {
2696
- /**
2697
- * @title 背景色
2698
- */
2699
- backgroundColor?: string;
2700
- /**
2701
- * @title 主题色
2702
- */
2703
- brandColor?: string;
2704
- /**
2705
- * @title 辅助色
2706
- */
2707
- subColor?: string;
2708
- /**
2709
- * @title 分类色板 1,在数据量小于等于 10 时使用
2710
- */
2711
- paletteQualitative10?: string[];
2712
- /**
2713
- * @title 分类色板 2,在数据量大于 10 时使用
2714
- */
2715
- paletteQualitative20?: string[];
2716
- /**
2717
- * @title 语义色
2718
- */
2719
- paletteSemanticRed?: string;
2720
- /**
2721
- * @title 语义色
2722
- */
2723
- paletteSemanticGreen?: string;
2724
- /**
2725
- * @title 语义色
2726
- */
2727
- paletteSemanticYellow?: string;
2728
- /**
2729
- * @title (单色)顺序色板
2730
- */
2731
- paletteSequence?: string[];
2732
- /**
2733
- * @title 字体
2734
- */
2735
- fontFamily?: string;
2736
-
2737
- // -------------------- 坐标轴 --------------------
2738
- /**
2739
- * @title 坐标轴线颜色
2740
- */
2741
- axisLineBorderColor?: string;
2742
- /**
2743
- * @title 坐标轴线粗细
2744
- */
2745
- axisLineBorder?: number;
2746
- /**
2747
- * @title 坐标轴线 lineDash 设置
2748
- */
2749
- axisLineDash?: number[];
2750
-
2751
- /**
2752
- * @title 坐标轴标题颜色
2753
- */
2754
- axisTitleTextFillColor?: string;
2755
- /**
2756
- * @title 坐标轴标题文本字体大小
2757
- */
2758
- axisTitleTextFontSize?: number;
2759
- /**
2760
- * @title 坐标轴标题文本行高
2761
- */
2762
- axisTitleTextLineHeight?: number;
2763
- /**
2764
- * @title 坐标轴标题文本字体粗细
2765
- */
2766
- axisTitleTextFontWeight?: number | string;
2767
- /**
2768
- * @title 坐标轴标题距离坐标轴文本的间距
2769
- */
2770
- axisTitleSpacing?: number;
2771
- /**
2772
- * @title 坐标轴详细说明icon颜色
2773
- */
2774
- axisDescriptionIconFillColor?: string;
2775
- /**
2776
- * @title 坐标轴刻度线颜色
2777
- */
2778
- axisTickLineBorderColor?: string;
2779
- /**
2780
- * @title 坐标轴刻度线长度
2781
- */
2782
- axisTickLineLength?: number;
2783
- /**
2784
- * @title 坐标轴刻度线粗细
2785
- */
2786
- axisTickLineBorder?: number;
2787
-
2788
- /**
2789
- * @title 坐标轴次刻度线颜色
2790
- */
2791
- axisSubTickLineBorderColor?: string;
2792
- /**
2793
- * @title 坐标轴次刻度线长度
2794
- */
2795
- axisSubTickLineLength?: number;
2796
- /**
2797
- * @title 坐标轴次刻度线粗细
2798
- */
2799
- axisSubTickLineBorder?: number;
2800
-
2801
- /**
2802
- * @title 坐标轴刻度文本颜色
2803
- */
2804
- axisLabelFillColor?: string;
2805
- /**
2806
- * @title 坐标轴刻度文本字体大小
2807
- */
2808
- axisLabelFontSize?: number;
2809
- /**
2810
- * @title 坐标轴刻度文本行高
2811
- */
2812
- axisLabelLineHeight?: number;
2813
- /**
2814
- * @title 坐标轴刻度文本字体粗细
2815
- */
2816
- axisLabelFontWeight?: number | string;
2817
- /**
2818
- * @title 坐标轴刻度文本距离坐标轴线的间距
2819
- */
2820
- axisLabelOffset: number;
2821
-
2822
- /**
2823
- * @title 坐标轴网格线颜色
2824
- */
2825
- axisGridBorderColor?: string;
2826
- /**
2827
- * @title 坐标轴网格线粗细
2828
- */
2829
- axisGridBorder?: number;
2830
- /**
2831
- * @title 坐标轴网格线虚线设置
2832
- */
2833
- axisGridLineDash?: number[];
2834
-
2835
- // -------------------- 图例 --------------------
2836
- /**
2837
- * @title 图例标题颜色
2838
- */
2839
- legendTitleTextFillColor?: string;
2840
- /**
2841
- * @title 图例标题文本字体大小
2842
- */
2843
- legendTitleTextFontSize?: number;
2844
- /**
2845
- * @title 图例标题文本行高
2846
- */
2847
- legendTitleTextLineHeight?: number;
2848
- /**
2849
- * @title 图例标题文本字体粗细
2850
- */
2851
- legendTitleTextFontWeight?: number | string;
2852
-
2853
- /**
2854
- * @title 图例 marker 颜色
2855
- */
2856
- legendMarkerColor?: string;
2857
- /**
2858
- * @title 图例 marker 距离图例文本的间距
2859
- */
2860
- legendMarkerSpacing?: number;
2861
- /**
2862
- * @title 图例 marker 默认半径大小
2863
- */
2864
- legendMarkerSize?: number;
2865
- /**
2866
- * @title 图例 'circle' marker 半径
2867
- */
2868
- legendCircleMarkerSize?: number;
2869
- /**
2870
- * @title 图例 'square' marker 半径
2871
- */
2872
- legendSquareMarkerSize?: number;
2873
- /**
2874
- * @title 图例 'line' marker 半径
2875
- */
2876
- legendLineMarkerSize?: number;
2877
-
2878
- /**
2879
- * @title 图例项文本颜色
2880
- */
2881
- legendItemNameFillColor?: string;
2882
- /**
2883
- * @title 图例项文本字体大小
2884
- */
2885
- legendItemNameFontSize?: number;
2886
- /**
2887
- * @title 图例项文本行高
2888
- */
2889
- legendItemNameLineHeight?: number;
2890
- /**
2891
- * @title 图例项粗细
2892
- */
2893
- legendItemNameFontWeight?: number | string;
2894
- /**
2895
- * @title 图例项之间的水平间距
2896
- */
2897
- legendItemSpacing?: number;
2898
- /**
2899
- * @title 图例项垂直方向的间隔
2900
- */
2901
- legendItemMarginBottom?: number;
2902
- /**
2903
- * @title 图例与图表绘图区域的偏移距离
2904
- */
2905
- legendPadding?: number[];
2906
- /**
2907
- * @title 水平布局的图例与绘图区域偏移距离
2908
- */
2909
- legendHorizontalPadding?: number[];
2910
- /**
2911
- * @title 垂直布局的图例与绘图区域偏移距离
2912
- */
2913
- legendVerticalPadding?: number[];
2914
-
2915
- /**
2916
- * @title 图例分页器 marker 大小
2917
- */
2918
- legendPageNavigatorMarkerSize: number;
2919
- /**
2920
- * @title 图例分页器 marker 非激活状态填充色
2921
- */
2922
- legendPageNavigatorMarkerInactiveFillColor: string;
2923
- /**
2924
- * @title 图例分页器 marker 非激活状态填充色透明度
2925
- */
2926
- legendPageNavigatorMarkerInactiveFillOpacity: number;
2927
- /**
2928
- * @title 图例分页器 marker 填充色
2929
- */
2930
- legendPageNavigatorMarkerFillColor: string;
2931
- /**
2932
- * @title 图例分页器 marker 填充色透明度
2933
- */
2934
- legendPageNavigatorMarkerFillOpacity: number;
2935
- /**
2936
- * @title 图例分页器文本颜色
2937
- */
2938
- legendPageNavigatorTextFillColor: string;
2939
- /**
2940
- * @title 图例分页器文本字体大小
2941
- */
2942
- legendPageNavigatorTextFontSize: number;
2943
-
2944
- /**
2945
- * @title 连续图例滑块填充色
2946
- */
2947
- sliderRailFillColor?: string;
2948
- /**
2949
- * @title 连续图例滑块边框粗细
2950
- */
2951
- sliderRailBorder?: number;
2952
- /**
2953
- * @title 连续图例滑块边框颜色
2954
- */
2955
- sliderRailBorderColor?: string;
2956
- /**
2957
- * @title 连续图例滑块宽度
2958
- */
2959
- sliderRailWidth?: number;
2960
- /**
2961
- * @title 连续图例滑块高度
2962
- */
2963
- sliderRailHeight?: number;
2964
-
2965
- /**
2966
- * @title 连续图例文本颜色
2967
- */
2968
- sliderLabelTextFillColor?: string;
2969
- /**
2970
- * @title 连续图例文本字体大小
2971
- */
2972
- sliderLabelTextFontSize?: number;
2973
- /**
2974
- * @title 连续图例文本行高
2975
- */
2976
- sliderLabelTextLineHeight?: number;
2977
- /**
2978
- * @title 连续图例文本字体粗细
2979
- */
2980
- sliderLabelTextFontWeight?: number | string;
2981
-
2982
- /**
2983
- * @title 连续图例滑块颜色
2984
- */
2985
- sliderHandlerFillColor?: string;
2986
- /**
2987
- * @title 连续图例滑块宽度
2988
- */
2989
- sliderHandlerWidth?: number;
2990
- /**
2991
- * @title 连续图例滑块高度
2992
- */
2993
- sliderHandlerHeight?: number;
2994
- /**
2995
- * @title 连续图例滑块边框粗细
2996
- */
2997
- sliderHandlerBorder?: number;
2998
- /**
2999
- * @title 连续图例滑块边框颜色
3000
- */
3001
- sliderHandlerBorderColor?: string;
3002
-
3003
- // -------------------- Annotation,图形标注 --------------------
3004
- /**
3005
- * @title arc 图形标注描边颜色
3006
- */
3007
- annotationArcBorderColor?: string;
3008
- /**
3009
- * @title arc 图形标注粗细
3010
- */
3011
- annotationArcBorder?: number;
3012
-
3013
- /**
3014
- * @title line 图形标注颜色
3015
- */
3016
- annotationLineBorderColor?: string;
3017
- /**
3018
- * @title line 图形标注粗细
3019
- */
3020
- annotationLineBorder?: number;
3021
- /**
3022
- * @title lube 图形标注的虚线间隔
3023
- */
3024
- annotationLineDash?: number[];
3025
-
3026
- /**
3027
- * @title text 图形标注文本颜色
3028
- */
3029
- annotationTextFillColor?: string;
3030
- /**
3031
- * @title text 图形标注文本字体大小
3032
- */
3033
- annotationTextFontSize?: number;
3034
- /**
3035
- * @title text 图形标注文本行高
3036
- */
3037
- annotationTextLineHeight?: number;
3038
- /**
3039
- * @title text 图形标注文本字体粗细
3040
- */
3041
- annotationTextFontWeight?: number | string;
3042
-
3043
- /**
3044
- * @title text 图形标注文本边框颜色
3045
- */
3046
- annotationTextBorderColor?: string;
3047
- /**
3048
- * @title text 图形标注文本边框粗细
3049
- */
3050
- annotationTextBorder?: number;
3051
-
3052
- /**
3053
- * @title region 图形标注填充颜色
3054
- */
3055
- annotationRegionFillColor?: string;
3056
- /**
3057
- * @title region 图形标注填充颜色透明色
3058
- */
3059
- annotationRegionFillOpacity?: number;
3060
- /**
3061
- * @title region 图形标注描边粗细
3062
- */
3063
- annotationRegionBorder?: number;
3064
- /**
3065
- * @title region 图形标注描边颜色
3066
- */
3067
- annotationRegionBorderColor?: string;
3068
-
3069
- /**
3070
- * @title dataMarker 图形标注的连接线长度
3071
- */
3072
- annotationDataMarkerLineLength?: number;
3073
-
3074
- // -------------------- Tooltip --------------------
3075
- /**
3076
- * @title tooltip crosshairs 辅助线颜色
3077
- */
3078
- tooltipCrosshairsBorderColor?: string;
3079
- /**
3080
- * @title tooltip crosshairs 辅助线粗细
3081
- */
3082
- tooltipCrosshairsBorder?: number;
3083
- /**
3084
- * @title tooltip crosshairs 辅助线虚线间隔
3085
- */
3086
- tooltipCrosshairsLineDash?: number[];
3087
-
3088
- /**
3089
- * @title tooltip 内容框背景色
3090
- */
3091
- tooltipContainerFillColor?: string;
3092
- /**
3093
- * @title tooltip 内容框背景透明度
3094
- */
3095
- tooltipContainerFillOpacity?: number;
3096
- /**
3097
- * @title tooltip 内容框阴影
3098
- */
3099
- tooltipContainerShadow?: string;
3100
- /**
3101
- * @title tooltip 内容框圆角
3102
- */
3103
- tooltipContainerBorderRadius?: number;
3104
-
3105
- /**
3106
- * @title tooltip 文本颜色
3107
- */
3108
- tooltipTextFillColor?: string;
3109
- /**
3110
- * @title tooltip 文本字体大小
3111
- */
3112
- tooltipTextFontSize?: number;
3113
- /**
3114
- * @title tooltip 文本行高
3115
- */
3116
- tooltipTextLineHeight?: number;
3117
- /**
3118
- * @title tooltip 文本字体粗细
3119
- */
3120
- tooltipTextFontWeight?: number | string;
3121
-
3122
- // -------------------- Geometry labels --------------------
3123
- /**
3124
- * @title Geometry label 文本颜色
3125
- */
3126
- labelFillColor?: string;
3127
- /**
3128
- * @title Geometry label 暗色文本颜色
3129
- */
3130
- labelFillColorDark?: string;
3131
- /**
3132
- * @title Geometry label 亮色文本颜色
3133
- */
3134
- labelFillColorLight?: string;
3135
- /**
3136
- * @title Geometry label 文本字体大小
3137
- */
3138
- labelFontSize?: number;
3139
- /**
3140
- * @title Geometry label 文本行高
3141
- */
3142
- labelLineHeight?: number;
3143
- /**
3144
- * @title Geometry label 文本字体粗细
3145
- */
3146
- labelFontWeight?: number | string;
3147
- /**
3148
- * @title Geometry label 文本描边颜色
3149
- */
3150
- labelBorderColor?: string;
3151
- /**
3152
- * @title Geometry label 文本描边粗细
3153
- */
3154
- labelBorder?: number;
3155
-
3156
- /**
3157
- * @title Geometry innerLabel 文本颜色
3158
- */
3159
- innerLabelFillColor?: string;
3160
- /**
3161
- * @title Geometry innerLabel 文本字体大小
3162
- */
3163
- innerLabelFontSize?: number;
3164
- /**
3165
- * @title Geometry innerLabel 文本行高
3166
- */
3167
- innerLabelLineHeight?: number;
3168
- /**
3169
- * @title Geometry innerLabel 文本字体粗细
3170
- */
3171
- innerLabelFontWeight?: number | string;
3172
- /**
3173
- * @title Geometry innerLabel 文本描边颜色
3174
- */
3175
- innerLabelBorderColor?: string;
3176
- /**
3177
- * @title Geometry innerLabel 文本描边粗细
3178
- */
3179
- innerLabelBorder?: number;
3180
-
3181
- /**
3182
- * @title Geometry overflowLabel 文本颜色
3183
- */
3184
- overflowLabelFillColor?: string;
3185
- /**
3186
- * @title Geometry overflowLabel 暗色文本颜色
3187
- */
3188
- overflowLabelFillColorDark?: string;
3189
- /**
3190
- * @title Geometry overflowLabel 亮色文本颜色
3191
- */
3192
- overflowLabelFillColorLight?: string;
3193
- /**
3194
- * @title Geometry overflowLabel 文本字体大小
3195
- */
3196
- overflowLabelFontSize?: number;
3197
- /**
3198
- * @title Geometry overflowLabel 文本行高
3199
- */
3200
- overflowLabelLineHeight?: number;
3201
- /**
3202
- * @title Geometry overflowLabel 文本字体粗细
3203
- */
3204
- overflowLabelFontWeight?: number | string;
3205
- /**
3206
- * @title Geometry overflowLabel 文本描边颜色
3207
- */
3208
- overflowLabelBorderColor?: string;
3209
- /**
3210
- * @title Geometry overflowLabel 文本描边粗细
3211
- */
3212
- overflowLabelBorder?: number;
3213
-
3214
- /**
3215
- * @title Geometry label 文本连接线粗细
3216
- */
3217
- labelLineBorder?: number;
3218
- /**
3219
- * @title Geometry label 文本连接线颜色
3220
- */
3221
- labelLineBorderColor?: string;
3222
-
3223
- // -------------------- Slider 组件样式--------------------
3224
- /**
3225
- * @title slider 滑道高度
3226
- */
3227
- cSliderRailHieght?: number;
3228
- /**
3229
- * @title slider 滑道背景色
3230
- */
3231
- cSliderBackgroundFillColor?: string;
3232
- /**
3233
- * @title slider 滑道背景色透明度
3234
- */
3235
- cSliderBackgroundFillOpacity?: number;
3236
- /**
3237
- * @title slider 滑道前景色
3238
- */
3239
- cSliderForegroundFillColor?: string;
3240
- /**
3241
- * @title slider 滑道前景色透明度
3242
- */
3243
- cSliderForegroundFillOpacity?: number;
3244
-
3245
- // slider handlerStyle 手柄样式
3246
- /**
3247
- * @title slider 手柄高度
3248
- */
3249
- cSliderHandlerHeight?: number;
3250
- /**
3251
- * @title Slider 手柄宽度
3252
- */
3253
- cSliderHandlerWidth?: number;
3254
- /**
3255
- * @title Slider 手柄背景色
3256
- */
3257
- cSliderHandlerFillColor?: string;
3258
- /**
3259
- * @title Slider 手柄背景色透明度
3260
- */
3261
- cSliderHandlerFillOpacity?: number;
3262
- /**
3263
- * @title Slider 手柄高亮背景色
3264
- */
3265
- cSliderHandlerHighlightFillColor?: string;
3266
- /**
3267
- * @title Slider 手柄边框色
3268
- */
3269
- cSliderHandlerBorderColor?: string;
3270
- /**
3271
- * @title Slider 手柄边框粗细
3272
- */
3273
- cSliderHandlerBorder?: number;
3274
- /**
3275
- * @title Slider 手柄边框圆角
3276
- */
3277
- cSliderHandlerBorderRadius?: number;
3278
-
3279
- // slider textStyle 字体标签样式
3280
- /**
3281
- * @title Slider 字体标签颜色
3282
- */
3283
- cSliderTextFillColor?: string;
3284
- /**
3285
- * @title Slider 字体标签透明度
3286
- */
3287
- cSliderTextFillOpacity?: number;
3288
- /**
3289
- * @title Slider 字体标签大小
3290
- */
3291
- cSliderTextFontSize?: number;
3292
- /**
3293
- * @title Slider 字体标签行高
3294
- */
3295
- cSliderTextLineHeight?: number;
3296
- /**
3297
- * @title Slider 字体标签字重
3298
- */
3299
- cSliderTextFontWeight?: number | string;
3300
- /**
3301
- * @title Slider 字体标签描边色
3302
- */
3303
- cSliderTextBorderColor?: string;
3304
- /**
3305
- * @title Slider 字体标签描边粗细
3306
- */
3307
- cSliderTextBorder?: number;
3308
-
3309
- // -------------------- Scrollbar 组件样式--------------------
3310
- /**
3311
- * @title 滚动条 滚道填充色
3312
- */
3313
- scrollbarTrackFillColor?: string;
3314
- /**
3315
- * @title 滚动条 滑块填充色
3316
- */
3317
- scrollbarThumbFillColor?: string;
3318
- /**
3319
- * @title 滚动条 滑块高亮填充色
3320
- */
3321
- scrollbarThumbHighlightFillColor?: string;
3322
-
3323
- // -------------------- Geometry 图形样式--------------------
3324
- /**
3325
- * @title 点图的大小范围
3326
- */
3327
- pointSizeRange?: [number, number];
3328
- /**
3329
- * @title 点图填充颜色
3330
- */
3331
- pointFillColor?: string;
3332
- /**
3333
- * @title 点图填充颜色透明度
3334
- */
3335
- pointFillOpacity?: number;
3336
- /**
3337
- * @title 点图大小
3338
- */
3339
- pointSize?: number;
3340
- /**
3341
- * @title 点图描边粗细
3342
- */
3343
- pointBorder?: number;
3344
- /**
3345
- * @title 点图描边颜色
3346
- */
3347
- pointBorderColor?: string;
3348
- /**
3349
- * @title 点图描边透明度
3350
- */
3351
- pointBorderOpacity?: number;
3352
-
3353
- /**
3354
- * @title 点图 active 状态下填充颜色
3355
- */
3356
- pointActiveFillColor?: string;
3357
- /**
3358
- * @title 点图 active 状态下填充颜色透明度
3359
- */
3360
- pointActiveFillOpacity?: number;
3361
- /**
3362
- * @title 点图 active 状态下大小
3363
- */
3364
- pointActiveSize?: number;
3365
- /**
3366
- * @title 点图 active 状态下描边粗细
3367
- */
3368
- pointActiveBorder?: number;
3369
- /**
3370
- * @title 点图 active 状态下描边颜色
3371
- */
3372
- pointActiveBorderColor?: string;
3373
- /**
3374
- * @title 点图 active 状态下描边透明度
3375
- */
3376
- pointActiveBorderOpacity?: number;
3377
-
3378
- /**
3379
- * @title 点图 selected 状态下填充颜色
3380
- */
3381
- pointSelectedFillColor?: string;
3382
- /**
3383
- * @title 点图 selected 状态下填充颜色透明度
3384
- */
3385
- pointSelectedFillOpacity?: number;
3386
- /**
3387
- * @title 点图 selected 状态下大小
3388
- */
3389
- pointSelectedSize?: number;
3390
- /**
3391
- * @title 点图 selected 状态下描边粗细
3392
- */
3393
- pointSelectedBorder?: number;
3394
- /**
3395
- * @title 点图 selected 状态下描边颜色
3396
- */
3397
- pointSelectedBorderColor?: string;
3398
- /**
3399
- * @title 点图 selected 状态下描边透明度
3400
- */
3401
- pointSelectedBorderOpacity?: number;
3402
-
3403
- /**
3404
- * @title 点图 inactive 状态下填充颜色
3405
- */
3406
- pointInactiveFillColor?: string;
3407
- /**
3408
- * @title 点图 inactive 状态下填充颜色透明度
3409
- */
3410
- pointInactiveFillOpacity?: number;
3411
- /**
3412
- * @title 点图 inactive 状态下大小
3413
- */
3414
- pointInactiveSize?: number;
3415
- /**
3416
- * @title 点图 inactive 状态下描边粗细
3417
- */
3418
- pointInactiveBorder?: number;
3419
- /**
3420
- * @title 点图 inactive 状态下描边颜色
3421
- */
3422
- pointInactiveBorderColor?: string;
3423
- /**
3424
- * @title 点图 inactive 状态下描边透明度
3425
- */
3426
- pointInactiveBorderOpacity?: number;
3427
-
3428
- /**
3429
- * @title 描边点图大小
3430
- */
3431
- hollowPointSize?: number;
3432
- /**
3433
- * @title 描边点图描边粗细
3434
- */
3435
- hollowPointBorder?: number;
3436
- /**
3437
- * @title 描边点图描边颜色
3438
- */
3439
- hollowPointBorderColor?: string;
3440
- /**
3441
- * @title 描边点图描边透明度
3442
- */
3443
- hollowPointBorderOpacity?: number;
3444
- /**
3445
- * @title 描边点图填充颜色
3446
- */
3447
- hollowPointFillColor?: string;
3448
- /**
3449
- * @title 描边点图填充透明度
3450
- */
3451
- hollowPointFillOpacity?: number;
3452
-
3453
- /**
3454
- * @title 点 描边 active 状态下大小
3455
- */
3456
- hollowPointActiveSize?: number;
3457
- /**
3458
- * @title 点 描边 active 状态下描边粗细
3459
- */
3460
- hollowPointActiveBorder?: number;
3461
- /**
3462
- * @title 点 描边 active 状态下描边颜色
3463
- */
3464
- hollowPointActiveBorderColor?: string;
3465
- /**
3466
- * @title 点 描边 active 状态下描边透明度
3467
- */
3468
- hollowPointActiveBorderOpacity?: number;
3469
-
3470
- /**
3471
- * @title 点 描边 selected 状态下大小
3472
- */
3473
- hollowPointSelectedSize?: number;
3474
- /**
3475
- * @title 点 描边 selected 状态下描边粗细
3476
- */
3477
- hollowPointSelectedBorder?: number;
3478
- /**
3479
- * @title 点 描边 selected 状态下描边颜色
3480
- */
3481
- hollowPointSelectedBorderColor?: string;
3482
- /**
3483
- * @title 点 描边 selected 状态下描边透明度
3484
- */
3485
- hollowPointSelectedBorderOpacity?: number;
3486
-
3487
- /**
3488
- * @title 点 描边 inactive 状态下大小
3489
- */
3490
- hollowPointInactiveSize?: number;
3491
- /**
3492
- * @title 点 描边 inactive 状态下描边粗细
3493
- */
3494
- hollowPointInactiveBorder?: number;
3495
- /**
3496
- * @title 点 描边 inactive 状态下描边颜色
3497
- */
3498
- hollowPointInactiveBorderColor?: string;
3499
- /**
3500
- * @title 点 描边 inactive 状态下描边透明度
3501
- */
3502
- hollowPointInactiveBorderOpacity?: number;
3503
-
3504
- /**
3505
- * @title 线图粗细
3506
- */
3507
- lineBorder?: number;
3508
- /**
3509
- * @title 线图颜色
3510
- */
3511
- lineBorderColor?: string;
3512
- /**
3513
- * @title 线图透明度
3514
- */
3515
- lineBorderOpacity?: number;
3516
-
3517
- /**
3518
- * @title 线图 active 状态下粗细
3519
- */
3520
- lineActiveBorder?: number;
3521
- /**
3522
- * @title 线图 active 状态下颜色
3523
- */
3524
- lineActiveBorderColor?: string;
3525
- /**
3526
- * @title 线图 active 状态下透明度
3527
- */
3528
- lineActiveBorderOpacity?: number;
3529
-
3530
- /**
3531
- * @title 线图 selected 状态下粗细
3532
- */
3533
- lineSelectedBorder?: number;
3534
- /**
3535
- * @title 线图 selected 状态下颜色
3536
- */
3537
- lineSelectedBorderColor?: string;
3538
- /**
3539
- * @title 线图 selected 状态下透明度
3540
- */
3541
- lineSelectedBorderOpacity?: number;
3542
-
3543
- /**
3544
- * @title 线图 inactive 状态下粗细
3545
- */
3546
- lineInactiveBorder?: number;
3547
- /**
3548
- * @title 线图 inactive 状态下颜色
3549
- */
3550
- lineInactiveBorderColor?: string;
3551
- /**
3552
- * @title 线图 inactive 状态下透明度
3553
- */
3554
- lineInactiveBorderOpacity?: number;
3555
-
3556
- areaBorder?: number;
3557
- /**
3558
- * @title area 边框颜色
3559
- */
3560
- areaBorderColor?: string;
3561
- /**
3562
- * @title area 边框透明度
3563
- */
3564
- areaBorderOpacity?: number;
3565
- /**
3566
- * @title area 填充颜色
3567
- */
3568
- areaFillColor?: string;
3569
- /**
3570
- * @title area 填充透明度
3571
- */
3572
- areaFillOpacity?: number;
3573
-
3574
- /**
3575
- * @title area Active 状态下边框粗细
3576
- */
3577
- areaActiveBorder?: number;
3578
- /**
3579
- * @title area Active 状态下边框颜色
3580
- */
3581
- areaActiveBorderColor?: string;
3582
- /**
3583
- * @title area Active 状态下边框透明度
3584
- */
3585
- areaActiveBorderOpacity?: number;
3586
- /**
3587
- * @title area Active 状态下填充颜色
3588
- */
3589
- areaActiveFillColor?: string;
3590
- /**
3591
- * @title area Active 状态下填充透明度
3592
- */
3593
- areaActiveFillOpacity?: number;
3594
-
3595
- /**
3596
- * @title area selected 状态下边框粗细
3597
- */
3598
- areaSelectedBorder?: number;
3599
- /**
3600
- * @title area selected 状态下边框颜色
3601
- */
3602
- areaSelectedBorderColor?: string;
3603
- /**
3604
- * @title area selected 状态下边框透明度
3605
- */
3606
- areaSelectedBorderOpacity?: number;
3607
- /**
3608
- * @title area selected 状态下填充颜色
3609
- */
3610
- areaSelectedFillColor?: string;
3611
- /**
3612
- * @title area selected 状态下填充透明度
3613
- */
3614
- areaSelectedFillOpacity?: number;
3615
-
3616
- /**
3617
- * @title area inactive 状态下边框粗细
3618
- */
3619
- areaInactiveBorder?: number;
3620
- /**
3621
- * @title area inactive 状态下边框颜色
3622
- */
3623
- areaInactiveBorderColor?: string;
3624
- /**
3625
- * @title area inactive 状态下边框透明度
3626
- */
3627
- areaInactiveBorderOpacity?: number;
3628
- /**
3629
- * @title area inactive 状态下填充颜色
3630
- */
3631
- areaInactiveFillColor?: string;
3632
- /**
3633
- * @title area inactive 状态下填充透明度
3634
- */
3635
- areaInactiveFillOpacity?: number;
3636
-
3637
- /**
3638
- * @title hollowArea 边框粗细
3639
- */
3640
- hollowAreaBorder?: number;
3641
- /**
3642
- * @title hollowArea 边框颜色
3643
- */
3644
- hollowAreaBorderColor?: string;
3645
- /**
3646
- * @title hollowArea 边框透明度
3647
- */
3648
- hollowAreaBorderOpacity?: number;
3649
-
3650
- /**
3651
- * @title hollowArea Active 状态下边框粗细
3652
- */
3653
- hollowAreaActiveBorder?: number;
3654
- /**
3655
- * @title hollowArea Active 状态下边框颜色
3656
- */
3657
- hollowAreaActiveBorderColor?: string;
3658
- /**
3659
- * @title hollowArea Active 状态下边框透明度
3660
- */
3661
- hollowAreaActiveBorderOpacity?: number;
3662
-
3663
- /**
3664
- * @title hollowArea selected 状态下边框粗细
3665
- */
3666
- hollowAreaSelectedBorder?: number;
3667
- /**
3668
- * @title hollowArea selected 状态下边框颜色
3669
- */
3670
- hollowAreaSelectedBorderColor?: string;
3671
- /**
3672
- * @title hollowArea selected 状态下边框透明度
3673
- */
3674
- hollowAreaSelectedBorderOpacity?: number;
3675
-
3676
- /**
3677
- * @title hollowArea inactive 状态下边框粗细
3678
- */
3679
- hollowAreaInactiveBorder?: number;
3680
- /**
3681
- * @title hollowArea inactive 状态下边框颜色
3682
- */
3683
- hollowAreaInactiveBorderColor?: string;
3684
- /**
3685
- * @title hollowArea inactive 状态下边框透明度
3686
- */
3687
- hollowAreaInactiveBorderOpacity?: number;
3688
-
3689
- /**
3690
- * @title interval 边框粗细
3691
- */
3692
- intervalBorder?: number;
3693
- /**
3694
- * @title interval 边框颜色
3695
- */
3696
- intervalBorderColor?: string;
3697
- /**
3698
- * @title interval 边框透明度
3699
- */
3700
- intervalBorderOpacity?: number;
3701
- /**
3702
- * @title interval 填充颜色
3703
- */
3704
- intervalFillColor?: string;
3705
- /**
3706
- * @title interval 填充透明度
3707
- */
3708
- intervalFillOpacity?: number;
3709
-
3710
- /**
3711
- * @title interval active 状态下边框粗细
3712
- */
3713
- intervalActiveBorder?: number;
3714
- /**
3715
- * @title interval active 状态下边框颜色
3716
- */
3717
- intervalActiveBorderColor?: string;
3718
- /**
3719
- * @title interval active 状态下边框透明度
3720
- */
3721
- intervalActiveBorderOpacity?: number;
3722
- /**
3723
- * @title interval active 状态下填充颜色
3724
- */
3725
- intervalActiveFillColor?: string;
3726
- /**
3727
- * @title interval active 状态下填充透明度
3728
- */
3729
- intervalActiveFillOpacity?: number;
3730
-
3731
- /**
3732
- * @title interval selected 状态下边框粗细
3733
- */
3734
- intervalSelectedBorder?: number;
3735
- /**
3736
- * @title interval selected 状态下边框颜色
3737
- */
3738
- intervalSelectedBorderColor?: string;
3739
- /**
3740
- * @title interval selected 状态下边框透明度
3741
- */
3742
- intervalSelectedBorderOpacity?: number;
3743
- /**
3744
- * @title interval selected 状态下填充颜色
3745
- */
3746
- intervalSelectedFillColor?: string;
3747
- /**
3748
- * @title interval selected 状态下填充透明度
3749
- */
3750
- intervalSelectedFillOpacity?: number;
3751
-
3752
- /**
3753
- * @title interval inactive 状态下边框粗细
3754
- */
3755
- intervalInactiveBorder?: number;
3756
- /**
3757
- * @title interval inactive 状态下边框颜色
3758
- */
3759
- intervalInactiveBorderColor?: string;
3760
- /**
3761
- * @title interval inactive 状态下边框透明度
3762
- */
3763
- intervalInactiveBorderOpacity?: number;
3764
- /**
3765
- * @title interval inactive 状态下填充颜色
3766
- */
3767
- intervalInactiveFillColor?: string;
3768
- /**
3769
- * @title interval inactive 状态下填充透明度
3770
- */
3771
- intervalInactiveFillOpacity?: number;
3772
-
3773
- /**
3774
- * @title hollowInterval 边框粗细
3775
- */
3776
- hollowIntervalBorder?: number;
3777
- /**
3778
- * @title hollowInterval 边框颜色
3779
- */
3780
- hollowIntervalBorderColor?: string;
3781
- /**
3782
- * @title hollowInterval 边框透明度
3783
- */
3784
- hollowIntervalBorderOpacity?: number;
3785
- /**
3786
- * @title hollowInterval 填充颜色
3787
- */
3788
- hollowIntervalFillColor?: string;
3789
- /**
3790
- * @title hollowInterval 填充透明度
3791
- */
3792
- hollowIntervalFillOpacity?: number;
3793
-
3794
- /**
3795
- * @title hollowInterval active 状态下边框粗细
3796
- */
3797
- hollowIntervalActiveBorder?: number;
3798
- /**
3799
- * @title hollowInterval active 状态下边框颜色
3800
- */
3801
- hollowIntervalActiveBorderColor?: string;
3802
- /**
3803
- * @title hollowInterval active 状态下边框透明度
3804
- */
3805
- hollowIntervalActiveBorderOpacity?: number;
3806
-
3807
- /**
3808
- * @title hollowInterval selected 状态下边框粗细
3809
- */
3810
- hollowIntervalSelectedBorder?: number;
3811
- /**
3812
- * @title hollowInterval selected 状态下边框颜色
3813
- */
3814
- hollowIntervalSelectedBorderColor?: string;
3815
- /**
3816
- * @title hollowInterval selected 状态下边框透明度
3817
- */
3818
- hollowIntervalSelectedBorderOpacity?: number;
3819
-
3820
- /**
3821
- * @title hollowInterval inactive 状态下边框粗细
3822
- */
3823
- hollowIntervalInactiveBorder?: number;
3824
- /**
3825
- * @title hollowInterval inactive 状态下边框颜色
3826
- */
3827
- hollowIntervalInactiveBorderColor?: string;
3828
- /**
3829
- * @title hollowInterval inactive 状态下边框透明度
3830
- */
3831
- hollowIntervalInactiveBorderOpacity?: number;
3832
- }
3833
-
3834
- /**
3835
- * @title createTheme 主题样式表配置
3836
- */
3837
- export type StyleSheetCfg = Partial<StyleSheet>;
3838
-
3839
- // ============================ 交互相关的类型定义 ============================
3840
- /**
3841
- * @title 交互反馈的定义
3842
- */
3843
- export interface IAction {
3844
- /**
3845
- * 初始化
3846
- */
3847
- init();
3848
- /**
3849
- * 交互 action (反馈)的名称
3850
- */
3851
- name: string;
3852
- /**
3853
- * 上下文
3854
- */
3855
- context: IInteractionContext;
3856
- /**
3857
- * 销毁函数
3858
- */
3859
- destroy();
3860
- }
3861
-
3862
- /**
3863
- * @title 交互上下文的接口定义
3864
- */
3865
- export interface IInteractionContext extends LooseObject {
3866
- /**
3867
- * @title 事件对象
3868
- */
3869
- event: LooseObject;
3870
- /**
3871
- * 当前的 view
3872
- */
3873
- view: View;
3874
- /**
3875
- * @title 交互相关的 Actions
3876
- */
3877
- actions: IAction[];
3878
- /**
3879
- * 缓存属性,用于上下文传递信息
3880
- * @param key 键名
3881
- * @param value 值
3882
- */
3883
- cache(key: string, value?: any);
3884
- /**
3885
- * 获取 action
3886
- * @param name - action 的名称
3887
- * @returns 指定 name 的 Action
3888
- */
3889
- getAction(name): IAction;
3890
- /**
3891
- * 获取当前的点
3892
- * @returns 返回当前的点
3893
- */
3894
- getCurrentPoint(): Point;
3895
- /**
3896
- * 获取当前的图形
3897
- */
3898
- getCurrentShape(): IShape;
3899
- /**
3900
- * 添加 action
3901
- * @param action 指定交互 action
3902
- */
3903
- addAction(action: IAction);
3904
- /**
3905
- * 移除 action
3906
- * @param action 移除的 action
3907
- */
3908
- removeAction(action: IAction);
3909
- /**
3910
- * 事件触发时是否在 view 内部
3911
- */
3912
- isInPlot();
3913
- /**
3914
- * 是否在组件的包围盒内
3915
- * @param name 组件名,可省略
3916
- */
3917
- isInComponent(name?: string);
3918
- /**
3919
- * 是否在指定的图形内
3920
- * @param name shape 的名称
3921
- */
3922
- isInShape(name);
3923
- /**
3924
- * 销毁
3925
- */
3926
- destroy();
3927
- }
3928
-
3929
- /**
3930
- * @title G 的渲染类型
3931
- */
3932
- export type Renderer = 'svg' | 'canvas';
3933
- /**
3934
- * @title 数据的定义
3935
- */
3936
- export type Datum = Record<string, any>;
3937
- export type Data = Datum[];
3938
- export type ActionCallback = (context: IInteractionContext) => void;
3939
- export type Padding = [number, number, number, number];
3940
- export type ViewPadding = number | number[] | 'auto';
3941
- export type ViewAppendPadding = number | number[];
3942
- export type Position = [number, number];
3943
- export type AttributeType = 'position' | 'size' | 'color' | 'shape';
3944
- export type ShapeVertices = RangePoint[] | Point[] | Point[][];
3945
- /**
3946
- * @title easing 的回调函数, 入参 data 为对应的原始数据记录
3947
- */
3948
- export type AnimateEasingCallback = (data: Datum) => string;
3949
- /**
3950
- * @title delay 的回调函数, 入参 data 为对应的原始数据记录
3951
- */
3952
- export type AnimateDelayCallback = (data: Datum) => number;
3953
- /**
3954
- * @title duration 的回调函数, 入参 data 为对应的原始数据记录
3955
- */
3956
- export type AnimateDurationCallback = (data: Datum) => number;