@antv/g2 5.0.0-alpha.2 → 5.0.0-alpha.3

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 (1673) hide show
  1. package/dist/g2-lite.min.js +2 -5
  2. package/dist/g2.min.js +2 -5
  3. package/esm/animation/index.d.ts +4 -0
  4. package/esm/animation/index.js +3 -0
  5. package/esm/animation/index.js.map +1 -1
  6. package/esm/animation/morphing.js +3 -24
  7. package/esm/animation/morphing.js.map +1 -1
  8. package/esm/animation/utils.d.ts +3 -0
  9. package/esm/animation/utils.js +20 -0
  10. package/esm/animation/utils.js.map +1 -1
  11. package/esm/animation/waveIn.d.ts +7 -0
  12. package/esm/animation/waveIn.js +62 -0
  13. package/esm/animation/waveIn.js.map +1 -0
  14. package/esm/animation/zoomIn.d.ts +4 -0
  15. package/esm/animation/zoomIn.js +39 -0
  16. package/esm/animation/zoomIn.js.map +1 -0
  17. package/esm/animation/zoomOut.d.ts +4 -0
  18. package/esm/animation/zoomOut.js +34 -0
  19. package/esm/animation/zoomOut.js.map +1 -0
  20. package/esm/api/chart.d.ts +9 -0
  21. package/esm/api/chart.js +54 -7
  22. package/esm/api/chart.js.map +1 -1
  23. package/esm/api/composition/facetCircle.d.ts +21 -0
  24. package/esm/api/composition/facetCircle.js +30 -0
  25. package/esm/api/composition/facetCircle.js.map +1 -0
  26. package/esm/api/composition/facetRect.d.ts +23 -0
  27. package/esm/api/composition/facetRect.js +32 -0
  28. package/esm/api/composition/facetRect.js.map +1 -0
  29. package/esm/api/composition/index.d.ts +19 -19
  30. package/esm/api/composition/index.js +13 -13
  31. package/esm/api/composition/index.js.map +1 -1
  32. package/esm/api/composition/repeatMatrix.d.ts +21 -0
  33. package/esm/api/composition/repeatMatrix.js +30 -0
  34. package/esm/api/composition/repeatMatrix.js.map +1 -0
  35. package/esm/api/composition/spaceFlex.d.ts +17 -0
  36. package/esm/api/composition/spaceFlex.js +26 -0
  37. package/esm/api/composition/spaceFlex.js.map +1 -0
  38. package/esm/api/composition/spaceLayer.d.ts +14 -0
  39. package/esm/api/composition/spaceLayer.js +23 -0
  40. package/esm/api/composition/spaceLayer.js.map +1 -0
  41. package/esm/api/composition/timingKeyframe.d.ts +17 -0
  42. package/esm/api/composition/timingKeyframe.js +26 -0
  43. package/esm/api/composition/timingKeyframe.js.map +1 -0
  44. package/esm/api/mark/index.d.ts +17 -17
  45. package/esm/api/mark/index.js +9 -9
  46. package/esm/api/mark/index.js.map +1 -1
  47. package/esm/api/mark/mark.d.ts +23 -23
  48. package/esm/api/mark/mark.js +46 -44
  49. package/esm/api/mark/mark.js.map +1 -1
  50. package/esm/api/mark/types.d.ts +2 -0
  51. package/esm/api/node.d.ts +7 -0
  52. package/esm/api/node.js +56 -1
  53. package/esm/api/node.js.map +1 -1
  54. package/esm/api/props.d.ts +1 -1
  55. package/esm/api/props.js +33 -12
  56. package/esm/api/props.js.map +1 -1
  57. package/esm/api/types.d.ts +1 -1
  58. package/esm/component/axis.d.ts +8 -2
  59. package/esm/component/axis.js +167 -99
  60. package/esm/component/axis.js.map +1 -1
  61. package/esm/component/legendCategory.d.ts +5 -1
  62. package/esm/component/legendCategory.js +7 -10
  63. package/esm/component/legendCategory.js.map +1 -1
  64. package/esm/component/legendContinuous.d.ts +1 -0
  65. package/esm/component/legendContinuous.js +4 -3
  66. package/esm/component/legendContinuous.js.map +1 -1
  67. package/esm/composition/facetCircle.d.ts +7 -0
  68. package/esm/composition/facetCircle.js +85 -0
  69. package/esm/composition/facetCircle.js.map +1 -0
  70. package/esm/composition/facetRect.d.ts +31 -0
  71. package/esm/composition/facetRect.js +306 -0
  72. package/esm/composition/facetRect.js.map +1 -0
  73. package/esm/composition/index.d.ts +12 -12
  74. package/esm/composition/index.js +6 -6
  75. package/esm/composition/index.js.map +1 -1
  76. package/esm/composition/mark.js +13 -2
  77. package/esm/composition/mark.js.map +1 -1
  78. package/esm/composition/repeatMatrix.d.ts +8 -0
  79. package/esm/composition/repeatMatrix.js +149 -0
  80. package/esm/composition/repeatMatrix.js.map +1 -0
  81. package/esm/composition/spaceFlex.d.ts +7 -0
  82. package/esm/composition/spaceFlex.js +40 -0
  83. package/esm/composition/spaceFlex.js.map +1 -0
  84. package/esm/composition/spaceLayer.d.ts +7 -0
  85. package/esm/composition/spaceLayer.js +32 -0
  86. package/esm/composition/spaceLayer.js.map +1 -0
  87. package/esm/composition/timingKeyframe.d.ts +7 -0
  88. package/esm/composition/timingKeyframe.js +75 -0
  89. package/esm/composition/timingKeyframe.js.map +1 -0
  90. package/esm/composition/view.js +3 -3
  91. package/esm/composition/view.js.map +1 -1
  92. package/esm/coordinate/index.d.ts +2 -0
  93. package/esm/coordinate/index.js +1 -0
  94. package/esm/coordinate/index.js.map +1 -1
  95. package/esm/coordinate/radial.d.ts +7 -0
  96. package/esm/coordinate/radial.js +12 -0
  97. package/esm/coordinate/radial.js.map +1 -0
  98. package/esm/data/index.d.ts +2 -0
  99. package/esm/data/index.js +1 -0
  100. package/esm/data/index.js.map +1 -1
  101. package/esm/data/wordCloud.d.ts +6 -1
  102. package/esm/data/wordCloud.js +102 -7
  103. package/esm/data/wordCloud.js.map +1 -1
  104. package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -1
  105. package/esm/interaction/builtin/activeRegion.js.map +1 -1
  106. package/esm/interaction/builtin/brush.js.map +1 -1
  107. package/esm/interaction/builtin/brushHighlight.js.map +1 -1
  108. package/esm/interaction/builtin/brushVisible.js.map +1 -1
  109. package/esm/interaction/builtin/elementActive.d.ts +0 -2
  110. package/esm/interaction/builtin/elementActive.js.map +1 -1
  111. package/esm/interaction/builtin/elementHighlight.d.ts +0 -2
  112. package/esm/interaction/builtin/elementHighlight.js.map +1 -1
  113. package/esm/interaction/builtin/elementHighlightByColor.d.ts +0 -2
  114. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -1
  115. package/esm/interaction/builtin/elementHighlightByX.d.ts +0 -2
  116. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -1
  117. package/esm/interaction/builtin/elementListHighlight.js.map +1 -1
  118. package/esm/interaction/builtin/elementSelected.d.ts +1 -3
  119. package/esm/interaction/builtin/elementSelected.js.map +1 -1
  120. package/esm/interaction/builtin/ellipsisText.js.map +1 -1
  121. package/esm/interaction/builtin/fisheye.d.ts +6 -0
  122. package/esm/interaction/builtin/fisheye.js.map +1 -1
  123. package/esm/interaction/builtin/legendActive.js.map +1 -1
  124. package/esm/interaction/builtin/legendHighlight.js.map +1 -1
  125. package/esm/interaction/builtin/tooltip.d.ts +2 -2
  126. package/esm/interaction/builtin/tooltip.js.map +1 -1
  127. package/esm/interaction/index.d.ts +8 -18
  128. package/esm/interaction/index.js +40 -17
  129. package/esm/interaction/index.js.map +1 -1
  130. package/esm/interaction/native/chartIndex.d.ts +4 -0
  131. package/esm/interaction/native/chartIndex.js +168 -0
  132. package/esm/interaction/native/chartIndex.js.map +1 -0
  133. package/esm/interaction/native/elementActive.d.ts +10 -0
  134. package/esm/interaction/native/elementActive.js +69 -0
  135. package/esm/interaction/native/elementActive.js.map +1 -0
  136. package/esm/interaction/native/elementActiveByColor.d.ts +4 -0
  137. package/esm/interaction/native/elementActiveByColor.js +12 -0
  138. package/esm/interaction/native/elementActiveByColor.js.map +1 -0
  139. package/esm/interaction/native/elementActiveByX.d.ts +8 -0
  140. package/esm/interaction/native/elementActiveByX.js +13 -0
  141. package/esm/interaction/native/elementActiveByX.js.map +1 -0
  142. package/esm/interaction/native/elementSelect.d.ts +11 -0
  143. package/esm/interaction/native/elementSelect.js +111 -0
  144. package/esm/interaction/native/elementSelect.js.map +1 -0
  145. package/esm/interaction/native/elementSelectByColor.d.ts +1 -0
  146. package/esm/interaction/native/elementSelectByColor.js +9 -0
  147. package/esm/interaction/native/elementSelectByColor.js.map +1 -0
  148. package/esm/interaction/native/elementSelectByX.d.ts +1 -0
  149. package/esm/interaction/native/elementSelectByX.js +9 -0
  150. package/esm/interaction/native/elementSelectByX.js.map +1 -0
  151. package/esm/interaction/native/fisheye.d.ts +4 -0
  152. package/esm/interaction/native/fisheye.js +44 -0
  153. package/esm/interaction/native/fisheye.js.map +1 -0
  154. package/esm/interaction/native/utils.d.ts +28 -0
  155. package/esm/interaction/native/utils.js +173 -0
  156. package/esm/interaction/native/utils.js.map +1 -0
  157. package/esm/label-transform/dodgeY.d.ts +7 -0
  158. package/esm/label-transform/dodgeY.js +67 -0
  159. package/esm/label-transform/dodgeY.js.map +1 -0
  160. package/esm/label-transform/hideOverlap.d.ts +4 -0
  161. package/esm/{labelLayout → label-transform}/hideOverlap.js +0 -0
  162. package/esm/label-transform/hideOverlap.js.map +1 -0
  163. package/esm/label-transform/index.d.ts +4 -0
  164. package/esm/label-transform/index.js +3 -0
  165. package/esm/label-transform/index.js.map +1 -0
  166. package/esm/mark/area.d.ts +4 -0
  167. package/esm/mark/area.js +71 -0
  168. package/esm/mark/area.js.map +1 -0
  169. package/esm/mark/box.d.ts +34 -0
  170. package/esm/mark/box.js +90 -0
  171. package/esm/mark/box.js.map +1 -0
  172. package/esm/mark/cell.d.ts +9 -0
  173. package/esm/mark/cell.js +47 -0
  174. package/esm/mark/cell.js.map +1 -0
  175. package/esm/mark/connector.d.ts +4 -0
  176. package/esm/mark/connector.js +18 -0
  177. package/esm/mark/connector.js.map +1 -0
  178. package/esm/mark/image.d.ts +4 -0
  179. package/esm/mark/image.js +31 -0
  180. package/esm/mark/image.js.map +1 -0
  181. package/esm/mark/index.d.ts +36 -0
  182. package/esm/mark/index.js +19 -0
  183. package/esm/mark/index.js.map +1 -0
  184. package/esm/mark/interval.d.ts +12 -0
  185. package/esm/mark/interval.js +71 -0
  186. package/esm/mark/interval.js.map +1 -0
  187. package/esm/mark/line.d.ts +7 -0
  188. package/esm/mark/line.js +80 -0
  189. package/esm/mark/line.js.map +1 -0
  190. package/esm/mark/lineX.d.ts +4 -0
  191. package/esm/mark/lineX.js +21 -0
  192. package/esm/mark/lineX.js.map +1 -0
  193. package/esm/mark/lineY.d.ts +4 -0
  194. package/esm/mark/lineY.js +21 -0
  195. package/esm/mark/lineY.js.map +1 -0
  196. package/esm/mark/link.d.ts +7 -0
  197. package/esm/mark/link.js +36 -0
  198. package/esm/mark/link.js.map +1 -0
  199. package/esm/mark/point.d.ts +9 -0
  200. package/esm/mark/point.js +79 -0
  201. package/esm/mark/point.js.map +1 -0
  202. package/esm/mark/polygon.d.ts +7 -0
  203. package/esm/mark/polygon.js +43 -0
  204. package/esm/mark/polygon.js.map +1 -0
  205. package/esm/mark/range.d.ts +8 -0
  206. package/esm/mark/range.js +44 -0
  207. package/esm/mark/range.js.map +1 -0
  208. package/esm/mark/rangeX.d.ts +4 -0
  209. package/esm/mark/rangeX.js +14 -0
  210. package/esm/mark/rangeX.js.map +1 -0
  211. package/esm/mark/rangeY.d.ts +4 -0
  212. package/esm/mark/rangeY.js +14 -0
  213. package/esm/mark/rangeY.js.map +1 -0
  214. package/esm/mark/rect.d.ts +4 -0
  215. package/esm/mark/rect.js +31 -0
  216. package/esm/mark/rect.js.map +1 -0
  217. package/esm/mark/text.d.ts +4 -0
  218. package/esm/mark/text.js +32 -0
  219. package/esm/mark/text.js.map +1 -0
  220. package/esm/mark/utils.d.ts +5 -0
  221. package/esm/mark/utils.js +18 -0
  222. package/esm/mark/utils.js.map +1 -1
  223. package/esm/mark/vector.d.ts +8 -0
  224. package/esm/mark/vector.js +43 -0
  225. package/esm/mark/vector.js.map +1 -0
  226. package/esm/palette/divergingGreenRed.d.ts +7 -0
  227. package/esm/palette/divergingGreenRed.js +26 -0
  228. package/esm/palette/divergingGreenRed.js.map +1 -0
  229. package/esm/palette/divergingGreenYellow.d.ts +7 -0
  230. package/esm/palette/divergingGreenYellow.js +26 -0
  231. package/esm/palette/divergingGreenYellow.js.map +1 -0
  232. package/esm/palette/divergingRedBlue.d.ts +7 -0
  233. package/esm/palette/divergingRedBlue.js +26 -0
  234. package/esm/palette/divergingRedBlue.js.map +1 -0
  235. package/esm/palette/divergingRedPurple.d.ts +7 -0
  236. package/esm/palette/divergingRedPurple.js +26 -0
  237. package/esm/palette/divergingRedPurple.js.map +1 -0
  238. package/esm/palette/index.d.ts +36 -0
  239. package/esm/palette/index.js +18 -0
  240. package/esm/palette/index.js.map +1 -1
  241. package/esm/palette/sequentialBlue.d.ts +7 -0
  242. package/esm/palette/sequentialBlue.js +18 -0
  243. package/esm/palette/sequentialBlue.js.map +1 -0
  244. package/esm/palette/sequentialDarkBlue.d.ts +7 -0
  245. package/esm/palette/sequentialDarkBlue.js +18 -0
  246. package/esm/palette/sequentialDarkBlue.js.map +1 -0
  247. package/esm/palette/sequentialDarkGreen.d.ts +7 -0
  248. package/esm/palette/sequentialDarkGreen.js +18 -0
  249. package/esm/palette/sequentialDarkGreen.js.map +1 -0
  250. package/esm/palette/sequentialGreen.d.ts +7 -0
  251. package/esm/palette/sequentialGreen.js +18 -0
  252. package/esm/palette/sequentialGreen.js.map +1 -0
  253. package/esm/palette/sequentialGreenBlue.d.ts +7 -0
  254. package/esm/palette/sequentialGreenBlue.js +18 -0
  255. package/esm/palette/sequentialGreenBlue.js.map +1 -0
  256. package/esm/palette/sequentialGrey.d.ts +7 -0
  257. package/esm/palette/sequentialGrey.js +18 -0
  258. package/esm/palette/sequentialGrey.js.map +1 -0
  259. package/esm/palette/sequentialOrange.d.ts +7 -0
  260. package/esm/palette/sequentialOrange.js +18 -0
  261. package/esm/palette/sequentialOrange.js.map +1 -0
  262. package/esm/palette/sequentialPink.d.ts +7 -0
  263. package/esm/palette/sequentialPink.js +18 -0
  264. package/esm/palette/sequentialPink.js.map +1 -0
  265. package/esm/palette/sequentialPinkPurple.d.ts +7 -0
  266. package/esm/palette/sequentialPinkPurple.js +18 -0
  267. package/esm/palette/sequentialPinkPurple.js.map +1 -0
  268. package/esm/palette/sequentialPurple.d.ts +7 -0
  269. package/esm/palette/sequentialPurple.js +18 -0
  270. package/esm/palette/sequentialPurple.js.map +1 -0
  271. package/esm/palette/sequentialRed.d.ts +7 -0
  272. package/esm/palette/sequentialRed.js +18 -0
  273. package/esm/palette/sequentialRed.js.map +1 -0
  274. package/esm/palette/sequentialYellow.d.ts +7 -0
  275. package/esm/palette/sequentialYellow.js +18 -0
  276. package/esm/palette/sequentialYellow.js.map +1 -0
  277. package/esm/palette/sequentialYellowGreen.d.ts +7 -0
  278. package/esm/palette/sequentialYellowGreen.js +18 -0
  279. package/esm/palette/sequentialYellowGreen.js.map +1 -0
  280. package/esm/palette/sequentialYellowOrange.d.ts +7 -0
  281. package/esm/palette/sequentialYellowOrange.js +18 -0
  282. package/esm/palette/sequentialYellowOrange.js.map +1 -0
  283. package/esm/runtime/component.js +35 -11
  284. package/esm/runtime/component.js.map +1 -1
  285. package/esm/runtime/constant.d.ts +8 -0
  286. package/esm/runtime/constant.js +9 -0
  287. package/esm/runtime/constant.js.map +1 -0
  288. package/esm/runtime/coordinate.d.ts +1 -0
  289. package/esm/runtime/coordinate.js +6 -8
  290. package/esm/runtime/coordinate.js.map +1 -1
  291. package/esm/runtime/index.d.ts +2 -1
  292. package/esm/runtime/index.js +2 -1
  293. package/esm/runtime/index.js.map +1 -1
  294. package/esm/runtime/layout.js +107 -17
  295. package/esm/runtime/layout.js.map +1 -1
  296. package/esm/runtime/mark.js +2 -1
  297. package/esm/runtime/mark.js.map +1 -1
  298. package/esm/runtime/plot.d.ts +2 -0
  299. package/esm/runtime/plot.js +259 -120
  300. package/esm/runtime/plot.js.map +1 -1
  301. package/esm/runtime/render.d.ts +11 -0
  302. package/esm/runtime/render.js +66 -5
  303. package/esm/runtime/render.js.map +1 -1
  304. package/esm/runtime/scale.d.ts +1 -0
  305. package/esm/runtime/scale.js +151 -26
  306. package/esm/runtime/scale.js.map +1 -1
  307. package/esm/runtime/transform.d.ts +1 -0
  308. package/esm/runtime/transform.js +30 -0
  309. package/esm/runtime/transform.js.map +1 -1
  310. package/esm/runtime/types/common.d.ts +16 -39
  311. package/esm/runtime/types/component.d.ts +5 -4
  312. package/esm/runtime/types/options.d.ts +22 -4
  313. package/esm/runtime/types/theme.d.ts +64 -0
  314. package/esm/runtime/types/theme.js +2 -0
  315. package/esm/runtime/types/theme.js.map +1 -0
  316. package/esm/scale/index.d.ts +4 -0
  317. package/esm/scale/index.js +2 -0
  318. package/esm/scale/index.js.map +1 -1
  319. package/esm/scale/sequential.d.ts +4 -0
  320. package/esm/scale/sequential.js +6 -0
  321. package/esm/scale/sequential.js.map +1 -0
  322. package/esm/scale/sqrt.d.ts +4 -0
  323. package/esm/scale/sqrt.js +6 -0
  324. package/esm/scale/sqrt.js.map +1 -0
  325. package/esm/shape/area/area.js +3 -3
  326. package/esm/shape/area/area.js.map +1 -1
  327. package/esm/shape/area/curve.d.ts +8 -0
  328. package/esm/shape/area/curve.js +165 -0
  329. package/esm/shape/area/curve.js.map +1 -0
  330. package/esm/shape/area/smooth.d.ts +5 -0
  331. package/esm/shape/area/smooth.js +23 -0
  332. package/esm/shape/area/smooth.js.map +1 -0
  333. package/esm/shape/area/step.d.ts +3 -0
  334. package/esm/shape/area/step.js +9 -0
  335. package/esm/shape/area/step.js.map +1 -0
  336. package/esm/shape/box/box.js +8 -7
  337. package/esm/shape/box/box.js.map +1 -1
  338. package/esm/shape/connector/connector.d.ts +17 -0
  339. package/esm/shape/connector/connector.js +106 -0
  340. package/esm/shape/connector/connector.js.map +1 -0
  341. package/esm/shape/createElement.d.ts +5 -0
  342. package/esm/shape/createElement.js +16 -0
  343. package/esm/shape/createElement.js.map +1 -0
  344. package/esm/shape/image/image.js +5 -3
  345. package/esm/shape/image/image.js.map +1 -1
  346. package/esm/shape/index.d.ts +16 -16
  347. package/esm/shape/index.js +9 -10
  348. package/esm/shape/index.js.map +1 -1
  349. package/esm/shape/interval/color.d.ts +12 -0
  350. package/esm/shape/interval/color.js +88 -0
  351. package/esm/shape/interval/color.js.map +1 -0
  352. package/esm/shape/interval/funnel.js +2 -2
  353. package/esm/shape/interval/funnel.js.map +1 -1
  354. package/esm/shape/interval/hollow.d.ts +6 -0
  355. package/esm/shape/interval/hollow.js +9 -0
  356. package/esm/shape/interval/hollow.js.map +1 -0
  357. package/esm/shape/interval/rect.js +3 -3
  358. package/esm/shape/interval/rect.js.map +1 -1
  359. package/esm/shape/label/label.js +14 -88
  360. package/esm/shape/label/label.js.map +1 -1
  361. package/esm/shape/label/position.d.ts +25 -0
  362. package/esm/shape/label/position.js +128 -0
  363. package/esm/shape/label/position.js.map +1 -0
  364. package/esm/shape/line/curve.d.ts +8 -0
  365. package/esm/shape/line/curve.js +117 -0
  366. package/esm/shape/line/curve.js.map +1 -0
  367. package/esm/shape/line/hv.js +3 -3
  368. package/esm/shape/line/hv.js.map +1 -1
  369. package/esm/shape/line/hvh.js +3 -3
  370. package/esm/shape/line/hvh.js.map +1 -1
  371. package/esm/shape/line/line.js +3 -3
  372. package/esm/shape/line/line.js.map +1 -1
  373. package/esm/shape/line/smooth.js +3 -3
  374. package/esm/shape/line/smooth.js.map +1 -1
  375. package/esm/shape/line/vh.js +3 -3
  376. package/esm/shape/line/vh.js.map +1 -1
  377. package/esm/shape/lineXY/line.d.ts +3 -0
  378. package/esm/shape/lineXY/line.js +58 -0
  379. package/esm/shape/lineXY/line.js.map +1 -0
  380. package/esm/shape/link/arc.js +5 -3
  381. package/esm/shape/link/arc.js.map +1 -1
  382. package/esm/shape/link/link.js +5 -3
  383. package/esm/shape/link/link.js.map +1 -1
  384. package/esm/shape/link/smooth.d.ts +6 -0
  385. package/esm/shape/link/smooth.js +41 -0
  386. package/esm/shape/link/smooth.js.map +1 -0
  387. package/esm/shape/link/vhv.d.ts +2 -2
  388. package/esm/shape/link/vhv.js +7 -5
  389. package/esm/shape/link/vhv.js.map +1 -1
  390. package/esm/shape/point/bowtie.js +3 -3
  391. package/esm/shape/point/bowtie.js.map +1 -1
  392. package/esm/shape/point/color.d.ts +11 -0
  393. package/esm/shape/point/color.js +66 -0
  394. package/esm/shape/point/color.js.map +1 -0
  395. package/esm/shape/point/cross.js +3 -3
  396. package/esm/shape/point/cross.js.map +1 -1
  397. package/esm/shape/point/diamond.js +3 -3
  398. package/esm/shape/point/diamond.js.map +1 -1
  399. package/esm/shape/point/hexagon.js +3 -3
  400. package/esm/shape/point/hexagon.js.map +1 -1
  401. package/esm/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
  402. package/esm/shape/point/hollow.js +9 -0
  403. package/esm/shape/point/hollow.js.map +1 -0
  404. package/esm/shape/point/hollowBowtie.js +3 -3
  405. package/esm/shape/point/hollowBowtie.js.map +1 -1
  406. package/esm/shape/point/hollowDiamond.js +3 -3
  407. package/esm/shape/point/hollowDiamond.js.map +1 -1
  408. package/esm/shape/point/hollowHexagon.js +3 -3
  409. package/esm/shape/point/hollowHexagon.js.map +1 -1
  410. package/esm/shape/point/hollowSquare.js +3 -3
  411. package/esm/shape/point/hollowSquare.js.map +1 -1
  412. package/esm/shape/point/hollowTriangle.js +3 -3
  413. package/esm/shape/point/hollowTriangle.js.map +1 -1
  414. package/esm/shape/point/hollowTriangleDown.js +3 -3
  415. package/esm/shape/point/hollowTriangleDown.js.map +1 -1
  416. package/esm/shape/point/hyphen.js +3 -3
  417. package/esm/shape/point/hyphen.js.map +1 -1
  418. package/esm/shape/point/line.js +3 -3
  419. package/esm/shape/point/line.js.map +1 -1
  420. package/esm/shape/point/plus.js +3 -3
  421. package/esm/shape/point/plus.js.map +1 -1
  422. package/esm/shape/point/point.js +3 -3
  423. package/esm/shape/point/point.js.map +1 -1
  424. package/esm/shape/point/square.js +3 -3
  425. package/esm/shape/point/square.js.map +1 -1
  426. package/esm/shape/point/symbol.js +3 -2
  427. package/esm/shape/point/symbol.js.map +1 -1
  428. package/esm/shape/point/tick.js +3 -3
  429. package/esm/shape/point/tick.js.map +1 -1
  430. package/esm/shape/point/triangle.js +3 -3
  431. package/esm/shape/point/triangle.js.map +1 -1
  432. package/esm/shape/point/triangleDown.js +3 -3
  433. package/esm/shape/point/triangleDown.js.map +1 -1
  434. package/esm/shape/polygon/polygon.js +6 -5
  435. package/esm/shape/polygon/polygon.js.map +1 -1
  436. package/esm/shape/polygon/ribbon.js +6 -5
  437. package/esm/shape/polygon/ribbon.js.map +1 -1
  438. package/esm/shape/text/badge.d.ts +11 -0
  439. package/esm/shape/text/badge.js +98 -0
  440. package/esm/shape/text/badge.js.map +1 -0
  441. package/esm/shape/text/text.d.ts +15 -1
  442. package/esm/shape/text/text.js +145 -10
  443. package/esm/shape/text/text.js.map +1 -1
  444. package/esm/shape/utils.d.ts +9 -2
  445. package/esm/shape/utils.js +41 -11
  446. package/esm/shape/utils.js.map +1 -1
  447. package/esm/shape/vector/vector.js +6 -5
  448. package/esm/shape/vector/vector.js.map +1 -1
  449. package/esm/spec/animate.d.ts +1 -1
  450. package/esm/spec/composition.d.ts +41 -15
  451. package/esm/spec/coordinate.d.ts +9 -2
  452. package/esm/spec/geometry.d.ts +39 -11
  453. package/esm/spec/index.d.ts +1 -1
  454. package/esm/spec/index.js +1 -1
  455. package/esm/spec/index.js.map +1 -1
  456. package/esm/spec/interaction.d.ts +33 -21
  457. package/esm/spec/labelTransform.d.ts +10 -0
  458. package/esm/spec/labelTransform.js +2 -0
  459. package/esm/spec/labelTransform.js.map +1 -0
  460. package/esm/spec/palette.d.ts +54 -0
  461. package/esm/spec/scale.d.ts +12 -5
  462. package/esm/spec/transform.d.ts +46 -6
  463. package/esm/stdlib/index.js +157 -93
  464. package/esm/stdlib/index.js.map +1 -1
  465. package/esm/theme/dark.d.ts +6 -0
  466. package/esm/theme/dark.js +246 -0
  467. package/esm/theme/dark.js.map +1 -0
  468. package/esm/theme/index.d.ts +1 -0
  469. package/esm/theme/index.js +1 -0
  470. package/esm/theme/index.js.map +1 -1
  471. package/esm/theme/light.d.ts +0 -1
  472. package/esm/theme/light.js +220 -6
  473. package/esm/theme/light.js.map +1 -1
  474. package/esm/transform/diffY.d.ts +8 -0
  475. package/esm/transform/diffY.js +43 -0
  476. package/esm/transform/diffY.js.map +1 -0
  477. package/esm/transform/group.d.ts +10 -0
  478. package/esm/transform/group.js +101 -0
  479. package/esm/transform/group.js.map +1 -0
  480. package/esm/transform/groupColor.d.ts +7 -0
  481. package/esm/transform/groupColor.js +9 -0
  482. package/esm/transform/groupColor.js.map +1 -0
  483. package/esm/transform/groupX.d.ts +0 -2
  484. package/esm/transform/groupX.js +2 -80
  485. package/esm/transform/groupX.js.map +1 -1
  486. package/esm/transform/groupY.d.ts +7 -0
  487. package/esm/transform/groupY.js +9 -0
  488. package/esm/transform/groupY.js.map +1 -0
  489. package/esm/transform/index.d.ts +26 -2
  490. package/esm/transform/index.js +13 -1
  491. package/esm/transform/index.js.map +1 -1
  492. package/esm/transform/jitter.d.ts +1 -0
  493. package/esm/transform/jitter.js +14 -5
  494. package/esm/transform/jitter.js.map +1 -1
  495. package/esm/transform/jitterX.d.ts +8 -0
  496. package/esm/transform/jitterX.js +25 -0
  497. package/esm/transform/jitterX.js.map +1 -0
  498. package/esm/transform/maybeIdentityX.d.ts +7 -0
  499. package/esm/transform/maybeIdentityX.js +18 -0
  500. package/esm/transform/maybeIdentityX.js.map +1 -0
  501. package/esm/transform/maybeIdentityY.d.ts +7 -0
  502. package/esm/transform/maybeIdentityY.js +18 -0
  503. package/esm/transform/maybeIdentityY.js.map +1 -0
  504. package/esm/transform/maybeTupleX.d.ts +7 -0
  505. package/esm/transform/maybeTupleX.js +16 -0
  506. package/esm/transform/maybeTupleX.js.map +1 -0
  507. package/esm/transform/maybeTupleY.d.ts +7 -0
  508. package/esm/transform/maybeTupleY.js +16 -0
  509. package/esm/transform/maybeTupleY.js.map +1 -0
  510. package/esm/transform/maybeZeroPadding.d.ts +6 -0
  511. package/esm/transform/maybeZeroPadding.js +14 -0
  512. package/esm/transform/maybeZeroPadding.js.map +1 -0
  513. package/esm/transform/maybeZeroX.js +1 -0
  514. package/esm/transform/maybeZeroX.js.map +1 -1
  515. package/esm/transform/maybeZeroY.js +1 -0
  516. package/esm/transform/maybeZeroY.js.map +1 -1
  517. package/esm/transform/normalizeY.js +13 -10
  518. package/esm/transform/normalizeY.js.map +1 -1
  519. package/esm/transform/pack.d.ts +8 -0
  520. package/esm/transform/pack.js +56 -0
  521. package/esm/transform/pack.js.map +1 -0
  522. package/esm/transform/sort.d.ts +14 -0
  523. package/esm/transform/sort.js +64 -0
  524. package/esm/transform/sort.js.map +1 -0
  525. package/esm/transform/sortColor.d.ts +7 -0
  526. package/esm/transform/sortColor.js +9 -0
  527. package/esm/transform/sortColor.js.map +1 -0
  528. package/esm/transform/sortX.d.ts +1 -2
  529. package/esm/transform/sortX.js +3 -54
  530. package/esm/transform/sortX.js.map +1 -1
  531. package/esm/transform/sortY.d.ts +7 -0
  532. package/esm/transform/sortY.js +9 -0
  533. package/esm/transform/sortY.js.map +1 -0
  534. package/esm/utils/coordinate.d.ts +2 -0
  535. package/esm/utils/coordinate.js +9 -1
  536. package/esm/utils/coordinate.js.map +1 -1
  537. package/esm/utils/event.d.ts +16 -0
  538. package/esm/utils/event.js +35 -0
  539. package/esm/utils/event.js.map +1 -0
  540. package/esm/utils/helper.d.ts +2 -0
  541. package/esm/utils/helper.js +11 -0
  542. package/esm/utils/helper.js.map +1 -1
  543. package/esm/utils/selection.d.ts +2 -0
  544. package/esm/utils/selection.js +21 -10
  545. package/esm/utils/selection.js.map +1 -1
  546. package/esm/utils/size.d.ts +21 -0
  547. package/esm/utils/size.js +42 -0
  548. package/esm/utils/size.js.map +1 -0
  549. package/esm/utils/string.d.ts +12 -0
  550. package/esm/utils/string.js +19 -0
  551. package/esm/utils/string.js.map +1 -0
  552. package/esm/utils/vector.d.ts +7 -1
  553. package/esm/utils/vector.js +10 -3
  554. package/esm/utils/vector.js.map +1 -1
  555. package/lib/animation/index.d.ts +4 -0
  556. package/lib/animation/index.js +7 -1
  557. package/lib/animation/index.js.map +1 -1
  558. package/lib/animation/morphing.js +2 -23
  559. package/lib/animation/morphing.js.map +1 -1
  560. package/lib/animation/utils.d.ts +3 -0
  561. package/lib/animation/utils.js +22 -1
  562. package/lib/animation/utils.js.map +1 -1
  563. package/lib/animation/waveIn.d.ts +7 -0
  564. package/lib/animation/waveIn.js +66 -0
  565. package/lib/animation/waveIn.js.map +1 -0
  566. package/lib/animation/zoomIn.d.ts +4 -0
  567. package/lib/animation/zoomIn.js +43 -0
  568. package/lib/animation/zoomIn.js.map +1 -0
  569. package/lib/animation/zoomOut.d.ts +4 -0
  570. package/lib/animation/zoomOut.js +38 -0
  571. package/lib/animation/zoomOut.js.map +1 -0
  572. package/lib/api/chart.d.ts +9 -0
  573. package/lib/api/chart.js +55 -7
  574. package/lib/api/chart.js.map +1 -1
  575. package/lib/api/composition/facetCircle.d.ts +21 -0
  576. package/lib/api/composition/facetCircle.js +33 -0
  577. package/lib/api/composition/facetCircle.js.map +1 -0
  578. package/lib/api/composition/facetRect.d.ts +23 -0
  579. package/lib/api/composition/facetRect.js +35 -0
  580. package/lib/api/composition/facetRect.js.map +1 -0
  581. package/lib/api/composition/index.d.ts +19 -19
  582. package/lib/api/composition/index.js +19 -19
  583. package/lib/api/composition/index.js.map +1 -1
  584. package/lib/api/composition/repeatMatrix.d.ts +21 -0
  585. package/lib/api/composition/repeatMatrix.js +33 -0
  586. package/lib/api/composition/repeatMatrix.js.map +1 -0
  587. package/lib/api/composition/spaceFlex.d.ts +17 -0
  588. package/lib/api/composition/spaceFlex.js +29 -0
  589. package/lib/api/composition/spaceFlex.js.map +1 -0
  590. package/lib/api/composition/spaceLayer.d.ts +14 -0
  591. package/lib/api/composition/spaceLayer.js +26 -0
  592. package/lib/api/composition/spaceLayer.js.map +1 -0
  593. package/lib/api/composition/timingKeyframe.d.ts +17 -0
  594. package/lib/api/composition/timingKeyframe.js +29 -0
  595. package/lib/api/composition/timingKeyframe.js.map +1 -0
  596. package/lib/api/mark/index.d.ts +17 -17
  597. package/lib/api/mark/index.js +8 -8
  598. package/lib/api/mark/index.js.map +1 -1
  599. package/lib/api/mark/mark.d.ts +23 -23
  600. package/lib/api/mark/mark.js +47 -45
  601. package/lib/api/mark/mark.js.map +1 -1
  602. package/lib/api/mark/types.d.ts +2 -0
  603. package/lib/api/node.d.ts +7 -0
  604. package/lib/api/node.js +56 -1
  605. package/lib/api/node.js.map +1 -1
  606. package/lib/api/props.d.ts +1 -1
  607. package/lib/api/props.js +32 -11
  608. package/lib/api/props.js.map +1 -1
  609. package/lib/api/types.d.ts +1 -1
  610. package/lib/component/axis.d.ts +8 -2
  611. package/lib/component/axis.js +166 -98
  612. package/lib/component/axis.js.map +1 -1
  613. package/lib/component/legendCategory.d.ts +5 -1
  614. package/lib/component/legendCategory.js +7 -10
  615. package/lib/component/legendCategory.js.map +1 -1
  616. package/lib/component/legendContinuous.d.ts +1 -0
  617. package/lib/component/legendContinuous.js +4 -3
  618. package/lib/component/legendContinuous.js.map +1 -1
  619. package/lib/composition/facetCircle.d.ts +7 -0
  620. package/lib/composition/facetCircle.js +89 -0
  621. package/lib/composition/facetCircle.js.map +1 -0
  622. package/lib/composition/facetRect.d.ts +31 -0
  623. package/lib/composition/facetRect.js +311 -0
  624. package/lib/composition/facetRect.js.map +1 -0
  625. package/lib/composition/index.d.ts +12 -12
  626. package/lib/composition/index.js +13 -13
  627. package/lib/composition/index.js.map +1 -1
  628. package/lib/composition/mark.js +13 -2
  629. package/lib/composition/mark.js.map +1 -1
  630. package/lib/composition/repeatMatrix.d.ts +8 -0
  631. package/lib/composition/repeatMatrix.js +153 -0
  632. package/lib/composition/repeatMatrix.js.map +1 -0
  633. package/lib/composition/spaceFlex.d.ts +7 -0
  634. package/lib/composition/spaceFlex.js +44 -0
  635. package/lib/composition/spaceFlex.js.map +1 -0
  636. package/lib/composition/spaceLayer.d.ts +7 -0
  637. package/lib/composition/spaceLayer.js +36 -0
  638. package/lib/composition/spaceLayer.js.map +1 -0
  639. package/lib/composition/timingKeyframe.d.ts +7 -0
  640. package/lib/composition/timingKeyframe.js +79 -0
  641. package/lib/composition/timingKeyframe.js.map +1 -0
  642. package/lib/composition/view.js +3 -3
  643. package/lib/composition/view.js.map +1 -1
  644. package/lib/coordinate/index.d.ts +2 -0
  645. package/lib/coordinate/index.js +3 -1
  646. package/lib/coordinate/index.js.map +1 -1
  647. package/lib/coordinate/radial.d.ts +7 -0
  648. package/lib/coordinate/radial.js +16 -0
  649. package/lib/coordinate/radial.js.map +1 -0
  650. package/lib/data/index.d.ts +2 -0
  651. package/lib/data/index.js +3 -1
  652. package/lib/data/index.js.map +1 -1
  653. package/lib/data/wordCloud.d.ts +6 -1
  654. package/lib/data/wordCloud.js +106 -6
  655. package/lib/data/wordCloud.js.map +1 -1
  656. package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -1
  657. package/lib/interaction/builtin/activeRegion.js.map +1 -1
  658. package/lib/interaction/builtin/brush.js.map +1 -1
  659. package/lib/interaction/builtin/brushHighlight.js.map +1 -1
  660. package/lib/interaction/builtin/brushVisible.js.map +1 -1
  661. package/lib/interaction/builtin/elementActive.d.ts +0 -2
  662. package/lib/interaction/builtin/elementActive.js.map +1 -1
  663. package/lib/interaction/builtin/elementHighlight.d.ts +0 -2
  664. package/lib/interaction/builtin/elementHighlight.js.map +1 -1
  665. package/lib/interaction/builtin/elementHighlightByColor.d.ts +0 -2
  666. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -1
  667. package/lib/interaction/builtin/elementHighlightByX.d.ts +0 -2
  668. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -1
  669. package/lib/interaction/builtin/elementListHighlight.js.map +1 -1
  670. package/lib/interaction/builtin/elementSelected.d.ts +1 -3
  671. package/lib/interaction/builtin/elementSelected.js.map +1 -1
  672. package/lib/interaction/builtin/ellipsisText.js.map +1 -1
  673. package/lib/interaction/builtin/fisheye.d.ts +6 -0
  674. package/lib/interaction/builtin/fisheye.js.map +1 -1
  675. package/lib/interaction/builtin/legendActive.js.map +1 -1
  676. package/lib/interaction/builtin/legendHighlight.js.map +1 -1
  677. package/lib/interaction/builtin/tooltip.d.ts +2 -2
  678. package/lib/interaction/builtin/tooltip.js.map +1 -1
  679. package/lib/interaction/index.d.ts +8 -18
  680. package/lib/interaction/index.js +47 -33
  681. package/lib/interaction/index.js.map +1 -1
  682. package/lib/interaction/native/chartIndex.d.ts +4 -0
  683. package/lib/interaction/native/chartIndex.js +172 -0
  684. package/lib/interaction/native/chartIndex.js.map +1 -0
  685. package/lib/interaction/native/elementActive.d.ts +10 -0
  686. package/lib/interaction/native/elementActive.js +74 -0
  687. package/lib/interaction/native/elementActive.js.map +1 -0
  688. package/lib/interaction/native/elementActiveByColor.d.ts +4 -0
  689. package/lib/interaction/native/elementActiveByColor.js +16 -0
  690. package/lib/interaction/native/elementActiveByColor.js.map +1 -0
  691. package/lib/interaction/native/elementActiveByX.d.ts +8 -0
  692. package/lib/interaction/native/elementActiveByX.js +17 -0
  693. package/lib/interaction/native/elementActiveByX.js.map +1 -0
  694. package/lib/interaction/native/elementSelect.d.ts +11 -0
  695. package/lib/interaction/native/elementSelect.js +116 -0
  696. package/lib/interaction/native/elementSelect.js.map +1 -0
  697. package/lib/interaction/native/elementSelectByColor.d.ts +1 -0
  698. package/lib/interaction/native/elementSelectByColor.js +13 -0
  699. package/lib/interaction/native/elementSelectByColor.js.map +1 -0
  700. package/lib/interaction/native/elementSelectByX.d.ts +1 -0
  701. package/lib/interaction/native/elementSelectByX.js +13 -0
  702. package/lib/interaction/native/elementSelectByX.js.map +1 -0
  703. package/lib/interaction/native/fisheye.d.ts +4 -0
  704. package/lib/interaction/native/fisheye.js +48 -0
  705. package/lib/interaction/native/fisheye.js.map +1 -0
  706. package/lib/interaction/native/utils.d.ts +28 -0
  707. package/lib/interaction/native/utils.js +186 -0
  708. package/lib/interaction/native/utils.js.map +1 -0
  709. package/lib/label-transform/dodgeY.d.ts +7 -0
  710. package/lib/label-transform/dodgeY.js +71 -0
  711. package/lib/label-transform/dodgeY.js.map +1 -0
  712. package/lib/label-transform/hideOverlap.d.ts +4 -0
  713. package/lib/{labelLayout → label-transform}/hideOverlap.js +0 -0
  714. package/lib/label-transform/hideOverlap.js.map +1 -0
  715. package/lib/label-transform/index.d.ts +4 -0
  716. package/lib/label-transform/index.js +8 -0
  717. package/lib/label-transform/index.js.map +1 -0
  718. package/lib/mark/area.d.ts +4 -0
  719. package/lib/mark/area.js +75 -0
  720. package/lib/mark/area.js.map +1 -0
  721. package/lib/mark/box.d.ts +34 -0
  722. package/lib/mark/box.js +94 -0
  723. package/lib/mark/box.js.map +1 -0
  724. package/lib/mark/cell.d.ts +9 -0
  725. package/lib/mark/cell.js +51 -0
  726. package/lib/mark/cell.js.map +1 -0
  727. package/lib/mark/connector.d.ts +4 -0
  728. package/lib/mark/connector.js +22 -0
  729. package/lib/mark/connector.js.map +1 -0
  730. package/lib/mark/image.d.ts +4 -0
  731. package/lib/mark/image.js +35 -0
  732. package/lib/mark/image.js.map +1 -0
  733. package/lib/mark/index.d.ts +36 -0
  734. package/lib/mark/index.js +40 -0
  735. package/lib/mark/index.js.map +1 -0
  736. package/lib/mark/interval.d.ts +12 -0
  737. package/lib/mark/interval.js +75 -0
  738. package/lib/mark/interval.js.map +1 -0
  739. package/lib/mark/line.d.ts +7 -0
  740. package/lib/mark/line.js +84 -0
  741. package/lib/mark/line.js.map +1 -0
  742. package/lib/mark/lineX.d.ts +4 -0
  743. package/lib/mark/lineX.js +25 -0
  744. package/lib/mark/lineX.js.map +1 -0
  745. package/lib/mark/lineY.d.ts +4 -0
  746. package/lib/mark/lineY.js +25 -0
  747. package/lib/mark/lineY.js.map +1 -0
  748. package/lib/mark/link.d.ts +7 -0
  749. package/lib/mark/link.js +40 -0
  750. package/lib/mark/link.js.map +1 -0
  751. package/lib/mark/point.d.ts +9 -0
  752. package/lib/mark/point.js +83 -0
  753. package/lib/mark/point.js.map +1 -0
  754. package/lib/mark/polygon.d.ts +7 -0
  755. package/lib/mark/polygon.js +47 -0
  756. package/lib/mark/polygon.js.map +1 -0
  757. package/lib/mark/range.d.ts +8 -0
  758. package/lib/mark/range.js +49 -0
  759. package/lib/mark/range.js.map +1 -0
  760. package/lib/mark/rangeX.d.ts +4 -0
  761. package/lib/mark/rangeX.js +18 -0
  762. package/lib/mark/rangeX.js.map +1 -0
  763. package/lib/mark/rangeY.d.ts +4 -0
  764. package/lib/mark/rangeY.js +18 -0
  765. package/lib/mark/rangeY.js.map +1 -0
  766. package/lib/mark/rect.d.ts +4 -0
  767. package/lib/mark/rect.js +35 -0
  768. package/lib/mark/rect.js.map +1 -0
  769. package/lib/mark/text.d.ts +4 -0
  770. package/lib/mark/text.js +36 -0
  771. package/lib/mark/text.js.map +1 -0
  772. package/lib/mark/utils.d.ts +5 -0
  773. package/lib/mark/utils.js +21 -1
  774. package/lib/mark/utils.js.map +1 -1
  775. package/lib/mark/vector.d.ts +8 -0
  776. package/lib/mark/vector.js +47 -0
  777. package/lib/mark/vector.js.map +1 -0
  778. package/lib/palette/divergingGreenRed.d.ts +7 -0
  779. package/lib/palette/divergingGreenRed.js +30 -0
  780. package/lib/palette/divergingGreenRed.js.map +1 -0
  781. package/lib/palette/divergingGreenYellow.d.ts +7 -0
  782. package/lib/palette/divergingGreenYellow.js +30 -0
  783. package/lib/palette/divergingGreenYellow.js.map +1 -0
  784. package/lib/palette/divergingRedBlue.d.ts +7 -0
  785. package/lib/palette/divergingRedBlue.js +30 -0
  786. package/lib/palette/divergingRedBlue.js.map +1 -0
  787. package/lib/palette/divergingRedPurple.d.ts +7 -0
  788. package/lib/palette/divergingRedPurple.js +30 -0
  789. package/lib/palette/divergingRedPurple.js.map +1 -0
  790. package/lib/palette/index.d.ts +36 -0
  791. package/lib/palette/index.js +37 -1
  792. package/lib/palette/index.js.map +1 -1
  793. package/lib/palette/sequentialBlue.d.ts +7 -0
  794. package/lib/palette/sequentialBlue.js +22 -0
  795. package/lib/palette/sequentialBlue.js.map +1 -0
  796. package/lib/palette/sequentialDarkBlue.d.ts +7 -0
  797. package/lib/palette/sequentialDarkBlue.js +22 -0
  798. package/lib/palette/sequentialDarkBlue.js.map +1 -0
  799. package/lib/palette/sequentialDarkGreen.d.ts +7 -0
  800. package/lib/palette/sequentialDarkGreen.js +22 -0
  801. package/lib/palette/sequentialDarkGreen.js.map +1 -0
  802. package/lib/palette/sequentialGreen.d.ts +7 -0
  803. package/lib/palette/sequentialGreen.js +22 -0
  804. package/lib/palette/sequentialGreen.js.map +1 -0
  805. package/lib/palette/sequentialGreenBlue.d.ts +7 -0
  806. package/lib/palette/sequentialGreenBlue.js +22 -0
  807. package/lib/palette/sequentialGreenBlue.js.map +1 -0
  808. package/lib/palette/sequentialGrey.d.ts +7 -0
  809. package/lib/palette/sequentialGrey.js +22 -0
  810. package/lib/palette/sequentialGrey.js.map +1 -0
  811. package/lib/palette/sequentialOrange.d.ts +7 -0
  812. package/lib/palette/sequentialOrange.js +22 -0
  813. package/lib/palette/sequentialOrange.js.map +1 -0
  814. package/lib/palette/sequentialPink.d.ts +7 -0
  815. package/lib/palette/sequentialPink.js +22 -0
  816. package/lib/palette/sequentialPink.js.map +1 -0
  817. package/lib/palette/sequentialPinkPurple.d.ts +7 -0
  818. package/lib/palette/sequentialPinkPurple.js +22 -0
  819. package/lib/palette/sequentialPinkPurple.js.map +1 -0
  820. package/lib/palette/sequentialPurple.d.ts +7 -0
  821. package/lib/palette/sequentialPurple.js +22 -0
  822. package/lib/palette/sequentialPurple.js.map +1 -0
  823. package/lib/palette/sequentialRed.d.ts +7 -0
  824. package/lib/palette/sequentialRed.js +22 -0
  825. package/lib/palette/sequentialRed.js.map +1 -0
  826. package/lib/palette/sequentialYellow.d.ts +7 -0
  827. package/lib/palette/sequentialYellow.js +22 -0
  828. package/lib/palette/sequentialYellow.js.map +1 -0
  829. package/lib/palette/sequentialYellowGreen.d.ts +7 -0
  830. package/lib/palette/sequentialYellowGreen.js +22 -0
  831. package/lib/palette/sequentialYellowGreen.js.map +1 -0
  832. package/lib/palette/sequentialYellowOrange.d.ts +7 -0
  833. package/lib/palette/sequentialYellowOrange.js +22 -0
  834. package/lib/palette/sequentialYellowOrange.js.map +1 -0
  835. package/lib/runtime/component.js +34 -10
  836. package/lib/runtime/component.js.map +1 -1
  837. package/lib/runtime/constant.d.ts +8 -0
  838. package/lib/runtime/constant.js +12 -0
  839. package/lib/runtime/constant.js.map +1 -0
  840. package/lib/runtime/coordinate.d.ts +1 -0
  841. package/lib/runtime/coordinate.js +8 -9
  842. package/lib/runtime/coordinate.js.map +1 -1
  843. package/lib/runtime/index.d.ts +2 -1
  844. package/lib/runtime/index.js +4 -1
  845. package/lib/runtime/index.js.map +1 -1
  846. package/lib/runtime/layout.js +107 -17
  847. package/lib/runtime/layout.js.map +1 -1
  848. package/lib/runtime/mark.js +1 -0
  849. package/lib/runtime/mark.js.map +1 -1
  850. package/lib/runtime/plot.d.ts +2 -0
  851. package/lib/runtime/plot.js +258 -118
  852. package/lib/runtime/plot.js.map +1 -1
  853. package/lib/runtime/render.d.ts +11 -0
  854. package/lib/runtime/render.js +68 -3
  855. package/lib/runtime/render.js.map +1 -1
  856. package/lib/runtime/scale.d.ts +1 -0
  857. package/lib/runtime/scale.js +174 -25
  858. package/lib/runtime/scale.js.map +1 -1
  859. package/lib/runtime/transform.d.ts +1 -0
  860. package/lib/runtime/transform.js +32 -1
  861. package/lib/runtime/transform.js.map +1 -1
  862. package/lib/runtime/types/common.d.ts +16 -39
  863. package/lib/runtime/types/component.d.ts +5 -4
  864. package/lib/runtime/types/options.d.ts +22 -4
  865. package/lib/runtime/types/theme.d.ts +64 -0
  866. package/lib/runtime/types/theme.js +3 -0
  867. package/lib/runtime/types/theme.js.map +1 -0
  868. package/lib/scale/index.d.ts +4 -0
  869. package/lib/scale/index.js +5 -1
  870. package/lib/scale/index.js.map +1 -1
  871. package/lib/scale/sequential.d.ts +4 -0
  872. package/lib/scale/sequential.js +10 -0
  873. package/lib/scale/sequential.js.map +1 -0
  874. package/lib/scale/sqrt.d.ts +4 -0
  875. package/lib/scale/sqrt.js +10 -0
  876. package/lib/scale/sqrt.js.map +1 -0
  877. package/lib/shape/area/area.js +3 -3
  878. package/lib/shape/area/area.js.map +1 -1
  879. package/lib/shape/area/curve.d.ts +8 -0
  880. package/lib/shape/area/curve.js +169 -0
  881. package/lib/shape/area/curve.js.map +1 -0
  882. package/lib/shape/area/smooth.d.ts +5 -0
  883. package/lib/shape/area/smooth.js +27 -0
  884. package/lib/shape/area/smooth.js.map +1 -0
  885. package/lib/shape/area/step.d.ts +3 -0
  886. package/lib/shape/area/step.js +13 -0
  887. package/lib/shape/area/step.js.map +1 -0
  888. package/lib/shape/box/box.js +7 -6
  889. package/lib/shape/box/box.js.map +1 -1
  890. package/lib/shape/connector/connector.d.ts +17 -0
  891. package/lib/shape/connector/connector.js +110 -0
  892. package/lib/shape/connector/connector.js.map +1 -0
  893. package/lib/shape/createElement.d.ts +5 -0
  894. package/lib/shape/createElement.js +20 -0
  895. package/lib/shape/createElement.js.map +1 -0
  896. package/lib/shape/image/image.js +4 -2
  897. package/lib/shape/image/image.js.map +1 -1
  898. package/lib/shape/index.d.ts +16 -16
  899. package/lib/shape/index.js +18 -19
  900. package/lib/shape/index.js.map +1 -1
  901. package/lib/shape/interval/color.d.ts +12 -0
  902. package/lib/shape/interval/color.js +92 -0
  903. package/lib/shape/interval/color.js.map +1 -0
  904. package/lib/shape/interval/funnel.js +2 -2
  905. package/lib/shape/interval/funnel.js.map +1 -1
  906. package/lib/shape/interval/hollow.d.ts +6 -0
  907. package/lib/shape/interval/hollow.js +13 -0
  908. package/lib/shape/interval/hollow.js.map +1 -0
  909. package/lib/shape/interval/rect.js +3 -3
  910. package/lib/shape/interval/rect.js.map +1 -1
  911. package/lib/shape/label/label.js +35 -86
  912. package/lib/shape/label/label.js.map +1 -1
  913. package/lib/shape/label/position.d.ts +25 -0
  914. package/lib/shape/label/position.js +132 -0
  915. package/lib/shape/label/position.js.map +1 -0
  916. package/lib/shape/line/curve.d.ts +8 -0
  917. package/lib/shape/line/curve.js +121 -0
  918. package/lib/shape/line/curve.js.map +1 -0
  919. package/lib/shape/line/hv.js +3 -3
  920. package/lib/shape/line/hv.js.map +1 -1
  921. package/lib/shape/line/hvh.js +3 -3
  922. package/lib/shape/line/hvh.js.map +1 -1
  923. package/lib/shape/line/line.js +3 -3
  924. package/lib/shape/line/line.js.map +1 -1
  925. package/lib/shape/line/smooth.js +3 -3
  926. package/lib/shape/line/smooth.js.map +1 -1
  927. package/lib/shape/line/vh.js +3 -3
  928. package/lib/shape/line/vh.js.map +1 -1
  929. package/lib/shape/lineXY/line.d.ts +3 -0
  930. package/lib/shape/lineXY/line.js +62 -0
  931. package/lib/shape/lineXY/line.js.map +1 -0
  932. package/lib/shape/link/arc.js +4 -2
  933. package/lib/shape/link/arc.js.map +1 -1
  934. package/lib/shape/link/link.js +4 -2
  935. package/lib/shape/link/link.js.map +1 -1
  936. package/lib/shape/link/smooth.d.ts +6 -0
  937. package/lib/shape/link/smooth.js +45 -0
  938. package/lib/shape/link/smooth.js.map +1 -0
  939. package/lib/shape/link/vhv.d.ts +2 -2
  940. package/lib/shape/link/vhv.js +8 -6
  941. package/lib/shape/link/vhv.js.map +1 -1
  942. package/lib/shape/point/bowtie.js +3 -3
  943. package/lib/shape/point/bowtie.js.map +1 -1
  944. package/lib/shape/point/color.d.ts +11 -0
  945. package/lib/shape/point/color.js +93 -0
  946. package/lib/shape/point/color.js.map +1 -0
  947. package/lib/shape/point/cross.js +3 -3
  948. package/lib/shape/point/cross.js.map +1 -1
  949. package/lib/shape/point/diamond.js +3 -3
  950. package/lib/shape/point/diamond.js.map +1 -1
  951. package/lib/shape/point/hexagon.js +3 -3
  952. package/lib/shape/point/hexagon.js.map +1 -1
  953. package/lib/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
  954. package/lib/shape/point/hollow.js +13 -0
  955. package/lib/shape/point/hollow.js.map +1 -0
  956. package/lib/shape/point/hollowBowtie.js +3 -3
  957. package/lib/shape/point/hollowBowtie.js.map +1 -1
  958. package/lib/shape/point/hollowDiamond.js +3 -3
  959. package/lib/shape/point/hollowDiamond.js.map +1 -1
  960. package/lib/shape/point/hollowHexagon.js +3 -3
  961. package/lib/shape/point/hollowHexagon.js.map +1 -1
  962. package/lib/shape/point/hollowSquare.js +3 -3
  963. package/lib/shape/point/hollowSquare.js.map +1 -1
  964. package/lib/shape/point/hollowTriangle.js +3 -3
  965. package/lib/shape/point/hollowTriangle.js.map +1 -1
  966. package/lib/shape/point/hollowTriangleDown.js +3 -3
  967. package/lib/shape/point/hollowTriangleDown.js.map +1 -1
  968. package/lib/shape/point/hyphen.js +3 -3
  969. package/lib/shape/point/hyphen.js.map +1 -1
  970. package/lib/shape/point/line.js +3 -3
  971. package/lib/shape/point/line.js.map +1 -1
  972. package/lib/shape/point/plus.js +3 -3
  973. package/lib/shape/point/plus.js.map +1 -1
  974. package/lib/shape/point/point.js +3 -3
  975. package/lib/shape/point/point.js.map +1 -1
  976. package/lib/shape/point/square.js +3 -3
  977. package/lib/shape/point/square.js.map +1 -1
  978. package/lib/shape/point/symbol.js +3 -2
  979. package/lib/shape/point/symbol.js.map +1 -1
  980. package/lib/shape/point/tick.js +3 -3
  981. package/lib/shape/point/tick.js.map +1 -1
  982. package/lib/shape/point/triangle.js +3 -3
  983. package/lib/shape/point/triangle.js.map +1 -1
  984. package/lib/shape/point/triangleDown.js +3 -3
  985. package/lib/shape/point/triangleDown.js.map +1 -1
  986. package/lib/shape/polygon/polygon.js +5 -4
  987. package/lib/shape/polygon/polygon.js.map +1 -1
  988. package/lib/shape/polygon/ribbon.js +5 -4
  989. package/lib/shape/polygon/ribbon.js.map +1 -1
  990. package/lib/shape/text/badge.d.ts +11 -0
  991. package/lib/shape/text/badge.js +102 -0
  992. package/lib/shape/text/badge.js.map +1 -0
  993. package/lib/shape/text/text.d.ts +15 -1
  994. package/lib/shape/text/text.js +143 -8
  995. package/lib/shape/text/text.js.map +1 -1
  996. package/lib/shape/utils.d.ts +9 -2
  997. package/lib/shape/utils.js +43 -10
  998. package/lib/shape/utils.js.map +1 -1
  999. package/lib/shape/vector/vector.js +5 -4
  1000. package/lib/shape/vector/vector.js.map +1 -1
  1001. package/lib/spec/animate.d.ts +1 -1
  1002. package/lib/spec/composition.d.ts +41 -15
  1003. package/lib/spec/coordinate.d.ts +9 -2
  1004. package/lib/spec/geometry.d.ts +39 -11
  1005. package/lib/spec/index.d.ts +1 -1
  1006. package/lib/spec/index.js +1 -1
  1007. package/lib/spec/index.js.map +1 -1
  1008. package/lib/spec/interaction.d.ts +33 -21
  1009. package/lib/spec/labelTransform.d.ts +10 -0
  1010. package/lib/spec/labelTransform.js +3 -0
  1011. package/lib/spec/labelTransform.js.map +1 -0
  1012. package/lib/spec/palette.d.ts +54 -0
  1013. package/lib/spec/scale.d.ts +12 -5
  1014. package/lib/spec/transform.d.ts +46 -6
  1015. package/lib/stdlib/index.js +140 -92
  1016. package/lib/stdlib/index.js.map +1 -1
  1017. package/lib/theme/dark.d.ts +6 -0
  1018. package/lib/theme/dark.js +250 -0
  1019. package/lib/theme/dark.js.map +1 -0
  1020. package/lib/theme/index.d.ts +1 -0
  1021. package/lib/theme/index.js +3 -1
  1022. package/lib/theme/index.js.map +1 -1
  1023. package/lib/theme/light.d.ts +0 -1
  1024. package/lib/theme/light.js +220 -6
  1025. package/lib/theme/light.js.map +1 -1
  1026. package/lib/transform/diffY.d.ts +8 -0
  1027. package/lib/transform/diffY.js +47 -0
  1028. package/lib/transform/diffY.js.map +1 -0
  1029. package/lib/transform/group.d.ts +10 -0
  1030. package/lib/transform/group.js +105 -0
  1031. package/lib/transform/group.js.map +1 -0
  1032. package/lib/transform/groupColor.d.ts +7 -0
  1033. package/lib/transform/groupColor.js +13 -0
  1034. package/lib/transform/groupColor.js.map +1 -0
  1035. package/lib/transform/groupX.d.ts +0 -2
  1036. package/lib/transform/groupX.js +2 -80
  1037. package/lib/transform/groupX.js.map +1 -1
  1038. package/lib/transform/groupY.d.ts +7 -0
  1039. package/lib/transform/groupY.js +13 -0
  1040. package/lib/transform/groupY.js.map +1 -0
  1041. package/lib/transform/index.d.ts +26 -2
  1042. package/lib/transform/index.js +27 -3
  1043. package/lib/transform/index.js.map +1 -1
  1044. package/lib/transform/jitter.d.ts +1 -0
  1045. package/lib/transform/jitter.js +19 -9
  1046. package/lib/transform/jitter.js.map +1 -1
  1047. package/lib/transform/jitterX.d.ts +8 -0
  1048. package/lib/transform/jitterX.js +29 -0
  1049. package/lib/transform/jitterX.js.map +1 -0
  1050. package/lib/transform/maybeIdentityX.d.ts +7 -0
  1051. package/lib/transform/maybeIdentityX.js +22 -0
  1052. package/lib/transform/maybeIdentityX.js.map +1 -0
  1053. package/lib/transform/maybeIdentityY.d.ts +7 -0
  1054. package/lib/transform/maybeIdentityY.js +22 -0
  1055. package/lib/transform/maybeIdentityY.js.map +1 -0
  1056. package/lib/transform/maybeTupleX.d.ts +7 -0
  1057. package/lib/transform/maybeTupleX.js +20 -0
  1058. package/lib/transform/maybeTupleX.js.map +1 -0
  1059. package/lib/transform/maybeTupleY.d.ts +7 -0
  1060. package/lib/transform/maybeTupleY.js +20 -0
  1061. package/lib/transform/maybeTupleY.js.map +1 -0
  1062. package/lib/transform/maybeZeroPadding.d.ts +6 -0
  1063. package/lib/transform/maybeZeroPadding.js +18 -0
  1064. package/lib/transform/maybeZeroPadding.js.map +1 -0
  1065. package/lib/transform/maybeZeroX.js +1 -0
  1066. package/lib/transform/maybeZeroX.js.map +1 -1
  1067. package/lib/transform/maybeZeroY.js +1 -0
  1068. package/lib/transform/maybeZeroY.js.map +1 -1
  1069. package/lib/transform/normalizeY.js +13 -10
  1070. package/lib/transform/normalizeY.js.map +1 -1
  1071. package/lib/transform/pack.d.ts +8 -0
  1072. package/lib/transform/pack.js +60 -0
  1073. package/lib/transform/pack.js.map +1 -0
  1074. package/lib/transform/sort.d.ts +14 -0
  1075. package/lib/transform/sort.js +68 -0
  1076. package/lib/transform/sort.js.map +1 -0
  1077. package/lib/transform/sortColor.d.ts +7 -0
  1078. package/lib/transform/sortColor.js +13 -0
  1079. package/lib/transform/sortColor.js.map +1 -0
  1080. package/lib/transform/sortX.d.ts +1 -2
  1081. package/lib/transform/sortX.js +3 -54
  1082. package/lib/transform/sortX.js.map +1 -1
  1083. package/lib/transform/sortY.d.ts +7 -0
  1084. package/lib/transform/sortY.js +13 -0
  1085. package/lib/transform/sortY.js.map +1 -0
  1086. package/lib/utils/coordinate.d.ts +2 -0
  1087. package/lib/utils/coordinate.js +12 -2
  1088. package/lib/utils/coordinate.js.map +1 -1
  1089. package/lib/utils/event.d.ts +16 -0
  1090. package/lib/utils/event.js +40 -0
  1091. package/lib/utils/event.js.map +1 -0
  1092. package/lib/utils/helper.d.ts +2 -0
  1093. package/lib/utils/helper.js +14 -1
  1094. package/lib/utils/helper.js.map +1 -1
  1095. package/lib/utils/selection.d.ts +2 -0
  1096. package/lib/utils/selection.js +21 -10
  1097. package/lib/utils/selection.js.map +1 -1
  1098. package/lib/utils/size.d.ts +21 -0
  1099. package/lib/utils/size.js +47 -0
  1100. package/lib/utils/size.js.map +1 -0
  1101. package/lib/utils/string.d.ts +12 -0
  1102. package/lib/utils/string.js +24 -0
  1103. package/lib/utils/string.js.map +1 -0
  1104. package/lib/utils/vector.d.ts +7 -1
  1105. package/lib/utils/vector.js +12 -4
  1106. package/lib/utils/vector.js.map +1 -1
  1107. package/package.json +8 -3
  1108. package/src/.DS_Store +0 -0
  1109. package/src/animation/index.ts +4 -0
  1110. package/src/animation/morphing.ts +3 -25
  1111. package/src/animation/utils.ts +23 -0
  1112. package/src/animation/waveIn.ts +91 -0
  1113. package/src/animation/zoomIn.ts +55 -0
  1114. package/src/animation/zoomOut.ts +50 -0
  1115. package/src/api/chart.ts +87 -12
  1116. package/src/api/composition/facetCircle.ts +43 -0
  1117. package/src/api/composition/facetRect.ts +47 -0
  1118. package/src/api/composition/index.ts +27 -19
  1119. package/src/api/composition/repeatMatrix.ts +46 -0
  1120. package/src/api/composition/spaceFlex.ts +30 -0
  1121. package/src/api/composition/spaceLayer.ts +24 -0
  1122. package/src/api/composition/timingKeyframe.ts +33 -0
  1123. package/src/api/mark/index.ts +24 -24
  1124. package/src/api/mark/mark.ts +43 -49
  1125. package/src/api/mark/types.ts +2 -0
  1126. package/src/api/node.ts +63 -2
  1127. package/src/api/props.ts +34 -15
  1128. package/src/api/types.ts +1 -1
  1129. package/src/component/axis.ts +292 -129
  1130. package/src/component/legendCategory.ts +23 -11
  1131. package/src/component/legendContinuous.ts +5 -3
  1132. package/src/composition/facetCircle.ts +102 -0
  1133. package/src/composition/facetRect.ts +369 -0
  1134. package/src/composition/index.ts +12 -12
  1135. package/src/composition/mark.ts +24 -2
  1136. package/src/composition/repeatMatrix.ts +173 -0
  1137. package/src/composition/spaceFlex.ts +49 -0
  1138. package/src/composition/spaceLayer.ts +26 -0
  1139. package/src/composition/timingKeyframe.ts +90 -0
  1140. package/src/composition/view.ts +16 -7
  1141. package/src/coordinate/index.ts +2 -0
  1142. package/src/coordinate/radial.ts +22 -0
  1143. package/src/data/.DS_Store +0 -0
  1144. package/src/data/index.ts +2 -0
  1145. package/src/data/wordCloud.ts +112 -117
  1146. package/src/interaction/action/service/triggerInfoSelection.ts +1 -1
  1147. package/src/interaction/builtin/activeRegion.ts +1 -0
  1148. package/src/interaction/builtin/brush.ts +1 -0
  1149. package/src/interaction/builtin/brushHighlight.ts +1 -0
  1150. package/src/interaction/builtin/brushVisible.ts +1 -0
  1151. package/src/interaction/builtin/elementActive.ts +1 -0
  1152. package/src/interaction/builtin/elementHighlight.ts +1 -0
  1153. package/src/interaction/builtin/elementHighlightByColor.ts +1 -0
  1154. package/src/interaction/builtin/elementHighlightByX.ts +1 -0
  1155. package/src/interaction/builtin/elementListHighlight.ts +1 -0
  1156. package/src/interaction/builtin/elementSelected.ts +1 -0
  1157. package/src/interaction/builtin/ellipsisText.ts +1 -0
  1158. package/src/interaction/builtin/fisheye.ts +1 -0
  1159. package/src/interaction/builtin/legendActive.ts +1 -0
  1160. package/src/interaction/builtin/legendHighlight.ts +1 -0
  1161. package/src/interaction/builtin/tooltip.ts +1 -0
  1162. package/src/interaction/index.ts +40 -33
  1163. package/src/interaction/native/chartIndex.ts +211 -0
  1164. package/src/interaction/native/elementActive.ts +75 -0
  1165. package/src/interaction/native/elementActiveByColor.ts +23 -0
  1166. package/src/interaction/native/elementActiveByX.ts +25 -0
  1167. package/src/interaction/native/elementSelect.ts +113 -0
  1168. package/src/interaction/native/elementSelectByColor.ts +19 -0
  1169. package/src/interaction/native/elementSelectByX.ts +19 -0
  1170. package/src/interaction/native/fisheye.ts +54 -0
  1171. package/src/interaction/native/utils.ts +201 -0
  1172. package/src/label-transform/dodgeY.ts +75 -0
  1173. package/src/label-transform/hideOverlap.ts +50 -0
  1174. package/src/label-transform/index.ts +5 -0
  1175. package/src/mark/area.ts +86 -0
  1176. package/src/mark/box.ts +105 -0
  1177. package/src/mark/cell.ts +57 -0
  1178. package/src/mark/connector.ts +27 -0
  1179. package/src/mark/image.ts +41 -0
  1180. package/src/mark/index.ts +37 -0
  1181. package/src/mark/interval.ts +83 -0
  1182. package/src/mark/line.ts +99 -0
  1183. package/src/mark/lineX.ts +31 -0
  1184. package/src/mark/lineY.ts +31 -0
  1185. package/src/mark/link.ts +46 -0
  1186. package/src/mark/point.ts +92 -0
  1187. package/src/mark/polygon.ts +54 -0
  1188. package/src/mark/range.ts +56 -0
  1189. package/src/mark/rangeX.ts +23 -0
  1190. package/src/mark/rangeY.ts +23 -0
  1191. package/src/mark/rect.ts +43 -0
  1192. package/src/mark/text.ts +42 -0
  1193. package/src/mark/utils.ts +32 -0
  1194. package/src/mark/vector.ts +56 -0
  1195. package/src/palette/divergingGreenRed.ts +33 -0
  1196. package/src/palette/divergingGreenYellow.ts +36 -0
  1197. package/src/palette/divergingRedBlue.ts +33 -0
  1198. package/src/palette/divergingRedPurple.ts +33 -0
  1199. package/src/palette/index.ts +36 -0
  1200. package/src/palette/sequentialBlue.ts +23 -0
  1201. package/src/palette/sequentialDarkBlue.ts +25 -0
  1202. package/src/palette/sequentialDarkGreen.ts +28 -0
  1203. package/src/palette/sequentialGreen.ts +23 -0
  1204. package/src/palette/sequentialGreenBlue.ts +28 -0
  1205. package/src/palette/sequentialGrey.ts +23 -0
  1206. package/src/palette/sequentialOrange.ts +25 -0
  1207. package/src/palette/sequentialPink.ts +23 -0
  1208. package/src/palette/sequentialPinkPurple.ts +28 -0
  1209. package/src/palette/sequentialPurple.ts +25 -0
  1210. package/src/palette/sequentialRed.ts +23 -0
  1211. package/src/palette/sequentialYellow.ts +25 -0
  1212. package/src/palette/sequentialYellowGreen.ts +28 -0
  1213. package/src/palette/sequentialYellowOrange.ts +28 -0
  1214. package/src/runtime/component.ts +37 -18
  1215. package/src/runtime/constant.ts +8 -0
  1216. package/src/runtime/coordinate.ts +22 -6
  1217. package/src/runtime/index.ts +2 -1
  1218. package/src/runtime/layout.ts +158 -21
  1219. package/src/runtime/mark.ts +2 -0
  1220. package/src/runtime/plot.ts +342 -157
  1221. package/src/runtime/render.ts +105 -5
  1222. package/src/runtime/scale.ts +193 -34
  1223. package/src/runtime/transform.ts +37 -0
  1224. package/src/runtime/types/common.ts +22 -41
  1225. package/src/runtime/types/component.ts +7 -8
  1226. package/src/runtime/types/options.ts +23 -4
  1227. package/src/runtime/types/theme.ts +97 -0
  1228. package/src/scale/index.ts +4 -0
  1229. package/src/scale/sequential.ts +11 -0
  1230. package/src/scale/sqrt.ts +11 -0
  1231. package/src/shape/area/area.ts +3 -3
  1232. package/src/shape/area/curve.ts +202 -0
  1233. package/src/shape/area/smooth.ts +25 -0
  1234. package/src/shape/area/step.ts +15 -0
  1235. package/src/shape/box/box.ts +13 -7
  1236. package/src/shape/connector/connector.ts +155 -0
  1237. package/src/shape/createElement.ts +25 -0
  1238. package/src/shape/image/image.ts +10 -3
  1239. package/src/shape/index.ts +16 -22
  1240. package/src/shape/interval/color.ts +108 -0
  1241. package/src/shape/interval/funnel.ts +2 -2
  1242. package/src/shape/interval/hollow.ts +15 -0
  1243. package/src/shape/interval/pyramid.ts +1 -1
  1244. package/src/shape/interval/rect.ts +3 -3
  1245. package/src/shape/label/label.ts +19 -117
  1246. package/src/shape/label/position.ts +181 -0
  1247. package/src/shape/line/curve.ts +147 -0
  1248. package/src/shape/line/hv.ts +3 -3
  1249. package/src/shape/line/hvh.ts +3 -3
  1250. package/src/shape/line/line.ts +3 -3
  1251. package/src/shape/line/smooth.ts +3 -3
  1252. package/src/shape/line/vh.ts +3 -3
  1253. package/src/shape/lineXY/line.ts +62 -0
  1254. package/src/shape/link/arc.ts +10 -3
  1255. package/src/shape/link/link.ts +10 -3
  1256. package/src/shape/link/smooth.ts +48 -0
  1257. package/src/shape/link/vhv.ts +13 -6
  1258. package/src/shape/point/bowtie.ts +3 -3
  1259. package/src/shape/point/color.ts +73 -0
  1260. package/src/shape/point/cross.ts +3 -3
  1261. package/src/shape/point/diamond.ts +3 -3
  1262. package/src/shape/point/hexagon.ts +3 -3
  1263. package/src/shape/point/hollow.ts +15 -0
  1264. package/src/shape/point/hollowBowtie.ts +3 -3
  1265. package/src/shape/point/hollowDiamond.ts +3 -3
  1266. package/src/shape/point/hollowHexagon.ts +3 -3
  1267. package/src/shape/point/hollowSquare.ts +3 -3
  1268. package/src/shape/point/hollowTriangle.ts +3 -3
  1269. package/src/shape/point/hollowTriangleDown.ts +3 -3
  1270. package/src/shape/point/hyphen.ts +3 -3
  1271. package/src/shape/point/line.ts +3 -3
  1272. package/src/shape/point/plus.ts +3 -3
  1273. package/src/shape/point/point.ts +3 -3
  1274. package/src/shape/point/square.ts +3 -3
  1275. package/src/shape/point/symbol.ts +3 -2
  1276. package/src/shape/point/tick.ts +3 -3
  1277. package/src/shape/point/triangle.ts +3 -3
  1278. package/src/shape/point/triangleDown.ts +3 -3
  1279. package/src/shape/polygon/polygon.ts +11 -5
  1280. package/src/shape/polygon/ribbon.ts +11 -5
  1281. package/src/shape/text/badge.ts +126 -0
  1282. package/src/shape/text/text.ts +221 -21
  1283. package/src/shape/utils.ts +62 -12
  1284. package/src/shape/vector/vector.ts +11 -5
  1285. package/src/spec/action.ts +1 -0
  1286. package/src/spec/animate.ts +1 -0
  1287. package/src/spec/composition.ts +46 -20
  1288. package/src/spec/coordinate.ts +16 -2
  1289. package/src/spec/geometry.ts +66 -33
  1290. package/src/spec/index.ts +1 -1
  1291. package/src/spec/interaction.ts +50 -29
  1292. package/src/spec/labelTransform.ts +12 -0
  1293. package/src/spec/palette.ts +80 -0
  1294. package/src/spec/scale.ts +17 -4
  1295. package/src/spec/transform.ts +78 -5
  1296. package/src/stdlib/index.ts +212 -118
  1297. package/src/theme/dark.ts +250 -0
  1298. package/src/theme/index.ts +1 -0
  1299. package/src/theme/light.ts +220 -6
  1300. package/src/transform/diffY.ts +52 -0
  1301. package/src/transform/group.ts +124 -0
  1302. package/src/transform/groupColor.ts +14 -0
  1303. package/src/transform/groupX.ts +4 -99
  1304. package/src/transform/groupY.ts +14 -0
  1305. package/src/transform/index.ts +26 -2
  1306. package/src/transform/jitter.ts +24 -5
  1307. package/src/transform/jitterX.ts +30 -0
  1308. package/src/transform/maybeIdentityX.ts +21 -0
  1309. package/src/transform/maybeIdentityY.ts +21 -0
  1310. package/src/transform/maybeTupleX.ts +19 -0
  1311. package/src/transform/maybeTupleY.ts +19 -0
  1312. package/src/transform/maybeZeroPadding.ts +19 -0
  1313. package/src/transform/maybeZeroX.ts +1 -0
  1314. package/src/transform/maybeZeroY.ts +1 -0
  1315. package/src/transform/normalizeY.ts +13 -11
  1316. package/src/transform/pack.ts +69 -0
  1317. package/src/transform/sort.ts +63 -0
  1318. package/src/transform/sortColor.ts +14 -0
  1319. package/src/transform/sortX.ts +3 -37
  1320. package/src/transform/sortY.ts +14 -0
  1321. package/src/utils/coordinate.ts +13 -1
  1322. package/src/utils/event.ts +46 -0
  1323. package/src/utils/helper.ts +19 -0
  1324. package/src/utils/selection.ts +22 -9
  1325. package/src/utils/size.ts +61 -0
  1326. package/src/utils/string.ts +19 -0
  1327. package/src/utils/vector.ts +11 -3
  1328. package/esm/adjust/index.d.ts +0 -2
  1329. package/esm/adjust/index.js +0 -2
  1330. package/esm/adjust/index.js.map +0 -1
  1331. package/esm/adjust/pack.d.ts +0 -8
  1332. package/esm/adjust/pack.js +0 -55
  1333. package/esm/adjust/pack.js.map +0 -1
  1334. package/esm/api/composition/circle.d.ts +0 -21
  1335. package/esm/api/composition/circle.js +0 -30
  1336. package/esm/api/composition/circle.js.map +0 -1
  1337. package/esm/api/composition/flex.d.ts +0 -17
  1338. package/esm/api/composition/flex.js +0 -26
  1339. package/esm/api/composition/flex.js.map +0 -1
  1340. package/esm/api/composition/keyframe.d.ts +0 -17
  1341. package/esm/api/composition/keyframe.js +0 -26
  1342. package/esm/api/composition/keyframe.js.map +0 -1
  1343. package/esm/api/composition/layer.d.ts +0 -14
  1344. package/esm/api/composition/layer.js +0 -23
  1345. package/esm/api/composition/layer.js.map +0 -1
  1346. package/esm/api/composition/matrix.d.ts +0 -21
  1347. package/esm/api/composition/matrix.js +0 -30
  1348. package/esm/api/composition/matrix.js.map +0 -1
  1349. package/esm/api/composition/rect.d.ts +0 -23
  1350. package/esm/api/composition/rect.js +0 -32
  1351. package/esm/api/composition/rect.js.map +0 -1
  1352. package/esm/composition/circle.d.ts +0 -7
  1353. package/esm/composition/circle.js +0 -85
  1354. package/esm/composition/circle.js.map +0 -1
  1355. package/esm/composition/flex.d.ts +0 -7
  1356. package/esm/composition/flex.js +0 -40
  1357. package/esm/composition/flex.js.map +0 -1
  1358. package/esm/composition/keyframe.d.ts +0 -7
  1359. package/esm/composition/keyframe.js +0 -75
  1360. package/esm/composition/keyframe.js.map +0 -1
  1361. package/esm/composition/layer.d.ts +0 -7
  1362. package/esm/composition/layer.js +0 -32
  1363. package/esm/composition/layer.js.map +0 -1
  1364. package/esm/composition/matrix.d.ts +0 -8
  1365. package/esm/composition/matrix.js +0 -151
  1366. package/esm/composition/matrix.js.map +0 -1
  1367. package/esm/composition/rect.d.ts +0 -30
  1368. package/esm/composition/rect.js +0 -286
  1369. package/esm/composition/rect.js.map +0 -1
  1370. package/esm/labelLayout/hideOverlap.d.ts +0 -2
  1371. package/esm/labelLayout/hideOverlap.js.map +0 -1
  1372. package/esm/labelLayout/index.d.ts +0 -1
  1373. package/esm/labelLayout/index.js +0 -2
  1374. package/esm/labelLayout/index.js.map +0 -1
  1375. package/esm/mark/annotation/connector.d.ts +0 -4
  1376. package/esm/mark/annotation/connector.js +0 -18
  1377. package/esm/mark/annotation/connector.js.map +0 -1
  1378. package/esm/mark/annotation/index.d.ts +0 -14
  1379. package/esm/mark/annotation/index.js +0 -8
  1380. package/esm/mark/annotation/index.js.map +0 -1
  1381. package/esm/mark/annotation/lineX.d.ts +0 -4
  1382. package/esm/mark/annotation/lineX.js +0 -21
  1383. package/esm/mark/annotation/lineX.js.map +0 -1
  1384. package/esm/mark/annotation/lineY.d.ts +0 -4
  1385. package/esm/mark/annotation/lineY.js +0 -21
  1386. package/esm/mark/annotation/lineY.js.map +0 -1
  1387. package/esm/mark/annotation/range.d.ts +0 -8
  1388. package/esm/mark/annotation/range.js +0 -44
  1389. package/esm/mark/annotation/range.js.map +0 -1
  1390. package/esm/mark/annotation/rangeX.d.ts +0 -4
  1391. package/esm/mark/annotation/rangeX.js +0 -14
  1392. package/esm/mark/annotation/rangeX.js.map +0 -1
  1393. package/esm/mark/annotation/rangeY.d.ts +0 -4
  1394. package/esm/mark/annotation/rangeY.js +0 -14
  1395. package/esm/mark/annotation/rangeY.js.map +0 -1
  1396. package/esm/mark/annotation/text.d.ts +0 -4
  1397. package/esm/mark/annotation/text.js +0 -21
  1398. package/esm/mark/annotation/text.js.map +0 -1
  1399. package/esm/mark/geometry/area.d.ts +0 -4
  1400. package/esm/mark/geometry/area.js +0 -70
  1401. package/esm/mark/geometry/area.js.map +0 -1
  1402. package/esm/mark/geometry/box.d.ts +0 -34
  1403. package/esm/mark/geometry/box.js +0 -90
  1404. package/esm/mark/geometry/box.js.map +0 -1
  1405. package/esm/mark/geometry/grid.d.ts +0 -9
  1406. package/esm/mark/geometry/grid.js +0 -46
  1407. package/esm/mark/geometry/grid.js.map +0 -1
  1408. package/esm/mark/geometry/image.d.ts +0 -4
  1409. package/esm/mark/geometry/image.js +0 -35
  1410. package/esm/mark/geometry/image.js.map +0 -1
  1411. package/esm/mark/geometry/index.d.ts +0 -22
  1412. package/esm/mark/geometry/index.js +0 -12
  1413. package/esm/mark/geometry/index.js.map +0 -1
  1414. package/esm/mark/geometry/interval.d.ts +0 -12
  1415. package/esm/mark/geometry/interval.js +0 -58
  1416. package/esm/mark/geometry/interval.js.map +0 -1
  1417. package/esm/mark/geometry/line.d.ts +0 -7
  1418. package/esm/mark/geometry/line.js +0 -80
  1419. package/esm/mark/geometry/line.js.map +0 -1
  1420. package/esm/mark/geometry/link.d.ts +0 -7
  1421. package/esm/mark/geometry/link.js +0 -33
  1422. package/esm/mark/geometry/link.js.map +0 -1
  1423. package/esm/mark/geometry/point.d.ts +0 -10
  1424. package/esm/mark/geometry/point.js +0 -75
  1425. package/esm/mark/geometry/point.js.map +0 -1
  1426. package/esm/mark/geometry/polygon.d.ts +0 -7
  1427. package/esm/mark/geometry/polygon.js +0 -43
  1428. package/esm/mark/geometry/polygon.js.map +0 -1
  1429. package/esm/mark/geometry/text.d.ts +0 -4
  1430. package/esm/mark/geometry/text.js +0 -35
  1431. package/esm/mark/geometry/text.js.map +0 -1
  1432. package/esm/mark/geometry/vector.d.ts +0 -8
  1433. package/esm/mark/geometry/vector.js +0 -43
  1434. package/esm/mark/geometry/vector.js.map +0 -1
  1435. package/esm/shape/annotation/badge.d.ts +0 -14
  1436. package/esm/shape/annotation/badge.js +0 -93
  1437. package/esm/shape/annotation/badge.js.map +0 -1
  1438. package/esm/shape/annotation/connector.d.ts +0 -15
  1439. package/esm/shape/annotation/connector.js +0 -101
  1440. package/esm/shape/annotation/connector.js.map +0 -1
  1441. package/esm/shape/annotation/line.d.ts +0 -3
  1442. package/esm/shape/annotation/line.js +0 -56
  1443. package/esm/shape/annotation/line.js.map +0 -1
  1444. package/esm/shape/annotation/text.d.ts +0 -20
  1445. package/esm/shape/annotation/text.js +0 -174
  1446. package/esm/shape/annotation/text.js.map +0 -1
  1447. package/esm/shape/area/curveArea.d.ts +0 -8
  1448. package/esm/shape/area/curveArea.js +0 -60
  1449. package/esm/shape/area/curveArea.js.map +0 -1
  1450. package/esm/shape/area/smoothArea.d.ts +0 -5
  1451. package/esm/shape/area/smoothArea.js +0 -23
  1452. package/esm/shape/area/smoothArea.js.map +0 -1
  1453. package/esm/shape/interval/colorRect.d.ts +0 -14
  1454. package/esm/shape/interval/colorRect.js +0 -62
  1455. package/esm/shape/interval/colorRect.js.map +0 -1
  1456. package/esm/shape/interval/hollowRect.d.ts +0 -6
  1457. package/esm/shape/interval/hollowRect.js +0 -9
  1458. package/esm/shape/interval/hollowRect.js.map +0 -1
  1459. package/esm/shape/line/curveLine.d.ts +0 -8
  1460. package/esm/shape/line/curveLine.js +0 -41
  1461. package/esm/shape/line/curveLine.js.map +0 -1
  1462. package/esm/shape/link/smoothEdge.d.ts +0 -6
  1463. package/esm/shape/link/smoothEdge.js +0 -39
  1464. package/esm/shape/link/smoothEdge.js.map +0 -1
  1465. package/esm/shape/point/colorPoint.d.ts +0 -11
  1466. package/esm/shape/point/colorPoint.js +0 -59
  1467. package/esm/shape/point/colorPoint.js.map +0 -1
  1468. package/esm/shape/point/hollowPoint.js +0 -9
  1469. package/esm/shape/point/hollowPoint.js.map +0 -1
  1470. package/esm/spec/labelLayout.d.ts +0 -4
  1471. package/esm/spec/labelLayout.js +0 -2
  1472. package/esm/spec/labelLayout.js.map +0 -1
  1473. package/esm/transform/jitterY.d.ts +0 -8
  1474. package/esm/transform/jitterY.js +0 -21
  1475. package/esm/transform/jitterY.js.map +0 -1
  1476. package/lib/adjust/index.d.ts +0 -2
  1477. package/lib/adjust/index.js +0 -6
  1478. package/lib/adjust/index.js.map +0 -1
  1479. package/lib/adjust/pack.d.ts +0 -8
  1480. package/lib/adjust/pack.js +0 -59
  1481. package/lib/adjust/pack.js.map +0 -1
  1482. package/lib/api/composition/circle.d.ts +0 -21
  1483. package/lib/api/composition/circle.js +0 -33
  1484. package/lib/api/composition/circle.js.map +0 -1
  1485. package/lib/api/composition/flex.d.ts +0 -17
  1486. package/lib/api/composition/flex.js +0 -29
  1487. package/lib/api/composition/flex.js.map +0 -1
  1488. package/lib/api/composition/keyframe.d.ts +0 -17
  1489. package/lib/api/composition/keyframe.js +0 -29
  1490. package/lib/api/composition/keyframe.js.map +0 -1
  1491. package/lib/api/composition/layer.d.ts +0 -14
  1492. package/lib/api/composition/layer.js +0 -26
  1493. package/lib/api/composition/layer.js.map +0 -1
  1494. package/lib/api/composition/matrix.d.ts +0 -21
  1495. package/lib/api/composition/matrix.js +0 -33
  1496. package/lib/api/composition/matrix.js.map +0 -1
  1497. package/lib/api/composition/rect.d.ts +0 -23
  1498. package/lib/api/composition/rect.js +0 -35
  1499. package/lib/api/composition/rect.js.map +0 -1
  1500. package/lib/composition/circle.d.ts +0 -7
  1501. package/lib/composition/circle.js +0 -89
  1502. package/lib/composition/circle.js.map +0 -1
  1503. package/lib/composition/flex.d.ts +0 -7
  1504. package/lib/composition/flex.js +0 -44
  1505. package/lib/composition/flex.js.map +0 -1
  1506. package/lib/composition/keyframe.d.ts +0 -7
  1507. package/lib/composition/keyframe.js +0 -79
  1508. package/lib/composition/keyframe.js.map +0 -1
  1509. package/lib/composition/layer.d.ts +0 -7
  1510. package/lib/composition/layer.js +0 -36
  1511. package/lib/composition/layer.js.map +0 -1
  1512. package/lib/composition/matrix.d.ts +0 -8
  1513. package/lib/composition/matrix.js +0 -155
  1514. package/lib/composition/matrix.js.map +0 -1
  1515. package/lib/composition/rect.d.ts +0 -30
  1516. package/lib/composition/rect.js +0 -291
  1517. package/lib/composition/rect.js.map +0 -1
  1518. package/lib/labelLayout/hideOverlap.d.ts +0 -2
  1519. package/lib/labelLayout/hideOverlap.js.map +0 -1
  1520. package/lib/labelLayout/index.d.ts +0 -1
  1521. package/lib/labelLayout/index.js +0 -6
  1522. package/lib/labelLayout/index.js.map +0 -1
  1523. package/lib/mark/annotation/connector.d.ts +0 -4
  1524. package/lib/mark/annotation/connector.js +0 -22
  1525. package/lib/mark/annotation/connector.js.map +0 -1
  1526. package/lib/mark/annotation/index.d.ts +0 -14
  1527. package/lib/mark/annotation/index.js +0 -18
  1528. package/lib/mark/annotation/index.js.map +0 -1
  1529. package/lib/mark/annotation/lineX.d.ts +0 -4
  1530. package/lib/mark/annotation/lineX.js +0 -25
  1531. package/lib/mark/annotation/lineX.js.map +0 -1
  1532. package/lib/mark/annotation/lineY.d.ts +0 -4
  1533. package/lib/mark/annotation/lineY.js +0 -25
  1534. package/lib/mark/annotation/lineY.js.map +0 -1
  1535. package/lib/mark/annotation/range.d.ts +0 -8
  1536. package/lib/mark/annotation/range.js +0 -49
  1537. package/lib/mark/annotation/range.js.map +0 -1
  1538. package/lib/mark/annotation/rangeX.d.ts +0 -4
  1539. package/lib/mark/annotation/rangeX.js +0 -18
  1540. package/lib/mark/annotation/rangeX.js.map +0 -1
  1541. package/lib/mark/annotation/rangeY.d.ts +0 -4
  1542. package/lib/mark/annotation/rangeY.js +0 -18
  1543. package/lib/mark/annotation/rangeY.js.map +0 -1
  1544. package/lib/mark/annotation/text.d.ts +0 -4
  1545. package/lib/mark/annotation/text.js +0 -25
  1546. package/lib/mark/annotation/text.js.map +0 -1
  1547. package/lib/mark/geometry/area.d.ts +0 -4
  1548. package/lib/mark/geometry/area.js +0 -74
  1549. package/lib/mark/geometry/area.js.map +0 -1
  1550. package/lib/mark/geometry/box.d.ts +0 -34
  1551. package/lib/mark/geometry/box.js +0 -94
  1552. package/lib/mark/geometry/box.js.map +0 -1
  1553. package/lib/mark/geometry/grid.d.ts +0 -9
  1554. package/lib/mark/geometry/grid.js +0 -50
  1555. package/lib/mark/geometry/grid.js.map +0 -1
  1556. package/lib/mark/geometry/image.d.ts +0 -4
  1557. package/lib/mark/geometry/image.js +0 -39
  1558. package/lib/mark/geometry/image.js.map +0 -1
  1559. package/lib/mark/geometry/index.d.ts +0 -22
  1560. package/lib/mark/geometry/index.js +0 -26
  1561. package/lib/mark/geometry/index.js.map +0 -1
  1562. package/lib/mark/geometry/interval.d.ts +0 -12
  1563. package/lib/mark/geometry/interval.js +0 -62
  1564. package/lib/mark/geometry/interval.js.map +0 -1
  1565. package/lib/mark/geometry/line.d.ts +0 -7
  1566. package/lib/mark/geometry/line.js +0 -84
  1567. package/lib/mark/geometry/line.js.map +0 -1
  1568. package/lib/mark/geometry/link.d.ts +0 -7
  1569. package/lib/mark/geometry/link.js +0 -37
  1570. package/lib/mark/geometry/link.js.map +0 -1
  1571. package/lib/mark/geometry/point.d.ts +0 -10
  1572. package/lib/mark/geometry/point.js +0 -79
  1573. package/lib/mark/geometry/point.js.map +0 -1
  1574. package/lib/mark/geometry/polygon.d.ts +0 -7
  1575. package/lib/mark/geometry/polygon.js +0 -47
  1576. package/lib/mark/geometry/polygon.js.map +0 -1
  1577. package/lib/mark/geometry/text.d.ts +0 -4
  1578. package/lib/mark/geometry/text.js +0 -39
  1579. package/lib/mark/geometry/text.js.map +0 -1
  1580. package/lib/mark/geometry/vector.d.ts +0 -8
  1581. package/lib/mark/geometry/vector.js +0 -47
  1582. package/lib/mark/geometry/vector.js.map +0 -1
  1583. package/lib/shape/annotation/badge.d.ts +0 -14
  1584. package/lib/shape/annotation/badge.js +0 -97
  1585. package/lib/shape/annotation/badge.js.map +0 -1
  1586. package/lib/shape/annotation/connector.d.ts +0 -15
  1587. package/lib/shape/annotation/connector.js +0 -105
  1588. package/lib/shape/annotation/connector.js.map +0 -1
  1589. package/lib/shape/annotation/line.d.ts +0 -3
  1590. package/lib/shape/annotation/line.js +0 -60
  1591. package/lib/shape/annotation/line.js.map +0 -1
  1592. package/lib/shape/annotation/text.d.ts +0 -20
  1593. package/lib/shape/annotation/text.js +0 -178
  1594. package/lib/shape/annotation/text.js.map +0 -1
  1595. package/lib/shape/area/curveArea.d.ts +0 -8
  1596. package/lib/shape/area/curveArea.js +0 -64
  1597. package/lib/shape/area/curveArea.js.map +0 -1
  1598. package/lib/shape/area/smoothArea.d.ts +0 -5
  1599. package/lib/shape/area/smoothArea.js +0 -27
  1600. package/lib/shape/area/smoothArea.js.map +0 -1
  1601. package/lib/shape/interval/colorRect.d.ts +0 -14
  1602. package/lib/shape/interval/colorRect.js +0 -66
  1603. package/lib/shape/interval/colorRect.js.map +0 -1
  1604. package/lib/shape/interval/hollowRect.d.ts +0 -6
  1605. package/lib/shape/interval/hollowRect.js +0 -13
  1606. package/lib/shape/interval/hollowRect.js.map +0 -1
  1607. package/lib/shape/line/curveLine.d.ts +0 -8
  1608. package/lib/shape/line/curveLine.js +0 -45
  1609. package/lib/shape/line/curveLine.js.map +0 -1
  1610. package/lib/shape/link/smoothEdge.d.ts +0 -6
  1611. package/lib/shape/link/smoothEdge.js +0 -43
  1612. package/lib/shape/link/smoothEdge.js.map +0 -1
  1613. package/lib/shape/point/colorPoint.d.ts +0 -11
  1614. package/lib/shape/point/colorPoint.js +0 -86
  1615. package/lib/shape/point/colorPoint.js.map +0 -1
  1616. package/lib/shape/point/hollowPoint.js +0 -13
  1617. package/lib/shape/point/hollowPoint.js.map +0 -1
  1618. package/lib/spec/labelLayout.d.ts +0 -4
  1619. package/lib/spec/labelLayout.js +0 -3
  1620. package/lib/spec/labelLayout.js.map +0 -1
  1621. package/lib/transform/jitterY.d.ts +0 -8
  1622. package/lib/transform/jitterY.js +0 -25
  1623. package/lib/transform/jitterY.js.map +0 -1
  1624. package/src/adjust/index.ts +0 -2
  1625. package/src/adjust/pack.ts +0 -67
  1626. package/src/api/composition/circle.ts +0 -43
  1627. package/src/api/composition/flex.ts +0 -30
  1628. package/src/api/composition/keyframe.ts +0 -30
  1629. package/src/api/composition/layer.ts +0 -24
  1630. package/src/api/composition/matrix.ts +0 -43
  1631. package/src/api/composition/rect.ts +0 -47
  1632. package/src/composition/circle.ts +0 -102
  1633. package/src/composition/flex.ts +0 -49
  1634. package/src/composition/keyframe.ts +0 -90
  1635. package/src/composition/layer.ts +0 -26
  1636. package/src/composition/matrix.ts +0 -170
  1637. package/src/composition/rect.ts +0 -339
  1638. package/src/labelLayout/hideOverlap.ts +0 -47
  1639. package/src/labelLayout/index.ts +0 -1
  1640. package/src/mark/annotation/connector.ts +0 -27
  1641. package/src/mark/annotation/index.ts +0 -15
  1642. package/src/mark/annotation/lineX.ts +0 -31
  1643. package/src/mark/annotation/lineY.ts +0 -31
  1644. package/src/mark/annotation/range.ts +0 -55
  1645. package/src/mark/annotation/rangeX.ts +0 -23
  1646. package/src/mark/annotation/rangeY.ts +0 -23
  1647. package/src/mark/annotation/text.ts +0 -30
  1648. package/src/mark/geometry/area.ts +0 -85
  1649. package/src/mark/geometry/box.ts +0 -105
  1650. package/src/mark/geometry/grid.ts +0 -56
  1651. package/src/mark/geometry/image.ts +0 -42
  1652. package/src/mark/geometry/index.ts +0 -23
  1653. package/src/mark/geometry/interval.ts +0 -70
  1654. package/src/mark/geometry/line.ts +0 -99
  1655. package/src/mark/geometry/link.ts +0 -44
  1656. package/src/mark/geometry/point.ts +0 -83
  1657. package/src/mark/geometry/polygon.ts +0 -54
  1658. package/src/mark/geometry/text.ts +0 -43
  1659. package/src/mark/geometry/vector.ts +0 -56
  1660. package/src/shape/annotation/badge.ts +0 -114
  1661. package/src/shape/annotation/connector.ts +0 -138
  1662. package/src/shape/annotation/line.ts +0 -55
  1663. package/src/shape/annotation/text.ts +0 -236
  1664. package/src/shape/area/curveArea.ts +0 -61
  1665. package/src/shape/area/smoothArea.ts +0 -25
  1666. package/src/shape/interval/colorRect.ts +0 -62
  1667. package/src/shape/interval/hollowRect.ts +0 -15
  1668. package/src/shape/line/curveLine.ts +0 -44
  1669. package/src/shape/link/smoothEdge.ts +0 -41
  1670. package/src/shape/point/colorPoint.ts +0 -65
  1671. package/src/shape/point/hollowPoint.ts +0 -15
  1672. package/src/spec/labelLayout.ts +0 -5
  1673. package/src/transform/jitterY.ts +0 -26
@@ -8,19 +8,31 @@ export { MaybeZeroY } from './maybeZeroY';
8
8
  export { MaybeSize } from './maybeSize';
9
9
  export { MaybeKey } from './maybeKey';
10
10
  export { MaybeSeries } from './maybeSeries';
11
+ export { MaybeTupleY } from './maybeTupleY';
12
+ export { MaybeTupleX } from './maybeTupleX';
13
+ export { MaybeIdentityY } from './maybeIdentityY';
14
+ export { MaybeIdentityX } from './maybeIdentityX';
15
+ export { MaybeZeroPadding } from './maybeZeroPadding';
11
16
  export { StackY } from './stackY';
12
17
  export { DodgeX } from './dodgeX';
13
18
  export { StackEnter } from './stackEnter';
14
19
  export { NormalizeY } from './normalizeY';
15
20
  export { Jitter } from './jitter';
16
- export { JitterY } from './jitterY';
21
+ export { JitterX } from './jitterX';
17
22
  export { SymmetryY } from './symmetryY';
23
+ export { DiffY } from './diffY';
18
24
  export { Select } from './Select';
19
25
  export { SelectX } from './SelectX';
20
26
  export { SelectY } from './SelectY';
21
27
  export { GroupX } from './groupX';
28
+ export { GroupY } from './groupY';
29
+ export { Group } from './group';
30
+ export { GroupColor } from './groupColor';
22
31
  export { SortX } from './sortX';
32
+ export { SortColor } from './sortColor';
33
+ export { SortY } from './sortY';
23
34
  export { FlexX } from './flexX';
35
+ export { Pack } from './pack';
24
36
  export type { MaybeZeroY1Options } from './maybeZeroY1';
25
37
  export type { MaybeStackYOptions } from './maybeStackY';
26
38
  export type { MaybeTitleXOptions } from './maybeTitleX';
@@ -31,16 +43,28 @@ export type { MaybeZeroYOptions } from './maybeZeroY';
31
43
  export type { MaybeSizeOptions } from './maybeSize';
32
44
  export type { MaybeKeyOptions } from './maybeKey';
33
45
  export type { MaybeSeriesOptions } from './maybeSeries';
46
+ export type { MaybeTupleYOptions } from './maybeTupleY';
47
+ export type { MaybeTupleXOptions } from './maybeTupleX';
48
+ export type { MaybeIdentityYOptions } from './maybeIdentityY';
49
+ export type { MaybeIdentityXOptions } from './maybeIdentityX';
50
+ export type { MaybeZeroPaddingOptions } from './maybeZeroPadding';
34
51
  export type { StackYOptions } from './stackY';
35
52
  export type { DodgeXOptions } from './dodgeX';
36
53
  export type { StackEnterOptions } from './stackEnter';
37
54
  export type { NormalizeYOptions } from './normalizeY';
38
55
  export type { JitterOptions } from './jitter';
39
- export type { JitterYOptions } from './jitterY';
56
+ export type { JitterXOptions } from './jitterX';
40
57
  export type { SymmetryYOptions } from './symmetryY';
58
+ export type { DiffYOptions } from './diffY';
41
59
  export type { SelectOptions } from './Select';
42
60
  export type { SelectXOptions } from './SelectX';
43
61
  export type { SelectYOptions } from './SelectY';
44
62
  export type { GroupXOptions } from './groupX';
63
+ export type { GroupYOptions } from './groupY';
64
+ export type { GroupOptions } from './group';
65
+ export type { GroupColorOptions } from './groupColor';
45
66
  export type { SortXOptions } from './sortX';
67
+ export type { SortYOptions } from './sortY';
68
+ export type { SortColorOptions } from './sortColor';
46
69
  export type { FlexXOptions } from './flexX';
70
+ export type { PackOptions } from './pack';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlexX = exports.SortX = exports.GroupX = exports.SelectY = exports.SelectX = exports.Select = exports.SymmetryY = exports.JitterY = exports.Jitter = exports.NormalizeY = exports.StackEnter = exports.DodgeX = exports.StackY = exports.MaybeSeries = exports.MaybeKey = exports.MaybeSize = exports.MaybeZeroY = exports.MaybeZeroX = exports.MaybeTooltipY = exports.MaybeTooltipPosition = exports.MaybeTitleX = exports.MaybeStackY = exports.MaybeZeroY1 = void 0;
3
+ exports.Pack = exports.FlexX = exports.SortY = exports.SortColor = exports.SortX = exports.GroupColor = exports.Group = exports.GroupY = exports.GroupX = exports.SelectY = exports.SelectX = exports.Select = exports.DiffY = exports.SymmetryY = exports.JitterX = exports.Jitter = exports.NormalizeY = exports.StackEnter = exports.DodgeX = exports.StackY = exports.MaybeZeroPadding = exports.MaybeIdentityX = exports.MaybeIdentityY = exports.MaybeTupleX = exports.MaybeTupleY = exports.MaybeSeries = exports.MaybeKey = exports.MaybeSize = exports.MaybeZeroY = exports.MaybeZeroX = exports.MaybeTooltipY = exports.MaybeTooltipPosition = exports.MaybeTitleX = exports.MaybeStackY = exports.MaybeZeroY1 = void 0;
4
4
  var maybeZeroY1_1 = require("./maybeZeroY1");
5
5
  Object.defineProperty(exports, "MaybeZeroY1", { enumerable: true, get: function () { return maybeZeroY1_1.MaybeZeroY1; } });
6
6
  var maybeStackY_1 = require("./maybeStackY");
@@ -21,6 +21,16 @@ var maybeKey_1 = require("./maybeKey");
21
21
  Object.defineProperty(exports, "MaybeKey", { enumerable: true, get: function () { return maybeKey_1.MaybeKey; } });
22
22
  var maybeSeries_1 = require("./maybeSeries");
23
23
  Object.defineProperty(exports, "MaybeSeries", { enumerable: true, get: function () { return maybeSeries_1.MaybeSeries; } });
24
+ var maybeTupleY_1 = require("./maybeTupleY");
25
+ Object.defineProperty(exports, "MaybeTupleY", { enumerable: true, get: function () { return maybeTupleY_1.MaybeTupleY; } });
26
+ var maybeTupleX_1 = require("./maybeTupleX");
27
+ Object.defineProperty(exports, "MaybeTupleX", { enumerable: true, get: function () { return maybeTupleX_1.MaybeTupleX; } });
28
+ var maybeIdentityY_1 = require("./maybeIdentityY");
29
+ Object.defineProperty(exports, "MaybeIdentityY", { enumerable: true, get: function () { return maybeIdentityY_1.MaybeIdentityY; } });
30
+ var maybeIdentityX_1 = require("./maybeIdentityX");
31
+ Object.defineProperty(exports, "MaybeIdentityX", { enumerable: true, get: function () { return maybeIdentityX_1.MaybeIdentityX; } });
32
+ var maybeZeroPadding_1 = require("./maybeZeroPadding");
33
+ Object.defineProperty(exports, "MaybeZeroPadding", { enumerable: true, get: function () { return maybeZeroPadding_1.MaybeZeroPadding; } });
24
34
  var stackY_1 = require("./stackY");
25
35
  Object.defineProperty(exports, "StackY", { enumerable: true, get: function () { return stackY_1.StackY; } });
26
36
  var dodgeX_1 = require("./dodgeX");
@@ -31,10 +41,12 @@ var normalizeY_1 = require("./normalizeY");
31
41
  Object.defineProperty(exports, "NormalizeY", { enumerable: true, get: function () { return normalizeY_1.NormalizeY; } });
32
42
  var jitter_1 = require("./jitter");
33
43
  Object.defineProperty(exports, "Jitter", { enumerable: true, get: function () { return jitter_1.Jitter; } });
34
- var jitterY_1 = require("./jitterY");
35
- Object.defineProperty(exports, "JitterY", { enumerable: true, get: function () { return jitterY_1.JitterY; } });
44
+ var jitterX_1 = require("./jitterX");
45
+ Object.defineProperty(exports, "JitterX", { enumerable: true, get: function () { return jitterX_1.JitterX; } });
36
46
  var symmetryY_1 = require("./symmetryY");
37
47
  Object.defineProperty(exports, "SymmetryY", { enumerable: true, get: function () { return symmetryY_1.SymmetryY; } });
48
+ var diffY_1 = require("./diffY");
49
+ Object.defineProperty(exports, "DiffY", { enumerable: true, get: function () { return diffY_1.DiffY; } });
38
50
  var Select_1 = require("./Select");
39
51
  Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
40
52
  var SelectX_1 = require("./SelectX");
@@ -43,8 +55,20 @@ var SelectY_1 = require("./SelectY");
43
55
  Object.defineProperty(exports, "SelectY", { enumerable: true, get: function () { return SelectY_1.SelectY; } });
44
56
  var groupX_1 = require("./groupX");
45
57
  Object.defineProperty(exports, "GroupX", { enumerable: true, get: function () { return groupX_1.GroupX; } });
58
+ var groupY_1 = require("./groupY");
59
+ Object.defineProperty(exports, "GroupY", { enumerable: true, get: function () { return groupY_1.GroupY; } });
60
+ var group_1 = require("./group");
61
+ Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return group_1.Group; } });
62
+ var groupColor_1 = require("./groupColor");
63
+ Object.defineProperty(exports, "GroupColor", { enumerable: true, get: function () { return groupColor_1.GroupColor; } });
46
64
  var sortX_1 = require("./sortX");
47
65
  Object.defineProperty(exports, "SortX", { enumerable: true, get: function () { return sortX_1.SortX; } });
66
+ var sortColor_1 = require("./sortColor");
67
+ Object.defineProperty(exports, "SortColor", { enumerable: true, get: function () { return sortColor_1.SortColor; } });
68
+ var sortY_1 = require("./sortY");
69
+ Object.defineProperty(exports, "SortY", { enumerable: true, get: function () { return sortY_1.SortY; } });
48
70
  var flexX_1 = require("./flexX");
49
71
  Object.defineProperty(exports, "FlexX", { enumerable: true, get: function () { return flexX_1.FlexX; } });
72
+ var pack_1 = require("./pack");
73
+ Object.defineProperty(exports, "Pack", { enumerable: true, get: function () { return pack_1.Pack; } });
50
74
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["transform/index.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,iCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["transform/index.ts"],"names":[],"mappings":";;;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AAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA"}
@@ -2,6 +2,7 @@ import { Primitive, TransformComponent as TC } from '../runtime';
2
2
  import { JitterTransform } from '../spec';
3
3
  export declare type JitterOptions = Omit<JitterTransform, 'type'>;
4
4
  export declare function rangeOf(value: Primitive[], scaleOptions: Record<string, any>, padding: number): [number, number];
5
+ export declare function interpolate(t: number, a: number, b: number): number;
5
6
  /**
6
7
  * The jitter transform produce dx and dy channels for marks (especially for point)
7
8
  * with ordinal x and y dimension, say to make them jitter in their own space.
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Jitter = exports.rangeOf = void 0;
3
+ exports.Jitter = exports.interpolate = exports.rangeOf = void 0;
4
4
  const scale_1 = require("@antv/scale");
5
5
  const util_1 = require("@antv/util");
6
- const helper_1 = require("../utils/helper");
7
- const helper_2 = require("./utils/helper");
6
+ const helper_1 = require("./utils/helper");
8
7
  const order_1 = require("./utils/order");
9
8
  function rangeOf(value, scaleOptions, padding) {
10
9
  if (value === null)
@@ -15,24 +14,35 @@ function rangeOf(value, scaleOptions, padding) {
15
14
  return [-step / 2, step / 2];
16
15
  }
17
16
  exports.rangeOf = rangeOf;
17
+ function interpolate(t, a, b) {
18
+ return a * (1 - t) + b * t;
19
+ }
20
+ exports.interpolate = interpolate;
18
21
  /**
19
22
  * The jitter transform produce dx and dy channels for marks (especially for point)
20
23
  * with ordinal x and y dimension, say to make them jitter in their own space.
21
24
  */
22
25
  const Jitter = (options = {}) => {
23
- const { paddingX = 0, paddingY = 0 } = options;
26
+ const { padding = 0, paddingX = padding, paddingY = padding, random = Math.random, } = options;
24
27
  return (I, mark) => {
25
28
  const { encode, scale } = mark;
26
29
  const { x: scaleX, y: scaleY } = scale;
27
- const [X] = (0, helper_2.columnOf)(encode, 'x');
28
- const [Y] = (0, helper_2.columnOf)(encode, 'y');
30
+ const [X] = (0, helper_1.columnOf)(encode, 'x');
31
+ const [Y] = (0, helper_1.columnOf)(encode, 'y');
29
32
  const rangeX = rangeOf(X, scaleX, paddingX);
30
33
  const rangeY = rangeOf(Y, scaleY, paddingY);
31
- const DY = I.map(() => (0, helper_1.random)(...rangeY));
32
- const DX = I.map(() => (0, helper_1.random)(...rangeX));
34
+ const DY = I.map(() => interpolate(random(), ...rangeY));
35
+ const DX = I.map(() => interpolate(random(), ...rangeX));
33
36
  return [
34
37
  I,
35
- (0, util_1.deepMix)({}, mark, { encode: { dy: (0, helper_2.column)(DY), dx: (0, helper_2.column)(DX) } }),
38
+ (0, util_1.deepMix)({
39
+ scale: {
40
+ x: { padding: 0.5 },
41
+ y: { padding: 0.5 },
42
+ },
43
+ }, mark, {
44
+ encode: { dy: (0, helper_1.column)(DY), dx: (0, helper_1.column)(DX) },
45
+ }),
36
46
  ];
37
47
  };
38
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jitter.js","sourceRoot":"src/","sources":["transform/jitter.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AACnC,qCAAqC;AAGrC,4CAAyC;AACzC,2CAAkD;AAClD,yCAAyC;AAIzC,SAAgB,OAAO,CACrB,KAAkB,EAClB,YAAiC,EACjC,OAAe;IAEf,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG,IAAA,gBAAQ,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,IAAI,YAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE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it<JitterXTransform, 'type'>;
4
+ /**
5
+ * The JitterX transform produce dy channels for marks (especially for point)
6
+ * with ordinal x and y dimension, say to make them jitter in their own space.
7
+ */
8
+ export declare const JitterX: TC<JitterXOptions>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JitterX = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const helper_1 = require("./utils/helper");
6
+ const jitter_1 = require("./jitter");
7
+ /**
8
+ * The JitterX transform produce dy channels for marks (especially for point)
9
+ * with ordinal x and y dimension, say to make them jitter in their own space.
10
+ */
11
+ const JitterX = (options = {}) => {
12
+ const { padding = 0, random = Math.random } = options;
13
+ return (I, mark) => {
14
+ const { encode, scale } = mark;
15
+ const { x: scaleX } = scale;
16
+ const [X] = (0, helper_1.columnOf)(encode, 'x');
17
+ const rangeX = (0, jitter_1.rangeOf)(X, scaleX, padding);
18
+ const DX = I.map(() => (0, jitter_1.interpolate)(random(), ...rangeX));
19
+ return [
20
+ I,
21
+ (0, util_1.deepMix)({ scale: { x: { padding: 0.5 } } }, mark, {
22
+ encode: { dx: (0, helper_1.column)(DX) },
23
+ }),
24
+ ];
25
+ };
26
+ };
27
+ exports.JitterX = JitterX;
28
+ exports.JitterX.props = {};
29
+ //# sourceMappingURL=jitterX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jitterX.js","sourceRoot":"src/","sources":["transform/jitterX.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAGrC,2CAAkD;AAClD,qCAAgD;AAIhD;;;GAGG;AACI,MAAM,OAAO,GAAuB,CAAC,OAAO,GAAG,EAAE,EAAE,EAAE;IAC1D,MAAM,EAAE,OAAO,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC;IACtD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAC/B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;QAC5B,MAAM,CAAC,CAAC,CAAC,GAAG,IAAA,iBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC3C,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAA,oBAAW,EAAC,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;QACzD,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;gBAChD,MAAM,EAAE,EAAE,EAAE,EAAE,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE;aAC3B,CAAC;SACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,OAAO,WAelB;AAEF,eAAO,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TransformComponent as TC } from '../runtime';
2
+ export declare type MaybeIdentityXOptions = Record<string, never>;
3
+ /**
4
+ * Add 3 constant encode for size channel.
5
+ * This is useful for point geometry.
6
+ */
7
+ export declare const MaybeIdentityX: TC<MaybeIdentityXOptions>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaybeIdentityX = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const helper_1 = require("./utils/helper");
6
+ /**
7
+ * Add 3 constant encode for size channel.
8
+ * This is useful for point geometry.
9
+ */
10
+ const MaybeIdentityX = () => {
11
+ return (I, mark) => {
12
+ const { encode } = mark;
13
+ const { x1 } = encode;
14
+ if (x1)
15
+ return [I, mark];
16
+ const [X] = (0, helper_1.columnOf)(encode, 'x');
17
+ return [I, (0, util_1.deepMix)({}, mark, { encode: { x1: (0, helper_1.column)([...X]) } })];
18
+ };
19
+ };
20
+ exports.MaybeIdentityX = MaybeIdentityX;
21
+ exports.MaybeIdentityX.props = {};
22
+ //# sourceMappingURL=maybeIdentityX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maybeIdentityX.js","sourceRoot":"src/","sources":["transform/maybeIdentityX.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;;GAGG;AACI,MAAM,cAAc,GAA8B,GAAG,EAAE;IAC5D,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,IAAI,EAAE;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,GAAG,IAAA,iBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAClC,OAAO,CAAC,CAAC,EAAE,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAA,eAAM,EAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEF,sBAAc,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TransformComponent as TC } from '../runtime';
2
+ export declare type MaybeIdentityYOptions = Record<string, never>;
3
+ /**
4
+ * Add 3 constant encode for size channel.
5
+ * This is useful for point geometry.
6
+ */
7
+ export declare const MaybeIdentityY: TC<MaybeIdentityYOptions>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaybeIdentityY = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const helper_1 = require("./utils/helper");
6
+ /**
7
+ * Add 3 constant encode for size channel.
8
+ * This is useful for point geometry.
9
+ */
10
+ const MaybeIdentityY = () => {
11
+ return (I, mark) => {
12
+ const { encode } = mark;
13
+ const { y1 } = encode;
14
+ if (y1)
15
+ return [I, mark];
16
+ const [Y] = (0, helper_1.columnOf)(encode, 'y');
17
+ return [I, (0, util_1.deepMix)({}, mark, { encode: { y1: (0, helper_1.column)([...Y]) } })];
18
+ };
19
+ };
20
+ exports.MaybeIdentityY = MaybeIdentityY;
21
+ exports.MaybeIdentityY.props = {};
22
+ //# sourceMappingURL=maybeIdentityY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maybeIdentityY.js","sourceRoot":"src/","sources":["transform/maybeIdentityY.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;;GAGG;AACI,MAAM,cAAc,GAA8B,GAAG,EAAE;IAC5D,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,IAAI,EAAE;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,GAAG,IAAA,iBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAClC,OAAO,CAAC,CAAC,EAAE,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAA,eAAM,EAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEF,sBAAc,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TransformComponent as TC } from '../runtime';
2
+ export declare type MaybeTupleXOptions = Record<string, never>;
3
+ /**
4
+ * Add 3 constant encode for size channel.
5
+ * This is useful for point geometry.
6
+ */
7
+ export declare const MaybeTupleX: TC<MaybeTupleXOptions>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaybeTupleX = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const helper_1 = require("./utils/helper");
6
+ /**
7
+ * Add 3 constant encode for size channel.
8
+ * This is useful for point geometry.
9
+ */
10
+ const MaybeTupleX = () => {
11
+ return (I, mark) => {
12
+ const { data } = mark;
13
+ if (!Array.isArray(data) || data.some(util_1.isObject))
14
+ return [I, mark];
15
+ return [I, (0, util_1.deepMix)({}, mark, { encode: { x: (0, helper_1.column)(data) } })];
16
+ };
17
+ };
18
+ exports.MaybeTupleX = MaybeTupleX;
19
+ exports.MaybeTupleX.props = {};
20
+ //# sourceMappingURL=maybeTupleX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maybeTupleX.js","sourceRoot":"src/","sources":["transform/maybeTupleX.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAE/C,2CAAwC;AAIxC;;;GAGG;AACI,MAAM,WAAW,GAA2B,GAAG,EAAE;IACtD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,eAAQ,CAAC;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAClE,OAAO,CAAC,CAAC,EAAE,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEF,mBAAW,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TransformComponent as TC } from '../runtime';
2
+ export declare type MaybeTupleYOptions = Record<string, never>;
3
+ /**
4
+ * Add 3 constant encode for size channel.
5
+ * This is useful for point geometry.
6
+ */
7
+ export declare const MaybeTupleY: TC<MaybeTupleYOptions>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaybeTupleY = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const helper_1 = require("./utils/helper");
6
+ /**
7
+ * Add 3 constant encode for size channel.
8
+ * This is useful for point geometry.
9
+ */
10
+ const MaybeTupleY = () => {
11
+ return (I, mark) => {
12
+ const { data } = mark;
13
+ if (!Array.isArray(data) || data.some(util_1.isObject))
14
+ return [I, mark];
15
+ return [I, (0, util_1.deepMix)({}, mark, { encode: { y: (0, helper_1.column)(data) } })];
16
+ };
17
+ };
18
+ exports.MaybeTupleY = MaybeTupleY;
19
+ exports.MaybeTupleY.props = {};
20
+ //# sourceMappingURL=maybeTupleY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maybeTupleY.js","sourceRoot":"src/","sources":["transform/maybeTupleY.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAE/C,2CAAwC;AAIxC;;;GAGG;AACI,MAAM,WAAW,GAA2B,GAAG,EAAE;IACtD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,eAAQ,CAAC;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAClE,OAAO,CAAC,CAAC,EAAE,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEF,mBAAW,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { TransformComponent as TC } from '../runtime';
2
+ export declare type MaybeZeroPaddingOptions = Record<string, never>;
3
+ /**
4
+ * Set padding of x and y scale to zero.
5
+ */
6
+ export declare const MaybeZeroPadding: TC<MaybeZeroPaddingOptions>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaybeZeroPadding = void 0;
4
+ const util_1 = require("@antv/util");
5
+ /**
6
+ * Set padding of x and y scale to zero.
7
+ */
8
+ const MaybeZeroPadding = () => {
9
+ return (I, mark) => {
10
+ return [
11
+ I,
12
+ (0, util_1.deepMix)({ scale: { x: { padding: 0 }, y: { padding: 0 } } }, mark),
13
+ ];
14
+ };
15
+ };
16
+ exports.MaybeZeroPadding = MaybeZeroPadding;
17
+ exports.MaybeZeroPadding.props = {};
18
+ //# sourceMappingURL=maybeZeroPadding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maybeZeroPadding.js","sourceRoot":"src/","sources":["transform/maybeZeroPadding.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAMrC;;GAEG;AACI,MAAM,gBAAgB,GAAgC,GAAG,EAAE;IAChE,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC;SACnE,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B;AAEF,wBAAgB,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -17,6 +17,7 @@ const MaybeZeroX = () => {
17
17
  I,
18
18
  (0, util_1.deepMix)({}, mark, {
19
19
  encode: { x: (0, helper_1.column)((0, helper_1.constant)(I, 0)) },
20
+ scale: { x: { guide: null } },
20
21
  }),
21
22
  ];
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"maybeZeroX.js","sourceRoot":"src/","sources":["transform/maybeZeroX.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;;GAGG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE;gBAChB,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAA,iBAAQ,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;aACtC,CAAC;SACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,UAAU,cAYrB;AAEF,kBAAU,CAAC,KAAK,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"maybeZeroX.js","sourceRoot":"src/","sources":["transform/maybeZeroX.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;;GAGG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE;gBAChB,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAA,iBAAQ,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;gBACrC,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;aAC9B,CAAC;SACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AAEF,kBAAU,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -16,6 +16,7 @@ const MaybeZeroY = () => {
16
16
  I,
17
17
  (0, util_1.deepMix)({}, mark, {
18
18
  encode: { y: (0, helper_1.column)((0, helper_1.constant)(I, 0)) },
19
+ scale: { y: { guide: null } },
19
20
  }),
20
21
  ];
21
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"maybeZeroY.js","sourceRoot":"src/","sources":["transform/maybeZeroY.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;GAEG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE;gBAChB,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAA,iBAAQ,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;aACtC,CAAC;SACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,UAAU,cAYrB;AAEF,kBAAU,CAAC,KAAK,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"maybeZeroY.js","sourceRoot":"src/","sources":["transform/maybeZeroY.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,2CAAkD;AAIlD;;GAEG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO;YACL,CAAC;YACD,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE;gBAChB,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,eAAM,EAAC,IAAA,iBAAQ,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;gBACrC,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;aAC9B,CAAC;SACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AAEF,kBAAU,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -17,15 +17,17 @@ const d3_array_1 = require("d3-array");
17
17
  const helper_1 = require("./utils/helper");
18
18
  const order_1 = require("./utils/order");
19
19
  function normalizeBasis(basis) {
20
+ if (typeof basis === 'function')
21
+ return basis;
20
22
  const registry = {
21
- min: d3_array_1.min,
22
- max: d3_array_1.max,
23
- first: (d) => d[0],
24
- last: (d) => d[d.length - 1],
25
- mean: d3_array_1.mean,
26
- median: d3_array_1.median,
27
- sum: d3_array_1.sum,
28
- deviation: d3_array_1.deviation,
23
+ min: (I, Y) => (0, d3_array_1.min)(I, (i) => Y[+i]),
24
+ max: (I, Y) => (0, d3_array_1.max)(I, (i) => Y[+i]),
25
+ first: (I, Y) => Y[I[0]],
26
+ last: (I, Y) => Y[I[I.length - 1]],
27
+ mean: (I, Y) => (0, d3_array_1.mean)(I, (i) => Y[+i]),
28
+ median: (I, Y) => (0, d3_array_1.median)(I, (i) => Y[+i]),
29
+ sum: (I, Y) => (0, d3_array_1.sum)(I, (i) => Y[+i]),
30
+ deviation: (I, Y) => (0, d3_array_1.deviation)(I, (i) => Y[+i]),
29
31
  };
30
32
  return registry[basis] || d3_array_1.max;
31
33
  }
@@ -43,14 +45,15 @@ const NormalizeY = (options = {}) => {
43
45
  const Yn = Object.entries(rest)
44
46
  .filter(([k]) => k.startsWith('y'))
45
47
  .map(([k]) => [k, (0, helper_1.columnOf)(encode, k)[0]]);
48
+ const [, Y] = Yn.find(([k]) => k === 'y');
46
49
  const newYn = Yn.map(([k]) => [k, new Array(I.length)]);
47
50
  // Group marks into series by specified keys.
48
51
  const groups = (0, order_1.createGroups)(groupBy, I, mark);
49
52
  // Transform y channels for each group based on basis.
50
53
  const basisFunction = normalizeBasis(basis);
51
54
  for (const I of groups) {
52
- const Y = I.flatMap((i) => Yn.map(([, V]) => +V[i]));
53
- const basisValue = basisFunction(Y);
55
+ // Compute basis only base on y.
56
+ const basisValue = basisFunction(I, Y);
54
57
  for (const i of I) {
55
58
  for (let j = 0; j < Yn.length; j++) {
56
59
  const [, V] = Yn[j];
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeY.js","sourceRoot":"src/","sources":["transform/normalizeY.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAqC;AACrC,uCAA0E;AAG1E,2CAAkD;AAClD,yCAA6C;AAI7C,SAAS,cAAc,CAAC,KAAiC;IACvD,MAAM,QAAQ,GAAG;QACf,GAAG,EAAH,cAAG;QACH,GAAG,EAAH,cAAG;QACH,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CA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Record<string, unknown>;
3
+ /**
4
+ * Uniform pack to avid overlap.
5
+ * @todo Improve or change algorithm to increase space usage.
6
+ * @todo Take some special case into account.
7
+ */
8
+ export declare const Pack: TC<PackOptions>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pack = void 0;
4
+ const util_1 = require("@antv/util");
5
+ const vector_1 = require("../utils/vector");
6
+ function modifier(P, count, layout) {
7
+ const pcount = P.length;
8
+ if (pcount === 0)
9
+ return [];
10
+ // col * row >= count
11
+ // row is close to col * aspect, so
12
+ // col * (col * aspect) >= count
13
+ const { innerWidth, innerHeight } = layout;
14
+ const aspect = innerHeight / innerWidth;
15
+ let col = Math.ceil(Math.sqrt(count / aspect));
16
+ // Increase col to avoid total height of packed shape
17
+ // being large than height of bbox.
18
+ let size = innerWidth / col;
19
+ let row = Math.ceil(count / col);
20
+ let h0 = row * size;
21
+ while (h0 > innerHeight) {
22
+ col = col + 1;
23
+ size = innerWidth / col;
24
+ row = Math.ceil(count / col);
25
+ h0 = row * size;
26
+ }
27
+ // Some offset to increase the space usage.
28
+ const space = innerHeight - row * size;
29
+ const intervalY = row <= 1 ? 0 : space / (row - 1);
30
+ const [offsetX, offsetY] = row <= 1
31
+ ? [(innerWidth - pcount * size) / (pcount - 1), (innerHeight - size) / 2]
32
+ : [0, 0];
33
+ return P.map((points, m) => {
34
+ const [x, y, width, height] = (0, vector_1.calcBBox)(points);
35
+ const i = m % col;
36
+ const j = Math.floor(m / col);
37
+ const newX = i * size;
38
+ const newY = (row - j - 1) * size + space;
39
+ const sx = size / width;
40
+ const sy = size / height;
41
+ // Translate the shape and mark to make sure the center of
42
+ // shape is overlap before and after scale transformation.
43
+ const tx = newX - x + offsetX * i;
44
+ const ty = newY - y - intervalY * j - offsetY;
45
+ return `translate(${tx}, ${ty}) scale(${sx}, ${sy})`;
46
+ });
47
+ }
48
+ /**
49
+ * Uniform pack to avid overlap.
50
+ * @todo Improve or change algorithm to increase space usage.
51
+ * @todo Take some special case into account.
52
+ */
53
+ const Pack = () => {
54
+ return (I, mark) => {
55
+ return [I, (0, util_1.deepMix)({}, mark, { modifier, axis: false })];
56
+ };
57
+ };
58
+ exports.Pack = Pack;
59
+ exports.Pack.props = {};
60
+ //# sourceMappingURL=pack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack.js","sourceRoot":"src/","sources":["transform/pack.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAErC,4CAA2C;AAI3C,SAAS,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM;IAChC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACxB,IAAI,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5B,qBAAqB;IACrB,mCAAmC;IACnC,gCAAgC;IAChC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAC3C,MAAM,MAAM,GAAG,WAAW,GAAG,UAAU,CAAC;IACxC,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;IAE/C,qDAAqD;IACrD,mCAAmC;IACnC,IAAI,IAAI,GAAG,UAAU,GAAG,GAAG,CAAC;IAC5B,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IACjC,IAAI,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,GAAG,WAAW,EAAE;QACvB,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;QACd,IAAI,GAAG,UAAU,GAAG,GAAG,CAAC;QACxB,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;QAC7B,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC;KACjB;IAED,2CAA2C;IAC3C,MAAM,KAAK,GAAG,WAAW,GAAG,GA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,GAAG,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACI,MAAM,IAAI,GAAoB,GAAG,EAAE;IACxC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QACjB,OAAO,CAAC,CAAC,EAAE,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,IAAI,QAIf;AAEF,YAAI,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Primitive } from 'd3-array';
2
+ import { TransformComponent as TC } from '../runtime';
3
+ export declare type SortOptions = {
4
+ by?: string;
5
+ reverse?: boolean;
6
+ channel?: string;
7
+ slice?: number | [number, number];
8
+ reducer?: 'max' | 'min' | 'sum' | 'first' | 'last' | 'mean' | 'median' | ((I: number[], V: Primitive[]) => Primitive);
9
+ };
10
+ /**
11
+ * Sort marks groups by groups.
12
+ * @todo Add more reducers: first, last, etc,.
13
+ */
14
+ export declare const Sort: TC<SortOptions>;