@antv/g2 5.0.0-beta.1 → 5.0.0-beta.11

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 (1334) hide show
  1. package/dist/g2-lite.min.js +5 -2
  2. package/dist/g2.min.js +5 -2
  3. package/esm/animation/morphing.js +32 -10
  4. package/esm/animation/morphing.js.map +1 -1
  5. package/esm/animation/waveIn.js +1 -12
  6. package/esm/animation/waveIn.js.map +1 -1
  7. package/esm/api/chart.d.ts +16 -7
  8. package/esm/api/chart.js +66 -29
  9. package/esm/api/chart.js.map +1 -1
  10. package/esm/api/composition/base.d.ts +21 -0
  11. package/esm/api/composition/base.js +59 -0
  12. package/esm/api/composition/base.js.map +1 -0
  13. package/esm/api/composition/facetCircle.d.ts +2 -3
  14. package/esm/api/composition/facetCircle.js +2 -2
  15. package/esm/api/composition/facetCircle.js.map +1 -1
  16. package/esm/api/composition/facetRect.d.ts +2 -3
  17. package/esm/api/composition/facetRect.js +2 -2
  18. package/esm/api/composition/facetRect.js.map +1 -1
  19. package/esm/api/composition/geoPath.d.ts +5 -7
  20. package/esm/api/composition/geoPath.js +4 -5
  21. package/esm/api/composition/geoPath.js.map +1 -1
  22. package/esm/api/composition/geoView.d.ts +4 -6
  23. package/esm/api/composition/geoView.js +4 -5
  24. package/esm/api/composition/geoView.js.map +1 -1
  25. package/esm/api/composition/index.d.ts +2 -1
  26. package/esm/api/composition/index.js +2 -1
  27. package/esm/api/composition/index.js.map +1 -1
  28. package/esm/api/composition/repeatMatrix.d.ts +2 -3
  29. package/esm/api/composition/repeatMatrix.js +2 -2
  30. package/esm/api/composition/repeatMatrix.js.map +1 -1
  31. package/esm/api/composition/spaceFlex.d.ts +2 -3
  32. package/esm/api/composition/spaceFlex.js +2 -2
  33. package/esm/api/composition/spaceFlex.js.map +1 -1
  34. package/esm/api/composition/spaceLayer.d.ts +2 -3
  35. package/esm/api/composition/spaceLayer.js +2 -2
  36. package/esm/api/composition/spaceLayer.js.map +1 -1
  37. package/esm/api/composition/timingKeyframe.d.ts +2 -3
  38. package/esm/api/composition/timingKeyframe.js +2 -2
  39. package/esm/api/composition/timingKeyframe.js.map +1 -1
  40. package/esm/api/composition/view.d.ts +5 -5
  41. package/esm/api/composition/view.js +6 -6
  42. package/esm/api/composition/view.js.map +1 -1
  43. package/esm/api/mark/base.d.ts +22 -0
  44. package/esm/api/mark/base.js +54 -0
  45. package/esm/api/mark/base.js.map +1 -0
  46. package/esm/api/mark/mark.d.ts +29 -29
  47. package/esm/api/mark/mark.js +32 -29
  48. package/esm/api/mark/mark.js.map +1 -1
  49. package/esm/api/mark/types.d.ts +5 -2
  50. package/esm/api/node.d.ts +2 -1
  51. package/esm/api/node.js +8 -9
  52. package/esm/api/node.js.map +1 -1
  53. package/esm/api/props.js +3 -22
  54. package/esm/api/props.js.map +1 -1
  55. package/esm/component/axis.d.ts +5 -8
  56. package/esm/component/axis.js +182 -234
  57. package/esm/component/axis.js.map +1 -1
  58. package/esm/component/axisArc.d.ts +7 -0
  59. package/esm/component/axisArc.js +9 -0
  60. package/esm/component/axisArc.js.map +1 -0
  61. package/esm/component/axisRadar.d.ts +9 -0
  62. package/esm/component/axisRadar.js +45 -0
  63. package/esm/component/axisRadar.js.map +1 -0
  64. package/esm/component/axisX.d.ts +2 -1
  65. package/esm/component/axisX.js +5 -4
  66. package/esm/component/axisX.js.map +1 -1
  67. package/esm/component/axisY.d.ts +1 -1
  68. package/esm/component/axisY.js +4 -4
  69. package/esm/component/axisY.js.map +1 -1
  70. package/esm/component/index.d.ts +14 -0
  71. package/esm/component/index.js +9 -0
  72. package/esm/component/index.js.map +1 -1
  73. package/esm/component/legendCategory.d.ts +5 -4
  74. package/esm/component/legendCategory.js +87 -55
  75. package/esm/component/legendCategory.js.map +1 -1
  76. package/esm/component/legendContinuous.d.ts +4 -2
  77. package/esm/component/legendContinuous.js +87 -25
  78. package/esm/component/legendContinuous.js.map +1 -1
  79. package/esm/component/legendContinuousBlock.d.ts +4 -0
  80. package/esm/component/legendContinuousBlock.js +6 -0
  81. package/esm/component/legendContinuousBlock.js.map +1 -0
  82. package/esm/component/legendContinuousBlockSize.d.ts +4 -0
  83. package/esm/component/legendContinuousBlockSize.js +6 -0
  84. package/esm/component/legendContinuousBlockSize.js.map +1 -0
  85. package/esm/component/legendContinuousSize.d.ts +4 -0
  86. package/esm/component/legendContinuousSize.js +10 -0
  87. package/esm/component/legendContinuousSize.js.map +1 -0
  88. package/esm/component/scrollbar.d.ts +9 -0
  89. package/esm/component/scrollbar.js +36 -0
  90. package/esm/component/scrollbar.js.map +1 -0
  91. package/esm/component/scrollbarX.d.ts +7 -0
  92. package/esm/component/scrollbarX.js +9 -0
  93. package/esm/component/scrollbarX.js.map +1 -0
  94. package/esm/component/scrollbarY.d.ts +7 -0
  95. package/esm/component/scrollbarY.js +9 -0
  96. package/esm/component/scrollbarY.js.map +1 -0
  97. package/esm/component/slider.d.ts +9 -0
  98. package/esm/component/slider.js +47 -0
  99. package/esm/component/slider.js.map +1 -0
  100. package/esm/component/sliderX.d.ts +7 -0
  101. package/esm/component/sliderX.js +9 -0
  102. package/esm/component/sliderX.js.map +1 -0
  103. package/esm/component/sliderY.d.ts +7 -0
  104. package/esm/component/sliderY.js +9 -0
  105. package/esm/component/sliderY.js.map +1 -0
  106. package/esm/component/title.js +47 -23
  107. package/esm/component/title.js.map +1 -1
  108. package/esm/component/utils.d.ts +13 -0
  109. package/esm/component/utils.js +50 -0
  110. package/esm/component/utils.js.map +1 -1
  111. package/esm/composition/facetCircle.js +2 -2
  112. package/esm/composition/facetCircle.js.map +1 -1
  113. package/esm/composition/facetRect.js +6 -8
  114. package/esm/composition/facetRect.js.map +1 -1
  115. package/esm/composition/mark.js +5 -3
  116. package/esm/composition/mark.js.map +1 -1
  117. package/esm/composition/repeatMatrix.js +4 -4
  118. package/esm/composition/repeatMatrix.js.map +1 -1
  119. package/esm/composition/view.js +3 -3
  120. package/esm/composition/view.js.map +1 -1
  121. package/esm/coordinate/fisheye.js +1 -1
  122. package/esm/coordinate/fisheye.js.map +1 -1
  123. package/esm/coordinate/index.d.ts +5 -13
  124. package/esm/coordinate/index.js +4 -8
  125. package/esm/coordinate/index.js.map +1 -1
  126. package/esm/coordinate/polar.d.ts +6 -0
  127. package/esm/coordinate/polar.js +18 -6
  128. package/esm/coordinate/polar.js.map +1 -1
  129. package/esm/coordinate/radar.d.ts +7 -0
  130. package/esm/coordinate/radar.js +14 -0
  131. package/esm/coordinate/radar.js.map +1 -0
  132. package/esm/coordinate/radial.d.ts +6 -0
  133. package/esm/coordinate/radial.js +19 -6
  134. package/esm/coordinate/radial.js.map +1 -1
  135. package/esm/coordinate/theta.d.ts +7 -0
  136. package/esm/coordinate/theta.js +16 -4
  137. package/esm/coordinate/theta.js.map +1 -1
  138. package/esm/coordinate/transpose.js +1 -1
  139. package/esm/coordinate/transpose.js.map +1 -1
  140. package/esm/data/filter.d.ts +3 -3
  141. package/esm/data/filter.js.map +1 -1
  142. package/esm/data/fold.js +4 -10
  143. package/esm/data/fold.js.map +1 -1
  144. package/esm/data/index.d.ts +5 -3
  145. package/esm/data/index.js +2 -1
  146. package/esm/data/index.js.map +1 -1
  147. package/esm/data/pick.js +10 -2
  148. package/esm/data/pick.js.map +1 -1
  149. package/esm/data/slice.d.ts +8 -0
  150. package/esm/data/slice.js +10 -0
  151. package/esm/data/slice.js.map +1 -0
  152. package/esm/data/sort.d.ts +8 -0
  153. package/esm/data/sort.js +12 -0
  154. package/esm/data/sort.js.map +1 -0
  155. package/esm/geo/{d3-projection.js → d3Projection.js} +1 -1
  156. package/esm/geo/d3Projection.js.map +1 -0
  157. package/esm/geo/geoView.js +4 -4
  158. package/esm/geo/geoView.js.map +1 -1
  159. package/esm/interaction/action/service/legendItemSelection.js.map +1 -1
  160. package/esm/interaction/action/transformer/setItemState.js.map +1 -1
  161. package/esm/interaction/builtin/activeRegion.d.ts +0 -2
  162. package/esm/interaction/builtin/brush.d.ts +1 -1
  163. package/esm/interaction/builtin/brushHighlight.d.ts +1 -1
  164. package/esm/interaction/builtin/brushVisible.d.ts +1 -1
  165. package/esm/interaction/builtin/elementHighlight.d.ts +2 -0
  166. package/esm/interaction/builtin/elementHighlightByColor.d.ts +2 -0
  167. package/esm/interaction/builtin/elementHighlightByX.d.ts +2 -0
  168. package/esm/interaction/builtin/ellipsisText.d.ts +0 -3
  169. package/esm/interaction/builtin/fisheye.d.ts +6 -6
  170. package/esm/interaction/builtin/tooltip.d.ts +4 -8
  171. package/esm/interaction/index.d.ts +13 -0
  172. package/esm/interaction/index.js +12 -30
  173. package/esm/interaction/index.js.map +1 -1
  174. package/esm/interaction/native/brushAxisHighlight.d.ts +27 -0
  175. package/esm/interaction/native/brushAxisHighlight.js +167 -0
  176. package/esm/interaction/native/brushAxisHighlight.js.map +1 -0
  177. package/esm/interaction/native/brushFilter.d.ts +14 -0
  178. package/esm/interaction/native/brushFilter.js +122 -0
  179. package/esm/interaction/native/brushFilter.js.map +1 -0
  180. package/esm/interaction/native/brushHighlight.d.ts +41 -0
  181. package/esm/interaction/native/brushHighlight.js +349 -0
  182. package/esm/interaction/native/brushHighlight.js.map +1 -0
  183. package/esm/interaction/native/brushXFilter.d.ts +1 -0
  184. package/esm/interaction/native/brushXFilter.js +6 -0
  185. package/esm/interaction/native/brushXFilter.js.map +1 -0
  186. package/esm/interaction/native/brushXHighlight.d.ts +6 -0
  187. package/esm/interaction/native/brushXHighlight.js +9 -0
  188. package/esm/interaction/native/brushXHighlight.js.map +1 -0
  189. package/esm/interaction/native/brushYFilter.d.ts +1 -0
  190. package/esm/interaction/native/brushYFilter.js +6 -0
  191. package/esm/interaction/native/brushYFilter.js.map +1 -0
  192. package/esm/interaction/native/brushYHighlight.d.ts +6 -0
  193. package/esm/interaction/native/brushYHighlight.js +9 -0
  194. package/esm/interaction/native/brushYHighlight.js.map +1 -0
  195. package/esm/interaction/native/elementHighlight.d.ts +10 -2
  196. package/esm/interaction/native/elementHighlight.js +87 -24
  197. package/esm/interaction/native/elementHighlight.js.map +1 -1
  198. package/esm/interaction/native/elementHighlightByColor.d.ts +0 -3
  199. package/esm/interaction/native/elementHighlightByColor.js +3 -9
  200. package/esm/interaction/native/elementHighlightByColor.js.map +1 -1
  201. package/esm/interaction/native/elementHighlightByX.d.ts +1 -8
  202. package/esm/interaction/native/elementHighlightByX.js +4 -11
  203. package/esm/interaction/native/elementHighlightByX.js.map +1 -1
  204. package/esm/interaction/native/elementSelect.d.ts +7 -2
  205. package/esm/interaction/native/elementSelect.js +59 -27
  206. package/esm/interaction/native/elementSelect.js.map +1 -1
  207. package/esm/interaction/native/elementSelectByColor.js +3 -6
  208. package/esm/interaction/native/elementSelectByColor.js.map +1 -1
  209. package/esm/interaction/native/elementSelectByX.js +3 -6
  210. package/esm/interaction/native/elementSelectByX.js.map +1 -1
  211. package/esm/interaction/native/fisheye.js +6 -4
  212. package/esm/interaction/native/fisheye.js.map +1 -1
  213. package/esm/interaction/native/legendFilter.d.ts +14 -0
  214. package/esm/interaction/native/legendFilter.js +195 -0
  215. package/esm/interaction/native/legendFilter.js.map +1 -0
  216. package/esm/interaction/native/legendHighlight.d.ts +1 -0
  217. package/esm/interaction/native/legendHighlight.js +87 -0
  218. package/esm/interaction/native/legendHighlight.js.map +1 -0
  219. package/esm/interaction/native/poptip.d.ts +5 -0
  220. package/esm/interaction/native/poptip.js +91 -0
  221. package/esm/interaction/native/poptip.js.map +1 -0
  222. package/esm/interaction/native/sliderFilter.d.ts +5 -0
  223. package/esm/interaction/native/sliderFilter.js +87 -0
  224. package/esm/interaction/native/sliderFilter.js.map +1 -0
  225. package/esm/interaction/native/tooltip.d.ts +2 -2
  226. package/esm/interaction/native/tooltip.js +157 -48
  227. package/esm/interaction/native/tooltip.js.map +1 -1
  228. package/esm/interaction/native/utils.d.ts +24 -5
  229. package/esm/interaction/native/utils.js +248 -42
  230. package/esm/interaction/native/utils.js.map +1 -1
  231. package/esm/label-transform/contrastReverse.d.ts +9 -0
  232. package/esm/label-transform/contrastReverse.js +48 -0
  233. package/esm/label-transform/contrastReverse.js.map +1 -0
  234. package/esm/label-transform/index.d.ts +8 -8
  235. package/esm/label-transform/index.js +4 -4
  236. package/esm/label-transform/index.js.map +1 -1
  237. package/esm/label-transform/overflowHide.d.ts +7 -0
  238. package/esm/label-transform/overflowHide.js +18 -0
  239. package/esm/label-transform/overflowHide.js.map +1 -0
  240. package/esm/label-transform/overlapDodgeY.d.ts +7 -0
  241. package/esm/label-transform/{dodgeY.js → overlapDodgeY.js} +4 -4
  242. package/esm/label-transform/overlapDodgeY.js.map +1 -0
  243. package/esm/label-transform/overlapHide.d.ts +7 -0
  244. package/esm/label-transform/overlapHide.js +24 -0
  245. package/esm/label-transform/overlapHide.js.map +1 -0
  246. package/esm/mark/area.js +3 -2
  247. package/esm/mark/area.js.map +1 -1
  248. package/esm/mark/box.js +1 -0
  249. package/esm/mark/box.js.map +1 -1
  250. package/esm/mark/boxplot.js +6 -21
  251. package/esm/mark/boxplot.js.map +1 -1
  252. package/esm/mark/cell.js +2 -1
  253. package/esm/mark/cell.js.map +1 -1
  254. package/esm/mark/connector.js +1 -0
  255. package/esm/mark/connector.js.map +1 -1
  256. package/esm/mark/forceGraph.js +1 -1
  257. package/esm/mark/forceGraph.js.map +1 -1
  258. package/esm/mark/image.js +1 -0
  259. package/esm/mark/image.js.map +1 -1
  260. package/esm/mark/interval.js +1 -0
  261. package/esm/mark/interval.js.map +1 -1
  262. package/esm/mark/line.js +2 -1
  263. package/esm/mark/line.js.map +1 -1
  264. package/esm/mark/lineX.js +1 -0
  265. package/esm/mark/lineX.js.map +1 -1
  266. package/esm/mark/lineY.js +1 -0
  267. package/esm/mark/lineY.js.map +1 -1
  268. package/esm/mark/link.js +1 -0
  269. package/esm/mark/link.js.map +1 -1
  270. package/esm/mark/pack.js +1 -2
  271. package/esm/mark/pack.js.map +1 -1
  272. package/esm/mark/path.js +1 -0
  273. package/esm/mark/path.js.map +1 -1
  274. package/esm/mark/point.js +1 -0
  275. package/esm/mark/point.js.map +1 -1
  276. package/esm/mark/polygon.js +1 -0
  277. package/esm/mark/polygon.js.map +1 -1
  278. package/esm/mark/range.js +1 -0
  279. package/esm/mark/range.js.map +1 -1
  280. package/esm/mark/rangeX.js +1 -0
  281. package/esm/mark/rangeX.js.map +1 -1
  282. package/esm/mark/rangeY.js +1 -0
  283. package/esm/mark/rangeY.js.map +1 -1
  284. package/esm/mark/rect.js +1 -0
  285. package/esm/mark/rect.js.map +1 -1
  286. package/esm/mark/sankey.js +1 -1
  287. package/esm/mark/sankey.js.map +1 -1
  288. package/esm/mark/shape.js +1 -0
  289. package/esm/mark/shape.js.map +1 -1
  290. package/esm/mark/text.js +1 -0
  291. package/esm/mark/text.js.map +1 -1
  292. package/esm/mark/tree.js +1 -1
  293. package/esm/mark/tree.js.map +1 -1
  294. package/esm/mark/treemap.js +1 -2
  295. package/esm/mark/treemap.js.map +1 -1
  296. package/esm/mark/vector.js +1 -0
  297. package/esm/mark/vector.js.map +1 -1
  298. package/esm/mark/wordCloud.js +1 -1
  299. package/esm/mark/wordCloud.js.map +1 -1
  300. package/esm/runtime/component.d.ts +4 -1
  301. package/esm/runtime/component.js +274 -106
  302. package/esm/runtime/component.js.map +1 -1
  303. package/esm/runtime/coordinate.d.ts +12 -0
  304. package/esm/runtime/coordinate.js +47 -16
  305. package/esm/runtime/coordinate.js.map +1 -1
  306. package/esm/runtime/layout.d.ts +1 -1
  307. package/esm/runtime/layout.js +145 -76
  308. package/esm/runtime/layout.js.map +1 -1
  309. package/esm/runtime/mark.js +7 -4
  310. package/esm/runtime/mark.js.map +1 -1
  311. package/esm/runtime/plot.d.ts +1 -1
  312. package/esm/runtime/plot.js +199 -88
  313. package/esm/runtime/plot.js.map +1 -1
  314. package/esm/runtime/render.d.ts +0 -1
  315. package/esm/runtime/render.js +22 -47
  316. package/esm/runtime/render.js.map +1 -1
  317. package/esm/runtime/scale.d.ts +3 -1
  318. package/esm/runtime/scale.js +61 -5
  319. package/esm/runtime/scale.js.map +1 -1
  320. package/esm/runtime/transform.js +18 -9
  321. package/esm/runtime/transform.js.map +1 -1
  322. package/esm/runtime/types/common.d.ts +38 -11
  323. package/esm/runtime/types/component.d.ts +13 -8
  324. package/esm/runtime/types/mark.d.ts +4 -4
  325. package/esm/runtime/types/options.d.ts +16 -12
  326. package/esm/runtime/types/scale.d.ts +18 -0
  327. package/esm/runtime/types/scale.js +19 -0
  328. package/esm/runtime/types/scale.js.map +1 -0
  329. package/esm/runtime/types/theme.d.ts +8 -5
  330. package/esm/scale/constant.d.ts +4 -0
  331. package/esm/scale/constant.js +6 -0
  332. package/esm/scale/constant.js.map +1 -0
  333. package/esm/scale/index.d.ts +2 -0
  334. package/esm/scale/index.js +1 -0
  335. package/esm/scale/index.js.map +1 -1
  336. package/esm/shape/area/curve.js +17 -17
  337. package/esm/shape/area/curve.js.map +1 -1
  338. package/esm/shape/area/hv.d.ts +3 -0
  339. package/esm/shape/area/hv.js +9 -0
  340. package/esm/shape/area/hv.js.map +1 -0
  341. package/esm/shape/area/hvh.d.ts +3 -0
  342. package/esm/shape/area/{step.js → hvh.js} +3 -3
  343. package/esm/shape/area/hvh.js.map +1 -0
  344. package/esm/shape/area/vh.d.ts +3 -0
  345. package/esm/shape/area/vh.js +9 -0
  346. package/esm/shape/area/vh.js.map +1 -0
  347. package/esm/shape/box/box.js +1 -1
  348. package/esm/shape/box/box.js.map +1 -1
  349. package/esm/shape/connector/connector.js +3 -3
  350. package/esm/shape/connector/connector.js.map +1 -1
  351. package/esm/shape/image/image.js +2 -2
  352. package/esm/shape/image/image.js.map +1 -1
  353. package/esm/shape/index.d.ts +6 -2
  354. package/esm/shape/index.js +3 -1
  355. package/esm/shape/index.js.map +1 -1
  356. package/esm/shape/interval/color.d.ts +1 -0
  357. package/esm/shape/interval/color.js +68 -50
  358. package/esm/shape/interval/color.js.map +1 -1
  359. package/esm/shape/label/label.js +3 -3
  360. package/esm/shape/label/label.js.map +1 -1
  361. package/esm/shape/label/position/area.d.ts +13 -0
  362. package/esm/shape/label/position/area.js +28 -0
  363. package/esm/shape/label/position/area.js.map +1 -0
  364. package/esm/shape/label/position/bottom.d.ts +1 -0
  365. package/esm/shape/label/position/bottom.js +2 -0
  366. package/esm/shape/label/position/bottom.js.map +1 -0
  367. package/esm/shape/label/position/bottomLeft.d.ts +1 -0
  368. package/esm/shape/label/position/bottomLeft.js +2 -0
  369. package/esm/shape/label/position/bottomLeft.js.map +1 -0
  370. package/esm/shape/label/position/bottomRight.d.ts +1 -0
  371. package/esm/shape/label/position/bottomRight.js +2 -0
  372. package/esm/shape/label/position/bottomRight.js.map +1 -0
  373. package/esm/shape/label/position/default.d.ts +18 -0
  374. package/esm/shape/label/position/default.js +107 -0
  375. package/esm/shape/label/position/default.js.map +1 -0
  376. package/esm/shape/label/position/index.d.ts +13 -0
  377. package/esm/shape/label/position/index.js +14 -0
  378. package/esm/shape/label/position/index.js.map +1 -0
  379. package/esm/shape/label/position/inside.d.ts +1 -0
  380. package/esm/shape/label/position/inside.js +2 -0
  381. package/esm/shape/label/position/inside.js.map +1 -0
  382. package/esm/shape/label/position/left.d.ts +1 -0
  383. package/esm/shape/label/position/left.js +2 -0
  384. package/esm/shape/label/position/left.js.map +1 -0
  385. package/esm/shape/label/position/outside.d.ts +18 -0
  386. package/esm/shape/label/position/outside.js +67 -0
  387. package/esm/shape/label/position/outside.js.map +1 -0
  388. package/esm/shape/label/position/right.d.ts +1 -0
  389. package/esm/shape/label/position/right.js +2 -0
  390. package/esm/shape/label/position/right.js.map +1 -0
  391. package/esm/shape/label/position/spider.d.ts +7 -0
  392. package/esm/shape/label/position/spider.js +34 -0
  393. package/esm/shape/label/position/spider.js.map +1 -0
  394. package/esm/shape/label/position/surround.d.ts +7 -0
  395. package/esm/shape/label/position/surround.js +35 -0
  396. package/esm/shape/label/position/surround.js.map +1 -0
  397. package/esm/shape/label/position/top.d.ts +1 -0
  398. package/esm/shape/label/position/top.js +2 -0
  399. package/esm/shape/label/position/top.js.map +1 -0
  400. package/esm/shape/label/position/topLeft.d.ts +1 -0
  401. package/esm/shape/label/position/topLeft.js +2 -0
  402. package/esm/shape/label/position/topLeft.js.map +1 -0
  403. package/esm/shape/label/position/topRight.d.ts +1 -0
  404. package/esm/shape/label/position/topRight.js +2 -0
  405. package/esm/shape/label/position/topRight.js.map +1 -0
  406. package/esm/shape/line/curve.js +24 -13
  407. package/esm/shape/line/curve.js.map +1 -1
  408. package/esm/shape/line/line.js +6 -2
  409. package/esm/shape/line/line.js.map +1 -1
  410. package/esm/shape/line/smooth.js +6 -2
  411. package/esm/shape/line/smooth.js.map +1 -1
  412. package/esm/shape/lineXY/line.js +2 -2
  413. package/esm/shape/lineXY/line.js.map +1 -1
  414. package/esm/shape/link/arc.js +2 -2
  415. package/esm/shape/link/arc.js.map +1 -1
  416. package/esm/shape/link/link.js +2 -2
  417. package/esm/shape/link/link.js.map +1 -1
  418. package/esm/shape/link/smooth.js +2 -2
  419. package/esm/shape/link/smooth.js.map +1 -1
  420. package/esm/shape/link/vhv.js +2 -2
  421. package/esm/shape/link/vhv.js.map +1 -1
  422. package/esm/shape/point/color.js +1 -1
  423. package/esm/shape/point/color.js.map +1 -1
  424. package/esm/shape/polygon/polygon.js +3 -3
  425. package/esm/shape/polygon/polygon.js.map +1 -1
  426. package/esm/shape/polygon/ribbon.js +3 -3
  427. package/esm/shape/polygon/ribbon.js.map +1 -1
  428. package/esm/shape/text/advance.js +3 -3
  429. package/esm/shape/text/advance.js.map +1 -1
  430. package/esm/shape/text/badge.js +3 -3
  431. package/esm/shape/text/badge.js.map +1 -1
  432. package/esm/shape/text/text.js +1 -1
  433. package/esm/shape/text/text.js.map +1 -1
  434. package/esm/shape/utils.d.ts +5 -0
  435. package/esm/shape/utils.js +14 -2
  436. package/esm/shape/utils.js.map +1 -1
  437. package/esm/shape/vector/vector.js +3 -3
  438. package/esm/shape/vector/vector.js.map +1 -1
  439. package/esm/spec/composition.d.ts +9 -7
  440. package/esm/spec/coordinate.d.ts +17 -33
  441. package/esm/spec/data.d.ts +32 -10
  442. package/esm/spec/geometry.d.ts +24 -9
  443. package/esm/spec/interaction.d.ts +81 -27
  444. package/esm/spec/labelTransform.d.ts +24 -11
  445. package/esm/spec/scale.d.ts +4 -3
  446. package/esm/spec/theme.d.ts +5 -2
  447. package/esm/spec/transform.d.ts +27 -4
  448. package/esm/spec/utils.d.ts +7 -0
  449. package/esm/spec/utils.js +2 -0
  450. package/esm/spec/utils.js.map +1 -0
  451. package/esm/stdlib/index.js +12 -18
  452. package/esm/stdlib/index.js.map +1 -1
  453. package/esm/theme/academy.d.ts +3 -0
  454. package/esm/theme/academy.js +404 -0
  455. package/esm/theme/academy.js.map +1 -0
  456. package/esm/theme/dark.js +163 -100
  457. package/esm/theme/dark.js.map +1 -1
  458. package/esm/theme/index.d.ts +1 -0
  459. package/esm/theme/index.js +1 -0
  460. package/esm/theme/index.js.map +1 -1
  461. package/esm/theme/light.js +177 -101
  462. package/esm/theme/light.js.map +1 -1
  463. package/esm/transform/filter.d.ts +7 -0
  464. package/esm/transform/filter.js +42 -0
  465. package/esm/transform/filter.js.map +1 -0
  466. package/esm/transform/groupN.js +2 -0
  467. package/esm/transform/groupN.js.map +1 -1
  468. package/esm/transform/index.d.ts +10 -6
  469. package/esm/transform/index.js +5 -3
  470. package/esm/transform/index.js.map +1 -1
  471. package/esm/transform/maybeTooltip.js +3 -1
  472. package/esm/transform/maybeTooltip.js.map +1 -1
  473. package/esm/transform/sample.d.ts +8 -0
  474. package/esm/transform/sample.js +64 -0
  475. package/esm/transform/sample.js.map +1 -0
  476. package/esm/transform/{Select.js → select.js} +2 -14
  477. package/esm/transform/select.js.map +1 -0
  478. package/esm/transform/{SelectX.js → selectX.js} +3 -3
  479. package/esm/transform/selectX.js.map +1 -0
  480. package/esm/transform/{SelectY.js → selectY.js} +3 -3
  481. package/esm/transform/selectY.js.map +1 -0
  482. package/esm/transform/sort.d.ts +1 -1
  483. package/esm/transform/sort.js +39 -21
  484. package/esm/transform/sort.js.map +1 -1
  485. package/esm/transform/utils/lttb.d.ts +5 -0
  486. package/esm/transform/utils/lttb.js +56 -0
  487. package/esm/transform/utils/lttb.js.map +1 -0
  488. package/esm/utils/angle.d.ts +2 -0
  489. package/esm/utils/angle.js +7 -0
  490. package/esm/utils/angle.js.map +1 -0
  491. package/esm/utils/array.d.ts +8 -0
  492. package/esm/utils/array.js +35 -0
  493. package/esm/utils/array.js.map +1 -1
  494. package/esm/utils/bounds.d.ts +26 -0
  495. package/esm/utils/bounds.js +41 -0
  496. package/esm/utils/bounds.js.map +1 -0
  497. package/esm/utils/color.d.ts +6 -0
  498. package/esm/utils/color.js +7 -0
  499. package/esm/utils/color.js.map +1 -0
  500. package/esm/utils/coordinate.d.ts +5 -0
  501. package/esm/utils/coordinate.js +31 -0
  502. package/esm/utils/coordinate.js.map +1 -1
  503. package/esm/utils/event.d.ts +0 -2
  504. package/esm/utils/event.js +0 -18
  505. package/esm/utils/event.js.map +1 -1
  506. package/esm/utils/helper.d.ts +2 -0
  507. package/esm/utils/helper.js +10 -2
  508. package/esm/utils/helper.js.map +1 -1
  509. package/esm/utils/scale.d.ts +3 -0
  510. package/esm/utils/scale.js +30 -0
  511. package/esm/utils/scale.js.map +1 -0
  512. package/esm/utils/selection.d.ts +1 -0
  513. package/esm/utils/selection.js +5 -2
  514. package/esm/utils/selection.js.map +1 -1
  515. package/esm/utils/size.js +1 -1
  516. package/esm/utils/size.js.map +1 -1
  517. package/esm/utils/vector.d.ts +1 -1
  518. package/esm/utils/vector.js +1 -1
  519. package/lib/animation/morphing.js +32 -10
  520. package/lib/animation/morphing.js.map +1 -1
  521. package/lib/animation/waveIn.js +1 -12
  522. package/lib/animation/waveIn.js.map +1 -1
  523. package/lib/api/chart.d.ts +16 -7
  524. package/lib/api/chart.js +67 -27
  525. package/lib/api/chart.js.map +1 -1
  526. package/lib/api/composition/base.d.ts +21 -0
  527. package/lib/api/composition/base.js +62 -0
  528. package/lib/api/composition/base.js.map +1 -0
  529. package/lib/api/composition/facetCircle.d.ts +2 -3
  530. package/lib/api/composition/facetCircle.js +2 -2
  531. package/lib/api/composition/facetCircle.js.map +1 -1
  532. package/lib/api/composition/facetRect.d.ts +2 -3
  533. package/lib/api/composition/facetRect.js +2 -2
  534. package/lib/api/composition/facetRect.js.map +1 -1
  535. package/lib/api/composition/geoPath.d.ts +5 -7
  536. package/lib/api/composition/geoPath.js +4 -5
  537. package/lib/api/composition/geoPath.js.map +1 -1
  538. package/lib/api/composition/geoView.d.ts +4 -6
  539. package/lib/api/composition/geoView.js +4 -5
  540. package/lib/api/composition/geoView.js.map +1 -1
  541. package/lib/api/composition/index.d.ts +2 -1
  542. package/lib/api/composition/index.js +3 -1
  543. package/lib/api/composition/index.js.map +1 -1
  544. package/lib/api/composition/repeatMatrix.d.ts +2 -3
  545. package/lib/api/composition/repeatMatrix.js +2 -2
  546. package/lib/api/composition/repeatMatrix.js.map +1 -1
  547. package/lib/api/composition/spaceFlex.d.ts +2 -3
  548. package/lib/api/composition/spaceFlex.js +2 -2
  549. package/lib/api/composition/spaceFlex.js.map +1 -1
  550. package/lib/api/composition/spaceLayer.d.ts +2 -3
  551. package/lib/api/composition/spaceLayer.js +2 -2
  552. package/lib/api/composition/spaceLayer.js.map +1 -1
  553. package/lib/api/composition/timingKeyframe.d.ts +2 -3
  554. package/lib/api/composition/timingKeyframe.js +2 -2
  555. package/lib/api/composition/timingKeyframe.js.map +1 -1
  556. package/lib/api/composition/view.d.ts +5 -5
  557. package/lib/api/composition/view.js +6 -6
  558. package/lib/api/composition/view.js.map +1 -1
  559. package/lib/api/mark/base.d.ts +22 -0
  560. package/lib/api/mark/base.js +58 -0
  561. package/lib/api/mark/base.js.map +1 -0
  562. package/lib/api/mark/mark.d.ts +29 -29
  563. package/lib/api/mark/mark.js +32 -29
  564. package/lib/api/mark/mark.js.map +1 -1
  565. package/lib/api/mark/types.d.ts +5 -2
  566. package/lib/api/node.d.ts +2 -1
  567. package/lib/api/node.js +8 -9
  568. package/lib/api/node.js.map +1 -1
  569. package/lib/api/props.js +3 -22
  570. package/lib/api/props.js.map +1 -1
  571. package/lib/component/axis.d.ts +5 -8
  572. package/lib/component/axis.js +181 -234
  573. package/lib/component/axis.js.map +1 -1
  574. package/lib/component/axisArc.d.ts +7 -0
  575. package/lib/component/axisArc.js +13 -0
  576. package/lib/component/axisArc.js.map +1 -0
  577. package/lib/component/axisRadar.d.ts +9 -0
  578. package/lib/component/axisRadar.js +49 -0
  579. package/lib/component/axisRadar.js.map +1 -0
  580. package/lib/component/axisX.d.ts +2 -1
  581. package/lib/component/axisX.js +6 -4
  582. package/lib/component/axisX.js.map +1 -1
  583. package/lib/component/axisY.d.ts +1 -1
  584. package/lib/component/axisY.js +3 -3
  585. package/lib/component/axisY.js.map +1 -1
  586. package/lib/component/index.d.ts +14 -0
  587. package/lib/component/index.js +20 -1
  588. package/lib/component/index.js.map +1 -1
  589. package/lib/component/legendCategory.d.ts +5 -4
  590. package/lib/component/legendCategory.js +87 -55
  591. package/lib/component/legendCategory.js.map +1 -1
  592. package/lib/component/legendContinuous.d.ts +4 -2
  593. package/lib/component/legendContinuous.js +87 -25
  594. package/lib/component/legendContinuous.js.map +1 -1
  595. package/lib/component/legendContinuousBlock.d.ts +4 -0
  596. package/lib/component/legendContinuousBlock.js +10 -0
  597. package/lib/component/legendContinuousBlock.js.map +1 -0
  598. package/lib/component/legendContinuousBlockSize.d.ts +4 -0
  599. package/lib/component/legendContinuousBlockSize.js +10 -0
  600. package/lib/component/legendContinuousBlockSize.js.map +1 -0
  601. package/lib/component/legendContinuousSize.d.ts +4 -0
  602. package/lib/component/legendContinuousSize.js +14 -0
  603. package/lib/component/legendContinuousSize.js.map +1 -0
  604. package/lib/component/scrollbar.d.ts +9 -0
  605. package/lib/component/scrollbar.js +40 -0
  606. package/lib/component/scrollbar.js.map +1 -0
  607. package/lib/component/scrollbarX.d.ts +7 -0
  608. package/lib/component/scrollbarX.js +13 -0
  609. package/lib/component/scrollbarX.js.map +1 -0
  610. package/lib/component/scrollbarY.d.ts +7 -0
  611. package/lib/component/scrollbarY.js +13 -0
  612. package/lib/component/scrollbarY.js.map +1 -0
  613. package/lib/component/slider.d.ts +9 -0
  614. package/lib/component/slider.js +51 -0
  615. package/lib/component/slider.js.map +1 -0
  616. package/lib/component/sliderX.d.ts +7 -0
  617. package/lib/component/sliderX.js +13 -0
  618. package/lib/component/sliderX.js.map +1 -0
  619. package/lib/component/sliderY.d.ts +7 -0
  620. package/lib/component/sliderY.js +13 -0
  621. package/lib/component/sliderY.js.map +1 -0
  622. package/lib/component/title.js +47 -23
  623. package/lib/component/title.js.map +1 -1
  624. package/lib/component/utils.d.ts +13 -0
  625. package/lib/component/utils.js +55 -1
  626. package/lib/component/utils.js.map +1 -1
  627. package/lib/composition/facetCircle.js +2 -2
  628. package/lib/composition/facetCircle.js.map +1 -1
  629. package/lib/composition/facetRect.js +6 -8
  630. package/lib/composition/facetRect.js.map +1 -1
  631. package/lib/composition/mark.js +5 -3
  632. package/lib/composition/mark.js.map +1 -1
  633. package/lib/composition/repeatMatrix.js +4 -4
  634. package/lib/composition/repeatMatrix.js.map +1 -1
  635. package/lib/composition/view.js +3 -3
  636. package/lib/composition/view.js.map +1 -1
  637. package/lib/coordinate/fisheye.js +1 -1
  638. package/lib/coordinate/fisheye.js.map +1 -1
  639. package/lib/coordinate/index.d.ts +5 -13
  640. package/lib/coordinate/index.js +6 -11
  641. package/lib/coordinate/index.js.map +1 -1
  642. package/lib/coordinate/polar.d.ts +6 -0
  643. package/lib/coordinate/polar.js +20 -7
  644. package/lib/coordinate/polar.js.map +1 -1
  645. package/lib/coordinate/radar.d.ts +7 -0
  646. package/lib/coordinate/radar.js +18 -0
  647. package/lib/coordinate/radar.js.map +1 -0
  648. package/lib/coordinate/radial.d.ts +6 -0
  649. package/lib/coordinate/radial.js +21 -7
  650. package/lib/coordinate/radial.js.map +1 -1
  651. package/lib/coordinate/theta.d.ts +7 -0
  652. package/lib/coordinate/theta.js +18 -5
  653. package/lib/coordinate/theta.js.map +1 -1
  654. package/lib/coordinate/transpose.js +1 -1
  655. package/lib/coordinate/transpose.js.map +1 -1
  656. package/lib/data/filter.d.ts +3 -3
  657. package/lib/data/filter.js.map +1 -1
  658. package/lib/data/fold.js +4 -10
  659. package/lib/data/fold.js.map +1 -1
  660. package/lib/data/index.d.ts +5 -3
  661. package/lib/data/index.js +5 -3
  662. package/lib/data/index.js.map +1 -1
  663. package/lib/data/pick.js +10 -2
  664. package/lib/data/pick.js.map +1 -1
  665. package/lib/data/slice.d.ts +8 -0
  666. package/lib/data/slice.js +14 -0
  667. package/lib/data/slice.js.map +1 -0
  668. package/lib/data/sort.d.ts +8 -0
  669. package/lib/data/sort.js +17 -0
  670. package/lib/data/sort.js.map +1 -0
  671. package/lib/geo/{d3-projection.js → d3Projection.js} +1 -1
  672. package/lib/geo/d3Projection.js.map +1 -0
  673. package/lib/geo/geoView.js +4 -4
  674. package/lib/geo/geoView.js.map +1 -1
  675. package/lib/interaction/action/service/legendItemSelection.js.map +1 -1
  676. package/lib/interaction/action/transformer/setItemState.js.map +1 -1
  677. package/lib/interaction/builtin/activeRegion.d.ts +0 -2
  678. package/lib/interaction/builtin/brush.d.ts +1 -1
  679. package/lib/interaction/builtin/brushHighlight.d.ts +1 -1
  680. package/lib/interaction/builtin/brushVisible.d.ts +1 -1
  681. package/lib/interaction/builtin/elementHighlight.d.ts +2 -0
  682. package/lib/interaction/builtin/elementHighlightByColor.d.ts +2 -0
  683. package/lib/interaction/builtin/elementHighlightByX.d.ts +2 -0
  684. package/lib/interaction/builtin/ellipsisText.d.ts +0 -3
  685. package/lib/interaction/builtin/fisheye.d.ts +6 -6
  686. package/lib/interaction/builtin/tooltip.d.ts +4 -8
  687. package/lib/interaction/index.d.ts +13 -0
  688. package/lib/interaction/index.js +25 -31
  689. package/lib/interaction/index.js.map +1 -1
  690. package/lib/interaction/native/brushAxisHighlight.d.ts +27 -0
  691. package/lib/interaction/native/brushAxisHighlight.js +172 -0
  692. package/lib/interaction/native/brushAxisHighlight.js.map +1 -0
  693. package/lib/interaction/native/brushFilter.d.ts +14 -0
  694. package/lib/interaction/native/brushFilter.js +127 -0
  695. package/lib/interaction/native/brushFilter.js.map +1 -0
  696. package/lib/interaction/native/brushHighlight.d.ts +41 -0
  697. package/lib/interaction/native/brushHighlight.js +355 -0
  698. package/lib/interaction/native/brushHighlight.js.map +1 -0
  699. package/lib/interaction/native/brushXFilter.d.ts +1 -0
  700. package/lib/interaction/native/brushXFilter.js +10 -0
  701. package/lib/interaction/native/brushXFilter.js.map +1 -0
  702. package/lib/interaction/native/brushXHighlight.d.ts +6 -0
  703. package/lib/interaction/native/brushXHighlight.js +14 -0
  704. package/lib/interaction/native/brushXHighlight.js.map +1 -0
  705. package/lib/interaction/native/brushYFilter.d.ts +1 -0
  706. package/lib/interaction/native/brushYFilter.js +10 -0
  707. package/lib/interaction/native/brushYFilter.js.map +1 -0
  708. package/lib/interaction/native/brushYHighlight.d.ts +6 -0
  709. package/lib/interaction/native/brushYHighlight.js +14 -0
  710. package/lib/interaction/native/brushYHighlight.js.map +1 -0
  711. package/lib/interaction/native/elementHighlight.d.ts +10 -2
  712. package/lib/interaction/native/elementHighlight.js +86 -23
  713. package/lib/interaction/native/elementHighlight.js.map +1 -1
  714. package/lib/interaction/native/elementHighlightByColor.d.ts +0 -3
  715. package/lib/interaction/native/elementHighlightByColor.js +1 -7
  716. package/lib/interaction/native/elementHighlightByColor.js.map +1 -1
  717. package/lib/interaction/native/elementHighlightByX.d.ts +1 -8
  718. package/lib/interaction/native/elementHighlightByX.js +2 -9
  719. package/lib/interaction/native/elementHighlightByX.js.map +1 -1
  720. package/lib/interaction/native/elementSelect.d.ts +7 -2
  721. package/lib/interaction/native/elementSelect.js +58 -26
  722. package/lib/interaction/native/elementSelect.js.map +1 -1
  723. package/lib/interaction/native/elementSelectByColor.js +1 -4
  724. package/lib/interaction/native/elementSelectByColor.js.map +1 -1
  725. package/lib/interaction/native/elementSelectByX.js +1 -4
  726. package/lib/interaction/native/elementSelectByX.js.map +1 -1
  727. package/lib/interaction/native/fisheye.js +6 -4
  728. package/lib/interaction/native/fisheye.js.map +1 -1
  729. package/lib/interaction/native/legendFilter.d.ts +14 -0
  730. package/lib/interaction/native/legendFilter.js +205 -0
  731. package/lib/interaction/native/legendFilter.js.map +1 -0
  732. package/lib/interaction/native/legendHighlight.d.ts +1 -0
  733. package/lib/interaction/native/legendHighlight.js +91 -0
  734. package/lib/interaction/native/legendHighlight.js.map +1 -0
  735. package/lib/interaction/native/poptip.d.ts +5 -0
  736. package/lib/interaction/native/poptip.js +95 -0
  737. package/lib/interaction/native/poptip.js.map +1 -0
  738. package/lib/interaction/native/sliderFilter.d.ts +5 -0
  739. package/lib/interaction/native/sliderFilter.js +91 -0
  740. package/lib/interaction/native/sliderFilter.js.map +1 -0
  741. package/lib/interaction/native/tooltip.d.ts +2 -2
  742. package/lib/interaction/native/tooltip.js +154 -45
  743. package/lib/interaction/native/tooltip.js.map +1 -1
  744. package/lib/interaction/native/utils.d.ts +24 -5
  745. package/lib/interaction/native/utils.js +258 -44
  746. package/lib/interaction/native/utils.js.map +1 -1
  747. package/lib/label-transform/contrastReverse.d.ts +9 -0
  748. package/lib/label-transform/contrastReverse.js +52 -0
  749. package/lib/label-transform/contrastReverse.js.map +1 -0
  750. package/lib/label-transform/index.d.ts +8 -8
  751. package/lib/label-transform/index.js +9 -9
  752. package/lib/label-transform/index.js.map +1 -1
  753. package/lib/label-transform/overflowHide.d.ts +7 -0
  754. package/lib/label-transform/overflowHide.js +22 -0
  755. package/lib/label-transform/overflowHide.js.map +1 -0
  756. package/lib/label-transform/overlapDodgeY.d.ts +7 -0
  757. package/lib/label-transform/{dodgeY.js → overlapDodgeY.js} +6 -6
  758. package/lib/label-transform/overlapDodgeY.js.map +1 -0
  759. package/lib/label-transform/overlapHide.d.ts +7 -0
  760. package/lib/label-transform/overlapHide.js +28 -0
  761. package/lib/label-transform/overlapHide.js.map +1 -0
  762. package/lib/mark/area.js +3 -2
  763. package/lib/mark/area.js.map +1 -1
  764. package/lib/mark/box.js +1 -0
  765. package/lib/mark/box.js.map +1 -1
  766. package/lib/mark/boxplot.js +6 -21
  767. package/lib/mark/boxplot.js.map +1 -1
  768. package/lib/mark/cell.js +2 -1
  769. package/lib/mark/cell.js.map +1 -1
  770. package/lib/mark/connector.js +1 -0
  771. package/lib/mark/connector.js.map +1 -1
  772. package/lib/mark/forceGraph.js +1 -1
  773. package/lib/mark/forceGraph.js.map +1 -1
  774. package/lib/mark/image.js +1 -0
  775. package/lib/mark/image.js.map +1 -1
  776. package/lib/mark/interval.js +1 -0
  777. package/lib/mark/interval.js.map +1 -1
  778. package/lib/mark/line.js +2 -1
  779. package/lib/mark/line.js.map +1 -1
  780. package/lib/mark/lineX.js +1 -0
  781. package/lib/mark/lineX.js.map +1 -1
  782. package/lib/mark/lineY.js +1 -0
  783. package/lib/mark/lineY.js.map +1 -1
  784. package/lib/mark/link.js +1 -0
  785. package/lib/mark/link.js.map +1 -1
  786. package/lib/mark/pack.js +1 -2
  787. package/lib/mark/pack.js.map +1 -1
  788. package/lib/mark/path.js +1 -0
  789. package/lib/mark/path.js.map +1 -1
  790. package/lib/mark/point.js +1 -0
  791. package/lib/mark/point.js.map +1 -1
  792. package/lib/mark/polygon.js +1 -0
  793. package/lib/mark/polygon.js.map +1 -1
  794. package/lib/mark/range.js +1 -0
  795. package/lib/mark/range.js.map +1 -1
  796. package/lib/mark/rangeX.js +1 -0
  797. package/lib/mark/rangeX.js.map +1 -1
  798. package/lib/mark/rangeY.js +1 -0
  799. package/lib/mark/rangeY.js.map +1 -1
  800. package/lib/mark/rect.js +1 -0
  801. package/lib/mark/rect.js.map +1 -1
  802. package/lib/mark/sankey.js +1 -1
  803. package/lib/mark/sankey.js.map +1 -1
  804. package/lib/mark/shape.js +1 -0
  805. package/lib/mark/shape.js.map +1 -1
  806. package/lib/mark/text.js +1 -0
  807. package/lib/mark/text.js.map +1 -1
  808. package/lib/mark/tree.js +1 -1
  809. package/lib/mark/tree.js.map +1 -1
  810. package/lib/mark/treemap.js +1 -2
  811. package/lib/mark/treemap.js.map +1 -1
  812. package/lib/mark/vector.js +1 -0
  813. package/lib/mark/vector.js.map +1 -1
  814. package/lib/mark/wordCloud.js +1 -1
  815. package/lib/mark/wordCloud.js.map +1 -1
  816. package/lib/runtime/component.d.ts +4 -1
  817. package/lib/runtime/component.js +276 -108
  818. package/lib/runtime/component.js.map +1 -1
  819. package/lib/runtime/coordinate.d.ts +12 -0
  820. package/lib/runtime/coordinate.js +51 -17
  821. package/lib/runtime/coordinate.js.map +1 -1
  822. package/lib/runtime/layout.d.ts +1 -1
  823. package/lib/runtime/layout.js +146 -77
  824. package/lib/runtime/layout.js.map +1 -1
  825. package/lib/runtime/mark.js +7 -4
  826. package/lib/runtime/mark.js.map +1 -1
  827. package/lib/runtime/plot.d.ts +1 -1
  828. package/lib/runtime/plot.js +196 -85
  829. package/lib/runtime/plot.js.map +1 -1
  830. package/lib/runtime/render.d.ts +0 -1
  831. package/lib/runtime/render.js +24 -47
  832. package/lib/runtime/render.js.map +1 -1
  833. package/lib/runtime/scale.d.ts +3 -1
  834. package/lib/runtime/scale.js +63 -5
  835. package/lib/runtime/scale.js.map +1 -1
  836. package/lib/runtime/transform.js +18 -9
  837. package/lib/runtime/transform.js.map +1 -1
  838. package/lib/runtime/types/common.d.ts +38 -11
  839. package/lib/runtime/types/component.d.ts +13 -8
  840. package/lib/runtime/types/mark.d.ts +4 -4
  841. package/lib/runtime/types/options.d.ts +16 -12
  842. package/lib/runtime/types/scale.d.ts +18 -0
  843. package/lib/runtime/types/scale.js +22 -0
  844. package/lib/runtime/types/scale.js.map +1 -0
  845. package/lib/runtime/types/theme.d.ts +8 -5
  846. package/lib/scale/constant.d.ts +4 -0
  847. package/lib/scale/constant.js +10 -0
  848. package/lib/scale/constant.js.map +1 -0
  849. package/lib/scale/index.d.ts +2 -0
  850. package/lib/scale/index.js +3 -1
  851. package/lib/scale/index.js.map +1 -1
  852. package/lib/shape/area/curve.js +16 -16
  853. package/lib/shape/area/curve.js.map +1 -1
  854. package/lib/shape/area/hv.d.ts +3 -0
  855. package/lib/shape/area/hv.js +13 -0
  856. package/lib/shape/area/hv.js.map +1 -0
  857. package/lib/shape/area/hvh.d.ts +3 -0
  858. package/lib/shape/area/{step.js → hvh.js} +5 -5
  859. package/lib/shape/area/hvh.js.map +1 -0
  860. package/lib/shape/area/vh.d.ts +3 -0
  861. package/lib/shape/area/vh.js +13 -0
  862. package/lib/shape/area/vh.js.map +1 -0
  863. package/lib/shape/box/box.js +1 -1
  864. package/lib/shape/box/box.js.map +1 -1
  865. package/lib/shape/connector/connector.js +3 -3
  866. package/lib/shape/connector/connector.js.map +1 -1
  867. package/lib/shape/image/image.js +2 -2
  868. package/lib/shape/image/image.js.map +1 -1
  869. package/lib/shape/index.d.ts +6 -2
  870. package/lib/shape/index.js +7 -3
  871. package/lib/shape/index.js.map +1 -1
  872. package/lib/shape/interval/color.d.ts +1 -0
  873. package/lib/shape/interval/color.js +70 -51
  874. package/lib/shape/interval/color.js.map +1 -1
  875. package/lib/shape/label/label.js +3 -3
  876. package/lib/shape/label/label.js.map +1 -1
  877. package/lib/shape/label/position/area.d.ts +13 -0
  878. package/lib/shape/label/position/area.js +32 -0
  879. package/lib/shape/label/position/area.js.map +1 -0
  880. package/lib/shape/label/position/bottom.d.ts +1 -0
  881. package/lib/shape/label/position/bottom.js +6 -0
  882. package/lib/shape/label/position/bottom.js.map +1 -0
  883. package/lib/shape/label/position/bottomLeft.d.ts +1 -0
  884. package/lib/shape/label/position/bottomLeft.js +6 -0
  885. package/lib/shape/label/position/bottomLeft.js.map +1 -0
  886. package/lib/shape/label/position/bottomRight.d.ts +1 -0
  887. package/lib/shape/label/position/bottomRight.js +6 -0
  888. package/lib/shape/label/position/bottomRight.js.map +1 -0
  889. package/lib/shape/label/position/default.d.ts +18 -0
  890. package/lib/shape/label/{position.js → position/default.js} +24 -81
  891. package/lib/shape/label/position/default.js.map +1 -0
  892. package/lib/shape/label/position/index.d.ts +13 -0
  893. package/lib/shape/label/position/index.js +30 -0
  894. package/lib/shape/label/position/index.js.map +1 -0
  895. package/lib/shape/label/position/inside.d.ts +1 -0
  896. package/lib/shape/label/position/inside.js +6 -0
  897. package/lib/shape/label/position/inside.js.map +1 -0
  898. package/lib/shape/label/position/left.d.ts +1 -0
  899. package/lib/shape/label/position/left.js +6 -0
  900. package/lib/shape/label/position/left.js.map +1 -0
  901. package/lib/shape/label/position/outside.d.ts +18 -0
  902. package/lib/shape/label/position/outside.js +75 -0
  903. package/lib/shape/label/position/outside.js.map +1 -0
  904. package/lib/shape/label/position/right.d.ts +1 -0
  905. package/lib/shape/label/position/right.js +6 -0
  906. package/lib/shape/label/position/right.js.map +1 -0
  907. package/lib/shape/label/position/spider.d.ts +7 -0
  908. package/lib/shape/label/position/spider.js +38 -0
  909. package/lib/shape/label/position/spider.js.map +1 -0
  910. package/lib/shape/label/position/surround.d.ts +7 -0
  911. package/lib/shape/label/position/surround.js +39 -0
  912. package/lib/shape/label/position/surround.js.map +1 -0
  913. package/lib/shape/label/position/top.d.ts +1 -0
  914. package/lib/shape/label/position/top.js +6 -0
  915. package/lib/shape/label/position/top.js.map +1 -0
  916. package/lib/shape/label/position/topLeft.d.ts +1 -0
  917. package/lib/shape/label/position/topLeft.js +6 -0
  918. package/lib/shape/label/position/topLeft.js.map +1 -0
  919. package/lib/shape/label/position/topRight.d.ts +1 -0
  920. package/lib/shape/label/position/topRight.js +6 -0
  921. package/lib/shape/label/position/topRight.js.map +1 -0
  922. package/lib/shape/line/curve.js +22 -11
  923. package/lib/shape/line/curve.js.map +1 -1
  924. package/lib/shape/line/line.js +5 -1
  925. package/lib/shape/line/line.js.map +1 -1
  926. package/lib/shape/line/smooth.js +5 -1
  927. package/lib/shape/line/smooth.js.map +1 -1
  928. package/lib/shape/lineXY/line.js +2 -2
  929. package/lib/shape/lineXY/line.js.map +1 -1
  930. package/lib/shape/link/arc.js +2 -2
  931. package/lib/shape/link/arc.js.map +1 -1
  932. package/lib/shape/link/link.js +2 -2
  933. package/lib/shape/link/link.js.map +1 -1
  934. package/lib/shape/link/smooth.js +2 -2
  935. package/lib/shape/link/smooth.js.map +1 -1
  936. package/lib/shape/link/vhv.js +2 -2
  937. package/lib/shape/link/vhv.js.map +1 -1
  938. package/lib/shape/point/color.js +1 -1
  939. package/lib/shape/point/color.js.map +1 -1
  940. package/lib/shape/polygon/polygon.js +3 -3
  941. package/lib/shape/polygon/polygon.js.map +1 -1
  942. package/lib/shape/polygon/ribbon.js +3 -3
  943. package/lib/shape/polygon/ribbon.js.map +1 -1
  944. package/lib/shape/text/advance.js +3 -3
  945. package/lib/shape/text/advance.js.map +1 -1
  946. package/lib/shape/text/badge.js +3 -3
  947. package/lib/shape/text/badge.js.map +1 -1
  948. package/lib/shape/text/text.js +1 -1
  949. package/lib/shape/text/text.js.map +1 -1
  950. package/lib/shape/utils.d.ts +5 -0
  951. package/lib/shape/utils.js +15 -2
  952. package/lib/shape/utils.js.map +1 -1
  953. package/lib/shape/vector/vector.js +3 -3
  954. package/lib/shape/vector/vector.js.map +1 -1
  955. package/lib/spec/composition.d.ts +9 -7
  956. package/lib/spec/coordinate.d.ts +17 -33
  957. package/lib/spec/data.d.ts +32 -10
  958. package/lib/spec/geometry.d.ts +24 -9
  959. package/lib/spec/interaction.d.ts +81 -27
  960. package/lib/spec/labelTransform.d.ts +24 -11
  961. package/lib/spec/scale.d.ts +4 -3
  962. package/lib/spec/theme.d.ts +5 -2
  963. package/lib/spec/transform.d.ts +27 -4
  964. package/lib/spec/utils.d.ts +7 -0
  965. package/lib/spec/utils.js +3 -0
  966. package/lib/spec/utils.js.map +1 -0
  967. package/lib/stdlib/index.js +3 -4
  968. package/lib/stdlib/index.js.map +1 -1
  969. package/lib/theme/academy.d.ts +3 -0
  970. package/lib/theme/academy.js +408 -0
  971. package/lib/theme/academy.js.map +1 -0
  972. package/lib/theme/dark.js +163 -100
  973. package/lib/theme/dark.js.map +1 -1
  974. package/lib/theme/index.d.ts +1 -0
  975. package/lib/theme/index.js +3 -1
  976. package/lib/theme/index.js.map +1 -1
  977. package/lib/theme/light.js +177 -101
  978. package/lib/theme/light.js.map +1 -1
  979. package/lib/transform/filter.d.ts +7 -0
  980. package/lib/transform/filter.js +46 -0
  981. package/lib/transform/filter.js.map +1 -0
  982. package/lib/transform/groupN.js +2 -0
  983. package/lib/transform/groupN.js.map +1 -1
  984. package/lib/transform/index.d.ts +10 -6
  985. package/lib/transform/index.js +11 -7
  986. package/lib/transform/index.js.map +1 -1
  987. package/lib/transform/maybeTooltip.js +3 -1
  988. package/lib/transform/maybeTooltip.js.map +1 -1
  989. package/lib/transform/sample.d.ts +8 -0
  990. package/lib/transform/sample.js +68 -0
  991. package/lib/transform/sample.js.map +1 -0
  992. package/lib/transform/{Select.js → select.js} +2 -14
  993. package/lib/transform/select.js.map +1 -0
  994. package/lib/transform/{SelectX.js → selectX.js} +3 -3
  995. package/lib/transform/selectX.js.map +1 -0
  996. package/lib/transform/{SelectY.js → selectY.js} +3 -3
  997. package/lib/transform/selectY.js.map +1 -0
  998. package/lib/transform/sort.d.ts +1 -1
  999. package/lib/transform/sort.js +38 -20
  1000. package/lib/transform/sort.js.map +1 -1
  1001. package/lib/transform/utils/lttb.d.ts +5 -0
  1002. package/lib/transform/utils/lttb.js +60 -0
  1003. package/lib/transform/utils/lttb.js.map +1 -0
  1004. package/lib/utils/angle.d.ts +2 -0
  1005. package/lib/utils/angle.js +12 -0
  1006. package/lib/utils/angle.js.map +1 -0
  1007. package/lib/utils/array.d.ts +8 -0
  1008. package/lib/utils/array.js +38 -1
  1009. package/lib/utils/array.js.map +1 -1
  1010. package/lib/utils/bounds.d.ts +26 -0
  1011. package/lib/utils/bounds.js +48 -0
  1012. package/lib/utils/bounds.js.map +1 -0
  1013. package/lib/utils/color.d.ts +6 -0
  1014. package/lib/utils/color.js +11 -0
  1015. package/lib/utils/color.js.map +1 -0
  1016. package/lib/utils/coordinate.d.ts +5 -0
  1017. package/lib/utils/coordinate.js +37 -1
  1018. package/lib/utils/coordinate.js.map +1 -1
  1019. package/lib/utils/event.d.ts +0 -2
  1020. package/lib/utils/event.js +1 -21
  1021. package/lib/utils/event.js.map +1 -1
  1022. package/lib/utils/helper.d.ts +2 -0
  1023. package/lib/utils/helper.js +12 -2
  1024. package/lib/utils/helper.js.map +1 -1
  1025. package/lib/utils/scale.d.ts +3 -0
  1026. package/lib/utils/scale.js +36 -0
  1027. package/lib/utils/scale.js.map +1 -0
  1028. package/lib/utils/selection.d.ts +1 -0
  1029. package/lib/utils/selection.js +5 -2
  1030. package/lib/utils/selection.js.map +1 -1
  1031. package/lib/utils/size.js +1 -1
  1032. package/lib/utils/size.js.map +1 -1
  1033. package/lib/utils/vector.d.ts +1 -1
  1034. package/lib/utils/vector.js +1 -1
  1035. package/package.json +9 -8
  1036. package/src/animation/morphing.ts +35 -10
  1037. package/src/animation/waveIn.ts +0 -1
  1038. package/src/api/chart.ts +78 -37
  1039. package/src/api/composition/base.ts +56 -0
  1040. package/src/api/composition/facetCircle.ts +2 -3
  1041. package/src/api/composition/facetRect.ts +2 -3
  1042. package/src/api/composition/geoPath.ts +6 -9
  1043. package/src/api/composition/geoView.ts +6 -9
  1044. package/src/api/composition/index.ts +2 -0
  1045. package/src/api/composition/repeatMatrix.ts +2 -3
  1046. package/src/api/composition/spaceFlex.ts +2 -3
  1047. package/src/api/composition/spaceLayer.ts +2 -3
  1048. package/src/api/composition/timingKeyframe.ts +2 -3
  1049. package/src/api/composition/view.ts +10 -8
  1050. package/src/api/mark/base.ts +58 -0
  1051. package/src/api/mark/mark.ts +34 -30
  1052. package/src/api/mark/types.ts +5 -2
  1053. package/src/api/node.ts +9 -11
  1054. package/src/api/props.ts +4 -25
  1055. package/src/component/axis.ts +341 -366
  1056. package/src/component/axisArc.ts +16 -0
  1057. package/src/component/axisRadar.ts +72 -0
  1058. package/src/component/axisX.ts +7 -4
  1059. package/src/component/axisY.ts +4 -4
  1060. package/src/component/index.ts +14 -0
  1061. package/src/component/legendCategory.ts +182 -76
  1062. package/src/component/legendContinuous.ts +133 -33
  1063. package/src/component/legendContinuousBlock.ts +17 -0
  1064. package/src/component/legendContinuousBlockSize.ts +22 -0
  1065. package/src/component/legendContinuousSize.ts +27 -0
  1066. package/src/component/scrollbar.ts +41 -0
  1067. package/src/component/scrollbarX.ts +16 -0
  1068. package/src/component/scrollbarY.ts +16 -0
  1069. package/src/component/slider.ts +52 -0
  1070. package/src/component/sliderX.ts +16 -0
  1071. package/src/component/sliderY.ts +16 -0
  1072. package/src/component/title.ts +70 -31
  1073. package/src/component/utils.ts +51 -0
  1074. package/src/composition/facetCircle.ts +2 -2
  1075. package/src/composition/facetRect.ts +6 -6
  1076. package/src/composition/mark.ts +8 -4
  1077. package/src/composition/repeatMatrix.ts +10 -3
  1078. package/src/composition/view.ts +13 -1
  1079. package/src/coordinate/fisheye.ts +1 -1
  1080. package/src/coordinate/index.ts +5 -13
  1081. package/src/coordinate/polar.ts +19 -11
  1082. package/src/coordinate/radar.ts +24 -0
  1083. package/src/coordinate/radial.ts +21 -11
  1084. package/src/coordinate/theta.ts +18 -9
  1085. package/src/coordinate/transpose.ts +1 -1
  1086. package/src/data/filter.ts +3 -3
  1087. package/src/data/fold.ts +6 -10
  1088. package/src/data/index.ts +5 -3
  1089. package/src/data/pick.ts +11 -2
  1090. package/src/data/slice.ts +15 -0
  1091. package/src/data/sort.ts +18 -0
  1092. package/src/geo/geoView.ts +4 -4
  1093. package/src/interaction/action/service/legendItemSelection.ts +1 -2
  1094. package/src/interaction/action/transformer/setItemState.ts +2 -3
  1095. package/src/interaction/index.ts +29 -16
  1096. package/src/interaction/native/brushAxisHighlight.ts +207 -0
  1097. package/src/interaction/native/brushFilter.ts +143 -0
  1098. package/src/interaction/native/brushHighlight.ts +447 -0
  1099. package/src/interaction/native/brushXFilter.ts +10 -0
  1100. package/src/interaction/native/brushXHighlight.ts +13 -0
  1101. package/src/interaction/native/brushYFilter.ts +10 -0
  1102. package/src/interaction/native/brushYHighlight.ts +13 -0
  1103. package/src/interaction/native/elementHighlight.ts +99 -15
  1104. package/src/interaction/native/elementHighlightByColor.ts +3 -20
  1105. package/src/interaction/native/elementHighlightByX.ts +4 -23
  1106. package/src/interaction/native/elementSelect.ts +79 -20
  1107. package/src/interaction/native/elementSelectByColor.ts +3 -16
  1108. package/src/interaction/native/elementSelectByX.ts +3 -16
  1109. package/src/interaction/native/fisheye.ts +6 -4
  1110. package/src/interaction/native/legendFilter.ts +214 -0
  1111. package/src/interaction/native/legendHighlight.ts +100 -0
  1112. package/src/interaction/native/poptip.ts +87 -0
  1113. package/src/interaction/native/sliderFilter.ts +112 -0
  1114. package/src/interaction/native/tooltip.ts +201 -50
  1115. package/src/interaction/native/utils.ts +298 -44
  1116. package/src/label-transform/contrastReverse.ts +56 -0
  1117. package/src/label-transform/index.ts +8 -8
  1118. package/src/label-transform/overflowHide.ts +23 -0
  1119. package/src/label-transform/{dodgeY.ts → overlapDodgeY.ts} +7 -7
  1120. package/src/label-transform/overlapHide.ts +32 -0
  1121. package/src/mark/area.ts +3 -2
  1122. package/src/mark/box.ts +1 -0
  1123. package/src/mark/boxplot.ts +4 -4
  1124. package/src/mark/cell.ts +2 -1
  1125. package/src/mark/connector.ts +1 -0
  1126. package/src/mark/forceGraph.ts +1 -1
  1127. package/src/mark/image.ts +1 -0
  1128. package/src/mark/interval.ts +1 -0
  1129. package/src/mark/line.ts +2 -1
  1130. package/src/mark/lineX.ts +1 -0
  1131. package/src/mark/lineY.ts +1 -0
  1132. package/src/mark/link.ts +1 -0
  1133. package/src/mark/pack.ts +1 -2
  1134. package/src/mark/path.ts +1 -0
  1135. package/src/mark/point.ts +1 -0
  1136. package/src/mark/polygon.ts +1 -0
  1137. package/src/mark/range.ts +1 -0
  1138. package/src/mark/rangeX.ts +1 -0
  1139. package/src/mark/rangeY.ts +1 -0
  1140. package/src/mark/rect.ts +1 -0
  1141. package/src/mark/sankey.ts +1 -1
  1142. package/src/mark/shape.ts +1 -0
  1143. package/src/mark/text.ts +1 -0
  1144. package/src/mark/tree.ts +1 -1
  1145. package/src/mark/treemap.ts +1 -2
  1146. package/src/mark/vector.ts +1 -0
  1147. package/src/mark/wordCloud.ts +1 -1
  1148. package/src/runtime/component.ts +393 -143
  1149. package/src/runtime/coordinate.ts +46 -16
  1150. package/src/runtime/layout.ts +206 -97
  1151. package/src/runtime/mark.ts +7 -3
  1152. package/src/runtime/plot.ts +318 -142
  1153. package/src/runtime/render.ts +33 -72
  1154. package/src/runtime/scale.ts +72 -7
  1155. package/src/runtime/transform.ts +23 -8
  1156. package/src/runtime/types/common.ts +50 -20
  1157. package/src/runtime/types/component.ts +18 -11
  1158. package/src/runtime/types/mark.ts +4 -4
  1159. package/src/runtime/types/options.ts +32 -22
  1160. package/src/runtime/types/scale.ts +20 -0
  1161. package/src/runtime/types/theme.ts +8 -5
  1162. package/src/scale/constant.ts +11 -0
  1163. package/src/scale/index.ts +2 -0
  1164. package/src/shape/area/curve.ts +22 -17
  1165. package/src/shape/area/hv.ts +20 -0
  1166. package/src/shape/area/{step.ts → hvh.ts} +3 -3
  1167. package/src/shape/area/vh.ts +20 -0
  1168. package/src/shape/box/box.ts +6 -6
  1169. package/src/shape/connector/connector.ts +3 -4
  1170. package/src/shape/image/image.ts +2 -2
  1171. package/src/shape/index.ts +7 -2
  1172. package/src/shape/interval/color.ts +97 -58
  1173. package/src/shape/label/label.ts +4 -3
  1174. package/src/shape/label/position/area.ts +39 -0
  1175. package/src/shape/label/position/bottom.ts +1 -0
  1176. package/src/shape/label/position/bottomLeft.ts +1 -0
  1177. package/src/shape/label/position/bottomRight.ts +1 -0
  1178. package/src/shape/label/{position.ts → position/default.ts} +26 -110
  1179. package/src/shape/label/position/index.ts +13 -0
  1180. package/src/shape/label/position/inside.ts +1 -0
  1181. package/src/shape/label/position/left.ts +1 -0
  1182. package/src/shape/label/position/outside.ts +121 -0
  1183. package/src/shape/label/position/right.ts +1 -0
  1184. package/src/shape/label/position/spider.ts +39 -0
  1185. package/src/shape/label/position/surround.ts +40 -0
  1186. package/src/shape/label/position/top.ts +1 -0
  1187. package/src/shape/label/position/topLeft.ts +1 -0
  1188. package/src/shape/label/position/topRight.ts +1 -0
  1189. package/src/shape/line/curve.ts +28 -13
  1190. package/src/shape/line/line.ts +6 -2
  1191. package/src/shape/line/smooth.ts +11 -2
  1192. package/src/shape/lineXY/line.ts +2 -2
  1193. package/src/shape/link/arc.ts +2 -2
  1194. package/src/shape/link/link.ts +2 -2
  1195. package/src/shape/link/smooth.ts +2 -2
  1196. package/src/shape/link/vhv.ts +2 -2
  1197. package/src/shape/point/color.ts +6 -5
  1198. package/src/shape/polygon/polygon.ts +3 -3
  1199. package/src/shape/polygon/ribbon.ts +3 -3
  1200. package/src/shape/text/advance.ts +6 -3
  1201. package/src/shape/text/badge.ts +8 -3
  1202. package/src/shape/text/text.ts +1 -1
  1203. package/src/shape/utils.ts +16 -6
  1204. package/src/shape/vector/vector.ts +3 -3
  1205. package/src/spec/action.ts +0 -1
  1206. package/src/spec/composition.ts +8 -8
  1207. package/src/spec/coordinate.ts +25 -51
  1208. package/src/spec/data.ts +36 -11
  1209. package/src/spec/geometry.ts +29 -14
  1210. package/src/spec/interaction.ts +120 -50
  1211. package/src/spec/labelTransform.ts +29 -11
  1212. package/src/spec/scale.ts +6 -1
  1213. package/src/spec/theme.ts +6 -2
  1214. package/src/spec/transform.ts +47 -3
  1215. package/src/spec/utils.ts +7 -0
  1216. package/src/stdlib/index.ts +75 -27
  1217. package/src/theme/academy.ts +410 -0
  1218. package/src/theme/dark.ts +164 -101
  1219. package/src/theme/index.ts +1 -0
  1220. package/src/theme/light.ts +177 -102
  1221. package/src/transform/filter.ts +48 -0
  1222. package/src/transform/groupN.ts +2 -0
  1223. package/src/transform/index.ts +10 -6
  1224. package/src/transform/maybeTooltip.ts +3 -1
  1225. package/src/transform/sample.ts +80 -0
  1226. package/src/transform/select.ts +1 -2
  1227. package/src/transform/selectX.ts +2 -2
  1228. package/src/transform/selectY.ts +2 -2
  1229. package/src/transform/sort.ts +53 -21
  1230. package/src/transform/utils/lttb.ts +73 -0
  1231. package/src/utils/angle.ts +7 -0
  1232. package/src/utils/array.ts +39 -0
  1233. package/src/utils/bounds.ts +52 -0
  1234. package/src/utils/color.ts +12 -0
  1235. package/src/utils/coordinate.ts +41 -0
  1236. package/src/utils/event.ts +0 -26
  1237. package/src/utils/helper.ts +17 -2
  1238. package/src/utils/scale.ts +31 -0
  1239. package/src/utils/selection.ts +7 -2
  1240. package/src/utils/size.ts +1 -1
  1241. package/src/utils/vector.ts +1 -1
  1242. package/esm/coordinate/fisheyeX.d.ts +0 -7
  1243. package/esm/coordinate/fisheyeX.js +0 -6
  1244. package/esm/coordinate/fisheyeX.js.map +0 -1
  1245. package/esm/coordinate/fisheyeY.d.ts +0 -7
  1246. package/esm/coordinate/fisheyeY.js +0 -6
  1247. package/esm/coordinate/fisheyeY.js.map +0 -1
  1248. package/esm/coordinate/reflect.d.ts +0 -7
  1249. package/esm/coordinate/reflect.js +0 -10
  1250. package/esm/coordinate/reflect.js.map +0 -1
  1251. package/esm/coordinate/reflectX.d.ts +0 -7
  1252. package/esm/coordinate/reflectX.js +0 -10
  1253. package/esm/coordinate/reflectX.js.map +0 -1
  1254. package/esm/coordinate/reflectY.d.ts +0 -7
  1255. package/esm/coordinate/reflectY.js +0 -10
  1256. package/esm/coordinate/reflectY.js.map +0 -1
  1257. package/esm/data/subset.d.ts +0 -7
  1258. package/esm/data/subset.js +0 -26
  1259. package/esm/data/subset.js.map +0 -1
  1260. package/esm/geo/d3-projection.js.map +0 -1
  1261. package/esm/label-transform/dodgeY.d.ts +0 -7
  1262. package/esm/label-transform/dodgeY.js.map +0 -1
  1263. package/esm/label-transform/hideOverlap.d.ts +0 -4
  1264. package/esm/label-transform/hideOverlap.js +0 -48
  1265. package/esm/label-transform/hideOverlap.js.map +0 -1
  1266. package/esm/label-transform/spider.d.ts +0 -7
  1267. package/esm/label-transform/spider.js +0 -30
  1268. package/esm/label-transform/spider.js.map +0 -1
  1269. package/esm/label-transform/surround.d.ts +0 -7
  1270. package/esm/label-transform/surround.js +0 -30
  1271. package/esm/label-transform/surround.js.map +0 -1
  1272. package/esm/shape/area/step.d.ts +0 -3
  1273. package/esm/shape/area/step.js.map +0 -1
  1274. package/esm/shape/label/position.d.ts +0 -25
  1275. package/esm/shape/label/position.js +0 -169
  1276. package/esm/shape/label/position.js.map +0 -1
  1277. package/esm/transform/Select.js.map +0 -1
  1278. package/esm/transform/SelectX.js.map +0 -1
  1279. package/esm/transform/SelectY.js.map +0 -1
  1280. package/lib/coordinate/fisheyeX.d.ts +0 -7
  1281. package/lib/coordinate/fisheyeX.js +0 -10
  1282. package/lib/coordinate/fisheyeX.js.map +0 -1
  1283. package/lib/coordinate/fisheyeY.d.ts +0 -7
  1284. package/lib/coordinate/fisheyeY.js +0 -10
  1285. package/lib/coordinate/fisheyeY.js.map +0 -1
  1286. package/lib/coordinate/reflect.d.ts +0 -7
  1287. package/lib/coordinate/reflect.js +0 -14
  1288. package/lib/coordinate/reflect.js.map +0 -1
  1289. package/lib/coordinate/reflectX.d.ts +0 -7
  1290. package/lib/coordinate/reflectX.js +0 -14
  1291. package/lib/coordinate/reflectX.js.map +0 -1
  1292. package/lib/coordinate/reflectY.d.ts +0 -7
  1293. package/lib/coordinate/reflectY.js +0 -14
  1294. package/lib/coordinate/reflectY.js.map +0 -1
  1295. package/lib/data/subset.d.ts +0 -7
  1296. package/lib/data/subset.js +0 -30
  1297. package/lib/data/subset.js.map +0 -1
  1298. package/lib/geo/d3-projection.js.map +0 -1
  1299. package/lib/label-transform/dodgeY.d.ts +0 -7
  1300. package/lib/label-transform/dodgeY.js.map +0 -1
  1301. package/lib/label-transform/hideOverlap.d.ts +0 -4
  1302. package/lib/label-transform/hideOverlap.js +0 -52
  1303. package/lib/label-transform/hideOverlap.js.map +0 -1
  1304. package/lib/label-transform/spider.d.ts +0 -7
  1305. package/lib/label-transform/spider.js +0 -34
  1306. package/lib/label-transform/spider.js.map +0 -1
  1307. package/lib/label-transform/surround.d.ts +0 -7
  1308. package/lib/label-transform/surround.js +0 -34
  1309. package/lib/label-transform/surround.js.map +0 -1
  1310. package/lib/shape/area/step.d.ts +0 -3
  1311. package/lib/shape/area/step.js.map +0 -1
  1312. package/lib/shape/label/position.d.ts +0 -25
  1313. package/lib/shape/label/position.js.map +0 -1
  1314. package/lib/transform/Select.js.map +0 -1
  1315. package/lib/transform/SelectX.js.map +0 -1
  1316. package/lib/transform/SelectY.js.map +0 -1
  1317. package/src/coordinate/fisheyeX.ts +0 -15
  1318. package/src/coordinate/fisheyeY.ts +0 -15
  1319. package/src/coordinate/reflect.ts +0 -15
  1320. package/src/coordinate/reflectX.ts +0 -15
  1321. package/src/coordinate/reflectY.ts +0 -15
  1322. package/src/data/subset.ts +0 -35
  1323. package/src/label-transform/hideOverlap.ts +0 -62
  1324. package/src/label-transform/spider.ts +0 -37
  1325. package/src/label-transform/surround.ts +0 -37
  1326. /package/esm/geo/{d3-projection.d.ts → d3Projection.d.ts} +0 -0
  1327. /package/esm/transform/{Select.d.ts → select.d.ts} +0 -0
  1328. /package/esm/transform/{SelectX.d.ts → selectX.d.ts} +0 -0
  1329. /package/esm/transform/{SelectY.d.ts → selectY.d.ts} +0 -0
  1330. /package/lib/geo/{d3-projection.d.ts → d3Projection.d.ts} +0 -0
  1331. /package/lib/transform/{Select.d.ts → select.d.ts} +0 -0
  1332. /package/lib/transform/{SelectX.d.ts → selectX.d.ts} +0 -0
  1333. /package/lib/transform/{SelectY.d.ts → selectY.d.ts} +0 -0
  1334. /package/src/geo/{d3-projection.ts → d3Projection.ts} +0 -0
@@ -1,17 +1,52 @@
1
1
  import { InteractionComponent } from '../runtime';
2
- import { ActiveRegionAction, PoptipAction, TooltipAction } from './action';
2
+ import { ChannelTypes } from './geometry';
3
3
  import { FisheyeCoordinate } from './coordinate';
4
- export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndex | CustomInteraction;
5
- export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | InteractionComponent;
4
+ export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndexInteraction | CustomInteraction | LegendFilterInteraction | LegendHighlightInteraction | BrushHighlightInteraction | BrushXHighlightInteraction | BrushYHighlightInteraction | BrushAxisHighlightInteraction | BrushFilterInteraction | BrushYFilterInteraction | BrushXFilterInteraction | SliderFilterInteraction | PoptipInteraction;
5
+ export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | 'legendFilter' | 'legendHighlight' | 'brushXHighlight' | 'brushYHighlight' | 'brushHighlight' | 'brushFilter' | 'brushXFilter' | 'brushYFilter' | 'sliderFilter' | 'poptip' | InteractionComponent;
6
6
  export type BrushInteraction = {
7
7
  type?: 'brush';
8
8
  brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
9
9
  };
10
10
  export type BrushHighlightInteraction = {
11
11
  type?: 'brushHighlight';
12
- brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
13
- multiple?: boolean;
14
- };
12
+ brushKey?: string;
13
+ reverse?: boolean;
14
+ shared?: boolean;
15
+ series?: boolean;
16
+ facet?: boolean;
17
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
18
+ export type BrushXHighlightInteraction = {
19
+ type?: 'brushXHighlight';
20
+ brushKey?: string;
21
+ reverse?: boolean;
22
+ shared?: boolean;
23
+ series?: boolean;
24
+ facet?: boolean;
25
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
26
+ export type BrushYHighlightInteraction = {
27
+ type?: 'brushYHighlight';
28
+ brushKey?: string;
29
+ reverse?: boolean;
30
+ shared?: boolean;
31
+ series?: boolean;
32
+ facet?: boolean;
33
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
34
+ export type BrushAxisHighlightInteraction = {
35
+ type?: 'brushAxisHighlight';
36
+ reverse?: boolean;
37
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
38
+ export type BrushFilterInteraction = {
39
+ type?: 'brushFilter';
40
+ reverse?: boolean;
41
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
42
+ export type BrushXFilterInteraction = {
43
+ type?: 'brushXFilter';
44
+ reverse?: boolean;
45
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
46
+ export type BrushYFilterInteraction = {
47
+ type?: 'brushYFilter';
48
+ reverse?: boolean;
49
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
15
50
  export type BrushVisibleInteraction = {
16
51
  type?: 'brushVisible';
17
52
  brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
@@ -19,47 +54,72 @@ export type BrushVisibleInteraction = {
19
54
  export type ElementHighlightInteraction = {
20
55
  type?: 'elementHighlight';
21
56
  link?: boolean;
22
- } & Record<`${'link' | 'highlighted' | 'unhighlighted'}${any}`, any>;
57
+ background?: boolean;
58
+ offset?: number;
59
+ } & Record<`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`, any>;
23
60
  export type ElementSelectInteraction = {
24
61
  type?: 'elementSelect';
25
62
  single?: boolean;
26
- } & Record<`${'selected' | 'link' | 'unselected'}${any}`, any>;
63
+ background?: true;
64
+ offset?: number;
65
+ } & Record<`${'selected' | 'link' | 'unselected' | 'background'}${any}`, any>;
27
66
  export type ElementSelectByColorInteraction = {
28
67
  type?: 'elementSelectByColor';
29
68
  single?: boolean;
69
+ offset?: number;
30
70
  } & Record<`${'selected' | 'link' | 'unselected'}${any}`, any>;
31
71
  export type ElementSelectByXInteraction = {
32
72
  type?: 'elementSelectByX';
33
73
  single?: boolean;
34
- } & Record<`${'selected' | 'link' | 'unselected'}${any}`, any>;
74
+ background?: true;
75
+ offset?: number;
76
+ } & Record<`${'selected' | 'link' | 'unselected' | 'background'}${any}`, any>;
35
77
  export type ElementHighlightByXInteraction = {
36
78
  type?: 'elementHighlightByX';
37
79
  x?: string;
38
80
  link?: boolean;
39
- } & Record<`${'link' | 'highlighted' | 'unhighlighted'}${any}`, any>;
81
+ background?: boolean;
82
+ offset?: number;
83
+ } & Record<`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`, any>;
40
84
  export type ElementHighlightByColorInteraction = {
41
85
  type?: 'elementHighlightByColor';
42
86
  color?: string;
43
- } & Record<`${'link' | 'highlighted' | 'unhighlighted'}${any}`, any>;
44
- export type ChartIndex = {
87
+ background?: boolean;
88
+ link?: boolean;
89
+ offset?: number;
90
+ } & Record<`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`, any>;
91
+ export type PoptipInteraction = {
92
+ type?: 'poptip';
93
+ offsetX?: number;
94
+ offsetY?: number;
95
+ } & Record<`tip${any}`, any>;
96
+ export type LegendFilterInteraction = {
97
+ type?: 'legendFilter';
98
+ channel?: ChannelTypes;
99
+ [key: string]: any;
100
+ } & Record<`${'marker' | 'label'}Unselected${any}`, any>;
101
+ export type LegendHighlightInteraction = {
102
+ type?: 'legendHighlight';
103
+ [key: string]: any;
104
+ } & Record<`${'marker' | 'label'}Unhighlighted${any}`, any>;
105
+ export type ChartIndexInteraction = {
45
106
  type?: 'chartIndex';
46
107
  wait?: number;
47
108
  leading?: boolean;
48
109
  trailing?: boolean;
49
110
  } & Record<`${'rule' | 'label'}${any}`, any>;
50
- export type ElementListHighlightInteraction = {
51
- type?: 'elementListHighlight';
52
- };
53
- export type LegendActiveInteraction = {
54
- type?: 'legendActive';
55
- };
56
- export type LegendHighlightInteraction = {
57
- type?: 'legendHighlight';
111
+ export type SliderFilterInteraction = {
112
+ type?: 'sliderFilter';
113
+ wait?: number;
114
+ leading?: boolean;
115
+ trailing?: boolean;
58
116
  };
59
- export type TooltipInteraction = Omit<TooltipAction, 'type'> & {
117
+ export type TooltipInteraction = {
60
118
  type?: 'tooltip';
61
119
  shared?: boolean;
62
120
  series?: boolean;
121
+ facet?: boolean;
122
+ crosshairs?: boolean;
63
123
  item?: any;
64
124
  };
65
125
  export type FisheyeInteraction = {
@@ -68,12 +128,6 @@ export type FisheyeInteraction = {
68
128
  leading?: boolean;
69
129
  trailing?: boolean;
70
130
  } & Omit<FisheyeCoordinate, 'type'>;
71
- export type ActiveRegionInteraction = {
72
- type?: 'activeRegion';
73
- } & Omit<ActiveRegionAction, 'type' | 'clear'>;
74
- export type EllipsisTextInteraction = {
75
- type?: 'ellipsisText';
76
- } & Omit<PoptipAction, 'type'>;
77
131
  export type CustomInteraction = {
78
132
  type?: InteractionComponent;
79
133
  [key: string]: any;
@@ -1,17 +1,30 @@
1
- export type LabelTransform = HideOverlapLabelTransform | DodgeYLabelTransform;
2
- export type HideOverlapLabelTransform = {
3
- type?: 'hideOverlap';
1
+ import { DisplayObject } from '@antv/g';
2
+ export type LabelTransform = OverlapHideTransform | OverlapDodgeYTransform | ContrastReverseTransform | OverflowHideTransform;
3
+ export type OverlapHideTransform = {
4
+ type?: 'overlapHide';
5
+ /**
6
+ * The hide priority, is the comparator for label.sort().
7
+ */
8
+ priority?: (a: DisplayObject, b: DisplayObject) => number;
4
9
  };
5
- export type DodgeYLabelTransform = {
6
- type?: 'dodgeY';
7
- maxIter?: number;
10
+ export type OverlapDodgeYTransform = {
11
+ type?: 'overlapDodgeY';
12
+ maxIterations?: number;
8
13
  maxError?: number;
9
14
  padding?: number;
10
15
  };
11
- export type SpiderLabelTransform = {
12
- type?: 'spider';
13
- edgeDistance?: string | number;
16
+ export type ContrastReverseTransform = {
17
+ type: 'contrastReverse';
18
+ /**
19
+ * Transform when the contrast ratio < threshold.
20
+ * Default is `4.5`.
21
+ */
22
+ threshold?: number;
23
+ /**
24
+ * The optional color palette, default is [#000, #fff].
25
+ */
26
+ palette?: string[];
14
27
  };
15
- export type SurroundLabelTransform = {
16
- type?: 'surround';
28
+ export type OverflowHideTransform = {
29
+ type: 'overflowHide';
17
30
  };
@@ -1,8 +1,8 @@
1
- import { LinearOptions, OrdinalOptions, IdentityOptions, BandOptions, PointOptions, TimeOptions, LogOptions, PowOptions, ThresholdOptions, QuantileOptions, QuantizeOptions, SqrtOptions, SequentialOptions } from '@antv/scale';
1
+ import { LinearOptions, OrdinalOptions, IdentityOptions, BandOptions, PointOptions, TimeOptions, LogOptions, PowOptions, ThresholdOptions, QuantileOptions, QuantizeOptions, SqrtOptions, SequentialOptions, ConstantOptions } from '@antv/scale';
2
2
  import { ScaleComponent } from '../runtime';
3
3
  import { Palette } from './palette';
4
- export type Scale = LinearScale | OrdinalScale | IdentityScale | BandScale | PointScale | TimeScale | LogScale | PowScale | SqrtScale | ThresholdScale | QuantizeScale | QuantileScale | SequentialScale | CustomScale;
5
- export type ScaleTypes = 'linear' | 'ordinal' | 'identity' | 'band' | 'point' | 'time' | 'log' | 'pow' | 'sqrt' | 'threshold' | 'quantize' | 'quantile' | 'sequential' | ScaleComponent;
4
+ export type Scale = LinearScale | OrdinalScale | IdentityScale | BandScale | PointScale | TimeScale | LogScale | PowScale | SqrtScale | ThresholdScale | QuantizeScale | QuantileScale | SequentialScale | CustomScale | ConstantScale;
5
+ export type ScaleTypes = 'linear' | 'ordinal' | 'identity' | 'band' | 'point' | 'time' | 'log' | 'pow' | 'sqrt' | 'threshold' | 'quantize' | 'quantile' | 'sequential' | 'constant' | ScaleComponent;
6
6
  export type BaseScale<T extends ScaleTypes, O> = {
7
7
  type?: T;
8
8
  palette?: Palette['type'] | string;
@@ -29,6 +29,7 @@ export type ThresholdScale = BaseScale<'threshold', ThresholdOptions>;
29
29
  export type QuantileScale = BaseScale<'quantile', QuantileOptions>;
30
30
  export type QuantizeScale = BaseScale<'quantize', QuantizeOptions>;
31
31
  export type SequentialScale = BaseScale<'sequential', SequentialOptions>;
32
+ export type ConstantScale = BaseScale<'constant', ConstantOptions>;
32
33
  export type CustomScale = BaseScale<ScaleComponent, {
33
34
  [key: string]: any;
34
35
  }>;
@@ -1,12 +1,15 @@
1
1
  import { Theme as ThemeOptions, ThemeComponent } from '../runtime/types/component';
2
- export type Theme = LightTheme | DarkTheme | CustomTheme;
3
- export type ThemeTypes = 'light' | 'dark' | ThemeComponent;
2
+ export type Theme = LightTheme | DarkTheme | AcademyTheme | CustomTheme;
3
+ export type ThemeTypes = 'light' | 'dark' | 'academy' | ThemeComponent;
4
4
  export type LightTheme = {
5
5
  type?: 'light';
6
6
  } & ThemeOptions;
7
7
  export type DarkTheme = {
8
8
  type?: 'dark';
9
9
  } & ThemeOptions;
10
+ export type AcademyTheme = {
11
+ type?: 'academy';
12
+ } & ThemeOptions;
10
13
  export type CustomTheme = {
11
14
  type?: ThemeComponent;
12
15
  } & ThemeOptions;
@@ -1,7 +1,7 @@
1
1
  import { TransformComponent, Primitive } from '../runtime';
2
2
  import { ChannelTypes } from './geometry';
3
- export type Transform = StackYTransform | DodgeXTransform | NormalizeYTransform | StackEnterTransform | JitterTransform | JitterXTransform | SymmetryYTransform | DiffYTransform | SelectTransform | SelectXTransform | SelectYTransform | GroupXTransform | GroupYTransform | GroupColorTransform | SortXTransform | SortYTransform | SortColorTransform | GroupTransform | PackTransform | BinXTransform | BinTransform | FlexXTransform;
4
- export type TransformTypes = 'dodgeX' | 'stackY' | 'normalizeY' | 'stackEnter' | 'jitter' | 'jitterX' | 'symmetryY' | 'diffY' | 'select' | 'selectY' | 'selectX' | 'groupX' | 'groupY' | 'group' | 'groupColor' | 'sortX' | 'sortColor' | 'sortY' | 'flexX' | 'Pack' | TransformComponent;
3
+ export type Transform = StackYTransform | DodgeXTransform | NormalizeYTransform | StackEnterTransform | JitterTransform | JitterXTransform | SymmetryYTransform | DiffYTransform | SelectTransform | SelectXTransform | SelectYTransform | GroupXTransform | GroupYTransform | GroupColorTransform | SortXTransform | SortYTransform | SortColorTransform | GroupTransform | PackTransform | BinXTransform | BinTransform | SampleTransform | FlexXTransform | FilterTransform;
4
+ export type TransformTypes = 'dodgeX' | 'stackY' | 'normalizeY' | 'stackEnter' | 'jitter' | 'jitterX' | 'symmetryY' | 'diffY' | 'select' | 'selectY' | 'selectX' | 'groupX' | 'groupY' | 'group' | 'groupColor' | 'sortX' | 'sortColor' | 'sortY' | 'flexX' | 'pack' | 'sample' | 'filter' | TransformComponent;
5
5
  export type TransformOrder = 'value' | 'sum' | 'series' | 'maxIndex' | string[] | null | ((data: Record<string, Primitive>) => Primitive);
6
6
  export type DodgeXTransform = {
7
7
  type?: 'dodgeX';
@@ -58,8 +58,8 @@ export type Selector = 'min' | 'max' | 'first' | 'last' | 'mean' | 'median' | ((
58
58
  export type SelectTransform = {
59
59
  type?: 'select';
60
60
  groupBy?: string | string[];
61
- } & {
62
- [key in ChannelTypes]?: Selector;
61
+ channel?: ChannelTypes;
62
+ selector?: Selector;
63
63
  };
64
64
  export type SelectXTransform = {
65
65
  type?: 'selectX';
@@ -83,6 +83,7 @@ export type SortXTransform = {
83
83
  reverse?: boolean;
84
84
  by?: string;
85
85
  slice?: number | [number, number];
86
+ ordinal?: boolean;
86
87
  reducer?: 'max' | 'min' | 'sum' | 'first' | 'last' | 'mean' | 'median' | ((I: number[], V: Primitive[]) => Primitive);
87
88
  };
88
89
  export type SortYTransform = {
@@ -135,3 +136,25 @@ export type BinTransform = {
135
136
  } & {
136
137
  [key in ChannelTypes]?: Reducer;
137
138
  };
139
+ export type SampleFunction = (I: number[], X: number[], Y: number[], thresholds: number) => number[];
140
+ export type SampleTransform = {
141
+ type?: 'sample';
142
+ /**
143
+ * Sample strategy. Default is 'median'.
144
+ */
145
+ strategy?: 'lttb' | 'median' | 'max' | 'min' | 'first' | 'last' | SampleFunction;
146
+ /**
147
+ * The thresholds of sample, when data size great then thresholds, sample will take effect.
148
+ * Default is 2000.
149
+ */
150
+ thresholds?: number;
151
+ /**
152
+ * Group data by fields, for series data.
153
+ */
154
+ groupBy?: string | string[];
155
+ };
156
+ export type FilterTransform = {
157
+ type?: 'filter';
158
+ } & {
159
+ [key in ChannelTypes]?: any[] | ((v: Primitive) => boolean);
160
+ };
@@ -0,0 +1,7 @@
1
+ export type Literal2Object<Literal extends {
2
+ type?: any;
3
+ }> = Partial<{
4
+ [Type in Literal['type']]: Literal extends {
5
+ type?: Type;
6
+ } ? Omit<Literal, 'type'> | boolean : never;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"src/","sources":["spec/utils.ts"],"names":[],"mappings":""}
@@ -1,18 +1,13 @@
1
- import { Cartesian, Polar, Helix, Transpose, Theta, Parallel, Fisheye, FisheyeX, FisheyeY, Reflect, ReflectX, ReflectY, Radial, } from '../coordinate';
1
+ import { Cartesian, Polar, Helix, Transpose, Theta, Parallel, Fisheye, Radial, Radar, } from '../coordinate';
2
2
  import { Constant, Field, Transform, Column } from '../encode';
3
3
  import { Cell, Interval, Rect, Line, Point as PointGeometry, Text as TextGeometry, Area as AreaGeometry, Image as ImageGeometry, Polygon as PolygonGeometry, Box as BoxGeometry, Vector as VectorGeometry, Link as LinkGeometry, LineX, LineY, Connector, Range, RangeX, RangeY, Sankey, Path, Treemap, Pack as PackGeometry, Shape, Boxplot, ForceGraph, Tree as TreeGeometry, WordCloud as WordCloudGeometry, } from '../mark';
4
4
  import { Category10, Category20, SequentialBlue, SequentialDarkBlue, SequentialGreen, SequentialDarkGreen, SequentialGrey, SequentialOrange, SequentialPink, SequentialRed, SequentialYellow, SequentialPurple, SequentialYellowOrange, SequentialYellowGreen, SequentialPinkPurple, SequentialGreenBlue, DivergingGreenYellow, DivergingRedBlue, DivergingGreenRed, DivergingRedPurple, } from '../palette';
5
- import { Linear, Ordinal, Band, Identity, Point, Time, Log, Pow, Threshold, Quantile, Quantize, Sqrt, Sequential, } from '../scale';
6
- import { Rect as RectShape, HollowRect, Line as LineShape, HV, VH, HVH, Smooth, Bowtie, Cross, Diamond, Hexagon, HollowBowtie, HollowDiamond, HollowHexagon, HollowPoint, HollowSquare, HollowTriangle, HollowTriangleDown, Hyphen, LinePoint, Plus, Point as PointShape, Square, Tick, Triangle, TriangleDown, Text, Badge, LineXY, Connector as ConnectorShape, Area, SmoothArea, Step, SmoothEdge, VHVEdge, Arc, Image, Polygon, Ribbon, Box, Funnel, Pyramid, Vector, Link, Label, Path as PathShape, HollowPath, Shape as CustomShape, } from '../shape';
7
- import { Light, Dark } from '../theme';
8
- import { AxisX, AxisY, LegendCategory, LegendContinuous, TitleComponent, } from '../component';
5
+ import { Linear, Ordinal, Band, Identity, Point, Time, Log, Pow, Threshold, Quantile, Quantize, Sqrt, Sequential, Constant as ConstantScale, } from '../scale';
6
+ import { Rect as RectShape, HollowRect, Line as LineShape, HV, VH, HVH, Smooth, Bowtie, Cross, Diamond, Hexagon, HollowBowtie, HollowDiamond, HollowHexagon, HollowPoint, HollowSquare, HollowTriangle, HollowTriangleDown, Hyphen, LinePoint, Plus, Point as PointShape, Square, Tick, Triangle, TriangleDown, Text, Badge, LineXY, Connector as ConnectorShape, Area, SmoothArea, HVHArea, VHArea, HVArea, SmoothEdge, VHVEdge, Arc, Image, Polygon, Ribbon, Box, Funnel, Pyramid, Vector, Link, Label, Path as PathShape, HollowPath, Shape as CustomShape, } from '../shape';
7
+ import { Light, Dark, Academy } from '../theme';
8
+ import { AxisLinear, AxisArc, AxisX, AxisY, AxisRadar, LegendCategory, LegendContinuous, LegendContinuousBlock, LegendContinuousBlockSize, LegendContinuousSize, TitleComponent, SliderX, SliderY, ScrollbarX, ScrollbarY, } from '../component';
9
9
  import { ScaleInX, ScaleOutX, ScaleInY, ScaleOutY, WaveIn, FadeIn, FadeOut, Morphing, ZoomIn, ZoomOut, PathIn, GrowInX, GrowInY, } from '../animation';
10
- import {
11
- // ElementHighlight,
12
- // ElementSelected,
13
- // Tooltip,
14
- // Fisheye as FisheyeInteraction,
15
- ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, ElementSelectByX, ElementSelectByColor, ChartIndex, Fisheye as ChartFisheye, Tooltip,
10
+ import { ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, ElementSelectByX, ElementSelectByColor, ChartIndex, Fisheye as ChartFisheye, Tooltip, LegendFilter, LegendHighlight, BrushHighlight, BrushXHighlight, BrushYHighlight, BrushAxisHighlight, BrushFilter, BrushXFilter, BrushYFilter, SliderFilter, Poptip,
16
11
  // ElementHighlightByX,
17
12
  // ElementHighlightByColor,
18
13
  // ElementListHighlight,
@@ -25,14 +20,14 @@ ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, E
25
20
  // EllipsisText,
26
21
  } from '../interaction';
27
22
  import { SpaceLayer, SpaceFlex, Mark, View, FacetRect, FacetCircle, RepeatMatrix, TimingKeyframe, } from '../composition';
28
- import { MaybeTitle, MaybeZeroX, MaybeZeroY1, MaybeStackY, MaybeSeries, MaybeZeroY, MaybeSize, MaybeKey, StackY, DodgeX, StackEnter, NormalizeY, Jitter, JitterX, SymmetryY, DiffY, Select, SelectX, SelectY, GroupX, Group, SortX, FlexX, MaybeTupleY, MaybeTupleX, MaybeIdentityY, MaybeIdentityX, MaybeZeroPadding, MaybeTuple, SortY, GroupY, GroupColor, SortColor, Pack, BinX, Bin, MaybeVisualPosition, MaybeFunctionAttribute, MaybeGradient, MaybeTooltip, } from '../transform';
29
- import { Fetch, SortBy, Filter, Map, Pick, Rename, Subset, Fold, Inline, Custom, Cluster, Tree, Sankey as SankeyTransform, Arc as ArcTransform, WordCloud, Join, } from '../data';
30
- import { HideOverlap, DodgeY, Spider, Surround } from '../label-transform';
23
+ import { MaybeTitle, MaybeZeroX, MaybeZeroY1, MaybeStackY, MaybeSeries, MaybeZeroY, MaybeSize, MaybeKey, StackY, DodgeX, StackEnter, NormalizeY, Jitter, JitterX, SymmetryY, DiffY, Select, SelectX, SelectY, GroupX, Group, SortX, FlexX, MaybeTupleY, MaybeTupleX, MaybeIdentityY, MaybeIdentityX, MaybeZeroPadding, MaybeTuple, SortY, GroupY, GroupColor, SortColor, Pack, BinX, Bin, MaybeVisualPosition, MaybeFunctionAttribute, MaybeGradient, MaybeTooltip, Sample, Filter, } from '../transform';
24
+ import { Fetch, SortBy, Filter as DataFilter, Map, Pick, Rename, Fold, Slice, Inline, Custom, Cluster, Tree, Sankey as SankeyTransform, Arc as ArcTransform, WordCloud, Join, Sort, } from '../data';
25
+ import { OverlapDodgeY, OverflowHide, ContrastReverse, OverlapHide, } from '../label-transform';
31
26
  import { geoLibrary } from '../geo';
32
27
  export function createLibrary() {
33
- return Object.assign({ 'data.fetch': Fetch, 'data.inline': Inline, 'data.sortBy': SortBy, 'data.filter': Filter, 'data.pick': Pick, 'data.rename': Rename, 'data.subset': Subset, 'data.fold': Fold, 'data.custom': Custom, 'data.map': Map, 'data.cluster': Cluster, 'data.tree': Tree, 'data.sankey': SankeyTransform, 'data.arc': ArcTransform, 'data.wordCloud': WordCloud, 'data.join': Join,
28
+ return Object.assign({ 'data.fetch': Fetch, 'data.inline': Inline, 'data.sortBy': SortBy, 'data.sort': Sort, 'data.filter': DataFilter, 'data.pick': Pick, 'data.rename': Rename, 'data.fold': Fold, 'data.slice': Slice, 'data.custom': Custom, 'data.map': Map, 'data.cluster': Cluster, 'data.tree': Tree, 'data.sankey': SankeyTransform, 'data.arc': ArcTransform, 'data.wordCloud': WordCloud, 'data.join': Join,
34
29
  // 'transform.voronoi': Voronoi,
35
- 'transform.maybeZeroY1': MaybeZeroY1, 'transform.maybeZeroX': MaybeZeroX, 'transform.maybeStackY': MaybeStackY, 'transform.maybeTitle': MaybeTitle, 'transform.maybeSeries': MaybeSeries, 'transform.maybeZeroPadding': MaybeZeroPadding, 'transform.stackY': StackY, 'transform.binX': BinX, 'transform.bin': Bin, 'transform.dodgeX': DodgeX, 'transform.jitter': Jitter, 'transform.jitterX': JitterX, 'transform.symmetryY': SymmetryY, 'transform.diffY': DiffY, 'transform.stackEnter': StackEnter, 'transform.normalizeY': NormalizeY, 'transform.select': Select, 'transform.selectX': SelectX, 'transform.selectY': SelectY, 'transform.groupX': GroupX, 'transform.groupY': GroupY, 'transform.groupColor': GroupColor, 'transform.group': Group, 'transform.maybeSize': MaybeSize, 'transform.maybeZeroY': MaybeZeroY, 'transform.maybeKey': MaybeKey, 'transform.sortX': SortX, 'transform.sortY': SortY, 'transform.sortColor': SortColor, 'transform.flexX': FlexX, 'transform.maybeTupleY': MaybeTupleY, 'transform.maybeTupleX': MaybeTupleX, 'transform.maybeIdentityY': MaybeIdentityY, 'transform.maybeIdentityX': MaybeIdentityX, 'transform.maybeTuple': MaybeTuple, 'transform.maybeVisualPosition': MaybeVisualPosition, 'transform.maybeFunctionAttribute': MaybeFunctionAttribute, 'transform.maybeGradient': MaybeGradient, 'transform.maybeTooltip': MaybeTooltip, 'transform.pack': Pack, 'coordinate.cartesian': Cartesian, 'coordinate.polar': Polar, 'coordinate.helix': Helix, 'coordinate.transpose': Transpose, 'coordinate.theta': Theta, 'coordinate.reflect': Reflect, 'coordinate.reflectX': ReflectX, 'coordinate.reflectY': ReflectY, 'coordinate.parallel': Parallel, 'coordinate.fisheye': Fisheye, 'coordinate.fisheyeX': FisheyeX, 'coordinate.fisheyeY': FisheyeY, 'coordinate.radial': Radial, 'encode.constant': Constant, 'encode.field': Field, 'encode.transform': Transform, 'encode.column': Column, 'mark.interval': Interval, 'mark.rect': Rect, 'mark.line': Line, 'mark.point': PointGeometry, 'mark.text': TextGeometry, 'mark.cell': Cell, 'mark.area': AreaGeometry, 'mark.link': LinkGeometry, 'mark.image': ImageGeometry, 'mark.polygon': PolygonGeometry, 'mark.box': BoxGeometry, 'mark.vector': VectorGeometry, 'mark.lineX': LineX, 'mark.lineY': LineY, 'mark.connector': Connector, 'mark.range': Range, 'mark.rangeX': RangeX, 'mark.rangeY': RangeY, 'mark.sankey': Sankey, 'mark.path': Path, 'mark.treemap': Treemap, 'mark.pack': PackGeometry, 'mark.boxplot': Boxplot, 'mark.shape': Shape, 'mark.forceGraph': ForceGraph, 'mark.tree': TreeGeometry, 'mark.wordCloud': WordCloudGeometry, 'palette.category10': Category10, 'palette.category20': Category20, 'palette.sequentialBlue': SequentialBlue, 'palette.sequentialDarkBlue': SequentialDarkBlue, 'palette.sequentialGreen': SequentialGreen, 'palette.sequentialDarkGreen': SequentialDarkGreen, 'palette.sequentialGrey': SequentialGrey, 'palette.sequentialOrange': SequentialOrange, 'palette.sequentialPink': SequentialPink, 'palette.sequentialRed': SequentialRed, 'palette.sequentialYellow': SequentialYellow, 'palette.sequentialPurple': SequentialPurple, 'palette.sequentialYellowOrange': SequentialYellowOrange, 'palette.sequentialYellowGreen': SequentialYellowGreen, 'palette.sequentialPinkPurple': SequentialPinkPurple, 'palette.sequentialGreenBlue': SequentialGreenBlue, 'palette.divergingGreenYellow': DivergingGreenYellow, 'palette.divergingRedBlue': DivergingRedBlue, 'palette.divergingGreenRed': DivergingGreenRed, 'palette.divergingRedPurple': DivergingRedPurple, 'scale.linear': Linear, 'scale.ordinal': Ordinal, 'scale.band': Band, 'scale.identity': Identity, 'scale.point': Point, 'scale.time': Time, 'scale.log': Log, 'scale.pow': Pow, 'scale.sqrt': Sqrt, 'scale.threshold': Threshold, 'scale.quantile': Quantile, 'scale.quantize': Quantize, 'scale.sequential': Sequential, 'shape.interval.rect': RectShape, 'shape.interval.hollow': HollowRect, 'shape.interval.funnel': Funnel, 'shape.interval.pyramid': Pyramid, 'shape.rect.rect': RectShape, 'shape.rect.hollow': HollowRect, 'shape.cell.cell': RectShape, 'shape.cell.hollow': HollowRect, 'shape.line.line': LineShape, 'shape.line.hv': HV, 'shape.line.vh': VH, 'shape.line.hvh': HVH, 'shape.line.smooth': Smooth, 'shape.point.bowtie': Bowtie, 'shape.point.cross': Cross, 'shape.point.diamond': Diamond, 'shape.point.hexagon': Hexagon, 'shape.point.hollowBowtie': HollowBowtie, 'shape.point.hollowDiamond': HollowDiamond, 'shape.point.hollowHexagon': HollowHexagon, 'shape.point.hollow': HollowPoint, 'shape.point.hollowSquare': HollowSquare, 'shape.point.hollowTriangle': HollowTriangle, 'shape.point.hollowTriangleDown': HollowTriangleDown, 'shape.point.hyphen': Hyphen, 'shape.point.line': LinePoint, 'shape.point.plus': Plus, 'shape.point.point': PointShape, 'shape.point.square': Square, 'shape.point.tick': Tick, 'shape.point.triangle': Triangle, 'shape.point.triangleDown': TriangleDown, 'shape.text.text': Text, 'shape.area.area': Area, 'shape.area.smooth': SmoothArea, 'shape.area.step': Step, 'shape.link.smooth': SmoothEdge, 'shape.link.vhv': VHVEdge, 'shape.link.arc': Arc, 'shape.link.link': Link, 'shape.image.image': Image, 'shape.polygon.polygon': Polygon, 'shape.polygon.ribbon': Ribbon, 'shape.box.box': Box, 'shape.vector.vector': Vector, 'shape.label.label': Label, 'shape.text.badge': Badge, 'shape.lineX.line': LineXY, 'shape.lineY.line': LineXY, 'shape.shape.shape': CustomShape, 'shape.connector.connector': ConnectorShape, 'shape.range.range': RectShape, 'shape.rangeX.range': RectShape, 'shape.rangeY.range': RectShape, 'shape.path.path': PathShape, 'shape.path.hollow': HollowPath, 'theme.light': Light, 'theme.dark': Dark, 'component.axisX': AxisX, 'component.axisY': AxisY, 'component.legendCategory': LegendCategory, 'component.legendContinuous': LegendContinuous, 'component.title': TitleComponent, 'animation.scaleInX': ScaleInX, 'animation.scaleOutX': ScaleOutX, 'animation.scaleInY': ScaleInY, 'animation.scaleOutY': ScaleOutY, 'animation.waveIn': WaveIn, 'animation.fadeIn': FadeIn, 'animation.fadeOut': FadeOut, 'animation.zoomIn': ZoomIn, 'animation.zoomOut': ZoomOut, 'animation.pathIn': PathIn, 'animation.morphing': Morphing, 'animation.growInX': GrowInX, 'animation.growInY': GrowInY, 'interaction.elementHighlight': ElementHighlight, 'interaction.elementHighlightByX': ElementHighlightByX, 'interaction.elementHighlightByColor': ElementHighlightByColor, 'interaction.elementSelect': ElementSelect, 'interaction.elementSelectByX': ElementSelectByX, 'interaction.elementSelectByColor': ElementSelectByColor, 'interaction.fisheye': ChartFisheye, 'interaction.chartIndex': ChartIndex, 'interaction.tooltip': Tooltip,
30
+ 'transform.maybeZeroY1': MaybeZeroY1, 'transform.maybeZeroX': MaybeZeroX, 'transform.maybeStackY': MaybeStackY, 'transform.maybeTitle': MaybeTitle, 'transform.maybeSeries': MaybeSeries, 'transform.maybeZeroPadding': MaybeZeroPadding, 'transform.stackY': StackY, 'transform.binX': BinX, 'transform.bin': Bin, 'transform.dodgeX': DodgeX, 'transform.jitter': Jitter, 'transform.jitterX': JitterX, 'transform.symmetryY': SymmetryY, 'transform.diffY': DiffY, 'transform.stackEnter': StackEnter, 'transform.normalizeY': NormalizeY, 'transform.select': Select, 'transform.selectX': SelectX, 'transform.selectY': SelectY, 'transform.groupX': GroupX, 'transform.groupY': GroupY, 'transform.groupColor': GroupColor, 'transform.group': Group, 'transform.maybeSize': MaybeSize, 'transform.maybeZeroY': MaybeZeroY, 'transform.maybeKey': MaybeKey, 'transform.sortX': SortX, 'transform.sortY': SortY, 'transform.sortColor': SortColor, 'transform.flexX': FlexX, 'transform.maybeTupleY': MaybeTupleY, 'transform.maybeTupleX': MaybeTupleX, 'transform.maybeIdentityY': MaybeIdentityY, 'transform.maybeIdentityX': MaybeIdentityX, 'transform.maybeTuple': MaybeTuple, 'transform.maybeVisualPosition': MaybeVisualPosition, 'transform.maybeFunctionAttribute': MaybeFunctionAttribute, 'transform.maybeGradient': MaybeGradient, 'transform.maybeTooltip': MaybeTooltip, 'transform.pack': Pack, 'transform.sample': Sample, 'transform.filter': Filter, 'coordinate.cartesian': Cartesian, 'coordinate.polar': Polar, 'coordinate.helix': Helix, 'coordinate.transpose': Transpose, 'coordinate.theta': Theta, 'coordinate.parallel': Parallel, 'coordinate.fisheye': Fisheye, 'coordinate.radial': Radial, 'coordinate.radar': Radar, 'encode.constant': Constant, 'encode.field': Field, 'encode.transform': Transform, 'encode.column': Column, 'mark.interval': Interval, 'mark.rect': Rect, 'mark.line': Line, 'mark.point': PointGeometry, 'mark.text': TextGeometry, 'mark.cell': Cell, 'mark.area': AreaGeometry, 'mark.link': LinkGeometry, 'mark.image': ImageGeometry, 'mark.polygon': PolygonGeometry, 'mark.box': BoxGeometry, 'mark.vector': VectorGeometry, 'mark.lineX': LineX, 'mark.lineY': LineY, 'mark.connector': Connector, 'mark.range': Range, 'mark.rangeX': RangeX, 'mark.rangeY': RangeY, 'mark.sankey': Sankey, 'mark.path': Path, 'mark.treemap': Treemap, 'mark.pack': PackGeometry, 'mark.boxplot': Boxplot, 'mark.shape': Shape, 'mark.forceGraph': ForceGraph, 'mark.tree': TreeGeometry, 'mark.wordCloud': WordCloudGeometry, 'palette.category10': Category10, 'palette.category20': Category20, 'palette.sequentialBlue': SequentialBlue, 'palette.sequentialDarkBlue': SequentialDarkBlue, 'palette.sequentialGreen': SequentialGreen, 'palette.sequentialDarkGreen': SequentialDarkGreen, 'palette.sequentialGrey': SequentialGrey, 'palette.sequentialOrange': SequentialOrange, 'palette.sequentialPink': SequentialPink, 'palette.sequentialRed': SequentialRed, 'palette.sequentialYellow': SequentialYellow, 'palette.sequentialPurple': SequentialPurple, 'palette.sequentialYellowOrange': SequentialYellowOrange, 'palette.sequentialYellowGreen': SequentialYellowGreen, 'palette.sequentialPinkPurple': SequentialPinkPurple, 'palette.sequentialGreenBlue': SequentialGreenBlue, 'palette.divergingGreenYellow': DivergingGreenYellow, 'palette.divergingRedBlue': DivergingRedBlue, 'palette.divergingGreenRed': DivergingGreenRed, 'palette.divergingRedPurple': DivergingRedPurple, 'scale.linear': Linear, 'scale.ordinal': Ordinal, 'scale.band': Band, 'scale.identity': Identity, 'scale.point': Point, 'scale.time': Time, 'scale.log': Log, 'scale.pow': Pow, 'scale.sqrt': Sqrt, 'scale.threshold': Threshold, 'scale.quantile': Quantile, 'scale.quantize': Quantize, 'scale.sequential': Sequential, 'scale.constant': ConstantScale, 'shape.interval.rect': RectShape, 'shape.interval.hollow': HollowRect, 'shape.interval.funnel': Funnel, 'shape.interval.pyramid': Pyramid, 'shape.rect.rect': RectShape, 'shape.rect.hollow': HollowRect, 'shape.cell.cell': RectShape, 'shape.cell.hollow': HollowRect, 'shape.line.line': LineShape, 'shape.line.hv': HV, 'shape.line.vh': VH, 'shape.line.hvh': HVH, 'shape.line.smooth': Smooth, 'shape.point.bowtie': Bowtie, 'shape.point.cross': Cross, 'shape.point.diamond': Diamond, 'shape.point.hexagon': Hexagon, 'shape.point.hollowBowtie': HollowBowtie, 'shape.point.hollowDiamond': HollowDiamond, 'shape.point.hollowHexagon': HollowHexagon, 'shape.point.hollow': HollowPoint, 'shape.point.hollowSquare': HollowSquare, 'shape.point.hollowTriangle': HollowTriangle, 'shape.point.hollowTriangleDown': HollowTriangleDown, 'shape.point.hyphen': Hyphen, 'shape.point.line': LinePoint, 'shape.point.plus': Plus, 'shape.point.point': PointShape, 'shape.point.square': Square, 'shape.point.tick': Tick, 'shape.point.triangle': Triangle, 'shape.point.triangleDown': TriangleDown, 'shape.text.text': Text, 'shape.area.area': Area, 'shape.area.smooth': SmoothArea, 'shape.area.hvh': HVHArea, 'shape.area.vh': VHArea, 'shape.area.hv': HVArea, 'shape.link.smooth': SmoothEdge, 'shape.link.vhv': VHVEdge, 'shape.link.arc': Arc, 'shape.link.link': Link, 'shape.image.image': Image, 'shape.polygon.polygon': Polygon, 'shape.polygon.ribbon': Ribbon, 'shape.box.box': Box, 'shape.vector.vector': Vector, 'shape.label.label': Label, 'shape.text.badge': Badge, 'shape.lineX.line': LineXY, 'shape.lineY.line': LineXY, 'shape.shape.shape': CustomShape, 'shape.connector.connector': ConnectorShape, 'shape.range.range': RectShape, 'shape.rangeX.range': RectShape, 'shape.rangeY.range': RectShape, 'shape.path.path': PathShape, 'shape.path.hollow': HollowPath, 'theme.light': Light, 'theme.dark': Dark, 'theme.academy': Academy, 'component.axisX': AxisX, 'component.axisY': AxisY, 'component.axisRadar': AxisRadar, 'component.axisLinear': AxisLinear, 'component.axisArc': AxisArc, 'component.legendCategory': LegendCategory, 'component.legendContinuous': LegendContinuous, 'component.legendContinuousBlock': LegendContinuousBlock, 'component.legendContinuousBlockSize': LegendContinuousBlockSize, 'component.legendContinuousSize': LegendContinuousSize, 'component.title': TitleComponent, 'component.sliderX': SliderX, 'component.sliderY': SliderY, 'component.scrollbarX': ScrollbarX, 'component.scrollbarY': ScrollbarY, 'animation.scaleInX': ScaleInX, 'animation.scaleOutX': ScaleOutX, 'animation.scaleInY': ScaleInY, 'animation.scaleOutY': ScaleOutY, 'animation.waveIn': WaveIn, 'animation.fadeIn': FadeIn, 'animation.fadeOut': FadeOut, 'animation.zoomIn': ZoomIn, 'animation.zoomOut': ZoomOut, 'animation.pathIn': PathIn, 'animation.morphing': Morphing, 'animation.growInX': GrowInX, 'animation.growInY': GrowInY, 'interaction.elementHighlight': ElementHighlight, 'interaction.elementHighlightByX': ElementHighlightByX, 'interaction.elementHighlightByColor': ElementHighlightByColor, 'interaction.elementSelect': ElementSelect, 'interaction.elementSelectByX': ElementSelectByX, 'interaction.elementSelectByColor': ElementSelectByColor, 'interaction.fisheye': ChartFisheye, 'interaction.chartIndex': ChartIndex, 'interaction.tooltip': Tooltip, 'interaction.legendFilter': LegendFilter, 'interaction.legendHighlight': LegendHighlight, 'interaction.brushHighlight': BrushHighlight, 'interaction.brushXHighlight': BrushXHighlight, 'interaction.brushYHighlight': BrushYHighlight, 'interaction.brushAxisHighlight': BrushAxisHighlight, 'interaction.brushFilter': BrushFilter, 'interaction.brushXFilter': BrushXFilter, 'interaction.brushYFilter': BrushYFilter, 'interaction.sliderFilter': SliderFilter, 'interaction.poptip': Poptip,
36
31
  // 'interaction.elementSelected': ElementSelected,
37
32
  // 'interaction.elementHighlight': ElementHighlight,
38
33
  // 'interaction.elementHighlightByX': ElementHighlightByX,
@@ -43,10 +38,9 @@ export function createLibrary() {
43
38
  // 'interaction.tooltip': Tooltip,
44
39
  // 'interaction.fisheye': FisheyeInteraction,
45
40
  // 'interaction.brush': Brush,
46
- // 'interaction.brushHighlight': BrushHighlight,
47
41
  // 'interaction.brushVisible': BrushVisible,
48
42
  // 'interaction.activeRegion': ActiveRegion,
49
43
  // 'interaction.ellipsisText': EllipsisText,
50
- 'composition.spaceLayer': SpaceLayer, 'composition.spaceFlex': SpaceFlex, 'composition.mark': Mark, 'composition.view': View, 'composition.facetRect': FacetRect, 'composition.repeatMatrix': RepeatMatrix, 'composition.facetCircle': FacetCircle, 'composition.timingKeyframe': TimingKeyframe, 'labelTransform.hideOverlap': HideOverlap, 'labelTransform.dodgeY': DodgeY, 'labelTransform.spider': Spider, 'labelTransform.surround': Surround }, geoLibrary);
44
+ 'composition.spaceLayer': SpaceLayer, 'composition.spaceFlex': SpaceFlex, 'composition.mark': Mark, 'composition.view': View, 'composition.facetRect': FacetRect, 'composition.repeatMatrix': RepeatMatrix, 'composition.facetCircle': FacetCircle, 'composition.timingKeyframe': TimingKeyframe, 'labelTransform.overlapHide': OverlapHide, 'labelTransform.overlapDodgeY': OverlapDodgeY, 'labelTransform.overflowHide': OverflowHide, 'labelTransform.contrastReverse': ContrastReverse }, geoLibrary);
51
45
  }
52
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAA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,qCAAqC,EAAE,uBAAuB,EAC9D,2BAA2B,EAAE,aAAa,EAC1C,8BAA8B,EAAE,gBAAgB,EAChD,kCAAkC,EAAE,oBAAoB,EACxD,qBAAqB,EAAE,YAAY,EACnC,wBAAwB,EAAE,UAAU,EACpC,qBAAqB,EAAE,OAAO,EAC9B,0BAA0B,EAAE,YAAY,EACxC,6BAA6B,EAAE,eAAe,EAC9C,4BAA4B,EAAE,cAAc,EAC5C,6BAA6B,EAAE,eAAe,EAC9C,6BAA6B,EAAE,eAAe,EAC9C,gCAAgC,EAAE,kBAAkB,EACpD,yBAAyB,EAAE,WAAW,EACtC,0BAA0B,EAAE,YAAY,EACxC,0BAA0B,EAAE,YAAY,EACxC,0BAA0B,EAAE,YAAY,EACxC,oBAAoB,EAAE,MAAM;QAC5B,kDAAkD;QAClD,oDAAoD;QACpD,0DAA0D;QAC1D,kEAAkE;QAClE,4DAA4D;QAC5D,4CAA4C;QAC5C,kDAAkD;QAClD,kCAAkC;QAClC,6CAA6C;QAC7C,8BAA8B;QAE9B,4CAA4C;QAC5C,4CAA4C;QAC5C,4CAA4C;QAC5C,wBAAwB,EAAE,UAAU,EACpC,uBAAuB,EAAE,SAAS,EAClC,kBAAkB,EAAE,IAAI,EACxB,kBAAkB,EAAE,IAAI,EACxB,uBAAuB,EAAE,SAAS,EAClC,0BAA0B,EAAE,YAAY,EACxC,yBAAyB,EAAE,WAAW,EACtC,4BAA4B,EAAE,cAAc,EAC5C,4BAA4B,EAAE,WAAW,EACzC,8BAA8B,EAAE,aAAa,EAC7C,6BAA6B,EAAE,YAAY,EAC3C,gCAAgC,EAAE,eAAe,IAC9C,UAAU,EACb;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ThemeComponent as TC, Theme } from '../runtime';
2
+ export type AcademyOptions = Theme;
3
+ export declare const Academy: TC<AcademyOptions>;