@antv/g2plot 2.4.27 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2166) hide show
  1. package/LICENSE +4 -4
  2. package/README.en-US.md +0 -170
  3. package/README.md +8 -178
  4. package/dist/g2plot.min.js +10 -17
  5. package/esm/components/index.d.ts +1 -0
  6. package/esm/components/index.js +2 -0
  7. package/esm/components/index.js.map +1 -0
  8. package/esm/components/mark.d.ts +5 -0
  9. package/esm/components/mark.js +7 -0
  10. package/esm/components/mark.js.map +1 -0
  11. package/esm/core/plot.d.ts +23 -43
  12. package/esm/core/plot.js +77 -190
  13. package/esm/core/plot.js.map +1 -1
  14. package/esm/index.d.ts +2 -103
  15. package/esm/index.js +1 -102
  16. package/esm/index.js.map +1 -1
  17. package/esm/plots/column/adaptor.d.ts +7 -15
  18. package/esm/plots/column/adaptor.js +14 -218
  19. package/esm/plots/column/adaptor.js.map +1 -1
  20. package/esm/plots/column/index.d.ts +9 -16
  21. package/esm/plots/column/index.js +16 -36
  22. package/esm/plots/column/index.js.map +1 -1
  23. package/esm/plots/column/type.d.ts +2 -0
  24. package/esm/plots/column/type.js +2 -0
  25. package/esm/plots/column/type.js.map +1 -0
  26. package/esm/plots/line/adaptor.d.ts +5 -24
  27. package/esm/plots/line/adaptor.js +9 -157
  28. package/esm/plots/line/adaptor.js.map +1 -1
  29. package/esm/plots/line/index.d.ts +7 -13
  30. package/esm/plots/line/index.js +14 -31
  31. package/esm/plots/line/index.js.map +1 -1
  32. package/esm/plots/line/type.d.ts +2 -0
  33. package/esm/plots/line/type.js +2 -0
  34. package/esm/plots/line/type.js.map +1 -0
  35. package/esm/types/common.d.ts +6 -235
  36. package/esm/types/common.js.map +1 -1
  37. package/esm/types/index.d.ts +1 -14
  38. package/esm/types/index.js +0 -10
  39. package/esm/types/index.js.map +1 -1
  40. package/esm/utils/index.d.ts +2 -16
  41. package/esm/utils/index.js +2 -16
  42. package/esm/utils/index.js.map +1 -1
  43. package/esm/utils/is-composite-plot.d.ts +5 -0
  44. package/esm/utils/is-composite-plot.js +5 -0
  45. package/esm/utils/is-composite-plot.js.map +1 -0
  46. package/lib/components/index.d.ts +1 -0
  47. package/lib/components/index.js +6 -0
  48. package/lib/components/index.js.map +1 -0
  49. package/lib/components/mark.d.ts +5 -0
  50. package/lib/components/mark.js +11 -0
  51. package/lib/components/mark.js.map +1 -0
  52. package/lib/core/plot.d.ts +23 -43
  53. package/lib/core/plot.js +84 -193
  54. package/lib/core/plot.js.map +1 -1
  55. package/lib/index.d.ts +2 -103
  56. package/lib/index.js +3 -154
  57. package/lib/index.js.map +1 -1
  58. package/lib/plots/column/adaptor.d.ts +7 -15
  59. package/lib/plots/column/adaptor.js +15 -221
  60. package/lib/plots/column/adaptor.js.map +1 -1
  61. package/lib/plots/column/index.d.ts +9 -16
  62. package/lib/plots/column/index.js +17 -36
  63. package/lib/plots/column/index.js.map +1 -1
  64. package/lib/plots/column/type.d.ts +2 -0
  65. package/lib/{types/attr.js → plots/column/type.js} +1 -1
  66. package/lib/plots/column/type.js.map +1 -0
  67. package/lib/plots/line/adaptor.d.ts +5 -24
  68. package/lib/plots/line/adaptor.js +10 -162
  69. package/lib/plots/line/adaptor.js.map +1 -1
  70. package/lib/plots/line/index.d.ts +7 -13
  71. package/lib/plots/line/index.js +15 -31
  72. package/lib/plots/line/index.js.map +1 -1
  73. package/lib/plots/line/type.d.ts +2 -0
  74. package/lib/{types/axis.js → plots/line/type.js} +1 -1
  75. package/lib/plots/line/type.js.map +1 -0
  76. package/lib/types/common.d.ts +6 -235
  77. package/lib/types/common.js.map +1 -1
  78. package/lib/types/index.d.ts +1 -14
  79. package/lib/types/index.js +15 -12
  80. package/lib/types/index.js.map +1 -1
  81. package/lib/utils/index.d.ts +2 -16
  82. package/lib/utils/index.js +10 -38
  83. package/lib/utils/index.js.map +1 -1
  84. package/lib/utils/is-composite-plot.d.ts +5 -0
  85. package/lib/utils/is-composite-plot.js +9 -0
  86. package/lib/utils/is-composite-plot.js.map +1 -0
  87. package/package.json +83 -103
  88. package/src/components/index.ts +1 -0
  89. package/src/components/mark.ts +8 -0
  90. package/src/core/plot.ts +58 -191
  91. package/src/index.ts +3 -149
  92. package/src/module.d.ts +1 -0
  93. package/src/plots/column/adaptor.ts +15 -309
  94. package/src/plots/column/index.ts +11 -27
  95. package/src/plots/column/type.ts +3 -0
  96. package/src/plots/line/adaptor.ts +14 -219
  97. package/src/plots/line/index.ts +9 -22
  98. package/src/plots/line/type.ts +3 -0
  99. package/src/types/common.ts +6 -249
  100. package/src/types/index.ts +2 -13
  101. package/src/utils/index.ts +2 -16
  102. package/src/utils/is-composite-plot.ts +6 -0
  103. package/dist/g2plot.min.js.map +0 -1
  104. package/esm/adaptor/brush.d.ts +0 -12
  105. package/esm/adaptor/brush.js +0 -48
  106. package/esm/adaptor/brush.js.map +0 -1
  107. package/esm/adaptor/common.d.ts +0 -72
  108. package/esm/adaptor/common.js +0 -187
  109. package/esm/adaptor/common.js.map +0 -1
  110. package/esm/adaptor/connected-area.d.ts +0 -17
  111. package/esm/adaptor/connected-area.js +0 -76
  112. package/esm/adaptor/connected-area.js.map +0 -1
  113. package/esm/adaptor/conversion-tag.d.ts +0 -38
  114. package/esm/adaptor/conversion-tag.js +0 -178
  115. package/esm/adaptor/conversion-tag.js.map +0 -1
  116. package/esm/adaptor/geometries/area.d.ts +0 -19
  117. package/esm/adaptor/geometries/area.js +0 -29
  118. package/esm/adaptor/geometries/area.js.map +0 -1
  119. package/esm/adaptor/geometries/base.d.ts +0 -77
  120. package/esm/adaptor/geometries/base.js +0 -195
  121. package/esm/adaptor/geometries/base.js.map +0 -1
  122. package/esm/adaptor/geometries/edge.d.ts +0 -17
  123. package/esm/adaptor/geometries/edge.js +0 -25
  124. package/esm/adaptor/geometries/edge.js.map +0 -1
  125. package/esm/adaptor/geometries/index.d.ts +0 -17
  126. package/esm/adaptor/geometries/index.js +0 -9
  127. package/esm/adaptor/geometries/index.js.map +0 -1
  128. package/esm/adaptor/geometries/interval.d.ts +0 -36
  129. package/esm/adaptor/geometries/interval.js +0 -73
  130. package/esm/adaptor/geometries/interval.js.map +0 -1
  131. package/esm/adaptor/geometries/line.d.ts +0 -23
  132. package/esm/adaptor/geometries/line.js +0 -29
  133. package/esm/adaptor/geometries/line.js.map +0 -1
  134. package/esm/adaptor/geometries/point.d.ts +0 -21
  135. package/esm/adaptor/geometries/point.js +0 -26
  136. package/esm/adaptor/geometries/point.js.map +0 -1
  137. package/esm/adaptor/geometries/polygon.d.ts +0 -17
  138. package/esm/adaptor/geometries/polygon.js +0 -25
  139. package/esm/adaptor/geometries/polygon.js.map +0 -1
  140. package/esm/adaptor/geometries/schema.d.ts +0 -17
  141. package/esm/adaptor/geometries/schema.js +0 -25
  142. package/esm/adaptor/geometries/schema.js.map +0 -1
  143. package/esm/adaptor/geometries/violin.d.ts +0 -19
  144. package/esm/adaptor/geometries/violin.js +0 -24
  145. package/esm/adaptor/geometries/violin.js.map +0 -1
  146. package/esm/adaptor/pattern.d.ts +0 -15
  147. package/esm/adaptor/pattern.js +0 -54
  148. package/esm/adaptor/pattern.js.map +0 -1
  149. package/esm/constant.d.ts +0 -4
  150. package/esm/constant.js +0 -26
  151. package/esm/constant.js.map +0 -1
  152. package/esm/core/adaptor.d.ts +0 -15
  153. package/esm/core/adaptor.js +0 -2
  154. package/esm/core/adaptor.js.map +0 -1
  155. package/esm/core/global.d.ts +0 -13
  156. package/esm/core/global.js +0 -17
  157. package/esm/core/global.js.map +0 -1
  158. package/esm/core/locale.d.ts +0 -15
  159. package/esm/core/locale.js +0 -25
  160. package/esm/core/locale.js.map +0 -1
  161. package/esm/interactions/actions/drill-down.d.ts +0 -99
  162. package/esm/interactions/actions/drill-down.js +0 -252
  163. package/esm/interactions/actions/drill-down.js.map +0 -1
  164. package/esm/interactions/actions/reset-button.d.ts +0 -42
  165. package/esm/interactions/actions/reset-button.js +0 -144
  166. package/esm/interactions/actions/reset-button.js.map +0 -1
  167. package/esm/interactions/brush.d.ts +0 -91
  168. package/esm/interactions/brush.js +0 -305
  169. package/esm/interactions/brush.js.map +0 -1
  170. package/esm/interactions/drag-move.d.ts +0 -1
  171. package/esm/interactions/drag-move.js +0 -13
  172. package/esm/interactions/drag-move.js.map +0 -1
  173. package/esm/interactions/drill-down.d.ts +0 -4
  174. package/esm/interactions/drill-down.js +0 -52
  175. package/esm/interactions/drill-down.js.map +0 -1
  176. package/esm/lab.d.ts +0 -18
  177. package/esm/lab.js +0 -39
  178. package/esm/lab.js.map +0 -1
  179. package/esm/locales/en_US.d.ts +0 -2
  180. package/esm/locales/en_US.js +0 -27
  181. package/esm/locales/en_US.js.map +0 -1
  182. package/esm/locales/zh_CN.d.ts +0 -2
  183. package/esm/locales/zh_CN.js +0 -27
  184. package/esm/locales/zh_CN.js.map +0 -1
  185. package/esm/plots/_template/adaptor.d.ts +0 -13
  186. package/esm/plots/_template/adaptor.js +0 -38
  187. package/esm/plots/_template/adaptor.js.map +0 -1
  188. package/esm/plots/_template/constant.d.ts +0 -0
  189. package/esm/plots/_template/constant.js +0 -1
  190. package/esm/plots/_template/constant.js.map +0 -1
  191. package/esm/plots/_template/index.d.ts +0 -15
  192. package/esm/plots/_template/index.js +0 -24
  193. package/esm/plots/_template/index.js.map +0 -1
  194. package/esm/plots/_template/types.d.ts +0 -8
  195. package/esm/plots/_template/types.js +0 -2
  196. package/esm/plots/_template/types.js.map +0 -1
  197. package/esm/plots/area/adaptor.d.ts +0 -10
  198. package/esm/plots/area/adaptor.js +0 -115
  199. package/esm/plots/area/adaptor.js.map +0 -1
  200. package/esm/plots/area/constants.d.ts +0 -4
  201. package/esm/plots/area/constants.js +0 -23
  202. package/esm/plots/area/constants.js.map +0 -1
  203. package/esm/plots/area/index.d.ts +0 -26
  204. package/esm/plots/area/index.js +0 -47
  205. package/esm/plots/area/index.js.map +0 -1
  206. package/esm/plots/area/types.d.ts +0 -60
  207. package/esm/plots/area/types.js +0 -2
  208. package/esm/plots/area/types.js.map +0 -1
  209. package/esm/plots/bar/adaptor.d.ts +0 -13
  210. package/esm/plots/bar/adaptor.js +0 -101
  211. package/esm/plots/bar/adaptor.js.map +0 -1
  212. package/esm/plots/bar/constants.d.ts +0 -4
  213. package/esm/plots/bar/constants.js +0 -19
  214. package/esm/plots/bar/constants.js.map +0 -1
  215. package/esm/plots/bar/index.d.ts +0 -28
  216. package/esm/plots/bar/index.js +0 -54
  217. package/esm/plots/bar/index.js.map +0 -1
  218. package/esm/plots/bar/types.d.ts +0 -24
  219. package/esm/plots/bar/types.js +0 -2
  220. package/esm/plots/bar/types.js.map +0 -1
  221. package/esm/plots/bidirectional-bar/adaptor.d.ts +0 -28
  222. package/esm/plots/bidirectional-bar/adaptor.js +0 -311
  223. package/esm/plots/bidirectional-bar/adaptor.js.map +0 -1
  224. package/esm/plots/bidirectional-bar/constant.d.ts +0 -4
  225. package/esm/plots/bidirectional-bar/constant.js +0 -5
  226. package/esm/plots/bidirectional-bar/constant.js.map +0 -1
  227. package/esm/plots/bidirectional-bar/index.d.ts +0 -24
  228. package/esm/plots/bidirectional-bar/index.js +0 -60
  229. package/esm/plots/bidirectional-bar/index.js.map +0 -1
  230. package/esm/plots/bidirectional-bar/types.d.ts +0 -33
  231. package/esm/plots/bidirectional-bar/types.js +0 -2
  232. package/esm/plots/bidirectional-bar/types.js.map +0 -1
  233. package/esm/plots/bidirectional-bar/utils.d.ts +0 -22
  234. package/esm/plots/bidirectional-bar/utils.js +0 -78
  235. package/esm/plots/bidirectional-bar/utils.js.map +0 -1
  236. package/esm/plots/box/adaptor.d.ts +0 -12
  237. package/esm/plots/box/adaptor.js +0 -150
  238. package/esm/plots/box/adaptor.js.map +0 -1
  239. package/esm/plots/box/constant.d.ts +0 -8
  240. package/esm/plots/box/constant.js +0 -26
  241. package/esm/plots/box/constant.js.map +0 -1
  242. package/esm/plots/box/index.d.ts +0 -26
  243. package/esm/plots/box/index.js +0 -49
  244. package/esm/plots/box/index.js.map +0 -1
  245. package/esm/plots/box/types.d.ts +0 -29
  246. package/esm/plots/box/types.js +0 -2
  247. package/esm/plots/box/types.js.map +0 -1
  248. package/esm/plots/box/utils.d.ts +0 -7
  249. package/esm/plots/box/utils.js +0 -20
  250. package/esm/plots/box/utils.js.map +0 -1
  251. package/esm/plots/bullet/adaptor.d.ts +0 -13
  252. package/esm/plots/bullet/adaptor.js +0 -174
  253. package/esm/plots/bullet/adaptor.js.map +0 -1
  254. package/esm/plots/bullet/constant.d.ts +0 -4
  255. package/esm/plots/bullet/constant.js +0 -32
  256. package/esm/plots/bullet/constant.js.map +0 -1
  257. package/esm/plots/bullet/index.d.ts +0 -22
  258. package/esm/plots/bullet/index.js +0 -43
  259. package/esm/plots/bullet/index.js.map +0 -1
  260. package/esm/plots/bullet/types.d.ts +0 -56
  261. package/esm/plots/bullet/types.js +0 -2
  262. package/esm/plots/bullet/types.js.map +0 -1
  263. package/esm/plots/bullet/utils.d.ts +0 -12
  264. package/esm/plots/bullet/utils.js +0 -69
  265. package/esm/plots/bullet/utils.js.map +0 -1
  266. package/esm/plots/chord/adaptor.d.ts +0 -8
  267. package/esm/plots/chord/adaptor.js +0 -148
  268. package/esm/plots/chord/adaptor.js.map +0 -1
  269. package/esm/plots/chord/constant.d.ts +0 -43
  270. package/esm/plots/chord/constant.js +0 -56
  271. package/esm/plots/chord/constant.js.map +0 -1
  272. package/esm/plots/chord/index.d.ts +0 -21
  273. package/esm/plots/chord/index.js +0 -35
  274. package/esm/plots/chord/index.js.map +0 -1
  275. package/esm/plots/chord/types.d.ts +0 -48
  276. package/esm/plots/chord/types.js +0 -2
  277. package/esm/plots/chord/types.js.map +0 -1
  278. package/esm/plots/circle-packing/adaptor.d.ts +0 -13
  279. package/esm/plots/circle-packing/adaptor.js +0 -171
  280. package/esm/plots/circle-packing/adaptor.js.map +0 -1
  281. package/esm/plots/circle-packing/constant.d.ts +0 -4
  282. package/esm/plots/circle-packing/constant.js +0 -30
  283. package/esm/plots/circle-packing/constant.js.map +0 -1
  284. package/esm/plots/circle-packing/index.d.ts +0 -27
  285. package/esm/plots/circle-packing/index.js +0 -50
  286. package/esm/plots/circle-packing/index.js.map +0 -1
  287. package/esm/plots/circle-packing/interactions/index.d.ts +0 -2
  288. package/esm/plots/circle-packing/interactions/index.js +0 -3
  289. package/esm/plots/circle-packing/interactions/index.js.map +0 -1
  290. package/esm/plots/circle-packing/types.d.ts +0 -38
  291. package/esm/plots/circle-packing/types.js +0 -2
  292. package/esm/plots/circle-packing/types.js.map +0 -1
  293. package/esm/plots/circle-packing/utils.d.ts +0 -25
  294. package/esm/plots/circle-packing/utils.js +0 -56
  295. package/esm/plots/circle-packing/utils.js.map +0 -1
  296. package/esm/plots/column/constants.d.ts +0 -4
  297. package/esm/plots/column/constants.js +0 -19
  298. package/esm/plots/column/constants.js.map +0 -1
  299. package/esm/plots/column/types.d.ts +0 -90
  300. package/esm/plots/column/types.js +0 -2
  301. package/esm/plots/column/types.js.map +0 -1
  302. package/esm/plots/dual-axes/adaptor.d.ts +0 -63
  303. package/esm/plots/dual-axes/adaptor.js +0 -424
  304. package/esm/plots/dual-axes/adaptor.js.map +0 -1
  305. package/esm/plots/dual-axes/constant.d.ts +0 -26
  306. package/esm/plots/dual-axes/constant.js +0 -13
  307. package/esm/plots/dual-axes/constant.js.map +0 -1
  308. package/esm/plots/dual-axes/index.d.ts +0 -16
  309. package/esm/plots/dual-axes/index.js +0 -31
  310. package/esm/plots/dual-axes/index.js.map +0 -1
  311. package/esm/plots/dual-axes/types.d.ts +0 -79
  312. package/esm/plots/dual-axes/types.js +0 -11
  313. package/esm/plots/dual-axes/types.js.map +0 -1
  314. package/esm/plots/dual-axes/util/geometry.d.ts +0 -11
  315. package/esm/plots/dual-axes/util/geometry.js +0 -55
  316. package/esm/plots/dual-axes/util/geometry.js.map +0 -1
  317. package/esm/plots/dual-axes/util/legend.d.ts +0 -13
  318. package/esm/plots/dual-axes/util/legend.js +0 -66
  319. package/esm/plots/dual-axes/util/legend.js.map +0 -1
  320. package/esm/plots/dual-axes/util/option.d.ts +0 -29
  321. package/esm/plots/dual-axes/util/option.js +0 -70
  322. package/esm/plots/dual-axes/util/option.js.map +0 -1
  323. package/esm/plots/dual-axes/util/render-sider.d.ts +0 -9
  324. package/esm/plots/dual-axes/util/render-sider.js +0 -31
  325. package/esm/plots/dual-axes/util/render-sider.js.map +0 -1
  326. package/esm/plots/facet/adaptor.d.ts +0 -8
  327. package/esm/plots/facet/adaptor.js +0 -107
  328. package/esm/plots/facet/adaptor.js.map +0 -1
  329. package/esm/plots/facet/constant.d.ts +0 -23
  330. package/esm/plots/facet/constant.js +0 -24
  331. package/esm/plots/facet/constant.js.map +0 -1
  332. package/esm/plots/facet/index.d.ts +0 -21
  333. package/esm/plots/facet/index.js +0 -35
  334. package/esm/plots/facet/index.js.map +0 -1
  335. package/esm/plots/facet/types.d.ts +0 -148
  336. package/esm/plots/facet/types.js +0 -2
  337. package/esm/plots/facet/types.js.map +0 -1
  338. package/esm/plots/facet/utils.d.ts +0 -8
  339. package/esm/plots/facet/utils.js +0 -75
  340. package/esm/plots/facet/utils.js.map +0 -1
  341. package/esm/plots/funnel/adaptor.d.ts +0 -18
  342. package/esm/plots/funnel/adaptor.js +0 -157
  343. package/esm/plots/funnel/adaptor.js.map +0 -1
  344. package/esm/plots/funnel/constant.d.ts +0 -40
  345. package/esm/plots/funnel/constant.js +0 -48
  346. package/esm/plots/funnel/constant.js.map +0 -1
  347. package/esm/plots/funnel/geometries/basic.d.ts +0 -13
  348. package/esm/plots/funnel/geometries/basic.js +0 -93
  349. package/esm/plots/funnel/geometries/basic.js.map +0 -1
  350. package/esm/plots/funnel/geometries/common.d.ts +0 -15
  351. package/esm/plots/funnel/geometries/common.js +0 -59
  352. package/esm/plots/funnel/geometries/common.js.map +0 -1
  353. package/esm/plots/funnel/geometries/compare.d.ts +0 -9
  354. package/esm/plots/funnel/geometries/compare.js +0 -140
  355. package/esm/plots/funnel/geometries/compare.js.map +0 -1
  356. package/esm/plots/funnel/geometries/dynamic-height.d.ts +0 -8
  357. package/esm/plots/funnel/geometries/dynamic-height.js +0 -124
  358. package/esm/plots/funnel/geometries/dynamic-height.js.map +0 -1
  359. package/esm/plots/funnel/geometries/facet.d.ts +0 -8
  360. package/esm/plots/funnel/geometries/facet.js +0 -50
  361. package/esm/plots/funnel/geometries/facet.js.map +0 -1
  362. package/esm/plots/funnel/index.d.ts +0 -38
  363. package/esm/plots/funnel/index.js +0 -73
  364. package/esm/plots/funnel/index.js.map +0 -1
  365. package/esm/plots/funnel/interactions/funnel-conversion-tag.d.ts +0 -9
  366. package/esm/plots/funnel/interactions/funnel-conversion-tag.js +0 -57
  367. package/esm/plots/funnel/interactions/funnel-conversion-tag.js.map +0 -1
  368. package/esm/plots/funnel/interactions/index.d.ts +0 -5
  369. package/esm/plots/funnel/interactions/index.js +0 -10
  370. package/esm/plots/funnel/interactions/index.js.map +0 -1
  371. package/esm/plots/funnel/types.d.ts +0 -70
  372. package/esm/plots/funnel/types.js +0 -2
  373. package/esm/plots/funnel/types.js.map +0 -1
  374. package/esm/plots/gauge/adaptor.d.ts +0 -17
  375. package/esm/plots/gauge/adaptor.js +0 -182
  376. package/esm/plots/gauge/adaptor.js.map +0 -1
  377. package/esm/plots/gauge/constants.d.ts +0 -67
  378. package/esm/plots/gauge/constants.js +0 -70
  379. package/esm/plots/gauge/constants.js.map +0 -1
  380. package/esm/plots/gauge/index.d.ts +0 -32
  381. package/esm/plots/gauge/index.js +0 -63
  382. package/esm/plots/gauge/index.js.map +0 -1
  383. package/esm/plots/gauge/shapes/indicator.d.ts +0 -1
  384. package/esm/plots/gauge/shapes/indicator.js +0 -30
  385. package/esm/plots/gauge/shapes/indicator.js.map +0 -1
  386. package/esm/plots/gauge/shapes/meter-gauge.d.ts +0 -1
  387. package/esm/plots/gauge/shapes/meter-gauge.js +0 -52
  388. package/esm/plots/gauge/shapes/meter-gauge.js.map +0 -1
  389. package/esm/plots/gauge/types.d.ts +0 -130
  390. package/esm/plots/gauge/types.js +0 -2
  391. package/esm/plots/gauge/types.js.map +0 -1
  392. package/esm/plots/gauge/utils.d.ts +0 -20
  393. package/esm/plots/gauge/utils.js +0 -38
  394. package/esm/plots/gauge/utils.js.map +0 -1
  395. package/esm/plots/heatmap/adaptor.d.ts +0 -8
  396. package/esm/plots/heatmap/adaptor.js +0 -163
  397. package/esm/plots/heatmap/adaptor.js.map +0 -1
  398. package/esm/plots/heatmap/constant.d.ts +0 -4
  399. package/esm/plots/heatmap/constant.js +0 -39
  400. package/esm/plots/heatmap/constant.js.map +0 -1
  401. package/esm/plots/heatmap/index.d.ts +0 -23
  402. package/esm/plots/heatmap/index.js +0 -38
  403. package/esm/plots/heatmap/index.js.map +0 -1
  404. package/esm/plots/heatmap/shapes/circle.d.ts +0 -1
  405. package/esm/plots/heatmap/shapes/circle.js +0 -23
  406. package/esm/plots/heatmap/shapes/circle.js.map +0 -1
  407. package/esm/plots/heatmap/shapes/square.d.ts +0 -1
  408. package/esm/plots/heatmap/shapes/square.js +0 -23
  409. package/esm/plots/heatmap/shapes/square.js.map +0 -1
  410. package/esm/plots/heatmap/types.d.ts +0 -63
  411. package/esm/plots/heatmap/types.js +0 -2
  412. package/esm/plots/heatmap/types.js.map +0 -1
  413. package/esm/plots/histogram/adaptor.d.ts +0 -8
  414. package/esm/plots/histogram/adaptor.js +0 -105
  415. package/esm/plots/histogram/adaptor.js.map +0 -1
  416. package/esm/plots/histogram/constant.d.ts +0 -8
  417. package/esm/plots/histogram/constant.js +0 -20
  418. package/esm/plots/histogram/constant.js.map +0 -1
  419. package/esm/plots/histogram/index.d.ts +0 -22
  420. package/esm/plots/histogram/index.js +0 -41
  421. package/esm/plots/histogram/index.js.map +0 -1
  422. package/esm/plots/histogram/types.d.ts +0 -27
  423. package/esm/plots/histogram/types.js +0 -2
  424. package/esm/plots/histogram/types.js.map +0 -1
  425. package/esm/plots/line/constants.d.ts +0 -4
  426. package/esm/plots/line/constants.js +0 -21
  427. package/esm/plots/line/constants.js.map +0 -1
  428. package/esm/plots/line/interactions/index.d.ts +0 -1
  429. package/esm/plots/line/interactions/index.js +0 -18
  430. package/esm/plots/line/interactions/index.js.map +0 -1
  431. package/esm/plots/line/interactions/marker-active.d.ts +0 -6
  432. package/esm/plots/line/interactions/marker-active.js +0 -39
  433. package/esm/plots/line/interactions/marker-active.js.map +0 -1
  434. package/esm/plots/line/types.d.ts +0 -58
  435. package/esm/plots/line/types.js +0 -2
  436. package/esm/plots/line/types.js.map +0 -1
  437. package/esm/plots/liquid/adaptor.d.ts +0 -13
  438. package/esm/plots/liquid/adaptor.js +0 -88
  439. package/esm/plots/liquid/adaptor.js.map +0 -1
  440. package/esm/plots/liquid/constants.d.ts +0 -26
  441. package/esm/plots/liquid/constants.js +0 -27
  442. package/esm/plots/liquid/constants.js.map +0 -1
  443. package/esm/plots/liquid/index.d.ts +0 -31
  444. package/esm/plots/liquid/index.js +0 -54
  445. package/esm/plots/liquid/index.js.map +0 -1
  446. package/esm/plots/liquid/shapes/liquid.d.ts +0 -16
  447. package/esm/plots/liquid/shapes/liquid.js +0 -368
  448. package/esm/plots/liquid/shapes/liquid.js.map +0 -1
  449. package/esm/plots/liquid/types.d.ts +0 -93
  450. package/esm/plots/liquid/types.js +0 -2
  451. package/esm/plots/liquid/types.js.map +0 -1
  452. package/esm/plots/liquid/utils.d.ts +0 -7
  453. package/esm/plots/liquid/utils.js +0 -8
  454. package/esm/plots/liquid/utils.js.map +0 -1
  455. package/esm/plots/mix/adaptor.d.ts +0 -13
  456. package/esm/plots/mix/adaptor.js +0 -142
  457. package/esm/plots/mix/adaptor.js.map +0 -1
  458. package/esm/plots/mix/index.d.ts +0 -24
  459. package/esm/plots/mix/index.js +0 -33
  460. package/esm/plots/mix/index.js.map +0 -1
  461. package/esm/plots/mix/interactions/association.d.ts +0 -1
  462. package/esm/plots/mix/interactions/association.js +0 -169
  463. package/esm/plots/mix/interactions/association.js.map +0 -1
  464. package/esm/plots/mix/interactions/index.d.ts +0 -4
  465. package/esm/plots/mix/interactions/index.js +0 -5
  466. package/esm/plots/mix/interactions/index.js.map +0 -1
  467. package/esm/plots/mix/interactions/utils.d.ts +0 -14
  468. package/esm/plots/mix/interactions/utils.js +0 -40
  469. package/esm/plots/mix/interactions/utils.js.map +0 -1
  470. package/esm/plots/mix/types.d.ts +0 -125
  471. package/esm/plots/mix/types.js +0 -2
  472. package/esm/plots/mix/types.js.map +0 -1
  473. package/esm/plots/mix/utils.d.ts +0 -82
  474. package/esm/plots/mix/utils.js +0 -98
  475. package/esm/plots/mix/utils.js.map +0 -1
  476. package/esm/plots/pie/adaptor.d.ts +0 -24
  477. package/esm/plots/pie/adaptor.js +0 -288
  478. package/esm/plots/pie/adaptor.js.map +0 -1
  479. package/esm/plots/pie/contants.d.ts +0 -4
  480. package/esm/plots/pie/contants.js +0 -50
  481. package/esm/plots/pie/contants.js.map +0 -1
  482. package/esm/plots/pie/index.d.ts +0 -27
  483. package/esm/plots/pie/index.js +0 -62
  484. package/esm/plots/pie/index.js.map +0 -1
  485. package/esm/plots/pie/interactions/actions/legend-active.d.ts +0 -20
  486. package/esm/plots/pie/interactions/actions/legend-active.js +0 -68
  487. package/esm/plots/pie/interactions/actions/legend-active.js.map +0 -1
  488. package/esm/plots/pie/interactions/actions/statistic-active.d.ts +0 -13
  489. package/esm/plots/pie/interactions/actions/statistic-active.js +0 -79
  490. package/esm/plots/pie/interactions/actions/statistic-active.js.map +0 -1
  491. package/esm/plots/pie/interactions/index.d.ts +0 -1
  492. package/esm/plots/pie/interactions/index.js +0 -15
  493. package/esm/plots/pie/interactions/index.js.map +0 -1
  494. package/esm/plots/pie/interactions/util.d.ts +0 -7
  495. package/esm/plots/pie/interactions/util.js +0 -15
  496. package/esm/plots/pie/interactions/util.js.map +0 -1
  497. package/esm/plots/pie/types.d.ts +0 -51
  498. package/esm/plots/pie/types.js +0 -2
  499. package/esm/plots/pie/types.js.map +0 -1
  500. package/esm/plots/pie/utils.d.ts +0 -18
  501. package/esm/plots/pie/utils.js +0 -47
  502. package/esm/plots/pie/utils.js.map +0 -1
  503. package/esm/plots/progress/adaptor.d.ts +0 -13
  504. package/esm/plots/progress/adaptor.js +0 -56
  505. package/esm/plots/progress/adaptor.js.map +0 -1
  506. package/esm/plots/progress/constants.d.ts +0 -9
  507. package/esm/plots/progress/constants.js +0 -10
  508. package/esm/plots/progress/constants.js.map +0 -1
  509. package/esm/plots/progress/index.d.ts +0 -23
  510. package/esm/plots/progress/index.js +0 -41
  511. package/esm/plots/progress/index.js.map +0 -1
  512. package/esm/plots/progress/types.d.ts +0 -21
  513. package/esm/plots/progress/types.js +0 -2
  514. package/esm/plots/progress/types.js.map +0 -1
  515. package/esm/plots/progress/utils.d.ts +0 -8
  516. package/esm/plots/progress/utils.js +0 -22
  517. package/esm/plots/progress/utils.js.map +0 -1
  518. package/esm/plots/radar/adaptor.d.ts +0 -8
  519. package/esm/plots/radar/adaptor.js +0 -110
  520. package/esm/plots/radar/adaptor.js.map +0 -1
  521. package/esm/plots/radar/index.d.ts +0 -22
  522. package/esm/plots/radar/index.js +0 -73
  523. package/esm/plots/radar/index.js.map +0 -1
  524. package/esm/plots/radar/interactions/index.d.ts +0 -1
  525. package/esm/plots/radar/interactions/index.js +0 -8
  526. package/esm/plots/radar/interactions/index.js.map +0 -1
  527. package/esm/plots/radar/interactions/radar-tooltip-action.d.ts +0 -15
  528. package/esm/plots/radar/interactions/radar-tooltip-action.js +0 -74
  529. package/esm/plots/radar/interactions/radar-tooltip-action.js.map +0 -1
  530. package/esm/plots/radar/types.d.ts +0 -55
  531. package/esm/plots/radar/types.js +0 -2
  532. package/esm/plots/radar/types.js.map +0 -1
  533. package/esm/plots/radial-bar/adaptor.d.ts +0 -18
  534. package/esm/plots/radial-bar/adaptor.js +0 -118
  535. package/esm/plots/radial-bar/adaptor.js.map +0 -1
  536. package/esm/plots/radial-bar/constant.d.ts +0 -4
  537. package/esm/plots/radial-bar/constant.js +0 -19
  538. package/esm/plots/radial-bar/constant.js.map +0 -1
  539. package/esm/plots/radial-bar/index.d.ts +0 -25
  540. package/esm/plots/radial-bar/index.js +0 -44
  541. package/esm/plots/radial-bar/index.js.map +0 -1
  542. package/esm/plots/radial-bar/types.d.ts +0 -63
  543. package/esm/plots/radial-bar/types.js +0 -2
  544. package/esm/plots/radial-bar/types.js.map +0 -1
  545. package/esm/plots/radial-bar/utils.d.ts +0 -6
  546. package/esm/plots/radial-bar/utils.js +0 -27
  547. package/esm/plots/radial-bar/utils.js.map +0 -1
  548. package/esm/plots/ring-progress/adaptor.d.ts +0 -13
  549. package/esm/plots/ring-progress/adaptor.js +0 -53
  550. package/esm/plots/ring-progress/adaptor.js.map +0 -1
  551. package/esm/plots/ring-progress/constants.d.ts +0 -22
  552. package/esm/plots/ring-progress/constants.js +0 -23
  553. package/esm/plots/ring-progress/constants.js.map +0 -1
  554. package/esm/plots/ring-progress/index.d.ts +0 -23
  555. package/esm/plots/ring-progress/index.js +0 -46
  556. package/esm/plots/ring-progress/index.js.map +0 -1
  557. package/esm/plots/ring-progress/types.d.ts +0 -28
  558. package/esm/plots/ring-progress/types.js +0 -2
  559. package/esm/plots/ring-progress/types.js.map +0 -1
  560. package/esm/plots/rose/adaptor.d.ts +0 -13
  561. package/esm/plots/rose/adaptor.js +0 -139
  562. package/esm/plots/rose/adaptor.js.map +0 -1
  563. package/esm/plots/rose/constant.d.ts +0 -4
  564. package/esm/plots/rose/constant.js +0 -28
  565. package/esm/plots/rose/constant.js.map +0 -1
  566. package/esm/plots/rose/index.d.ts +0 -26
  567. package/esm/plots/rose/index.js +0 -43
  568. package/esm/plots/rose/index.js.map +0 -1
  569. package/esm/plots/rose/types.d.ts +0 -55
  570. package/esm/plots/rose/types.js +0 -2
  571. package/esm/plots/rose/types.js.map +0 -1
  572. package/esm/plots/sankey/adaptor.d.ts +0 -18
  573. package/esm/plots/sankey/adaptor.js +0 -156
  574. package/esm/plots/sankey/adaptor.js.map +0 -1
  575. package/esm/plots/sankey/circle.d.ts +0 -16
  576. package/esm/plots/sankey/circle.js +0 -93
  577. package/esm/plots/sankey/circle.js.map +0 -1
  578. package/esm/plots/sankey/constant.d.ts +0 -5
  579. package/esm/plots/sankey/constant.js +0 -6
  580. package/esm/plots/sankey/constant.js.map +0 -1
  581. package/esm/plots/sankey/helper.d.ts +0 -20
  582. package/esm/plots/sankey/helper.js +0 -53
  583. package/esm/plots/sankey/helper.js.map +0 -1
  584. package/esm/plots/sankey/index.d.ts +0 -27
  585. package/esm/plots/sankey/index.js +0 -118
  586. package/esm/plots/sankey/index.js.map +0 -1
  587. package/esm/plots/sankey/interactions/actions/node-drag.d.ts +0 -46
  588. package/esm/plots/sankey/interactions/actions/node-drag.js +0 -137
  589. package/esm/plots/sankey/interactions/actions/node-drag.js.map +0 -1
  590. package/esm/plots/sankey/interactions/index.d.ts +0 -1
  591. package/esm/plots/sankey/interactions/index.js +0 -2
  592. package/esm/plots/sankey/interactions/index.js.map +0 -1
  593. package/esm/plots/sankey/interactions/node-draggable.d.ts +0 -1
  594. package/esm/plots/sankey/interactions/node-draggable.js +0 -16
  595. package/esm/plots/sankey/interactions/node-draggable.js.map +0 -1
  596. package/esm/plots/sankey/layout.d.ts +0 -86
  597. package/esm/plots/sankey/layout.js +0 -87
  598. package/esm/plots/sankey/layout.js.map +0 -1
  599. package/esm/plots/sankey/sankey/align.d.ts +0 -4
  600. package/esm/plots/sankey/sankey/align.js +0 -17
  601. package/esm/plots/sankey/sankey/align.js.map +0 -1
  602. package/esm/plots/sankey/sankey/helper.d.ts +0 -14
  603. package/esm/plots/sankey/sankey/helper.js +0 -37
  604. package/esm/plots/sankey/sankey/helper.js.map +0 -1
  605. package/esm/plots/sankey/sankey/index.d.ts +0 -11
  606. package/esm/plots/sankey/sankey/index.js +0 -12
  607. package/esm/plots/sankey/sankey/index.js.map +0 -1
  608. package/esm/plots/sankey/sankey/sankey.d.ts +0 -24
  609. package/esm/plots/sankey/sankey/sankey.js +0 -401
  610. package/esm/plots/sankey/sankey/sankey.js.map +0 -1
  611. package/esm/plots/sankey/types.d.ts +0 -143
  612. package/esm/plots/sankey/types.js +0 -2
  613. package/esm/plots/sankey/types.js.map +0 -1
  614. package/esm/plots/scatter/adaptor.d.ts +0 -25
  615. package/esm/plots/scatter/adaptor.js +0 -269
  616. package/esm/plots/scatter/adaptor.js.map +0 -1
  617. package/esm/plots/scatter/constant.d.ts +0 -4
  618. package/esm/plots/scatter/constant.js +0 -17
  619. package/esm/plots/scatter/constant.js.map +0 -1
  620. package/esm/plots/scatter/index.d.ts +0 -25
  621. package/esm/plots/scatter/index.js +0 -58
  622. package/esm/plots/scatter/index.js.map +0 -1
  623. package/esm/plots/scatter/interactions/index.d.ts +0 -1
  624. package/esm/plots/scatter/interactions/index.js +0 -2
  625. package/esm/plots/scatter/interactions/index.js.map +0 -1
  626. package/esm/plots/scatter/types.d.ts +0 -125
  627. package/esm/plots/scatter/types.js +0 -2
  628. package/esm/plots/scatter/types.js.map +0 -1
  629. package/esm/plots/scatter/util.d.ts +0 -36
  630. package/esm/plots/scatter/util.js +0 -231
  631. package/esm/plots/scatter/util.js.map +0 -1
  632. package/esm/plots/stock/adaptor.d.ts +0 -28
  633. package/esm/plots/stock/adaptor.js +0 -120
  634. package/esm/plots/stock/adaptor.js.map +0 -1
  635. package/esm/plots/stock/constant.d.ts +0 -31
  636. package/esm/plots/stock/constant.js +0 -54
  637. package/esm/plots/stock/constant.js.map +0 -1
  638. package/esm/plots/stock/index.d.ts +0 -27
  639. package/esm/plots/stock/index.js +0 -46
  640. package/esm/plots/stock/index.js.map +0 -1
  641. package/esm/plots/stock/types.d.ts +0 -28
  642. package/esm/plots/stock/types.js +0 -2
  643. package/esm/plots/stock/types.js.map +0 -1
  644. package/esm/plots/stock/utils.d.ts +0 -8
  645. package/esm/plots/stock/utils.js +0 -20
  646. package/esm/plots/stock/utils.js.map +0 -1
  647. package/esm/plots/sunburst/adaptor.d.ts +0 -23
  648. package/esm/plots/sunburst/adaptor.js +0 -176
  649. package/esm/plots/sunburst/adaptor.js.map +0 -1
  650. package/esm/plots/sunburst/constant.d.ts +0 -13
  651. package/esm/plots/sunburst/constant.js +0 -47
  652. package/esm/plots/sunburst/constant.js.map +0 -1
  653. package/esm/plots/sunburst/index.d.ts +0 -28
  654. package/esm/plots/sunburst/index.js +0 -43
  655. package/esm/plots/sunburst/index.js.map +0 -1
  656. package/esm/plots/sunburst/interactions/index.d.ts +0 -2
  657. package/esm/plots/sunburst/interactions/index.js +0 -3
  658. package/esm/plots/sunburst/interactions/index.js.map +0 -1
  659. package/esm/plots/sunburst/types.d.ts +0 -66
  660. package/esm/plots/sunburst/types.js +0 -2
  661. package/esm/plots/sunburst/types.js.map +0 -1
  662. package/esm/plots/sunburst/utils.d.ts +0 -6
  663. package/esm/plots/sunburst/utils.js +0 -56
  664. package/esm/plots/sunburst/utils.js.map +0 -1
  665. package/esm/plots/tiny-area/adaptor.d.ts +0 -13
  666. package/esm/plots/tiny-area/adaptor.js +0 -63
  667. package/esm/plots/tiny-area/adaptor.js.map +0 -1
  668. package/esm/plots/tiny-area/constants.d.ts +0 -33
  669. package/esm/plots/tiny-area/constants.js +0 -20
  670. package/esm/plots/tiny-area/constants.js.map +0 -1
  671. package/esm/plots/tiny-area/index.d.ts +0 -23
  672. package/esm/plots/tiny-area/index.js +0 -43
  673. package/esm/plots/tiny-area/index.js.map +0 -1
  674. package/esm/plots/tiny-area/types.d.ts +0 -27
  675. package/esm/plots/tiny-area/types.js +0 -2
  676. package/esm/plots/tiny-area/types.js.map +0 -1
  677. package/esm/plots/tiny-column/adaptor.d.ts +0 -10
  678. package/esm/plots/tiny-column/adaptor.js +0 -42
  679. package/esm/plots/tiny-column/adaptor.js.map +0 -1
  680. package/esm/plots/tiny-column/constants.d.ts +0 -35
  681. package/esm/plots/tiny-column/constants.js +0 -25
  682. package/esm/plots/tiny-column/constants.js.map +0 -1
  683. package/esm/plots/tiny-column/index.d.ts +0 -23
  684. package/esm/plots/tiny-column/index.js +0 -43
  685. package/esm/plots/tiny-column/index.js.map +0 -1
  686. package/esm/plots/tiny-column/types.d.ts +0 -17
  687. package/esm/plots/tiny-column/types.js +0 -2
  688. package/esm/plots/tiny-column/types.js.map +0 -1
  689. package/esm/plots/tiny-line/adaptor.d.ts +0 -10
  690. package/esm/plots/tiny-line/adaptor.js +0 -45
  691. package/esm/plots/tiny-line/adaptor.js.map +0 -1
  692. package/esm/plots/tiny-line/constants.d.ts +0 -45
  693. package/esm/plots/tiny-line/constants.js +0 -31
  694. package/esm/plots/tiny-line/constants.js.map +0 -1
  695. package/esm/plots/tiny-line/index.d.ts +0 -23
  696. package/esm/plots/tiny-line/index.js +0 -43
  697. package/esm/plots/tiny-line/index.js.map +0 -1
  698. package/esm/plots/tiny-line/types.d.ts +0 -28
  699. package/esm/plots/tiny-line/types.js +0 -2
  700. package/esm/plots/tiny-line/types.js.map +0 -1
  701. package/esm/plots/tiny-line/utils.d.ts +0 -4
  702. package/esm/plots/tiny-line/utils.js +0 -5
  703. package/esm/plots/tiny-line/utils.js.map +0 -1
  704. package/esm/plots/treemap/adaptor.d.ts +0 -13
  705. package/esm/plots/treemap/adaptor.js +0 -128
  706. package/esm/plots/treemap/adaptor.js.map +0 -1
  707. package/esm/plots/treemap/constant.d.ts +0 -36
  708. package/esm/plots/treemap/constant.js +0 -39
  709. package/esm/plots/treemap/constant.js.map +0 -1
  710. package/esm/plots/treemap/index.d.ts +0 -23
  711. package/esm/plots/treemap/index.js +0 -49
  712. package/esm/plots/treemap/index.js.map +0 -1
  713. package/esm/plots/treemap/interactions/index.d.ts +0 -4
  714. package/esm/plots/treemap/interactions/index.js +0 -5
  715. package/esm/plots/treemap/interactions/index.js.map +0 -1
  716. package/esm/plots/treemap/types.d.ts +0 -30
  717. package/esm/plots/treemap/types.js +0 -2
  718. package/esm/plots/treemap/types.js.map +0 -1
  719. package/esm/plots/treemap/utils.d.ts +0 -21
  720. package/esm/plots/treemap/utils.js +0 -72
  721. package/esm/plots/treemap/utils.js.map +0 -1
  722. package/esm/plots/venn/adaptor.d.ts +0 -23
  723. package/esm/plots/venn/adaptor.js +0 -215
  724. package/esm/plots/venn/adaptor.js.map +0 -1
  725. package/esm/plots/venn/constant.d.ts +0 -7
  726. package/esm/plots/venn/constant.js +0 -49
  727. package/esm/plots/venn/constant.js.map +0 -1
  728. package/esm/plots/venn/index.d.ts +0 -24
  729. package/esm/plots/venn/index.js +0 -47
  730. package/esm/plots/venn/index.js.map +0 -1
  731. package/esm/plots/venn/interactions/actions/active.d.ts +0 -14
  732. package/esm/plots/venn/interactions/actions/active.js +0 -34
  733. package/esm/plots/venn/interactions/actions/active.js.map +0 -1
  734. package/esm/plots/venn/interactions/actions/highlight.d.ts +0 -16
  735. package/esm/plots/venn/interactions/actions/highlight.js +0 -39
  736. package/esm/plots/venn/interactions/actions/highlight.js.map +0 -1
  737. package/esm/plots/venn/interactions/actions/selected.d.ts +0 -33
  738. package/esm/plots/venn/interactions/actions/selected.js +0 -70
  739. package/esm/plots/venn/interactions/actions/selected.js.map +0 -1
  740. package/esm/plots/venn/interactions/index.d.ts +0 -1
  741. package/esm/plots/venn/interactions/index.js +0 -48
  742. package/esm/plots/venn/interactions/index.js.map +0 -1
  743. package/esm/plots/venn/interactions/util.d.ts +0 -3
  744. package/esm/plots/venn/interactions/util.js +0 -11
  745. package/esm/plots/venn/interactions/util.js.map +0 -1
  746. package/esm/plots/venn/label.d.ts +0 -1
  747. package/esm/plots/venn/label.js +0 -31
  748. package/esm/plots/venn/label.js.map +0 -1
  749. package/esm/plots/venn/layout/circleintersection.d.ts +0 -29
  750. package/esm/plots/venn/layout/circleintersection.js +0 -186
  751. package/esm/plots/venn/layout/circleintersection.js.map +0 -1
  752. package/esm/plots/venn/layout/diagram.d.ts +0 -17
  753. package/esm/plots/venn/layout/diagram.js +0 -193
  754. package/esm/plots/venn/layout/diagram.js.map +0 -1
  755. package/esm/plots/venn/layout/layout.d.ts +0 -27
  756. package/esm/plots/venn/layout/layout.js +0 -594
  757. package/esm/plots/venn/layout/layout.js.map +0 -1
  758. package/esm/plots/venn/shape.d.ts +0 -1
  759. package/esm/plots/venn/shape.js +0 -42
  760. package/esm/plots/venn/shape.js.map +0 -1
  761. package/esm/plots/venn/types.d.ts +0 -41
  762. package/esm/plots/venn/types.js +0 -2
  763. package/esm/plots/venn/types.js.map +0 -1
  764. package/esm/plots/venn/utils.d.ts +0 -27
  765. package/esm/plots/venn/utils.js +0 -92
  766. package/esm/plots/venn/utils.js.map +0 -1
  767. package/esm/plots/violin/adaptor.d.ts +0 -12
  768. package/esm/plots/violin/adaptor.js +0 -228
  769. package/esm/plots/violin/adaptor.js.map +0 -1
  770. package/esm/plots/violin/constant.d.ts +0 -11
  771. package/esm/plots/violin/constant.js +0 -58
  772. package/esm/plots/violin/constant.js.map +0 -1
  773. package/esm/plots/violin/index.d.ts +0 -25
  774. package/esm/plots/violin/index.js +0 -43
  775. package/esm/plots/violin/index.js.map +0 -1
  776. package/esm/plots/violin/types.d.ts +0 -72
  777. package/esm/plots/violin/types.js +0 -2
  778. package/esm/plots/violin/types.js.map +0 -1
  779. package/esm/plots/violin/utils.d.ts +0 -43
  780. package/esm/plots/violin/utils.js +0 -55
  781. package/esm/plots/violin/utils.js.map +0 -1
  782. package/esm/plots/waterfall/adaptor.d.ts +0 -13
  783. package/esm/plots/waterfall/adaptor.js +0 -192
  784. package/esm/plots/waterfall/adaptor.js.map +0 -1
  785. package/esm/plots/waterfall/constant.d.ts +0 -42
  786. package/esm/plots/waterfall/constant.js +0 -41
  787. package/esm/plots/waterfall/constant.js.map +0 -1
  788. package/esm/plots/waterfall/index.d.ts +0 -29
  789. package/esm/plots/waterfall/index.js +0 -48
  790. package/esm/plots/waterfall/index.js.map +0 -1
  791. package/esm/plots/waterfall/shape.d.ts +0 -1
  792. package/esm/plots/waterfall/shape.js +0 -58
  793. package/esm/plots/waterfall/shape.js.map +0 -1
  794. package/esm/plots/waterfall/types.d.ts +0 -70
  795. package/esm/plots/waterfall/types.js +0 -2
  796. package/esm/plots/waterfall/types.js.map +0 -1
  797. package/esm/plots/waterfall/utils.d.ts +0 -17
  798. package/esm/plots/waterfall/utils.js +0 -47
  799. package/esm/plots/waterfall/utils.js.map +0 -1
  800. package/esm/plots/word-cloud/adaptor.d.ts +0 -13
  801. package/esm/plots/word-cloud/adaptor.js +0 -69
  802. package/esm/plots/word-cloud/adaptor.js.map +0 -1
  803. package/esm/plots/word-cloud/constant.d.ts +0 -6
  804. package/esm/plots/word-cloud/constant.js +0 -30
  805. package/esm/plots/word-cloud/constant.js.map +0 -1
  806. package/esm/plots/word-cloud/index.d.ts +0 -35
  807. package/esm/plots/word-cloud/index.js +0 -91
  808. package/esm/plots/word-cloud/index.js.map +0 -1
  809. package/esm/plots/word-cloud/shapes/word-cloud.d.ts +0 -1
  810. package/esm/plots/word-cloud/shapes/word-cloud.js +0 -28
  811. package/esm/plots/word-cloud/shapes/word-cloud.js.map +0 -1
  812. package/esm/plots/word-cloud/types.d.ts +0 -149
  813. package/esm/plots/word-cloud/types.js +0 -2
  814. package/esm/plots/word-cloud/types.js.map +0 -1
  815. package/esm/plots/word-cloud/utils.d.ts +0 -34
  816. package/esm/plots/word-cloud/utils.js +0 -218
  817. package/esm/plots/word-cloud/utils.js.map +0 -1
  818. package/esm/plugin/index.d.ts +0 -48
  819. package/esm/plugin/index.js +0 -58
  820. package/esm/plugin/index.js.map +0 -1
  821. package/esm/types/animation.d.ts +0 -2
  822. package/esm/types/animation.js +0 -2
  823. package/esm/types/animation.js.map +0 -1
  824. package/esm/types/annotation.d.ts +0 -6
  825. package/esm/types/annotation.js +0 -2
  826. package/esm/types/annotation.js.map +0 -1
  827. package/esm/types/attr.d.ts +0 -20
  828. package/esm/types/attr.js +0 -2
  829. package/esm/types/attr.js.map +0 -1
  830. package/esm/types/axis.d.ts +0 -3
  831. package/esm/types/axis.js +0 -2
  832. package/esm/types/axis.js.map +0 -1
  833. package/esm/types/button.d.ts +0 -33
  834. package/esm/types/button.js +0 -2
  835. package/esm/types/button.js.map +0 -1
  836. package/esm/types/coordinate.d.ts +0 -13
  837. package/esm/types/coordinate.js +0 -2
  838. package/esm/types/coordinate.js.map +0 -1
  839. package/esm/types/drill-down.d.ts +0 -39
  840. package/esm/types/drill-down.js +0 -2
  841. package/esm/types/drill-down.js.map +0 -1
  842. package/esm/types/interaction.d.ts +0 -49
  843. package/esm/types/interaction.js +0 -2
  844. package/esm/types/interaction.js.map +0 -1
  845. package/esm/types/label.d.ts +0 -17
  846. package/esm/types/label.js +0 -2
  847. package/esm/types/label.js.map +0 -1
  848. package/esm/types/legend.d.ts +0 -2
  849. package/esm/types/legend.js +0 -2
  850. package/esm/types/legend.js.map +0 -1
  851. package/esm/types/locale.d.ts +0 -24
  852. package/esm/types/locale.js +0 -2
  853. package/esm/types/locale.js.map +0 -1
  854. package/esm/types/meta.d.ts +0 -14
  855. package/esm/types/meta.js +0 -2
  856. package/esm/types/meta.js.map +0 -1
  857. package/esm/types/pattern.d.ts +0 -87
  858. package/esm/types/pattern.js +0 -2
  859. package/esm/types/pattern.js.map +0 -1
  860. package/esm/types/relation-data.d.ts +0 -16
  861. package/esm/types/relation-data.js +0 -2
  862. package/esm/types/relation-data.js.map +0 -1
  863. package/esm/types/scrollbar.d.ts +0 -2
  864. package/esm/types/scrollbar.js +0 -2
  865. package/esm/types/scrollbar.js.map +0 -1
  866. package/esm/types/slider.d.ts +0 -2
  867. package/esm/types/slider.js +0 -2
  868. package/esm/types/slider.js.map +0 -1
  869. package/esm/types/state.d.ts +0 -22
  870. package/esm/types/state.js +0 -2
  871. package/esm/types/state.js.map +0 -1
  872. package/esm/types/statistic.d.ts +0 -64
  873. package/esm/types/statistic.js +0 -2
  874. package/esm/types/statistic.js.map +0 -1
  875. package/esm/types/tooltip.d.ts +0 -15
  876. package/esm/types/tooltip.js +0 -2
  877. package/esm/types/tooltip.js.map +0 -1
  878. package/esm/utils/color/blend.d.ts +0 -20
  879. package/esm/utils/color/blend.js +0 -92
  880. package/esm/utils/color/blend.js.map +0 -1
  881. package/esm/utils/context.d.ts +0 -4
  882. package/esm/utils/context.js +0 -11
  883. package/esm/utils/context.js.map +0 -1
  884. package/esm/utils/conversion.d.ts +0 -6
  885. package/esm/utils/conversion.js +0 -23
  886. package/esm/utils/conversion.js.map +0 -1
  887. package/esm/utils/data.d.ts +0 -23
  888. package/esm/utils/data.js +0 -89
  889. package/esm/utils/data.js.map +0 -1
  890. package/esm/utils/deep-assign.d.ts +0 -6
  891. package/esm/utils/deep-assign.js +0 -86
  892. package/esm/utils/deep-assign.js.map +0 -1
  893. package/esm/utils/dom.d.ts +0 -7
  894. package/esm/utils/dom.js +0 -20
  895. package/esm/utils/dom.js.map +0 -1
  896. package/esm/utils/flow.d.ts +0 -7
  897. package/esm/utils/flow.js +0 -16
  898. package/esm/utils/flow.js.map +0 -1
  899. package/esm/utils/geometry.d.ts +0 -19
  900. package/esm/utils/geometry.js +0 -40
  901. package/esm/utils/geometry.js.map +0 -1
  902. package/esm/utils/hierarchy/pack.d.ts +0 -6
  903. package/esm/utils/hierarchy/pack.js +0 -40
  904. package/esm/utils/hierarchy/pack.js.map +0 -1
  905. package/esm/utils/hierarchy/partition.d.ts +0 -11
  906. package/esm/utils/hierarchy/partition.js +0 -71
  907. package/esm/utils/hierarchy/partition.js.map +0 -1
  908. package/esm/utils/hierarchy/treemap.d.ts +0 -3
  909. package/esm/utils/hierarchy/treemap.js +0 -86
  910. package/esm/utils/hierarchy/treemap.js.map +0 -1
  911. package/esm/utils/hierarchy/types.d.ts +0 -20
  912. package/esm/utils/hierarchy/types.js +0 -2
  913. package/esm/utils/hierarchy/types.js.map +0 -1
  914. package/esm/utils/hierarchy/util.d.ts +0 -14
  915. package/esm/utils/hierarchy/util.js +0 -64
  916. package/esm/utils/hierarchy/util.js.map +0 -1
  917. package/esm/utils/invariant.d.ts +0 -23
  918. package/esm/utils/invariant.js +0 -59
  919. package/esm/utils/invariant.js.map +0 -1
  920. package/esm/utils/kebab-case.d.ts +0 -6
  921. package/esm/utils/kebab-case.js +0 -13
  922. package/esm/utils/kebab-case.js.map +0 -1
  923. package/esm/utils/label.d.ts +0 -5
  924. package/esm/utils/label.js +0 -17
  925. package/esm/utils/label.js.map +0 -1
  926. package/esm/utils/matrix.d.ts +0 -6
  927. package/esm/utils/matrix.js +0 -13
  928. package/esm/utils/matrix.js.map +0 -1
  929. package/esm/utils/measure-text.d.ts +0 -9
  930. package/esm/utils/measure-text.js +0 -21
  931. package/esm/utils/measure-text.js.map +0 -1
  932. package/esm/utils/number.d.ts +0 -14
  933. package/esm/utils/number.js +0 -21
  934. package/esm/utils/number.js.map +0 -1
  935. package/esm/utils/padding.d.ts +0 -15
  936. package/esm/utils/padding.js +0 -66
  937. package/esm/utils/padding.js.map +0 -1
  938. package/esm/utils/path.d.ts +0 -17
  939. package/esm/utils/path.js +0 -141
  940. package/esm/utils/path.js.map +0 -1
  941. package/esm/utils/pattern/dot.d.ts +0 -32
  942. package/esm/utils/pattern/dot.js +0 -69
  943. package/esm/utils/pattern/dot.js.map +0 -1
  944. package/esm/utils/pattern/index.d.ts +0 -17
  945. package/esm/utils/pattern/index.js +0 -27
  946. package/esm/utils/pattern/index.js.map +0 -1
  947. package/esm/utils/pattern/line.d.ts +0 -25
  948. package/esm/utils/pattern/line.js +0 -56
  949. package/esm/utils/pattern/line.js.map +0 -1
  950. package/esm/utils/pattern/square.d.ts +0 -28
  951. package/esm/utils/pattern/square.js +0 -61
  952. package/esm/utils/pattern/square.js.map +0 -1
  953. package/esm/utils/pattern/util.d.ts +0 -50
  954. package/esm/utils/pattern/util.js +0 -90
  955. package/esm/utils/pattern/util.js.map +0 -1
  956. package/esm/utils/pick.d.ts +0 -6
  957. package/esm/utils/pick.js +0 -18
  958. package/esm/utils/pick.js.map +0 -1
  959. package/esm/utils/statistic.d.ts +0 -36
  960. package/esm/utils/statistic.js +0 -158
  961. package/esm/utils/statistic.js.map +0 -1
  962. package/esm/utils/template.d.ts +0 -7
  963. package/esm/utils/template.js +0 -16
  964. package/esm/utils/template.js.map +0 -1
  965. package/esm/utils/tooltip.d.ts +0 -7
  966. package/esm/utils/tooltip.js +0 -23
  967. package/esm/utils/tooltip.js.map +0 -1
  968. package/esm/utils/transform/chord.d.ts +0 -34
  969. package/esm/utils/transform/chord.js +0 -182
  970. package/esm/utils/transform/chord.js.map +0 -1
  971. package/esm/utils/transform/histogram.d.ts +0 -15
  972. package/esm/utils/transform/histogram.js +0 -78
  973. package/esm/utils/transform/histogram.js.map +0 -1
  974. package/esm/utils/transform/percent.d.ts +0 -26
  975. package/esm/utils/transform/percent.js +0 -64
  976. package/esm/utils/transform/percent.js.map +0 -1
  977. package/esm/utils/transform/quantile.d.ts +0 -62
  978. package/esm/utils/transform/quantile.js +0 -194
  979. package/esm/utils/transform/quantile.js.map +0 -1
  980. package/esm/utils/transform/sankey.d.ts +0 -0
  981. package/esm/utils/transform/sankey.js +0 -1
  982. package/esm/utils/transform/sankey.js.map +0 -1
  983. package/esm/utils/transform/word-cloud.d.ts +0 -30
  984. package/esm/utils/transform/word-cloud.js +0 -419
  985. package/esm/utils/transform/word-cloud.js.map +0 -1
  986. package/esm/utils/view.d.ts +0 -28
  987. package/esm/utils/view.js +0 -55
  988. package/esm/utils/view.js.map +0 -1
  989. package/lib/adaptor/brush.d.ts +0 -12
  990. package/lib/adaptor/brush.js +0 -52
  991. package/lib/adaptor/brush.js.map +0 -1
  992. package/lib/adaptor/common.d.ts +0 -72
  993. package/lib/adaptor/common.js +0 -203
  994. package/lib/adaptor/common.js.map +0 -1
  995. package/lib/adaptor/connected-area.d.ts +0 -17
  996. package/lib/adaptor/connected-area.js +0 -80
  997. package/lib/adaptor/connected-area.js.map +0 -1
  998. package/lib/adaptor/conversion-tag.d.ts +0 -38
  999. package/lib/adaptor/conversion-tag.js +0 -182
  1000. package/lib/adaptor/conversion-tag.js.map +0 -1
  1001. package/lib/adaptor/geometries/area.d.ts +0 -19
  1002. package/lib/adaptor/geometries/area.js +0 -33
  1003. package/lib/adaptor/geometries/area.js.map +0 -1
  1004. package/lib/adaptor/geometries/base.d.ts +0 -77
  1005. package/lib/adaptor/geometries/base.js +0 -201
  1006. package/lib/adaptor/geometries/base.js.map +0 -1
  1007. package/lib/adaptor/geometries/edge.d.ts +0 -17
  1008. package/lib/adaptor/geometries/edge.js +0 -29
  1009. package/lib/adaptor/geometries/edge.js.map +0 -1
  1010. package/lib/adaptor/geometries/index.d.ts +0 -17
  1011. package/lib/adaptor/geometries/index.js +0 -20
  1012. package/lib/adaptor/geometries/index.js.map +0 -1
  1013. package/lib/adaptor/geometries/interval.d.ts +0 -36
  1014. package/lib/adaptor/geometries/interval.js +0 -77
  1015. package/lib/adaptor/geometries/interval.js.map +0 -1
  1016. package/lib/adaptor/geometries/line.d.ts +0 -23
  1017. package/lib/adaptor/geometries/line.js +0 -33
  1018. package/lib/adaptor/geometries/line.js.map +0 -1
  1019. package/lib/adaptor/geometries/point.d.ts +0 -21
  1020. package/lib/adaptor/geometries/point.js +0 -30
  1021. package/lib/adaptor/geometries/point.js.map +0 -1
  1022. package/lib/adaptor/geometries/polygon.d.ts +0 -17
  1023. package/lib/adaptor/geometries/polygon.js +0 -29
  1024. package/lib/adaptor/geometries/polygon.js.map +0 -1
  1025. package/lib/adaptor/geometries/schema.d.ts +0 -17
  1026. package/lib/adaptor/geometries/schema.js +0 -29
  1027. package/lib/adaptor/geometries/schema.js.map +0 -1
  1028. package/lib/adaptor/geometries/violin.d.ts +0 -19
  1029. package/lib/adaptor/geometries/violin.js +0 -28
  1030. package/lib/adaptor/geometries/violin.js.map +0 -1
  1031. package/lib/adaptor/pattern.d.ts +0 -15
  1032. package/lib/adaptor/pattern.js +0 -58
  1033. package/lib/adaptor/pattern.js.map +0 -1
  1034. package/lib/constant.d.ts +0 -4
  1035. package/lib/constant.js +0 -29
  1036. package/lib/constant.js.map +0 -1
  1037. package/lib/core/adaptor.d.ts +0 -15
  1038. package/lib/core/adaptor.js +0 -3
  1039. package/lib/core/adaptor.js.map +0 -1
  1040. package/lib/core/global.d.ts +0 -13
  1041. package/lib/core/global.js +0 -21
  1042. package/lib/core/global.js.map +0 -1
  1043. package/lib/core/locale.d.ts +0 -15
  1044. package/lib/core/locale.js +0 -30
  1045. package/lib/core/locale.js.map +0 -1
  1046. package/lib/interactions/actions/drill-down.d.ts +0 -99
  1047. package/lib/interactions/actions/drill-down.js +0 -255
  1048. package/lib/interactions/actions/drill-down.js.map +0 -1
  1049. package/lib/interactions/actions/reset-button.d.ts +0 -42
  1050. package/lib/interactions/actions/reset-button.js +0 -147
  1051. package/lib/interactions/actions/reset-button.js.map +0 -1
  1052. package/lib/interactions/brush.d.ts +0 -91
  1053. package/lib/interactions/brush.js +0 -309
  1054. package/lib/interactions/brush.js.map +0 -1
  1055. package/lib/interactions/drag-move.d.ts +0 -1
  1056. package/lib/interactions/drag-move.js +0 -15
  1057. package/lib/interactions/drag-move.js.map +0 -1
  1058. package/lib/interactions/drill-down.d.ts +0 -4
  1059. package/lib/interactions/drill-down.js +0 -56
  1060. package/lib/interactions/drill-down.js.map +0 -1
  1061. package/lib/lab.d.ts +0 -18
  1062. package/lib/lab.js +0 -43
  1063. package/lib/lab.js.map +0 -1
  1064. package/lib/locales/en_US.d.ts +0 -2
  1065. package/lib/locales/en_US.js +0 -30
  1066. package/lib/locales/en_US.js.map +0 -1
  1067. package/lib/locales/zh_CN.d.ts +0 -2
  1068. package/lib/locales/zh_CN.js +0 -30
  1069. package/lib/locales/zh_CN.js.map +0 -1
  1070. package/lib/plots/_template/adaptor.d.ts +0 -13
  1071. package/lib/plots/_template/adaptor.js +0 -43
  1072. package/lib/plots/_template/adaptor.js.map +0 -1
  1073. package/lib/plots/_template/constant.d.ts +0 -0
  1074. package/lib/plots/_template/constant.js +0 -1
  1075. package/lib/plots/_template/constant.js.map +0 -1
  1076. package/lib/plots/_template/index.d.ts +0 -15
  1077. package/lib/plots/_template/index.js +0 -27
  1078. package/lib/plots/_template/index.js.map +0 -1
  1079. package/lib/plots/_template/types.d.ts +0 -8
  1080. package/lib/plots/_template/types.js +0 -3
  1081. package/lib/plots/_template/types.js.map +0 -1
  1082. package/lib/plots/area/adaptor.d.ts +0 -10
  1083. package/lib/plots/area/adaptor.js +0 -119
  1084. package/lib/plots/area/adaptor.js.map +0 -1
  1085. package/lib/plots/area/constants.d.ts +0 -4
  1086. package/lib/plots/area/constants.js +0 -26
  1087. package/lib/plots/area/constants.js.map +0 -1
  1088. package/lib/plots/area/index.d.ts +0 -26
  1089. package/lib/plots/area/index.js +0 -50
  1090. package/lib/plots/area/index.js.map +0 -1
  1091. package/lib/plots/area/types.d.ts +0 -60
  1092. package/lib/plots/area/types.js +0 -3
  1093. package/lib/plots/area/types.js.map +0 -1
  1094. package/lib/plots/bar/adaptor.d.ts +0 -13
  1095. package/lib/plots/bar/adaptor.js +0 -107
  1096. package/lib/plots/bar/adaptor.js.map +0 -1
  1097. package/lib/plots/bar/constants.d.ts +0 -4
  1098. package/lib/plots/bar/constants.js +0 -22
  1099. package/lib/plots/bar/constants.js.map +0 -1
  1100. package/lib/plots/bar/index.d.ts +0 -28
  1101. package/lib/plots/bar/index.js +0 -57
  1102. package/lib/plots/bar/index.js.map +0 -1
  1103. package/lib/plots/bar/types.d.ts +0 -24
  1104. package/lib/plots/bar/types.js +0 -3
  1105. package/lib/plots/bar/types.js.map +0 -1
  1106. package/lib/plots/bidirectional-bar/adaptor.d.ts +0 -28
  1107. package/lib/plots/bidirectional-bar/adaptor.js +0 -319
  1108. package/lib/plots/bidirectional-bar/adaptor.js.map +0 -1
  1109. package/lib/plots/bidirectional-bar/constant.d.ts +0 -4
  1110. package/lib/plots/bidirectional-bar/constant.js +0 -8
  1111. package/lib/plots/bidirectional-bar/constant.js.map +0 -1
  1112. package/lib/plots/bidirectional-bar/index.d.ts +0 -24
  1113. package/lib/plots/bidirectional-bar/index.js +0 -63
  1114. package/lib/plots/bidirectional-bar/index.js.map +0 -1
  1115. package/lib/plots/bidirectional-bar/types.d.ts +0 -33
  1116. package/lib/plots/bidirectional-bar/types.js +0 -3
  1117. package/lib/plots/bidirectional-bar/types.js.map +0 -1
  1118. package/lib/plots/bidirectional-bar/utils.d.ts +0 -22
  1119. package/lib/plots/bidirectional-bar/utils.js +0 -84
  1120. package/lib/plots/bidirectional-bar/utils.js.map +0 -1
  1121. package/lib/plots/box/adaptor.d.ts +0 -12
  1122. package/lib/plots/box/adaptor.js +0 -155
  1123. package/lib/plots/box/adaptor.js.map +0 -1
  1124. package/lib/plots/box/constant.d.ts +0 -8
  1125. package/lib/plots/box/constant.js +0 -29
  1126. package/lib/plots/box/constant.js.map +0 -1
  1127. package/lib/plots/box/index.d.ts +0 -26
  1128. package/lib/plots/box/index.js +0 -52
  1129. package/lib/plots/box/index.js.map +0 -1
  1130. package/lib/plots/box/types.d.ts +0 -29
  1131. package/lib/plots/box/types.js +0 -3
  1132. package/lib/plots/box/types.js.map +0 -1
  1133. package/lib/plots/box/utils.d.ts +0 -7
  1134. package/lib/plots/box/utils.js +0 -24
  1135. package/lib/plots/box/utils.js.map +0 -1
  1136. package/lib/plots/bullet/adaptor.d.ts +0 -13
  1137. package/lib/plots/bullet/adaptor.js +0 -179
  1138. package/lib/plots/bullet/adaptor.js.map +0 -1
  1139. package/lib/plots/bullet/constant.d.ts +0 -4
  1140. package/lib/plots/bullet/constant.js +0 -35
  1141. package/lib/plots/bullet/constant.js.map +0 -1
  1142. package/lib/plots/bullet/index.d.ts +0 -22
  1143. package/lib/plots/bullet/index.js +0 -46
  1144. package/lib/plots/bullet/index.js.map +0 -1
  1145. package/lib/plots/bullet/types.d.ts +0 -56
  1146. package/lib/plots/bullet/types.js +0 -3
  1147. package/lib/plots/bullet/types.js.map +0 -1
  1148. package/lib/plots/bullet/utils.d.ts +0 -12
  1149. package/lib/plots/bullet/utils.js +0 -73
  1150. package/lib/plots/bullet/utils.js.map +0 -1
  1151. package/lib/plots/chord/adaptor.d.ts +0 -8
  1152. package/lib/plots/chord/adaptor.js +0 -152
  1153. package/lib/plots/chord/adaptor.js.map +0 -1
  1154. package/lib/plots/chord/constant.d.ts +0 -43
  1155. package/lib/plots/chord/constant.js +0 -59
  1156. package/lib/plots/chord/constant.js.map +0 -1
  1157. package/lib/plots/chord/index.d.ts +0 -21
  1158. package/lib/plots/chord/index.js +0 -38
  1159. package/lib/plots/chord/index.js.map +0 -1
  1160. package/lib/plots/chord/types.d.ts +0 -48
  1161. package/lib/plots/chord/types.js +0 -3
  1162. package/lib/plots/chord/types.js.map +0 -1
  1163. package/lib/plots/circle-packing/adaptor.d.ts +0 -13
  1164. package/lib/plots/circle-packing/adaptor.js +0 -176
  1165. package/lib/plots/circle-packing/adaptor.js.map +0 -1
  1166. package/lib/plots/circle-packing/constant.d.ts +0 -4
  1167. package/lib/plots/circle-packing/constant.js +0 -33
  1168. package/lib/plots/circle-packing/constant.js.map +0 -1
  1169. package/lib/plots/circle-packing/index.d.ts +0 -27
  1170. package/lib/plots/circle-packing/index.js +0 -53
  1171. package/lib/plots/circle-packing/index.js.map +0 -1
  1172. package/lib/plots/circle-packing/interactions/index.d.ts +0 -2
  1173. package/lib/plots/circle-packing/interactions/index.js +0 -5
  1174. package/lib/plots/circle-packing/interactions/index.js.map +0 -1
  1175. package/lib/plots/circle-packing/types.d.ts +0 -38
  1176. package/lib/plots/circle-packing/types.js +0 -3
  1177. package/lib/plots/circle-packing/types.js.map +0 -1
  1178. package/lib/plots/circle-packing/utils.d.ts +0 -25
  1179. package/lib/plots/circle-packing/utils.js +0 -61
  1180. package/lib/plots/circle-packing/utils.js.map +0 -1
  1181. package/lib/plots/column/constants.d.ts +0 -4
  1182. package/lib/plots/column/constants.js +0 -22
  1183. package/lib/plots/column/constants.js.map +0 -1
  1184. package/lib/plots/column/types.d.ts +0 -90
  1185. package/lib/plots/column/types.js +0 -3
  1186. package/lib/plots/column/types.js.map +0 -1
  1187. package/lib/plots/dual-axes/adaptor.d.ts +0 -63
  1188. package/lib/plots/dual-axes/adaptor.js +0 -440
  1189. package/lib/plots/dual-axes/adaptor.js.map +0 -1
  1190. package/lib/plots/dual-axes/constant.d.ts +0 -26
  1191. package/lib/plots/dual-axes/constant.js +0 -16
  1192. package/lib/plots/dual-axes/constant.js.map +0 -1
  1193. package/lib/plots/dual-axes/index.d.ts +0 -16
  1194. package/lib/plots/dual-axes/index.js +0 -34
  1195. package/lib/plots/dual-axes/index.js.map +0 -1
  1196. package/lib/plots/dual-axes/types.d.ts +0 -79
  1197. package/lib/plots/dual-axes/types.js +0 -14
  1198. package/lib/plots/dual-axes/types.js.map +0 -1
  1199. package/lib/plots/dual-axes/util/geometry.d.ts +0 -11
  1200. package/lib/plots/dual-axes/util/geometry.js +0 -59
  1201. package/lib/plots/dual-axes/util/geometry.js.map +0 -1
  1202. package/lib/plots/dual-axes/util/legend.d.ts +0 -13
  1203. package/lib/plots/dual-axes/util/legend.js +0 -70
  1204. package/lib/plots/dual-axes/util/legend.js.map +0 -1
  1205. package/lib/plots/dual-axes/util/option.d.ts +0 -29
  1206. package/lib/plots/dual-axes/util/option.js +0 -78
  1207. package/lib/plots/dual-axes/util/option.js.map +0 -1
  1208. package/lib/plots/dual-axes/util/render-sider.d.ts +0 -9
  1209. package/lib/plots/dual-axes/util/render-sider.js +0 -35
  1210. package/lib/plots/dual-axes/util/render-sider.js.map +0 -1
  1211. package/lib/plots/facet/adaptor.d.ts +0 -8
  1212. package/lib/plots/facet/adaptor.js +0 -111
  1213. package/lib/plots/facet/adaptor.js.map +0 -1
  1214. package/lib/plots/facet/constant.d.ts +0 -23
  1215. package/lib/plots/facet/constant.js +0 -27
  1216. package/lib/plots/facet/constant.js.map +0 -1
  1217. package/lib/plots/facet/index.d.ts +0 -21
  1218. package/lib/plots/facet/index.js +0 -38
  1219. package/lib/plots/facet/index.js.map +0 -1
  1220. package/lib/plots/facet/types.d.ts +0 -148
  1221. package/lib/plots/facet/types.js +0 -3
  1222. package/lib/plots/facet/types.js.map +0 -1
  1223. package/lib/plots/facet/utils.d.ts +0 -8
  1224. package/lib/plots/facet/utils.js +0 -79
  1225. package/lib/plots/facet/utils.js.map +0 -1
  1226. package/lib/plots/funnel/adaptor.d.ts +0 -18
  1227. package/lib/plots/funnel/adaptor.js +0 -163
  1228. package/lib/plots/funnel/adaptor.js.map +0 -1
  1229. package/lib/plots/funnel/constant.d.ts +0 -40
  1230. package/lib/plots/funnel/constant.js +0 -51
  1231. package/lib/plots/funnel/constant.js.map +0 -1
  1232. package/lib/plots/funnel/geometries/basic.d.ts +0 -13
  1233. package/lib/plots/funnel/geometries/basic.js +0 -98
  1234. package/lib/plots/funnel/geometries/basic.js.map +0 -1
  1235. package/lib/plots/funnel/geometries/common.d.ts +0 -15
  1236. package/lib/plots/funnel/geometries/common.js +0 -64
  1237. package/lib/plots/funnel/geometries/common.js.map +0 -1
  1238. package/lib/plots/funnel/geometries/compare.d.ts +0 -9
  1239. package/lib/plots/funnel/geometries/compare.js +0 -145
  1240. package/lib/plots/funnel/geometries/compare.js.map +0 -1
  1241. package/lib/plots/funnel/geometries/dynamic-height.d.ts +0 -8
  1242. package/lib/plots/funnel/geometries/dynamic-height.js +0 -128
  1243. package/lib/plots/funnel/geometries/dynamic-height.js.map +0 -1
  1244. package/lib/plots/funnel/geometries/facet.d.ts +0 -8
  1245. package/lib/plots/funnel/geometries/facet.js +0 -54
  1246. package/lib/plots/funnel/geometries/facet.js.map +0 -1
  1247. package/lib/plots/funnel/index.d.ts +0 -38
  1248. package/lib/plots/funnel/index.js +0 -76
  1249. package/lib/plots/funnel/index.js.map +0 -1
  1250. package/lib/plots/funnel/interactions/funnel-conversion-tag.d.ts +0 -9
  1251. package/lib/plots/funnel/interactions/funnel-conversion-tag.js +0 -60
  1252. package/lib/plots/funnel/interactions/funnel-conversion-tag.js.map +0 -1
  1253. package/lib/plots/funnel/interactions/index.d.ts +0 -5
  1254. package/lib/plots/funnel/interactions/index.js +0 -13
  1255. package/lib/plots/funnel/interactions/index.js.map +0 -1
  1256. package/lib/plots/funnel/types.d.ts +0 -70
  1257. package/lib/plots/funnel/types.js +0 -3
  1258. package/lib/plots/funnel/types.js.map +0 -1
  1259. package/lib/plots/gauge/adaptor.d.ts +0 -17
  1260. package/lib/plots/gauge/adaptor.js +0 -183
  1261. package/lib/plots/gauge/adaptor.js.map +0 -1
  1262. package/lib/plots/gauge/constants.d.ts +0 -67
  1263. package/lib/plots/gauge/constants.js +0 -73
  1264. package/lib/plots/gauge/constants.js.map +0 -1
  1265. package/lib/plots/gauge/index.d.ts +0 -32
  1266. package/lib/plots/gauge/index.js +0 -66
  1267. package/lib/plots/gauge/index.js.map +0 -1
  1268. package/lib/plots/gauge/shapes/indicator.d.ts +0 -1
  1269. package/lib/plots/gauge/shapes/indicator.js +0 -32
  1270. package/lib/plots/gauge/shapes/indicator.js.map +0 -1
  1271. package/lib/plots/gauge/shapes/meter-gauge.d.ts +0 -1
  1272. package/lib/plots/gauge/shapes/meter-gauge.js +0 -54
  1273. package/lib/plots/gauge/shapes/meter-gauge.js.map +0 -1
  1274. package/lib/plots/gauge/types.d.ts +0 -130
  1275. package/lib/plots/gauge/types.js +0 -4
  1276. package/lib/plots/gauge/types.js.map +0 -1
  1277. package/lib/plots/gauge/utils.d.ts +0 -20
  1278. package/lib/plots/gauge/utils.js +0 -44
  1279. package/lib/plots/gauge/utils.js.map +0 -1
  1280. package/lib/plots/heatmap/adaptor.d.ts +0 -8
  1281. package/lib/plots/heatmap/adaptor.js +0 -167
  1282. package/lib/plots/heatmap/adaptor.js.map +0 -1
  1283. package/lib/plots/heatmap/constant.d.ts +0 -4
  1284. package/lib/plots/heatmap/constant.js +0 -42
  1285. package/lib/plots/heatmap/constant.js.map +0 -1
  1286. package/lib/plots/heatmap/index.d.ts +0 -23
  1287. package/lib/plots/heatmap/index.js +0 -41
  1288. package/lib/plots/heatmap/index.js.map +0 -1
  1289. package/lib/plots/heatmap/shapes/circle.d.ts +0 -1
  1290. package/lib/plots/heatmap/shapes/circle.js +0 -25
  1291. package/lib/plots/heatmap/shapes/circle.js.map +0 -1
  1292. package/lib/plots/heatmap/shapes/square.d.ts +0 -1
  1293. package/lib/plots/heatmap/shapes/square.js +0 -25
  1294. package/lib/plots/heatmap/shapes/square.js.map +0 -1
  1295. package/lib/plots/heatmap/types.d.ts +0 -63
  1296. package/lib/plots/heatmap/types.js +0 -3
  1297. package/lib/plots/heatmap/types.js.map +0 -1
  1298. package/lib/plots/histogram/adaptor.d.ts +0 -8
  1299. package/lib/plots/histogram/adaptor.js +0 -109
  1300. package/lib/plots/histogram/adaptor.js.map +0 -1
  1301. package/lib/plots/histogram/constant.d.ts +0 -8
  1302. package/lib/plots/histogram/constant.js +0 -23
  1303. package/lib/plots/histogram/constant.js.map +0 -1
  1304. package/lib/plots/histogram/index.d.ts +0 -22
  1305. package/lib/plots/histogram/index.js +0 -44
  1306. package/lib/plots/histogram/index.js.map +0 -1
  1307. package/lib/plots/histogram/types.d.ts +0 -27
  1308. package/lib/plots/histogram/types.js +0 -3
  1309. package/lib/plots/histogram/types.js.map +0 -1
  1310. package/lib/plots/line/constants.d.ts +0 -4
  1311. package/lib/plots/line/constants.js +0 -24
  1312. package/lib/plots/line/constants.js.map +0 -1
  1313. package/lib/plots/line/interactions/index.d.ts +0 -1
  1314. package/lib/plots/line/interactions/index.js +0 -20
  1315. package/lib/plots/line/interactions/index.js.map +0 -1
  1316. package/lib/plots/line/interactions/marker-active.d.ts +0 -6
  1317. package/lib/plots/line/interactions/marker-active.js +0 -42
  1318. package/lib/plots/line/interactions/marker-active.js.map +0 -1
  1319. package/lib/plots/line/types.d.ts +0 -58
  1320. package/lib/plots/line/types.js +0 -3
  1321. package/lib/plots/line/types.js.map +0 -1
  1322. package/lib/plots/liquid/adaptor.d.ts +0 -13
  1323. package/lib/plots/liquid/adaptor.js +0 -93
  1324. package/lib/plots/liquid/adaptor.js.map +0 -1
  1325. package/lib/plots/liquid/constants.d.ts +0 -26
  1326. package/lib/plots/liquid/constants.js +0 -30
  1327. package/lib/plots/liquid/constants.js.map +0 -1
  1328. package/lib/plots/liquid/index.d.ts +0 -31
  1329. package/lib/plots/liquid/index.js +0 -58
  1330. package/lib/plots/liquid/index.js.map +0 -1
  1331. package/lib/plots/liquid/shapes/liquid.d.ts +0 -16
  1332. package/lib/plots/liquid/shapes/liquid.js +0 -372
  1333. package/lib/plots/liquid/shapes/liquid.js.map +0 -1
  1334. package/lib/plots/liquid/types.d.ts +0 -93
  1335. package/lib/plots/liquid/types.js +0 -3
  1336. package/lib/plots/liquid/types.js.map +0 -1
  1337. package/lib/plots/liquid/utils.d.ts +0 -7
  1338. package/lib/plots/liquid/utils.js +0 -12
  1339. package/lib/plots/liquid/utils.js.map +0 -1
  1340. package/lib/plots/mix/adaptor.d.ts +0 -13
  1341. package/lib/plots/mix/adaptor.js +0 -147
  1342. package/lib/plots/mix/adaptor.js.map +0 -1
  1343. package/lib/plots/mix/index.d.ts +0 -24
  1344. package/lib/plots/mix/index.js +0 -36
  1345. package/lib/plots/mix/index.js.map +0 -1
  1346. package/lib/plots/mix/interactions/association.d.ts +0 -1
  1347. package/lib/plots/mix/interactions/association.js +0 -171
  1348. package/lib/plots/mix/interactions/association.js.map +0 -1
  1349. package/lib/plots/mix/interactions/index.d.ts +0 -4
  1350. package/lib/plots/mix/interactions/index.js +0 -7
  1351. package/lib/plots/mix/interactions/index.js.map +0 -1
  1352. package/lib/plots/mix/interactions/utils.d.ts +0 -14
  1353. package/lib/plots/mix/interactions/utils.js +0 -45
  1354. package/lib/plots/mix/interactions/utils.js.map +0 -1
  1355. package/lib/plots/mix/types.d.ts +0 -125
  1356. package/lib/plots/mix/types.js +0 -3
  1357. package/lib/plots/mix/types.js.map +0 -1
  1358. package/lib/plots/mix/utils.d.ts +0 -82
  1359. package/lib/plots/mix/utils.js +0 -102
  1360. package/lib/plots/mix/utils.js.map +0 -1
  1361. package/lib/plots/pie/adaptor.d.ts +0 -24
  1362. package/lib/plots/pie/adaptor.js +0 -295
  1363. package/lib/plots/pie/adaptor.js.map +0 -1
  1364. package/lib/plots/pie/contants.d.ts +0 -4
  1365. package/lib/plots/pie/contants.js +0 -53
  1366. package/lib/plots/pie/contants.js.map +0 -1
  1367. package/lib/plots/pie/index.d.ts +0 -27
  1368. package/lib/plots/pie/index.js +0 -65
  1369. package/lib/plots/pie/index.js.map +0 -1
  1370. package/lib/plots/pie/interactions/actions/legend-active.d.ts +0 -20
  1371. package/lib/plots/pie/interactions/actions/legend-active.js +0 -71
  1372. package/lib/plots/pie/interactions/actions/legend-active.js.map +0 -1
  1373. package/lib/plots/pie/interactions/actions/statistic-active.d.ts +0 -13
  1374. package/lib/plots/pie/interactions/actions/statistic-active.js +0 -82
  1375. package/lib/plots/pie/interactions/actions/statistic-active.js.map +0 -1
  1376. package/lib/plots/pie/interactions/index.d.ts +0 -1
  1377. package/lib/plots/pie/interactions/index.js +0 -18
  1378. package/lib/plots/pie/interactions/index.js.map +0 -1
  1379. package/lib/plots/pie/interactions/util.d.ts +0 -7
  1380. package/lib/plots/pie/interactions/util.js +0 -19
  1381. package/lib/plots/pie/interactions/util.js.map +0 -1
  1382. package/lib/plots/pie/types.d.ts +0 -51
  1383. package/lib/plots/pie/types.js +0 -3
  1384. package/lib/plots/pie/types.js.map +0 -1
  1385. package/lib/plots/pie/utils.d.ts +0 -18
  1386. package/lib/plots/pie/utils.js +0 -53
  1387. package/lib/plots/pie/utils.js.map +0 -1
  1388. package/lib/plots/progress/adaptor.d.ts +0 -13
  1389. package/lib/plots/progress/adaptor.js +0 -61
  1390. package/lib/plots/progress/adaptor.js.map +0 -1
  1391. package/lib/plots/progress/constants.d.ts +0 -9
  1392. package/lib/plots/progress/constants.js +0 -13
  1393. package/lib/plots/progress/constants.js.map +0 -1
  1394. package/lib/plots/progress/index.d.ts +0 -23
  1395. package/lib/plots/progress/index.js +0 -44
  1396. package/lib/plots/progress/index.js.map +0 -1
  1397. package/lib/plots/progress/types.d.ts +0 -21
  1398. package/lib/plots/progress/types.js +0 -3
  1399. package/lib/plots/progress/types.js.map +0 -1
  1400. package/lib/plots/progress/utils.d.ts +0 -8
  1401. package/lib/plots/progress/utils.js +0 -26
  1402. package/lib/plots/progress/utils.js.map +0 -1
  1403. package/lib/plots/radar/adaptor.d.ts +0 -8
  1404. package/lib/plots/radar/adaptor.js +0 -114
  1405. package/lib/plots/radar/adaptor.js.map +0 -1
  1406. package/lib/plots/radar/index.d.ts +0 -22
  1407. package/lib/plots/radar/index.js +0 -76
  1408. package/lib/plots/radar/index.js.map +0 -1
  1409. package/lib/plots/radar/interactions/index.d.ts +0 -1
  1410. package/lib/plots/radar/interactions/index.js +0 -10
  1411. package/lib/plots/radar/interactions/index.js.map +0 -1
  1412. package/lib/plots/radar/interactions/radar-tooltip-action.d.ts +0 -15
  1413. package/lib/plots/radar/interactions/radar-tooltip-action.js +0 -77
  1414. package/lib/plots/radar/interactions/radar-tooltip-action.js.map +0 -1
  1415. package/lib/plots/radar/types.d.ts +0 -55
  1416. package/lib/plots/radar/types.js +0 -3
  1417. package/lib/plots/radar/types.js.map +0 -1
  1418. package/lib/plots/radial-bar/adaptor.d.ts +0 -18
  1419. package/lib/plots/radial-bar/adaptor.js +0 -124
  1420. package/lib/plots/radial-bar/adaptor.js.map +0 -1
  1421. package/lib/plots/radial-bar/constant.d.ts +0 -4
  1422. package/lib/plots/radial-bar/constant.js +0 -22
  1423. package/lib/plots/radial-bar/constant.js.map +0 -1
  1424. package/lib/plots/radial-bar/index.d.ts +0 -25
  1425. package/lib/plots/radial-bar/index.js +0 -47
  1426. package/lib/plots/radial-bar/index.js.map +0 -1
  1427. package/lib/plots/radial-bar/types.d.ts +0 -63
  1428. package/lib/plots/radial-bar/types.js +0 -3
  1429. package/lib/plots/radial-bar/types.js.map +0 -1
  1430. package/lib/plots/radial-bar/utils.d.ts +0 -6
  1431. package/lib/plots/radial-bar/utils.js +0 -32
  1432. package/lib/plots/radial-bar/utils.js.map +0 -1
  1433. package/lib/plots/ring-progress/adaptor.d.ts +0 -13
  1434. package/lib/plots/ring-progress/adaptor.js +0 -58
  1435. package/lib/plots/ring-progress/adaptor.js.map +0 -1
  1436. package/lib/plots/ring-progress/constants.d.ts +0 -22
  1437. package/lib/plots/ring-progress/constants.js +0 -26
  1438. package/lib/plots/ring-progress/constants.js.map +0 -1
  1439. package/lib/plots/ring-progress/index.d.ts +0 -23
  1440. package/lib/plots/ring-progress/index.js +0 -49
  1441. package/lib/plots/ring-progress/index.js.map +0 -1
  1442. package/lib/plots/ring-progress/types.d.ts +0 -28
  1443. package/lib/plots/ring-progress/types.js +0 -3
  1444. package/lib/plots/ring-progress/types.js.map +0 -1
  1445. package/lib/plots/rose/adaptor.d.ts +0 -13
  1446. package/lib/plots/rose/adaptor.js +0 -144
  1447. package/lib/plots/rose/adaptor.js.map +0 -1
  1448. package/lib/plots/rose/constant.d.ts +0 -4
  1449. package/lib/plots/rose/constant.js +0 -31
  1450. package/lib/plots/rose/constant.js.map +0 -1
  1451. package/lib/plots/rose/index.d.ts +0 -26
  1452. package/lib/plots/rose/index.js +0 -46
  1453. package/lib/plots/rose/index.js.map +0 -1
  1454. package/lib/plots/rose/types.d.ts +0 -55
  1455. package/lib/plots/rose/types.js +0 -3
  1456. package/lib/plots/rose/types.js.map +0 -1
  1457. package/lib/plots/sankey/adaptor.d.ts +0 -18
  1458. package/lib/plots/sankey/adaptor.js +0 -162
  1459. package/lib/plots/sankey/adaptor.js.map +0 -1
  1460. package/lib/plots/sankey/circle.d.ts +0 -16
  1461. package/lib/plots/sankey/circle.js +0 -99
  1462. package/lib/plots/sankey/circle.js.map +0 -1
  1463. package/lib/plots/sankey/constant.d.ts +0 -5
  1464. package/lib/plots/sankey/constant.js +0 -9
  1465. package/lib/plots/sankey/constant.js.map +0 -1
  1466. package/lib/plots/sankey/helper.d.ts +0 -20
  1467. package/lib/plots/sankey/helper.js +0 -59
  1468. package/lib/plots/sankey/helper.js.map +0 -1
  1469. package/lib/plots/sankey/index.d.ts +0 -27
  1470. package/lib/plots/sankey/index.js +0 -121
  1471. package/lib/plots/sankey/index.js.map +0 -1
  1472. package/lib/plots/sankey/interactions/actions/node-drag.d.ts +0 -46
  1473. package/lib/plots/sankey/interactions/actions/node-drag.js +0 -140
  1474. package/lib/plots/sankey/interactions/actions/node-drag.js.map +0 -1
  1475. package/lib/plots/sankey/interactions/index.d.ts +0 -1
  1476. package/lib/plots/sankey/interactions/index.js +0 -4
  1477. package/lib/plots/sankey/interactions/index.js.map +0 -1
  1478. package/lib/plots/sankey/interactions/node-draggable.d.ts +0 -1
  1479. package/lib/plots/sankey/interactions/node-draggable.js +0 -18
  1480. package/lib/plots/sankey/interactions/node-draggable.js.map +0 -1
  1481. package/lib/plots/sankey/layout.d.ts +0 -86
  1482. package/lib/plots/sankey/layout.js +0 -93
  1483. package/lib/plots/sankey/layout.js.map +0 -1
  1484. package/lib/plots/sankey/sankey/align.d.ts +0 -4
  1485. package/lib/plots/sankey/sankey/align.js +0 -24
  1486. package/lib/plots/sankey/sankey/align.js.map +0 -1
  1487. package/lib/plots/sankey/sankey/helper.d.ts +0 -14
  1488. package/lib/plots/sankey/sankey/helper.js +0 -44
  1489. package/lib/plots/sankey/sankey/helper.js.map +0 -1
  1490. package/lib/plots/sankey/sankey/index.d.ts +0 -11
  1491. package/lib/plots/sankey/sankey/index.js +0 -19
  1492. package/lib/plots/sankey/sankey/index.js.map +0 -1
  1493. package/lib/plots/sankey/sankey/sankey.d.ts +0 -24
  1494. package/lib/plots/sankey/sankey/sankey.js +0 -405
  1495. package/lib/plots/sankey/sankey/sankey.js.map +0 -1
  1496. package/lib/plots/sankey/types.d.ts +0 -143
  1497. package/lib/plots/sankey/types.js +0 -3
  1498. package/lib/plots/sankey/types.js.map +0 -1
  1499. package/lib/plots/scatter/adaptor.d.ts +0 -25
  1500. package/lib/plots/scatter/adaptor.js +0 -276
  1501. package/lib/plots/scatter/adaptor.js.map +0 -1
  1502. package/lib/plots/scatter/constant.d.ts +0 -4
  1503. package/lib/plots/scatter/constant.js +0 -20
  1504. package/lib/plots/scatter/constant.js.map +0 -1
  1505. package/lib/plots/scatter/index.d.ts +0 -25
  1506. package/lib/plots/scatter/index.js +0 -61
  1507. package/lib/plots/scatter/index.js.map +0 -1
  1508. package/lib/plots/scatter/interactions/index.d.ts +0 -1
  1509. package/lib/plots/scatter/interactions/index.js +0 -4
  1510. package/lib/plots/scatter/interactions/index.js.map +0 -1
  1511. package/lib/plots/scatter/types.d.ts +0 -125
  1512. package/lib/plots/scatter/types.js +0 -3
  1513. package/lib/plots/scatter/types.js.map +0 -1
  1514. package/lib/plots/scatter/util.d.ts +0 -36
  1515. package/lib/plots/scatter/util.js +0 -238
  1516. package/lib/plots/scatter/util.js.map +0 -1
  1517. package/lib/plots/stock/adaptor.d.ts +0 -28
  1518. package/lib/plots/stock/adaptor.js +0 -128
  1519. package/lib/plots/stock/adaptor.js.map +0 -1
  1520. package/lib/plots/stock/constant.d.ts +0 -31
  1521. package/lib/plots/stock/constant.js +0 -57
  1522. package/lib/plots/stock/constant.js.map +0 -1
  1523. package/lib/plots/stock/index.d.ts +0 -27
  1524. package/lib/plots/stock/index.js +0 -49
  1525. package/lib/plots/stock/index.js.map +0 -1
  1526. package/lib/plots/stock/types.d.ts +0 -28
  1527. package/lib/plots/stock/types.js +0 -3
  1528. package/lib/plots/stock/types.js.map +0 -1
  1529. package/lib/plots/stock/utils.d.ts +0 -8
  1530. package/lib/plots/stock/utils.js +0 -24
  1531. package/lib/plots/stock/utils.js.map +0 -1
  1532. package/lib/plots/sunburst/adaptor.d.ts +0 -23
  1533. package/lib/plots/sunburst/adaptor.js +0 -183
  1534. package/lib/plots/sunburst/adaptor.js.map +0 -1
  1535. package/lib/plots/sunburst/constant.d.ts +0 -13
  1536. package/lib/plots/sunburst/constant.js +0 -50
  1537. package/lib/plots/sunburst/constant.js.map +0 -1
  1538. package/lib/plots/sunburst/index.d.ts +0 -28
  1539. package/lib/plots/sunburst/index.js +0 -46
  1540. package/lib/plots/sunburst/index.js.map +0 -1
  1541. package/lib/plots/sunburst/interactions/index.d.ts +0 -2
  1542. package/lib/plots/sunburst/interactions/index.js +0 -5
  1543. package/lib/plots/sunburst/interactions/index.js.map +0 -1
  1544. package/lib/plots/sunburst/types.d.ts +0 -66
  1545. package/lib/plots/sunburst/types.js +0 -3
  1546. package/lib/plots/sunburst/types.js.map +0 -1
  1547. package/lib/plots/sunburst/utils.d.ts +0 -6
  1548. package/lib/plots/sunburst/utils.js +0 -60
  1549. package/lib/plots/sunburst/utils.js.map +0 -1
  1550. package/lib/plots/tiny-area/adaptor.d.ts +0 -13
  1551. package/lib/plots/tiny-area/adaptor.js +0 -68
  1552. package/lib/plots/tiny-area/adaptor.js.map +0 -1
  1553. package/lib/plots/tiny-area/constants.d.ts +0 -33
  1554. package/lib/plots/tiny-area/constants.js +0 -23
  1555. package/lib/plots/tiny-area/constants.js.map +0 -1
  1556. package/lib/plots/tiny-area/index.d.ts +0 -23
  1557. package/lib/plots/tiny-area/index.js +0 -46
  1558. package/lib/plots/tiny-area/index.js.map +0 -1
  1559. package/lib/plots/tiny-area/types.d.ts +0 -27
  1560. package/lib/plots/tiny-area/types.js +0 -3
  1561. package/lib/plots/tiny-area/types.js.map +0 -1
  1562. package/lib/plots/tiny-column/adaptor.d.ts +0 -10
  1563. package/lib/plots/tiny-column/adaptor.js +0 -46
  1564. package/lib/plots/tiny-column/adaptor.js.map +0 -1
  1565. package/lib/plots/tiny-column/constants.d.ts +0 -35
  1566. package/lib/plots/tiny-column/constants.js +0 -28
  1567. package/lib/plots/tiny-column/constants.js.map +0 -1
  1568. package/lib/plots/tiny-column/index.d.ts +0 -23
  1569. package/lib/plots/tiny-column/index.js +0 -46
  1570. package/lib/plots/tiny-column/index.js.map +0 -1
  1571. package/lib/plots/tiny-column/types.d.ts +0 -17
  1572. package/lib/plots/tiny-column/types.js +0 -3
  1573. package/lib/plots/tiny-column/types.js.map +0 -1
  1574. package/lib/plots/tiny-line/adaptor.d.ts +0 -10
  1575. package/lib/plots/tiny-line/adaptor.js +0 -49
  1576. package/lib/plots/tiny-line/adaptor.js.map +0 -1
  1577. package/lib/plots/tiny-line/constants.d.ts +0 -45
  1578. package/lib/plots/tiny-line/constants.js +0 -34
  1579. package/lib/plots/tiny-line/constants.js.map +0 -1
  1580. package/lib/plots/tiny-line/index.d.ts +0 -23
  1581. package/lib/plots/tiny-line/index.js +0 -46
  1582. package/lib/plots/tiny-line/index.js.map +0 -1
  1583. package/lib/plots/tiny-line/types.d.ts +0 -28
  1584. package/lib/plots/tiny-line/types.js +0 -3
  1585. package/lib/plots/tiny-line/types.js.map +0 -1
  1586. package/lib/plots/tiny-line/utils.d.ts +0 -4
  1587. package/lib/plots/tiny-line/utils.js +0 -9
  1588. package/lib/plots/tiny-line/utils.js.map +0 -1
  1589. package/lib/plots/treemap/adaptor.d.ts +0 -13
  1590. package/lib/plots/treemap/adaptor.js +0 -133
  1591. package/lib/plots/treemap/adaptor.js.map +0 -1
  1592. package/lib/plots/treemap/constant.d.ts +0 -36
  1593. package/lib/plots/treemap/constant.js +0 -42
  1594. package/lib/plots/treemap/constant.js.map +0 -1
  1595. package/lib/plots/treemap/index.d.ts +0 -23
  1596. package/lib/plots/treemap/index.js +0 -52
  1597. package/lib/plots/treemap/index.js.map +0 -1
  1598. package/lib/plots/treemap/interactions/index.d.ts +0 -4
  1599. package/lib/plots/treemap/interactions/index.js +0 -7
  1600. package/lib/plots/treemap/interactions/index.js.map +0 -1
  1601. package/lib/plots/treemap/types.d.ts +0 -30
  1602. package/lib/plots/treemap/types.js +0 -3
  1603. package/lib/plots/treemap/types.js.map +0 -1
  1604. package/lib/plots/treemap/utils.d.ts +0 -21
  1605. package/lib/plots/treemap/utils.js +0 -80
  1606. package/lib/plots/treemap/utils.js.map +0 -1
  1607. package/lib/plots/venn/adaptor.d.ts +0 -23
  1608. package/lib/plots/venn/adaptor.js +0 -221
  1609. package/lib/plots/venn/adaptor.js.map +0 -1
  1610. package/lib/plots/venn/constant.d.ts +0 -7
  1611. package/lib/plots/venn/constant.js +0 -52
  1612. package/lib/plots/venn/constant.js.map +0 -1
  1613. package/lib/plots/venn/index.d.ts +0 -24
  1614. package/lib/plots/venn/index.js +0 -50
  1615. package/lib/plots/venn/index.js.map +0 -1
  1616. package/lib/plots/venn/interactions/actions/active.d.ts +0 -14
  1617. package/lib/plots/venn/interactions/actions/active.js +0 -37
  1618. package/lib/plots/venn/interactions/actions/active.js.map +0 -1
  1619. package/lib/plots/venn/interactions/actions/highlight.d.ts +0 -16
  1620. package/lib/plots/venn/interactions/actions/highlight.js +0 -42
  1621. package/lib/plots/venn/interactions/actions/highlight.js.map +0 -1
  1622. package/lib/plots/venn/interactions/actions/selected.d.ts +0 -33
  1623. package/lib/plots/venn/interactions/actions/selected.js +0 -73
  1624. package/lib/plots/venn/interactions/actions/selected.js.map +0 -1
  1625. package/lib/plots/venn/interactions/index.d.ts +0 -1
  1626. package/lib/plots/venn/interactions/index.js +0 -50
  1627. package/lib/plots/venn/interactions/index.js.map +0 -1
  1628. package/lib/plots/venn/interactions/util.d.ts +0 -3
  1629. package/lib/plots/venn/interactions/util.js +0 -15
  1630. package/lib/plots/venn/interactions/util.js.map +0 -1
  1631. package/lib/plots/venn/label.d.ts +0 -1
  1632. package/lib/plots/venn/label.js +0 -33
  1633. package/lib/plots/venn/label.js.map +0 -1
  1634. package/lib/plots/venn/layout/circleintersection.d.ts +0 -29
  1635. package/lib/plots/venn/layout/circleintersection.js +0 -196
  1636. package/lib/plots/venn/layout/circleintersection.js.map +0 -1
  1637. package/lib/plots/venn/layout/diagram.d.ts +0 -17
  1638. package/lib/plots/venn/layout/diagram.js +0 -201
  1639. package/lib/plots/venn/layout/diagram.js.map +0 -1
  1640. package/lib/plots/venn/layout/layout.d.ts +0 -27
  1641. package/lib/plots/venn/layout/layout.js +0 -607
  1642. package/lib/plots/venn/layout/layout.js.map +0 -1
  1643. package/lib/plots/venn/shape.d.ts +0 -1
  1644. package/lib/plots/venn/shape.js +0 -44
  1645. package/lib/plots/venn/shape.js.map +0 -1
  1646. package/lib/plots/venn/types.d.ts +0 -41
  1647. package/lib/plots/venn/types.js +0 -4
  1648. package/lib/plots/venn/types.js.map +0 -1
  1649. package/lib/plots/venn/utils.d.ts +0 -27
  1650. package/lib/plots/venn/utils.js +0 -97
  1651. package/lib/plots/venn/utils.js.map +0 -1
  1652. package/lib/plots/violin/adaptor.d.ts +0 -12
  1653. package/lib/plots/violin/adaptor.js +0 -233
  1654. package/lib/plots/violin/adaptor.js.map +0 -1
  1655. package/lib/plots/violin/constant.d.ts +0 -11
  1656. package/lib/plots/violin/constant.js +0 -61
  1657. package/lib/plots/violin/constant.js.map +0 -1
  1658. package/lib/plots/violin/index.d.ts +0 -25
  1659. package/lib/plots/violin/index.js +0 -46
  1660. package/lib/plots/violin/index.js.map +0 -1
  1661. package/lib/plots/violin/types.d.ts +0 -72
  1662. package/lib/plots/violin/types.js +0 -3
  1663. package/lib/plots/violin/types.js.map +0 -1
  1664. package/lib/plots/violin/utils.d.ts +0 -43
  1665. package/lib/plots/violin/utils.js +0 -61
  1666. package/lib/plots/violin/utils.js.map +0 -1
  1667. package/lib/plots/waterfall/adaptor.d.ts +0 -13
  1668. package/lib/plots/waterfall/adaptor.js +0 -197
  1669. package/lib/plots/waterfall/adaptor.js.map +0 -1
  1670. package/lib/plots/waterfall/constant.d.ts +0 -42
  1671. package/lib/plots/waterfall/constant.js +0 -44
  1672. package/lib/plots/waterfall/constant.js.map +0 -1
  1673. package/lib/plots/waterfall/index.d.ts +0 -29
  1674. package/lib/plots/waterfall/index.js +0 -51
  1675. package/lib/plots/waterfall/index.js.map +0 -1
  1676. package/lib/plots/waterfall/shape.d.ts +0 -1
  1677. package/lib/plots/waterfall/shape.js +0 -60
  1678. package/lib/plots/waterfall/shape.js.map +0 -1
  1679. package/lib/plots/waterfall/types.d.ts +0 -70
  1680. package/lib/plots/waterfall/types.js +0 -3
  1681. package/lib/plots/waterfall/types.js.map +0 -1
  1682. package/lib/plots/waterfall/utils.d.ts +0 -17
  1683. package/lib/plots/waterfall/utils.js +0 -52
  1684. package/lib/plots/waterfall/utils.js.map +0 -1
  1685. package/lib/plots/word-cloud/adaptor.d.ts +0 -13
  1686. package/lib/plots/word-cloud/adaptor.js +0 -74
  1687. package/lib/plots/word-cloud/adaptor.js.map +0 -1
  1688. package/lib/plots/word-cloud/constant.d.ts +0 -6
  1689. package/lib/plots/word-cloud/constant.js +0 -33
  1690. package/lib/plots/word-cloud/constant.js.map +0 -1
  1691. package/lib/plots/word-cloud/index.d.ts +0 -35
  1692. package/lib/plots/word-cloud/index.js +0 -94
  1693. package/lib/plots/word-cloud/index.js.map +0 -1
  1694. package/lib/plots/word-cloud/shapes/word-cloud.d.ts +0 -1
  1695. package/lib/plots/word-cloud/shapes/word-cloud.js +0 -30
  1696. package/lib/plots/word-cloud/shapes/word-cloud.js.map +0 -1
  1697. package/lib/plots/word-cloud/types.d.ts +0 -149
  1698. package/lib/plots/word-cloud/types.js +0 -3
  1699. package/lib/plots/word-cloud/types.js.map +0 -1
  1700. package/lib/plots/word-cloud/utils.d.ts +0 -34
  1701. package/lib/plots/word-cloud/utils.js +0 -226
  1702. package/lib/plots/word-cloud/utils.js.map +0 -1
  1703. package/lib/plugin/index.d.ts +0 -48
  1704. package/lib/plugin/index.js +0 -61
  1705. package/lib/plugin/index.js.map +0 -1
  1706. package/lib/types/animation.d.ts +0 -2
  1707. package/lib/types/animation.js +0 -3
  1708. package/lib/types/animation.js.map +0 -1
  1709. package/lib/types/annotation.d.ts +0 -6
  1710. package/lib/types/annotation.js +0 -3
  1711. package/lib/types/annotation.js.map +0 -1
  1712. package/lib/types/attr.d.ts +0 -20
  1713. package/lib/types/attr.js.map +0 -1
  1714. package/lib/types/axis.d.ts +0 -3
  1715. package/lib/types/axis.js.map +0 -1
  1716. package/lib/types/button.d.ts +0 -33
  1717. package/lib/types/button.js +0 -3
  1718. package/lib/types/button.js.map +0 -1
  1719. package/lib/types/coordinate.d.ts +0 -13
  1720. package/lib/types/coordinate.js +0 -3
  1721. package/lib/types/coordinate.js.map +0 -1
  1722. package/lib/types/drill-down.d.ts +0 -39
  1723. package/lib/types/drill-down.js +0 -3
  1724. package/lib/types/drill-down.js.map +0 -1
  1725. package/lib/types/interaction.d.ts +0 -49
  1726. package/lib/types/interaction.js +0 -3
  1727. package/lib/types/interaction.js.map +0 -1
  1728. package/lib/types/label.d.ts +0 -17
  1729. package/lib/types/label.js +0 -3
  1730. package/lib/types/label.js.map +0 -1
  1731. package/lib/types/legend.d.ts +0 -2
  1732. package/lib/types/legend.js +0 -3
  1733. package/lib/types/legend.js.map +0 -1
  1734. package/lib/types/locale.d.ts +0 -24
  1735. package/lib/types/locale.js +0 -3
  1736. package/lib/types/locale.js.map +0 -1
  1737. package/lib/types/meta.d.ts +0 -14
  1738. package/lib/types/meta.js +0 -3
  1739. package/lib/types/meta.js.map +0 -1
  1740. package/lib/types/pattern.d.ts +0 -87
  1741. package/lib/types/pattern.js +0 -3
  1742. package/lib/types/pattern.js.map +0 -1
  1743. package/lib/types/relation-data.d.ts +0 -16
  1744. package/lib/types/relation-data.js +0 -3
  1745. package/lib/types/relation-data.js.map +0 -1
  1746. package/lib/types/scrollbar.d.ts +0 -2
  1747. package/lib/types/scrollbar.js +0 -3
  1748. package/lib/types/scrollbar.js.map +0 -1
  1749. package/lib/types/slider.d.ts +0 -2
  1750. package/lib/types/slider.js +0 -3
  1751. package/lib/types/slider.js.map +0 -1
  1752. package/lib/types/state.d.ts +0 -22
  1753. package/lib/types/state.js +0 -3
  1754. package/lib/types/state.js.map +0 -1
  1755. package/lib/types/statistic.d.ts +0 -64
  1756. package/lib/types/statistic.js +0 -3
  1757. package/lib/types/statistic.js.map +0 -1
  1758. package/lib/types/tooltip.d.ts +0 -15
  1759. package/lib/types/tooltip.js +0 -3
  1760. package/lib/types/tooltip.js.map +0 -1
  1761. package/lib/utils/color/blend.d.ts +0 -20
  1762. package/lib/utils/color/blend.js +0 -99
  1763. package/lib/utils/color/blend.js.map +0 -1
  1764. package/lib/utils/context.d.ts +0 -4
  1765. package/lib/utils/context.js +0 -15
  1766. package/lib/utils/context.js.map +0 -1
  1767. package/lib/utils/conversion.d.ts +0 -6
  1768. package/lib/utils/conversion.js +0 -27
  1769. package/lib/utils/conversion.js.map +0 -1
  1770. package/lib/utils/data.d.ts +0 -23
  1771. package/lib/utils/data.js +0 -95
  1772. package/lib/utils/data.js.map +0 -1
  1773. package/lib/utils/deep-assign.d.ts +0 -6
  1774. package/lib/utils/deep-assign.js +0 -90
  1775. package/lib/utils/deep-assign.js.map +0 -1
  1776. package/lib/utils/dom.d.ts +0 -7
  1777. package/lib/utils/dom.js +0 -24
  1778. package/lib/utils/dom.js.map +0 -1
  1779. package/lib/utils/flow.d.ts +0 -7
  1780. package/lib/utils/flow.js +0 -20
  1781. package/lib/utils/flow.js.map +0 -1
  1782. package/lib/utils/geometry.d.ts +0 -19
  1783. package/lib/utils/geometry.js +0 -47
  1784. package/lib/utils/geometry.js.map +0 -1
  1785. package/lib/utils/hierarchy/pack.d.ts +0 -6
  1786. package/lib/utils/hierarchy/pack.js +0 -45
  1787. package/lib/utils/hierarchy/pack.js.map +0 -1
  1788. package/lib/utils/hierarchy/partition.d.ts +0 -11
  1789. package/lib/utils/hierarchy/partition.js +0 -76
  1790. package/lib/utils/hierarchy/partition.js.map +0 -1
  1791. package/lib/utils/hierarchy/treemap.d.ts +0 -3
  1792. package/lib/utils/hierarchy/treemap.js +0 -92
  1793. package/lib/utils/hierarchy/treemap.js.map +0 -1
  1794. package/lib/utils/hierarchy/types.d.ts +0 -20
  1795. package/lib/utils/hierarchy/types.js +0 -3
  1796. package/lib/utils/hierarchy/types.js.map +0 -1
  1797. package/lib/utils/hierarchy/util.d.ts +0 -14
  1798. package/lib/utils/hierarchy/util.js +0 -69
  1799. package/lib/utils/hierarchy/util.js.map +0 -1
  1800. package/lib/utils/invariant.d.ts +0 -23
  1801. package/lib/utils/invariant.js +0 -64
  1802. package/lib/utils/invariant.js.map +0 -1
  1803. package/lib/utils/kebab-case.d.ts +0 -6
  1804. package/lib/utils/kebab-case.js +0 -17
  1805. package/lib/utils/kebab-case.js.map +0 -1
  1806. package/lib/utils/label.d.ts +0 -5
  1807. package/lib/utils/label.js +0 -21
  1808. package/lib/utils/label.js.map +0 -1
  1809. package/lib/utils/matrix.d.ts +0 -6
  1810. package/lib/utils/matrix.js +0 -17
  1811. package/lib/utils/matrix.js.map +0 -1
  1812. package/lib/utils/measure-text.d.ts +0 -9
  1813. package/lib/utils/measure-text.js +0 -24
  1814. package/lib/utils/measure-text.js.map +0 -1
  1815. package/lib/utils/number.d.ts +0 -14
  1816. package/lib/utils/number.js +0 -26
  1817. package/lib/utils/number.js.map +0 -1
  1818. package/lib/utils/padding.d.ts +0 -15
  1819. package/lib/utils/padding.js +0 -72
  1820. package/lib/utils/padding.js.map +0 -1
  1821. package/lib/utils/path.d.ts +0 -17
  1822. package/lib/utils/path.js +0 -148
  1823. package/lib/utils/path.js.map +0 -1
  1824. package/lib/utils/pattern/dot.d.ts +0 -32
  1825. package/lib/utils/pattern/dot.js +0 -74
  1826. package/lib/utils/pattern/dot.js.map +0 -1
  1827. package/lib/utils/pattern/index.d.ts +0 -17
  1828. package/lib/utils/pattern/index.js +0 -31
  1829. package/lib/utils/pattern/index.js.map +0 -1
  1830. package/lib/utils/pattern/line.d.ts +0 -25
  1831. package/lib/utils/pattern/line.js +0 -61
  1832. package/lib/utils/pattern/line.js.map +0 -1
  1833. package/lib/utils/pattern/square.d.ts +0 -28
  1834. package/lib/utils/pattern/square.js +0 -66
  1835. package/lib/utils/pattern/square.js.map +0 -1
  1836. package/lib/utils/pattern/util.d.ts +0 -50
  1837. package/lib/utils/pattern/util.js +0 -99
  1838. package/lib/utils/pattern/util.js.map +0 -1
  1839. package/lib/utils/pick.d.ts +0 -6
  1840. package/lib/utils/pick.js +0 -22
  1841. package/lib/utils/pick.js.map +0 -1
  1842. package/lib/utils/statistic.d.ts +0 -36
  1843. package/lib/utils/statistic.js +0 -165
  1844. package/lib/utils/statistic.js.map +0 -1
  1845. package/lib/utils/template.d.ts +0 -7
  1846. package/lib/utils/template.js +0 -20
  1847. package/lib/utils/template.js.map +0 -1
  1848. package/lib/utils/tooltip.d.ts +0 -7
  1849. package/lib/utils/tooltip.js +0 -27
  1850. package/lib/utils/tooltip.js.map +0 -1
  1851. package/lib/utils/transform/chord.d.ts +0 -34
  1852. package/lib/utils/transform/chord.js +0 -187
  1853. package/lib/utils/transform/chord.js.map +0 -1
  1854. package/lib/utils/transform/histogram.d.ts +0 -15
  1855. package/lib/utils/transform/histogram.js +0 -82
  1856. package/lib/utils/transform/histogram.js.map +0 -1
  1857. package/lib/utils/transform/percent.d.ts +0 -26
  1858. package/lib/utils/transform/percent.js +0 -70
  1859. package/lib/utils/transform/percent.js.map +0 -1
  1860. package/lib/utils/transform/quantile.d.ts +0 -62
  1861. package/lib/utils/transform/quantile.js +0 -200
  1862. package/lib/utils/transform/quantile.js.map +0 -1
  1863. package/lib/utils/transform/sankey.d.ts +0 -0
  1864. package/lib/utils/transform/sankey.js +0 -1
  1865. package/lib/utils/transform/sankey.js.map +0 -1
  1866. package/lib/utils/transform/word-cloud.d.ts +0 -30
  1867. package/lib/utils/transform/word-cloud.js +0 -425
  1868. package/lib/utils/transform/word-cloud.js.map +0 -1
  1869. package/lib/utils/view.d.ts +0 -28
  1870. package/lib/utils/view.js +0 -62
  1871. package/lib/utils/view.js.map +0 -1
  1872. package/src/adaptor/brush.ts +0 -58
  1873. package/src/adaptor/common.ts +0 -228
  1874. package/src/adaptor/connected-area.ts +0 -94
  1875. package/src/adaptor/conversion-tag.ts +0 -253
  1876. package/src/adaptor/geometries/area.ts +0 -50
  1877. package/src/adaptor/geometries/base.ts +0 -281
  1878. package/src/adaptor/geometries/edge.ts +0 -43
  1879. package/src/adaptor/geometries/index.ts +0 -17
  1880. package/src/adaptor/geometries/interval.ts +0 -134
  1881. package/src/adaptor/geometries/line.ts +0 -54
  1882. package/src/adaptor/geometries/point.ts +0 -48
  1883. package/src/adaptor/geometries/polygon.ts +0 -43
  1884. package/src/adaptor/geometries/schema.ts +0 -43
  1885. package/src/adaptor/geometries/violin.ts +0 -44
  1886. package/src/adaptor/pattern.ts +0 -66
  1887. package/src/constant.ts +0 -25
  1888. package/src/core/adaptor.ts +0 -17
  1889. package/src/core/global.ts +0 -17
  1890. package/src/core/locale.ts +0 -31
  1891. package/src/interactions/actions/drill-down.ts +0 -302
  1892. package/src/interactions/actions/reset-button.ts +0 -161
  1893. package/src/interactions/brush.ts +0 -316
  1894. package/src/interactions/drag-move.ts +0 -13
  1895. package/src/interactions/drill-down.ts +0 -54
  1896. package/src/lab.ts +0 -34
  1897. package/src/locales/en_US.ts +0 -31
  1898. package/src/locales/zh_CN.ts +0 -31
  1899. package/src/plots/_template/adaptor.ts +0 -51
  1900. package/src/plots/_template/constant.ts +0 -0
  1901. package/src/plots/_template/index.ts +0 -21
  1902. package/src/plots/_template/types.ts +0 -9
  1903. package/src/plots/area/adaptor.ts +0 -180
  1904. package/src/plots/area/constants.ts +0 -23
  1905. package/src/plots/area/index.ts +0 -47
  1906. package/src/plots/area/types.ts +0 -67
  1907. package/src/plots/bar/adaptor.ts +0 -145
  1908. package/src/plots/bar/constants.ts +0 -19
  1909. package/src/plots/bar/index.ts +0 -53
  1910. package/src/plots/bar/types.ts +0 -27
  1911. package/src/plots/bidirectional-bar/adaptor.ts +0 -349
  1912. package/src/plots/bidirectional-bar/constant.ts +0 -4
  1913. package/src/plots/bidirectional-bar/index.ts +0 -68
  1914. package/src/plots/bidirectional-bar/types.ts +0 -36
  1915. package/src/plots/bidirectional-bar/utils.ts +0 -92
  1916. package/src/plots/box/adaptor.ts +0 -171
  1917. package/src/plots/box/constant.ts +0 -30
  1918. package/src/plots/box/index.ts +0 -50
  1919. package/src/plots/box/types.ts +0 -30
  1920. package/src/plots/box/utils.ts +0 -22
  1921. package/src/plots/bullet/adaptor.ts +0 -204
  1922. package/src/plots/bullet/constant.ts +0 -32
  1923. package/src/plots/bullet/index.ts +0 -43
  1924. package/src/plots/bullet/types.ts +0 -57
  1925. package/src/plots/bullet/utils.ts +0 -75
  1926. package/src/plots/chord/adaptor.ts +0 -196
  1927. package/src/plots/chord/constant.ts +0 -58
  1928. package/src/plots/chord/index.ts +0 -33
  1929. package/src/plots/chord/types.ts +0 -49
  1930. package/src/plots/circle-packing/adaptor.ts +0 -230
  1931. package/src/plots/circle-packing/constant.ts +0 -32
  1932. package/src/plots/circle-packing/index.ts +0 -49
  1933. package/src/plots/circle-packing/interactions/index.ts +0 -2
  1934. package/src/plots/circle-packing/types.ts +0 -46
  1935. package/src/plots/circle-packing/utils.ts +0 -89
  1936. package/src/plots/column/constants.ts +0 -19
  1937. package/src/plots/column/types.ts +0 -94
  1938. package/src/plots/dual-axes/adaptor.ts +0 -511
  1939. package/src/plots/dual-axes/constant.ts +0 -21
  1940. package/src/plots/dual-axes/index.ts +0 -29
  1941. package/src/plots/dual-axes/types.ts +0 -104
  1942. package/src/plots/dual-axes/util/geometry.ts +0 -88
  1943. package/src/plots/dual-axes/util/legend.ts +0 -85
  1944. package/src/plots/dual-axes/util/option.ts +0 -91
  1945. package/src/plots/dual-axes/util/render-sider.ts +0 -33
  1946. package/src/plots/facet/adaptor.ts +0 -127
  1947. package/src/plots/facet/constant.ts +0 -23
  1948. package/src/plots/facet/index.ts +0 -34
  1949. package/src/plots/facet/types.ts +0 -152
  1950. package/src/plots/facet/utils.ts +0 -86
  1951. package/src/plots/funnel/adaptor.ts +0 -188
  1952. package/src/plots/funnel/constant.ts +0 -47
  1953. package/src/plots/funnel/geometries/basic.ts +0 -118
  1954. package/src/plots/funnel/geometries/common.ts +0 -82
  1955. package/src/plots/funnel/geometries/compare.ts +0 -182
  1956. package/src/plots/funnel/geometries/dynamic-height.ts +0 -156
  1957. package/src/plots/funnel/geometries/facet.ts +0 -57
  1958. package/src/plots/funnel/index.ts +0 -84
  1959. package/src/plots/funnel/interactions/funnel-conversion-tag.ts +0 -57
  1960. package/src/plots/funnel/interactions/index.ts +0 -11
  1961. package/src/plots/funnel/types.ts +0 -75
  1962. package/src/plots/gauge/adaptor.ts +0 -225
  1963. package/src/plots/gauge/constants.ts +0 -71
  1964. package/src/plots/gauge/index.ts +0 -72
  1965. package/src/plots/gauge/shapes/indicator.ts +0 -44
  1966. package/src/plots/gauge/shapes/meter-gauge.ts +0 -67
  1967. package/src/plots/gauge/types.ts +0 -138
  1968. package/src/plots/gauge/utils.ts +0 -43
  1969. package/src/plots/heatmap/adaptor.ts +0 -204
  1970. package/src/plots/heatmap/constant.ts +0 -39
  1971. package/src/plots/heatmap/index.ts +0 -37
  1972. package/src/plots/heatmap/shapes/circle.ts +0 -30
  1973. package/src/plots/heatmap/shapes/square.ts +0 -31
  1974. package/src/plots/heatmap/types.ts +0 -68
  1975. package/src/plots/histogram/adaptor.ts +0 -131
  1976. package/src/plots/histogram/constant.ts +0 -21
  1977. package/src/plots/histogram/index.ts +0 -42
  1978. package/src/plots/histogram/types.ts +0 -29
  1979. package/src/plots/line/constants.ts +0 -21
  1980. package/src/plots/line/interactions/index.ts +0 -18
  1981. package/src/plots/line/interactions/marker-active.ts +0 -34
  1982. package/src/plots/line/types.ts +0 -64
  1983. package/src/plots/liquid/adaptor.ts +0 -104
  1984. package/src/plots/liquid/constants.ts +0 -26
  1985. package/src/plots/liquid/index.ts +0 -62
  1986. package/src/plots/liquid/shapes/liquid.ts +0 -484
  1987. package/src/plots/liquid/types.ts +0 -99
  1988. package/src/plots/liquid/utils.ts +0 -8
  1989. package/src/plots/mix/adaptor.ts +0 -178
  1990. package/src/plots/mix/index.ts +0 -30
  1991. package/src/plots/mix/interactions/association.ts +0 -178
  1992. package/src/plots/mix/interactions/index.ts +0 -4
  1993. package/src/plots/mix/interactions/utils.ts +0 -41
  1994. package/src/plots/mix/types.ts +0 -129
  1995. package/src/plots/mix/utils.ts +0 -183
  1996. package/src/plots/pie/adaptor.ts +0 -340
  1997. package/src/plots/pie/contants.ts +0 -50
  1998. package/src/plots/pie/index.ts +0 -68
  1999. package/src/plots/pie/interactions/actions/legend-active.ts +0 -65
  2000. package/src/plots/pie/interactions/actions/statistic-active.ts +0 -83
  2001. package/src/plots/pie/interactions/index.ts +0 -17
  2002. package/src/plots/pie/interactions/util.ts +0 -16
  2003. package/src/plots/pie/types.ts +0 -54
  2004. package/src/plots/pie/utils.ts +0 -51
  2005. package/src/plots/progress/adaptor.ts +0 -67
  2006. package/src/plots/progress/constants.ts +0 -10
  2007. package/src/plots/progress/index.ts +0 -41
  2008. package/src/plots/progress/types.ts +0 -22
  2009. package/src/plots/progress/utils.ts +0 -22
  2010. package/src/plots/radar/adaptor.ts +0 -135
  2011. package/src/plots/radar/index.ts +0 -72
  2012. package/src/plots/radar/interactions/index.ts +0 -8
  2013. package/src/plots/radar/interactions/radar-tooltip-action.ts +0 -64
  2014. package/src/plots/radar/types.ts +0 -56
  2015. package/src/plots/radial-bar/adaptor.ts +0 -147
  2016. package/src/plots/radial-bar/constant.ts +0 -19
  2017. package/src/plots/radial-bar/index.ts +0 -43
  2018. package/src/plots/radial-bar/types.ts +0 -67
  2019. package/src/plots/radial-bar/utils.ts +0 -27
  2020. package/src/plots/ring-progress/adaptor.ts +0 -66
  2021. package/src/plots/ring-progress/constants.ts +0 -22
  2022. package/src/plots/ring-progress/index.ts +0 -54
  2023. package/src/plots/ring-progress/types.ts +0 -29
  2024. package/src/plots/rose/adaptor.ts +0 -173
  2025. package/src/plots/rose/constant.ts +0 -28
  2026. package/src/plots/rose/index.ts +0 -43
  2027. package/src/plots/rose/types.ts +0 -56
  2028. package/src/plots/sankey/adaptor.ts +0 -190
  2029. package/src/plots/sankey/circle.ts +0 -108
  2030. package/src/plots/sankey/constant.ts +0 -5
  2031. package/src/plots/sankey/helper.ts +0 -92
  2032. package/src/plots/sankey/index.ts +0 -119
  2033. package/src/plots/sankey/interactions/actions/node-drag.ts +0 -175
  2034. package/src/plots/sankey/interactions/index.ts +0 -1
  2035. package/src/plots/sankey/interactions/node-draggable.ts +0 -17
  2036. package/src/plots/sankey/layout.ts +0 -187
  2037. package/src/plots/sankey/sankey/align.ts +0 -21
  2038. package/src/plots/sankey/sankey/helper.ts +0 -42
  2039. package/src/plots/sankey/sankey/index.ts +0 -11
  2040. package/src/plots/sankey/sankey/sankey.ts +0 -405
  2041. package/src/plots/sankey/types.ts +0 -146
  2042. package/src/plots/scatter/adaptor.ts +0 -355
  2043. package/src/plots/scatter/constant.ts +0 -17
  2044. package/src/plots/scatter/index.ts +0 -63
  2045. package/src/plots/scatter/interactions/index.ts +0 -1
  2046. package/src/plots/scatter/types.ts +0 -142
  2047. package/src/plots/scatter/util.ts +0 -282
  2048. package/src/plots/stock/adaptor.ts +0 -140
  2049. package/src/plots/stock/constant.ts +0 -56
  2050. package/src/plots/stock/index.ts +0 -46
  2051. package/src/plots/stock/types.ts +0 -31
  2052. package/src/plots/stock/utils.ts +0 -19
  2053. package/src/plots/sunburst/adaptor.ts +0 -239
  2054. package/src/plots/sunburst/constant.ts +0 -54
  2055. package/src/plots/sunburst/index.ts +0 -43
  2056. package/src/plots/sunburst/interactions/index.ts +0 -2
  2057. package/src/plots/sunburst/types.ts +0 -76
  2058. package/src/plots/sunburst/utils.ts +0 -69
  2059. package/src/plots/tiny-area/adaptor.ts +0 -78
  2060. package/src/plots/tiny-area/constants.ts +0 -21
  2061. package/src/plots/tiny-area/index.ts +0 -43
  2062. package/src/plots/tiny-area/types.ts +0 -28
  2063. package/src/plots/tiny-column/adaptor.ts +0 -50
  2064. package/src/plots/tiny-column/constants.ts +0 -27
  2065. package/src/plots/tiny-column/index.ts +0 -43
  2066. package/src/plots/tiny-column/types.ts +0 -18
  2067. package/src/plots/tiny-line/adaptor.ts +0 -56
  2068. package/src/plots/tiny-line/constants.ts +0 -34
  2069. package/src/plots/tiny-line/index.ts +0 -43
  2070. package/src/plots/tiny-line/types.ts +0 -29
  2071. package/src/plots/tiny-line/utils.ts +0 -5
  2072. package/src/plots/treemap/adaptor.ts +0 -161
  2073. package/src/plots/treemap/constant.ts +0 -38
  2074. package/src/plots/treemap/index.ts +0 -50
  2075. package/src/plots/treemap/interactions/index.ts +0 -4
  2076. package/src/plots/treemap/types.ts +0 -31
  2077. package/src/plots/treemap/utils.ts +0 -106
  2078. package/src/plots/venn/adaptor.ts +0 -278
  2079. package/src/plots/venn/constant.ts +0 -51
  2080. package/src/plots/venn/index.ts +0 -47
  2081. package/src/plots/venn/interactions/actions/active.ts +0 -31
  2082. package/src/plots/venn/interactions/actions/highlight.ts +0 -37
  2083. package/src/plots/venn/interactions/actions/selected.ts +0 -65
  2084. package/src/plots/venn/interactions/index.ts +0 -55
  2085. package/src/plots/venn/interactions/util.ts +0 -12
  2086. package/src/plots/venn/label.ts +0 -26
  2087. package/src/plots/venn/layout/circleintersection.ts +0 -223
  2088. package/src/plots/venn/layout/diagram.ts +0 -219
  2089. package/src/plots/venn/layout/layout.ts +0 -734
  2090. package/src/plots/venn/shape.ts +0 -53
  2091. package/src/plots/venn/types.ts +0 -40
  2092. package/src/plots/venn/utils.ts +0 -106
  2093. package/src/plots/violin/adaptor.ts +0 -308
  2094. package/src/plots/violin/constant.ts +0 -62
  2095. package/src/plots/violin/index.ts +0 -42
  2096. package/src/plots/violin/types.ts +0 -75
  2097. package/src/plots/violin/utils.ts +0 -102
  2098. package/src/plots/waterfall/adaptor.ts +0 -264
  2099. package/src/plots/waterfall/constant.ts +0 -41
  2100. package/src/plots/waterfall/index.ts +0 -48
  2101. package/src/plots/waterfall/shape.ts +0 -76
  2102. package/src/plots/waterfall/types.ts +0 -72
  2103. package/src/plots/waterfall/utils.ts +0 -66
  2104. package/src/plots/word-cloud/adaptor.ts +0 -81
  2105. package/src/plots/word-cloud/constant.ts +0 -32
  2106. package/src/plots/word-cloud/index.ts +0 -98
  2107. package/src/plots/word-cloud/shapes/word-cloud.ts +0 -37
  2108. package/src/plots/word-cloud/types.ts +0 -150
  2109. package/src/plots/word-cloud/utils.ts +0 -267
  2110. package/src/plugin/index.ts +0 -63
  2111. package/src/types/animation.ts +0 -3
  2112. package/src/types/annotation.ts +0 -15
  2113. package/src/types/attr.ts +0 -22
  2114. package/src/types/axis.ts +0 -4
  2115. package/src/types/button.ts +0 -34
  2116. package/src/types/coordinate.ts +0 -17
  2117. package/src/types/drill-down.ts +0 -40
  2118. package/src/types/interaction.ts +0 -52
  2119. package/src/types/label.ts +0 -20
  2120. package/src/types/legend.ts +0 -3
  2121. package/src/types/locale.ts +0 -30
  2122. package/src/types/meta.ts +0 -15
  2123. package/src/types/pattern.ts +0 -90
  2124. package/src/types/relation-data.ts +0 -18
  2125. package/src/types/scrollbar.ts +0 -3
  2126. package/src/types/slider.ts +0 -3
  2127. package/src/types/state.ts +0 -21
  2128. package/src/types/statistic.ts +0 -66
  2129. package/src/types/tooltip.ts +0 -18
  2130. package/src/utils/color/blend.ts +0 -103
  2131. package/src/utils/context.ts +0 -12
  2132. package/src/utils/conversion.ts +0 -26
  2133. package/src/utils/data.ts +0 -115
  2134. package/src/utils/deep-assign.ts +0 -84
  2135. package/src/utils/dom.ts +0 -24
  2136. package/src/utils/flow.ts +0 -13
  2137. package/src/utils/geometry.ts +0 -58
  2138. package/src/utils/hierarchy/pack.ts +0 -49
  2139. package/src/utils/hierarchy/partition.ts +0 -88
  2140. package/src/utils/hierarchy/treemap.ts +0 -93
  2141. package/src/utils/hierarchy/types.ts +0 -27
  2142. package/src/utils/hierarchy/util.ts +0 -71
  2143. package/src/utils/invariant.ts +0 -49
  2144. package/src/utils/kebab-case.ts +0 -12
  2145. package/src/utils/label.ts +0 -15
  2146. package/src/utils/matrix.ts +0 -13
  2147. package/src/utils/measure-text.ts +0 -19
  2148. package/src/utils/number.ts +0 -22
  2149. package/src/utils/padding.ts +0 -70
  2150. package/src/utils/path.ts +0 -161
  2151. package/src/utils/pattern/dot.ts +0 -86
  2152. package/src/utils/pattern/index.ts +0 -45
  2153. package/src/utils/pattern/line.ts +0 -70
  2154. package/src/utils/pattern/square.ts +0 -78
  2155. package/src/utils/pattern/util.ts +0 -104
  2156. package/src/utils/pick.ts +0 -18
  2157. package/src/utils/statistic.ts +0 -197
  2158. package/src/utils/template.ts +0 -18
  2159. package/src/utils/tooltip.ts +0 -27
  2160. package/src/utils/transform/chord.ts +0 -231
  2161. package/src/utils/transform/histogram.ts +0 -90
  2162. package/src/utils/transform/percent.ts +0 -96
  2163. package/src/utils/transform/quantile.ts +0 -216
  2164. package/src/utils/transform/sankey.ts +0 -0
  2165. package/src/utils/transform/word-cloud.ts +0 -537
  2166. package/src/utils/view.ts +0 -64
@@ -1,182 +0,0 @@
1
- /*
2
- * for Arc Diagram (edges without weight) / Chord Diagram (edges with source and target weight)
3
- * graph data required (nodes, edges)
4
- */
5
- import { assign, forIn, isFunction } from '@antv/util';
6
- var DEFAULT_OPTIONS = {
7
- y: 0,
8
- nodeWidthRatio: 0.05,
9
- weight: false,
10
- nodePaddingRatio: 0.1,
11
- id: function (node) { return node.id; },
12
- source: function (edge) { return edge.source; },
13
- target: function (edge) { return edge.target; },
14
- sourceWeight: function (edge) { return edge.value || 1; },
15
- targetWeight: function (edge) { return edge.value || 1; },
16
- sortBy: null, // optional, id | weight | frequency | {function}
17
- };
18
- /**
19
- * 处理节点的value、edges
20
- * @param nodeById
21
- * @param edges
22
- * @param options
23
- */
24
- function processGraph(nodeById, edges, options) {
25
- forIn(nodeById, function (node, id) {
26
- // in edges, out edges
27
- node.inEdges = edges.filter(function (edge) { return "".concat(options.target(edge)) === "".concat(id); });
28
- node.outEdges = edges.filter(function (edge) { return "".concat(options.source(edge)) === "".concat(id); });
29
- // frequency
30
- node.edges = node.outEdges.concat(node.inEdges);
31
- node.frequency = node.edges.length;
32
- // weight
33
- node.value = 0;
34
- node.inEdges.forEach(function (edge) {
35
- node.value += options.targetWeight(edge);
36
- });
37
- node.outEdges.forEach(function (edge) {
38
- node.value += options.sourceWeight(edge);
39
- });
40
- });
41
- }
42
- /**
43
- * 节点排序
44
- * @param nodes
45
- * @param options
46
- */
47
- function sortNodes(nodes, options) {
48
- var sortMethods = {
49
- weight: function (a, b) { return b.value - a.value; },
50
- frequency: function (a, b) { return b.frequency - a.frequency; },
51
- id: function (a, b) { return "".concat(options.id(a)).localeCompare("".concat(options.id(b))); },
52
- };
53
- var method = sortMethods[options.sortBy];
54
- if (!method && isFunction(options.sortBy)) {
55
- method = options.sortBy;
56
- }
57
- if (method) {
58
- nodes.sort(method);
59
- }
60
- }
61
- function layoutNodes(nodes, options) {
62
- var len = nodes.length;
63
- if (!len) {
64
- throw new TypeError("Invalid nodes: it's empty!");
65
- }
66
- if (options.weight) {
67
- var nodePaddingRatio_1 = options.nodePaddingRatio;
68
- if (nodePaddingRatio_1 < 0 || nodePaddingRatio_1 >= 1) {
69
- throw new TypeError('Invalid nodePaddingRatio: it must be in range [0, 1)!');
70
- }
71
- var margin_1 = nodePaddingRatio_1 / (2 * len);
72
- var nodeWidthRatio_1 = options.nodeWidthRatio;
73
- if (nodeWidthRatio_1 <= 0 || nodeWidthRatio_1 >= 1) {
74
- throw new TypeError('Invalid nodeWidthRatio: it must be in range (0, 1)!');
75
- }
76
- var totalValue_1 = 0;
77
- nodes.forEach(function (node) {
78
- totalValue_1 += node.value;
79
- });
80
- nodes.forEach(function (node) {
81
- node.weight = node.value / totalValue_1;
82
- node.width = node.weight * (1 - nodePaddingRatio_1);
83
- node.height = nodeWidthRatio_1;
84
- });
85
- nodes.forEach(function (node, index) {
86
- // x
87
- var deltaX = 0;
88
- for (var i = index - 1; i >= 0; i--) {
89
- deltaX += nodes[i].width + 2 * margin_1;
90
- }
91
- var minX = (node.minX = margin_1 + deltaX);
92
- var maxX = (node.maxX = node.minX + node.width);
93
- var minY = (node.minY = options.y - nodeWidthRatio_1 / 2);
94
- var maxY = (node.maxY = minY + nodeWidthRatio_1);
95
- node.x = [minX, maxX, maxX, minX];
96
- node.y = [minY, minY, maxY, maxY];
97
- /* points
98
- * 3---2
99
- * | |
100
- * 0---1
101
- */
102
- // node.x = minX + 0.5 * node.width;
103
- // node.y = options.y;
104
- });
105
- }
106
- else {
107
- var deltaX_1 = 1 / len;
108
- nodes.forEach(function (node, index) {
109
- node.x = (index + 0.5) * deltaX_1;
110
- node.y = options.y;
111
- });
112
- }
113
- return nodes;
114
- }
115
- function locatingEdges(nodeById, edges, options) {
116
- if (options.weight) {
117
- var valueById_1 = {};
118
- forIn(nodeById, function (node, id) {
119
- valueById_1[id] = node.value;
120
- });
121
- edges.forEach(function (edge) {
122
- var sId = options.source(edge);
123
- var tId = options.target(edge);
124
- var sNode = nodeById[sId];
125
- var tNode = nodeById[tId];
126
- if (sNode && tNode) {
127
- var sValue = valueById_1[sId];
128
- var currentSValue = options.sourceWeight(edge);
129
- var sStart = sNode.minX + ((sNode.value - sValue) / sNode.value) * sNode.width;
130
- var sEnd = sStart + (currentSValue / sNode.value) * sNode.width;
131
- valueById_1[sId] -= currentSValue;
132
- var tValue = valueById_1[tId];
133
- var currentTValue = options.targetWeight(edge);
134
- var tStart = tNode.minX + ((tNode.value - tValue) / tNode.value) * tNode.width;
135
- var tEnd = tStart + (currentTValue / tNode.value) * tNode.width;
136
- valueById_1[tId] -= currentTValue;
137
- var y = options.y;
138
- edge.x = [sStart, sEnd, tStart, tEnd];
139
- edge.y = [y, y, y, y];
140
- // 将edge的source与target的id换为 sourceNode与targetNode
141
- edge.source = sNode;
142
- edge.target = tNode;
143
- }
144
- });
145
- }
146
- else {
147
- edges.forEach(function (edge) {
148
- var sNode = nodeById[options.source(edge)];
149
- var tNode = nodeById[options.target(edge)];
150
- if (sNode && tNode) {
151
- edge.x = [sNode.x, tNode.x];
152
- edge.y = [sNode.y, tNode.y];
153
- // 将edge的source与target的id换为 sourceNode与targetNode
154
- edge.source = sNode;
155
- edge.target = tNode;
156
- }
157
- });
158
- }
159
- return edges;
160
- }
161
- export function getDefaultOptions(options) {
162
- return assign({}, DEFAULT_OPTIONS, options);
163
- }
164
- export function chordLayout(chordLayoutOptions, chordLayoutInputData) {
165
- var options = getDefaultOptions(chordLayoutOptions);
166
- var nodeById = {};
167
- var nodes = chordLayoutInputData.nodes;
168
- var links = chordLayoutInputData.links;
169
- nodes.forEach(function (node) {
170
- var id = options.id(node);
171
- nodeById[id] = node;
172
- });
173
- processGraph(nodeById, links, options);
174
- sortNodes(nodes, options);
175
- var outputNodes = layoutNodes(nodes, options);
176
- var outputLinks = locatingEdges(nodeById, links, options);
177
- return {
178
- nodes: outputNodes,
179
- links: outputLinks,
180
- };
181
- }
182
- //# sourceMappingURL=chord.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chord.js","sourceRoot":"","sources":["../../../src/utils/transform/chord.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * for Arc Diagram (edges without weight) / Chord Diagram (edges with source and target weight)\n * graph data required (nodes, edges)\n */\nimport { assign, forIn, isFunction } from '@antv/util';\nimport { NodeLinkData } from '../../types/relation-data';\n\nconst DEFAULT_OPTIONS: ChordLayoutOptions = {\n y: 0,\n nodeWidthRatio: 0.05, // width of the node, (0, 1)\n weight: false,\n nodePaddingRatio: 0.1, // margin ratio, [0, 1)\n id: (node) => node.id,\n source: (edge) => edge.source,\n target: (edge) => edge.target,\n sourceWeight: (edge) => edge.value || 1,\n targetWeight: (edge) => edge.value || 1,\n sortBy: null, // optional, id | weight | frequency | {function}\n};\n\nexport type ChordLayoutOptions = {\n weight?: boolean;\n y?: number;\n nodeWidthRatio?: number; // 节点的宽度比例,对应于极坐标系的厚度,(0, 1)\n nodePaddingRatio?: number; // 节点之间的间距的比例,[0, 1)\n id?(node: any): any;\n source?(edge: any): any;\n target?(edge: any): any;\n sourceWeight?(edge: any): number;\n targetWeight?(edge: any): number;\n sortBy?: 'id' | 'weight' | 'frequency' | null | ((a: any, b: any) => number);\n};\n\ntype OutputNode = {\n readonly id: number;\n readonly name: string;\n // readonly depth: number;\n readonly value: number;\n\n // 用于绘制 polygon\n x: number[];\n y: number[];\n};\n\ntype OutputLink = {\n readonly source: OutputNode;\n readonly target: OutputNode;\n readonly value: number;\n\n // 用于绘制 edge\n x?: number[];\n y?: number[];\n};\n\ntype ChordLayoutOutputData = {\n readonly nodes: OutputNode[];\n readonly links: OutputLink[];\n};\n\n/**\n * 处理节点的value、edges\n * @param nodeById\n * @param edges\n * @param options\n */\nfunction processGraph(nodeById, edges, options) {\n forIn(nodeById, (node, id) => {\n // in edges, out edges\n node.inEdges = edges.filter((edge) => `${options.target(edge)}` === `${id}`);\n node.outEdges = edges.filter((edge) => `${options.source(edge)}` === `${id}`);\n // frequency\n node.edges = node.outEdges.concat(node.inEdges);\n node.frequency = node.edges.length;\n // weight\n node.value = 0;\n node.inEdges.forEach((edge) => {\n node.value += options.targetWeight(edge);\n });\n node.outEdges.forEach((edge) => {\n node.value += options.sourceWeight(edge);\n });\n });\n}\n\n/**\n * 节点排序\n * @param nodes\n * @param options\n */\nfunction sortNodes(nodes, options) {\n const sortMethods = {\n weight: (a, b) => b.value - a.value,\n frequency: (a, b) => b.frequency - a.frequency,\n id: (a, b) => `${options.id(a)}`.localeCompare(`${options.id(b)}`),\n };\n let method = sortMethods[options.sortBy];\n if (!method && isFunction(options.sortBy)) {\n method = options.sortBy;\n }\n if (method) {\n nodes.sort(method);\n }\n}\n\nfunction layoutNodes(nodes, options): OutputNode[] {\n const len = nodes.length;\n if (!len) {\n throw new TypeError(\"Invalid nodes: it's empty!\");\n }\n if (options.weight) {\n const nodePaddingRatio = options.nodePaddingRatio;\n if (nodePaddingRatio < 0 || nodePaddingRatio >= 1) {\n throw new TypeError('Invalid nodePaddingRatio: it must be in range [0, 1)!');\n }\n const margin = nodePaddingRatio / (2 * len);\n const nodeWidthRatio = options.nodeWidthRatio;\n if (nodeWidthRatio <= 0 || nodeWidthRatio >= 1) {\n throw new TypeError('Invalid nodeWidthRatio: it must be in range (0, 1)!');\n }\n let totalValue = 0;\n nodes.forEach((node) => {\n totalValue += node.value;\n });\n nodes.forEach((node) => {\n node.weight = node.value / totalValue;\n node.width = node.weight * (1 - nodePaddingRatio);\n node.height = nodeWidthRatio;\n });\n nodes.forEach((node, index) => {\n // x\n let deltaX = 0;\n for (let i = index - 1; i >= 0; i--) {\n deltaX += nodes[i].width + 2 * margin;\n }\n const minX = (node.minX = margin + deltaX);\n const maxX = (node.maxX = node.minX + node.width);\n const minY = (node.minY = options.y - nodeWidthRatio / 2);\n const maxY = (node.maxY = minY + nodeWidthRatio);\n node.x = [minX, maxX, maxX, minX];\n node.y = [minY, minY, maxY, maxY];\n /* points\n * 3---2\n * | |\n * 0---1\n */\n // node.x = minX + 0.5 * node.width;\n // node.y = options.y;\n });\n } else {\n const deltaX = 1 / len;\n nodes.forEach((node, index) => {\n node.x = (index + 0.5) * deltaX;\n node.y = options.y;\n });\n }\n return nodes;\n}\n\nfunction locatingEdges(nodeById, edges, options): OutputLink[] {\n if (options.weight) {\n const valueById = {};\n forIn(nodeById, (node, id) => {\n valueById[id] = node.value;\n });\n edges.forEach((edge) => {\n const sId = options.source(edge);\n const tId = options.target(edge);\n const sNode = nodeById[sId];\n const tNode = nodeById[tId];\n if (sNode && tNode) {\n const sValue = valueById[sId];\n const currentSValue = options.sourceWeight(edge);\n const sStart = sNode.minX + ((sNode.value - sValue) / sNode.value) * sNode.width;\n const sEnd = sStart + (currentSValue / sNode.value) * sNode.width;\n valueById[sId] -= currentSValue;\n\n const tValue = valueById[tId];\n const currentTValue = options.targetWeight(edge);\n const tStart = tNode.minX + ((tNode.value - tValue) / tNode.value) * tNode.width;\n const tEnd = tStart + (currentTValue / tNode.value) * tNode.width;\n valueById[tId] -= currentTValue;\n\n const y = options.y;\n edge.x = [sStart, sEnd, tStart, tEnd];\n edge.y = [y, y, y, y];\n // 将edge的source与target的id换为 sourceNode与targetNode\n edge.source = sNode;\n edge.target = tNode;\n }\n });\n } else {\n edges.forEach((edge) => {\n const sNode = nodeById[options.source(edge)];\n const tNode = nodeById[options.target(edge)];\n if (sNode && tNode) {\n edge.x = [sNode.x, tNode.x];\n edge.y = [sNode.y, tNode.y];\n // 将edge的source与target的id换为 sourceNode与targetNode\n edge.source = sNode;\n edge.target = tNode;\n }\n });\n }\n return edges;\n}\n\nexport function getDefaultOptions(options: ChordLayoutOptions): ChordLayoutOptions {\n return assign({}, DEFAULT_OPTIONS, options);\n}\n\nexport function chordLayout(\n chordLayoutOptions: ChordLayoutOptions,\n chordLayoutInputData: NodeLinkData\n): ChordLayoutOutputData {\n const options = getDefaultOptions(chordLayoutOptions);\n const nodeById = {};\n const nodes = chordLayoutInputData.nodes;\n const links = chordLayoutInputData.links;\n nodes.forEach((node) => {\n const id = options.id(node);\n nodeById[id] = node;\n });\n processGraph(nodeById, links, options);\n sortNodes(nodes, options);\n const outputNodes = layoutNodes(nodes, options);\n const outputLinks = locatingEdges(nodeById, links, options);\n return {\n nodes: outputNodes,\n links: outputLinks,\n };\n}\n"]}
@@ -1,15 +0,0 @@
1
- import { Data } from '../../types';
2
- type StatisticData = {
3
- range: Array<number>;
4
- count: number;
5
- };
6
- /**
7
- * 对数据进行百分比化
8
- * @param data
9
- * @param binField
10
- * @param binWidth
11
- * @param binNumber
12
- * @param stackField
13
- */
14
- export declare function binHistogram(data: Data, binField: string, binWidth: number, binNumber?: number, stackField?: string): StatisticData[];
15
- export {};
@@ -1,78 +0,0 @@
1
- import { clone, each, getRange, groupBy, hasKey, isEmpty, sortBy, valuesOfKey } from '@antv/util';
2
- // 进行转换得到值所在的 range
3
- function getBinKey(value, binWidth, binNumber) {
4
- // 做一点特殊处理
5
- if (binNumber === 1) {
6
- return [0, binWidth];
7
- }
8
- var index = Math.floor(value / binWidth);
9
- return [binWidth * index, binWidth * (index + 1)];
10
- }
11
- // 默认 sturges 转换
12
- function sturges(values) {
13
- return Math.ceil(Math.log(values.length) / Math.LN2) + 1;
14
- }
15
- /**
16
- * 对数据进行百分比化
17
- * @param data
18
- * @param binField
19
- * @param binWidth
20
- * @param binNumber
21
- * @param stackField
22
- */
23
- export function binHistogram(data, binField, binWidth, binNumber, stackField) {
24
- var originData_copy = clone(data);
25
- // 根据 binField 对源数据进行排序
26
- sortBy(originData_copy, binField);
27
- // 获取源数据 binField 的 range
28
- var values = valuesOfKey(originData_copy, binField);
29
- var range = getRange(values);
30
- var rangeWidth = range.max - range.min;
31
- // 计算分箱,直方图分箱的计算基于 binWidth,如配置了 binNumber 则将其转为 binWidth 进行计算
32
- var _binWidth = binWidth;
33
- if (!binWidth && binNumber) {
34
- _binWidth = binNumber > 1 ? rangeWidth / (binNumber - 1) : range.max;
35
- }
36
- // 当 binWidth 和 binNumber 都没有指定的情况,采用 Sturges formula 自动生成 binWidth
37
- if (!binWidth && !binNumber) {
38
- var _defaultBinNumber = sturges(values);
39
- _binWidth = rangeWidth / _defaultBinNumber;
40
- }
41
- // 构建 key - StatisticData 结构
42
- var bins = {};
43
- var groups = groupBy(originData_copy, stackField);
44
- // 判断分组是否为空,如果为空,说明没有 stackField 字段
45
- if (isEmpty(groups)) {
46
- each(originData_copy, function (data) {
47
- var value = data[binField];
48
- var bin = getBinKey(value, _binWidth, binNumber);
49
- var binKey = "".concat(bin[0], "-").concat(bin[1]);
50
- if (!hasKey(bins, binKey)) {
51
- bins[binKey] = { range: bin, count: 0 };
52
- }
53
- bins[binKey].count += 1;
54
- });
55
- }
56
- else {
57
- Object.keys(groups).forEach(function (groupKey) {
58
- each(groups[groupKey], function (data) {
59
- var value = data[binField];
60
- var bin = getBinKey(value, _binWidth, binNumber);
61
- var binKey = "".concat(bin[0], "-").concat(bin[1]);
62
- var groupKeyBinKey = "".concat(binKey, "-").concat(groupKey);
63
- if (!hasKey(bins, groupKeyBinKey)) {
64
- bins[groupKeyBinKey] = { range: bin, count: 0 };
65
- bins[groupKeyBinKey][stackField] = groupKey;
66
- }
67
- bins[groupKeyBinKey].count += 1;
68
- });
69
- });
70
- }
71
- // 将分箱数据转换为 plotData 才是图表所需要的
72
- var plotData = [];
73
- each(bins, function (bin) {
74
- plotData.push(bin);
75
- });
76
- return plotData;
77
- }
78
- //# sourceMappingURL=histogram.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"histogram.js","sourceRoot":"","sources":["../../../src/utils/transform/histogram.ts"],"names":[],"mappings":"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","sourcesContent":["import { clone, each, getRange, groupBy, hasKey, isEmpty, sortBy, valuesOfKey } from '@antv/util';\nimport { Data } from '../../types';\n\ntype StatisticData = {\n range: Array<number>;\n count: number;\n};\ntype StatisticBin = {\n [key: string]: StatisticData;\n};\n\n// 进行转换得到值所在的 range\nfunction getBinKey(value: number, binWidth: number, binNumber?: number): [number, number] {\n // 做一点特殊处理\n if (binNumber === 1) {\n return [0, binWidth];\n }\n const index = Math.floor(value / binWidth);\n return [binWidth * index, binWidth * (index + 1)];\n}\n\n// 默认 sturges 转换\nfunction sturges(values: Array<number>): number {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n/**\n * 对数据进行百分比化\n * @param data\n * @param binField\n * @param binWidth\n * @param binNumber\n * @param stackField\n */\nexport function binHistogram(data: Data, binField: string, binWidth: number, binNumber?: number, stackField?: string) {\n const originData_copy = clone(data);\n\n // 根据 binField 对源数据进行排序\n sortBy(originData_copy, binField);\n\n // 获取源数据 binField 的 range\n const values = valuesOfKey(originData_copy, binField);\n const range = getRange(values);\n const rangeWidth = range.max - range.min;\n\n // 计算分箱,直方图分箱的计算基于 binWidth,如配置了 binNumber 则将其转为 binWidth 进行计算\n let _binWidth = binWidth;\n if (!binWidth && binNumber) {\n _binWidth = binNumber > 1 ? rangeWidth / (binNumber - 1) : range.max;\n }\n // 当 binWidth 和 binNumber 都没有指定的情况,采用 Sturges formula 自动生成 binWidth\n if (!binWidth && !binNumber) {\n const _defaultBinNumber = sturges(values);\n _binWidth = rangeWidth / _defaultBinNumber;\n }\n // 构建 key - StatisticData 结构\n const bins: StatisticBin = {};\n const groups = groupBy(originData_copy, stackField);\n // 判断分组是否为空,如果为空,说明没有 stackField 字段\n if (isEmpty(groups)) {\n each(originData_copy, (data: any) => {\n const value = data[binField];\n const bin = getBinKey(value, _binWidth, binNumber);\n const binKey = `${bin[0]}-${bin[1]}`;\n if (!hasKey(bins, binKey)) {\n bins[binKey] = { range: bin, count: 0 };\n }\n bins[binKey].count += 1;\n });\n } else {\n Object.keys(groups).forEach((groupKey: string) => {\n each(groups[groupKey], (data: any) => {\n const value = data[binField];\n const bin = getBinKey(value, _binWidth, binNumber);\n const binKey = `${bin[0]}-${bin[1]}`;\n const groupKeyBinKey = `${binKey}-${groupKey}`;\n if (!hasKey(bins, groupKeyBinKey)) {\n bins[groupKeyBinKey] = { range: bin, count: 0 };\n bins[groupKeyBinKey][stackField] = groupKey;\n }\n bins[groupKeyBinKey].count += 1;\n });\n });\n }\n // 将分箱数据转换为 plotData 才是图表所需要的\n const plotData: Array<StatisticData> = [];\n each(bins, (bin: StatisticData) => {\n plotData.push(bin);\n });\n return plotData;\n}\n"]}
@@ -1,26 +0,0 @@
1
- import { Data } from '../../types';
2
- /**
3
- * 对数据进行百分比化
4
- * @param data
5
- * @param measure
6
- * @param groupField
7
- * @param as
8
- */
9
- export declare function percent(data: Data, measure: string, groupField: string, as: string): {
10
- [x: string]: any;
11
- }[];
12
- /**
13
- * 对数据进行深层百分比化
14
- * @param data
15
- * @param measure // 数值
16
- * @param fields // 需要分组的 field值
17
- * @param as // 存储percent 百分比的值
18
- */
19
- export declare function getDeepPercent(data: Record<string, any>[], measure: string, fields: string[], percent: string): {
20
- [x: string]: any;
21
- }[];
22
- /**
23
- * 获取数据,如果是百分比,进行数据转换 (适用于面积图、柱状图、条形图)
24
- * @param isPercent 是否百分比
25
- */
26
- export declare function getDataWhetherPercentage(data: Record<string, any>[], yField: string, groupField: string, asField: string, isPercent?: boolean): Record<string, any>[];
@@ -1,64 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { map, reduce } from '@antv/util';
3
- import { isRealNumber } from '../number';
4
- /**
5
- * 对数据进行百分比化
6
- * @param data
7
- * @param measure
8
- * @param groupField
9
- * @param as
10
- */
11
- export function percent(data, measure, groupField, as) {
12
- // 1. 先计算每一个分组的 max 值
13
- var sumMap = reduce(data, function (map, datum) {
14
- var groupValue = datum[groupField];
15
- var sum = map.has(groupValue) ? map.get(groupValue) : 0;
16
- var v = datum[measure];
17
- sum = isRealNumber(v) ? sum + v : sum;
18
- map.set(groupValue, sum);
19
- return map;
20
- }, new Map());
21
- // 2. 循环数组,计算占比
22
- return map(data, function (datum) {
23
- var _a;
24
- var v = datum[measure];
25
- var groupValue = datum[groupField];
26
- var percentage = isRealNumber(v) && sumMap.get(groupValue) !== 0 ? v / sumMap.get(groupValue) : 0;
27
- return __assign(__assign({}, datum), (_a = {}, _a[as] = percentage, _a));
28
- });
29
- }
30
- /**
31
- * 对数据进行深层百分比化
32
- * @param data
33
- * @param measure // 数值
34
- * @param fields // 需要分组的 field值
35
- * @param as // 存储percent 百分比的值
36
- */
37
- export function getDeepPercent(data, measure, fields, percent) {
38
- var sumMap = reduce(data, function (map, datum) {
39
- // 获取分组得到的枚举key值
40
- var groupValue = reduce(fields, function (value, field) { return "".concat(value).concat(datum[field]); }, '');
41
- var sum = map.has(groupValue) ? map.get(groupValue) : 0;
42
- var v = datum[measure];
43
- sum = isRealNumber(v) ? sum + v : sum;
44
- map.set(groupValue, sum);
45
- return map;
46
- }, new Map());
47
- // 2. 循环数组,计算占比
48
- return map(data, function (datum) {
49
- var _a;
50
- var v = datum[measure];
51
- // 获取分组得到的枚举key值
52
- var groupValue = reduce(fields, function (value, field) { return "".concat(value).concat(datum[field]); }, '');
53
- var percentage = isRealNumber(v) && sumMap.get(groupValue) !== 0 ? v / sumMap.get(groupValue) : 0;
54
- return __assign(__assign({}, datum), (_a = {}, _a[percent] = percentage, _a));
55
- });
56
- }
57
- /**
58
- * 获取数据,如果是百分比,进行数据转换 (适用于面积图、柱状图、条形图)
59
- * @param isPercent 是否百分比
60
- */
61
- export function getDataWhetherPercentage(data, yField, groupField, asField, isPercent) {
62
- return !isPercent ? data : percent(data, yField, groupField, asField);
63
- }
64
- //# sourceMappingURL=percent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"percent.js","sourceRoot":"","sources":["../../../src/utils/transform/percent.ts"],"names":[],"mappings":"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","sourcesContent":["import { map, reduce } from '@antv/util';\nimport { Data, Datum } from '../../types';\nimport { isRealNumber } from '../number';\n\n/**\n * 对数据进行百分比化\n * @param data\n * @param measure\n * @param groupField\n * @param as\n */\nexport function percent(data: Data, measure: string, groupField: string, as: string) {\n // 1. 先计算每一个分组的 max 值\n const sumMap = reduce(\n data,\n (map, datum: Datum) => {\n const groupValue = datum[groupField];\n let sum = map.has(groupValue) ? map.get(groupValue) : 0;\n\n const v = datum[measure];\n\n sum = isRealNumber(v) ? sum + v : sum;\n map.set(groupValue, sum);\n\n return map;\n },\n new Map<string, number>()\n );\n\n // 2. 循环数组,计算占比\n return map(data, (datum: Datum) => {\n const v = datum[measure];\n const groupValue = datum[groupField];\n const percentage = isRealNumber(v) && sumMap.get(groupValue) !== 0 ? v / sumMap.get(groupValue) : 0;\n\n return {\n ...datum,\n [as]: percentage,\n };\n });\n}\n\n/**\n * 对数据进行深层百分比化\n * @param data\n * @param measure // 数值\n * @param fields // 需要分组的 field值\n * @param as // 存储percent 百分比的值\n */\nexport function getDeepPercent(data: Record<string, any>[], measure: string, fields: string[], percent: string) {\n const sumMap = reduce(\n data,\n (map, datum: Datum) => {\n // 获取分组得到的枚举key值\n const groupValue = reduce(fields, (value, field) => `${value}${datum[field]}`, '');\n\n let sum = map.has(groupValue) ? map.get(groupValue) : 0;\n\n const v = datum[measure];\n\n sum = isRealNumber(v) ? sum + v : sum;\n map.set(groupValue, sum);\n\n return map;\n },\n new Map<string, number>()\n );\n\n // 2. 循环数组,计算占比\n return map(data, (datum: Datum) => {\n const v = datum[measure];\n // 获取分组得到的枚举key值\n const groupValue = reduce(fields, (value, field) => `${value}${datum[field]}`, '');\n\n const percentage = isRealNumber(v) && sumMap.get(groupValue) !== 0 ? v / sumMap.get(groupValue) : 0;\n\n return {\n ...datum,\n [percent]: percentage,\n };\n });\n}\n\n/**\n * 获取数据,如果是百分比,进行数据转换 (适用于面积图、柱状图、条形图)\n * @param isPercent 是否百分比\n */\nexport function getDataWhetherPercentage(\n data: Record<string, any>[],\n yField: string,\n groupField: string,\n asField: string,\n isPercent?: boolean\n) {\n return !isPercent ? data : percent(data, yField, groupField, asField);\n}\n"]}
@@ -1,62 +0,0 @@
1
- /**
2
- * This is the internal implementation of quantiles: when you know
3
- * that the order is sorted, you don't need to re-sort it, and the computations
4
- * are faster.
5
- *
6
- * @param {Array<number>} x sample of one or more data points
7
- * @param {number} p desired quantile: a number between 0 to 1, inclusive
8
- * @returns {number} quantile value
9
- * @throws {Error} if p ix outside of the range from 0 to 1
10
- * @throws {Error} if x is empty
11
- * @example
12
- * quantileSorted([3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20], 0.5); // => 9
13
- */
14
- export declare function quantileSorted(x: number[], p: number): number;
15
- /**
16
- * 交换数组位置
17
- * @param arr T[]
18
- * @param i number
19
- * @param j number
20
- */
21
- export declare function swap<T = any>(arr: T[], i: number, j: number): void;
22
- /**
23
- * Rearrange items in `arr` so that all items in `[left, k]` range are the smallest.
24
- * The `k`-th element will have the `(k - left + 1)`-th smallest value in `[left, right]`.
25
- *
26
- * Implements Floyd-Rivest selection algorithm https://en.wikipedia.org/wiki/Floyd-Rivest_algorithm
27
- *
28
- * @param {Array<number>} arr input array
29
- * @param {number} k pivot index
30
- * @param {number} [left] left index
31
- * @param {number} [right] right index
32
- * @returns {void} mutates input array
33
- * @example
34
- * var arr = [65, 28, 59, 33, 21, 56, 22, 95, 50, 12, 90, 53, 28, 77, 39];
35
- * quickselect(arr, 8);
36
- * // = [39, 28, 28, 33, 21, 12, 22, 50, 53, 56, 59, 65, 90, 77, 95]
37
- */
38
- export declare function quickselect(arr: number[], k: any, left?: number, right?: number): void;
39
- /**
40
- * The [quantile](https://en.wikipedia.org/wiki/Quantile):
41
- * this is a population quantile, since we assume to know the entire
42
- * dataset in this library. This is an implementation of the
43
- * [Quantiles of a Population](http://en.wikipedia.org/wiki/Quantile#Quantiles_of_a_population)
44
- * algorithm from wikipedia.
45
- *
46
- * Sample is a one-dimensional array of numbers,
47
- * and p is either a decimal number from 0 to 1 or an array of decimal
48
- * numbers from 0 to 1.
49
- * In terms of a k/q quantile, p = k/q - it's just dealing with fractions or dealing
50
- * with decimal values.
51
- * When p is an array, the result of the function is also an array containing the appropriate
52
- * quantiles in input order
53
- *
54
- * @param {Array<number>} x sample of one or more numbers
55
- * @param {Array<number> | number} p the desired quantile, as a number between 0 and 1
56
- * @returns {number} quantile
57
- * @example
58
- * quantile([3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20], 0.5); // => 9
59
- */
60
- declare function quantile(x: number[], p: number): number;
61
- declare function quantile(x: number[], p: number[]): number[];
62
- export { quantile };