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