@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,1217 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.applyStyle = exports.plot = void 0;
24
- const g_1 = require("@antv/g");
25
- const util_1 = require("@antv/util");
26
- const d3_array_1 = require("@antv/vendor/d3-array");
27
- const d3_format_1 = require("@antv/vendor/d3-format");
28
- const array_1 = require("../utils/array");
29
- const event_1 = require("../utils/event");
30
- const helper_1 = require("../utils/helper");
31
- const selection_1 = require("../utils/selection");
32
- const component_1 = require("./component");
33
- const constant_1 = require("./constant");
34
- const coordinate_1 = require("./coordinate");
35
- const layout_1 = require("./layout");
36
- const library_1 = require("./library");
37
- const mark_1 = require("./mark");
38
- const scale_1 = require("./scale");
39
- const transform_1 = require("./transform");
40
- function plot(options, selection, context) {
41
- var _a;
42
- return __awaiter(this, void 0, void 0, function* () {
43
- const { library } = context;
44
- const [useComposition] = (0, library_1.useLibrary)('composition', library);
45
- const [useInteraction] = (0, library_1.useLibrary)('interaction', library);
46
- // Some helper functions.
47
- const marks = new Set(Object.keys(library)
48
- .map((d) => { var _a; return (_a = /mark\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
49
- .filter(helper_1.defined));
50
- const staticMarks = new Set(Object.keys(library)
51
- .map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
52
- .filter(helper_1.defined));
53
- const typeOf = (node) => {
54
- const { type } = node;
55
- if (typeof type === 'function') {
56
- // @ts-ignore
57
- const { props = {} } = type;
58
- const { composite = true } = props;
59
- if (composite)
60
- return 'mark';
61
- }
62
- if (typeof type !== 'string')
63
- return type;
64
- if (marks.has(type) || staticMarks.has(type))
65
- return 'mark';
66
- return type;
67
- };
68
- const isMark = (node) => typeOf(node) === 'mark';
69
- const isStandardView = (node) => typeOf(node) === 'standardView';
70
- const isStaticMark = (node) => {
71
- const { type } = node;
72
- if (typeof type !== 'string')
73
- return false;
74
- if (staticMarks.has(type))
75
- return true;
76
- return false;
77
- };
78
- const transform = (node) => {
79
- if (isStandardView(node))
80
- return [node];
81
- const type = typeOf(node);
82
- const composition = useComposition({ type, static: isStaticMark(node) });
83
- return composition(node);
84
- };
85
- // Some temporary variables help parse the view tree.
86
- const views = [];
87
- const viewNode = new Map();
88
- const nodeState = new Map();
89
- const discovered = [options];
90
- const nodeGenerators = [];
91
- while (discovered.length) {
92
- const node = discovered.shift();
93
- if (isStandardView(node)) {
94
- // Initialize view to get data to be visualized. If the marks
95
- // of the view have already been initialized (facet view),
96
- // initialize the view based on the initialized mark states,
97
- // otherwise initialize it from beginning.
98
- const state = nodeState.get(node);
99
- const [view, children] = state
100
- ? initializeState(state, node, library)
101
- : yield initializeView(node, context);
102
- viewNode.set(view, node);
103
- views.push(view);
104
- // Transform children, they will be transformed into
105
- // standardView if they are mark or view node.
106
- const transformedNodes = children
107
- .flatMap(transform)
108
- .map((d) => (0, coordinate_1.coordinate2Transform)(d, library));
109
- discovered.push(...transformedNodes);
110
- // Only StandardView can be treated as facet and it
111
- // should sync position scales among facets normally.
112
- if (transformedNodes.every(isStandardView)) {
113
- const states = yield Promise.all(transformedNodes.map((d) => initializeMarks(d, context)));
114
- // Note!!!
115
- // This will mutate scales for marks.
116
- (0, scale_1.syncFacetsScales)(states);
117
- for (let i = 0; i < transformedNodes.length; i++) {
118
- const nodeT = transformedNodes[i];
119
- const state = states[i];
120
- nodeState.set(nodeT, state);
121
- }
122
- }
123
- }
124
- else {
125
- // Apply transform to get data in advance for non-mark composition
126
- // node, which makes sure that composition node can preprocess the
127
- // data to produce more nodes based on it.
128
- const n = isMark(node) ? node : yield applyTransform(node, context);
129
- const N = transform(n);
130
- if (Array.isArray(N))
131
- discovered.push(...N);
132
- else if (typeof N === 'function')
133
- nodeGenerators.push(N());
134
- }
135
- }
136
- context.emitter.emit(event_1.ChartEvent.BEFORE_PAINT);
137
- // Plot chart.
138
- const enterContainer = new Map();
139
- const updateContainer = new Map();
140
- const transitions = [];
141
- selection
142
- .selectAll(className(constant_1.VIEW_CLASS_NAME))
143
- .data(views, (d) => d.key)
144
- .join((enter) => enter
145
- .append('g')
146
- .attr('className', constant_1.VIEW_CLASS_NAME)
147
- .attr('id', (view) => view.key)
148
- .call(applyTranslate)
149
- .each(function (view, i, element) {
150
- plotView(view, (0, selection_1.select)(element), transitions, context);
151
- enterContainer.set(view, element);
152
- }), (update) => update.call(applyTranslate).each(function (view, i, element) {
153
- plotView(view, (0, selection_1.select)(element), transitions, context);
154
- updateContainer.set(view, element);
155
- }), (exit) => exit
156
- .each(function (d, i, element) {
157
- // Remove existed interactions.
158
- const interactions = element['nameInteraction'].values();
159
- for (const interaction of interactions) {
160
- interaction.destroy();
161
- }
162
- })
163
- .remove());
164
- // Apply interactions.
165
- const viewInstanceof = (viewContainer, updateInteractions, oldStore) => {
166
- return Array.from(viewContainer.entries()).map(([view, container]) => {
167
- // Index state by component or interaction name,
168
- // such as legend, scrollbar, brushFilter.
169
- // Each state transform options to another options.
170
- const store = oldStore || new Map();
171
- const setState = (key, reducer = (x) => x) => store.set(key, reducer);
172
- const options = viewNode.get(view);
173
- const update = createUpdateView((0, selection_1.select)(container), options, context);
174
- return {
175
- view,
176
- container,
177
- options,
178
- setState,
179
- update: (from, updateTypes) => __awaiter(this, void 0, void 0, function* () {
180
- // Apply all state functions to get new options.
181
- const reducer = (0, helper_1.compose)(Array.from(store.values()));
182
- const newOptions = reducer(options);
183
- return yield update(newOptions, from, () => {
184
- if ((0, util_1.isArray)(updateTypes)) {
185
- updateInteractions(viewContainer, updateTypes, store);
186
- }
187
- });
188
- }),
189
- };
190
- });
191
- };
192
- const updateInteractions = (container = updateContainer, updateType, oldStore) => {
193
- var _a;
194
- // Interactions for update views.
195
- const updateViewInstances = viewInstanceof(container, updateInteractions, oldStore);
196
- for (const target of updateViewInstances) {
197
- const { options, container } = target;
198
- const nameInteraction = container['nameInteraction'];
199
- let typeOptions = inferInteraction(options);
200
- if (updateType) {
201
- typeOptions = typeOptions.filter((v) => updateType.includes(v[0]));
202
- }
203
- for (const typeOption of typeOptions) {
204
- const [type, option] = typeOption;
205
- // Remove interaction for existed views.
206
- const prevInteraction = nameInteraction.get(type);
207
- if (prevInteraction)
208
- (_a = prevInteraction.destroy) === null || _a === void 0 ? void 0 : _a.call(prevInteraction);
209
- // Apply new interaction.
210
- if (option) {
211
- const interaction = useThemeInteraction(target.view, type, option, useInteraction);
212
- const destroy = interaction(target, updateViewInstances, context.emitter);
213
- nameInteraction.set(type, { destroy });
214
- }
215
- }
216
- }
217
- };
218
- // Interactions for enter views.
219
- const enterViewInstances = viewInstanceof(enterContainer, updateInteractions);
220
- for (const target of enterViewInstances) {
221
- const { options } = target;
222
- // A Map index interaction by interaction name.
223
- const nameInteraction = new Map();
224
- target.container['nameInteraction'] = nameInteraction;
225
- // Apply interactions.
226
- for (const typeOption of inferInteraction(options)) {
227
- const [type, option] = typeOption;
228
- if (option) {
229
- const interaction = useThemeInteraction(target.view, type, option, useInteraction);
230
- const destroy = interaction(target, enterViewInstances, context.emitter);
231
- nameInteraction.set(type, { destroy });
232
- }
233
- }
234
- }
235
- updateInteractions();
236
- // Author animations.
237
- const { width, height } = options;
238
- const keyframes = [];
239
- for (const nodeGenerator of nodeGenerators) {
240
- // Delay the rendering of animation keyframe. Different animation
241
- // created by different nodeGenerator will play in the same time.
242
- // eslint-disable-next-line no-async-promise-executor
243
- const keyframe = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
244
- for (const node of nodeGenerator) {
245
- const sizedNode = Object.assign({ width, height }, node);
246
- yield plot(sizedNode, selection, context);
247
- }
248
- resolve();
249
- }));
250
- keyframes.push(keyframe);
251
- }
252
- context.views = views;
253
- // Clear and update animation.
254
- (_a = context.animations) === null || _a === void 0 ? void 0 : _a.forEach((animation) => animation === null || animation === void 0 ? void 0 : animation.cancel());
255
- context.animations = transitions;
256
- context.emitter.emit(event_1.ChartEvent.AFTER_PAINT);
257
- // Note!!!
258
- // The returned promise will never resolved if one of nodeGenerator
259
- // never stop to yield node, which may created by a keyframe composition
260
- // with iteration count set to infinite.
261
- const finished = transitions
262
- .filter(helper_1.defined)
263
- .map(cancel)
264
- .map((d) => d.finished);
265
- return Promise.all([...finished, ...keyframes]);
266
- });
267
- }
268
- exports.plot = plot;
269
- function applyTranslate(selection) {
270
- selection.style('transform', (d) => `translate(${d.layout.x}, ${d.layout.y})`);
271
- }
272
- function definedInteraction(library) {
273
- const [, createInteraction] = (0, library_1.useLibrary)('interaction', library);
274
- return (d) => {
275
- const [name, options] = d;
276
- try {
277
- return [name, createInteraction(name)];
278
- }
279
- catch (_a) {
280
- return [name, options.type];
281
- }
282
- };
283
- }
284
- function createUpdateView(selection, options, context) {
285
- const { library } = context;
286
- const createDefinedInteraction = definedInteraction(library);
287
- const filter = (d) => d[1] && d[1].props && d[1].props.reapplyWhenUpdate;
288
- const interactions = inferInteraction(options);
289
- const updates = interactions
290
- .map(createDefinedInteraction)
291
- .filter(filter)
292
- .map((d) => d[0]);
293
- return (newOptions, source, callback) => __awaiter(this, void 0, void 0, function* () {
294
- const transitions = [];
295
- const [newView, newChildren] = yield initializeView(newOptions, context);
296
- plotView(newView, selection, transitions, context);
297
- // Update interaction need to reapply when update.
298
- for (const name of updates.filter((d) => d !== source)) {
299
- updateInteraction(name, selection, newOptions, newView, context);
300
- }
301
- for (const child of newChildren) {
302
- plot(child, selection, context);
303
- }
304
- callback();
305
- return { options: newOptions, view: newView };
306
- });
307
- }
308
- function updateInteraction(name, selection, options, view, context) {
309
- var _a;
310
- const { library } = context;
311
- const [useInteraction] = (0, library_1.useLibrary)('interaction', library);
312
- // Instances for interaction.
313
- const container = selection.node();
314
- const nameInteraction = container['nameInteraction'];
315
- const interactionOptions = inferInteraction(options).find(([d]) => d === name);
316
- // Destroy older interaction.
317
- const interaction = nameInteraction.get(name);
318
- if (!interaction)
319
- return;
320
- (_a = interaction.destroy) === null || _a === void 0 ? void 0 : _a.call(interaction);
321
- if (!interactionOptions[1])
322
- return;
323
- // Apply new interaction.
324
- const applyInteraction = useThemeInteraction(view, name, interactionOptions[1], useInteraction);
325
- const target = {
326
- options,
327
- view,
328
- container: selection.node(),
329
- update: (options) => Promise.resolve(options),
330
- };
331
- const destroy = applyInteraction(target, [], context.emitter);
332
- nameInteraction.set(name, { destroy });
333
- }
334
- function initializeView(options, context) {
335
- return __awaiter(this, void 0, void 0, function* () {
336
- const { library } = context;
337
- const flattenOptions = yield transformMarks(options, context);
338
- const mergedOptions = bubbleOptions(flattenOptions);
339
- // @todo Remove this.
340
- // !!! NOTE: Mute original view options.
341
- // Update interaction and coordinate for this view.
342
- options.interaction = mergedOptions.interaction;
343
- options.coordinate = mergedOptions.coordinate;
344
- // @ts-ignore
345
- options.marks = [...mergedOptions.marks, ...mergedOptions.components];
346
- const transformedOptions = (0, coordinate_1.coordinate2Transform)(mergedOptions, library);
347
- const state = yield initializeMarks(transformedOptions, context);
348
- return initializeState(state, transformedOptions, library);
349
- });
350
- }
351
- function bubbleOptions(options) {
352
- const { coordinate: viewCoordinate = {}, interaction: viewInteraction = {}, style: viewStyle = {}, marks } = options, rest = __rest(options, ["coordinate", "interaction", "style", "marks"]);
353
- const markCoordinates = marks.map((d) => d.coordinate || {});
354
- const markInteractions = marks.map((d) => d.interaction || {});
355
- const markViewStyles = marks.map((d) => d.viewStyle || {});
356
- const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
357
- const newInteraction = [viewInteraction, ...markInteractions].reduce((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
358
- const newStyle = [...markViewStyles, viewStyle].reduce((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
359
- return Object.assign(Object.assign({}, rest), { marks, coordinate: newCoordinate, interaction: newInteraction, style: newStyle });
360
- }
361
- function transformMarks(options, context) {
362
- return __awaiter(this, void 0, void 0, function* () {
363
- const { library } = context;
364
- const [useMark, createMark] = (0, library_1.useLibrary)('mark', library);
365
- const staticMarks = new Set(Object.keys(library)
366
- .map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
367
- .filter(helper_1.defined));
368
- const { marks } = options;
369
- const flattenMarks = [];
370
- const components = [];
371
- const discovered = [...marks];
372
- const { width, height } = (0, layout_1.computeRoughPlotSize)(options);
373
- const markOptions = { options, width, height };
374
- // Pre order traversal.
375
- while (discovered.length) {
376
- const [node] = discovered.splice(0, 1);
377
- // Apply data transform to get data.
378
- const mark = (yield applyTransform(node, context));
379
- const { type = (0, helper_1.error)('G2Mark type is required.'), key } = mark;
380
- // For components.
381
- if (staticMarks.has(type))
382
- components.push(mark);
383
- else {
384
- const { props = {} } = createMark(type);
385
- const { composite = true } = props;
386
- if (!composite)
387
- flattenMarks.push(mark);
388
- else {
389
- // Unwrap data from { value: data } to data,
390
- // then the composite mark can process the normalized data.
391
- const { data } = mark;
392
- const newMark = Object.assign(Object.assign({}, mark), { data: data ? (Array.isArray(data) ? data : data.value) : data });
393
- // Convert composite mark to marks.
394
- const marks = yield useMark(newMark, markOptions);
395
- const M = Array.isArray(marks) ? marks : [marks];
396
- discovered.unshift(...M.map((d, i) => (Object.assign(Object.assign({}, d), { key: `${key}-${i}` }))));
397
- }
398
- }
399
- }
400
- return Object.assign(Object.assign({}, options), { marks: flattenMarks, components });
401
- });
402
- }
403
- function initializeMarks(options, context) {
404
- return __awaiter(this, void 0, void 0, function* () {
405
- const { library } = context;
406
- const [useTheme] = (0, library_1.useLibrary)('theme', library);
407
- const [, createMark] = (0, library_1.useLibrary)('mark', library);
408
- const { theme: partialTheme, marks: partialMarks, coordinates = [], } = options;
409
- const theme = useTheme(inferTheme(partialTheme));
410
- const markState = new Map();
411
- // Initialize channels for marks.
412
- for (const markOptions of partialMarks) {
413
- const { type } = markOptions;
414
- const { props = {} } = createMark(type);
415
- const markAndState = yield (0, mark_1.initializeMark)(markOptions, props, context);
416
- if (markAndState) {
417
- const [initializedMark, state] = markAndState;
418
- markState.set(initializedMark, state);
419
- }
420
- }
421
- // Group channels by scale key, each group has scale.
422
- const scaleChannels = (0, d3_array_1.group)(Array.from(markState.values()).flatMap((d) => d.channels), ({ scaleKey }) => scaleKey);
423
- // Infer scale for each channel groups.
424
- for (const channels of scaleChannels.values()) {
425
- // Merge scale options for these channels.
426
- const scaleOptions = channels.reduce((total, { scale }) => (0, util_1.deepMix)(total, scale), {});
427
- const { scaleKey } = channels[0];
428
- // Use the fields of the first channel as the title.
429
- const { values: FV } = channels[0];
430
- const fields = Array.from(new Set(FV.map((d) => d.field).filter(helper_1.defined)));
431
- const options = (0, util_1.deepMix)({
432
- guide: { title: fields.length === 0 ? undefined : fields },
433
- field: fields[0],
434
- }, scaleOptions);
435
- // Use the name of the first channel as the scale name.
436
- const { name } = channels[0];
437
- const values = channels.flatMap(({ values }) => values.map((d) => d.value));
438
- const scale = Object.assign(Object.assign({}, (0, scale_1.inferScale)(name, values, options, coordinates, theme, library)), { uid: Symbol('scale'), key: scaleKey });
439
- channels.forEach((channel) => (channel.scale = scale));
440
- }
441
- return markState;
442
- });
443
- }
444
- function useThemeInteraction(view, type, option, useInteraction) {
445
- const theme = view.theme;
446
- const defaults = typeof type === 'string' ? theme[type] || {} : {};
447
- const interaction = useInteraction((0, util_1.deepMix)(defaults, Object.assign({ type }, option)));
448
- return interaction;
449
- }
450
- function initializeState(markState, options, library) {
451
- var _a;
452
- const [useMark] = (0, library_1.useLibrary)('mark', library);
453
- const [useTheme] = (0, library_1.useLibrary)('theme', library);
454
- const [useLabelTransform] = (0, library_1.useLibrary)('labelTransform', library);
455
- const { key, frame = false, theme: partialTheme, clip, style = {}, labelTransform = [], } = options;
456
- const theme = useTheme(inferTheme(partialTheme));
457
- // Infer components and compute layout.
458
- const states = Array.from(markState.values());
459
- const scales = (0, scale_1.collectScales)(states, options);
460
- const components = (0, component_1.normalizeComponents)((0, component_1.inferComponent)(inferComponentScales(Array.from(scales), states, markState), options, library));
461
- const layout = (0, layout_1.computeLayout)(components, options, theme, library);
462
- const coordinate = (0, coordinate_1.createCoordinate)(layout, options, library);
463
- const framedStyle = frame
464
- ? (0, util_1.deepMix)({ mainLineWidth: 1, mainStroke: '#000' }, style)
465
- : style;
466
- // Place components and mutate their bbox.
467
- (0, layout_1.placeComponents)((0, component_1.groupComponents)(components), coordinate, layout);
468
- // AxisZ need a copy of axisX and axisY to show grids in X-Z & Y-Z planes.
469
- (0, layout_1.processAxisZ)(components);
470
- // Index scale instance by uid.
471
- const uidScale = new Map(Array.from(markState.values()).flatMap((state) => {
472
- const { channels } = state;
473
- return channels.map(({ scale }) => [
474
- scale.uid,
475
- (0, scale_1.useRelationScale)(scale, library),
476
- ]);
477
- }));
478
- (0, scale_1.groupTransform)(markState, uidScale);
479
- // Scale from marks and components.
480
- const scaleInstance = {};
481
- // Initialize scale from components.
482
- for (const component of components) {
483
- const { scales: scaleDescriptors = [] } = component;
484
- const scales = [];
485
- for (const descriptor of scaleDescriptors) {
486
- const { name, uid } = descriptor;
487
- const scale = (_a = uidScale.get(uid)) !== null && _a !== void 0 ? _a : (0, scale_1.useRelationScale)(descriptor, library);
488
- scales.push(scale);
489
- // Delivery the scale of axisX to the AxisY,
490
- // in order to calculate the angle of axisY component when rendering radar chart.
491
- if (name === 'y') {
492
- scale.update(Object.assign(Object.assign({}, scale.getOptions()), { xScale: scaleInstance.x }));
493
- }
494
- (0, scale_1.assignScale)(scaleInstance, { [name]: scale });
495
- }
496
- component.scaleInstances = scales;
497
- }
498
- // Calc data to be rendered for each mark.
499
- // @todo More readable APIs for Container which stays
500
- // the same style with JS standard and lodash APIs.
501
- // @todo More proper way to index scale for different marks.
502
- const children = [];
503
- for (const [mark, state] of markState.entries()) {
504
- const {
505
- // scale,
506
- // Callback to create children options based on this mark.
507
- children: createChildren,
508
- // The total count of data (both show and hide)for this facet.
509
- // This is for unit visualization to sync data domain.
510
- dataDomain, modifier, key: markKey, } = mark;
511
- const { index, channels, tooltip } = state;
512
- const scale = Object.fromEntries(channels.map(({ name, scale }) => [name, scale]));
513
- // Transform abstract value to visual value by scales.
514
- const markScaleInstance = (0, array_1.mapObject)(scale, ({ uid }) => uidScale.get(uid));
515
- (0, scale_1.assignScale)(scaleInstance, markScaleInstance);
516
- const value = (0, scale_1.applyScale)(channels, markScaleInstance);
517
- // Calc points and transformation for each data,
518
- // and then transform visual value to visual data.
519
- const calcPoints = useMark(mark);
520
- const [I, P, S] = filterValid(calcPoints(index, markScaleInstance, value, coordinate));
521
- const count = dataDomain || I.length;
522
- const T = modifier ? modifier(P, count, layout) : [];
523
- 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; };
524
- const itemsOf = (i) => tooltip.items.map((V) => V[i]);
525
- const visualData = I.map((d, i) => {
526
- const datum = Object.assign({ points: P[i], transform: T[i], index: d, markKey, viewKey: key }, (tooltip && {
527
- title: titleOf(d),
528
- items: itemsOf(d),
529
- }));
530
- for (const [k, V] of Object.entries(value)) {
531
- datum[k] = V[d];
532
- if (S)
533
- datum[`series${(0, util_1.upperFirst)(k)}`] = S[i].map((i) => V[i]);
534
- }
535
- if (S)
536
- datum['seriesIndex'] = S[i];
537
- if (S && tooltip) {
538
- datum['seriesItems'] = S[i].map((si) => itemsOf(si));
539
- datum['seriesTitle'] = S[i].map((si) => titleOf(si));
540
- }
541
- return datum;
542
- });
543
- state.data = visualData;
544
- state.index = I;
545
- // Create children options by children callback,
546
- // and then propagate data to each child.
547
- const markChildren = createChildren === null || createChildren === void 0 ? void 0 : createChildren(visualData, markScaleInstance, layout);
548
- children.push(...(markChildren || []));
549
- }
550
- const view = {
551
- layout,
552
- theme,
553
- coordinate,
554
- markState,
555
- key,
556
- clip,
557
- scale: scaleInstance,
558
- style: framedStyle,
559
- components,
560
- labelTransform: (0, helper_1.compose)(labelTransform.map(useLabelTransform)),
561
- };
562
- return [view, children];
563
- }
564
- function plotView(view, selection, transitions, context) {
565
- return __awaiter(this, void 0, void 0, function* () {
566
- const { library } = context;
567
- const { components, theme, layout, markState, coordinate, key, style, clip, scale, } = view;
568
- // Render background for the different areas.
569
- const { x, y, width, height } = layout, rest = __rest(layout, ["x", "y", "width", "height"]);
570
- const areaKeys = ['view', 'plot', 'main', 'content'];
571
- const I = areaKeys.map((_, i) => i);
572
- const sizeKeys = ['a', 'margin', 'padding', 'inset'];
573
- const areaStyles = areaKeys.map((d) => (0, helper_1.maybeSubObject)(Object.assign({}, theme.view, style), d));
574
- const areaSizes = sizeKeys.map((d) => (0, helper_1.subObject)(rest, d));
575
- const styleArea = (selection) => selection
576
- .style('x', (i) => areaLayouts[i].x)
577
- .style('y', (i) => areaLayouts[i].y)
578
- .style('width', (i) => areaLayouts[i].width)
579
- .style('height', (i) => areaLayouts[i].height)
580
- .each(function (i, d, element) {
581
- applyStyle((0, selection_1.select)(element), areaStyles[i]);
582
- });
583
- let px = 0;
584
- let py = 0;
585
- let pw = width;
586
- let ph = height;
587
- const areaLayouts = I.map((i) => {
588
- const size = areaSizes[i];
589
- const { left = 0, top = 0, bottom = 0, right = 0 } = size;
590
- px += left;
591
- py += top;
592
- pw -= left + right;
593
- ph -= top + bottom;
594
- return {
595
- x: px,
596
- y: py,
597
- width: pw,
598
- height: ph,
599
- };
600
- });
601
- selection
602
- .selectAll(className(constant_1.AREA_CLASS_NAME))
603
- .data(
604
- // Only render area with defined style.
605
- I.filter((i) => (0, helper_1.defined)(areaStyles[i])), (i) => areaKeys[i])
606
- .join((enter) => enter
607
- .append('rect')
608
- .attr('className', constant_1.AREA_CLASS_NAME)
609
- .style('zIndex', -2)
610
- .call(styleArea), (update) => update.call(styleArea), (exit) => exit.remove());
611
- const animationExtent = computeAnimationExtent(markState);
612
- const componentAnimateOptions = animationExtent
613
- ? { duration: animationExtent[1] }
614
- : false;
615
- // Render components.
616
- // @todo renderComponent return ctor and options.
617
- // Key for each type of component.
618
- // Index them grouped by position.
619
- for (const [, C] of (0, d3_array_1.groups)(components, (d) => `${d.type}-${d.position}`)) {
620
- C.forEach((d, i) => (d.index = i));
621
- }
622
- const componentsTransitions = selection
623
- .selectAll(className(constant_1.COMPONENT_CLASS_NAME))
624
- .data(components, (d) => `${d.type}-${d.position}-${d.index}`)
625
- .join((enter) => enter
626
- .append('g')
627
- .style('zIndex', ({ zIndex }) => zIndex || -1)
628
- .attr('className', constant_1.COMPONENT_CLASS_NAME)
629
- .append((options) => (0, component_1.renderComponent)((0, util_1.deepMix)({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState)), (update) => update.transition(function (options, i, element) {
630
- const { preserve = false } = options;
631
- if (preserve)
632
- return;
633
- const newComponent = (0, component_1.renderComponent)((0, util_1.deepMix)({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState);
634
- const { attributes } = newComponent;
635
- const [node] = element.childNodes;
636
- return node.update(attributes, false);
637
- }))
638
- .transitions();
639
- transitions.push(...componentsTransitions.flat().filter(helper_1.defined));
640
- // Main layer is for showing the main visual representation such as marks. There
641
- // may be multiple main layers for a view, each main layer correspond to one of marks.
642
- // @todo Test DOM structure.
643
- const T = selection
644
- .selectAll(className(constant_1.PLOT_CLASS_NAME))
645
- .data([layout], () => key)
646
- .join((enter) => enter
647
- // Make this layer interactive, such as click and mousemove events.
648
- .append('rect')
649
- .style('zIndex', 0)
650
- .style('fill', 'transparent')
651
- .attr('className', constant_1.PLOT_CLASS_NAME)
652
- .call(updateBBox)
653
- .call(updateLayers, Array.from(markState.keys()))
654
- .call(applyClip, clip), (update) => update
655
- .call(updateLayers, Array.from(markState.keys()))
656
- .call((selection) => {
657
- return animationExtent
658
- ? animateBBox(selection, animationExtent)
659
- : updateBBox(selection);
660
- })
661
- .call(applyClip, clip))
662
- .transitions();
663
- transitions.push(...T.flat());
664
- // Render marks with corresponding data.
665
- for (const [mark, state] of markState.entries()) {
666
- const { data } = state;
667
- const { key, class: cls, type } = mark;
668
- const viewNode = selection.select(`#${key}`);
669
- const shapeFunction = createMarkShapeFunction(mark, state, view, context);
670
- const enterFunction = createEnterFunction(mark, state, view, library);
671
- const updateFunction = createUpdateFunction(mark, state, view, library);
672
- const exitFunction = createExitFunction(mark, state, view, library);
673
- const facetElements = selectFacetElements(selection, viewNode, cls, 'element');
674
- const T = viewNode
675
- .selectAll(className(constant_1.ELEMENT_CLASS_NAME))
676
- .selectFacetAll(facetElements)
677
- .data(data, (d) => d.key, (d) => d.groupKey)
678
- .join((enter) => enter
679
- .append(shapeFunction)
680
- // Note!!! Only one className can be set.
681
- // Using attribute as alternative for other classNames.
682
- .attr('className', constant_1.ELEMENT_CLASS_NAME)
683
- .attr('markType', type)
684
- .transition(function (data, i, element) {
685
- return enterFunction(data, [element]);
686
- }), (update) => update.call((selection) => {
687
- const parent = selection.parent();
688
- const origin = (0, helper_1.useMemo)((node) => {
689
- const [x, y] = node.getBounds().min;
690
- return [x, y];
691
- });
692
- selection
693
- .transition(function (data, index, element) {
694
- maybeFacetElement(element, parent, origin);
695
- const node = shapeFunction(data, index);
696
- const animation = updateFunction(data, [element], [node]);
697
- if (animation === null || animation === void 0 ? void 0 : animation.length)
698
- return animation;
699
- if (element.nodeName === node.nodeName &&
700
- node.nodeName !== 'g') {
701
- (0, helper_1.copyAttributes)(element, node);
702
- }
703
- else {
704
- element.parentNode.replaceChild(node, element);
705
- node.className = constant_1.ELEMENT_CLASS_NAME;
706
- // @ts-ignore
707
- node.markType = type;
708
- // @ts-ignore
709
- node.__data__ = element.__data__;
710
- }
711
- return animation;
712
- })
713
- .attr('markType', type)
714
- .attr('className', constant_1.ELEMENT_CLASS_NAME);
715
- }), (exit) => {
716
- return exit
717
- .each(function (d, i, element) {
718
- element.__removed__ = true;
719
- })
720
- .transition(function (data, i, element) {
721
- return exitFunction(data, [element]);
722
- })
723
- .remove();
724
- }, (merge) => merge
725
- // Append elements to be merged.
726
- .append(shapeFunction)
727
- .attr('className', constant_1.ELEMENT_CLASS_NAME)
728
- .attr('markType', type)
729
- .transition(function (data, i, element) {
730
- // Remove merged elements after animation finishing.
731
- const { __fromElements__: fromElements } = element;
732
- const transition = updateFunction(data, fromElements, [element]);
733
- const exit = new selection_1.Selection(fromElements, null, element.parentNode);
734
- exit.transition(transition).remove();
735
- return transition;
736
- }), (split) => split
737
- .transition(function (data, i, element) {
738
- // Append splitted shapes.
739
- const enter = new selection_1.Selection([], element.__toData__, element.parentNode);
740
- const toElements = enter
741
- .append(shapeFunction)
742
- .attr('className', constant_1.ELEMENT_CLASS_NAME)
743
- .attr('markType', type)
744
- .nodes();
745
- return updateFunction(data, [element], toElements);
746
- })
747
- // Remove elements to be splitted after animation finishing.
748
- .remove())
749
- .transitions();
750
- transitions.push(...T.flat());
751
- }
752
- // Plot label for this view.
753
- plotLabel(view, selection, transitions, library, context);
754
- });
755
- }
756
- /**
757
- * Auto hide labels be specify label layout.
758
- */
759
- function plotLabel(view, selection, transitions, library, context) {
760
- const [useLabelTransform] = (0, library_1.useLibrary)('labelTransform', library);
761
- const { markState, labelTransform } = view;
762
- const labelLayer = selection.select(className(constant_1.LABEL_LAYER_CLASS_NAME)).node();
763
- // A Map index shapeFunction by label.
764
- const labelShapeFunction = new Map();
765
- // A Map index options by label.
766
- const labelDescriptor = new Map();
767
- // Get all labels for this view.
768
- const labels = Array.from(markState.entries()).flatMap(([mark, state]) => {
769
- const { labels: labelOptions = [], key } = mark;
770
- const shapeFunction = createLabelShapeFunction(mark, state, view, library, context);
771
- const elements = selection
772
- .select(`#${key}`)
773
- .selectAll(className(constant_1.ELEMENT_CLASS_NAME))
774
- .nodes()
775
- // Only select the valid element.
776
- .filter((n) => !n.__removed__);
777
- return labelOptions.flatMap((labelOption, i) => {
778
- const { transform = [] } = labelOption, options = __rest(labelOption, ["transform"]);
779
- return elements.flatMap((e) => {
780
- const L = getLabels(options, i, e);
781
- L.forEach((l) => {
782
- labelShapeFunction.set(l, (data) => shapeFunction(Object.assign(Object.assign({}, data), { element: e })));
783
- labelDescriptor.set(l, labelOption);
784
- });
785
- return L;
786
- });
787
- });
788
- });
789
- // Render all labels.
790
- const labelShapes = (0, selection_1.select)(labelLayer)
791
- .selectAll(className(constant_1.LABEL_CLASS_NAME))
792
- .data(labels, (d) => d.key)
793
- .join((enter) => enter
794
- .append((d) => labelShapeFunction.get(d)(d))
795
- .attr('className', constant_1.LABEL_CLASS_NAME), (update) => update.each(function (d, i, element) {
796
- // @todo Handle Label with different type.
797
- const shapeFunction = labelShapeFunction.get(d);
798
- const node = shapeFunction(d);
799
- (0, helper_1.copyAttributes)(element, node);
800
- }), (exit) => exit.remove())
801
- .nodes();
802
- // Apply group-level transforms.
803
- const labelGroups = (0, d3_array_1.group)(labelShapes, (d) => labelDescriptor.get(d.__data__));
804
- const { coordinate, layout } = view;
805
- const labelTransformContext = {
806
- canvas: context.canvas,
807
- coordinate,
808
- layout,
809
- };
810
- for (const [label, shapes] of labelGroups) {
811
- const { transform = [] } = label;
812
- const transformFunction = (0, helper_1.compose)(transform.map(useLabelTransform));
813
- transformFunction(shapes, labelTransformContext);
814
- }
815
- // Apply view-level transform.
816
- if (labelTransform) {
817
- labelTransform(labelShapes, labelTransformContext);
818
- }
819
- }
820
- function getLabels(label, labelIndex, element) {
821
- const { seriesIndex: SI, seriesKey, points, key, index } = element.__data__;
822
- const bounds = getLocalBounds(element);
823
- if (!SI) {
824
- return [
825
- Object.assign(Object.assign({}, label), { key: `${key}-${labelIndex}`, bounds,
826
- index,
827
- points, dependentElement: element }),
828
- ];
829
- }
830
- const selector = normalizeLabelSelector(label);
831
- const F = SI.map((index, i) => (Object.assign(Object.assign({}, label), { key: `${seriesKey[i]}-${labelIndex}`, bounds: [points[i]], index,
832
- points, dependentElement: element })));
833
- return selector ? selector(F) : F;
834
- }
835
- function filterValid([I, P, S]) {
836
- if (S)
837
- return [I, P, S];
838
- const definedIndex = [];
839
- const definedPoints = [];
840
- for (let i = 0; i < I.length; i++) {
841
- const d = I[i];
842
- const p = P[i];
843
- if (p.every(([x, y]) => (0, helper_1.defined)(x) && (0, helper_1.defined)(y))) {
844
- definedIndex.push(d);
845
- definedPoints.push(p);
846
- }
847
- }
848
- return [definedIndex, definedPoints];
849
- }
850
- function normalizeLabelSelector(label) {
851
- const { selector } = label;
852
- if (!selector)
853
- return null;
854
- if (typeof selector === 'function')
855
- return selector;
856
- if (selector === 'first')
857
- return (I) => [I[0]];
858
- if (selector === 'last')
859
- return (I) => [I[I.length - 1]];
860
- throw new Error(`Unknown selector: ${selector}`);
861
- }
862
- /**
863
- * Avoid getting error bounds caused by element animations.
864
- * @todo Remove this temporary handle method, if runtime supports
865
- * correct process: drawElement, do label layout and then do
866
- * transitions together.
867
- */
868
- function getLocalBounds(element) {
869
- const cloneElement = element.cloneNode();
870
- const animations = element.getAnimations();
871
- cloneElement.style.visibility = 'hidden';
872
- animations.forEach((animation) => {
873
- const keyframes = animation.effect.getKeyframes();
874
- cloneElement.attr(keyframes[keyframes.length - 1]);
875
- });
876
- element.parentNode.appendChild(cloneElement);
877
- const bounds = cloneElement.getLocalBounds();
878
- cloneElement.destroy();
879
- const { min, max } = bounds;
880
- return [min, max];
881
- }
882
- function createLabelShapeFunction(mark, state, view, library, context) {
883
- const [useShape] = (0, library_1.useLibrary)('shape', library);
884
- const { data: abstractData, encode } = mark;
885
- const { data: visualData, defaultLabelShape } = state;
886
- const point2d = visualData.map((d) => d.points);
887
- const channel = (0, array_1.mapObject)(encode, (d) => d.value);
888
- // Assemble Context.
889
- const { theme, coordinate } = view;
890
- const shapeContext = Object.assign(Object.assign({}, context), { document: (0, library_1.documentOf)(context), theme,
891
- coordinate });
892
- return (options) => {
893
- // Computed values from data and styles.
894
- const { index, points } = options;
895
- const datum = abstractData[index];
896
- const { formatter = (d) => `${d}`, transform, style: abstractStyle, render, selector, element } = options, abstractOptions = __rest(options, ["formatter", "transform", "style", "render", "selector", "element"]);
897
- const visualOptions = (0, array_1.mapObject)(Object.assign(Object.assign({}, abstractOptions), abstractStyle), (d) => valueOf(d, datum, index, abstractData, {
898
- channel,
899
- element,
900
- }));
901
- const { shape = defaultLabelShape, text } = visualOptions, style = __rest(visualOptions, ["shape", "text"]);
902
- const f = typeof formatter === 'string' ? (0, d3_format_1.format)(formatter) : formatter;
903
- const value = Object.assign(Object.assign({}, style), { text: f(text, datum, index, abstractData), datum });
904
- // Params for create shape.
905
- const shapeOptions = Object.assign({ type: `label.${shape}`, render }, style);
906
- const shapeFunction = useShape(shapeOptions, shapeContext);
907
- const defaults = getDefaultsStyle(theme, 'label', shape, 'label');
908
- return shapeFunction(points, value, defaults, point2d);
909
- };
910
- }
911
- function valueOf(value, datum, i, data, options) {
912
- if (typeof value === 'function')
913
- return value(datum, i, data, options);
914
- if (typeof value !== 'string')
915
- return value;
916
- if ((0, helper_1.isStrictObject)(datum) && datum[value] !== undefined)
917
- return datum[value];
918
- return value;
919
- }
920
- /**
921
- * Compute max duration for this frame.
922
- */
923
- function computeAnimationExtent(markState) {
924
- let maxDuration = -Infinity;
925
- let minDelay = Infinity;
926
- for (const [mark, state] of markState) {
927
- const { animate = {} } = mark;
928
- const { data } = state;
929
- const { enter = {}, update = {}, exit = {} } = animate;
930
- const { type: defaultUpdateType, duration: defaultUpdateDuration = 300, delay: defaultUpdateDelay = 0, } = update;
931
- const { type: defaultEnterType, duration: defaultEnterDuration = 300, delay: defaultEnterDelay = 0, } = enter;
932
- const { type: defaultExitType, duration: defaultExitDuration = 300, delay: defaultExitDelay = 0, } = exit;
933
- for (const d of data) {
934
- const { updateType = defaultUpdateType, updateDuration = defaultUpdateDuration, updateDelay = defaultUpdateDelay, enterType = defaultEnterType, enterDuration = defaultEnterDuration, enterDelay = defaultEnterDelay, exitDuration = defaultExitDuration, exitDelay = defaultExitDelay, exitType = defaultExitType, } = d;
935
- if (updateType === undefined || updateType) {
936
- maxDuration = Math.max(maxDuration, updateDuration + updateDelay);
937
- minDelay = Math.min(minDelay, updateDelay);
938
- }
939
- if (exitType === undefined || exitType) {
940
- maxDuration = Math.max(maxDuration, exitDuration + exitDelay);
941
- minDelay = Math.min(minDelay, exitDelay);
942
- }
943
- if (enterType === undefined || enterType) {
944
- maxDuration = Math.max(maxDuration, enterDuration + enterDelay);
945
- minDelay = Math.min(minDelay, enterDelay);
946
- }
947
- }
948
- }
949
- if (maxDuration === -Infinity)
950
- return null;
951
- return [minDelay, maxDuration - minDelay];
952
- }
953
- function selectFacetElements(selection, current, facetClassName, elementClassName) {
954
- const group = selection.node().parentElement;
955
- return group
956
- .findAll((node) => node.style.facet !== undefined &&
957
- node.style.facet === facetClassName &&
958
- node !== current.node())
959
- .flatMap((node) => node.getElementsByClassName(elementClassName));
960
- }
961
- /**
962
- * Update the parent of element and apply transform to make it
963
- * stay in original position.
964
- */
965
- function maybeFacetElement(element, parent, originOf) {
966
- if (!element.__facet__)
967
- return;
968
- // element -> g#main -> rect#plot
969
- const prePlot = element.parentNode.parentNode;
970
- // g#main -> rect#plot
971
- const newPlot = parent.parentNode;
972
- const [px, py] = originOf(prePlot);
973
- const [x, y] = originOf(newPlot);
974
- const translate = `translate(${px - x}, ${py - y})`;
975
- (0, helper_1.appendTransform)(element, translate);
976
- parent.append(element);
977
- }
978
- function createMarkShapeFunction(mark, state, view, context) {
979
- const { library } = context;
980
- const [useShape] = (0, library_1.useLibrary)('shape', library);
981
- const { data: abstractData, encode } = mark;
982
- const { defaultShape, data, shape: shapeLibrary } = state;
983
- const channel = (0, array_1.mapObject)(encode, (d) => d.value);
984
- const point2d = data.map((d) => d.points);
985
- const { theme, coordinate } = view;
986
- const { type: markType, style = {} } = mark;
987
- const shapeContext = Object.assign(Object.assign({}, context), { document: (0, library_1.documentOf)(context), coordinate,
988
- theme });
989
- return (data) => {
990
- const { shape: styleShape = defaultShape } = style;
991
- const { shape = styleShape, points, seriesIndex, index: i } = data, v = __rest(data, ["shape", "points", "seriesIndex", "index"]);
992
- const value = Object.assign(Object.assign({}, v), { index: i });
993
- // Get data-driven style.
994
- // If it is a series shape, such as area and line,
995
- // provides the series of abstract data and indices
996
- // for this shape, otherwise the single datum and
997
- // index.
998
- const abstractDatum = seriesIndex
999
- ? seriesIndex.map((i) => abstractData[i])
1000
- : abstractData[i];
1001
- const I = seriesIndex ? seriesIndex : i;
1002
- const visualStyle = (0, array_1.mapObject)(style, (d) => valueOf(d, abstractDatum, I, abstractData, { channel }));
1003
- // Try get shape from mark first, then from library.
1004
- const shapeFunction = shapeLibrary[shape]
1005
- ? shapeLibrary[shape](visualStyle, shapeContext)
1006
- : useShape(Object.assign(Object.assign({}, visualStyle), { type: shapeName(mark, shape) }), shapeContext);
1007
- const defaults = getDefaultsStyle(theme, markType, shape, defaultShape);
1008
- return shapeFunction(points, value, defaults, point2d);
1009
- };
1010
- }
1011
- function getDefaultsStyle(theme, mark, shape, defaultShape) {
1012
- if (typeof mark !== 'string')
1013
- return;
1014
- const { color } = theme;
1015
- const markTheme = theme[mark] || {};
1016
- const shapeTheme = markTheme[shape] || markTheme[defaultShape];
1017
- return Object.assign({ color }, shapeTheme);
1018
- }
1019
- function createAnimationFunction(type, mark, state, view, library) {
1020
- var _a, _b;
1021
- const [, createShape] = (0, library_1.useLibrary)('shape', library);
1022
- const [useAnimation] = (0, library_1.useLibrary)('animation', library);
1023
- const { defaultShape, shape: shapeLibrary } = state;
1024
- const { theme, coordinate } = view;
1025
- const upperType = (0, util_1.upperFirst)(type);
1026
- const key = `default${upperType}Animation`;
1027
- // Get shape from mark first, then from library.
1028
- const { [key]: defaultAnimation } = ((_a = shapeLibrary[defaultShape]) === null || _a === void 0 ? void 0 : _a.props) ||
1029
- createShape(shapeName(mark, defaultShape)).props;
1030
- const { [type]: defaultEffectTiming = {} } = theme;
1031
- const animate = ((_b = mark.animate) === null || _b === void 0 ? void 0 : _b[type]) || {};
1032
- const context = { coordinate };
1033
- return (data, from, to) => {
1034
- const { [`${type}Type`]: animation, [`${type}Delay`]: delay, [`${type}Duration`]: duration, [`${type}Easing`]: easing, } = data;
1035
- const options = Object.assign({ type: animation || defaultAnimation }, animate);
1036
- if (!options.type)
1037
- return null;
1038
- const animateFunction = useAnimation(options, context);
1039
- const value = { delay, duration, easing };
1040
- const A = animateFunction(from, to, (0, util_1.deepMix)(defaultEffectTiming, value));
1041
- let an = [];
1042
- if (!Array.isArray(A)) {
1043
- an = [A];
1044
- }
1045
- else {
1046
- an = A;
1047
- }
1048
- return an.filter(Boolean);
1049
- };
1050
- }
1051
- function createEnterFunction(mark, state, view, library) {
1052
- return createAnimationFunction('enter', mark, state, view, library);
1053
- }
1054
- /**
1055
- * Animation will not cancel automatically, it should be canceled
1056
- * manually. This is very important for performance.
1057
- */
1058
- function cancel(animation) {
1059
- animation.finished.then(() => {
1060
- animation.cancel();
1061
- });
1062
- return animation;
1063
- }
1064
- function createUpdateFunction(mark, state, view, library) {
1065
- return createAnimationFunction('update', mark, state, view, library);
1066
- }
1067
- function createExitFunction(mark, state, view, library) {
1068
- return createAnimationFunction('exit', mark, state, view, library);
1069
- }
1070
- function inferTheme(theme = {}) {
1071
- if (typeof theme === 'string')
1072
- return { type: theme };
1073
- const { type = 'light' } = theme, rest = __rest(theme, ["type"]);
1074
- return Object.assign(Object.assign({}, rest), { type });
1075
- }
1076
- /**
1077
- * @todo Infer builtin tooltips.
1078
- */
1079
- function inferInteraction(view) {
1080
- const defaults = {
1081
- event: true,
1082
- tooltip: true,
1083
- // @todo Inferred by slider self.
1084
- sliderFilter: true,
1085
- legendFilter: true,
1086
- scrollbarFilter: true,
1087
- };
1088
- const { interaction = {} } = view;
1089
- return Object.entries((0, util_1.deepMix)(defaults, interaction)).reverse();
1090
- }
1091
- function applyTransform(node, context) {
1092
- return __awaiter(this, void 0, void 0, function* () {
1093
- const { data } = node, rest = __rest(node, ["data"]);
1094
- if (data == undefined)
1095
- return node;
1096
- const [, { data: newData }] = yield (0, transform_1.applyDataTransform)([], { data }, context);
1097
- return Object.assign({ data: newData }, rest);
1098
- });
1099
- }
1100
- function updateBBox(selection) {
1101
- selection
1102
- .style('transform', (d) => `translate(${d.paddingLeft + d.marginLeft}, ${d.paddingTop + d.marginTop})`)
1103
- .style('width', (d) => d.innerWidth)
1104
- .style('height', (d) => d.innerHeight);
1105
- }
1106
- function animateBBox(selection, extent) {
1107
- const [delay, duration] = extent;
1108
- selection.transition(function (data, i, element) {
1109
- const { transform, width, height } = element.style;
1110
- const { paddingLeft, paddingTop, innerWidth, innerHeight, marginLeft, marginTop, } = data;
1111
- const keyframes = [
1112
- {
1113
- transform,
1114
- width,
1115
- height,
1116
- },
1117
- {
1118
- transform: `translate(${paddingLeft + marginLeft}, ${paddingTop + marginTop})`,
1119
- width: innerWidth,
1120
- height: innerHeight,
1121
- },
1122
- ];
1123
- return element.animate(keyframes, { delay, duration, fill: 'both' });
1124
- });
1125
- }
1126
- function shapeName(mark, name) {
1127
- const { type } = mark;
1128
- if (typeof name === 'string')
1129
- return `${type}.${name}`;
1130
- return name;
1131
- }
1132
- /**
1133
- * Create and update layer for each mark.
1134
- * All the layers created here are treated as main layers.
1135
- */
1136
- function updateLayers(selection, marks) {
1137
- const facet = (d) => (d.class !== undefined ? `${d.class}` : '');
1138
- // Skip for empty selection, it can't append nodes.
1139
- const nodes = selection.nodes();
1140
- if (nodes.length === 0)
1141
- return;
1142
- selection
1143
- .selectAll(className(constant_1.MAIN_LAYER_CLASS_NAME))
1144
- .data(marks, (d) => d.key)
1145
- .join((enter) => enter
1146
- .append('g')
1147
- .attr('className', constant_1.MAIN_LAYER_CLASS_NAME)
1148
- .attr('id', (d) => d.key)
1149
- .style('facet', facet)
1150
- .style('fill', 'transparent')
1151
- .style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (update) => update
1152
- .style('facet', facet)
1153
- .style('fill', 'transparent')
1154
- .style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (exit) => exit.remove());
1155
- const labelLayer = selection.select(className(constant_1.LABEL_LAYER_CLASS_NAME)).node();
1156
- if (labelLayer)
1157
- return;
1158
- selection
1159
- .append('g')
1160
- .attr('className', constant_1.LABEL_LAYER_CLASS_NAME)
1161
- .style('zIndex', 0);
1162
- }
1163
- function className(...names) {
1164
- return names.map((d) => `.${d}`).join('');
1165
- }
1166
- function applyClip(selection, clip) {
1167
- if (!selection.node())
1168
- return;
1169
- selection.style('clipPath', (data) => {
1170
- if (!clip)
1171
- return null;
1172
- const { paddingTop: y, paddingLeft: x, marginLeft: x1, marginTop: y1, innerWidth: width, innerHeight: height, } = data;
1173
- return new g_1.Rect({ style: { x: x + x1, y: y + y1, width, height } });
1174
- });
1175
- }
1176
- function inferComponentScales(scales, states, markState) {
1177
- // add shape scale to state.
1178
- var _a;
1179
- // for cell, omit shape scale.
1180
- // @todo support shape scale for cell.
1181
- for (const [key] of markState.entries()) {
1182
- if (key.type === 'cell') {
1183
- return scales.filter((scale) => scale.name !== 'shape');
1184
- }
1185
- }
1186
- // can't infer shape scale if there are multiple states.
1187
- if (states.length !== 1 || scales.some((scale) => scale.name === 'shape')) {
1188
- return scales;
1189
- }
1190
- const { defaultShape: shape } = states[0];
1191
- const acceptMarkTypes = ['point', 'line', 'rect', 'hollow'];
1192
- if (!acceptMarkTypes.includes(shape))
1193
- return scales;
1194
- const shapeMap = {
1195
- point: 'point',
1196
- line: 'hyphen',
1197
- rect: 'square',
1198
- hollow: 'hollow',
1199
- };
1200
- // create shape scale
1201
- const field = ((_a = scales.find((scale) => scale.name === 'color')) === null || _a === void 0 ? void 0 : _a.field) || null;
1202
- const shapeScale = {
1203
- field,
1204
- name: 'shape',
1205
- type: 'constant',
1206
- domain: [],
1207
- range: [shapeMap[shape]],
1208
- };
1209
- return [...scales, shapeScale];
1210
- }
1211
- function applyStyle(selection, style) {
1212
- for (const [key, value] of Object.entries(style)) {
1213
- selection.style(key, value);
1214
- }
1215
- }
1216
- exports.applyStyle = applyStyle;
1217
- //# sourceMappingURL=plot.js.map