@antv/g2 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2514) hide show
  1. package/package.json +12 -13
  2. package/src/interaction/tooltip.ts +15 -79
  3. package/src/mark/treemap.ts +1 -0
  4. package/src/transform/utils/helper.ts +0 -1
  5. package/dist/g2.lite.min.js +0 -59
  6. package/dist/g2.min.js +0 -59
  7. package/esm/animation/fadeIn.d.ts +0 -7
  8. package/esm/animation/fadeIn.js +0 -20
  9. package/esm/animation/fadeIn.js.map +0 -1
  10. package/esm/animation/fadeOut.d.ts +0 -7
  11. package/esm/animation/fadeOut.js +0 -20
  12. package/esm/animation/fadeOut.js.map +0 -1
  13. package/esm/animation/growInX.d.ts +0 -7
  14. package/esm/animation/growInX.js +0 -24
  15. package/esm/animation/growInX.js.map +0 -1
  16. package/esm/animation/growInY.d.ts +0 -7
  17. package/esm/animation/growInY.js +0 -24
  18. package/esm/animation/growInY.js.map +0 -1
  19. package/esm/animation/index.d.ts +0 -24
  20. package/esm/animation/index.js +0 -14
  21. package/esm/animation/index.js.map +0 -1
  22. package/esm/animation/morphing.d.ts +0 -13
  23. package/esm/animation/morphing.js +0 -235
  24. package/esm/animation/morphing.js.map +0 -1
  25. package/esm/animation/pathIn.d.ts +0 -7
  26. package/esm/animation/pathIn.js +0 -17
  27. package/esm/animation/pathIn.js.map +0 -1
  28. package/esm/animation/scaleInX.d.ts +0 -7
  29. package/esm/animation/scaleInX.js +0 -46
  30. package/esm/animation/scaleInX.js.map +0 -1
  31. package/esm/animation/scaleInY.d.ts +0 -7
  32. package/esm/animation/scaleInY.js +0 -95
  33. package/esm/animation/scaleInY.js.map +0 -1
  34. package/esm/animation/scaleOutX.d.ts +0 -7
  35. package/esm/animation/scaleOutX.js +0 -43
  36. package/esm/animation/scaleOutX.js.map +0 -1
  37. package/esm/animation/scaleOutY.d.ts +0 -7
  38. package/esm/animation/scaleOutY.js +0 -43
  39. package/esm/animation/scaleOutY.js.map +0 -1
  40. package/esm/animation/types.d.ts +0 -6
  41. package/esm/animation/types.js +0 -2
  42. package/esm/animation/types.js.map +0 -1
  43. package/esm/animation/utils.d.ts +0 -12
  44. package/esm/animation/utils.js +0 -47
  45. package/esm/animation/utils.js.map +0 -1
  46. package/esm/animation/waveIn.d.ts +0 -7
  47. package/esm/animation/waveIn.js +0 -66
  48. package/esm/animation/waveIn.js.map +0 -1
  49. package/esm/animation/zoomIn.d.ts +0 -4
  50. package/esm/animation/zoomIn.js +0 -37
  51. package/esm/animation/zoomIn.js.map +0 -1
  52. package/esm/animation/zoomOut.d.ts +0 -4
  53. package/esm/animation/zoomOut.js +0 -31
  54. package/esm/animation/zoomOut.js.map +0 -1
  55. package/esm/api/chart.d.ts +0 -13
  56. package/esm/api/chart.js +0 -5
  57. package/esm/api/chart.js.map +0 -1
  58. package/esm/api/composition.d.ts +0 -37
  59. package/esm/api/composition.js +0 -87
  60. package/esm/api/composition.js.map +0 -1
  61. package/esm/api/define.d.ts +0 -14
  62. package/esm/api/define.js +0 -92
  63. package/esm/api/define.js.map +0 -1
  64. package/esm/api/extend.d.ts +0 -15
  65. package/esm/api/extend.js +0 -9
  66. package/esm/api/extend.js.map +0 -1
  67. package/esm/api/index.d.ts +0 -4
  68. package/esm/api/index.js +0 -5
  69. package/esm/api/index.js.map +0 -1
  70. package/esm/api/library.d.ts +0 -4
  71. package/esm/api/library.js +0 -10
  72. package/esm/api/library.js.map +0 -1
  73. package/esm/api/mark.d.ts +0 -29
  74. package/esm/api/mark.js +0 -66
  75. package/esm/api/mark.js.map +0 -1
  76. package/esm/api/node.d.ts +0 -40
  77. package/esm/api/node.js +0 -121
  78. package/esm/api/node.js.map +0 -1
  79. package/esm/api/props.d.ts +0 -171
  80. package/esm/api/props.js +0 -22
  81. package/esm/api/props.js.map +0 -1
  82. package/esm/api/runtime.d.ts +0 -67
  83. package/esm/api/runtime.js +0 -306
  84. package/esm/api/runtime.js.map +0 -1
  85. package/esm/api/types.d.ts +0 -65
  86. package/esm/api/types.js +0 -2
  87. package/esm/api/types.js.map +0 -1
  88. package/esm/api/utils.d.ts +0 -25
  89. package/esm/api/utils.js +0 -252
  90. package/esm/api/utils.js.map +0 -1
  91. package/esm/component/axis.d.ts +0 -29
  92. package/esm/component/axis.js +0 -404
  93. package/esm/component/axis.js.map +0 -1
  94. package/esm/component/axisArc.d.ts +0 -7
  95. package/esm/component/axisArc.js +0 -9
  96. package/esm/component/axisArc.js.map +0 -1
  97. package/esm/component/axisRadar.d.ts +0 -9
  98. package/esm/component/axisRadar.js +0 -47
  99. package/esm/component/axisRadar.js.map +0 -1
  100. package/esm/component/axisX.d.ts +0 -8
  101. package/esm/component/axisX.js +0 -15
  102. package/esm/component/axisX.js.map +0 -1
  103. package/esm/component/axisY.d.ts +0 -7
  104. package/esm/component/axisY.js +0 -13
  105. package/esm/component/axisY.js.map +0 -1
  106. package/esm/component/constant.d.ts +0 -14
  107. package/esm/component/constant.js +0 -241
  108. package/esm/component/constant.js.map +0 -1
  109. package/esm/component/index.d.ts +0 -26
  110. package/esm/component/index.js +0 -16
  111. package/esm/component/index.js.map +0 -1
  112. package/esm/component/legendCategory.d.ts +0 -15
  113. package/esm/component/legendCategory.js +0 -175
  114. package/esm/component/legendCategory.js.map +0 -1
  115. package/esm/component/legendContinuous.d.ts +0 -12
  116. package/esm/component/legendContinuous.js +0 -147
  117. package/esm/component/legendContinuous.js.map +0 -1
  118. package/esm/component/legendContinuousBlock.d.ts +0 -4
  119. package/esm/component/legendContinuousBlock.js +0 -6
  120. package/esm/component/legendContinuousBlock.js.map +0 -1
  121. package/esm/component/legendContinuousBlockSize.d.ts +0 -4
  122. package/esm/component/legendContinuousBlockSize.js +0 -7
  123. package/esm/component/legendContinuousBlockSize.js.map +0 -1
  124. package/esm/component/legendContinuousSize.d.ts +0 -4
  125. package/esm/component/legendContinuousSize.js +0 -17
  126. package/esm/component/legendContinuousSize.js.map +0 -1
  127. package/esm/component/legends.d.ts +0 -3
  128. package/esm/component/legends.js +0 -9
  129. package/esm/component/legends.js.map +0 -1
  130. package/esm/component/scrollbar.d.ts +0 -10
  131. package/esm/component/scrollbar.js +0 -41
  132. package/esm/component/scrollbar.js.map +0 -1
  133. package/esm/component/scrollbarX.d.ts +0 -7
  134. package/esm/component/scrollbarX.js +0 -9
  135. package/esm/component/scrollbarX.js.map +0 -1
  136. package/esm/component/scrollbarY.d.ts +0 -7
  137. package/esm/component/scrollbarY.js +0 -9
  138. package/esm/component/scrollbarY.js.map +0 -1
  139. package/esm/component/slider.d.ts +0 -13
  140. package/esm/component/slider.js +0 -95
  141. package/esm/component/slider.js.map +0 -1
  142. package/esm/component/sliderX.d.ts +0 -7
  143. package/esm/component/sliderX.js +0 -9
  144. package/esm/component/sliderX.js.map +0 -1
  145. package/esm/component/sliderY.d.ts +0 -7
  146. package/esm/component/sliderY.js +0 -9
  147. package/esm/component/sliderY.js.map +0 -1
  148. package/esm/component/title.d.ts +0 -6
  149. package/esm/component/title.js +0 -79
  150. package/esm/component/title.js.map +0 -1
  151. package/esm/component/utils.d.ts +0 -36
  152. package/esm/component/utils.js +0 -147
  153. package/esm/component/utils.js.map +0 -1
  154. package/esm/composition/d3Projection.d.ts +0 -1
  155. package/esm/composition/d3Projection.js +0 -2
  156. package/esm/composition/d3Projection.js.map +0 -1
  157. package/esm/composition/facetCircle.d.ts +0 -7
  158. package/esm/composition/facetCircle.js +0 -85
  159. package/esm/composition/facetCircle.js.map +0 -1
  160. package/esm/composition/facetRect.d.ts +0 -31
  161. package/esm/composition/facetRect.js +0 -296
  162. package/esm/composition/facetRect.js.map +0 -1
  163. package/esm/composition/geoPath.d.ts +0 -7
  164. package/esm/composition/geoPath.js +0 -37
  165. package/esm/composition/geoPath.js.map +0 -1
  166. package/esm/composition/geoView.d.ts +0 -7
  167. package/esm/composition/geoView.js +0 -219
  168. package/esm/composition/geoView.js.map +0 -1
  169. package/esm/composition/index.d.ts +0 -18
  170. package/esm/composition/index.js +0 -11
  171. package/esm/composition/index.js.map +0 -1
  172. package/esm/composition/mark.d.ts +0 -4
  173. package/esm/composition/mark.js +0 -51
  174. package/esm/composition/mark.js.map +0 -1
  175. package/esm/composition/repeatMatrix.d.ts +0 -8
  176. package/esm/composition/repeatMatrix.js +0 -152
  177. package/esm/composition/repeatMatrix.js.map +0 -1
  178. package/esm/composition/spaceFlex.d.ts +0 -7
  179. package/esm/composition/spaceFlex.js +0 -40
  180. package/esm/composition/spaceFlex.js.map +0 -1
  181. package/esm/composition/spaceLayer.d.ts +0 -7
  182. package/esm/composition/spaceLayer.js +0 -29
  183. package/esm/composition/spaceLayer.js.map +0 -1
  184. package/esm/composition/timingKeyframe.d.ts +0 -7
  185. package/esm/composition/timingKeyframe.js +0 -80
  186. package/esm/composition/timingKeyframe.js.map +0 -1
  187. package/esm/composition/utils.d.ts +0 -18
  188. package/esm/composition/utils.js +0 -41
  189. package/esm/composition/utils.js.map +0 -1
  190. package/esm/composition/view.d.ts +0 -9
  191. package/esm/composition/view.js +0 -33
  192. package/esm/composition/view.js.map +0 -1
  193. package/esm/coordinate/cartesian.d.ts +0 -7
  194. package/esm/coordinate/cartesian.js +0 -6
  195. package/esm/coordinate/cartesian.js.map +0 -1
  196. package/esm/coordinate/fisheye.d.ts +0 -7
  197. package/esm/coordinate/fisheye.js +0 -6
  198. package/esm/coordinate/fisheye.js.map +0 -1
  199. package/esm/coordinate/helix.d.ts +0 -7
  200. package/esm/coordinate/helix.js +0 -11
  201. package/esm/coordinate/helix.js.map +0 -1
  202. package/esm/coordinate/index.d.ts +0 -18
  203. package/esm/coordinate/index.js +0 -10
  204. package/esm/coordinate/index.js.map +0 -1
  205. package/esm/coordinate/parallel.d.ts +0 -7
  206. package/esm/coordinate/parallel.js +0 -6
  207. package/esm/coordinate/parallel.js.map +0 -1
  208. package/esm/coordinate/polar.d.ts +0 -15
  209. package/esm/coordinate/polar.js +0 -26
  210. package/esm/coordinate/polar.js.map +0 -1
  211. package/esm/coordinate/radar.d.ts +0 -7
  212. package/esm/coordinate/radar.js +0 -14
  213. package/esm/coordinate/radar.js.map +0 -1
  214. package/esm/coordinate/radial.d.ts +0 -14
  215. package/esm/coordinate/radial.js +0 -25
  216. package/esm/coordinate/radial.js.map +0 -1
  217. package/esm/coordinate/theta.d.ts +0 -15
  218. package/esm/coordinate/theta.js +0 -23
  219. package/esm/coordinate/theta.js.map +0 -1
  220. package/esm/coordinate/transpose.d.ts +0 -7
  221. package/esm/coordinate/transpose.js +0 -11
  222. package/esm/coordinate/transpose.js.map +0 -1
  223. package/esm/data/arc.d.ts +0 -6
  224. package/esm/data/arc.js +0 -11
  225. package/esm/data/arc.js.map +0 -1
  226. package/esm/data/cluster.d.ts +0 -7
  227. package/esm/data/cluster.js +0 -37
  228. package/esm/data/cluster.js.map +0 -1
  229. package/esm/data/custom.d.ts +0 -7
  230. package/esm/data/custom.js +0 -10
  231. package/esm/data/custom.js.map +0 -1
  232. package/esm/data/ema.d.ts +0 -10
  233. package/esm/data/ema.js +0 -44
  234. package/esm/data/ema.js.map +0 -1
  235. package/esm/data/fetch.d.ts +0 -4
  236. package/esm/data/fetch.js +0 -28
  237. package/esm/data/fetch.js.map +0 -1
  238. package/esm/data/filter.d.ts +0 -9
  239. package/esm/data/filter.js +0 -13
  240. package/esm/data/filter.js.map +0 -1
  241. package/esm/data/fold.d.ts +0 -10
  242. package/esm/data/fold.js +0 -18
  243. package/esm/data/fold.js.map +0 -1
  244. package/esm/data/index.d.ts +0 -42
  245. package/esm/data/index.js +0 -22
  246. package/esm/data/index.js.map +0 -1
  247. package/esm/data/inline.d.ts +0 -4
  248. package/esm/data/inline.js +0 -6
  249. package/esm/data/inline.js.map +0 -1
  250. package/esm/data/join.d.ts +0 -7
  251. package/esm/data/join.js +0 -22
  252. package/esm/data/join.js.map +0 -1
  253. package/esm/data/kde.d.ts +0 -10
  254. package/esm/data/kde.js +0 -30
  255. package/esm/data/kde.js.map +0 -1
  256. package/esm/data/log.d.ts +0 -7
  257. package/esm/data/log.js +0 -11
  258. package/esm/data/log.js.map +0 -1
  259. package/esm/data/map.d.ts +0 -7
  260. package/esm/data/map.js +0 -10
  261. package/esm/data/map.js.map +0 -1
  262. package/esm/data/pick.d.ts +0 -7
  263. package/esm/data/pick.js +0 -18
  264. package/esm/data/pick.js.map +0 -1
  265. package/esm/data/rename.d.ts +0 -8
  266. package/esm/data/rename.js +0 -16
  267. package/esm/data/rename.js.map +0 -1
  268. package/esm/data/sankey.d.ts +0 -7
  269. package/esm/data/sankey.js +0 -77
  270. package/esm/data/sankey.js.map +0 -1
  271. package/esm/data/slice.d.ts +0 -8
  272. package/esm/data/slice.js +0 -10
  273. package/esm/data/slice.js.map +0 -1
  274. package/esm/data/sort.d.ts +0 -8
  275. package/esm/data/sort.js +0 -12
  276. package/esm/data/sort.js.map +0 -1
  277. package/esm/data/sortBy.d.ts +0 -7
  278. package/esm/data/sortBy.js +0 -24
  279. package/esm/data/sortBy.js.map +0 -1
  280. package/esm/data/tree.d.ts +0 -3
  281. package/esm/data/tree.js +0 -7
  282. package/esm/data/tree.js.map +0 -1
  283. package/esm/data/utils/arc/arc.d.ts +0 -31
  284. package/esm/data/utils/arc/arc.js +0 -161
  285. package/esm/data/utils/arc/arc.js.map +0 -1
  286. package/esm/data/utils/arc/index.d.ts +0 -2
  287. package/esm/data/utils/arc/index.js +0 -2
  288. package/esm/data/utils/arc/index.js.map +0 -1
  289. package/esm/data/utils/arc/sort.d.ts +0 -4
  290. package/esm/data/utils/arc/sort.js +0 -13
  291. package/esm/data/utils/arc/sort.js.map +0 -1
  292. package/esm/data/utils/arc/types.d.ts +0 -51
  293. package/esm/data/utils/arc/types.js +0 -2
  294. package/esm/data/utils/arc/types.js.map +0 -1
  295. package/esm/data/utils/d3-cloud/index.d.ts +0 -1
  296. package/esm/data/utils/d3-cloud/index.js +0 -398
  297. package/esm/data/utils/d3-cloud/index.js.map +0 -1
  298. package/esm/data/utils/d3-sankey/align.d.ts +0 -4
  299. package/esm/data/utils/d3-sankey/align.js +0 -21
  300. package/esm/data/utils/d3-sankey/align.js.map +0 -1
  301. package/esm/data/utils/d3-sankey/constant.d.ts +0 -1
  302. package/esm/data/utils/d3-sankey/constant.js +0 -6
  303. package/esm/data/utils/d3-sankey/constant.js.map +0 -1
  304. package/esm/data/utils/d3-sankey/index.d.ts +0 -12
  305. package/esm/data/utils/d3-sankey/index.js +0 -13
  306. package/esm/data/utils/d3-sankey/index.js.map +0 -1
  307. package/esm/data/utils/d3-sankey/sankey.d.ts +0 -24
  308. package/esm/data/utils/d3-sankey/sankey.js +0 -388
  309. package/esm/data/utils/d3-sankey/sankey.js.map +0 -1
  310. package/esm/data/utils/fields.d.ts +0 -6
  311. package/esm/data/utils/fields.js +0 -15
  312. package/esm/data/utils/fields.js.map +0 -1
  313. package/esm/data/utils/flow.d.ts +0 -9
  314. package/esm/data/utils/flow.js +0 -45
  315. package/esm/data/utils/flow.js.map +0 -1
  316. package/esm/data/utils/memo.d.ts +0 -17
  317. package/esm/data/utils/memo.js +0 -79
  318. package/esm/data/utils/memo.js.map +0 -1
  319. package/esm/data/utils/venn/circleintersection.d.ts +0 -33
  320. package/esm/data/utils/venn/circleintersection.js +0 -192
  321. package/esm/data/utils/venn/circleintersection.js.map +0 -1
  322. package/esm/data/utils/venn/diagram.d.ts +0 -2
  323. package/esm/data/utils/venn/diagram.js +0 -44
  324. package/esm/data/utils/venn/diagram.js.map +0 -1
  325. package/esm/data/utils/venn/index.d.ts +0 -5
  326. package/esm/data/utils/venn/index.js +0 -6
  327. package/esm/data/utils/venn/index.js.map +0 -1
  328. package/esm/data/utils/venn/layout.d.ts +0 -27
  329. package/esm/data/utils/venn/layout.js +0 -607
  330. package/esm/data/utils/venn/layout.js.map +0 -1
  331. package/esm/data/venn.d.ts +0 -7
  332. package/esm/data/venn.js +0 -34
  333. package/esm/data/venn.js.map +0 -1
  334. package/esm/data/wordCloud.d.ts +0 -110
  335. package/esm/data/wordCloud.js +0 -121
  336. package/esm/data/wordCloud.js.map +0 -1
  337. package/esm/encode/column.d.ts +0 -7
  338. package/esm/encode/column.js +0 -8
  339. package/esm/encode/column.js.map +0 -1
  340. package/esm/encode/constant.d.ts +0 -7
  341. package/esm/encode/constant.js +0 -8
  342. package/esm/encode/constant.js.map +0 -1
  343. package/esm/encode/field.d.ts +0 -7
  344. package/esm/encode/field.js +0 -8
  345. package/esm/encode/field.js.map +0 -1
  346. package/esm/encode/index.d.ts +0 -8
  347. package/esm/encode/index.js +0 -5
  348. package/esm/encode/index.js.map +0 -1
  349. package/esm/encode/transform.d.ts +0 -9
  350. package/esm/encode/transform.js +0 -10
  351. package/esm/encode/transform.js.map +0 -1
  352. package/esm/exports.d.ts +0 -12
  353. package/esm/exports.js +0 -11
  354. package/esm/exports.js.map +0 -1
  355. package/esm/index.d.ts +0 -356
  356. package/esm/index.js +0 -10
  357. package/esm/index.js.map +0 -1
  358. package/esm/interaction/brushAxisHighlight.d.ts +0 -29
  359. package/esm/interaction/brushAxisHighlight.js +0 -281
  360. package/esm/interaction/brushAxisHighlight.js.map +0 -1
  361. package/esm/interaction/brushFilter.d.ts +0 -18
  362. package/esm/interaction/brushFilter.js +0 -142
  363. package/esm/interaction/brushFilter.js.map +0 -1
  364. package/esm/interaction/brushHighlight.d.ts +0 -48
  365. package/esm/interaction/brushHighlight.js +0 -586
  366. package/esm/interaction/brushHighlight.js.map +0 -1
  367. package/esm/interaction/brushXFilter.d.ts +0 -1
  368. package/esm/interaction/brushXFilter.js +0 -6
  369. package/esm/interaction/brushXFilter.js.map +0 -1
  370. package/esm/interaction/brushXHighlight.d.ts +0 -7
  371. package/esm/interaction/brushXHighlight.js +0 -9
  372. package/esm/interaction/brushXHighlight.js.map +0 -1
  373. package/esm/interaction/brushYFilter.d.ts +0 -1
  374. package/esm/interaction/brushYFilter.js +0 -6
  375. package/esm/interaction/brushYFilter.js.map +0 -1
  376. package/esm/interaction/brushYHighlight.d.ts +0 -7
  377. package/esm/interaction/brushYHighlight.js +0 -9
  378. package/esm/interaction/brushYHighlight.js.map +0 -1
  379. package/esm/interaction/chartIndex.d.ts +0 -9
  380. package/esm/interaction/chartIndex.js +0 -178
  381. package/esm/interaction/chartIndex.js.map +0 -1
  382. package/esm/interaction/elementHighlight.d.ts +0 -23
  383. package/esm/interaction/elementHighlight.js +0 -169
  384. package/esm/interaction/elementHighlight.js.map +0 -1
  385. package/esm/interaction/elementHighlightByColor.d.ts +0 -6
  386. package/esm/interaction/elementHighlightByColor.js +0 -9
  387. package/esm/interaction/elementHighlightByColor.js.map +0 -1
  388. package/esm/interaction/elementHighlightByX.d.ts +0 -6
  389. package/esm/interaction/elementHighlightByX.js +0 -9
  390. package/esm/interaction/elementHighlightByX.js.map +0 -1
  391. package/esm/interaction/elementPointMove.d.ts +0 -9
  392. package/esm/interaction/elementPointMove.js +0 -506
  393. package/esm/interaction/elementPointMove.js.map +0 -1
  394. package/esm/interaction/elementSelect.d.ts +0 -24
  395. package/esm/interaction/elementSelect.js +0 -234
  396. package/esm/interaction/elementSelect.js.map +0 -1
  397. package/esm/interaction/elementSelectByColor.d.ts +0 -6
  398. package/esm/interaction/elementSelectByColor.js +0 -9
  399. package/esm/interaction/elementSelectByColor.js.map +0 -1
  400. package/esm/interaction/elementSelectByX.d.ts +0 -6
  401. package/esm/interaction/elementSelectByX.js +0 -9
  402. package/esm/interaction/elementSelectByX.js.map +0 -1
  403. package/esm/interaction/event.d.ts +0 -6
  404. package/esm/interaction/event.js +0 -129
  405. package/esm/interaction/event.js.map +0 -1
  406. package/esm/interaction/fisheye.d.ts +0 -4
  407. package/esm/interaction/fisheye.js +0 -57
  408. package/esm/interaction/fisheye.js.map +0 -1
  409. package/esm/interaction/index.d.ts +0 -24
  410. package/esm/interaction/index.js +0 -25
  411. package/esm/interaction/index.js.map +0 -1
  412. package/esm/interaction/legendFilter.d.ts +0 -14
  413. package/esm/interaction/legendFilter.js +0 -292
  414. package/esm/interaction/legendFilter.js.map +0 -1
  415. package/esm/interaction/legendHighlight.d.ts +0 -1
  416. package/esm/interaction/legendHighlight.js +0 -125
  417. package/esm/interaction/legendHighlight.js.map +0 -1
  418. package/esm/interaction/poptip.d.ts +0 -10
  419. package/esm/interaction/poptip.js +0 -94
  420. package/esm/interaction/poptip.js.map +0 -1
  421. package/esm/interaction/scrollbarFilter.d.ts +0 -2
  422. package/esm/interaction/scrollbarFilter.js +0 -27
  423. package/esm/interaction/scrollbarFilter.js.map +0 -1
  424. package/esm/interaction/sliderFilter.d.ts +0 -5
  425. package/esm/interaction/sliderFilter.js +0 -173
  426. package/esm/interaction/sliderFilter.js.map +0 -1
  427. package/esm/interaction/tooltip.d.ts +0 -16
  428. package/esm/interaction/tooltip.js +0 -909
  429. package/esm/interaction/tooltip.js.map +0 -1
  430. package/esm/interaction/treemapDrillDown.d.ts +0 -10
  431. package/esm/interaction/treemapDrillDown.js +0 -226
  432. package/esm/interaction/treemapDrillDown.js.map +0 -1
  433. package/esm/interaction/utils.d.ts +0 -68
  434. package/esm/interaction/utils.js +0 -478
  435. package/esm/interaction/utils.js.map +0 -1
  436. package/esm/label-transform/contrastReverse.d.ts +0 -9
  437. package/esm/label-transform/contrastReverse.js +0 -50
  438. package/esm/label-transform/contrastReverse.js.map +0 -1
  439. package/esm/label-transform/exceedAdjust.d.ts +0 -7
  440. package/esm/label-transform/exceedAdjust.js +0 -51
  441. package/esm/label-transform/exceedAdjust.js.map +0 -1
  442. package/esm/label-transform/index.d.ts +0 -10
  443. package/esm/label-transform/index.js +0 -6
  444. package/esm/label-transform/index.js.map +0 -1
  445. package/esm/label-transform/overflowHide.d.ts +0 -7
  446. package/esm/label-transform/overflowHide.js +0 -19
  447. package/esm/label-transform/overflowHide.js.map +0 -1
  448. package/esm/label-transform/overlapDodgeY.d.ts +0 -7
  449. package/esm/label-transform/overlapDodgeY.js +0 -75
  450. package/esm/label-transform/overlapDodgeY.js.map +0 -1
  451. package/esm/label-transform/overlapHide.d.ts +0 -7
  452. package/esm/label-transform/overlapHide.js +0 -25
  453. package/esm/label-transform/overlapHide.js.map +0 -1
  454. package/esm/lib/builtinlib.d.ts +0 -13
  455. package/esm/lib/builtinlib.js +0 -21
  456. package/esm/lib/builtinlib.js.map +0 -1
  457. package/esm/lib/core.d.ts +0 -158
  458. package/esm/lib/core.js +0 -173
  459. package/esm/lib/core.js.map +0 -1
  460. package/esm/lib/geo.d.ts +0 -4
  461. package/esm/lib/geo.js +0 -9
  462. package/esm/lib/geo.js.map +0 -1
  463. package/esm/lib/graph.d.ts +0 -10
  464. package/esm/lib/graph.js +0 -15
  465. package/esm/lib/graph.js.map +0 -1
  466. package/esm/lib/index.d.ts +0 -6
  467. package/esm/lib/index.js +0 -7
  468. package/esm/lib/index.js.map +0 -1
  469. package/esm/lib/lite.d.ts +0 -64
  470. package/esm/lib/lite.js +0 -78
  471. package/esm/lib/lite.js.map +0 -1
  472. package/esm/lib/plot.d.ts +0 -7
  473. package/esm/lib/plot.js +0 -12
  474. package/esm/lib/plot.js.map +0 -1
  475. package/esm/lib/std.d.ts +0 -171
  476. package/esm/lib/std.js +0 -8
  477. package/esm/lib/std.js.map +0 -1
  478. package/esm/mark/area.d.ts +0 -4
  479. package/esm/mark/area.js +0 -86
  480. package/esm/mark/area.js.map +0 -1
  481. package/esm/mark/box.d.ts +0 -34
  482. package/esm/mark/box.js +0 -96
  483. package/esm/mark/box.js.map +0 -1
  484. package/esm/mark/boxplot.d.ts +0 -4
  485. package/esm/mark/boxplot.js +0 -102
  486. package/esm/mark/boxplot.js.map +0 -1
  487. package/esm/mark/cell.d.ts +0 -9
  488. package/esm/mark/cell.js +0 -50
  489. package/esm/mark/cell.js.map +0 -1
  490. package/esm/mark/chord.d.ts +0 -4
  491. package/esm/mark/chord.js +0 -120
  492. package/esm/mark/chord.js.map +0 -1
  493. package/esm/mark/connector.d.ts +0 -4
  494. package/esm/mark/connector.js +0 -23
  495. package/esm/mark/connector.js.map +0 -1
  496. package/esm/mark/density.d.ts +0 -4
  497. package/esm/mark/density.js +0 -64
  498. package/esm/mark/density.js.map +0 -1
  499. package/esm/mark/forceGraph.d.ts +0 -4
  500. package/esm/mark/forceGraph.js +0 -115
  501. package/esm/mark/forceGraph.js.map +0 -1
  502. package/esm/mark/gauge.d.ts +0 -11
  503. package/esm/mark/gauge.js +0 -178
  504. package/esm/mark/gauge.js.map +0 -1
  505. package/esm/mark/heatmap.d.ts +0 -7
  506. package/esm/mark/heatmap.js +0 -41
  507. package/esm/mark/heatmap.js.map +0 -1
  508. package/esm/mark/image.d.ts +0 -4
  509. package/esm/mark/image.js +0 -40
  510. package/esm/mark/image.js.map +0 -1
  511. package/esm/mark/index.d.ts +0 -62
  512. package/esm/mark/index.js +0 -33
  513. package/esm/mark/index.js.map +0 -1
  514. package/esm/mark/interval.d.ts +0 -12
  515. package/esm/mark/interval.js +0 -77
  516. package/esm/mark/interval.js.map +0 -1
  517. package/esm/mark/line.d.ts +0 -7
  518. package/esm/mark/line.js +0 -96
  519. package/esm/mark/line.js.map +0 -1
  520. package/esm/mark/lineX.d.ts +0 -4
  521. package/esm/mark/lineX.js +0 -32
  522. package/esm/mark/lineX.js.map +0 -1
  523. package/esm/mark/lineY.d.ts +0 -4
  524. package/esm/mark/lineY.js +0 -32
  525. package/esm/mark/lineY.js.map +0 -1
  526. package/esm/mark/link.d.ts +0 -7
  527. package/esm/mark/link.js +0 -41
  528. package/esm/mark/link.js.map +0 -1
  529. package/esm/mark/liquid.d.ts +0 -7
  530. package/esm/mark/liquid.js +0 -84
  531. package/esm/mark/liquid.js.map +0 -1
  532. package/esm/mark/pack.d.ts +0 -4
  533. package/esm/mark/pack.js +0 -78
  534. package/esm/mark/pack.js.map +0 -1
  535. package/esm/mark/path.d.ts +0 -7
  536. package/esm/mark/path.js +0 -30
  537. package/esm/mark/path.js.map +0 -1
  538. package/esm/mark/point.d.ts +0 -9
  539. package/esm/mark/point.js +0 -84
  540. package/esm/mark/point.js.map +0 -1
  541. package/esm/mark/polygon.d.ts +0 -7
  542. package/esm/mark/polygon.js +0 -45
  543. package/esm/mark/polygon.js.map +0 -1
  544. package/esm/mark/range.d.ts +0 -8
  545. package/esm/mark/range.js +0 -47
  546. package/esm/mark/range.js.map +0 -1
  547. package/esm/mark/rangeX.d.ts +0 -4
  548. package/esm/mark/rangeX.js +0 -23
  549. package/esm/mark/rangeX.js.map +0 -1
  550. package/esm/mark/rangeY.d.ts +0 -4
  551. package/esm/mark/rangeY.js +0 -23
  552. package/esm/mark/rangeY.js.map +0 -1
  553. package/esm/mark/rect.d.ts +0 -4
  554. package/esm/mark/rect.js +0 -37
  555. package/esm/mark/rect.js.map +0 -1
  556. package/esm/mark/sankey.d.ts +0 -8
  557. package/esm/mark/sankey.js +0 -113
  558. package/esm/mark/sankey.js.map +0 -1
  559. package/esm/mark/shape.d.ts +0 -7
  560. package/esm/mark/shape.js +0 -40
  561. package/esm/mark/shape.js.map +0 -1
  562. package/esm/mark/text.d.ts +0 -4
  563. package/esm/mark/text.js +0 -43
  564. package/esm/mark/text.js.map +0 -1
  565. package/esm/mark/tree.d.ts +0 -4
  566. package/esm/mark/tree.js +0 -71
  567. package/esm/mark/tree.js.map +0 -1
  568. package/esm/mark/treemap.d.ts +0 -4
  569. package/esm/mark/treemap.js +0 -105
  570. package/esm/mark/treemap.js.map +0 -1
  571. package/esm/mark/utils.d.ts +0 -67
  572. package/esm/mark/utils.js +0 -110
  573. package/esm/mark/utils.js.map +0 -1
  574. package/esm/mark/vector.d.ts +0 -8
  575. package/esm/mark/vector.js +0 -44
  576. package/esm/mark/vector.js.map +0 -1
  577. package/esm/mark/wordCloud.d.ts +0 -4
  578. package/esm/mark/wordCloud.js +0 -59
  579. package/esm/mark/wordCloud.js.map +0 -1
  580. package/esm/palette/category10.d.ts +0 -7
  581. package/esm/palette/category10.js +0 -19
  582. package/esm/palette/category10.js.map +0 -1
  583. package/esm/palette/category20.d.ts +0 -7
  584. package/esm/palette/category20.js +0 -29
  585. package/esm/palette/category20.js.map +0 -1
  586. package/esm/palette/index.d.ts +0 -4
  587. package/esm/palette/index.js +0 -3
  588. package/esm/palette/index.js.map +0 -1
  589. package/esm/runtime/component.d.ts +0 -18
  590. package/esm/runtime/component.js +0 -771
  591. package/esm/runtime/component.js.map +0 -1
  592. package/esm/runtime/constant.d.ts +0 -9
  593. package/esm/runtime/constant.js +0 -10
  594. package/esm/runtime/constant.js.map +0 -1
  595. package/esm/runtime/coordinate.d.ts +0 -24
  596. package/esm/runtime/coordinate.js +0 -88
  597. package/esm/runtime/coordinate.js.map +0 -1
  598. package/esm/runtime/index.d.ts +0 -9
  599. package/esm/runtime/index.js +0 -10
  600. package/esm/runtime/index.js.map +0 -1
  601. package/esm/runtime/layout.d.ts +0 -10
  602. package/esm/runtime/layout.js +0 -582
  603. package/esm/runtime/layout.js.map +0 -1
  604. package/esm/runtime/library.d.ts +0 -5
  605. package/esm/runtime/library.js +0 -37
  606. package/esm/runtime/library.js.map +0 -1
  607. package/esm/runtime/mark.d.ts +0 -6
  608. package/esm/runtime/mark.js +0 -130
  609. package/esm/runtime/mark.js.map +0 -1
  610. package/esm/runtime/option-preprocess/index.d.ts +0 -2
  611. package/esm/runtime/option-preprocess/index.js +0 -16
  612. package/esm/runtime/option-preprocess/index.js.map +0 -1
  613. package/esm/runtime/option-preprocess/style.d.ts +0 -2
  614. package/esm/runtime/option-preprocess/style.js +0 -12
  615. package/esm/runtime/option-preprocess/style.js.map +0 -1
  616. package/esm/runtime/plot.d.ts +0 -5
  617. package/esm/runtime/plot.js +0 -1212
  618. package/esm/runtime/plot.js.map +0 -1
  619. package/esm/runtime/render.d.ts +0 -5
  620. package/esm/runtime/render.js +0 -166
  621. package/esm/runtime/render.js.map +0 -1
  622. package/esm/runtime/scale.d.ts +0 -14
  623. package/esm/runtime/scale.js +0 -558
  624. package/esm/runtime/scale.js.map +0 -1
  625. package/esm/runtime/transform.d.ts +0 -16
  626. package/esm/runtime/transform.js +0 -286
  627. package/esm/runtime/transform.js.map +0 -1
  628. package/esm/runtime/types/common.d.ts +0 -159
  629. package/esm/runtime/types/common.js +0 -2
  630. package/esm/runtime/types/common.js.map +0 -1
  631. package/esm/runtime/types/component.d.ts +0 -103
  632. package/esm/runtime/types/component.js +0 -2
  633. package/esm/runtime/types/component.js.map +0 -1
  634. package/esm/runtime/types/data.d.ts +0 -8
  635. package/esm/runtime/types/data.js +0 -2
  636. package/esm/runtime/types/data.js.map +0 -1
  637. package/esm/runtime/types/encode.d.ts +0 -23
  638. package/esm/runtime/types/encode.js +0 -2
  639. package/esm/runtime/types/encode.js.map +0 -1
  640. package/esm/runtime/types/mark.d.ts +0 -36
  641. package/esm/runtime/types/mark.js +0 -2
  642. package/esm/runtime/types/mark.js.map +0 -1
  643. package/esm/runtime/types/options.d.ts +0 -145
  644. package/esm/runtime/types/options.js +0 -2
  645. package/esm/runtime/types/options.js.map +0 -1
  646. package/esm/runtime/types/scale.d.ts +0 -21
  647. package/esm/runtime/types/scale.js +0 -22
  648. package/esm/runtime/types/scale.js.map +0 -1
  649. package/esm/runtime/types/theme.d.ts +0 -91
  650. package/esm/runtime/types/theme.js +0 -2
  651. package/esm/runtime/types/theme.js.map +0 -1
  652. package/esm/runtime/types/transform.d.ts +0 -14
  653. package/esm/runtime/types/transform.js +0 -2
  654. package/esm/runtime/types/transform.js.map +0 -1
  655. package/esm/scale/band.d.ts +0 -4
  656. package/esm/scale/band.js +0 -6
  657. package/esm/scale/band.js.map +0 -1
  658. package/esm/scale/constant.d.ts +0 -4
  659. package/esm/scale/constant.js +0 -6
  660. package/esm/scale/constant.js.map +0 -1
  661. package/esm/scale/identity.d.ts +0 -4
  662. package/esm/scale/identity.js +0 -6
  663. package/esm/scale/identity.js.map +0 -1
  664. package/esm/scale/index.d.ts +0 -28
  665. package/esm/scale/index.js +0 -15
  666. package/esm/scale/index.js.map +0 -1
  667. package/esm/scale/linear.d.ts +0 -4
  668. package/esm/scale/linear.js +0 -6
  669. package/esm/scale/linear.js.map +0 -1
  670. package/esm/scale/log.d.ts +0 -4
  671. package/esm/scale/log.js +0 -6
  672. package/esm/scale/log.js.map +0 -1
  673. package/esm/scale/ordinal.d.ts +0 -4
  674. package/esm/scale/ordinal.js +0 -6
  675. package/esm/scale/ordinal.js.map +0 -1
  676. package/esm/scale/point.d.ts +0 -4
  677. package/esm/scale/point.js +0 -6
  678. package/esm/scale/point.js.map +0 -1
  679. package/esm/scale/pow.d.ts +0 -4
  680. package/esm/scale/pow.js +0 -6
  681. package/esm/scale/pow.js.map +0 -1
  682. package/esm/scale/quantile.d.ts +0 -4
  683. package/esm/scale/quantile.js +0 -6
  684. package/esm/scale/quantile.js.map +0 -1
  685. package/esm/scale/quantize.d.ts +0 -4
  686. package/esm/scale/quantize.js +0 -6
  687. package/esm/scale/quantize.js.map +0 -1
  688. package/esm/scale/sequential.d.ts +0 -4
  689. package/esm/scale/sequential.js +0 -6
  690. package/esm/scale/sequential.js.map +0 -1
  691. package/esm/scale/sqrt.d.ts +0 -4
  692. package/esm/scale/sqrt.js +0 -6
  693. package/esm/scale/sqrt.js.map +0 -1
  694. package/esm/scale/threshold.d.ts +0 -4
  695. package/esm/scale/threshold.js +0 -6
  696. package/esm/scale/threshold.js.map +0 -1
  697. package/esm/scale/time.d.ts +0 -4
  698. package/esm/scale/time.js +0 -6
  699. package/esm/scale/time.js.map +0 -1
  700. package/esm/shape/area/area.d.ts +0 -3
  701. package/esm/shape/area/area.js +0 -12
  702. package/esm/shape/area/area.js.map +0 -1
  703. package/esm/shape/area/curve.d.ts +0 -8
  704. package/esm/shape/area/curve.js +0 -171
  705. package/esm/shape/area/curve.js.map +0 -1
  706. package/esm/shape/area/hv.d.ts +0 -3
  707. package/esm/shape/area/hv.js +0 -9
  708. package/esm/shape/area/hv.js.map +0 -1
  709. package/esm/shape/area/hvh.d.ts +0 -3
  710. package/esm/shape/area/hvh.js +0 -9
  711. package/esm/shape/area/hvh.js.map +0 -1
  712. package/esm/shape/area/smooth.d.ts +0 -3
  713. package/esm/shape/area/smooth.js +0 -28
  714. package/esm/shape/area/smooth.js.map +0 -1
  715. package/esm/shape/area/vh.d.ts +0 -3
  716. package/esm/shape/area/vh.js +0 -9
  717. package/esm/shape/area/vh.js.map +0 -1
  718. package/esm/shape/box/box.d.ts +0 -3
  719. package/esm/shape/box/box.js +0 -90
  720. package/esm/shape/box/box.js.map +0 -1
  721. package/esm/shape/box/violin.d.ts +0 -3
  722. package/esm/shape/box/violin.js +0 -84
  723. package/esm/shape/box/violin.js.map +0 -1
  724. package/esm/shape/connector/connector.d.ts +0 -11
  725. package/esm/shape/connector/connector.js +0 -82
  726. package/esm/shape/connector/connector.js.map +0 -1
  727. package/esm/shape/density/density.d.ts +0 -8
  728. package/esm/shape/density/density.js +0 -49
  729. package/esm/shape/density/density.js.map +0 -1
  730. package/esm/shape/gauge/round.d.ts +0 -3
  731. package/esm/shape/gauge/round.js +0 -40
  732. package/esm/shape/gauge/round.js.map +0 -1
  733. package/esm/shape/heatmap/heatmap.d.ts +0 -4
  734. package/esm/shape/heatmap/heatmap.js +0 -67
  735. package/esm/shape/heatmap/heatmap.js.map +0 -1
  736. package/esm/shape/heatmap/renderer/gradient.d.ts +0 -5
  737. package/esm/shape/heatmap/renderer/gradient.js +0 -13
  738. package/esm/shape/heatmap/renderer/gradient.js.map +0 -1
  739. package/esm/shape/heatmap/renderer/index.d.ts +0 -6
  740. package/esm/shape/heatmap/renderer/index.js +0 -122
  741. package/esm/shape/heatmap/renderer/index.js.map +0 -1
  742. package/esm/shape/heatmap/renderer/types.d.ts +0 -36
  743. package/esm/shape/heatmap/renderer/types.js +0 -2
  744. package/esm/shape/heatmap/renderer/types.js.map +0 -1
  745. package/esm/shape/image/image.d.ts +0 -3
  746. package/esm/shape/image/image.js +0 -46
  747. package/esm/shape/image/image.js.map +0 -1
  748. package/esm/shape/index.d.ts +0 -114
  749. package/esm/shape/index.js +0 -65
  750. package/esm/shape/index.js.map +0 -1
  751. package/esm/shape/interval/color.d.ts +0 -25
  752. package/esm/shape/interval/color.js +0 -133
  753. package/esm/shape/interval/color.js.map +0 -1
  754. package/esm/shape/interval/funnel.d.ts +0 -10
  755. package/esm/shape/interval/funnel.js +0 -57
  756. package/esm/shape/interval/funnel.js.map +0 -1
  757. package/esm/shape/interval/hollow.d.ts +0 -6
  758. package/esm/shape/interval/hollow.js +0 -9
  759. package/esm/shape/interval/hollow.js.map +0 -1
  760. package/esm/shape/interval/pyramid.d.ts +0 -6
  761. package/esm/shape/interval/pyramid.js +0 -38
  762. package/esm/shape/interval/pyramid.js.map +0 -1
  763. package/esm/shape/interval/rect.d.ts +0 -20
  764. package/esm/shape/interval/rect.js +0 -10
  765. package/esm/shape/interval/rect.js.map +0 -1
  766. package/esm/shape/label/label.d.ts +0 -13
  767. package/esm/shape/label/label.js +0 -71
  768. package/esm/shape/label/label.js.map +0 -1
  769. package/esm/shape/label/position/area.d.ts +0 -13
  770. package/esm/shape/label/position/area.js +0 -28
  771. package/esm/shape/label/position/area.js.map +0 -1
  772. package/esm/shape/label/position/bottom.d.ts +0 -1
  773. package/esm/shape/label/position/bottom.js +0 -2
  774. package/esm/shape/label/position/bottom.js.map +0 -1
  775. package/esm/shape/label/position/bottomLeft.d.ts +0 -1
  776. package/esm/shape/label/position/bottomLeft.js +0 -2
  777. package/esm/shape/label/position/bottomLeft.js.map +0 -1
  778. package/esm/shape/label/position/bottomRight.d.ts +0 -1
  779. package/esm/shape/label/position/bottomRight.js +0 -2
  780. package/esm/shape/label/position/bottomRight.js.map +0 -1
  781. package/esm/shape/label/position/default.d.ts +0 -18
  782. package/esm/shape/label/position/default.js +0 -112
  783. package/esm/shape/label/position/default.js.map +0 -1
  784. package/esm/shape/label/position/index.d.ts +0 -13
  785. package/esm/shape/label/position/index.js +0 -14
  786. package/esm/shape/label/position/index.js.map +0 -1
  787. package/esm/shape/label/position/inside.d.ts +0 -1
  788. package/esm/shape/label/position/inside.js +0 -2
  789. package/esm/shape/label/position/inside.js.map +0 -1
  790. package/esm/shape/label/position/left.d.ts +0 -1
  791. package/esm/shape/label/position/left.js +0 -2
  792. package/esm/shape/label/position/left.js.map +0 -1
  793. package/esm/shape/label/position/outside.d.ts +0 -18
  794. package/esm/shape/label/position/outside.js +0 -67
  795. package/esm/shape/label/position/outside.js.map +0 -1
  796. package/esm/shape/label/position/right.d.ts +0 -1
  797. package/esm/shape/label/position/right.js +0 -2
  798. package/esm/shape/label/position/right.js.map +0 -1
  799. package/esm/shape/label/position/spider.d.ts +0 -8
  800. package/esm/shape/label/position/spider.js +0 -50
  801. package/esm/shape/label/position/spider.js.map +0 -1
  802. package/esm/shape/label/position/surround.d.ts +0 -7
  803. package/esm/shape/label/position/surround.js +0 -35
  804. package/esm/shape/label/position/surround.js.map +0 -1
  805. package/esm/shape/label/position/top.d.ts +0 -1
  806. package/esm/shape/label/position/top.js +0 -2
  807. package/esm/shape/label/position/top.js.map +0 -1
  808. package/esm/shape/label/position/topLeft.d.ts +0 -1
  809. package/esm/shape/label/position/topLeft.js +0 -2
  810. package/esm/shape/label/position/topLeft.js.map +0 -1
  811. package/esm/shape/label/position/topRight.d.ts +0 -1
  812. package/esm/shape/label/position/topRight.js +0 -2
  813. package/esm/shape/label/position/topRight.js.map +0 -1
  814. package/esm/shape/label/position/utils.d.ts +0 -2
  815. package/esm/shape/label/position/utils.js +0 -68
  816. package/esm/shape/label/position/utils.js.map +0 -1
  817. package/esm/shape/line/curve.d.ts +0 -8
  818. package/esm/shape/line/curve.js +0 -136
  819. package/esm/shape/line/curve.js.map +0 -1
  820. package/esm/shape/line/hv.d.ts +0 -3
  821. package/esm/shape/line/hv.js +0 -7
  822. package/esm/shape/line/hv.js.map +0 -1
  823. package/esm/shape/line/hvh.d.ts +0 -3
  824. package/esm/shape/line/hvh.js +0 -7
  825. package/esm/shape/line/hvh.js.map +0 -1
  826. package/esm/shape/line/line.d.ts +0 -3
  827. package/esm/shape/line/line.js +0 -12
  828. package/esm/shape/line/line.js.map +0 -1
  829. package/esm/shape/line/smooth.d.ts +0 -3
  830. package/esm/shape/line/smooth.js +0 -28
  831. package/esm/shape/line/smooth.js.map +0 -1
  832. package/esm/shape/line/trail.d.ts +0 -3
  833. package/esm/shape/line/trail.js +0 -77
  834. package/esm/shape/line/trail.js.map +0 -1
  835. package/esm/shape/line/vh.d.ts +0 -3
  836. package/esm/shape/line/vh.js +0 -7
  837. package/esm/shape/line/vh.js.map +0 -1
  838. package/esm/shape/lineXY/line.d.ts +0 -24
  839. package/esm/shape/lineXY/line.js +0 -71
  840. package/esm/shape/lineXY/line.js.map +0 -1
  841. package/esm/shape/link/arc.d.ts +0 -8
  842. package/esm/shape/link/arc.js +0 -55
  843. package/esm/shape/link/arc.js.map +0 -1
  844. package/esm/shape/link/link.d.ts +0 -8
  845. package/esm/shape/link/link.js +0 -18
  846. package/esm/shape/link/link.js.map +0 -1
  847. package/esm/shape/link/smooth.d.ts +0 -6
  848. package/esm/shape/link/smooth.js +0 -43
  849. package/esm/shape/link/smooth.js.map +0 -1
  850. package/esm/shape/link/vhv.d.ts +0 -12
  851. package/esm/shape/link/vhv.js +0 -73
  852. package/esm/shape/link/vhv.js.map +0 -1
  853. package/esm/shape/liquid/liquid.d.ts +0 -3
  854. package/esm/shape/liquid/liquid.js +0 -79
  855. package/esm/shape/liquid/liquid.js.map +0 -1
  856. package/esm/shape/liquid/shapes.d.ts +0 -38
  857. package/esm/shape/liquid/shapes.js +0 -93
  858. package/esm/shape/liquid/shapes.js.map +0 -1
  859. package/esm/shape/liquid/wave.d.ts +0 -16
  860. package/esm/shape/liquid/wave.js +0 -192
  861. package/esm/shape/liquid/wave.js.map +0 -1
  862. package/esm/shape/path/color.d.ts +0 -9
  863. package/esm/shape/path/color.js +0 -38
  864. package/esm/shape/path/color.js.map +0 -1
  865. package/esm/shape/path/hollow.d.ts +0 -8
  866. package/esm/shape/path/hollow.js +0 -14
  867. package/esm/shape/path/hollow.js.map +0 -1
  868. package/esm/shape/path/path.d.ts +0 -8
  869. package/esm/shape/path/path.js +0 -14
  870. package/esm/shape/path/path.js.map +0 -1
  871. package/esm/shape/point/bowtie.d.ts +0 -6
  872. package/esm/shape/point/bowtie.js +0 -9
  873. package/esm/shape/point/bowtie.js.map +0 -1
  874. package/esm/shape/point/circle.d.ts +0 -16
  875. package/esm/shape/point/circle.js +0 -56
  876. package/esm/shape/point/circle.js.map +0 -1
  877. package/esm/shape/point/color.d.ts +0 -13
  878. package/esm/shape/point/color.js +0 -65
  879. package/esm/shape/point/color.js.map +0 -1
  880. package/esm/shape/point/cross.d.ts +0 -6
  881. package/esm/shape/point/cross.js +0 -9
  882. package/esm/shape/point/cross.js.map +0 -1
  883. package/esm/shape/point/diamond.d.ts +0 -6
  884. package/esm/shape/point/diamond.js +0 -9
  885. package/esm/shape/point/diamond.js.map +0 -1
  886. package/esm/shape/point/hexagon.d.ts +0 -6
  887. package/esm/shape/point/hexagon.js +0 -9
  888. package/esm/shape/point/hexagon.js.map +0 -1
  889. package/esm/shape/point/hollow.d.ts +0 -6
  890. package/esm/shape/point/hollow.js +0 -9
  891. package/esm/shape/point/hollow.js.map +0 -1
  892. package/esm/shape/point/hollowBowtie.d.ts +0 -6
  893. package/esm/shape/point/hollowBowtie.js +0 -9
  894. package/esm/shape/point/hollowBowtie.js.map +0 -1
  895. package/esm/shape/point/hollowCircle.d.ts +0 -6
  896. package/esm/shape/point/hollowCircle.js +0 -9
  897. package/esm/shape/point/hollowCircle.js.map +0 -1
  898. package/esm/shape/point/hollowDiamond.d.ts +0 -6
  899. package/esm/shape/point/hollowDiamond.js +0 -9
  900. package/esm/shape/point/hollowDiamond.js.map +0 -1
  901. package/esm/shape/point/hollowHexagon.d.ts +0 -6
  902. package/esm/shape/point/hollowHexagon.js +0 -9
  903. package/esm/shape/point/hollowHexagon.js.map +0 -1
  904. package/esm/shape/point/hollowSquare.d.ts +0 -6
  905. package/esm/shape/point/hollowSquare.js +0 -9
  906. package/esm/shape/point/hollowSquare.js.map +0 -1
  907. package/esm/shape/point/hollowTriangle.d.ts +0 -6
  908. package/esm/shape/point/hollowTriangle.js +0 -9
  909. package/esm/shape/point/hollowTriangle.js.map +0 -1
  910. package/esm/shape/point/hollowTriangleDown.d.ts +0 -6
  911. package/esm/shape/point/hollowTriangleDown.js +0 -9
  912. package/esm/shape/point/hollowTriangleDown.js.map +0 -1
  913. package/esm/shape/point/hyphen.d.ts +0 -6
  914. package/esm/shape/point/hyphen.js +0 -9
  915. package/esm/shape/point/hyphen.js.map +0 -1
  916. package/esm/shape/point/line.d.ts +0 -6
  917. package/esm/shape/point/line.js +0 -9
  918. package/esm/shape/point/line.js.map +0 -1
  919. package/esm/shape/point/plus.d.ts +0 -6
  920. package/esm/shape/point/plus.js +0 -9
  921. package/esm/shape/point/plus.js.map +0 -1
  922. package/esm/shape/point/point.d.ts +0 -6
  923. package/esm/shape/point/point.js +0 -9
  924. package/esm/shape/point/point.js.map +0 -1
  925. package/esm/shape/point/square.d.ts +0 -6
  926. package/esm/shape/point/square.js +0 -9
  927. package/esm/shape/point/square.js.map +0 -1
  928. package/esm/shape/point/tick.d.ts +0 -6
  929. package/esm/shape/point/tick.js +0 -9
  930. package/esm/shape/point/tick.js.map +0 -1
  931. package/esm/shape/point/triangle.d.ts +0 -6
  932. package/esm/shape/point/triangle.js +0 -9
  933. package/esm/shape/point/triangle.js.map +0 -1
  934. package/esm/shape/point/triangleDown.d.ts +0 -6
  935. package/esm/shape/point/triangleDown.js +0 -9
  936. package/esm/shape/point/triangleDown.js.map +0 -1
  937. package/esm/shape/polygon/polygon.d.ts +0 -3
  938. package/esm/shape/polygon/polygon.js +0 -70
  939. package/esm/shape/polygon/polygon.js.map +0 -1
  940. package/esm/shape/polygon/ribbon.d.ts +0 -15
  941. package/esm/shape/polygon/ribbon.js +0 -73
  942. package/esm/shape/polygon/ribbon.js.map +0 -1
  943. package/esm/shape/shape/shape.d.ts +0 -6
  944. package/esm/shape/shape/shape.js +0 -28
  945. package/esm/shape/shape/shape.js.map +0 -1
  946. package/esm/shape/text/advance.d.ts +0 -2
  947. package/esm/shape/text/advance.js +0 -176
  948. package/esm/shape/text/advance.js.map +0 -1
  949. package/esm/shape/text/badge.d.ts +0 -7
  950. package/esm/shape/text/badge.js +0 -78
  951. package/esm/shape/text/badge.js.map +0 -1
  952. package/esm/shape/text/tag.d.ts +0 -7
  953. package/esm/shape/text/tag.js +0 -40
  954. package/esm/shape/text/tag.js.map +0 -1
  955. package/esm/shape/text/text.d.ts +0 -6
  956. package/esm/shape/text/text.js +0 -35
  957. package/esm/shape/text/text.js.map +0 -1
  958. package/esm/shape/utils.d.ts +0 -56
  959. package/esm/shape/utils.js +0 -166
  960. package/esm/shape/utils.js.map +0 -1
  961. package/esm/shape/vector/vector.d.ts +0 -8
  962. package/esm/shape/vector/vector.js +0 -53
  963. package/esm/shape/vector/vector.js.map +0 -1
  964. package/esm/spec/animate.d.ts +0 -23
  965. package/esm/spec/animate.js +0 -2
  966. package/esm/spec/animate.js.map +0 -1
  967. package/esm/spec/component.d.ts +0 -72
  968. package/esm/spec/component.js +0 -2
  969. package/esm/spec/component.js.map +0 -1
  970. package/esm/spec/composition.d.ts +0 -196
  971. package/esm/spec/composition.js +0 -2
  972. package/esm/spec/composition.js.map +0 -1
  973. package/esm/spec/coordinate.d.ts +0 -56
  974. package/esm/spec/coordinate.js +0 -2
  975. package/esm/spec/coordinate.js.map +0 -1
  976. package/esm/spec/coordinateTransform.d.ts +0 -13
  977. package/esm/spec/coordinateTransform.js +0 -2
  978. package/esm/spec/coordinateTransform.js.map +0 -1
  979. package/esm/spec/data.d.ts +0 -17
  980. package/esm/spec/data.js +0 -2
  981. package/esm/spec/data.js.map +0 -1
  982. package/esm/spec/dataTransform.d.ts +0 -152
  983. package/esm/spec/dataTransform.js +0 -2
  984. package/esm/spec/dataTransform.js.map +0 -1
  985. package/esm/spec/encode.d.ts +0 -23
  986. package/esm/spec/encode.js +0 -2
  987. package/esm/spec/encode.js.map +0 -1
  988. package/esm/spec/index.d.ts +0 -24
  989. package/esm/spec/index.js +0 -16
  990. package/esm/spec/index.js.map +0 -1
  991. package/esm/spec/interaction.d.ts +0 -143
  992. package/esm/spec/interaction.js +0 -2
  993. package/esm/spec/interaction.js.map +0 -1
  994. package/esm/spec/labelTransform.d.ts +0 -33
  995. package/esm/spec/labelTransform.js +0 -2
  996. package/esm/spec/labelTransform.js.map +0 -1
  997. package/esm/spec/mark.d.ts +0 -209
  998. package/esm/spec/mark.js +0 -2
  999. package/esm/spec/mark.js.map +0 -1
  1000. package/esm/spec/palette.d.ts +0 -13
  1001. package/esm/spec/palette.js +0 -2
  1002. package/esm/spec/palette.js.map +0 -1
  1003. package/esm/spec/scale.d.ts +0 -39
  1004. package/esm/spec/scale.js +0 -2
  1005. package/esm/spec/scale.js.map +0 -1
  1006. package/esm/spec/theme.d.ts +0 -21
  1007. package/esm/spec/theme.js +0 -2
  1008. package/esm/spec/theme.js.map +0 -1
  1009. package/esm/spec/transform.d.ts +0 -166
  1010. package/esm/spec/transform.js +0 -2
  1011. package/esm/spec/transform.js.map +0 -1
  1012. package/esm/spec/utils.d.ts +0 -12
  1013. package/esm/spec/utils.js +0 -2
  1014. package/esm/spec/utils.js.map +0 -1
  1015. package/esm/theme/academy.d.ts +0 -20
  1016. package/esm/theme/academy.js +0 -102
  1017. package/esm/theme/academy.js.map +0 -1
  1018. package/esm/theme/classic.d.ts +0 -6
  1019. package/esm/theme/classic.js +0 -13
  1020. package/esm/theme/classic.js.map +0 -1
  1021. package/esm/theme/classicDark.d.ts +0 -6
  1022. package/esm/theme/classicDark.js +0 -12
  1023. package/esm/theme/classicDark.js.map +0 -1
  1024. package/esm/theme/create.d.ts +0 -443
  1025. package/esm/theme/create.js +0 -427
  1026. package/esm/theme/create.js.map +0 -1
  1027. package/esm/theme/dark.d.ts +0 -20
  1028. package/esm/theme/dark.js +0 -77
  1029. package/esm/theme/dark.js.map +0 -1
  1030. package/esm/theme/index.d.ts +0 -5
  1031. package/esm/theme/index.js +0 -6
  1032. package/esm/theme/index.js.map +0 -1
  1033. package/esm/theme/light.d.ts +0 -23
  1034. package/esm/theme/light.js +0 -60
  1035. package/esm/theme/light.js.map +0 -1
  1036. package/esm/transform/bin.d.ts +0 -12
  1037. package/esm/transform/bin.js +0 -82
  1038. package/esm/transform/bin.js.map +0 -1
  1039. package/esm/transform/binX.d.ts +0 -4
  1040. package/esm/transform/binX.js +0 -7
  1041. package/esm/transform/binX.js.map +0 -1
  1042. package/esm/transform/diffY.d.ts +0 -8
  1043. package/esm/transform/diffY.js +0 -40
  1044. package/esm/transform/diffY.js.map +0 -1
  1045. package/esm/transform/dodgeX.d.ts +0 -9
  1046. package/esm/transform/dodgeX.js +0 -65
  1047. package/esm/transform/dodgeX.js.map +0 -1
  1048. package/esm/transform/filter.d.ts +0 -7
  1049. package/esm/transform/filter.js +0 -86
  1050. package/esm/transform/filter.js.map +0 -1
  1051. package/esm/transform/flexX.d.ts +0 -7
  1052. package/esm/transform/flexX.js +0 -31
  1053. package/esm/transform/flexX.js.map +0 -1
  1054. package/esm/transform/group.d.ts +0 -10
  1055. package/esm/transform/group.js +0 -23
  1056. package/esm/transform/group.js.map +0 -1
  1057. package/esm/transform/groupColor.d.ts +0 -7
  1058. package/esm/transform/groupColor.js +0 -9
  1059. package/esm/transform/groupColor.js.map +0 -1
  1060. package/esm/transform/groupN.d.ts +0 -9
  1061. package/esm/transform/groupN.js +0 -116
  1062. package/esm/transform/groupN.js.map +0 -1
  1063. package/esm/transform/groupX.d.ts +0 -7
  1064. package/esm/transform/groupX.js +0 -9
  1065. package/esm/transform/groupX.js.map +0 -1
  1066. package/esm/transform/groupY.d.ts +0 -7
  1067. package/esm/transform/groupY.js +0 -9
  1068. package/esm/transform/groupY.js.map +0 -1
  1069. package/esm/transform/index.d.ts +0 -89
  1070. package/esm/transform/index.js +0 -47
  1071. package/esm/transform/index.js.map +0 -1
  1072. package/esm/transform/jitter.d.ts +0 -10
  1073. package/esm/transform/jitter.js +0 -45
  1074. package/esm/transform/jitter.js.map +0 -1
  1075. package/esm/transform/jitterX.d.ts +0 -8
  1076. package/esm/transform/jitterX.js +0 -25
  1077. package/esm/transform/jitterX.js.map +0 -1
  1078. package/esm/transform/jitterY.d.ts +0 -8
  1079. package/esm/transform/jitterY.js +0 -25
  1080. package/esm/transform/jitterY.js.map +0 -1
  1081. package/esm/transform/maybeDefaultX.d.ts +0 -7
  1082. package/esm/transform/maybeDefaultX.js +0 -29
  1083. package/esm/transform/maybeDefaultX.js.map +0 -1
  1084. package/esm/transform/maybeDefaultY.d.ts +0 -7
  1085. package/esm/transform/maybeDefaultY.js +0 -29
  1086. package/esm/transform/maybeDefaultY.js.map +0 -1
  1087. package/esm/transform/maybeFunctionAttribute.d.ts +0 -6
  1088. package/esm/transform/maybeFunctionAttribute.js +0 -19
  1089. package/esm/transform/maybeFunctionAttribute.js.map +0 -1
  1090. package/esm/transform/maybeGradient.d.ts +0 -7
  1091. package/esm/transform/maybeGradient.js +0 -25
  1092. package/esm/transform/maybeGradient.js.map +0 -1
  1093. package/esm/transform/maybeIdentityX.d.ts +0 -7
  1094. package/esm/transform/maybeIdentityX.js +0 -18
  1095. package/esm/transform/maybeIdentityX.js.map +0 -1
  1096. package/esm/transform/maybeIdentityY.d.ts +0 -7
  1097. package/esm/transform/maybeIdentityY.js +0 -18
  1098. package/esm/transform/maybeIdentityY.js.map +0 -1
  1099. package/esm/transform/maybeKey.d.ts +0 -6
  1100. package/esm/transform/maybeKey.js +0 -32
  1101. package/esm/transform/maybeKey.js.map +0 -1
  1102. package/esm/transform/maybeSeries.d.ts +0 -6
  1103. package/esm/transform/maybeSeries.js +0 -17
  1104. package/esm/transform/maybeSeries.js.map +0 -1
  1105. package/esm/transform/maybeSize.d.ts +0 -7
  1106. package/esm/transform/maybeSize.js +0 -20
  1107. package/esm/transform/maybeSize.js.map +0 -1
  1108. package/esm/transform/maybeStackY.d.ts +0 -9
  1109. package/esm/transform/maybeStackY.js +0 -30
  1110. package/esm/transform/maybeStackY.js.map +0 -1
  1111. package/esm/transform/maybeTitle.d.ts +0 -8
  1112. package/esm/transform/maybeTitle.js +0 -45
  1113. package/esm/transform/maybeTitle.js.map +0 -1
  1114. package/esm/transform/maybeTooltip.d.ts +0 -8
  1115. package/esm/transform/maybeTooltip.js +0 -36
  1116. package/esm/transform/maybeTooltip.js.map +0 -1
  1117. package/esm/transform/maybeTuple.d.ts +0 -7
  1118. package/esm/transform/maybeTuple.js +0 -19
  1119. package/esm/transform/maybeTuple.js.map +0 -1
  1120. package/esm/transform/maybeTupleX.d.ts +0 -7
  1121. package/esm/transform/maybeTupleX.js +0 -16
  1122. package/esm/transform/maybeTupleX.js.map +0 -1
  1123. package/esm/transform/maybeTupleY.d.ts +0 -7
  1124. package/esm/transform/maybeTupleY.js +0 -16
  1125. package/esm/transform/maybeTupleY.js.map +0 -1
  1126. package/esm/transform/maybeVisualPosition.d.ts +0 -7
  1127. package/esm/transform/maybeVisualPosition.js +0 -45
  1128. package/esm/transform/maybeVisualPosition.js.map +0 -1
  1129. package/esm/transform/maybeZeroPadding.d.ts +0 -6
  1130. package/esm/transform/maybeZeroPadding.js +0 -14
  1131. package/esm/transform/maybeZeroPadding.js.map +0 -1
  1132. package/esm/transform/maybeZeroX.d.ts +0 -7
  1133. package/esm/transform/maybeZeroX.js +0 -23
  1134. package/esm/transform/maybeZeroX.js.map +0 -1
  1135. package/esm/transform/maybeZeroY.d.ts +0 -6
  1136. package/esm/transform/maybeZeroY.js +0 -22
  1137. package/esm/transform/maybeZeroY.js.map +0 -1
  1138. package/esm/transform/maybeZeroY1.d.ts +0 -6
  1139. package/esm/transform/maybeZeroY1.js +0 -21
  1140. package/esm/transform/maybeZeroY1.js.map +0 -1
  1141. package/esm/transform/maybeZeroZ.d.ts +0 -6
  1142. package/esm/transform/maybeZeroZ.js +0 -22
  1143. package/esm/transform/maybeZeroZ.js.map +0 -1
  1144. package/esm/transform/normalizeY.d.ts +0 -9
  1145. package/esm/transform/normalizeY.js +0 -74
  1146. package/esm/transform/normalizeY.js.map +0 -1
  1147. package/esm/transform/pack.d.ts +0 -9
  1148. package/esm/transform/pack.js +0 -62
  1149. package/esm/transform/pack.js.map +0 -1
  1150. package/esm/transform/sample.d.ts +0 -8
  1151. package/esm/transform/sample.js +0 -64
  1152. package/esm/transform/sample.js.map +0 -1
  1153. package/esm/transform/select.d.ts +0 -9
  1154. package/esm/transform/select.js +0 -41
  1155. package/esm/transform/select.js.map +0 -1
  1156. package/esm/transform/selectX.d.ts +0 -7
  1157. package/esm/transform/selectX.js +0 -21
  1158. package/esm/transform/selectX.js.map +0 -1
  1159. package/esm/transform/selectY.d.ts +0 -7
  1160. package/esm/transform/selectY.js +0 -21
  1161. package/esm/transform/selectY.js.map +0 -1
  1162. package/esm/transform/sort.d.ts +0 -14
  1163. package/esm/transform/sort.js +0 -60
  1164. package/esm/transform/sort.js.map +0 -1
  1165. package/esm/transform/sortColor.d.ts +0 -7
  1166. package/esm/transform/sortColor.js +0 -9
  1167. package/esm/transform/sortColor.js.map +0 -1
  1168. package/esm/transform/sortX.d.ts +0 -7
  1169. package/esm/transform/sortX.js +0 -9
  1170. package/esm/transform/sortX.js.map +0 -1
  1171. package/esm/transform/sortY.d.ts +0 -7
  1172. package/esm/transform/sortY.js +0 -9
  1173. package/esm/transform/sortY.js.map +0 -1
  1174. package/esm/transform/stackEnter.d.ts +0 -14
  1175. package/esm/transform/stackEnter.js +0 -72
  1176. package/esm/transform/stackEnter.js.map +0 -1
  1177. package/esm/transform/stackY.d.ts +0 -9
  1178. package/esm/transform/stackY.js +0 -107
  1179. package/esm/transform/stackY.js.map +0 -1
  1180. package/esm/transform/symmetryY.d.ts +0 -8
  1181. package/esm/transform/symmetryY.js +0 -60
  1182. package/esm/transform/symmetryY.js.map +0 -1
  1183. package/esm/transform/utils/helper.d.ts +0 -28
  1184. package/esm/transform/utils/helper.js +0 -51
  1185. package/esm/transform/utils/helper.js.map +0 -1
  1186. package/esm/transform/utils/lttb.d.ts +0 -5
  1187. package/esm/transform/utils/lttb.js +0 -56
  1188. package/esm/transform/utils/lttb.js.map +0 -1
  1189. package/esm/transform/utils/order.d.ts +0 -9
  1190. package/esm/transform/utils/order.js +0 -74
  1191. package/esm/transform/utils/order.js.map +0 -1
  1192. package/esm/utils/angle.d.ts +0 -6
  1193. package/esm/utils/angle.js +0 -25
  1194. package/esm/utils/angle.js.map +0 -1
  1195. package/esm/utils/array.d.ts +0 -22
  1196. package/esm/utils/array.js +0 -77
  1197. package/esm/utils/array.js.map +0 -1
  1198. package/esm/utils/bounds.d.ts +0 -28
  1199. package/esm/utils/bounds.js +0 -48
  1200. package/esm/utils/bounds.js.map +0 -1
  1201. package/esm/utils/color.d.ts +0 -6
  1202. package/esm/utils/color.js +0 -7
  1203. package/esm/utils/color.js.map +0 -1
  1204. package/esm/utils/container.d.ts +0 -8
  1205. package/esm/utils/container.js +0 -16
  1206. package/esm/utils/container.js.map +0 -1
  1207. package/esm/utils/coordinate.d.ts +0 -16
  1208. package/esm/utils/coordinate.js +0 -75
  1209. package/esm/utils/coordinate.js.map +0 -1
  1210. package/esm/utils/createElement.d.ts +0 -5
  1211. package/esm/utils/createElement.js +0 -16
  1212. package/esm/utils/createElement.js.map +0 -1
  1213. package/esm/utils/dateFormat.d.ts +0 -1
  1214. package/esm/utils/dateFormat.js +0 -18
  1215. package/esm/utils/dateFormat.js.map +0 -1
  1216. package/esm/utils/event.d.ts +0 -32
  1217. package/esm/utils/event.js +0 -34
  1218. package/esm/utils/event.js.map +0 -1
  1219. package/esm/utils/expr.d.ts +0 -8
  1220. package/esm/utils/expr.js +0 -51
  1221. package/esm/utils/expr.js.map +0 -1
  1222. package/esm/utils/flow.d.ts +0 -7
  1223. package/esm/utils/flow.js +0 -12
  1224. package/esm/utils/flow.js.map +0 -1
  1225. package/esm/utils/helper.d.ts +0 -55
  1226. package/esm/utils/helper.js +0 -195
  1227. package/esm/utils/helper.js.map +0 -1
  1228. package/esm/utils/lru.d.ts +0 -4
  1229. package/esm/utils/lru.js +0 -18
  1230. package/esm/utils/lru.js.map +0 -1
  1231. package/esm/utils/mark.d.ts +0 -4
  1232. package/esm/utils/mark.js +0 -29
  1233. package/esm/utils/mark.js.map +0 -1
  1234. package/esm/utils/marker.d.ts +0 -10
  1235. package/esm/utils/marker.js +0 -250
  1236. package/esm/utils/marker.js.map +0 -1
  1237. package/esm/utils/number.d.ts +0 -8
  1238. package/esm/utils/number.js +0 -15
  1239. package/esm/utils/number.js.map +0 -1
  1240. package/esm/utils/scale.d.ts +0 -6
  1241. package/esm/utils/scale.js +0 -74
  1242. package/esm/utils/scale.js.map +0 -1
  1243. package/esm/utils/selection.d.ts +0 -67
  1244. package/esm/utils/selection.js +0 -303
  1245. package/esm/utils/selection.js.map +0 -1
  1246. package/esm/utils/size.d.ts +0 -17
  1247. package/esm/utils/size.js +0 -43
  1248. package/esm/utils/size.js.map +0 -1
  1249. package/esm/utils/string.d.ts +0 -12
  1250. package/esm/utils/string.js +0 -19
  1251. package/esm/utils/string.js.map +0 -1
  1252. package/esm/utils/style.d.ts +0 -5
  1253. package/esm/utils/style.js +0 -23
  1254. package/esm/utils/style.js.map +0 -1
  1255. package/esm/utils/treeDataTransform.d.ts +0 -28
  1256. package/esm/utils/treeDataTransform.js +0 -94
  1257. package/esm/utils/treeDataTransform.js.map +0 -1
  1258. package/esm/utils/vector.d.ts +0 -20
  1259. package/esm/utils/vector.js +0 -52
  1260. package/esm/utils/vector.js.map +0 -1
  1261. package/lib/animation/fadeIn.d.ts +0 -7
  1262. package/lib/animation/fadeIn.js +0 -24
  1263. package/lib/animation/fadeIn.js.map +0 -1
  1264. package/lib/animation/fadeOut.d.ts +0 -7
  1265. package/lib/animation/fadeOut.js +0 -24
  1266. package/lib/animation/fadeOut.js.map +0 -1
  1267. package/lib/animation/growInX.d.ts +0 -7
  1268. package/lib/animation/growInX.js +0 -28
  1269. package/lib/animation/growInX.js.map +0 -1
  1270. package/lib/animation/growInY.d.ts +0 -7
  1271. package/lib/animation/growInY.js +0 -28
  1272. package/lib/animation/growInY.js.map +0 -1
  1273. package/lib/animation/index.d.ts +0 -24
  1274. package/lib/animation/index.js +0 -30
  1275. package/lib/animation/index.js.map +0 -1
  1276. package/lib/animation/morphing.d.ts +0 -13
  1277. package/lib/animation/morphing.js +0 -239
  1278. package/lib/animation/morphing.js.map +0 -1
  1279. package/lib/animation/pathIn.d.ts +0 -7
  1280. package/lib/animation/pathIn.js +0 -21
  1281. package/lib/animation/pathIn.js.map +0 -1
  1282. package/lib/animation/scaleInX.d.ts +0 -7
  1283. package/lib/animation/scaleInX.js +0 -50
  1284. package/lib/animation/scaleInX.js.map +0 -1
  1285. package/lib/animation/scaleInY.d.ts +0 -7
  1286. package/lib/animation/scaleInY.js +0 -99
  1287. package/lib/animation/scaleInY.js.map +0 -1
  1288. package/lib/animation/scaleOutX.d.ts +0 -7
  1289. package/lib/animation/scaleOutX.js +0 -47
  1290. package/lib/animation/scaleOutX.js.map +0 -1
  1291. package/lib/animation/scaleOutY.d.ts +0 -7
  1292. package/lib/animation/scaleOutY.js +0 -47
  1293. package/lib/animation/scaleOutY.js.map +0 -1
  1294. package/lib/animation/types.d.ts +0 -6
  1295. package/lib/animation/types.js +0 -3
  1296. package/lib/animation/types.js.map +0 -1
  1297. package/lib/animation/utils.d.ts +0 -12
  1298. package/lib/animation/utils.js +0 -51
  1299. package/lib/animation/utils.js.map +0 -1
  1300. package/lib/animation/waveIn.d.ts +0 -7
  1301. package/lib/animation/waveIn.js +0 -70
  1302. package/lib/animation/waveIn.js.map +0 -1
  1303. package/lib/animation/zoomIn.d.ts +0 -4
  1304. package/lib/animation/zoomIn.js +0 -41
  1305. package/lib/animation/zoomIn.js.map +0 -1
  1306. package/lib/animation/zoomOut.d.ts +0 -4
  1307. package/lib/animation/zoomOut.js +0 -35
  1308. package/lib/animation/zoomOut.js.map +0 -1
  1309. package/lib/api/chart.d.ts +0 -13
  1310. package/lib/api/chart.js +0 -8
  1311. package/lib/api/chart.js.map +0 -1
  1312. package/lib/api/composition.d.ts +0 -37
  1313. package/lib/api/composition.js +0 -90
  1314. package/lib/api/composition.js.map +0 -1
  1315. package/lib/api/define.d.ts +0 -14
  1316. package/lib/api/define.js +0 -97
  1317. package/lib/api/define.js.map +0 -1
  1318. package/lib/api/extend.d.ts +0 -15
  1319. package/lib/api/extend.js +0 -13
  1320. package/lib/api/extend.js.map +0 -1
  1321. package/lib/api/index.d.ts +0 -4
  1322. package/lib/api/index.js +0 -12
  1323. package/lib/api/index.js.map +0 -1
  1324. package/lib/api/library.d.ts +0 -4
  1325. package/lib/api/library.js +0 -14
  1326. package/lib/api/library.js.map +0 -1
  1327. package/lib/api/mark.d.ts +0 -29
  1328. package/lib/api/mark.js +0 -69
  1329. package/lib/api/mark.js.map +0 -1
  1330. package/lib/api/node.d.ts +0 -40
  1331. package/lib/api/node.js +0 -125
  1332. package/lib/api/node.js.map +0 -1
  1333. package/lib/api/props.d.ts +0 -171
  1334. package/lib/api/props.js +0 -25
  1335. package/lib/api/props.js.map +0 -1
  1336. package/lib/api/runtime.d.ts +0 -67
  1337. package/lib/api/runtime.js +0 -313
  1338. package/lib/api/runtime.js.map +0 -1
  1339. package/lib/api/types.d.ts +0 -65
  1340. package/lib/api/types.js +0 -3
  1341. package/lib/api/types.js.map +0 -1
  1342. package/lib/api/utils.d.ts +0 -25
  1343. package/lib/api/utils.js +0 -263
  1344. package/lib/api/utils.js.map +0 -1
  1345. package/lib/component/axis.d.ts +0 -29
  1346. package/lib/component/axis.js +0 -408
  1347. package/lib/component/axis.js.map +0 -1
  1348. package/lib/component/axisArc.d.ts +0 -7
  1349. package/lib/component/axisArc.js +0 -13
  1350. package/lib/component/axisArc.js.map +0 -1
  1351. package/lib/component/axisRadar.d.ts +0 -9
  1352. package/lib/component/axisRadar.js +0 -51
  1353. package/lib/component/axisRadar.js.map +0 -1
  1354. package/lib/component/axisX.d.ts +0 -8
  1355. package/lib/component/axisX.js +0 -20
  1356. package/lib/component/axisX.js.map +0 -1
  1357. package/lib/component/axisY.d.ts +0 -7
  1358. package/lib/component/axisY.js +0 -17
  1359. package/lib/component/axisY.js.map +0 -1
  1360. package/lib/component/constant.d.ts +0 -14
  1361. package/lib/component/constant.js +0 -244
  1362. package/lib/component/constant.js.map +0 -1
  1363. package/lib/component/index.d.ts +0 -26
  1364. package/lib/component/index.js +0 -35
  1365. package/lib/component/index.js.map +0 -1
  1366. package/lib/component/legendCategory.d.ts +0 -15
  1367. package/lib/component/legendCategory.js +0 -179
  1368. package/lib/component/legendCategory.js.map +0 -1
  1369. package/lib/component/legendContinuous.d.ts +0 -12
  1370. package/lib/component/legendContinuous.js +0 -151
  1371. package/lib/component/legendContinuous.js.map +0 -1
  1372. package/lib/component/legendContinuousBlock.d.ts +0 -4
  1373. package/lib/component/legendContinuousBlock.js +0 -10
  1374. package/lib/component/legendContinuousBlock.js.map +0 -1
  1375. package/lib/component/legendContinuousBlockSize.d.ts +0 -4
  1376. package/lib/component/legendContinuousBlockSize.js +0 -11
  1377. package/lib/component/legendContinuousBlockSize.js.map +0 -1
  1378. package/lib/component/legendContinuousSize.d.ts +0 -4
  1379. package/lib/component/legendContinuousSize.js +0 -21
  1380. package/lib/component/legendContinuousSize.js.map +0 -1
  1381. package/lib/component/legends.d.ts +0 -3
  1382. package/lib/component/legends.js +0 -13
  1383. package/lib/component/legends.js.map +0 -1
  1384. package/lib/component/scrollbar.d.ts +0 -10
  1385. package/lib/component/scrollbar.js +0 -45
  1386. package/lib/component/scrollbar.js.map +0 -1
  1387. package/lib/component/scrollbarX.d.ts +0 -7
  1388. package/lib/component/scrollbarX.js +0 -13
  1389. package/lib/component/scrollbarX.js.map +0 -1
  1390. package/lib/component/scrollbarY.d.ts +0 -7
  1391. package/lib/component/scrollbarY.js +0 -13
  1392. package/lib/component/scrollbarY.js.map +0 -1
  1393. package/lib/component/slider.d.ts +0 -13
  1394. package/lib/component/slider.js +0 -99
  1395. package/lib/component/slider.js.map +0 -1
  1396. package/lib/component/sliderX.d.ts +0 -7
  1397. package/lib/component/sliderX.js +0 -13
  1398. package/lib/component/sliderX.js.map +0 -1
  1399. package/lib/component/sliderY.d.ts +0 -7
  1400. package/lib/component/sliderY.js +0 -13
  1401. package/lib/component/sliderY.js.map +0 -1
  1402. package/lib/component/title.d.ts +0 -6
  1403. package/lib/component/title.js +0 -83
  1404. package/lib/component/title.js.map +0 -1
  1405. package/lib/component/utils.d.ts +0 -36
  1406. package/lib/component/utils.js +0 -162
  1407. package/lib/component/utils.js.map +0 -1
  1408. package/lib/composition/d3Projection.d.ts +0 -1
  1409. package/lib/composition/d3Projection.js +0 -36
  1410. package/lib/composition/d3Projection.js.map +0 -1
  1411. package/lib/composition/facetCircle.d.ts +0 -7
  1412. package/lib/composition/facetCircle.js +0 -89
  1413. package/lib/composition/facetCircle.js.map +0 -1
  1414. package/lib/composition/facetRect.d.ts +0 -31
  1415. package/lib/composition/facetRect.js +0 -301
  1416. package/lib/composition/facetRect.js.map +0 -1
  1417. package/lib/composition/geoPath.d.ts +0 -7
  1418. package/lib/composition/geoPath.js +0 -41
  1419. package/lib/composition/geoPath.js.map +0 -1
  1420. package/lib/composition/geoView.d.ts +0 -7
  1421. package/lib/composition/geoView.js +0 -246
  1422. package/lib/composition/geoView.js.map +0 -1
  1423. package/lib/composition/index.d.ts +0 -18
  1424. package/lib/composition/index.js +0 -24
  1425. package/lib/composition/index.js.map +0 -1
  1426. package/lib/composition/mark.d.ts +0 -4
  1427. package/lib/composition/mark.js +0 -55
  1428. package/lib/composition/mark.js.map +0 -1
  1429. package/lib/composition/repeatMatrix.d.ts +0 -8
  1430. package/lib/composition/repeatMatrix.js +0 -156
  1431. package/lib/composition/repeatMatrix.js.map +0 -1
  1432. package/lib/composition/spaceFlex.d.ts +0 -7
  1433. package/lib/composition/spaceFlex.js +0 -44
  1434. package/lib/composition/spaceFlex.js.map +0 -1
  1435. package/lib/composition/spaceLayer.d.ts +0 -7
  1436. package/lib/composition/spaceLayer.js +0 -33
  1437. package/lib/composition/spaceLayer.js.map +0 -1
  1438. package/lib/composition/timingKeyframe.d.ts +0 -7
  1439. package/lib/composition/timingKeyframe.js +0 -84
  1440. package/lib/composition/timingKeyframe.js.map +0 -1
  1441. package/lib/composition/utils.d.ts +0 -18
  1442. package/lib/composition/utils.js +0 -48
  1443. package/lib/composition/utils.js.map +0 -1
  1444. package/lib/composition/view.d.ts +0 -9
  1445. package/lib/composition/view.js +0 -37
  1446. package/lib/composition/view.js.map +0 -1
  1447. package/lib/coordinate/cartesian.d.ts +0 -7
  1448. package/lib/coordinate/cartesian.js +0 -10
  1449. package/lib/coordinate/cartesian.js.map +0 -1
  1450. package/lib/coordinate/fisheye.d.ts +0 -7
  1451. package/lib/coordinate/fisheye.js +0 -10
  1452. package/lib/coordinate/fisheye.js.map +0 -1
  1453. package/lib/coordinate/helix.d.ts +0 -7
  1454. package/lib/coordinate/helix.js +0 -15
  1455. package/lib/coordinate/helix.js.map +0 -1
  1456. package/lib/coordinate/index.d.ts +0 -18
  1457. package/lib/coordinate/index.js +0 -25
  1458. package/lib/coordinate/index.js.map +0 -1
  1459. package/lib/coordinate/parallel.d.ts +0 -7
  1460. package/lib/coordinate/parallel.js +0 -10
  1461. package/lib/coordinate/parallel.js.map +0 -1
  1462. package/lib/coordinate/polar.d.ts +0 -15
  1463. package/lib/coordinate/polar.js +0 -31
  1464. package/lib/coordinate/polar.js.map +0 -1
  1465. package/lib/coordinate/radar.d.ts +0 -7
  1466. package/lib/coordinate/radar.js +0 -18
  1467. package/lib/coordinate/radar.js.map +0 -1
  1468. package/lib/coordinate/radial.d.ts +0 -14
  1469. package/lib/coordinate/radial.js +0 -30
  1470. package/lib/coordinate/radial.js.map +0 -1
  1471. package/lib/coordinate/theta.d.ts +0 -15
  1472. package/lib/coordinate/theta.js +0 -28
  1473. package/lib/coordinate/theta.js.map +0 -1
  1474. package/lib/coordinate/transpose.d.ts +0 -7
  1475. package/lib/coordinate/transpose.js +0 -15
  1476. package/lib/coordinate/transpose.js.map +0 -1
  1477. package/lib/data/arc.d.ts +0 -6
  1478. package/lib/data/arc.js +0 -15
  1479. package/lib/data/arc.js.map +0 -1
  1480. package/lib/data/cluster.d.ts +0 -7
  1481. package/lib/data/cluster.js +0 -42
  1482. package/lib/data/cluster.js.map +0 -1
  1483. package/lib/data/custom.d.ts +0 -7
  1484. package/lib/data/custom.js +0 -14
  1485. package/lib/data/custom.js.map +0 -1
  1486. package/lib/data/ema.d.ts +0 -10
  1487. package/lib/data/ema.js +0 -49
  1488. package/lib/data/ema.js.map +0 -1
  1489. package/lib/data/fetch.d.ts +0 -4
  1490. package/lib/data/fetch.js +0 -32
  1491. package/lib/data/fetch.js.map +0 -1
  1492. package/lib/data/filter.d.ts +0 -9
  1493. package/lib/data/filter.js +0 -18
  1494. package/lib/data/filter.js.map +0 -1
  1495. package/lib/data/fold.d.ts +0 -10
  1496. package/lib/data/fold.js +0 -23
  1497. package/lib/data/fold.js.map +0 -1
  1498. package/lib/data/index.d.ts +0 -42
  1499. package/lib/data/index.js +0 -46
  1500. package/lib/data/index.js.map +0 -1
  1501. package/lib/data/inline.d.ts +0 -4
  1502. package/lib/data/inline.js +0 -10
  1503. package/lib/data/inline.js.map +0 -1
  1504. package/lib/data/join.d.ts +0 -7
  1505. package/lib/data/join.js +0 -26
  1506. package/lib/data/join.js.map +0 -1
  1507. package/lib/data/kde.d.ts +0 -10
  1508. package/lib/data/kde.js +0 -38
  1509. package/lib/data/kde.js.map +0 -1
  1510. package/lib/data/log.d.ts +0 -7
  1511. package/lib/data/log.js +0 -15
  1512. package/lib/data/log.js.map +0 -1
  1513. package/lib/data/map.d.ts +0 -7
  1514. package/lib/data/map.js +0 -14
  1515. package/lib/data/map.js.map +0 -1
  1516. package/lib/data/pick.d.ts +0 -7
  1517. package/lib/data/pick.js +0 -22
  1518. package/lib/data/pick.js.map +0 -1
  1519. package/lib/data/rename.d.ts +0 -8
  1520. package/lib/data/rename.js +0 -21
  1521. package/lib/data/rename.js.map +0 -1
  1522. package/lib/data/sankey.d.ts +0 -7
  1523. package/lib/data/sankey.js +0 -81
  1524. package/lib/data/sankey.js.map +0 -1
  1525. package/lib/data/slice.d.ts +0 -8
  1526. package/lib/data/slice.js +0 -14
  1527. package/lib/data/slice.js.map +0 -1
  1528. package/lib/data/sort.d.ts +0 -8
  1529. package/lib/data/sort.js +0 -17
  1530. package/lib/data/sort.js.map +0 -1
  1531. package/lib/data/sortBy.d.ts +0 -7
  1532. package/lib/data/sortBy.js +0 -28
  1533. package/lib/data/sortBy.js.map +0 -1
  1534. package/lib/data/tree.d.ts +0 -3
  1535. package/lib/data/tree.js +0 -11
  1536. package/lib/data/tree.js.map +0 -1
  1537. package/lib/data/utils/arc/arc.d.ts +0 -31
  1538. package/lib/data/utils/arc/arc.js +0 -188
  1539. package/lib/data/utils/arc/arc.js.map +0 -1
  1540. package/lib/data/utils/arc/index.d.ts +0 -2
  1541. package/lib/data/utils/arc/index.js +0 -6
  1542. package/lib/data/utils/arc/index.js.map +0 -1
  1543. package/lib/data/utils/arc/sort.d.ts +0 -4
  1544. package/lib/data/utils/arc/sort.js +0 -20
  1545. package/lib/data/utils/arc/sort.js.map +0 -1
  1546. package/lib/data/utils/arc/types.d.ts +0 -51
  1547. package/lib/data/utils/arc/types.js +0 -3
  1548. package/lib/data/utils/arc/types.js.map +0 -1
  1549. package/lib/data/utils/d3-cloud/index.d.ts +0 -1
  1550. package/lib/data/utils/d3-cloud/index.js +0 -402
  1551. package/lib/data/utils/d3-cloud/index.js.map +0 -1
  1552. package/lib/data/utils/d3-sankey/align.d.ts +0 -4
  1553. package/lib/data/utils/d3-sankey/align.js +0 -28
  1554. package/lib/data/utils/d3-sankey/align.js.map +0 -1
  1555. package/lib/data/utils/d3-sankey/constant.d.ts +0 -1
  1556. package/lib/data/utils/d3-sankey/constant.js +0 -10
  1557. package/lib/data/utils/d3-sankey/constant.js.map +0 -1
  1558. package/lib/data/utils/d3-sankey/index.d.ts +0 -12
  1559. package/lib/data/utils/d3-sankey/index.js +0 -20
  1560. package/lib/data/utils/d3-sankey/index.js.map +0 -1
  1561. package/lib/data/utils/d3-sankey/sankey.d.ts +0 -24
  1562. package/lib/data/utils/d3-sankey/sankey.js +0 -392
  1563. package/lib/data/utils/d3-sankey/sankey.js.map +0 -1
  1564. package/lib/data/utils/fields.d.ts +0 -6
  1565. package/lib/data/utils/fields.js +0 -19
  1566. package/lib/data/utils/fields.js.map +0 -1
  1567. package/lib/data/utils/flow.d.ts +0 -9
  1568. package/lib/data/utils/flow.js +0 -49
  1569. package/lib/data/utils/flow.js.map +0 -1
  1570. package/lib/data/utils/memo.d.ts +0 -17
  1571. package/lib/data/utils/memo.js +0 -85
  1572. package/lib/data/utils/memo.js.map +0 -1
  1573. package/lib/data/utils/venn/circleintersection.d.ts +0 -33
  1574. package/lib/data/utils/venn/circleintersection.js +0 -202
  1575. package/lib/data/utils/venn/circleintersection.js.map +0 -1
  1576. package/lib/data/utils/venn/diagram.d.ts +0 -2
  1577. package/lib/data/utils/venn/diagram.js +0 -48
  1578. package/lib/data/utils/venn/diagram.js.map +0 -1
  1579. package/lib/data/utils/venn/index.d.ts +0 -5
  1580. package/lib/data/utils/venn/index.js +0 -12
  1581. package/lib/data/utils/venn/index.js.map +0 -1
  1582. package/lib/data/utils/venn/layout.d.ts +0 -27
  1583. package/lib/data/utils/venn/layout.js +0 -620
  1584. package/lib/data/utils/venn/layout.js.map +0 -1
  1585. package/lib/data/venn.d.ts +0 -7
  1586. package/lib/data/venn.js +0 -38
  1587. package/lib/data/venn.js.map +0 -1
  1588. package/lib/data/wordCloud.d.ts +0 -110
  1589. package/lib/data/wordCloud.js +0 -127
  1590. package/lib/data/wordCloud.js.map +0 -1
  1591. package/lib/encode/column.d.ts +0 -7
  1592. package/lib/encode/column.js +0 -12
  1593. package/lib/encode/column.js.map +0 -1
  1594. package/lib/encode/constant.d.ts +0 -7
  1595. package/lib/encode/constant.js +0 -12
  1596. package/lib/encode/constant.js.map +0 -1
  1597. package/lib/encode/field.d.ts +0 -7
  1598. package/lib/encode/field.js +0 -12
  1599. package/lib/encode/field.js.map +0 -1
  1600. package/lib/encode/index.d.ts +0 -8
  1601. package/lib/encode/index.js +0 -12
  1602. package/lib/encode/index.js.map +0 -1
  1603. package/lib/encode/transform.d.ts +0 -9
  1604. package/lib/encode/transform.js +0 -14
  1605. package/lib/encode/transform.js.map +0 -1
  1606. package/lib/exports.d.ts +0 -12
  1607. package/lib/exports.js +0 -55
  1608. package/lib/exports.js.map +0 -1
  1609. package/lib/index.d.ts +0 -356
  1610. package/lib/index.js +0 -31
  1611. package/lib/index.js.map +0 -1
  1612. package/lib/interaction/brushAxisHighlight.d.ts +0 -29
  1613. package/lib/interaction/brushAxisHighlight.js +0 -286
  1614. package/lib/interaction/brushAxisHighlight.js.map +0 -1
  1615. package/lib/interaction/brushFilter.d.ts +0 -18
  1616. package/lib/interaction/brushFilter.js +0 -147
  1617. package/lib/interaction/brushFilter.js.map +0 -1
  1618. package/lib/interaction/brushHighlight.d.ts +0 -48
  1619. package/lib/interaction/brushHighlight.js +0 -592
  1620. package/lib/interaction/brushHighlight.js.map +0 -1
  1621. package/lib/interaction/brushXFilter.d.ts +0 -1
  1622. package/lib/interaction/brushXFilter.js +0 -10
  1623. package/lib/interaction/brushXFilter.js.map +0 -1
  1624. package/lib/interaction/brushXHighlight.d.ts +0 -7
  1625. package/lib/interaction/brushXHighlight.js +0 -14
  1626. package/lib/interaction/brushXHighlight.js.map +0 -1
  1627. package/lib/interaction/brushYFilter.d.ts +0 -1
  1628. package/lib/interaction/brushYFilter.js +0 -10
  1629. package/lib/interaction/brushYFilter.js.map +0 -1
  1630. package/lib/interaction/brushYHighlight.d.ts +0 -7
  1631. package/lib/interaction/brushYHighlight.js +0 -14
  1632. package/lib/interaction/brushYHighlight.js.map +0 -1
  1633. package/lib/interaction/chartIndex.d.ts +0 -9
  1634. package/lib/interaction/chartIndex.js +0 -182
  1635. package/lib/interaction/chartIndex.js.map +0 -1
  1636. package/lib/interaction/elementHighlight.d.ts +0 -23
  1637. package/lib/interaction/elementHighlight.js +0 -174
  1638. package/lib/interaction/elementHighlight.js.map +0 -1
  1639. package/lib/interaction/elementHighlightByColor.d.ts +0 -6
  1640. package/lib/interaction/elementHighlightByColor.js +0 -13
  1641. package/lib/interaction/elementHighlightByColor.js.map +0 -1
  1642. package/lib/interaction/elementHighlightByX.d.ts +0 -6
  1643. package/lib/interaction/elementHighlightByX.js +0 -13
  1644. package/lib/interaction/elementHighlightByX.js.map +0 -1
  1645. package/lib/interaction/elementPointMove.d.ts +0 -9
  1646. package/lib/interaction/elementPointMove.js +0 -510
  1647. package/lib/interaction/elementPointMove.js.map +0 -1
  1648. package/lib/interaction/elementSelect.d.ts +0 -24
  1649. package/lib/interaction/elementSelect.js +0 -239
  1650. package/lib/interaction/elementSelect.js.map +0 -1
  1651. package/lib/interaction/elementSelectByColor.d.ts +0 -6
  1652. package/lib/interaction/elementSelectByColor.js +0 -13
  1653. package/lib/interaction/elementSelectByColor.js.map +0 -1
  1654. package/lib/interaction/elementSelectByX.d.ts +0 -6
  1655. package/lib/interaction/elementSelectByX.js +0 -13
  1656. package/lib/interaction/elementSelectByX.js.map +0 -1
  1657. package/lib/interaction/event.d.ts +0 -6
  1658. package/lib/interaction/event.js +0 -133
  1659. package/lib/interaction/event.js.map +0 -1
  1660. package/lib/interaction/fisheye.d.ts +0 -4
  1661. package/lib/interaction/fisheye.js +0 -61
  1662. package/lib/interaction/fisheye.js.map +0 -1
  1663. package/lib/interaction/index.d.ts +0 -24
  1664. package/lib/interaction/index.js +0 -52
  1665. package/lib/interaction/index.js.map +0 -1
  1666. package/lib/interaction/legendFilter.d.ts +0 -14
  1667. package/lib/interaction/legendFilter.js +0 -304
  1668. package/lib/interaction/legendFilter.js.map +0 -1
  1669. package/lib/interaction/legendHighlight.d.ts +0 -1
  1670. package/lib/interaction/legendHighlight.js +0 -129
  1671. package/lib/interaction/legendHighlight.js.map +0 -1
  1672. package/lib/interaction/poptip.d.ts +0 -10
  1673. package/lib/interaction/poptip.js +0 -98
  1674. package/lib/interaction/poptip.js.map +0 -1
  1675. package/lib/interaction/scrollbarFilter.d.ts +0 -2
  1676. package/lib/interaction/scrollbarFilter.js +0 -31
  1677. package/lib/interaction/scrollbarFilter.js.map +0 -1
  1678. package/lib/interaction/sliderFilter.d.ts +0 -5
  1679. package/lib/interaction/sliderFilter.js +0 -177
  1680. package/lib/interaction/sliderFilter.js.map +0 -1
  1681. package/lib/interaction/tooltip.d.ts +0 -16
  1682. package/lib/interaction/tooltip.js +0 -915
  1683. package/lib/interaction/tooltip.js.map +0 -1
  1684. package/lib/interaction/treemapDrillDown.d.ts +0 -10
  1685. package/lib/interaction/treemapDrillDown.js +0 -230
  1686. package/lib/interaction/treemapDrillDown.js.map +0 -1
  1687. package/lib/interaction/utils.d.ts +0 -68
  1688. package/lib/interaction/utils.js +0 -507
  1689. package/lib/interaction/utils.js.map +0 -1
  1690. package/lib/label-transform/contrastReverse.d.ts +0 -9
  1691. package/lib/label-transform/contrastReverse.js +0 -54
  1692. package/lib/label-transform/contrastReverse.js.map +0 -1
  1693. package/lib/label-transform/exceedAdjust.d.ts +0 -7
  1694. package/lib/label-transform/exceedAdjust.js +0 -55
  1695. package/lib/label-transform/exceedAdjust.js.map +0 -1
  1696. package/lib/label-transform/index.d.ts +0 -10
  1697. package/lib/label-transform/index.js +0 -14
  1698. package/lib/label-transform/index.js.map +0 -1
  1699. package/lib/label-transform/overflowHide.d.ts +0 -7
  1700. package/lib/label-transform/overflowHide.js +0 -23
  1701. package/lib/label-transform/overflowHide.js.map +0 -1
  1702. package/lib/label-transform/overlapDodgeY.d.ts +0 -7
  1703. package/lib/label-transform/overlapDodgeY.js +0 -79
  1704. package/lib/label-transform/overlapDodgeY.js.map +0 -1
  1705. package/lib/label-transform/overlapHide.d.ts +0 -7
  1706. package/lib/label-transform/overlapHide.js +0 -29
  1707. package/lib/label-transform/overlapHide.js.map +0 -1
  1708. package/lib/lib/builtinlib.d.ts +0 -13
  1709. package/lib/lib/builtinlib.js +0 -25
  1710. package/lib/lib/builtinlib.js.map +0 -1
  1711. package/lib/lib/core.d.ts +0 -158
  1712. package/lib/lib/core.js +0 -177
  1713. package/lib/lib/core.js.map +0 -1
  1714. package/lib/lib/geo.d.ts +0 -4
  1715. package/lib/lib/geo.js +0 -13
  1716. package/lib/lib/geo.js.map +0 -1
  1717. package/lib/lib/graph.d.ts +0 -10
  1718. package/lib/lib/graph.js +0 -19
  1719. package/lib/lib/graph.js.map +0 -1
  1720. package/lib/lib/index.d.ts +0 -6
  1721. package/lib/lib/index.js +0 -16
  1722. package/lib/lib/index.js.map +0 -1
  1723. package/lib/lib/lite.d.ts +0 -64
  1724. package/lib/lib/lite.js +0 -82
  1725. package/lib/lib/lite.js.map +0 -1
  1726. package/lib/lib/plot.d.ts +0 -7
  1727. package/lib/lib/plot.js +0 -16
  1728. package/lib/lib/plot.js.map +0 -1
  1729. package/lib/lib/std.d.ts +0 -171
  1730. package/lib/lib/std.js +0 -12
  1731. package/lib/lib/std.js.map +0 -1
  1732. package/lib/mark/area.d.ts +0 -4
  1733. package/lib/mark/area.js +0 -90
  1734. package/lib/mark/area.js.map +0 -1
  1735. package/lib/mark/box.d.ts +0 -34
  1736. package/lib/mark/box.js +0 -100
  1737. package/lib/mark/box.js.map +0 -1
  1738. package/lib/mark/boxplot.d.ts +0 -4
  1739. package/lib/mark/boxplot.js +0 -106
  1740. package/lib/mark/boxplot.js.map +0 -1
  1741. package/lib/mark/cell.d.ts +0 -9
  1742. package/lib/mark/cell.js +0 -54
  1743. package/lib/mark/cell.js.map +0 -1
  1744. package/lib/mark/chord.d.ts +0 -4
  1745. package/lib/mark/chord.js +0 -124
  1746. package/lib/mark/chord.js.map +0 -1
  1747. package/lib/mark/connector.d.ts +0 -4
  1748. package/lib/mark/connector.js +0 -27
  1749. package/lib/mark/connector.js.map +0 -1
  1750. package/lib/mark/density.d.ts +0 -4
  1751. package/lib/mark/density.js +0 -68
  1752. package/lib/mark/density.js.map +0 -1
  1753. package/lib/mark/forceGraph.d.ts +0 -4
  1754. package/lib/mark/forceGraph.js +0 -119
  1755. package/lib/mark/forceGraph.js.map +0 -1
  1756. package/lib/mark/gauge.d.ts +0 -11
  1757. package/lib/mark/gauge.js +0 -182
  1758. package/lib/mark/gauge.js.map +0 -1
  1759. package/lib/mark/heatmap.d.ts +0 -7
  1760. package/lib/mark/heatmap.js +0 -45
  1761. package/lib/mark/heatmap.js.map +0 -1
  1762. package/lib/mark/image.d.ts +0 -4
  1763. package/lib/mark/image.js +0 -44
  1764. package/lib/mark/image.js.map +0 -1
  1765. package/lib/mark/index.d.ts +0 -62
  1766. package/lib/mark/index.js +0 -68
  1767. package/lib/mark/index.js.map +0 -1
  1768. package/lib/mark/interval.d.ts +0 -12
  1769. package/lib/mark/interval.js +0 -81
  1770. package/lib/mark/interval.js.map +0 -1
  1771. package/lib/mark/line.d.ts +0 -7
  1772. package/lib/mark/line.js +0 -100
  1773. package/lib/mark/line.js.map +0 -1
  1774. package/lib/mark/lineX.d.ts +0 -4
  1775. package/lib/mark/lineX.js +0 -36
  1776. package/lib/mark/lineX.js.map +0 -1
  1777. package/lib/mark/lineY.d.ts +0 -4
  1778. package/lib/mark/lineY.js +0 -36
  1779. package/lib/mark/lineY.js.map +0 -1
  1780. package/lib/mark/link.d.ts +0 -7
  1781. package/lib/mark/link.js +0 -45
  1782. package/lib/mark/link.js.map +0 -1
  1783. package/lib/mark/liquid.d.ts +0 -7
  1784. package/lib/mark/liquid.js +0 -88
  1785. package/lib/mark/liquid.js.map +0 -1
  1786. package/lib/mark/pack.d.ts +0 -4
  1787. package/lib/mark/pack.js +0 -82
  1788. package/lib/mark/pack.js.map +0 -1
  1789. package/lib/mark/path.d.ts +0 -7
  1790. package/lib/mark/path.js +0 -34
  1791. package/lib/mark/path.js.map +0 -1
  1792. package/lib/mark/point.d.ts +0 -9
  1793. package/lib/mark/point.js +0 -88
  1794. package/lib/mark/point.js.map +0 -1
  1795. package/lib/mark/polygon.d.ts +0 -7
  1796. package/lib/mark/polygon.js +0 -49
  1797. package/lib/mark/polygon.js.map +0 -1
  1798. package/lib/mark/range.d.ts +0 -8
  1799. package/lib/mark/range.js +0 -52
  1800. package/lib/mark/range.js.map +0 -1
  1801. package/lib/mark/rangeX.d.ts +0 -4
  1802. package/lib/mark/rangeX.js +0 -27
  1803. package/lib/mark/rangeX.js.map +0 -1
  1804. package/lib/mark/rangeY.d.ts +0 -4
  1805. package/lib/mark/rangeY.js +0 -27
  1806. package/lib/mark/rangeY.js.map +0 -1
  1807. package/lib/mark/rect.d.ts +0 -4
  1808. package/lib/mark/rect.js +0 -41
  1809. package/lib/mark/rect.js.map +0 -1
  1810. package/lib/mark/sankey.d.ts +0 -8
  1811. package/lib/mark/sankey.js +0 -117
  1812. package/lib/mark/sankey.js.map +0 -1
  1813. package/lib/mark/shape.d.ts +0 -7
  1814. package/lib/mark/shape.js +0 -44
  1815. package/lib/mark/shape.js.map +0 -1
  1816. package/lib/mark/text.d.ts +0 -4
  1817. package/lib/mark/text.js +0 -47
  1818. package/lib/mark/text.js.map +0 -1
  1819. package/lib/mark/tree.d.ts +0 -4
  1820. package/lib/mark/tree.js +0 -75
  1821. package/lib/mark/tree.js.map +0 -1
  1822. package/lib/mark/treemap.d.ts +0 -4
  1823. package/lib/mark/treemap.js +0 -109
  1824. package/lib/mark/treemap.js.map +0 -1
  1825. package/lib/mark/utils.d.ts +0 -67
  1826. package/lib/mark/utils.js +0 -129
  1827. package/lib/mark/utils.js.map +0 -1
  1828. package/lib/mark/vector.d.ts +0 -8
  1829. package/lib/mark/vector.js +0 -48
  1830. package/lib/mark/vector.js.map +0 -1
  1831. package/lib/mark/wordCloud.d.ts +0 -4
  1832. package/lib/mark/wordCloud.js +0 -63
  1833. package/lib/mark/wordCloud.js.map +0 -1
  1834. package/lib/palette/category10.d.ts +0 -7
  1835. package/lib/palette/category10.js +0 -23
  1836. package/lib/palette/category10.js.map +0 -1
  1837. package/lib/palette/category20.d.ts +0 -7
  1838. package/lib/palette/category20.js +0 -33
  1839. package/lib/palette/category20.js.map +0 -1
  1840. package/lib/palette/index.d.ts +0 -4
  1841. package/lib/palette/index.js +0 -8
  1842. package/lib/palette/index.js.map +0 -1
  1843. package/lib/runtime/component.d.ts +0 -18
  1844. package/lib/runtime/component.js +0 -784
  1845. package/lib/runtime/component.js.map +0 -1
  1846. package/lib/runtime/constant.d.ts +0 -9
  1847. package/lib/runtime/constant.js +0 -13
  1848. package/lib/runtime/constant.js.map +0 -1
  1849. package/lib/runtime/coordinate.d.ts +0 -24
  1850. package/lib/runtime/coordinate.js +0 -103
  1851. package/lib/runtime/coordinate.js.map +0 -1
  1852. package/lib/runtime/index.d.ts +0 -9
  1853. package/lib/runtime/index.js +0 -30
  1854. package/lib/runtime/index.js.map +0 -1
  1855. package/lib/runtime/layout.d.ts +0 -10
  1856. package/lib/runtime/layout.js +0 -589
  1857. package/lib/runtime/layout.js.map +0 -1
  1858. package/lib/runtime/library.d.ts +0 -5
  1859. package/lib/runtime/library.js +0 -42
  1860. package/lib/runtime/library.js.map +0 -1
  1861. package/lib/runtime/mark.d.ts +0 -6
  1862. package/lib/runtime/mark.js +0 -135
  1863. package/lib/runtime/mark.js.map +0 -1
  1864. package/lib/runtime/option-preprocess/index.d.ts +0 -2
  1865. package/lib/runtime/option-preprocess/index.js +0 -20
  1866. package/lib/runtime/option-preprocess/index.js.map +0 -1
  1867. package/lib/runtime/option-preprocess/style.d.ts +0 -2
  1868. package/lib/runtime/option-preprocess/style.js +0 -16
  1869. package/lib/runtime/option-preprocess/style.js.map +0 -1
  1870. package/lib/runtime/plot.d.ts +0 -5
  1871. package/lib/runtime/plot.js +0 -1217
  1872. package/lib/runtime/plot.js.map +0 -1
  1873. package/lib/runtime/render.d.ts +0 -5
  1874. package/lib/runtime/render.js +0 -175
  1875. package/lib/runtime/render.js.map +0 -1
  1876. package/lib/runtime/scale.d.ts +0 -14
  1877. package/lib/runtime/scale.js +0 -594
  1878. package/lib/runtime/scale.js.map +0 -1
  1879. package/lib/runtime/transform.d.ts +0 -16
  1880. package/lib/runtime/transform.js +0 -300
  1881. package/lib/runtime/transform.js.map +0 -1
  1882. package/lib/runtime/types/common.d.ts +0 -159
  1883. package/lib/runtime/types/common.js +0 -3
  1884. package/lib/runtime/types/common.js.map +0 -1
  1885. package/lib/runtime/types/component.d.ts +0 -103
  1886. package/lib/runtime/types/component.js +0 -3
  1887. package/lib/runtime/types/component.js.map +0 -1
  1888. package/lib/runtime/types/data.d.ts +0 -8
  1889. package/lib/runtime/types/data.js +0 -3
  1890. package/lib/runtime/types/data.js.map +0 -1
  1891. package/lib/runtime/types/encode.d.ts +0 -23
  1892. package/lib/runtime/types/encode.js +0 -3
  1893. package/lib/runtime/types/encode.js.map +0 -1
  1894. package/lib/runtime/types/mark.d.ts +0 -36
  1895. package/lib/runtime/types/mark.js +0 -3
  1896. package/lib/runtime/types/mark.js.map +0 -1
  1897. package/lib/runtime/types/options.d.ts +0 -145
  1898. package/lib/runtime/types/options.js +0 -3
  1899. package/lib/runtime/types/options.js.map +0 -1
  1900. package/lib/runtime/types/scale.d.ts +0 -21
  1901. package/lib/runtime/types/scale.js +0 -25
  1902. package/lib/runtime/types/scale.js.map +0 -1
  1903. package/lib/runtime/types/theme.d.ts +0 -91
  1904. package/lib/runtime/types/theme.js +0 -3
  1905. package/lib/runtime/types/theme.js.map +0 -1
  1906. package/lib/runtime/types/transform.d.ts +0 -14
  1907. package/lib/runtime/types/transform.js +0 -3
  1908. package/lib/runtime/types/transform.js.map +0 -1
  1909. package/lib/scale/band.d.ts +0 -4
  1910. package/lib/scale/band.js +0 -10
  1911. package/lib/scale/band.js.map +0 -1
  1912. package/lib/scale/constant.d.ts +0 -4
  1913. package/lib/scale/constant.js +0 -10
  1914. package/lib/scale/constant.js.map +0 -1
  1915. package/lib/scale/identity.d.ts +0 -4
  1916. package/lib/scale/identity.js +0 -10
  1917. package/lib/scale/identity.js.map +0 -1
  1918. package/lib/scale/index.d.ts +0 -28
  1919. package/lib/scale/index.js +0 -32
  1920. package/lib/scale/index.js.map +0 -1
  1921. package/lib/scale/linear.d.ts +0 -4
  1922. package/lib/scale/linear.js +0 -10
  1923. package/lib/scale/linear.js.map +0 -1
  1924. package/lib/scale/log.d.ts +0 -4
  1925. package/lib/scale/log.js +0 -10
  1926. package/lib/scale/log.js.map +0 -1
  1927. package/lib/scale/ordinal.d.ts +0 -4
  1928. package/lib/scale/ordinal.js +0 -10
  1929. package/lib/scale/ordinal.js.map +0 -1
  1930. package/lib/scale/point.d.ts +0 -4
  1931. package/lib/scale/point.js +0 -10
  1932. package/lib/scale/point.js.map +0 -1
  1933. package/lib/scale/pow.d.ts +0 -4
  1934. package/lib/scale/pow.js +0 -10
  1935. package/lib/scale/pow.js.map +0 -1
  1936. package/lib/scale/quantile.d.ts +0 -4
  1937. package/lib/scale/quantile.js +0 -10
  1938. package/lib/scale/quantile.js.map +0 -1
  1939. package/lib/scale/quantize.d.ts +0 -4
  1940. package/lib/scale/quantize.js +0 -10
  1941. package/lib/scale/quantize.js.map +0 -1
  1942. package/lib/scale/sequential.d.ts +0 -4
  1943. package/lib/scale/sequential.js +0 -10
  1944. package/lib/scale/sequential.js.map +0 -1
  1945. package/lib/scale/sqrt.d.ts +0 -4
  1946. package/lib/scale/sqrt.js +0 -10
  1947. package/lib/scale/sqrt.js.map +0 -1
  1948. package/lib/scale/threshold.d.ts +0 -4
  1949. package/lib/scale/threshold.js +0 -10
  1950. package/lib/scale/threshold.js.map +0 -1
  1951. package/lib/scale/time.d.ts +0 -4
  1952. package/lib/scale/time.js +0 -10
  1953. package/lib/scale/time.js.map +0 -1
  1954. package/lib/shape/area/area.d.ts +0 -3
  1955. package/lib/shape/area/area.js +0 -16
  1956. package/lib/shape/area/area.js.map +0 -1
  1957. package/lib/shape/area/curve.d.ts +0 -8
  1958. package/lib/shape/area/curve.js +0 -175
  1959. package/lib/shape/area/curve.js.map +0 -1
  1960. package/lib/shape/area/hv.d.ts +0 -3
  1961. package/lib/shape/area/hv.js +0 -13
  1962. package/lib/shape/area/hv.js.map +0 -1
  1963. package/lib/shape/area/hvh.d.ts +0 -3
  1964. package/lib/shape/area/hvh.js +0 -13
  1965. package/lib/shape/area/hvh.js.map +0 -1
  1966. package/lib/shape/area/smooth.d.ts +0 -3
  1967. package/lib/shape/area/smooth.js +0 -32
  1968. package/lib/shape/area/smooth.js.map +0 -1
  1969. package/lib/shape/area/vh.d.ts +0 -3
  1970. package/lib/shape/area/vh.js +0 -13
  1971. package/lib/shape/area/vh.js.map +0 -1
  1972. package/lib/shape/box/box.d.ts +0 -3
  1973. package/lib/shape/box/box.js +0 -94
  1974. package/lib/shape/box/box.js.map +0 -1
  1975. package/lib/shape/box/violin.d.ts +0 -3
  1976. package/lib/shape/box/violin.js +0 -88
  1977. package/lib/shape/box/violin.js.map +0 -1
  1978. package/lib/shape/connector/connector.d.ts +0 -11
  1979. package/lib/shape/connector/connector.js +0 -86
  1980. package/lib/shape/connector/connector.js.map +0 -1
  1981. package/lib/shape/density/density.d.ts +0 -8
  1982. package/lib/shape/density/density.js +0 -53
  1983. package/lib/shape/density/density.js.map +0 -1
  1984. package/lib/shape/gauge/round.d.ts +0 -3
  1985. package/lib/shape/gauge/round.js +0 -44
  1986. package/lib/shape/gauge/round.js.map +0 -1
  1987. package/lib/shape/heatmap/heatmap.d.ts +0 -4
  1988. package/lib/shape/heatmap/heatmap.js +0 -71
  1989. package/lib/shape/heatmap/heatmap.js.map +0 -1
  1990. package/lib/shape/heatmap/renderer/gradient.d.ts +0 -5
  1991. package/lib/shape/heatmap/renderer/gradient.js +0 -17
  1992. package/lib/shape/heatmap/renderer/gradient.js.map +0 -1
  1993. package/lib/shape/heatmap/renderer/index.d.ts +0 -6
  1994. package/lib/shape/heatmap/renderer/index.js +0 -126
  1995. package/lib/shape/heatmap/renderer/index.js.map +0 -1
  1996. package/lib/shape/heatmap/renderer/types.d.ts +0 -36
  1997. package/lib/shape/heatmap/renderer/types.js +0 -3
  1998. package/lib/shape/heatmap/renderer/types.js.map +0 -1
  1999. package/lib/shape/image/image.d.ts +0 -3
  2000. package/lib/shape/image/image.js +0 -50
  2001. package/lib/shape/image/image.js.map +0 -1
  2002. package/lib/shape/index.d.ts +0 -114
  2003. package/lib/shape/index.js +0 -133
  2004. package/lib/shape/index.js.map +0 -1
  2005. package/lib/shape/interval/color.d.ts +0 -25
  2006. package/lib/shape/interval/color.js +0 -138
  2007. package/lib/shape/interval/color.js.map +0 -1
  2008. package/lib/shape/interval/funnel.d.ts +0 -10
  2009. package/lib/shape/interval/funnel.js +0 -61
  2010. package/lib/shape/interval/funnel.js.map +0 -1
  2011. package/lib/shape/interval/hollow.d.ts +0 -6
  2012. package/lib/shape/interval/hollow.js +0 -13
  2013. package/lib/shape/interval/hollow.js.map +0 -1
  2014. package/lib/shape/interval/pyramid.d.ts +0 -6
  2015. package/lib/shape/interval/pyramid.js +0 -42
  2016. package/lib/shape/interval/pyramid.js.map +0 -1
  2017. package/lib/shape/interval/rect.d.ts +0 -20
  2018. package/lib/shape/interval/rect.js +0 -14
  2019. package/lib/shape/interval/rect.js.map +0 -1
  2020. package/lib/shape/label/label.d.ts +0 -13
  2021. package/lib/shape/label/label.js +0 -98
  2022. package/lib/shape/label/label.js.map +0 -1
  2023. package/lib/shape/label/position/area.d.ts +0 -13
  2024. package/lib/shape/label/position/area.js +0 -32
  2025. package/lib/shape/label/position/area.js.map +0 -1
  2026. package/lib/shape/label/position/bottom.d.ts +0 -1
  2027. package/lib/shape/label/position/bottom.js +0 -6
  2028. package/lib/shape/label/position/bottom.js.map +0 -1
  2029. package/lib/shape/label/position/bottomLeft.d.ts +0 -1
  2030. package/lib/shape/label/position/bottomLeft.js +0 -6
  2031. package/lib/shape/label/position/bottomLeft.js.map +0 -1
  2032. package/lib/shape/label/position/bottomRight.d.ts +0 -1
  2033. package/lib/shape/label/position/bottomRight.js +0 -6
  2034. package/lib/shape/label/position/bottomRight.js.map +0 -1
  2035. package/lib/shape/label/position/default.d.ts +0 -18
  2036. package/lib/shape/label/position/default.js +0 -121
  2037. package/lib/shape/label/position/default.js.map +0 -1
  2038. package/lib/shape/label/position/index.d.ts +0 -13
  2039. package/lib/shape/label/position/index.js +0 -30
  2040. package/lib/shape/label/position/index.js.map +0 -1
  2041. package/lib/shape/label/position/inside.d.ts +0 -1
  2042. package/lib/shape/label/position/inside.js +0 -6
  2043. package/lib/shape/label/position/inside.js.map +0 -1
  2044. package/lib/shape/label/position/left.d.ts +0 -1
  2045. package/lib/shape/label/position/left.js +0 -6
  2046. package/lib/shape/label/position/left.js.map +0 -1
  2047. package/lib/shape/label/position/outside.d.ts +0 -18
  2048. package/lib/shape/label/position/outside.js +0 -75
  2049. package/lib/shape/label/position/outside.js.map +0 -1
  2050. package/lib/shape/label/position/right.d.ts +0 -1
  2051. package/lib/shape/label/position/right.js +0 -6
  2052. package/lib/shape/label/position/right.js.map +0 -1
  2053. package/lib/shape/label/position/spider.d.ts +0 -8
  2054. package/lib/shape/label/position/spider.js +0 -54
  2055. package/lib/shape/label/position/spider.js.map +0 -1
  2056. package/lib/shape/label/position/surround.d.ts +0 -7
  2057. package/lib/shape/label/position/surround.js +0 -39
  2058. package/lib/shape/label/position/surround.js.map +0 -1
  2059. package/lib/shape/label/position/top.d.ts +0 -1
  2060. package/lib/shape/label/position/top.js +0 -6
  2061. package/lib/shape/label/position/top.js.map +0 -1
  2062. package/lib/shape/label/position/topLeft.d.ts +0 -1
  2063. package/lib/shape/label/position/topLeft.js +0 -6
  2064. package/lib/shape/label/position/topLeft.js.map +0 -1
  2065. package/lib/shape/label/position/topRight.d.ts +0 -1
  2066. package/lib/shape/label/position/topRight.js +0 -6
  2067. package/lib/shape/label/position/topRight.js.map +0 -1
  2068. package/lib/shape/label/position/utils.d.ts +0 -2
  2069. package/lib/shape/label/position/utils.js +0 -73
  2070. package/lib/shape/label/position/utils.js.map +0 -1
  2071. package/lib/shape/line/curve.d.ts +0 -8
  2072. package/lib/shape/line/curve.js +0 -140
  2073. package/lib/shape/line/curve.js.map +0 -1
  2074. package/lib/shape/line/hv.d.ts +0 -3
  2075. package/lib/shape/line/hv.js +0 -11
  2076. package/lib/shape/line/hv.js.map +0 -1
  2077. package/lib/shape/line/hvh.d.ts +0 -3
  2078. package/lib/shape/line/hvh.js +0 -11
  2079. package/lib/shape/line/hvh.js.map +0 -1
  2080. package/lib/shape/line/line.d.ts +0 -3
  2081. package/lib/shape/line/line.js +0 -16
  2082. package/lib/shape/line/line.js.map +0 -1
  2083. package/lib/shape/line/smooth.d.ts +0 -3
  2084. package/lib/shape/line/smooth.js +0 -32
  2085. package/lib/shape/line/smooth.js.map +0 -1
  2086. package/lib/shape/line/trail.d.ts +0 -3
  2087. package/lib/shape/line/trail.js +0 -81
  2088. package/lib/shape/line/trail.js.map +0 -1
  2089. package/lib/shape/line/vh.d.ts +0 -3
  2090. package/lib/shape/line/vh.js +0 -11
  2091. package/lib/shape/line/vh.js.map +0 -1
  2092. package/lib/shape/lineXY/line.d.ts +0 -24
  2093. package/lib/shape/lineXY/line.js +0 -75
  2094. package/lib/shape/lineXY/line.js.map +0 -1
  2095. package/lib/shape/link/arc.d.ts +0 -8
  2096. package/lib/shape/link/arc.js +0 -59
  2097. package/lib/shape/link/arc.js.map +0 -1
  2098. package/lib/shape/link/link.d.ts +0 -8
  2099. package/lib/shape/link/link.js +0 -22
  2100. package/lib/shape/link/link.js.map +0 -1
  2101. package/lib/shape/link/smooth.d.ts +0 -6
  2102. package/lib/shape/link/smooth.js +0 -47
  2103. package/lib/shape/link/smooth.js.map +0 -1
  2104. package/lib/shape/link/vhv.d.ts +0 -12
  2105. package/lib/shape/link/vhv.js +0 -77
  2106. package/lib/shape/link/vhv.js.map +0 -1
  2107. package/lib/shape/liquid/liquid.d.ts +0 -3
  2108. package/lib/shape/liquid/liquid.js +0 -83
  2109. package/lib/shape/liquid/liquid.js.map +0 -1
  2110. package/lib/shape/liquid/shapes.d.ts +0 -38
  2111. package/lib/shape/liquid/shapes.js +0 -96
  2112. package/lib/shape/liquid/shapes.js.map +0 -1
  2113. package/lib/shape/liquid/wave.d.ts +0 -16
  2114. package/lib/shape/liquid/wave.js +0 -196
  2115. package/lib/shape/liquid/wave.js.map +0 -1
  2116. package/lib/shape/path/color.d.ts +0 -9
  2117. package/lib/shape/path/color.js +0 -42
  2118. package/lib/shape/path/color.js.map +0 -1
  2119. package/lib/shape/path/hollow.d.ts +0 -8
  2120. package/lib/shape/path/hollow.js +0 -18
  2121. package/lib/shape/path/hollow.js.map +0 -1
  2122. package/lib/shape/path/path.d.ts +0 -8
  2123. package/lib/shape/path/path.js +0 -18
  2124. package/lib/shape/path/path.js.map +0 -1
  2125. package/lib/shape/point/bowtie.d.ts +0 -6
  2126. package/lib/shape/point/bowtie.js +0 -13
  2127. package/lib/shape/point/bowtie.js.map +0 -1
  2128. package/lib/shape/point/circle.d.ts +0 -16
  2129. package/lib/shape/point/circle.js +0 -61
  2130. package/lib/shape/point/circle.js.map +0 -1
  2131. package/lib/shape/point/color.d.ts +0 -13
  2132. package/lib/shape/point/color.js +0 -70
  2133. package/lib/shape/point/color.js.map +0 -1
  2134. package/lib/shape/point/cross.d.ts +0 -6
  2135. package/lib/shape/point/cross.js +0 -13
  2136. package/lib/shape/point/cross.js.map +0 -1
  2137. package/lib/shape/point/diamond.d.ts +0 -6
  2138. package/lib/shape/point/diamond.js +0 -13
  2139. package/lib/shape/point/diamond.js.map +0 -1
  2140. package/lib/shape/point/hexagon.d.ts +0 -6
  2141. package/lib/shape/point/hexagon.js +0 -13
  2142. package/lib/shape/point/hexagon.js.map +0 -1
  2143. package/lib/shape/point/hollow.d.ts +0 -6
  2144. package/lib/shape/point/hollow.js +0 -13
  2145. package/lib/shape/point/hollow.js.map +0 -1
  2146. package/lib/shape/point/hollowBowtie.d.ts +0 -6
  2147. package/lib/shape/point/hollowBowtie.js +0 -13
  2148. package/lib/shape/point/hollowBowtie.js.map +0 -1
  2149. package/lib/shape/point/hollowCircle.d.ts +0 -6
  2150. package/lib/shape/point/hollowCircle.js +0 -13
  2151. package/lib/shape/point/hollowCircle.js.map +0 -1
  2152. package/lib/shape/point/hollowDiamond.d.ts +0 -6
  2153. package/lib/shape/point/hollowDiamond.js +0 -13
  2154. package/lib/shape/point/hollowDiamond.js.map +0 -1
  2155. package/lib/shape/point/hollowHexagon.d.ts +0 -6
  2156. package/lib/shape/point/hollowHexagon.js +0 -13
  2157. package/lib/shape/point/hollowHexagon.js.map +0 -1
  2158. package/lib/shape/point/hollowSquare.d.ts +0 -6
  2159. package/lib/shape/point/hollowSquare.js +0 -13
  2160. package/lib/shape/point/hollowSquare.js.map +0 -1
  2161. package/lib/shape/point/hollowTriangle.d.ts +0 -6
  2162. package/lib/shape/point/hollowTriangle.js +0 -13
  2163. package/lib/shape/point/hollowTriangle.js.map +0 -1
  2164. package/lib/shape/point/hollowTriangleDown.d.ts +0 -6
  2165. package/lib/shape/point/hollowTriangleDown.js +0 -13
  2166. package/lib/shape/point/hollowTriangleDown.js.map +0 -1
  2167. package/lib/shape/point/hyphen.d.ts +0 -6
  2168. package/lib/shape/point/hyphen.js +0 -13
  2169. package/lib/shape/point/hyphen.js.map +0 -1
  2170. package/lib/shape/point/line.d.ts +0 -6
  2171. package/lib/shape/point/line.js +0 -13
  2172. package/lib/shape/point/line.js.map +0 -1
  2173. package/lib/shape/point/plus.d.ts +0 -6
  2174. package/lib/shape/point/plus.js +0 -13
  2175. package/lib/shape/point/plus.js.map +0 -1
  2176. package/lib/shape/point/point.d.ts +0 -6
  2177. package/lib/shape/point/point.js +0 -13
  2178. package/lib/shape/point/point.js.map +0 -1
  2179. package/lib/shape/point/square.d.ts +0 -6
  2180. package/lib/shape/point/square.js +0 -13
  2181. package/lib/shape/point/square.js.map +0 -1
  2182. package/lib/shape/point/tick.d.ts +0 -6
  2183. package/lib/shape/point/tick.js +0 -13
  2184. package/lib/shape/point/tick.js.map +0 -1
  2185. package/lib/shape/point/triangle.d.ts +0 -6
  2186. package/lib/shape/point/triangle.js +0 -13
  2187. package/lib/shape/point/triangle.js.map +0 -1
  2188. package/lib/shape/point/triangleDown.d.ts +0 -6
  2189. package/lib/shape/point/triangleDown.js +0 -13
  2190. package/lib/shape/point/triangleDown.js.map +0 -1
  2191. package/lib/shape/polygon/polygon.d.ts +0 -3
  2192. package/lib/shape/polygon/polygon.js +0 -74
  2193. package/lib/shape/polygon/polygon.js.map +0 -1
  2194. package/lib/shape/polygon/ribbon.d.ts +0 -15
  2195. package/lib/shape/polygon/ribbon.js +0 -77
  2196. package/lib/shape/polygon/ribbon.js.map +0 -1
  2197. package/lib/shape/shape/shape.d.ts +0 -6
  2198. package/lib/shape/shape/shape.js +0 -32
  2199. package/lib/shape/shape/shape.js.map +0 -1
  2200. package/lib/shape/text/advance.d.ts +0 -2
  2201. package/lib/shape/text/advance.js +0 -179
  2202. package/lib/shape/text/advance.js.map +0 -1
  2203. package/lib/shape/text/badge.d.ts +0 -7
  2204. package/lib/shape/text/badge.js +0 -82
  2205. package/lib/shape/text/badge.js.map +0 -1
  2206. package/lib/shape/text/tag.d.ts +0 -7
  2207. package/lib/shape/text/tag.js +0 -44
  2208. package/lib/shape/text/tag.js.map +0 -1
  2209. package/lib/shape/text/text.d.ts +0 -6
  2210. package/lib/shape/text/text.js +0 -39
  2211. package/lib/shape/text/text.js.map +0 -1
  2212. package/lib/shape/utils.d.ts +0 -56
  2213. package/lib/shape/utils.js +0 -180
  2214. package/lib/shape/utils.js.map +0 -1
  2215. package/lib/shape/vector/vector.d.ts +0 -8
  2216. package/lib/shape/vector/vector.js +0 -57
  2217. package/lib/shape/vector/vector.js.map +0 -1
  2218. package/lib/spec/animate.d.ts +0 -23
  2219. package/lib/spec/animate.js +0 -3
  2220. package/lib/spec/animate.js.map +0 -1
  2221. package/lib/spec/component.d.ts +0 -72
  2222. package/lib/spec/component.js +0 -3
  2223. package/lib/spec/component.js.map +0 -1
  2224. package/lib/spec/composition.d.ts +0 -196
  2225. package/lib/spec/composition.js +0 -3
  2226. package/lib/spec/composition.js.map +0 -1
  2227. package/lib/spec/coordinate.d.ts +0 -56
  2228. package/lib/spec/coordinate.js +0 -3
  2229. package/lib/spec/coordinate.js.map +0 -1
  2230. package/lib/spec/coordinateTransform.d.ts +0 -13
  2231. package/lib/spec/coordinateTransform.js +0 -3
  2232. package/lib/spec/coordinateTransform.js.map +0 -1
  2233. package/lib/spec/data.d.ts +0 -17
  2234. package/lib/spec/data.js +0 -3
  2235. package/lib/spec/data.js.map +0 -1
  2236. package/lib/spec/dataTransform.d.ts +0 -152
  2237. package/lib/spec/dataTransform.js +0 -3
  2238. package/lib/spec/dataTransform.js.map +0 -1
  2239. package/lib/spec/encode.d.ts +0 -23
  2240. package/lib/spec/encode.js +0 -3
  2241. package/lib/spec/encode.js.map +0 -1
  2242. package/lib/spec/index.d.ts +0 -24
  2243. package/lib/spec/index.js +0 -32
  2244. package/lib/spec/index.js.map +0 -1
  2245. package/lib/spec/interaction.d.ts +0 -143
  2246. package/lib/spec/interaction.js +0 -3
  2247. package/lib/spec/interaction.js.map +0 -1
  2248. package/lib/spec/labelTransform.d.ts +0 -33
  2249. package/lib/spec/labelTransform.js +0 -3
  2250. package/lib/spec/labelTransform.js.map +0 -1
  2251. package/lib/spec/mark.d.ts +0 -209
  2252. package/lib/spec/mark.js +0 -3
  2253. package/lib/spec/mark.js.map +0 -1
  2254. package/lib/spec/palette.d.ts +0 -13
  2255. package/lib/spec/palette.js +0 -3
  2256. package/lib/spec/palette.js.map +0 -1
  2257. package/lib/spec/scale.d.ts +0 -39
  2258. package/lib/spec/scale.js +0 -3
  2259. package/lib/spec/scale.js.map +0 -1
  2260. package/lib/spec/theme.d.ts +0 -21
  2261. package/lib/spec/theme.js +0 -3
  2262. package/lib/spec/theme.js.map +0 -1
  2263. package/lib/spec/transform.d.ts +0 -166
  2264. package/lib/spec/transform.js +0 -3
  2265. package/lib/spec/transform.js.map +0 -1
  2266. package/lib/spec/utils.d.ts +0 -12
  2267. package/lib/spec/utils.js +0 -3
  2268. package/lib/spec/utils.js.map +0 -1
  2269. package/lib/theme/academy.d.ts +0 -20
  2270. package/lib/theme/academy.js +0 -106
  2271. package/lib/theme/academy.js.map +0 -1
  2272. package/lib/theme/classic.d.ts +0 -6
  2273. package/lib/theme/classic.js +0 -17
  2274. package/lib/theme/classic.js.map +0 -1
  2275. package/lib/theme/classicDark.d.ts +0 -6
  2276. package/lib/theme/classicDark.js +0 -16
  2277. package/lib/theme/classicDark.js.map +0 -1
  2278. package/lib/theme/create.d.ts +0 -443
  2279. package/lib/theme/create.js +0 -431
  2280. package/lib/theme/create.js.map +0 -1
  2281. package/lib/theme/dark.d.ts +0 -20
  2282. package/lib/theme/dark.js +0 -81
  2283. package/lib/theme/dark.js.map +0 -1
  2284. package/lib/theme/index.d.ts +0 -5
  2285. package/lib/theme/index.js +0 -14
  2286. package/lib/theme/index.js.map +0 -1
  2287. package/lib/theme/light.d.ts +0 -23
  2288. package/lib/theme/light.js +0 -64
  2289. package/lib/theme/light.js.map +0 -1
  2290. package/lib/transform/bin.d.ts +0 -12
  2291. package/lib/transform/bin.js +0 -86
  2292. package/lib/transform/bin.js.map +0 -1
  2293. package/lib/transform/binX.d.ts +0 -4
  2294. package/lib/transform/binX.js +0 -11
  2295. package/lib/transform/binX.js.map +0 -1
  2296. package/lib/transform/diffY.d.ts +0 -8
  2297. package/lib/transform/diffY.js +0 -44
  2298. package/lib/transform/diffY.js.map +0 -1
  2299. package/lib/transform/dodgeX.d.ts +0 -9
  2300. package/lib/transform/dodgeX.js +0 -69
  2301. package/lib/transform/dodgeX.js.map +0 -1
  2302. package/lib/transform/filter.d.ts +0 -7
  2303. package/lib/transform/filter.js +0 -90
  2304. package/lib/transform/filter.js.map +0 -1
  2305. package/lib/transform/flexX.d.ts +0 -7
  2306. package/lib/transform/flexX.js +0 -35
  2307. package/lib/transform/flexX.js.map +0 -1
  2308. package/lib/transform/group.d.ts +0 -10
  2309. package/lib/transform/group.js +0 -27
  2310. package/lib/transform/group.js.map +0 -1
  2311. package/lib/transform/groupColor.d.ts +0 -7
  2312. package/lib/transform/groupColor.js +0 -13
  2313. package/lib/transform/groupColor.js.map +0 -1
  2314. package/lib/transform/groupN.d.ts +0 -9
  2315. package/lib/transform/groupN.js +0 -120
  2316. package/lib/transform/groupN.js.map +0 -1
  2317. package/lib/transform/groupX.d.ts +0 -7
  2318. package/lib/transform/groupX.js +0 -13
  2319. package/lib/transform/groupX.js.map +0 -1
  2320. package/lib/transform/groupY.d.ts +0 -7
  2321. package/lib/transform/groupY.js +0 -13
  2322. package/lib/transform/groupY.js.map +0 -1
  2323. package/lib/transform/index.d.ts +0 -89
  2324. package/lib/transform/index.js +0 -96
  2325. package/lib/transform/index.js.map +0 -1
  2326. package/lib/transform/jitter.d.ts +0 -10
  2327. package/lib/transform/jitter.js +0 -51
  2328. package/lib/transform/jitter.js.map +0 -1
  2329. package/lib/transform/jitterX.d.ts +0 -8
  2330. package/lib/transform/jitterX.js +0 -29
  2331. package/lib/transform/jitterX.js.map +0 -1
  2332. package/lib/transform/jitterY.d.ts +0 -8
  2333. package/lib/transform/jitterY.js +0 -29
  2334. package/lib/transform/jitterY.js.map +0 -1
  2335. package/lib/transform/maybeDefaultX.d.ts +0 -7
  2336. package/lib/transform/maybeDefaultX.js +0 -33
  2337. package/lib/transform/maybeDefaultX.js.map +0 -1
  2338. package/lib/transform/maybeDefaultY.d.ts +0 -7
  2339. package/lib/transform/maybeDefaultY.js +0 -33
  2340. package/lib/transform/maybeDefaultY.js.map +0 -1
  2341. package/lib/transform/maybeFunctionAttribute.d.ts +0 -6
  2342. package/lib/transform/maybeFunctionAttribute.js +0 -23
  2343. package/lib/transform/maybeFunctionAttribute.js.map +0 -1
  2344. package/lib/transform/maybeGradient.d.ts +0 -7
  2345. package/lib/transform/maybeGradient.js +0 -29
  2346. package/lib/transform/maybeGradient.js.map +0 -1
  2347. package/lib/transform/maybeIdentityX.d.ts +0 -7
  2348. package/lib/transform/maybeIdentityX.js +0 -22
  2349. package/lib/transform/maybeIdentityX.js.map +0 -1
  2350. package/lib/transform/maybeIdentityY.d.ts +0 -7
  2351. package/lib/transform/maybeIdentityY.js +0 -22
  2352. package/lib/transform/maybeIdentityY.js.map +0 -1
  2353. package/lib/transform/maybeKey.d.ts +0 -6
  2354. package/lib/transform/maybeKey.js +0 -36
  2355. package/lib/transform/maybeKey.js.map +0 -1
  2356. package/lib/transform/maybeSeries.d.ts +0 -6
  2357. package/lib/transform/maybeSeries.js +0 -21
  2358. package/lib/transform/maybeSeries.js.map +0 -1
  2359. package/lib/transform/maybeSize.d.ts +0 -7
  2360. package/lib/transform/maybeSize.js +0 -24
  2361. package/lib/transform/maybeSize.js.map +0 -1
  2362. package/lib/transform/maybeStackY.d.ts +0 -9
  2363. package/lib/transform/maybeStackY.js +0 -34
  2364. package/lib/transform/maybeStackY.js.map +0 -1
  2365. package/lib/transform/maybeTitle.d.ts +0 -8
  2366. package/lib/transform/maybeTitle.js +0 -49
  2367. package/lib/transform/maybeTitle.js.map +0 -1
  2368. package/lib/transform/maybeTooltip.d.ts +0 -8
  2369. package/lib/transform/maybeTooltip.js +0 -40
  2370. package/lib/transform/maybeTooltip.js.map +0 -1
  2371. package/lib/transform/maybeTuple.d.ts +0 -7
  2372. package/lib/transform/maybeTuple.js +0 -23
  2373. package/lib/transform/maybeTuple.js.map +0 -1
  2374. package/lib/transform/maybeTupleX.d.ts +0 -7
  2375. package/lib/transform/maybeTupleX.js +0 -20
  2376. package/lib/transform/maybeTupleX.js.map +0 -1
  2377. package/lib/transform/maybeTupleY.d.ts +0 -7
  2378. package/lib/transform/maybeTupleY.js +0 -20
  2379. package/lib/transform/maybeTupleY.js.map +0 -1
  2380. package/lib/transform/maybeVisualPosition.d.ts +0 -7
  2381. package/lib/transform/maybeVisualPosition.js +0 -49
  2382. package/lib/transform/maybeVisualPosition.js.map +0 -1
  2383. package/lib/transform/maybeZeroPadding.d.ts +0 -6
  2384. package/lib/transform/maybeZeroPadding.js +0 -18
  2385. package/lib/transform/maybeZeroPadding.js.map +0 -1
  2386. package/lib/transform/maybeZeroX.d.ts +0 -7
  2387. package/lib/transform/maybeZeroX.js +0 -27
  2388. package/lib/transform/maybeZeroX.js.map +0 -1
  2389. package/lib/transform/maybeZeroY.d.ts +0 -6
  2390. package/lib/transform/maybeZeroY.js +0 -26
  2391. package/lib/transform/maybeZeroY.js.map +0 -1
  2392. package/lib/transform/maybeZeroY1.d.ts +0 -6
  2393. package/lib/transform/maybeZeroY1.js +0 -25
  2394. package/lib/transform/maybeZeroY1.js.map +0 -1
  2395. package/lib/transform/maybeZeroZ.d.ts +0 -6
  2396. package/lib/transform/maybeZeroZ.js +0 -26
  2397. package/lib/transform/maybeZeroZ.js.map +0 -1
  2398. package/lib/transform/normalizeY.d.ts +0 -9
  2399. package/lib/transform/normalizeY.js +0 -78
  2400. package/lib/transform/normalizeY.js.map +0 -1
  2401. package/lib/transform/pack.d.ts +0 -9
  2402. package/lib/transform/pack.js +0 -66
  2403. package/lib/transform/pack.js.map +0 -1
  2404. package/lib/transform/sample.d.ts +0 -8
  2405. package/lib/transform/sample.js +0 -68
  2406. package/lib/transform/sample.js.map +0 -1
  2407. package/lib/transform/select.d.ts +0 -9
  2408. package/lib/transform/select.js +0 -45
  2409. package/lib/transform/select.js.map +0 -1
  2410. package/lib/transform/selectX.d.ts +0 -7
  2411. package/lib/transform/selectX.js +0 -25
  2412. package/lib/transform/selectX.js.map +0 -1
  2413. package/lib/transform/selectY.d.ts +0 -7
  2414. package/lib/transform/selectY.js +0 -25
  2415. package/lib/transform/selectY.js.map +0 -1
  2416. package/lib/transform/sort.d.ts +0 -14
  2417. package/lib/transform/sort.js +0 -64
  2418. package/lib/transform/sort.js.map +0 -1
  2419. package/lib/transform/sortColor.d.ts +0 -7
  2420. package/lib/transform/sortColor.js +0 -13
  2421. package/lib/transform/sortColor.js.map +0 -1
  2422. package/lib/transform/sortX.d.ts +0 -7
  2423. package/lib/transform/sortX.js +0 -13
  2424. package/lib/transform/sortX.js.map +0 -1
  2425. package/lib/transform/sortY.d.ts +0 -7
  2426. package/lib/transform/sortY.js +0 -13
  2427. package/lib/transform/sortY.js.map +0 -1
  2428. package/lib/transform/stackEnter.d.ts +0 -14
  2429. package/lib/transform/stackEnter.js +0 -76
  2430. package/lib/transform/stackEnter.js.map +0 -1
  2431. package/lib/transform/stackY.d.ts +0 -9
  2432. package/lib/transform/stackY.js +0 -111
  2433. package/lib/transform/stackY.js.map +0 -1
  2434. package/lib/transform/symmetryY.d.ts +0 -8
  2435. package/lib/transform/symmetryY.js +0 -64
  2436. package/lib/transform/symmetryY.js.map +0 -1
  2437. package/lib/transform/utils/helper.d.ts +0 -28
  2438. package/lib/transform/utils/helper.js +0 -62
  2439. package/lib/transform/utils/helper.js.map +0 -1
  2440. package/lib/transform/utils/lttb.d.ts +0 -5
  2441. package/lib/transform/utils/lttb.js +0 -60
  2442. package/lib/transform/utils/lttb.js.map +0 -1
  2443. package/lib/transform/utils/order.d.ts +0 -9
  2444. package/lib/transform/utils/order.js +0 -81
  2445. package/lib/transform/utils/order.js.map +0 -1
  2446. package/lib/utils/angle.d.ts +0 -6
  2447. package/lib/utils/angle.js +0 -31
  2448. package/lib/utils/angle.js.map +0 -1
  2449. package/lib/utils/array.d.ts +0 -22
  2450. package/lib/utils/array.js +0 -89
  2451. package/lib/utils/array.js.map +0 -1
  2452. package/lib/utils/bounds.d.ts +0 -28
  2453. package/lib/utils/bounds.js +0 -55
  2454. package/lib/utils/bounds.js.map +0 -1
  2455. package/lib/utils/color.d.ts +0 -6
  2456. package/lib/utils/color.js +0 -11
  2457. package/lib/utils/color.js.map +0 -1
  2458. package/lib/utils/container.d.ts +0 -8
  2459. package/lib/utils/container.js +0 -19
  2460. package/lib/utils/container.js.map +0 -1
  2461. package/lib/utils/coordinate.d.ts +0 -16
  2462. package/lib/utils/coordinate.js +0 -92
  2463. package/lib/utils/coordinate.js.map +0 -1
  2464. package/lib/utils/createElement.d.ts +0 -5
  2465. package/lib/utils/createElement.js +0 -20
  2466. package/lib/utils/createElement.js.map +0 -1
  2467. package/lib/utils/dateFormat.d.ts +0 -1
  2468. package/lib/utils/dateFormat.js +0 -22
  2469. package/lib/utils/dateFormat.js.map +0 -1
  2470. package/lib/utils/event.d.ts +0 -32
  2471. package/lib/utils/event.js +0 -37
  2472. package/lib/utils/event.js.map +0 -1
  2473. package/lib/utils/expr.d.ts +0 -8
  2474. package/lib/utils/expr.js +0 -55
  2475. package/lib/utils/expr.js.map +0 -1
  2476. package/lib/utils/flow.d.ts +0 -7
  2477. package/lib/utils/flow.js +0 -16
  2478. package/lib/utils/flow.js.map +0 -1
  2479. package/lib/utils/helper.d.ts +0 -55
  2480. package/lib/utils/helper.js +0 -221
  2481. package/lib/utils/helper.js.map +0 -1
  2482. package/lib/utils/lru.d.ts +0 -4
  2483. package/lib/utils/lru.js +0 -25
  2484. package/lib/utils/lru.js.map +0 -1
  2485. package/lib/utils/mark.d.ts +0 -4
  2486. package/lib/utils/mark.js +0 -36
  2487. package/lib/utils/mark.js.map +0 -1
  2488. package/lib/utils/marker.d.ts +0 -10
  2489. package/lib/utils/marker.js +0 -256
  2490. package/lib/utils/marker.js.map +0 -1
  2491. package/lib/utils/number.d.ts +0 -8
  2492. package/lib/utils/number.js +0 -20
  2493. package/lib/utils/number.js.map +0 -1
  2494. package/lib/utils/scale.d.ts +0 -6
  2495. package/lib/utils/scale.js +0 -83
  2496. package/lib/utils/scale.js.map +0 -1
  2497. package/lib/utils/selection.d.ts +0 -67
  2498. package/lib/utils/selection.js +0 -308
  2499. package/lib/utils/selection.js.map +0 -1
  2500. package/lib/utils/size.d.ts +0 -17
  2501. package/lib/utils/size.js +0 -48
  2502. package/lib/utils/size.js.map +0 -1
  2503. package/lib/utils/string.d.ts +0 -12
  2504. package/lib/utils/string.js +0 -24
  2505. package/lib/utils/string.js.map +0 -1
  2506. package/lib/utils/style.d.ts +0 -5
  2507. package/lib/utils/style.js +0 -30
  2508. package/lib/utils/style.js.map +0 -1
  2509. package/lib/utils/treeDataTransform.d.ts +0 -28
  2510. package/lib/utils/treeDataTransform.js +0 -98
  2511. package/lib/utils/treeDataTransform.js.map +0 -1
  2512. package/lib/utils/vector.d.ts +0 -20
  2513. package/lib/utils/vector.js +0 -63
  2514. package/lib/utils/vector.js.map +0 -1
@@ -1,1212 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __rest = (this && this.__rest) || function (s, e) {
11
- var t = {};
12
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
- t[p] = s[p];
14
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
- t[p[i]] = s[p[i]];
18
- }
19
- return t;
20
- };
21
- import { Rect } from '@antv/g';
22
- import { deepMix, upperFirst, isArray } from '@antv/util';
23
- import { group, groups } from '@antv/vendor/d3-array';
24
- import { format } from '@antv/vendor/d3-format';
25
- import { mapObject } from '../utils/array';
26
- import { ChartEvent } from '../utils/event';
27
- import { isStrictObject, appendTransform, compose, copyAttributes, defined, error, maybeSubObject, subObject, useMemo, } from '../utils/helper';
28
- import { select, Selection } from '../utils/selection';
29
- import { groupComponents, inferComponent, normalizeComponents, renderComponent, } from './component';
30
- import { AREA_CLASS_NAME, COMPONENT_CLASS_NAME, ELEMENT_CLASS_NAME, LABEL_CLASS_NAME, LABEL_LAYER_CLASS_NAME, MAIN_LAYER_CLASS_NAME, PLOT_CLASS_NAME, VIEW_CLASS_NAME, } from './constant';
31
- import { coordinate2Transform, createCoordinate } from './coordinate';
32
- import { computeLayout, computeRoughPlotSize, placeComponents, processAxisZ, } from './layout';
33
- import { documentOf, useLibrary } from './library';
34
- import { initializeMark } from './mark';
35
- import { applyScale, assignScale, collectScales, inferScale, syncFacetsScales, useRelationScale, groupTransform, } from './scale';
36
- import { applyDataTransform } from './transform';
37
- export function plot(options, selection, context) {
38
- var _a;
39
- return __awaiter(this, void 0, void 0, function* () {
40
- const { library } = context;
41
- const [useComposition] = useLibrary('composition', library);
42
- const [useInteraction] = useLibrary('interaction', library);
43
- // Some helper functions.
44
- const marks = new Set(Object.keys(library)
45
- .map((d) => { var _a; return (_a = /mark\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
46
- .filter(defined));
47
- const staticMarks = new Set(Object.keys(library)
48
- .map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
49
- .filter(defined));
50
- const typeOf = (node) => {
51
- const { type } = node;
52
- if (typeof type === 'function') {
53
- // @ts-ignore
54
- const { props = {} } = type;
55
- const { composite = true } = props;
56
- if (composite)
57
- return 'mark';
58
- }
59
- if (typeof type !== 'string')
60
- return type;
61
- if (marks.has(type) || staticMarks.has(type))
62
- return 'mark';
63
- return type;
64
- };
65
- const isMark = (node) => typeOf(node) === 'mark';
66
- const isStandardView = (node) => typeOf(node) === 'standardView';
67
- const isStaticMark = (node) => {
68
- const { type } = node;
69
- if (typeof type !== 'string')
70
- return false;
71
- if (staticMarks.has(type))
72
- return true;
73
- return false;
74
- };
75
- const transform = (node) => {
76
- if (isStandardView(node))
77
- return [node];
78
- const type = typeOf(node);
79
- const composition = useComposition({ type, static: isStaticMark(node) });
80
- return composition(node);
81
- };
82
- // Some temporary variables help parse the view tree.
83
- const views = [];
84
- const viewNode = new Map();
85
- const nodeState = new Map();
86
- const discovered = [options];
87
- const nodeGenerators = [];
88
- while (discovered.length) {
89
- const node = discovered.shift();
90
- if (isStandardView(node)) {
91
- // Initialize view to get data to be visualized. If the marks
92
- // of the view have already been initialized (facet view),
93
- // initialize the view based on the initialized mark states,
94
- // otherwise initialize it from beginning.
95
- const state = nodeState.get(node);
96
- const [view, children] = state
97
- ? initializeState(state, node, library)
98
- : yield initializeView(node, context);
99
- viewNode.set(view, node);
100
- views.push(view);
101
- // Transform children, they will be transformed into
102
- // standardView if they are mark or view node.
103
- const transformedNodes = children
104
- .flatMap(transform)
105
- .map((d) => coordinate2Transform(d, library));
106
- discovered.push(...transformedNodes);
107
- // Only StandardView can be treated as facet and it
108
- // should sync position scales among facets normally.
109
- if (transformedNodes.every(isStandardView)) {
110
- const states = yield Promise.all(transformedNodes.map((d) => initializeMarks(d, context)));
111
- // Note!!!
112
- // This will mutate scales for marks.
113
- syncFacetsScales(states);
114
- for (let i = 0; i < transformedNodes.length; i++) {
115
- const nodeT = transformedNodes[i];
116
- const state = states[i];
117
- nodeState.set(nodeT, state);
118
- }
119
- }
120
- }
121
- else {
122
- // Apply transform to get data in advance for non-mark composition
123
- // node, which makes sure that composition node can preprocess the
124
- // data to produce more nodes based on it.
125
- const n = isMark(node) ? node : yield applyTransform(node, context);
126
- const N = transform(n);
127
- if (Array.isArray(N))
128
- discovered.push(...N);
129
- else if (typeof N === 'function')
130
- nodeGenerators.push(N());
131
- }
132
- }
133
- context.emitter.emit(ChartEvent.BEFORE_PAINT);
134
- // Plot chart.
135
- const enterContainer = new Map();
136
- const updateContainer = new Map();
137
- const transitions = [];
138
- selection
139
- .selectAll(className(VIEW_CLASS_NAME))
140
- .data(views, (d) => d.key)
141
- .join((enter) => enter
142
- .append('g')
143
- .attr('className', VIEW_CLASS_NAME)
144
- .attr('id', (view) => view.key)
145
- .call(applyTranslate)
146
- .each(function (view, i, element) {
147
- plotView(view, select(element), transitions, context);
148
- enterContainer.set(view, element);
149
- }), (update) => update.call(applyTranslate).each(function (view, i, element) {
150
- plotView(view, select(element), transitions, context);
151
- updateContainer.set(view, element);
152
- }), (exit) => exit
153
- .each(function (d, i, element) {
154
- // Remove existed interactions.
155
- const interactions = element['nameInteraction'].values();
156
- for (const interaction of interactions) {
157
- interaction.destroy();
158
- }
159
- })
160
- .remove());
161
- // Apply interactions.
162
- const viewInstanceof = (viewContainer, updateInteractions, oldStore) => {
163
- return Array.from(viewContainer.entries()).map(([view, container]) => {
164
- // Index state by component or interaction name,
165
- // such as legend, scrollbar, brushFilter.
166
- // Each state transform options to another options.
167
- const store = oldStore || new Map();
168
- const setState = (key, reducer = (x) => x) => store.set(key, reducer);
169
- const options = viewNode.get(view);
170
- const update = createUpdateView(select(container), options, context);
171
- return {
172
- view,
173
- container,
174
- options,
175
- setState,
176
- update: (from, updateTypes) => __awaiter(this, void 0, void 0, function* () {
177
- // Apply all state functions to get new options.
178
- const reducer = compose(Array.from(store.values()));
179
- const newOptions = reducer(options);
180
- return yield update(newOptions, from, () => {
181
- if (isArray(updateTypes)) {
182
- updateInteractions(viewContainer, updateTypes, store);
183
- }
184
- });
185
- }),
186
- };
187
- });
188
- };
189
- const updateInteractions = (container = updateContainer, updateType, oldStore) => {
190
- var _a;
191
- // Interactions for update views.
192
- const updateViewInstances = viewInstanceof(container, updateInteractions, oldStore);
193
- for (const target of updateViewInstances) {
194
- const { options, container } = target;
195
- const nameInteraction = container['nameInteraction'];
196
- let typeOptions = inferInteraction(options);
197
- if (updateType) {
198
- typeOptions = typeOptions.filter((v) => updateType.includes(v[0]));
199
- }
200
- for (const typeOption of typeOptions) {
201
- const [type, option] = typeOption;
202
- // Remove interaction for existed views.
203
- const prevInteraction = nameInteraction.get(type);
204
- if (prevInteraction)
205
- (_a = prevInteraction.destroy) === null || _a === void 0 ? void 0 : _a.call(prevInteraction);
206
- // Apply new interaction.
207
- if (option) {
208
- const interaction = useThemeInteraction(target.view, type, option, useInteraction);
209
- const destroy = interaction(target, updateViewInstances, context.emitter);
210
- nameInteraction.set(type, { destroy });
211
- }
212
- }
213
- }
214
- };
215
- // Interactions for enter views.
216
- const enterViewInstances = viewInstanceof(enterContainer, updateInteractions);
217
- for (const target of enterViewInstances) {
218
- const { options } = target;
219
- // A Map index interaction by interaction name.
220
- const nameInteraction = new Map();
221
- target.container['nameInteraction'] = nameInteraction;
222
- // Apply interactions.
223
- for (const typeOption of inferInteraction(options)) {
224
- const [type, option] = typeOption;
225
- if (option) {
226
- const interaction = useThemeInteraction(target.view, type, option, useInteraction);
227
- const destroy = interaction(target, enterViewInstances, context.emitter);
228
- nameInteraction.set(type, { destroy });
229
- }
230
- }
231
- }
232
- updateInteractions();
233
- // Author animations.
234
- const { width, height } = options;
235
- const keyframes = [];
236
- for (const nodeGenerator of nodeGenerators) {
237
- // Delay the rendering of animation keyframe. Different animation
238
- // created by different nodeGenerator will play in the same time.
239
- // eslint-disable-next-line no-async-promise-executor
240
- const keyframe = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
241
- for (const node of nodeGenerator) {
242
- const sizedNode = Object.assign({ width, height }, node);
243
- yield plot(sizedNode, selection, context);
244
- }
245
- resolve();
246
- }));
247
- keyframes.push(keyframe);
248
- }
249
- context.views = views;
250
- // Clear and update animation.
251
- (_a = context.animations) === null || _a === void 0 ? void 0 : _a.forEach((animation) => animation === null || animation === void 0 ? void 0 : animation.cancel());
252
- context.animations = transitions;
253
- context.emitter.emit(ChartEvent.AFTER_PAINT);
254
- // Note!!!
255
- // The returned promise will never resolved if one of nodeGenerator
256
- // never stop to yield node, which may created by a keyframe composition
257
- // with iteration count set to infinite.
258
- const finished = transitions
259
- .filter(defined)
260
- .map(cancel)
261
- .map((d) => d.finished);
262
- return Promise.all([...finished, ...keyframes]);
263
- });
264
- }
265
- function applyTranslate(selection) {
266
- selection.style('transform', (d) => `translate(${d.layout.x}, ${d.layout.y})`);
267
- }
268
- function definedInteraction(library) {
269
- const [, createInteraction] = useLibrary('interaction', library);
270
- return (d) => {
271
- const [name, options] = d;
272
- try {
273
- return [name, createInteraction(name)];
274
- }
275
- catch (_a) {
276
- return [name, options.type];
277
- }
278
- };
279
- }
280
- function createUpdateView(selection, options, context) {
281
- const { library } = context;
282
- const createDefinedInteraction = definedInteraction(library);
283
- const filter = (d) => d[1] && d[1].props && d[1].props.reapplyWhenUpdate;
284
- const interactions = inferInteraction(options);
285
- const updates = interactions
286
- .map(createDefinedInteraction)
287
- .filter(filter)
288
- .map((d) => d[0]);
289
- return (newOptions, source, callback) => __awaiter(this, void 0, void 0, function* () {
290
- const transitions = [];
291
- const [newView, newChildren] = yield initializeView(newOptions, context);
292
- plotView(newView, selection, transitions, context);
293
- // Update interaction need to reapply when update.
294
- for (const name of updates.filter((d) => d !== source)) {
295
- updateInteraction(name, selection, newOptions, newView, context);
296
- }
297
- for (const child of newChildren) {
298
- plot(child, selection, context);
299
- }
300
- callback();
301
- return { options: newOptions, view: newView };
302
- });
303
- }
304
- function updateInteraction(name, selection, options, view, context) {
305
- var _a;
306
- const { library } = context;
307
- const [useInteraction] = useLibrary('interaction', library);
308
- // Instances for interaction.
309
- const container = selection.node();
310
- const nameInteraction = container['nameInteraction'];
311
- const interactionOptions = inferInteraction(options).find(([d]) => d === name);
312
- // Destroy older interaction.
313
- const interaction = nameInteraction.get(name);
314
- if (!interaction)
315
- return;
316
- (_a = interaction.destroy) === null || _a === void 0 ? void 0 : _a.call(interaction);
317
- if (!interactionOptions[1])
318
- return;
319
- // Apply new interaction.
320
- const applyInteraction = useThemeInteraction(view, name, interactionOptions[1], useInteraction);
321
- const target = {
322
- options,
323
- view,
324
- container: selection.node(),
325
- update: (options) => Promise.resolve(options),
326
- };
327
- const destroy = applyInteraction(target, [], context.emitter);
328
- nameInteraction.set(name, { destroy });
329
- }
330
- function initializeView(options, context) {
331
- return __awaiter(this, void 0, void 0, function* () {
332
- const { library } = context;
333
- const flattenOptions = yield transformMarks(options, context);
334
- const mergedOptions = bubbleOptions(flattenOptions);
335
- // @todo Remove this.
336
- // !!! NOTE: Mute original view options.
337
- // Update interaction and coordinate for this view.
338
- options.interaction = mergedOptions.interaction;
339
- options.coordinate = mergedOptions.coordinate;
340
- // @ts-ignore
341
- options.marks = [...mergedOptions.marks, ...mergedOptions.components];
342
- const transformedOptions = coordinate2Transform(mergedOptions, library);
343
- const state = yield initializeMarks(transformedOptions, context);
344
- return initializeState(state, transformedOptions, library);
345
- });
346
- }
347
- function bubbleOptions(options) {
348
- const { coordinate: viewCoordinate = {}, interaction: viewInteraction = {}, style: viewStyle = {}, marks } = options, rest = __rest(options, ["coordinate", "interaction", "style", "marks"]);
349
- const markCoordinates = marks.map((d) => d.coordinate || {});
350
- const markInteractions = marks.map((d) => d.interaction || {});
351
- const markViewStyles = marks.map((d) => d.viewStyle || {});
352
- const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight((prev, cur) => deepMix(prev, cur), {});
353
- const newInteraction = [viewInteraction, ...markInteractions].reduce((prev, cur) => deepMix(prev, cur), {});
354
- const newStyle = [...markViewStyles, viewStyle].reduce((prev, cur) => deepMix(prev, cur), {});
355
- return Object.assign(Object.assign({}, rest), { marks, coordinate: newCoordinate, interaction: newInteraction, style: newStyle });
356
- }
357
- function transformMarks(options, context) {
358
- return __awaiter(this, void 0, void 0, function* () {
359
- const { library } = context;
360
- const [useMark, createMark] = useLibrary('mark', library);
361
- const staticMarks = new Set(Object.keys(library)
362
- .map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
363
- .filter(defined));
364
- const { marks } = options;
365
- const flattenMarks = [];
366
- const components = [];
367
- const discovered = [...marks];
368
- const { width, height } = computeRoughPlotSize(options);
369
- const markOptions = { options, width, height };
370
- // Pre order traversal.
371
- while (discovered.length) {
372
- const [node] = discovered.splice(0, 1);
373
- // Apply data transform to get data.
374
- const mark = (yield applyTransform(node, context));
375
- const { type = error('G2Mark type is required.'), key } = mark;
376
- // For components.
377
- if (staticMarks.has(type))
378
- components.push(mark);
379
- else {
380
- const { props = {} } = createMark(type);
381
- const { composite = true } = props;
382
- if (!composite)
383
- flattenMarks.push(mark);
384
- else {
385
- // Unwrap data from { value: data } to data,
386
- // then the composite mark can process the normalized data.
387
- const { data } = mark;
388
- const newMark = Object.assign(Object.assign({}, mark), { data: data ? (Array.isArray(data) ? data : data.value) : data });
389
- // Convert composite mark to marks.
390
- const marks = yield useMark(newMark, markOptions);
391
- const M = Array.isArray(marks) ? marks : [marks];
392
- discovered.unshift(...M.map((d, i) => (Object.assign(Object.assign({}, d), { key: `${key}-${i}` }))));
393
- }
394
- }
395
- }
396
- return Object.assign(Object.assign({}, options), { marks: flattenMarks, components });
397
- });
398
- }
399
- function initializeMarks(options, context) {
400
- return __awaiter(this, void 0, void 0, function* () {
401
- const { library } = context;
402
- const [useTheme] = useLibrary('theme', library);
403
- const [, createMark] = useLibrary('mark', library);
404
- const { theme: partialTheme, marks: partialMarks, coordinates = [], } = options;
405
- const theme = useTheme(inferTheme(partialTheme));
406
- const markState = new Map();
407
- // Initialize channels for marks.
408
- for (const markOptions of partialMarks) {
409
- const { type } = markOptions;
410
- const { props = {} } = createMark(type);
411
- const markAndState = yield initializeMark(markOptions, props, context);
412
- if (markAndState) {
413
- const [initializedMark, state] = markAndState;
414
- markState.set(initializedMark, state);
415
- }
416
- }
417
- // Group channels by scale key, each group has scale.
418
- const scaleChannels = group(Array.from(markState.values()).flatMap((d) => d.channels), ({ scaleKey }) => scaleKey);
419
- // Infer scale for each channel groups.
420
- for (const channels of scaleChannels.values()) {
421
- // Merge scale options for these channels.
422
- const scaleOptions = channels.reduce((total, { scale }) => deepMix(total, scale), {});
423
- const { scaleKey } = channels[0];
424
- // Use the fields of the first channel as the title.
425
- const { values: FV } = channels[0];
426
- const fields = Array.from(new Set(FV.map((d) => d.field).filter(defined)));
427
- const options = deepMix({
428
- guide: { title: fields.length === 0 ? undefined : fields },
429
- field: fields[0],
430
- }, scaleOptions);
431
- // Use the name of the first channel as the scale name.
432
- const { name } = channels[0];
433
- const values = channels.flatMap(({ values }) => values.map((d) => d.value));
434
- const scale = Object.assign(Object.assign({}, inferScale(name, values, options, coordinates, theme, library)), { uid: Symbol('scale'), key: scaleKey });
435
- channels.forEach((channel) => (channel.scale = scale));
436
- }
437
- return markState;
438
- });
439
- }
440
- function useThemeInteraction(view, type, option, useInteraction) {
441
- const theme = view.theme;
442
- const defaults = typeof type === 'string' ? theme[type] || {} : {};
443
- const interaction = useInteraction(deepMix(defaults, Object.assign({ type }, option)));
444
- return interaction;
445
- }
446
- function initializeState(markState, options, library) {
447
- var _a;
448
- const [useMark] = useLibrary('mark', library);
449
- const [useTheme] = useLibrary('theme', library);
450
- const [useLabelTransform] = useLibrary('labelTransform', library);
451
- const { key, frame = false, theme: partialTheme, clip, style = {}, labelTransform = [], } = options;
452
- const theme = useTheme(inferTheme(partialTheme));
453
- // Infer components and compute layout.
454
- const states = Array.from(markState.values());
455
- const scales = collectScales(states, options);
456
- const components = normalizeComponents(inferComponent(inferComponentScales(Array.from(scales), states, markState), options, library));
457
- const layout = computeLayout(components, options, theme, library);
458
- const coordinate = createCoordinate(layout, options, library);
459
- const framedStyle = frame
460
- ? deepMix({ mainLineWidth: 1, mainStroke: '#000' }, style)
461
- : style;
462
- // Place components and mutate their bbox.
463
- placeComponents(groupComponents(components), coordinate, layout);
464
- // AxisZ need a copy of axisX and axisY to show grids in X-Z & Y-Z planes.
465
- processAxisZ(components);
466
- // Index scale instance by uid.
467
- const uidScale = new Map(Array.from(markState.values()).flatMap((state) => {
468
- const { channels } = state;
469
- return channels.map(({ scale }) => [
470
- scale.uid,
471
- useRelationScale(scale, library),
472
- ]);
473
- }));
474
- groupTransform(markState, uidScale);
475
- // Scale from marks and components.
476
- const scaleInstance = {};
477
- // Initialize scale from components.
478
- for (const component of components) {
479
- const { scales: scaleDescriptors = [] } = component;
480
- const scales = [];
481
- for (const descriptor of scaleDescriptors) {
482
- const { name, uid } = descriptor;
483
- const scale = (_a = uidScale.get(uid)) !== null && _a !== void 0 ? _a : useRelationScale(descriptor, library);
484
- scales.push(scale);
485
- // Delivery the scale of axisX to the AxisY,
486
- // in order to calculate the angle of axisY component when rendering radar chart.
487
- if (name === 'y') {
488
- scale.update(Object.assign(Object.assign({}, scale.getOptions()), { xScale: scaleInstance.x }));
489
- }
490
- assignScale(scaleInstance, { [name]: scale });
491
- }
492
- component.scaleInstances = scales;
493
- }
494
- // Calc data to be rendered for each mark.
495
- // @todo More readable APIs for Container which stays
496
- // the same style with JS standard and lodash APIs.
497
- // @todo More proper way to index scale for different marks.
498
- const children = [];
499
- for (const [mark, state] of markState.entries()) {
500
- const {
501
- // scale,
502
- // Callback to create children options based on this mark.
503
- children: createChildren,
504
- // The total count of data (both show and hide)for this facet.
505
- // This is for unit visualization to sync data domain.
506
- dataDomain, modifier, key: markKey, } = mark;
507
- const { index, channels, tooltip } = state;
508
- const scale = Object.fromEntries(channels.map(({ name, scale }) => [name, scale]));
509
- // Transform abstract value to visual value by scales.
510
- const markScaleInstance = mapObject(scale, ({ uid }) => uidScale.get(uid));
511
- assignScale(scaleInstance, markScaleInstance);
512
- const value = applyScale(channels, markScaleInstance);
513
- // Calc points and transformation for each data,
514
- // and then transform visual value to visual data.
515
- const calcPoints = useMark(mark);
516
- const [I, P, S] = filterValid(calcPoints(index, markScaleInstance, value, coordinate));
517
- const count = dataDomain || I.length;
518
- const T = modifier ? modifier(P, count, layout) : [];
519
- const titleOf = (i) => { var _a, _b; return (_b = (_a = tooltip.title) === null || _a === void 0 ? void 0 : _a[i]) === null || _b === void 0 ? void 0 : _b.value; };
520
- const itemsOf = (i) => tooltip.items.map((V) => V[i]);
521
- const visualData = I.map((d, i) => {
522
- const datum = Object.assign({ points: P[i], transform: T[i], index: d, markKey, viewKey: key }, (tooltip && {
523
- title: titleOf(d),
524
- items: itemsOf(d),
525
- }));
526
- for (const [k, V] of Object.entries(value)) {
527
- datum[k] = V[d];
528
- if (S)
529
- datum[`series${upperFirst(k)}`] = S[i].map((i) => V[i]);
530
- }
531
- if (S)
532
- datum['seriesIndex'] = S[i];
533
- if (S && tooltip) {
534
- datum['seriesItems'] = S[i].map((si) => itemsOf(si));
535
- datum['seriesTitle'] = S[i].map((si) => titleOf(si));
536
- }
537
- return datum;
538
- });
539
- state.data = visualData;
540
- state.index = I;
541
- // Create children options by children callback,
542
- // and then propagate data to each child.
543
- const markChildren = createChildren === null || createChildren === void 0 ? void 0 : createChildren(visualData, markScaleInstance, layout);
544
- children.push(...(markChildren || []));
545
- }
546
- const view = {
547
- layout,
548
- theme,
549
- coordinate,
550
- markState,
551
- key,
552
- clip,
553
- scale: scaleInstance,
554
- style: framedStyle,
555
- components,
556
- labelTransform: compose(labelTransform.map(useLabelTransform)),
557
- };
558
- return [view, children];
559
- }
560
- function plotView(view, selection, transitions, context) {
561
- return __awaiter(this, void 0, void 0, function* () {
562
- const { library } = context;
563
- const { components, theme, layout, markState, coordinate, key, style, clip, scale, } = view;
564
- // Render background for the different areas.
565
- const { x, y, width, height } = layout, rest = __rest(layout, ["x", "y", "width", "height"]);
566
- const areaKeys = ['view', 'plot', 'main', 'content'];
567
- const I = areaKeys.map((_, i) => i);
568
- const sizeKeys = ['a', 'margin', 'padding', 'inset'];
569
- const areaStyles = areaKeys.map((d) => maybeSubObject(Object.assign({}, theme.view, style), d));
570
- const areaSizes = sizeKeys.map((d) => subObject(rest, d));
571
- const styleArea = (selection) => selection
572
- .style('x', (i) => areaLayouts[i].x)
573
- .style('y', (i) => areaLayouts[i].y)
574
- .style('width', (i) => areaLayouts[i].width)
575
- .style('height', (i) => areaLayouts[i].height)
576
- .each(function (i, d, element) {
577
- applyStyle(select(element), areaStyles[i]);
578
- });
579
- let px = 0;
580
- let py = 0;
581
- let pw = width;
582
- let ph = height;
583
- const areaLayouts = I.map((i) => {
584
- const size = areaSizes[i];
585
- const { left = 0, top = 0, bottom = 0, right = 0 } = size;
586
- px += left;
587
- py += top;
588
- pw -= left + right;
589
- ph -= top + bottom;
590
- return {
591
- x: px,
592
- y: py,
593
- width: pw,
594
- height: ph,
595
- };
596
- });
597
- selection
598
- .selectAll(className(AREA_CLASS_NAME))
599
- .data(
600
- // Only render area with defined style.
601
- I.filter((i) => defined(areaStyles[i])), (i) => areaKeys[i])
602
- .join((enter) => enter
603
- .append('rect')
604
- .attr('className', AREA_CLASS_NAME)
605
- .style('zIndex', -2)
606
- .call(styleArea), (update) => update.call(styleArea), (exit) => exit.remove());
607
- const animationExtent = computeAnimationExtent(markState);
608
- const componentAnimateOptions = animationExtent
609
- ? { duration: animationExtent[1] }
610
- : false;
611
- // Render components.
612
- // @todo renderComponent return ctor and options.
613
- // Key for each type of component.
614
- // Index them grouped by position.
615
- for (const [, C] of groups(components, (d) => `${d.type}-${d.position}`)) {
616
- C.forEach((d, i) => (d.index = i));
617
- }
618
- const componentsTransitions = selection
619
- .selectAll(className(COMPONENT_CLASS_NAME))
620
- .data(components, (d) => `${d.type}-${d.position}-${d.index}`)
621
- .join((enter) => enter
622
- .append('g')
623
- .style('zIndex', ({ zIndex }) => zIndex || -1)
624
- .attr('className', COMPONENT_CLASS_NAME)
625
- .append((options) => renderComponent(deepMix({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState)), (update) => update.transition(function (options, i, element) {
626
- const { preserve = false } = options;
627
- if (preserve)
628
- return;
629
- const newComponent = renderComponent(deepMix({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState);
630
- const { attributes } = newComponent;
631
- const [node] = element.childNodes;
632
- return node.update(attributes, false);
633
- }))
634
- .transitions();
635
- transitions.push(...componentsTransitions.flat().filter(defined));
636
- // Main layer is for showing the main visual representation such as marks. There
637
- // may be multiple main layers for a view, each main layer correspond to one of marks.
638
- // @todo Test DOM structure.
639
- const T = selection
640
- .selectAll(className(PLOT_CLASS_NAME))
641
- .data([layout], () => key)
642
- .join((enter) => enter
643
- // Make this layer interactive, such as click and mousemove events.
644
- .append('rect')
645
- .style('zIndex', 0)
646
- .style('fill', 'transparent')
647
- .attr('className', PLOT_CLASS_NAME)
648
- .call(updateBBox)
649
- .call(updateLayers, Array.from(markState.keys()))
650
- .call(applyClip, clip), (update) => update
651
- .call(updateLayers, Array.from(markState.keys()))
652
- .call((selection) => {
653
- return animationExtent
654
- ? animateBBox(selection, animationExtent)
655
- : updateBBox(selection);
656
- })
657
- .call(applyClip, clip))
658
- .transitions();
659
- transitions.push(...T.flat());
660
- // Render marks with corresponding data.
661
- for (const [mark, state] of markState.entries()) {
662
- const { data } = state;
663
- const { key, class: cls, type } = mark;
664
- const viewNode = selection.select(`#${key}`);
665
- const shapeFunction = createMarkShapeFunction(mark, state, view, context);
666
- const enterFunction = createEnterFunction(mark, state, view, library);
667
- const updateFunction = createUpdateFunction(mark, state, view, library);
668
- const exitFunction = createExitFunction(mark, state, view, library);
669
- const facetElements = selectFacetElements(selection, viewNode, cls, 'element');
670
- const T = viewNode
671
- .selectAll(className(ELEMENT_CLASS_NAME))
672
- .selectFacetAll(facetElements)
673
- .data(data, (d) => d.key, (d) => d.groupKey)
674
- .join((enter) => enter
675
- .append(shapeFunction)
676
- // Note!!! Only one className can be set.
677
- // Using attribute as alternative for other classNames.
678
- .attr('className', ELEMENT_CLASS_NAME)
679
- .attr('markType', type)
680
- .transition(function (data, i, element) {
681
- return enterFunction(data, [element]);
682
- }), (update) => update.call((selection) => {
683
- const parent = selection.parent();
684
- const origin = useMemo((node) => {
685
- const [x, y] = node.getBounds().min;
686
- return [x, y];
687
- });
688
- selection
689
- .transition(function (data, index, element) {
690
- maybeFacetElement(element, parent, origin);
691
- const node = shapeFunction(data, index);
692
- const animation = updateFunction(data, [element], [node]);
693
- if (animation === null || animation === void 0 ? void 0 : animation.length)
694
- return animation;
695
- if (element.nodeName === node.nodeName &&
696
- node.nodeName !== 'g') {
697
- copyAttributes(element, node);
698
- }
699
- else {
700
- element.parentNode.replaceChild(node, element);
701
- node.className = ELEMENT_CLASS_NAME;
702
- // @ts-ignore
703
- node.markType = type;
704
- // @ts-ignore
705
- node.__data__ = element.__data__;
706
- }
707
- return animation;
708
- })
709
- .attr('markType', type)
710
- .attr('className', ELEMENT_CLASS_NAME);
711
- }), (exit) => {
712
- return exit
713
- .each(function (d, i, element) {
714
- element.__removed__ = true;
715
- })
716
- .transition(function (data, i, element) {
717
- return exitFunction(data, [element]);
718
- })
719
- .remove();
720
- }, (merge) => merge
721
- // Append elements to be merged.
722
- .append(shapeFunction)
723
- .attr('className', ELEMENT_CLASS_NAME)
724
- .attr('markType', type)
725
- .transition(function (data, i, element) {
726
- // Remove merged elements after animation finishing.
727
- const { __fromElements__: fromElements } = element;
728
- const transition = updateFunction(data, fromElements, [element]);
729
- const exit = new Selection(fromElements, null, element.parentNode);
730
- exit.transition(transition).remove();
731
- return transition;
732
- }), (split) => split
733
- .transition(function (data, i, element) {
734
- // Append splitted shapes.
735
- const enter = new Selection([], element.__toData__, element.parentNode);
736
- const toElements = enter
737
- .append(shapeFunction)
738
- .attr('className', ELEMENT_CLASS_NAME)
739
- .attr('markType', type)
740
- .nodes();
741
- return updateFunction(data, [element], toElements);
742
- })
743
- // Remove elements to be splitted after animation finishing.
744
- .remove())
745
- .transitions();
746
- transitions.push(...T.flat());
747
- }
748
- // Plot label for this view.
749
- plotLabel(view, selection, transitions, library, context);
750
- });
751
- }
752
- /**
753
- * Auto hide labels be specify label layout.
754
- */
755
- function plotLabel(view, selection, transitions, library, context) {
756
- const [useLabelTransform] = useLibrary('labelTransform', library);
757
- const { markState, labelTransform } = view;
758
- const labelLayer = selection.select(className(LABEL_LAYER_CLASS_NAME)).node();
759
- // A Map index shapeFunction by label.
760
- const labelShapeFunction = new Map();
761
- // A Map index options by label.
762
- const labelDescriptor = new Map();
763
- // Get all labels for this view.
764
- const labels = Array.from(markState.entries()).flatMap(([mark, state]) => {
765
- const { labels: labelOptions = [], key } = mark;
766
- const shapeFunction = createLabelShapeFunction(mark, state, view, library, context);
767
- const elements = selection
768
- .select(`#${key}`)
769
- .selectAll(className(ELEMENT_CLASS_NAME))
770
- .nodes()
771
- // Only select the valid element.
772
- .filter((n) => !n.__removed__);
773
- return labelOptions.flatMap((labelOption, i) => {
774
- const { transform = [] } = labelOption, options = __rest(labelOption, ["transform"]);
775
- return elements.flatMap((e) => {
776
- const L = getLabels(options, i, e);
777
- L.forEach((l) => {
778
- labelShapeFunction.set(l, (data) => shapeFunction(Object.assign(Object.assign({}, data), { element: e })));
779
- labelDescriptor.set(l, labelOption);
780
- });
781
- return L;
782
- });
783
- });
784
- });
785
- // Render all labels.
786
- const labelShapes = select(labelLayer)
787
- .selectAll(className(LABEL_CLASS_NAME))
788
- .data(labels, (d) => d.key)
789
- .join((enter) => enter
790
- .append((d) => labelShapeFunction.get(d)(d))
791
- .attr('className', LABEL_CLASS_NAME), (update) => update.each(function (d, i, element) {
792
- // @todo Handle Label with different type.
793
- const shapeFunction = labelShapeFunction.get(d);
794
- const node = shapeFunction(d);
795
- copyAttributes(element, node);
796
- }), (exit) => exit.remove())
797
- .nodes();
798
- // Apply group-level transforms.
799
- const labelGroups = group(labelShapes, (d) => labelDescriptor.get(d.__data__));
800
- const { coordinate, layout } = view;
801
- const labelTransformContext = {
802
- canvas: context.canvas,
803
- coordinate,
804
- layout,
805
- };
806
- for (const [label, shapes] of labelGroups) {
807
- const { transform = [] } = label;
808
- const transformFunction = compose(transform.map(useLabelTransform));
809
- transformFunction(shapes, labelTransformContext);
810
- }
811
- // Apply view-level transform.
812
- if (labelTransform) {
813
- labelTransform(labelShapes, labelTransformContext);
814
- }
815
- }
816
- function getLabels(label, labelIndex, element) {
817
- const { seriesIndex: SI, seriesKey, points, key, index } = element.__data__;
818
- const bounds = getLocalBounds(element);
819
- if (!SI) {
820
- return [
821
- Object.assign(Object.assign({}, label), { key: `${key}-${labelIndex}`, bounds,
822
- index,
823
- points, dependentElement: element }),
824
- ];
825
- }
826
- const selector = normalizeLabelSelector(label);
827
- const F = SI.map((index, i) => (Object.assign(Object.assign({}, label), { key: `${seriesKey[i]}-${labelIndex}`, bounds: [points[i]], index,
828
- points, dependentElement: element })));
829
- return selector ? selector(F) : F;
830
- }
831
- function filterValid([I, P, S]) {
832
- if (S)
833
- return [I, P, S];
834
- const definedIndex = [];
835
- const definedPoints = [];
836
- for (let i = 0; i < I.length; i++) {
837
- const d = I[i];
838
- const p = P[i];
839
- if (p.every(([x, y]) => defined(x) && defined(y))) {
840
- definedIndex.push(d);
841
- definedPoints.push(p);
842
- }
843
- }
844
- return [definedIndex, definedPoints];
845
- }
846
- function normalizeLabelSelector(label) {
847
- const { selector } = label;
848
- if (!selector)
849
- return null;
850
- if (typeof selector === 'function')
851
- return selector;
852
- if (selector === 'first')
853
- return (I) => [I[0]];
854
- if (selector === 'last')
855
- return (I) => [I[I.length - 1]];
856
- throw new Error(`Unknown selector: ${selector}`);
857
- }
858
- /**
859
- * Avoid getting error bounds caused by element animations.
860
- * @todo Remove this temporary handle method, if runtime supports
861
- * correct process: drawElement, do label layout and then do
862
- * transitions together.
863
- */
864
- function getLocalBounds(element) {
865
- const cloneElement = element.cloneNode();
866
- const animations = element.getAnimations();
867
- cloneElement.style.visibility = 'hidden';
868
- animations.forEach((animation) => {
869
- const keyframes = animation.effect.getKeyframes();
870
- cloneElement.attr(keyframes[keyframes.length - 1]);
871
- });
872
- element.parentNode.appendChild(cloneElement);
873
- const bounds = cloneElement.getLocalBounds();
874
- cloneElement.destroy();
875
- const { min, max } = bounds;
876
- return [min, max];
877
- }
878
- function createLabelShapeFunction(mark, state, view, library, context) {
879
- const [useShape] = useLibrary('shape', library);
880
- const { data: abstractData, encode } = mark;
881
- const { data: visualData, defaultLabelShape } = state;
882
- const point2d = visualData.map((d) => d.points);
883
- const channel = mapObject(encode, (d) => d.value);
884
- // Assemble Context.
885
- const { theme, coordinate } = view;
886
- const shapeContext = Object.assign(Object.assign({}, context), { document: documentOf(context), theme,
887
- coordinate });
888
- return (options) => {
889
- // Computed values from data and styles.
890
- const { index, points } = options;
891
- const datum = abstractData[index];
892
- const { formatter = (d) => `${d}`, transform, style: abstractStyle, render, selector, element } = options, abstractOptions = __rest(options, ["formatter", "transform", "style", "render", "selector", "element"]);
893
- const visualOptions = mapObject(Object.assign(Object.assign({}, abstractOptions), abstractStyle), (d) => valueOf(d, datum, index, abstractData, {
894
- channel,
895
- element,
896
- }));
897
- const { shape = defaultLabelShape, text } = visualOptions, style = __rest(visualOptions, ["shape", "text"]);
898
- const f = typeof formatter === 'string' ? format(formatter) : formatter;
899
- const value = Object.assign(Object.assign({}, style), { text: f(text, datum, index, abstractData), datum });
900
- // Params for create shape.
901
- const shapeOptions = Object.assign({ type: `label.${shape}`, render }, style);
902
- const shapeFunction = useShape(shapeOptions, shapeContext);
903
- const defaults = getDefaultsStyle(theme, 'label', shape, 'label');
904
- return shapeFunction(points, value, defaults, point2d);
905
- };
906
- }
907
- function valueOf(value, datum, i, data, options) {
908
- if (typeof value === 'function')
909
- return value(datum, i, data, options);
910
- if (typeof value !== 'string')
911
- return value;
912
- if (isStrictObject(datum) && datum[value] !== undefined)
913
- return datum[value];
914
- return value;
915
- }
916
- /**
917
- * Compute max duration for this frame.
918
- */
919
- function computeAnimationExtent(markState) {
920
- let maxDuration = -Infinity;
921
- let minDelay = Infinity;
922
- for (const [mark, state] of markState) {
923
- const { animate = {} } = mark;
924
- const { data } = state;
925
- const { enter = {}, update = {}, exit = {} } = animate;
926
- const { type: defaultUpdateType, duration: defaultUpdateDuration = 300, delay: defaultUpdateDelay = 0, } = update;
927
- const { type: defaultEnterType, duration: defaultEnterDuration = 300, delay: defaultEnterDelay = 0, } = enter;
928
- const { type: defaultExitType, duration: defaultExitDuration = 300, delay: defaultExitDelay = 0, } = exit;
929
- for (const d of data) {
930
- const { updateType = defaultUpdateType, updateDuration = defaultUpdateDuration, updateDelay = defaultUpdateDelay, enterType = defaultEnterType, enterDuration = defaultEnterDuration, enterDelay = defaultEnterDelay, exitDuration = defaultExitDuration, exitDelay = defaultExitDelay, exitType = defaultExitType, } = d;
931
- if (updateType === undefined || updateType) {
932
- maxDuration = Math.max(maxDuration, updateDuration + updateDelay);
933
- minDelay = Math.min(minDelay, updateDelay);
934
- }
935
- if (exitType === undefined || exitType) {
936
- maxDuration = Math.max(maxDuration, exitDuration + exitDelay);
937
- minDelay = Math.min(minDelay, exitDelay);
938
- }
939
- if (enterType === undefined || enterType) {
940
- maxDuration = Math.max(maxDuration, enterDuration + enterDelay);
941
- minDelay = Math.min(minDelay, enterDelay);
942
- }
943
- }
944
- }
945
- if (maxDuration === -Infinity)
946
- return null;
947
- return [minDelay, maxDuration - minDelay];
948
- }
949
- function selectFacetElements(selection, current, facetClassName, elementClassName) {
950
- const group = selection.node().parentElement;
951
- return group
952
- .findAll((node) => node.style.facet !== undefined &&
953
- node.style.facet === facetClassName &&
954
- node !== current.node())
955
- .flatMap((node) => node.getElementsByClassName(elementClassName));
956
- }
957
- /**
958
- * Update the parent of element and apply transform to make it
959
- * stay in original position.
960
- */
961
- function maybeFacetElement(element, parent, originOf) {
962
- if (!element.__facet__)
963
- return;
964
- // element -> g#main -> rect#plot
965
- const prePlot = element.parentNode.parentNode;
966
- // g#main -> rect#plot
967
- const newPlot = parent.parentNode;
968
- const [px, py] = originOf(prePlot);
969
- const [x, y] = originOf(newPlot);
970
- const translate = `translate(${px - x}, ${py - y})`;
971
- appendTransform(element, translate);
972
- parent.append(element);
973
- }
974
- function createMarkShapeFunction(mark, state, view, context) {
975
- const { library } = context;
976
- const [useShape] = useLibrary('shape', library);
977
- const { data: abstractData, encode } = mark;
978
- const { defaultShape, data, shape: shapeLibrary } = state;
979
- const channel = mapObject(encode, (d) => d.value);
980
- const point2d = data.map((d) => d.points);
981
- const { theme, coordinate } = view;
982
- const { type: markType, style = {} } = mark;
983
- const shapeContext = Object.assign(Object.assign({}, context), { document: documentOf(context), coordinate,
984
- theme });
985
- return (data) => {
986
- const { shape: styleShape = defaultShape } = style;
987
- const { shape = styleShape, points, seriesIndex, index: i } = data, v = __rest(data, ["shape", "points", "seriesIndex", "index"]);
988
- const value = Object.assign(Object.assign({}, v), { index: i });
989
- // Get data-driven style.
990
- // If it is a series shape, such as area and line,
991
- // provides the series of abstract data and indices
992
- // for this shape, otherwise the single datum and
993
- // index.
994
- const abstractDatum = seriesIndex
995
- ? seriesIndex.map((i) => abstractData[i])
996
- : abstractData[i];
997
- const I = seriesIndex ? seriesIndex : i;
998
- const visualStyle = mapObject(style, (d) => valueOf(d, abstractDatum, I, abstractData, { channel }));
999
- // Try get shape from mark first, then from library.
1000
- const shapeFunction = shapeLibrary[shape]
1001
- ? shapeLibrary[shape](visualStyle, shapeContext)
1002
- : useShape(Object.assign(Object.assign({}, visualStyle), { type: shapeName(mark, shape) }), shapeContext);
1003
- const defaults = getDefaultsStyle(theme, markType, shape, defaultShape);
1004
- return shapeFunction(points, value, defaults, point2d);
1005
- };
1006
- }
1007
- function getDefaultsStyle(theme, mark, shape, defaultShape) {
1008
- if (typeof mark !== 'string')
1009
- return;
1010
- const { color } = theme;
1011
- const markTheme = theme[mark] || {};
1012
- const shapeTheme = markTheme[shape] || markTheme[defaultShape];
1013
- return Object.assign({ color }, shapeTheme);
1014
- }
1015
- function createAnimationFunction(type, mark, state, view, library) {
1016
- var _a, _b;
1017
- const [, createShape] = useLibrary('shape', library);
1018
- const [useAnimation] = useLibrary('animation', library);
1019
- const { defaultShape, shape: shapeLibrary } = state;
1020
- const { theme, coordinate } = view;
1021
- const upperType = upperFirst(type);
1022
- const key = `default${upperType}Animation`;
1023
- // Get shape from mark first, then from library.
1024
- const { [key]: defaultAnimation } = ((_a = shapeLibrary[defaultShape]) === null || _a === void 0 ? void 0 : _a.props) ||
1025
- createShape(shapeName(mark, defaultShape)).props;
1026
- const { [type]: defaultEffectTiming = {} } = theme;
1027
- const animate = ((_b = mark.animate) === null || _b === void 0 ? void 0 : _b[type]) || {};
1028
- const context = { coordinate };
1029
- return (data, from, to) => {
1030
- const { [`${type}Type`]: animation, [`${type}Delay`]: delay, [`${type}Duration`]: duration, [`${type}Easing`]: easing, } = data;
1031
- const options = Object.assign({ type: animation || defaultAnimation }, animate);
1032
- if (!options.type)
1033
- return null;
1034
- const animateFunction = useAnimation(options, context);
1035
- const value = { delay, duration, easing };
1036
- const A = animateFunction(from, to, deepMix(defaultEffectTiming, value));
1037
- let an = [];
1038
- if (!Array.isArray(A)) {
1039
- an = [A];
1040
- }
1041
- else {
1042
- an = A;
1043
- }
1044
- return an.filter(Boolean);
1045
- };
1046
- }
1047
- function createEnterFunction(mark, state, view, library) {
1048
- return createAnimationFunction('enter', mark, state, view, library);
1049
- }
1050
- /**
1051
- * Animation will not cancel automatically, it should be canceled
1052
- * manually. This is very important for performance.
1053
- */
1054
- function cancel(animation) {
1055
- animation.finished.then(() => {
1056
- animation.cancel();
1057
- });
1058
- return animation;
1059
- }
1060
- function createUpdateFunction(mark, state, view, library) {
1061
- return createAnimationFunction('update', mark, state, view, library);
1062
- }
1063
- function createExitFunction(mark, state, view, library) {
1064
- return createAnimationFunction('exit', mark, state, view, library);
1065
- }
1066
- function inferTheme(theme = {}) {
1067
- if (typeof theme === 'string')
1068
- return { type: theme };
1069
- const { type = 'light' } = theme, rest = __rest(theme, ["type"]);
1070
- return Object.assign(Object.assign({}, rest), { type });
1071
- }
1072
- /**
1073
- * @todo Infer builtin tooltips.
1074
- */
1075
- function inferInteraction(view) {
1076
- const defaults = {
1077
- event: true,
1078
- tooltip: true,
1079
- // @todo Inferred by slider self.
1080
- sliderFilter: true,
1081
- legendFilter: true,
1082
- scrollbarFilter: true,
1083
- };
1084
- const { interaction = {} } = view;
1085
- return Object.entries(deepMix(defaults, interaction)).reverse();
1086
- }
1087
- function applyTransform(node, context) {
1088
- return __awaiter(this, void 0, void 0, function* () {
1089
- const { data } = node, rest = __rest(node, ["data"]);
1090
- if (data == undefined)
1091
- return node;
1092
- const [, { data: newData }] = yield applyDataTransform([], { data }, context);
1093
- return Object.assign({ data: newData }, rest);
1094
- });
1095
- }
1096
- function updateBBox(selection) {
1097
- selection
1098
- .style('transform', (d) => `translate(${d.paddingLeft + d.marginLeft}, ${d.paddingTop + d.marginTop})`)
1099
- .style('width', (d) => d.innerWidth)
1100
- .style('height', (d) => d.innerHeight);
1101
- }
1102
- function animateBBox(selection, extent) {
1103
- const [delay, duration] = extent;
1104
- selection.transition(function (data, i, element) {
1105
- const { transform, width, height } = element.style;
1106
- const { paddingLeft, paddingTop, innerWidth, innerHeight, marginLeft, marginTop, } = data;
1107
- const keyframes = [
1108
- {
1109
- transform,
1110
- width,
1111
- height,
1112
- },
1113
- {
1114
- transform: `translate(${paddingLeft + marginLeft}, ${paddingTop + marginTop})`,
1115
- width: innerWidth,
1116
- height: innerHeight,
1117
- },
1118
- ];
1119
- return element.animate(keyframes, { delay, duration, fill: 'both' });
1120
- });
1121
- }
1122
- function shapeName(mark, name) {
1123
- const { type } = mark;
1124
- if (typeof name === 'string')
1125
- return `${type}.${name}`;
1126
- return name;
1127
- }
1128
- /**
1129
- * Create and update layer for each mark.
1130
- * All the layers created here are treated as main layers.
1131
- */
1132
- function updateLayers(selection, marks) {
1133
- const facet = (d) => (d.class !== undefined ? `${d.class}` : '');
1134
- // Skip for empty selection, it can't append nodes.
1135
- const nodes = selection.nodes();
1136
- if (nodes.length === 0)
1137
- return;
1138
- selection
1139
- .selectAll(className(MAIN_LAYER_CLASS_NAME))
1140
- .data(marks, (d) => d.key)
1141
- .join((enter) => enter
1142
- .append('g')
1143
- .attr('className', MAIN_LAYER_CLASS_NAME)
1144
- .attr('id', (d) => d.key)
1145
- .style('facet', facet)
1146
- .style('fill', 'transparent')
1147
- .style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (update) => update
1148
- .style('facet', facet)
1149
- .style('fill', 'transparent')
1150
- .style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (exit) => exit.remove());
1151
- const labelLayer = selection.select(className(LABEL_LAYER_CLASS_NAME)).node();
1152
- if (labelLayer)
1153
- return;
1154
- selection
1155
- .append('g')
1156
- .attr('className', LABEL_LAYER_CLASS_NAME)
1157
- .style('zIndex', 0);
1158
- }
1159
- function className(...names) {
1160
- return names.map((d) => `.${d}`).join('');
1161
- }
1162
- function applyClip(selection, clip) {
1163
- if (!selection.node())
1164
- return;
1165
- selection.style('clipPath', (data) => {
1166
- if (!clip)
1167
- return null;
1168
- const { paddingTop: y, paddingLeft: x, marginLeft: x1, marginTop: y1, innerWidth: width, innerHeight: height, } = data;
1169
- return new Rect({ style: { x: x + x1, y: y + y1, width, height } });
1170
- });
1171
- }
1172
- function inferComponentScales(scales, states, markState) {
1173
- // add shape scale to state.
1174
- var _a;
1175
- // for cell, omit shape scale.
1176
- // @todo support shape scale for cell.
1177
- for (const [key] of markState.entries()) {
1178
- if (key.type === 'cell') {
1179
- return scales.filter((scale) => scale.name !== 'shape');
1180
- }
1181
- }
1182
- // can't infer shape scale if there are multiple states.
1183
- if (states.length !== 1 || scales.some((scale) => scale.name === 'shape')) {
1184
- return scales;
1185
- }
1186
- const { defaultShape: shape } = states[0];
1187
- const acceptMarkTypes = ['point', 'line', 'rect', 'hollow'];
1188
- if (!acceptMarkTypes.includes(shape))
1189
- return scales;
1190
- const shapeMap = {
1191
- point: 'point',
1192
- line: 'hyphen',
1193
- rect: 'square',
1194
- hollow: 'hollow',
1195
- };
1196
- // create shape scale
1197
- const field = ((_a = scales.find((scale) => scale.name === 'color')) === null || _a === void 0 ? void 0 : _a.field) || null;
1198
- const shapeScale = {
1199
- field,
1200
- name: 'shape',
1201
- type: 'constant',
1202
- domain: [],
1203
- range: [shapeMap[shape]],
1204
- };
1205
- return [...scales, shapeScale];
1206
- }
1207
- export function applyStyle(selection, style) {
1208
- for (const [key, value] of Object.entries(style)) {
1209
- selection.style(key, value);
1210
- }
1211
- }
1212
- //# sourceMappingURL=plot.js.map