@antv/g2 5.0.0-alpha.3 → 5.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1480) hide show
  1. package/README.md +29 -27
  2. package/dist/g2-lite.min.js +2 -2
  3. package/dist/g2.min.js +2 -2
  4. package/esm/animation/fadeIn.d.ts +2 -2
  5. package/esm/animation/fadeOut.d.ts +2 -2
  6. package/esm/animation/growInX.d.ts +7 -0
  7. package/esm/animation/growInX.js +26 -0
  8. package/esm/animation/growInX.js.map +1 -0
  9. package/esm/animation/growInY.d.ts +7 -0
  10. package/esm/animation/growInY.js +26 -0
  11. package/esm/animation/growInY.js.map +1 -0
  12. package/esm/animation/index.d.ts +6 -0
  13. package/esm/animation/index.js +3 -0
  14. package/esm/animation/index.js.map +1 -1
  15. package/esm/animation/morphing.d.ts +4 -4
  16. package/esm/animation/morphing.js +49 -12
  17. package/esm/animation/morphing.js.map +1 -1
  18. package/esm/animation/pathIn.d.ts +7 -0
  19. package/esm/animation/pathIn.js +18 -0
  20. package/esm/animation/pathIn.js.map +1 -0
  21. package/esm/animation/scaleInX.d.ts +2 -2
  22. package/esm/animation/scaleInY.d.ts +2 -2
  23. package/esm/animation/scaleOutX.d.ts +2 -2
  24. package/esm/animation/scaleOutY.d.ts +2 -2
  25. package/esm/animation/types.d.ts +6 -0
  26. package/esm/animation/types.js +2 -0
  27. package/esm/animation/types.js.map +1 -0
  28. package/esm/animation/waveIn.d.ts +2 -2
  29. package/esm/animation/waveIn.js +28 -2
  30. package/esm/animation/waveIn.js.map +1 -1
  31. package/esm/animation/zoomIn.d.ts +2 -2
  32. package/esm/animation/zoomOut.d.ts +2 -2
  33. package/esm/api/chart.d.ts +8 -4
  34. package/esm/api/chart.js +19 -3
  35. package/esm/api/chart.js.map +1 -1
  36. package/esm/api/composition/facetCircle.d.ts +3 -6
  37. package/esm/api/composition/facetCircle.js +2 -5
  38. package/esm/api/composition/facetCircle.js.map +1 -1
  39. package/esm/api/composition/facetRect.d.ts +3 -8
  40. package/esm/api/composition/facetRect.js +2 -7
  41. package/esm/api/composition/facetRect.js.map +1 -1
  42. package/esm/api/composition/geoPath.d.ts +21 -0
  43. package/esm/api/composition/geoPath.js +30 -0
  44. package/esm/api/composition/geoPath.js.map +1 -0
  45. package/esm/api/composition/geoView.d.ts +21 -0
  46. package/esm/api/composition/geoView.js +29 -0
  47. package/esm/api/composition/geoView.js.map +1 -0
  48. package/esm/api/composition/index.d.ts +7 -1
  49. package/esm/api/composition/index.js +5 -1
  50. package/esm/api/composition/index.js.map +1 -1
  51. package/esm/api/composition/repeatMatrix.d.ts +3 -6
  52. package/esm/api/composition/repeatMatrix.js +2 -5
  53. package/esm/api/composition/repeatMatrix.js.map +1 -1
  54. package/esm/api/composition/spaceFlex.d.ts +1 -5
  55. package/esm/api/composition/spaceFlex.js +1 -8
  56. package/esm/api/composition/spaceFlex.js.map +1 -1
  57. package/esm/api/composition/spaceLayer.d.ts +1 -2
  58. package/esm/api/composition/spaceLayer.js +1 -5
  59. package/esm/api/composition/spaceLayer.js.map +1 -1
  60. package/esm/api/composition/timingKeyframe.d.ts +2 -7
  61. package/esm/api/composition/timingKeyframe.js +1 -8
  62. package/esm/api/composition/timingKeyframe.js.map +1 -1
  63. package/esm/api/composition/view.d.ts +7 -8
  64. package/esm/api/composition/view.js +6 -7
  65. package/esm/api/composition/view.js.map +1 -1
  66. package/esm/api/mark/index.d.ts +17 -1
  67. package/esm/api/mark/index.js +9 -1
  68. package/esm/api/mark/index.js.map +1 -1
  69. package/esm/api/mark/mark.d.ts +49 -1
  70. package/esm/api/mark/mark.js +74 -11
  71. package/esm/api/mark/mark.js.map +1 -1
  72. package/esm/api/mark/types.d.ts +4 -12
  73. package/esm/api/props.d.ts +1 -1
  74. package/esm/api/types.d.ts +7 -7
  75. package/esm/component/axis.d.ts +2 -2
  76. package/esm/component/axis.js +23 -25
  77. package/esm/component/axis.js.map +1 -1
  78. package/esm/component/axisX.d.ts +1 -1
  79. package/esm/component/axisY.d.ts +1 -1
  80. package/esm/component/legendCategory.d.ts +2 -2
  81. package/esm/component/legendCategory.js +2 -2
  82. package/esm/component/legendCategory.js.map +1 -1
  83. package/esm/component/legendContinuous.d.ts +1 -1
  84. package/esm/component/title.d.ts +1 -1
  85. package/esm/component/utils.d.ts +1 -1
  86. package/esm/composition/facetCircle.d.ts +1 -1
  87. package/esm/composition/facetCircle.js +2 -2
  88. package/esm/composition/facetCircle.js.map +1 -1
  89. package/esm/composition/facetRect.d.ts +2 -2
  90. package/esm/composition/facetRect.js +8 -10
  91. package/esm/composition/facetRect.js.map +1 -1
  92. package/esm/composition/mark.d.ts +1 -1
  93. package/esm/composition/mark.js +3 -3
  94. package/esm/composition/mark.js.map +1 -1
  95. package/esm/composition/repeatMatrix.d.ts +1 -1
  96. package/esm/composition/repeatMatrix.js +4 -4
  97. package/esm/composition/repeatMatrix.js.map +1 -1
  98. package/esm/composition/spaceFlex.d.ts +1 -1
  99. package/esm/composition/spaceLayer.d.ts +1 -1
  100. package/esm/composition/timingKeyframe.d.ts +1 -1
  101. package/esm/composition/timingKeyframe.js +7 -8
  102. package/esm/composition/timingKeyframe.js.map +1 -1
  103. package/esm/composition/utils.d.ts +1 -1
  104. package/esm/composition/view.d.ts +1 -1
  105. package/esm/coordinate/cartesian.d.ts +1 -1
  106. package/esm/coordinate/fisheye.d.ts +1 -1
  107. package/esm/coordinate/fisheyeX.d.ts +1 -1
  108. package/esm/coordinate/fisheyeY.d.ts +1 -1
  109. package/esm/coordinate/helix.d.ts +1 -1
  110. package/esm/coordinate/parallel.d.ts +1 -1
  111. package/esm/coordinate/polar.d.ts +1 -1
  112. package/esm/coordinate/radial.d.ts +1 -1
  113. package/esm/coordinate/reflect.d.ts +1 -1
  114. package/esm/coordinate/reflectX.d.ts +1 -1
  115. package/esm/coordinate/reflectY.d.ts +1 -1
  116. package/esm/coordinate/theta.d.ts +1 -1
  117. package/esm/coordinate/transpose.d.ts +1 -1
  118. package/esm/data/arc.d.ts +1 -1
  119. package/esm/data/cluster.d.ts +1 -1
  120. package/esm/data/custom.d.ts +1 -1
  121. package/esm/data/fetch.d.ts +1 -1
  122. package/esm/data/fetch.js.map +1 -1
  123. package/esm/data/filter.d.ts +9 -0
  124. package/esm/data/filter.js +13 -0
  125. package/esm/data/filter.js.map +1 -0
  126. package/esm/data/fold.d.ts +1 -1
  127. package/esm/data/index.d.ts +4 -2
  128. package/esm/data/index.js +2 -1
  129. package/esm/data/index.js.map +1 -1
  130. package/esm/data/inline.d.ts +1 -1
  131. package/esm/data/join.d.ts +7 -0
  132. package/esm/data/join.js +22 -0
  133. package/esm/data/join.js.map +1 -0
  134. package/esm/data/map.d.ts +1 -1
  135. package/esm/data/pick.d.ts +1 -1
  136. package/esm/data/rename.d.ts +1 -1
  137. package/esm/data/rename.js +2 -3
  138. package/esm/data/rename.js.map +1 -1
  139. package/esm/data/sankey.d.ts +1 -1
  140. package/esm/data/sortBy.d.ts +1 -1
  141. package/esm/data/subset.d.ts +1 -1
  142. package/esm/data/tree.d.ts +1 -1
  143. package/esm/data/utils/arc/types.d.ts +2 -2
  144. package/esm/data/utils/flow.d.ts +1 -1
  145. package/esm/data/wordCloud.d.ts +1 -1
  146. package/esm/encode/column.d.ts +1 -1
  147. package/esm/encode/constant.d.ts +1 -1
  148. package/esm/encode/field.d.ts +1 -1
  149. package/esm/encode/transform.d.ts +1 -1
  150. package/esm/geo/d3-projection.d.ts +1 -0
  151. package/esm/geo/d3-projection.js +2 -0
  152. package/esm/geo/d3-projection.js.map +1 -0
  153. package/esm/geo/geoPath.d.ts +7 -0
  154. package/esm/geo/geoPath.js +36 -0
  155. package/esm/geo/geoPath.js.map +1 -0
  156. package/esm/geo/geoView.d.ts +7 -0
  157. package/esm/geo/geoView.js +215 -0
  158. package/esm/geo/geoView.js.map +1 -0
  159. package/esm/geo/index.d.ts +9 -0
  160. package/esm/geo/index.js +8 -0
  161. package/esm/geo/index.js.map +1 -0
  162. package/esm/interaction/action/service/elementSelection.d.ts +1 -1
  163. package/esm/interaction/action/service/elementSelection.js +1 -1
  164. package/esm/interaction/action/service/elementSelection.js.map +1 -1
  165. package/esm/interaction/action/service/fisheyeFocus.d.ts +1 -1
  166. package/esm/interaction/action/service/legendItemSelection.d.ts +1 -1
  167. package/esm/interaction/action/service/recordCurrentPoint.d.ts +1 -1
  168. package/esm/interaction/action/service/recordPoint.d.ts +1 -1
  169. package/esm/interaction/action/service/recordRegion.d.ts +1 -1
  170. package/esm/interaction/action/service/recordState.d.ts +1 -1
  171. package/esm/interaction/action/service/recordTip.d.ts +1 -1
  172. package/esm/interaction/action/service/surfacePointSelection.d.ts +1 -1
  173. package/esm/interaction/action/service/triggerInfoSelection.d.ts +1 -1
  174. package/esm/interaction/action/transformer/activeElement.d.ts +1 -1
  175. package/esm/interaction/action/transformer/activeRegion.d.ts +1 -1
  176. package/esm/interaction/action/transformer/button.d.ts +1 -1
  177. package/esm/interaction/action/transformer/cursor.d.ts +1 -1
  178. package/esm/interaction/action/transformer/filter.d.ts +2 -2
  179. package/esm/interaction/action/transformer/filter.js +6 -4
  180. package/esm/interaction/action/transformer/filter.js.map +1 -1
  181. package/esm/interaction/action/transformer/filterElement.d.ts +1 -1
  182. package/esm/interaction/action/transformer/highlightElement.d.ts +1 -1
  183. package/esm/interaction/action/transformer/mask.d.ts +1 -1
  184. package/esm/interaction/action/transformer/move.d.ts +1 -1
  185. package/esm/interaction/action/transformer/plot.d.ts +1 -1
  186. package/esm/interaction/action/transformer/poptip.d.ts +1 -1
  187. package/esm/interaction/action/transformer/setItemState.d.ts +1 -1
  188. package/esm/interaction/action/transformer/tooltip.d.ts +1 -1
  189. package/esm/interaction/builtin/activeRegion.d.ts +1 -1
  190. package/esm/interaction/builtin/brush.d.ts +1 -1
  191. package/esm/interaction/builtin/brushHighlight.d.ts +1 -1
  192. package/esm/interaction/builtin/brushVisible.d.ts +1 -1
  193. package/esm/interaction/builtin/elementActive.d.ts +1 -1
  194. package/esm/interaction/builtin/elementHighlight.d.ts +1 -1
  195. package/esm/interaction/builtin/elementHighlightByColor.d.ts +5 -3
  196. package/esm/interaction/builtin/elementHighlightByColor.js +1 -1
  197. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -1
  198. package/esm/interaction/builtin/elementHighlightByX.d.ts +5 -3
  199. package/esm/interaction/builtin/elementHighlightByX.js +1 -1
  200. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -1
  201. package/esm/interaction/builtin/elementListHighlight.d.ts +1 -1
  202. package/esm/interaction/builtin/elementSelected.d.ts +1 -1
  203. package/esm/interaction/builtin/ellipsisText.d.ts +1 -1
  204. package/esm/interaction/builtin/fisheye.d.ts +1 -1
  205. package/esm/interaction/builtin/legendActive.d.ts +1 -1
  206. package/esm/interaction/builtin/legendHighlight.d.ts +1 -1
  207. package/esm/interaction/builtin/tooltip.d.ts +9 -5
  208. package/esm/interaction/index.d.ts +4 -3
  209. package/esm/interaction/index.js +4 -3
  210. package/esm/interaction/index.js.map +1 -1
  211. package/esm/interaction/interactor/mousePosition.d.ts +1 -1
  212. package/esm/interaction/interactor/touchPosition.d.ts +1 -1
  213. package/esm/interaction/native/chartIndex.js +6 -2
  214. package/esm/interaction/native/chartIndex.js.map +1 -1
  215. package/esm/interaction/native/elementHighlight.d.ts +10 -0
  216. package/esm/interaction/native/{elementActive.js → elementHighlight.js} +9 -9
  217. package/esm/interaction/native/elementHighlight.js.map +1 -0
  218. package/esm/interaction/native/elementHighlightByColor.d.ts +4 -0
  219. package/esm/interaction/native/elementHighlightByColor.js +12 -0
  220. package/esm/interaction/native/elementHighlightByColor.js.map +1 -0
  221. package/esm/interaction/native/{elementActiveByX.d.ts → elementHighlightByX.d.ts} +1 -1
  222. package/esm/interaction/native/elementHighlightByX.js +13 -0
  223. package/esm/interaction/native/elementHighlightByX.js.map +1 -0
  224. package/esm/interaction/native/elementSelect.js +2 -2
  225. package/esm/interaction/native/elementSelect.js.map +1 -1
  226. package/esm/interaction/native/elementSelectByColor.js +2 -2
  227. package/esm/interaction/native/elementSelectByColor.js.map +1 -1
  228. package/esm/interaction/native/elementSelectByX.js +2 -2
  229. package/esm/interaction/native/elementSelectByX.js.map +1 -1
  230. package/esm/interaction/native/fisheye.js +8 -5
  231. package/esm/interaction/native/fisheye.js.map +1 -1
  232. package/esm/interaction/native/tooltip.d.ts +11 -0
  233. package/esm/interaction/native/tooltip.js +279 -0
  234. package/esm/interaction/native/tooltip.js.map +1 -0
  235. package/esm/interaction/native/utils.d.ts +1 -1
  236. package/esm/interaction/native/utils.js +2 -2
  237. package/esm/interaction/native/utils.js.map +1 -1
  238. package/esm/interaction/types.d.ts +16 -16
  239. package/esm/label-transform/dodgeY.d.ts +1 -1
  240. package/esm/label-transform/dodgeY.js +9 -1
  241. package/esm/label-transform/dodgeY.js.map +1 -1
  242. package/esm/label-transform/hideOverlap.d.ts +1 -1
  243. package/esm/label-transform/hideOverlap.js +14 -4
  244. package/esm/label-transform/hideOverlap.js.map +1 -1
  245. package/esm/label-transform/index.d.ts +4 -0
  246. package/esm/label-transform/index.js +2 -0
  247. package/esm/label-transform/index.js.map +1 -1
  248. package/esm/label-transform/spider.d.ts +7 -0
  249. package/esm/label-transform/spider.js +30 -0
  250. package/esm/label-transform/spider.js.map +1 -0
  251. package/esm/label-transform/surround.d.ts +7 -0
  252. package/esm/label-transform/surround.js +30 -0
  253. package/esm/label-transform/surround.js.map +1 -0
  254. package/esm/mark/area.d.ts +1 -1
  255. package/esm/mark/area.js +9 -8
  256. package/esm/mark/area.js.map +1 -1
  257. package/esm/mark/box.d.ts +1 -1
  258. package/esm/mark/box.js +7 -9
  259. package/esm/mark/box.js.map +1 -1
  260. package/esm/mark/boxplot.d.ts +4 -0
  261. package/esm/mark/boxplot.js +104 -0
  262. package/esm/mark/boxplot.js.map +1 -0
  263. package/esm/mark/cell.d.ts +1 -1
  264. package/esm/mark/cell.js +4 -8
  265. package/esm/mark/cell.js.map +1 -1
  266. package/esm/mark/connector.d.ts +1 -1
  267. package/esm/mark/connector.js +2 -2
  268. package/esm/mark/connector.js.map +1 -1
  269. package/esm/mark/forceGraph.d.ts +4 -0
  270. package/esm/mark/forceGraph.js +95 -0
  271. package/esm/mark/forceGraph.js.map +1 -0
  272. package/esm/mark/image.d.ts +1 -1
  273. package/esm/mark/image.js +12 -9
  274. package/esm/mark/image.js.map +1 -1
  275. package/esm/mark/index.d.ts +16 -0
  276. package/esm/mark/index.js +9 -0
  277. package/esm/mark/index.js.map +1 -1
  278. package/esm/mark/interval.d.ts +1 -1
  279. package/esm/mark/interval.js +7 -8
  280. package/esm/mark/interval.js.map +1 -1
  281. package/esm/mark/line.d.ts +1 -1
  282. package/esm/mark/line.js +13 -9
  283. package/esm/mark/line.js.map +1 -1
  284. package/esm/mark/lineX.d.ts +1 -1
  285. package/esm/mark/lineX.js +5 -2
  286. package/esm/mark/lineX.js.map +1 -1
  287. package/esm/mark/lineY.d.ts +1 -1
  288. package/esm/mark/lineY.js +5 -2
  289. package/esm/mark/lineY.js.map +1 -1
  290. package/esm/mark/link.d.ts +1 -1
  291. package/esm/mark/link.js +4 -8
  292. package/esm/mark/link.js.map +1 -1
  293. package/esm/mark/pack.d.ts +4 -0
  294. package/esm/mark/pack.js +81 -0
  295. package/esm/mark/pack.js.map +1 -0
  296. package/esm/mark/path.d.ts +7 -0
  297. package/esm/mark/path.js +24 -0
  298. package/esm/mark/path.js.map +1 -0
  299. package/esm/mark/point.d.ts +1 -1
  300. package/esm/mark/point.js +31 -28
  301. package/esm/mark/point.js.map +1 -1
  302. package/esm/mark/polygon.d.ts +1 -1
  303. package/esm/mark/polygon.js +4 -8
  304. package/esm/mark/polygon.js.map +1 -1
  305. package/esm/mark/range.d.ts +1 -1
  306. package/esm/mark/range.js +2 -2
  307. package/esm/mark/range.js.map +1 -1
  308. package/esm/mark/rangeX.d.ts +1 -1
  309. package/esm/mark/rangeX.js +5 -2
  310. package/esm/mark/rangeX.js.map +1 -1
  311. package/esm/mark/rangeY.d.ts +1 -1
  312. package/esm/mark/rangeY.js +5 -2
  313. package/esm/mark/rangeY.js.map +1 -1
  314. package/esm/mark/rect.d.ts +1 -1
  315. package/esm/mark/rect.js +7 -8
  316. package/esm/mark/rect.js.map +1 -1
  317. package/esm/mark/sankey.d.ts +8 -0
  318. package/esm/mark/sankey.js +98 -0
  319. package/esm/mark/sankey.js.map +1 -0
  320. package/esm/mark/shape.d.ts +7 -0
  321. package/esm/mark/shape.js +33 -0
  322. package/esm/mark/shape.js.map +1 -0
  323. package/esm/mark/text.d.ts +1 -1
  324. package/esm/mark/text.js +16 -11
  325. package/esm/mark/text.js.map +1 -1
  326. package/esm/mark/tree.d.ts +4 -0
  327. package/esm/mark/tree.js +59 -0
  328. package/esm/mark/tree.js.map +1 -0
  329. package/esm/mark/treemap.d.ts +4 -0
  330. package/esm/mark/treemap.js +123 -0
  331. package/esm/mark/treemap.js.map +1 -0
  332. package/esm/mark/utils.d.ts +51 -3
  333. package/esm/mark/utils.js +84 -12
  334. package/esm/mark/utils.js.map +1 -1
  335. package/esm/mark/vector.d.ts +1 -1
  336. package/esm/mark/vector.js +4 -8
  337. package/esm/mark/vector.js.map +1 -1
  338. package/esm/mark/wordCloud.d.ts +4 -0
  339. package/esm/mark/wordCloud.js +65 -0
  340. package/esm/mark/wordCloud.js.map +1 -0
  341. package/esm/palette/category10.d.ts +1 -1
  342. package/esm/palette/category20.d.ts +1 -1
  343. package/esm/palette/divergingGreenRed.d.ts +1 -1
  344. package/esm/palette/divergingGreenYellow.d.ts +1 -1
  345. package/esm/palette/divergingRedBlue.d.ts +1 -1
  346. package/esm/palette/divergingRedPurple.d.ts +1 -1
  347. package/esm/palette/sequentialBlue.d.ts +1 -1
  348. package/esm/palette/sequentialDarkBlue.d.ts +1 -1
  349. package/esm/palette/sequentialDarkGreen.d.ts +1 -1
  350. package/esm/palette/sequentialGreen.d.ts +1 -1
  351. package/esm/palette/sequentialGreenBlue.d.ts +1 -1
  352. package/esm/palette/sequentialGrey.d.ts +1 -1
  353. package/esm/palette/sequentialOrange.d.ts +1 -1
  354. package/esm/palette/sequentialPink.d.ts +1 -1
  355. package/esm/palette/sequentialPinkPurple.d.ts +1 -1
  356. package/esm/palette/sequentialPurple.d.ts +1 -1
  357. package/esm/palette/sequentialRed.d.ts +1 -1
  358. package/esm/palette/sequentialYellow.d.ts +1 -1
  359. package/esm/palette/sequentialYellowGreen.d.ts +1 -1
  360. package/esm/palette/sequentialYellowOrange.d.ts +1 -1
  361. package/esm/runtime/component.d.ts +1 -1
  362. package/esm/runtime/component.js +18 -29
  363. package/esm/runtime/component.js.map +1 -1
  364. package/esm/runtime/coordinate.d.ts +8 -8
  365. package/esm/runtime/coordinate.js +21 -21
  366. package/esm/runtime/coordinate.js.map +1 -1
  367. package/esm/runtime/mark.d.ts +3 -3
  368. package/esm/runtime/mark.js +37 -41
  369. package/esm/runtime/mark.js.map +1 -1
  370. package/esm/runtime/plot.d.ts +2 -2
  371. package/esm/runtime/plot.js +153 -42
  372. package/esm/runtime/plot.js.map +1 -1
  373. package/esm/runtime/render.d.ts +0 -7
  374. package/esm/runtime/render.js +6 -5
  375. package/esm/runtime/render.js.map +1 -1
  376. package/esm/runtime/scale.d.ts +4 -4
  377. package/esm/runtime/scale.js +98 -175
  378. package/esm/runtime/scale.js.map +1 -1
  379. package/esm/runtime/transform.d.ts +1 -0
  380. package/esm/runtime/transform.js +18 -2
  381. package/esm/runtime/transform.js.map +1 -1
  382. package/esm/runtime/types/common.d.ts +37 -21
  383. package/esm/runtime/types/component.d.ts +35 -35
  384. package/esm/runtime/types/data.d.ts +4 -4
  385. package/esm/runtime/types/encode.d.ts +9 -9
  386. package/esm/runtime/types/mark.d.ts +14 -6
  387. package/esm/runtime/types/options.d.ts +32 -34
  388. package/esm/runtime/types/theme.d.ts +32 -12
  389. package/esm/runtime/types/transform.d.ts +7 -7
  390. package/esm/scale/band.d.ts +1 -1
  391. package/esm/scale/identity.d.ts +1 -1
  392. package/esm/scale/linear.d.ts +1 -1
  393. package/esm/scale/log.d.ts +1 -1
  394. package/esm/scale/ordinal.d.ts +1 -1
  395. package/esm/scale/point.d.ts +1 -1
  396. package/esm/scale/pow.d.ts +1 -1
  397. package/esm/scale/quantile.d.ts +1 -1
  398. package/esm/scale/quantize.d.ts +1 -1
  399. package/esm/scale/sequential.d.ts +1 -1
  400. package/esm/scale/sqrt.d.ts +1 -1
  401. package/esm/scale/threshold.d.ts +1 -1
  402. package/esm/scale/time.d.ts +1 -1
  403. package/esm/shape/area/area.d.ts +1 -1
  404. package/esm/shape/area/curve.d.ts +1 -1
  405. package/esm/shape/area/curve.js +2 -0
  406. package/esm/shape/area/curve.js.map +1 -1
  407. package/esm/shape/area/smooth.d.ts +1 -1
  408. package/esm/shape/area/step.d.ts +1 -1
  409. package/esm/shape/box/box.d.ts +1 -1
  410. package/esm/shape/box/box.js +3 -1
  411. package/esm/shape/box/box.js.map +1 -1
  412. package/esm/shape/connector/connector.d.ts +5 -11
  413. package/esm/shape/connector/connector.js +50 -64
  414. package/esm/shape/connector/connector.js.map +1 -1
  415. package/esm/shape/createElement.d.ts +1 -1
  416. package/esm/shape/image/image.d.ts +1 -1
  417. package/esm/shape/image/image.js +5 -2
  418. package/esm/shape/image/image.js.map +1 -1
  419. package/esm/shape/index.d.ts +4 -0
  420. package/esm/shape/index.js +3 -0
  421. package/esm/shape/index.js.map +1 -1
  422. package/esm/shape/interval/color.d.ts +1 -1
  423. package/esm/shape/interval/color.js +14 -10
  424. package/esm/shape/interval/color.js.map +1 -1
  425. package/esm/shape/interval/funnel.d.ts +1 -1
  426. package/esm/shape/interval/funnel.js +1 -3
  427. package/esm/shape/interval/funnel.js.map +1 -1
  428. package/esm/shape/interval/hollow.d.ts +1 -1
  429. package/esm/shape/interval/pyramid.d.ts +1 -1
  430. package/esm/shape/interval/pyramid.js +2 -3
  431. package/esm/shape/interval/pyramid.js.map +1 -1
  432. package/esm/shape/interval/rect.d.ts +1 -1
  433. package/esm/shape/label/label.d.ts +1 -1
  434. package/esm/shape/label/label.js +13 -5
  435. package/esm/shape/label/label.js.map +1 -1
  436. package/esm/shape/label/position.d.ts +1 -1
  437. package/esm/shape/label/position.js +77 -36
  438. package/esm/shape/label/position.js.map +1 -1
  439. package/esm/shape/line/curve.d.ts +1 -1
  440. package/esm/shape/line/curve.js +8 -2
  441. package/esm/shape/line/curve.js.map +1 -1
  442. package/esm/shape/line/hv.d.ts +1 -1
  443. package/esm/shape/line/hvh.d.ts +1 -1
  444. package/esm/shape/line/line.d.ts +1 -1
  445. package/esm/shape/line/smooth.d.ts +1 -1
  446. package/esm/shape/line/vh.d.ts +1 -1
  447. package/esm/shape/lineXY/line.d.ts +1 -1
  448. package/esm/shape/lineXY/line.js +2 -0
  449. package/esm/shape/lineXY/line.js.map +1 -1
  450. package/esm/shape/link/arc.d.ts +1 -1
  451. package/esm/shape/link/arc.js +2 -0
  452. package/esm/shape/link/arc.js.map +1 -1
  453. package/esm/shape/link/link.d.ts +1 -7
  454. package/esm/shape/link/link.js +5 -3
  455. package/esm/shape/link/link.js.map +1 -1
  456. package/esm/shape/link/smooth.d.ts +1 -1
  457. package/esm/shape/link/smooth.js +2 -0
  458. package/esm/shape/link/smooth.js.map +1 -1
  459. package/esm/shape/link/vhv.d.ts +1 -1
  460. package/esm/shape/link/vhv.js +2 -0
  461. package/esm/shape/link/vhv.js.map +1 -1
  462. package/esm/shape/path/color.d.ts +9 -0
  463. package/esm/shape/path/color.js +37 -0
  464. package/esm/shape/path/color.js.map +1 -0
  465. package/esm/shape/path/hollow.d.ts +8 -0
  466. package/esm/shape/path/hollow.js +13 -0
  467. package/esm/shape/path/hollow.js.map +1 -0
  468. package/esm/shape/path/path.d.ts +8 -0
  469. package/esm/shape/path/path.js +13 -0
  470. package/esm/shape/path/path.js.map +1 -0
  471. package/esm/shape/point/bowtie.d.ts +1 -1
  472. package/esm/shape/point/color.d.ts +1 -1
  473. package/esm/shape/point/color.js +5 -2
  474. package/esm/shape/point/color.js.map +1 -1
  475. package/esm/shape/point/cross.d.ts +1 -1
  476. package/esm/shape/point/diamond.d.ts +1 -1
  477. package/esm/shape/point/hexagon.d.ts +1 -1
  478. package/esm/shape/point/hollow.d.ts +1 -1
  479. package/esm/shape/point/hollowBowtie.d.ts +1 -1
  480. package/esm/shape/point/hollowDiamond.d.ts +1 -1
  481. package/esm/shape/point/hollowHexagon.d.ts +1 -1
  482. package/esm/shape/point/hollowSquare.d.ts +1 -1
  483. package/esm/shape/point/hollowTriangle.d.ts +1 -1
  484. package/esm/shape/point/hollowTriangleDown.d.ts +1 -1
  485. package/esm/shape/point/hyphen.d.ts +1 -1
  486. package/esm/shape/point/line.d.ts +1 -1
  487. package/esm/shape/point/plus.d.ts +1 -1
  488. package/esm/shape/point/point.d.ts +1 -1
  489. package/esm/shape/point/square.d.ts +1 -1
  490. package/esm/shape/point/tick.d.ts +1 -1
  491. package/esm/shape/point/triangle.d.ts +1 -1
  492. package/esm/shape/point/triangleDown.d.ts +1 -1
  493. package/esm/shape/polygon/polygon.d.ts +1 -1
  494. package/esm/shape/polygon/polygon.js +2 -0
  495. package/esm/shape/polygon/polygon.js.map +1 -1
  496. package/esm/shape/polygon/ribbon.d.ts +1 -1
  497. package/esm/shape/polygon/ribbon.js +2 -0
  498. package/esm/shape/polygon/ribbon.js.map +1 -1
  499. package/esm/shape/shape/shape.d.ts +6 -0
  500. package/esm/shape/shape/shape.js +27 -0
  501. package/esm/shape/shape/shape.js.map +1 -0
  502. package/esm/shape/text/advance.d.ts +2 -0
  503. package/esm/shape/text/advance.js +122 -0
  504. package/esm/shape/text/advance.js.map +1 -0
  505. package/esm/shape/text/badge.d.ts +5 -9
  506. package/esm/shape/text/badge.js +31 -50
  507. package/esm/shape/text/badge.js.map +1 -1
  508. package/esm/shape/text/text.d.ts +1 -15
  509. package/esm/shape/text/text.js +15 -144
  510. package/esm/shape/text/text.js.map +1 -1
  511. package/esm/shape/utils.d.ts +21 -21
  512. package/esm/shape/utils.js +31 -12
  513. package/esm/shape/utils.js.map +1 -1
  514. package/esm/shape/vector/vector.d.ts +1 -7
  515. package/esm/shape/vector/vector.js +4 -2
  516. package/esm/shape/vector/vector.js.map +1 -1
  517. package/esm/spec/action.d.ts +27 -27
  518. package/esm/spec/animate.d.ts +1 -8
  519. package/esm/spec/composition.d.ts +40 -17
  520. package/esm/spec/coordinate.d.ts +17 -17
  521. package/esm/spec/data.d.ts +47 -25
  522. package/esm/spec/encode.d.ts +7 -7
  523. package/esm/spec/geometry.d.ts +79 -39
  524. package/esm/spec/index.d.ts +1 -1
  525. package/esm/spec/interaction.d.ts +28 -26
  526. package/esm/spec/labelTransform.d.ts +10 -3
  527. package/esm/spec/palette.d.ts +23 -23
  528. package/esm/spec/scale.d.ts +17 -17
  529. package/esm/spec/theme.d.ts +5 -5
  530. package/esm/spec/title.d.ts +1 -1
  531. package/esm/spec/transform.d.ts +44 -26
  532. package/esm/stdlib/index.js +12 -216
  533. package/esm/stdlib/index.js.map +1 -1
  534. package/esm/theme/dark.d.ts +1 -1
  535. package/esm/theme/dark.js +157 -57
  536. package/esm/theme/dark.js.map +1 -1
  537. package/esm/theme/light.d.ts +1 -1
  538. package/esm/theme/light.js +155 -52
  539. package/esm/theme/light.js.map +1 -1
  540. package/esm/transform/Select.d.ts +1 -1
  541. package/esm/transform/SelectX.d.ts +1 -1
  542. package/esm/transform/SelectY.d.ts +1 -1
  543. package/esm/transform/bin.d.ts +12 -0
  544. package/esm/transform/bin.js +82 -0
  545. package/esm/transform/bin.js.map +1 -0
  546. package/esm/transform/binX.d.ts +4 -0
  547. package/esm/transform/binX.js +7 -0
  548. package/esm/transform/binX.js.map +1 -0
  549. package/esm/transform/diffY.d.ts +1 -1
  550. package/esm/transform/dodgeX.d.ts +1 -1
  551. package/esm/transform/flexX.d.ts +1 -1
  552. package/esm/transform/group.d.ts +2 -2
  553. package/esm/transform/group.js +4 -82
  554. package/esm/transform/group.js.map +1 -1
  555. package/esm/transform/groupColor.d.ts +1 -1
  556. package/esm/transform/groupColor.js +1 -1
  557. package/esm/transform/groupColor.js.map +1 -1
  558. package/esm/transform/groupN.d.ts +9 -0
  559. package/esm/transform/groupN.js +99 -0
  560. package/esm/transform/groupN.js.map +1 -0
  561. package/esm/transform/groupX.d.ts +1 -1
  562. package/esm/transform/groupX.js +1 -1
  563. package/esm/transform/groupX.js.map +1 -1
  564. package/esm/transform/groupY.d.ts +1 -1
  565. package/esm/transform/groupY.js +1 -1
  566. package/esm/transform/groupY.js.map +1 -1
  567. package/esm/transform/index.d.ts +16 -6
  568. package/esm/transform/index.js +8 -3
  569. package/esm/transform/index.js.map +1 -1
  570. package/esm/transform/jitter.d.ts +1 -1
  571. package/esm/transform/jitterX.d.ts +1 -1
  572. package/esm/transform/maybeFunctionAttribute.d.ts +6 -0
  573. package/esm/transform/maybeFunctionAttribute.js +19 -0
  574. package/esm/transform/maybeFunctionAttribute.js.map +1 -0
  575. package/esm/transform/maybeGradient.d.ts +7 -0
  576. package/esm/transform/maybeGradient.js +24 -0
  577. package/esm/transform/maybeGradient.js.map +1 -0
  578. package/esm/transform/maybeIdentityX.d.ts +1 -1
  579. package/esm/transform/maybeIdentityY.d.ts +1 -1
  580. package/esm/transform/maybeKey.d.ts +1 -1
  581. package/esm/transform/maybeSeries.d.ts +1 -1
  582. package/esm/transform/maybeSize.d.ts +1 -1
  583. package/esm/transform/maybeStackY.d.ts +1 -1
  584. package/esm/transform/maybeTitle.d.ts +8 -0
  585. package/esm/transform/{maybeTitleX.js → maybeTitle.js} +6 -5
  586. package/esm/transform/maybeTitle.js.map +1 -0
  587. package/esm/transform/maybeTooltip.d.ts +2 -2
  588. package/esm/transform/maybeTooltip.js +7 -5
  589. package/esm/transform/maybeTooltip.js.map +1 -1
  590. package/esm/transform/maybeTuple.d.ts +7 -0
  591. package/esm/transform/maybeTuple.js +19 -0
  592. package/esm/transform/maybeTuple.js.map +1 -0
  593. package/esm/transform/maybeTupleX.d.ts +1 -1
  594. package/esm/transform/maybeTupleX.js +2 -2
  595. package/esm/transform/maybeTupleX.js.map +1 -1
  596. package/esm/transform/maybeTupleY.d.ts +1 -1
  597. package/esm/transform/maybeTupleY.js +2 -2
  598. package/esm/transform/maybeTupleY.js.map +1 -1
  599. package/esm/transform/maybeVisualPosition.d.ts +7 -0
  600. package/esm/transform/maybeVisualPosition.js +45 -0
  601. package/esm/transform/maybeVisualPosition.js.map +1 -0
  602. package/esm/transform/maybeZeroPadding.d.ts +1 -1
  603. package/esm/transform/maybeZeroX.d.ts +1 -1
  604. package/esm/transform/maybeZeroY.d.ts +1 -1
  605. package/esm/transform/maybeZeroY1.d.ts +1 -1
  606. package/esm/transform/normalizeY.d.ts +1 -1
  607. package/esm/transform/pack.d.ts +1 -1
  608. package/esm/transform/sort.d.ts +1 -1
  609. package/esm/transform/sortColor.d.ts +1 -1
  610. package/esm/transform/sortX.d.ts +1 -1
  611. package/esm/transform/sortY.d.ts +1 -1
  612. package/esm/transform/stackEnter.d.ts +2 -1
  613. package/esm/transform/stackEnter.js +15 -5
  614. package/esm/transform/stackEnter.js.map +1 -1
  615. package/esm/transform/stackY.d.ts +1 -1
  616. package/esm/transform/stackY.js +25 -4
  617. package/esm/transform/stackY.js.map +1 -1
  618. package/esm/transform/symmetryY.d.ts +1 -1
  619. package/esm/transform/utils/helper.d.ts +1 -0
  620. package/esm/transform/utils/helper.js +9 -1
  621. package/esm/transform/utils/helper.js.map +1 -1
  622. package/esm/transform/utils/order.d.ts +3 -3
  623. package/esm/transform/utils/order.js +2 -0
  624. package/esm/transform/utils/order.js.map +1 -1
  625. package/esm/utils/coordinate.js +3 -1
  626. package/esm/utils/coordinate.js.map +1 -1
  627. package/esm/utils/helper.d.ts +5 -2
  628. package/esm/utils/helper.js +11 -3
  629. package/esm/utils/helper.js.map +1 -1
  630. package/esm/utils/selection.d.ts +4 -4
  631. package/esm/utils/selection.js +3 -1
  632. package/esm/utils/selection.js.map +1 -1
  633. package/esm/utils/size.d.ts +6 -1
  634. package/esm/utils/size.js +22 -1
  635. package/esm/utils/size.js.map +1 -1
  636. package/esm/utils/vector.d.ts +1 -1
  637. package/lib/animation/fadeIn.d.ts +2 -2
  638. package/lib/animation/fadeOut.d.ts +2 -2
  639. package/lib/animation/growInX.d.ts +7 -0
  640. package/lib/animation/growInX.js +30 -0
  641. package/lib/animation/growInX.js.map +1 -0
  642. package/lib/animation/growInY.d.ts +7 -0
  643. package/lib/animation/growInY.js +30 -0
  644. package/lib/animation/growInY.js.map +1 -0
  645. package/lib/animation/index.d.ts +6 -0
  646. package/lib/animation/index.js +7 -1
  647. package/lib/animation/index.js.map +1 -1
  648. package/lib/animation/morphing.d.ts +4 -4
  649. package/lib/animation/morphing.js +49 -12
  650. package/lib/animation/morphing.js.map +1 -1
  651. package/lib/animation/pathIn.d.ts +7 -0
  652. package/lib/animation/pathIn.js +22 -0
  653. package/lib/animation/pathIn.js.map +1 -0
  654. package/lib/animation/scaleInX.d.ts +2 -2
  655. package/lib/animation/scaleInY.d.ts +2 -2
  656. package/lib/animation/scaleOutX.d.ts +2 -2
  657. package/lib/animation/scaleOutY.d.ts +2 -2
  658. package/lib/animation/types.d.ts +6 -0
  659. package/lib/animation/types.js +3 -0
  660. package/lib/animation/types.js.map +1 -0
  661. package/lib/animation/waveIn.d.ts +2 -2
  662. package/lib/animation/waveIn.js +28 -2
  663. package/lib/animation/waveIn.js.map +1 -1
  664. package/lib/animation/zoomIn.d.ts +2 -2
  665. package/lib/animation/zoomOut.d.ts +2 -2
  666. package/lib/api/chart.d.ts +8 -4
  667. package/lib/api/chart.js +19 -3
  668. package/lib/api/chart.js.map +1 -1
  669. package/lib/api/composition/facetCircle.d.ts +3 -6
  670. package/lib/api/composition/facetCircle.js +2 -5
  671. package/lib/api/composition/facetCircle.js.map +1 -1
  672. package/lib/api/composition/facetRect.d.ts +3 -8
  673. package/lib/api/composition/facetRect.js +2 -7
  674. package/lib/api/composition/facetRect.js.map +1 -1
  675. package/lib/api/composition/geoPath.d.ts +21 -0
  676. package/lib/api/composition/geoPath.js +33 -0
  677. package/lib/api/composition/geoPath.js.map +1 -0
  678. package/lib/api/composition/geoView.d.ts +21 -0
  679. package/lib/api/composition/geoView.js +32 -0
  680. package/lib/api/composition/geoView.js.map +1 -0
  681. package/lib/api/composition/index.d.ts +7 -1
  682. package/lib/api/composition/index.js +7 -1
  683. package/lib/api/composition/index.js.map +1 -1
  684. package/lib/api/composition/repeatMatrix.d.ts +3 -6
  685. package/lib/api/composition/repeatMatrix.js +2 -5
  686. package/lib/api/composition/repeatMatrix.js.map +1 -1
  687. package/lib/api/composition/spaceFlex.d.ts +1 -5
  688. package/lib/api/composition/spaceFlex.js +1 -8
  689. package/lib/api/composition/spaceFlex.js.map +1 -1
  690. package/lib/api/composition/spaceLayer.d.ts +1 -2
  691. package/lib/api/composition/spaceLayer.js +1 -5
  692. package/lib/api/composition/spaceLayer.js.map +1 -1
  693. package/lib/api/composition/timingKeyframe.d.ts +2 -7
  694. package/lib/api/composition/timingKeyframe.js +1 -8
  695. package/lib/api/composition/timingKeyframe.js.map +1 -1
  696. package/lib/api/composition/view.d.ts +7 -8
  697. package/lib/api/composition/view.js +6 -7
  698. package/lib/api/composition/view.js.map +1 -1
  699. package/lib/api/mark/index.d.ts +17 -1
  700. package/lib/api/mark/index.js +8 -0
  701. package/lib/api/mark/index.js.map +1 -1
  702. package/lib/api/mark/mark.d.ts +49 -1
  703. package/lib/api/mark/mark.js +75 -12
  704. package/lib/api/mark/mark.js.map +1 -1
  705. package/lib/api/mark/types.d.ts +4 -12
  706. package/lib/api/props.d.ts +1 -1
  707. package/lib/api/types.d.ts +7 -7
  708. package/lib/component/axis.d.ts +2 -2
  709. package/lib/component/axis.js +23 -25
  710. package/lib/component/axis.js.map +1 -1
  711. package/lib/component/axisX.d.ts +1 -1
  712. package/lib/component/axisY.d.ts +1 -1
  713. package/lib/component/legendCategory.d.ts +2 -2
  714. package/lib/component/legendCategory.js +2 -2
  715. package/lib/component/legendCategory.js.map +1 -1
  716. package/lib/component/legendContinuous.d.ts +1 -1
  717. package/lib/component/title.d.ts +1 -1
  718. package/lib/component/utils.d.ts +1 -1
  719. package/lib/composition/facetCircle.d.ts +1 -1
  720. package/lib/composition/facetCircle.js +2 -2
  721. package/lib/composition/facetCircle.js.map +1 -1
  722. package/lib/composition/facetRect.d.ts +2 -2
  723. package/lib/composition/facetRect.js +8 -10
  724. package/lib/composition/facetRect.js.map +1 -1
  725. package/lib/composition/mark.d.ts +1 -1
  726. package/lib/composition/mark.js +3 -3
  727. package/lib/composition/mark.js.map +1 -1
  728. package/lib/composition/repeatMatrix.d.ts +1 -1
  729. package/lib/composition/repeatMatrix.js +4 -4
  730. package/lib/composition/repeatMatrix.js.map +1 -1
  731. package/lib/composition/spaceFlex.d.ts +1 -1
  732. package/lib/composition/spaceLayer.d.ts +1 -1
  733. package/lib/composition/timingKeyframe.d.ts +1 -1
  734. package/lib/composition/timingKeyframe.js +7 -8
  735. package/lib/composition/timingKeyframe.js.map +1 -1
  736. package/lib/composition/utils.d.ts +1 -1
  737. package/lib/composition/view.d.ts +1 -1
  738. package/lib/coordinate/cartesian.d.ts +1 -1
  739. package/lib/coordinate/fisheye.d.ts +1 -1
  740. package/lib/coordinate/fisheyeX.d.ts +1 -1
  741. package/lib/coordinate/fisheyeY.d.ts +1 -1
  742. package/lib/coordinate/helix.d.ts +1 -1
  743. package/lib/coordinate/parallel.d.ts +1 -1
  744. package/lib/coordinate/polar.d.ts +1 -1
  745. package/lib/coordinate/radial.d.ts +1 -1
  746. package/lib/coordinate/reflect.d.ts +1 -1
  747. package/lib/coordinate/reflectX.d.ts +1 -1
  748. package/lib/coordinate/reflectY.d.ts +1 -1
  749. package/lib/coordinate/theta.d.ts +1 -1
  750. package/lib/coordinate/transpose.d.ts +1 -1
  751. package/lib/data/arc.d.ts +1 -1
  752. package/lib/data/cluster.d.ts +1 -1
  753. package/lib/data/custom.d.ts +1 -1
  754. package/lib/data/fetch.d.ts +1 -1
  755. package/lib/data/fetch.js.map +1 -1
  756. package/lib/data/filter.d.ts +9 -0
  757. package/lib/data/filter.js +18 -0
  758. package/lib/data/filter.js.map +1 -0
  759. package/lib/data/fold.d.ts +1 -1
  760. package/lib/data/index.d.ts +4 -2
  761. package/lib/data/index.js +5 -3
  762. package/lib/data/index.js.map +1 -1
  763. package/lib/data/inline.d.ts +1 -1
  764. package/lib/data/join.d.ts +7 -0
  765. package/lib/data/join.js +26 -0
  766. package/lib/data/join.js.map +1 -0
  767. package/lib/data/map.d.ts +1 -1
  768. package/lib/data/pick.d.ts +1 -1
  769. package/lib/data/rename.d.ts +1 -1
  770. package/lib/data/rename.js +2 -3
  771. package/lib/data/rename.js.map +1 -1
  772. package/lib/data/sankey.d.ts +1 -1
  773. package/lib/data/sortBy.d.ts +1 -1
  774. package/lib/data/subset.d.ts +1 -1
  775. package/lib/data/tree.d.ts +1 -1
  776. package/lib/data/utils/arc/types.d.ts +2 -2
  777. package/lib/data/utils/flow.d.ts +1 -1
  778. package/lib/data/wordCloud.d.ts +1 -1
  779. package/lib/encode/column.d.ts +1 -1
  780. package/lib/encode/constant.d.ts +1 -1
  781. package/lib/encode/field.d.ts +1 -1
  782. package/lib/encode/transform.d.ts +1 -1
  783. package/lib/geo/d3-projection.d.ts +1 -0
  784. package/lib/geo/d3-projection.js +36 -0
  785. package/lib/geo/d3-projection.js.map +1 -0
  786. package/lib/geo/geoPath.d.ts +7 -0
  787. package/lib/geo/geoPath.js +40 -0
  788. package/lib/geo/geoPath.js.map +1 -0
  789. package/lib/geo/geoView.d.ts +7 -0
  790. package/lib/geo/geoView.js +242 -0
  791. package/lib/geo/geoView.js.map +1 -0
  792. package/lib/geo/index.d.ts +9 -0
  793. package/lib/geo/index.js +12 -0
  794. package/lib/geo/index.js.map +1 -0
  795. package/lib/interaction/action/service/elementSelection.d.ts +1 -1
  796. package/lib/interaction/action/service/elementSelection.js +1 -1
  797. package/lib/interaction/action/service/elementSelection.js.map +1 -1
  798. package/lib/interaction/action/service/fisheyeFocus.d.ts +1 -1
  799. package/lib/interaction/action/service/legendItemSelection.d.ts +1 -1
  800. package/lib/interaction/action/service/recordCurrentPoint.d.ts +1 -1
  801. package/lib/interaction/action/service/recordPoint.d.ts +1 -1
  802. package/lib/interaction/action/service/recordRegion.d.ts +1 -1
  803. package/lib/interaction/action/service/recordState.d.ts +1 -1
  804. package/lib/interaction/action/service/recordTip.d.ts +1 -1
  805. package/lib/interaction/action/service/surfacePointSelection.d.ts +1 -1
  806. package/lib/interaction/action/service/triggerInfoSelection.d.ts +1 -1
  807. package/lib/interaction/action/transformer/activeElement.d.ts +1 -1
  808. package/lib/interaction/action/transformer/activeRegion.d.ts +1 -1
  809. package/lib/interaction/action/transformer/button.d.ts +1 -1
  810. package/lib/interaction/action/transformer/cursor.d.ts +1 -1
  811. package/lib/interaction/action/transformer/filter.d.ts +2 -2
  812. package/lib/interaction/action/transformer/filter.js +6 -4
  813. package/lib/interaction/action/transformer/filter.js.map +1 -1
  814. package/lib/interaction/action/transformer/filterElement.d.ts +1 -1
  815. package/lib/interaction/action/transformer/highlightElement.d.ts +1 -1
  816. package/lib/interaction/action/transformer/mask.d.ts +1 -1
  817. package/lib/interaction/action/transformer/move.d.ts +1 -1
  818. package/lib/interaction/action/transformer/plot.d.ts +1 -1
  819. package/lib/interaction/action/transformer/poptip.d.ts +1 -1
  820. package/lib/interaction/action/transformer/setItemState.d.ts +1 -1
  821. package/lib/interaction/action/transformer/tooltip.d.ts +1 -1
  822. package/lib/interaction/builtin/activeRegion.d.ts +1 -1
  823. package/lib/interaction/builtin/brush.d.ts +1 -1
  824. package/lib/interaction/builtin/brushHighlight.d.ts +1 -1
  825. package/lib/interaction/builtin/brushVisible.d.ts +1 -1
  826. package/lib/interaction/builtin/elementActive.d.ts +1 -1
  827. package/lib/interaction/builtin/elementHighlight.d.ts +1 -1
  828. package/lib/interaction/builtin/elementHighlightByColor.d.ts +5 -3
  829. package/lib/interaction/builtin/elementHighlightByColor.js +1 -1
  830. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -1
  831. package/lib/interaction/builtin/elementHighlightByX.d.ts +5 -3
  832. package/lib/interaction/builtin/elementHighlightByX.js +1 -1
  833. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -1
  834. package/lib/interaction/builtin/elementListHighlight.d.ts +1 -1
  835. package/lib/interaction/builtin/elementSelected.d.ts +1 -1
  836. package/lib/interaction/builtin/ellipsisText.d.ts +1 -1
  837. package/lib/interaction/builtin/fisheye.d.ts +1 -1
  838. package/lib/interaction/builtin/legendActive.d.ts +1 -1
  839. package/lib/interaction/builtin/legendHighlight.d.ts +1 -1
  840. package/lib/interaction/builtin/tooltip.d.ts +9 -5
  841. package/lib/interaction/index.d.ts +4 -3
  842. package/lib/interaction/index.js +9 -7
  843. package/lib/interaction/index.js.map +1 -1
  844. package/lib/interaction/interactor/mousePosition.d.ts +1 -1
  845. package/lib/interaction/interactor/touchPosition.d.ts +1 -1
  846. package/lib/interaction/native/chartIndex.js +6 -2
  847. package/lib/interaction/native/chartIndex.js.map +1 -1
  848. package/lib/interaction/native/elementHighlight.d.ts +10 -0
  849. package/lib/interaction/native/{elementActive.js → elementHighlight.js} +11 -11
  850. package/lib/interaction/native/elementHighlight.js.map +1 -0
  851. package/lib/interaction/native/elementHighlightByColor.d.ts +4 -0
  852. package/lib/interaction/native/elementHighlightByColor.js +16 -0
  853. package/lib/interaction/native/elementHighlightByColor.js.map +1 -0
  854. package/lib/interaction/native/{elementActiveByX.d.ts → elementHighlightByX.d.ts} +1 -1
  855. package/lib/interaction/native/elementHighlightByX.js +17 -0
  856. package/lib/interaction/native/elementHighlightByX.js.map +1 -0
  857. package/lib/interaction/native/elementSelect.js +1 -1
  858. package/lib/interaction/native/elementSelect.js.map +1 -1
  859. package/lib/interaction/native/elementSelectByColor.js +1 -1
  860. package/lib/interaction/native/elementSelectByColor.js.map +1 -1
  861. package/lib/interaction/native/elementSelectByX.js +1 -1
  862. package/lib/interaction/native/elementSelectByX.js.map +1 -1
  863. package/lib/interaction/native/fisheye.js +8 -5
  864. package/lib/interaction/native/fisheye.js.map +1 -1
  865. package/lib/interaction/native/tooltip.d.ts +11 -0
  866. package/lib/interaction/native/tooltip.js +285 -0
  867. package/lib/interaction/native/tooltip.js.map +1 -0
  868. package/lib/interaction/native/utils.d.ts +1 -1
  869. package/lib/interaction/native/utils.js +4 -4
  870. package/lib/interaction/native/utils.js.map +1 -1
  871. package/lib/interaction/types.d.ts +16 -16
  872. package/lib/label-transform/dodgeY.d.ts +1 -1
  873. package/lib/label-transform/dodgeY.js +9 -1
  874. package/lib/label-transform/dodgeY.js.map +1 -1
  875. package/lib/label-transform/hideOverlap.d.ts +1 -1
  876. package/lib/label-transform/hideOverlap.js +14 -4
  877. package/lib/label-transform/hideOverlap.js.map +1 -1
  878. package/lib/label-transform/index.d.ts +4 -0
  879. package/lib/label-transform/index.js +5 -1
  880. package/lib/label-transform/index.js.map +1 -1
  881. package/lib/label-transform/spider.d.ts +7 -0
  882. package/lib/label-transform/spider.js +34 -0
  883. package/lib/label-transform/spider.js.map +1 -0
  884. package/lib/label-transform/surround.d.ts +7 -0
  885. package/lib/label-transform/surround.js +34 -0
  886. package/lib/label-transform/surround.js.map +1 -0
  887. package/lib/mark/area.d.ts +1 -1
  888. package/lib/mark/area.js +8 -7
  889. package/lib/mark/area.js.map +1 -1
  890. package/lib/mark/box.d.ts +1 -1
  891. package/lib/mark/box.js +6 -8
  892. package/lib/mark/box.js.map +1 -1
  893. package/lib/mark/boxplot.d.ts +4 -0
  894. package/lib/mark/boxplot.js +108 -0
  895. package/lib/mark/boxplot.js.map +1 -0
  896. package/lib/mark/cell.d.ts +1 -1
  897. package/lib/mark/cell.js +3 -7
  898. package/lib/mark/cell.js.map +1 -1
  899. package/lib/mark/connector.d.ts +1 -1
  900. package/lib/mark/connector.js +2 -2
  901. package/lib/mark/connector.js.map +1 -1
  902. package/lib/mark/forceGraph.d.ts +4 -0
  903. package/lib/mark/forceGraph.js +99 -0
  904. package/lib/mark/forceGraph.js.map +1 -0
  905. package/lib/mark/image.d.ts +1 -1
  906. package/lib/mark/image.js +11 -8
  907. package/lib/mark/image.js.map +1 -1
  908. package/lib/mark/index.d.ts +16 -0
  909. package/lib/mark/index.js +19 -1
  910. package/lib/mark/index.js.map +1 -1
  911. package/lib/mark/interval.d.ts +1 -1
  912. package/lib/mark/interval.js +6 -7
  913. package/lib/mark/interval.js.map +1 -1
  914. package/lib/mark/line.d.ts +1 -1
  915. package/lib/mark/line.js +12 -8
  916. package/lib/mark/line.js.map +1 -1
  917. package/lib/mark/lineX.d.ts +1 -1
  918. package/lib/mark/lineX.js +5 -2
  919. package/lib/mark/lineX.js.map +1 -1
  920. package/lib/mark/lineY.d.ts +1 -1
  921. package/lib/mark/lineY.js +5 -2
  922. package/lib/mark/lineY.js.map +1 -1
  923. package/lib/mark/link.d.ts +1 -1
  924. package/lib/mark/link.js +3 -7
  925. package/lib/mark/link.js.map +1 -1
  926. package/lib/mark/pack.d.ts +4 -0
  927. package/lib/mark/pack.js +85 -0
  928. package/lib/mark/pack.js.map +1 -0
  929. package/lib/mark/path.d.ts +7 -0
  930. package/lib/mark/path.js +28 -0
  931. package/lib/mark/path.js.map +1 -0
  932. package/lib/mark/point.d.ts +1 -1
  933. package/lib/mark/point.js +30 -27
  934. package/lib/mark/point.js.map +1 -1
  935. package/lib/mark/polygon.d.ts +1 -1
  936. package/lib/mark/polygon.js +3 -7
  937. package/lib/mark/polygon.js.map +1 -1
  938. package/lib/mark/range.d.ts +1 -1
  939. package/lib/mark/range.js +2 -2
  940. package/lib/mark/range.js.map +1 -1
  941. package/lib/mark/rangeX.d.ts +1 -1
  942. package/lib/mark/rangeX.js +5 -2
  943. package/lib/mark/rangeX.js.map +1 -1
  944. package/lib/mark/rangeY.d.ts +1 -1
  945. package/lib/mark/rangeY.js +5 -2
  946. package/lib/mark/rangeY.js.map +1 -1
  947. package/lib/mark/rect.d.ts +1 -1
  948. package/lib/mark/rect.js +6 -7
  949. package/lib/mark/rect.js.map +1 -1
  950. package/lib/mark/sankey.d.ts +8 -0
  951. package/lib/mark/sankey.js +102 -0
  952. package/lib/mark/sankey.js.map +1 -0
  953. package/lib/mark/shape.d.ts +7 -0
  954. package/lib/mark/shape.js +37 -0
  955. package/lib/mark/shape.js.map +1 -0
  956. package/lib/mark/text.d.ts +1 -1
  957. package/lib/mark/text.js +15 -10
  958. package/lib/mark/text.js.map +1 -1
  959. package/lib/mark/tree.d.ts +4 -0
  960. package/lib/mark/tree.js +63 -0
  961. package/lib/mark/tree.js.map +1 -0
  962. package/lib/mark/treemap.d.ts +4 -0
  963. package/lib/mark/treemap.js +127 -0
  964. package/lib/mark/treemap.js.map +1 -0
  965. package/lib/mark/utils.d.ts +51 -3
  966. package/lib/mark/utils.js +93 -13
  967. package/lib/mark/utils.js.map +1 -1
  968. package/lib/mark/vector.d.ts +1 -1
  969. package/lib/mark/vector.js +3 -7
  970. package/lib/mark/vector.js.map +1 -1
  971. package/lib/mark/wordCloud.d.ts +4 -0
  972. package/lib/mark/wordCloud.js +69 -0
  973. package/lib/mark/wordCloud.js.map +1 -0
  974. package/lib/palette/category10.d.ts +1 -1
  975. package/lib/palette/category20.d.ts +1 -1
  976. package/lib/palette/divergingGreenRed.d.ts +1 -1
  977. package/lib/palette/divergingGreenYellow.d.ts +1 -1
  978. package/lib/palette/divergingRedBlue.d.ts +1 -1
  979. package/lib/palette/divergingRedPurple.d.ts +1 -1
  980. package/lib/palette/sequentialBlue.d.ts +1 -1
  981. package/lib/palette/sequentialDarkBlue.d.ts +1 -1
  982. package/lib/palette/sequentialDarkGreen.d.ts +1 -1
  983. package/lib/palette/sequentialGreen.d.ts +1 -1
  984. package/lib/palette/sequentialGreenBlue.d.ts +1 -1
  985. package/lib/palette/sequentialGrey.d.ts +1 -1
  986. package/lib/palette/sequentialOrange.d.ts +1 -1
  987. package/lib/palette/sequentialPink.d.ts +1 -1
  988. package/lib/palette/sequentialPinkPurple.d.ts +1 -1
  989. package/lib/palette/sequentialPurple.d.ts +1 -1
  990. package/lib/palette/sequentialRed.d.ts +1 -1
  991. package/lib/palette/sequentialYellow.d.ts +1 -1
  992. package/lib/palette/sequentialYellowGreen.d.ts +1 -1
  993. package/lib/palette/sequentialYellowOrange.d.ts +1 -1
  994. package/lib/runtime/component.d.ts +1 -1
  995. package/lib/runtime/component.js +18 -29
  996. package/lib/runtime/component.js.map +1 -1
  997. package/lib/runtime/coordinate.d.ts +8 -8
  998. package/lib/runtime/coordinate.js +21 -21
  999. package/lib/runtime/coordinate.js.map +1 -1
  1000. package/lib/runtime/mark.d.ts +3 -3
  1001. package/lib/runtime/mark.js +35 -39
  1002. package/lib/runtime/mark.js.map +1 -1
  1003. package/lib/runtime/plot.d.ts +2 -2
  1004. package/lib/runtime/plot.js +152 -41
  1005. package/lib/runtime/plot.js.map +1 -1
  1006. package/lib/runtime/render.d.ts +0 -7
  1007. package/lib/runtime/render.js +6 -6
  1008. package/lib/runtime/render.js.map +1 -1
  1009. package/lib/runtime/scale.d.ts +4 -4
  1010. package/lib/runtime/scale.js +98 -175
  1011. package/lib/runtime/scale.js.map +1 -1
  1012. package/lib/runtime/transform.d.ts +1 -0
  1013. package/lib/runtime/transform.js +20 -3
  1014. package/lib/runtime/transform.js.map +1 -1
  1015. package/lib/runtime/types/common.d.ts +37 -21
  1016. package/lib/runtime/types/component.d.ts +35 -35
  1017. package/lib/runtime/types/data.d.ts +4 -4
  1018. package/lib/runtime/types/encode.d.ts +9 -9
  1019. package/lib/runtime/types/mark.d.ts +14 -6
  1020. package/lib/runtime/types/options.d.ts +32 -34
  1021. package/lib/runtime/types/theme.d.ts +32 -12
  1022. package/lib/runtime/types/transform.d.ts +7 -7
  1023. package/lib/scale/band.d.ts +1 -1
  1024. package/lib/scale/identity.d.ts +1 -1
  1025. package/lib/scale/linear.d.ts +1 -1
  1026. package/lib/scale/log.d.ts +1 -1
  1027. package/lib/scale/ordinal.d.ts +1 -1
  1028. package/lib/scale/point.d.ts +1 -1
  1029. package/lib/scale/pow.d.ts +1 -1
  1030. package/lib/scale/quantile.d.ts +1 -1
  1031. package/lib/scale/quantize.d.ts +1 -1
  1032. package/lib/scale/sequential.d.ts +1 -1
  1033. package/lib/scale/sqrt.d.ts +1 -1
  1034. package/lib/scale/threshold.d.ts +1 -1
  1035. package/lib/scale/time.d.ts +1 -1
  1036. package/lib/shape/area/area.d.ts +1 -1
  1037. package/lib/shape/area/curve.d.ts +1 -1
  1038. package/lib/shape/area/curve.js +2 -0
  1039. package/lib/shape/area/curve.js.map +1 -1
  1040. package/lib/shape/area/smooth.d.ts +1 -1
  1041. package/lib/shape/area/step.d.ts +1 -1
  1042. package/lib/shape/box/box.d.ts +1 -1
  1043. package/lib/shape/box/box.js +3 -1
  1044. package/lib/shape/box/box.js.map +1 -1
  1045. package/lib/shape/connector/connector.d.ts +5 -11
  1046. package/lib/shape/connector/connector.js +50 -64
  1047. package/lib/shape/connector/connector.js.map +1 -1
  1048. package/lib/shape/createElement.d.ts +1 -1
  1049. package/lib/shape/image/image.d.ts +1 -1
  1050. package/lib/shape/image/image.js +5 -2
  1051. package/lib/shape/image/image.js.map +1 -1
  1052. package/lib/shape/index.d.ts +4 -0
  1053. package/lib/shape/index.js +7 -1
  1054. package/lib/shape/index.js.map +1 -1
  1055. package/lib/shape/interval/color.d.ts +1 -1
  1056. package/lib/shape/interval/color.js +13 -9
  1057. package/lib/shape/interval/color.js.map +1 -1
  1058. package/lib/shape/interval/funnel.d.ts +1 -1
  1059. package/lib/shape/interval/funnel.js +1 -3
  1060. package/lib/shape/interval/funnel.js.map +1 -1
  1061. package/lib/shape/interval/hollow.d.ts +1 -1
  1062. package/lib/shape/interval/pyramid.d.ts +1 -1
  1063. package/lib/shape/interval/pyramid.js +2 -3
  1064. package/lib/shape/interval/pyramid.js.map +1 -1
  1065. package/lib/shape/interval/rect.d.ts +1 -1
  1066. package/lib/shape/label/label.d.ts +1 -1
  1067. package/lib/shape/label/label.js +13 -5
  1068. package/lib/shape/label/label.js.map +1 -1
  1069. package/lib/shape/label/position.d.ts +1 -1
  1070. package/lib/shape/label/position.js +77 -36
  1071. package/lib/shape/label/position.js.map +1 -1
  1072. package/lib/shape/line/curve.d.ts +1 -1
  1073. package/lib/shape/line/curve.js +8 -2
  1074. package/lib/shape/line/curve.js.map +1 -1
  1075. package/lib/shape/line/hv.d.ts +1 -1
  1076. package/lib/shape/line/hvh.d.ts +1 -1
  1077. package/lib/shape/line/line.d.ts +1 -1
  1078. package/lib/shape/line/smooth.d.ts +1 -1
  1079. package/lib/shape/line/vh.d.ts +1 -1
  1080. package/lib/shape/lineXY/line.d.ts +1 -1
  1081. package/lib/shape/lineXY/line.js +2 -0
  1082. package/lib/shape/lineXY/line.js.map +1 -1
  1083. package/lib/shape/link/arc.d.ts +1 -1
  1084. package/lib/shape/link/arc.js +2 -0
  1085. package/lib/shape/link/arc.js.map +1 -1
  1086. package/lib/shape/link/link.d.ts +1 -7
  1087. package/lib/shape/link/link.js +5 -3
  1088. package/lib/shape/link/link.js.map +1 -1
  1089. package/lib/shape/link/smooth.d.ts +1 -1
  1090. package/lib/shape/link/smooth.js +2 -0
  1091. package/lib/shape/link/smooth.js.map +1 -1
  1092. package/lib/shape/link/vhv.d.ts +1 -1
  1093. package/lib/shape/link/vhv.js +2 -0
  1094. package/lib/shape/link/vhv.js.map +1 -1
  1095. package/lib/shape/path/color.d.ts +9 -0
  1096. package/lib/shape/path/color.js +41 -0
  1097. package/lib/shape/path/color.js.map +1 -0
  1098. package/lib/shape/path/hollow.d.ts +8 -0
  1099. package/lib/shape/path/hollow.js +17 -0
  1100. package/lib/shape/path/hollow.js.map +1 -0
  1101. package/lib/shape/path/path.d.ts +8 -0
  1102. package/lib/shape/path/path.js +17 -0
  1103. package/lib/shape/path/path.js.map +1 -0
  1104. package/lib/shape/point/bowtie.d.ts +1 -1
  1105. package/lib/shape/point/color.d.ts +1 -1
  1106. package/lib/shape/point/color.js +4 -1
  1107. package/lib/shape/point/color.js.map +1 -1
  1108. package/lib/shape/point/cross.d.ts +1 -1
  1109. package/lib/shape/point/diamond.d.ts +1 -1
  1110. package/lib/shape/point/hexagon.d.ts +1 -1
  1111. package/lib/shape/point/hollow.d.ts +1 -1
  1112. package/lib/shape/point/hollowBowtie.d.ts +1 -1
  1113. package/lib/shape/point/hollowDiamond.d.ts +1 -1
  1114. package/lib/shape/point/hollowHexagon.d.ts +1 -1
  1115. package/lib/shape/point/hollowSquare.d.ts +1 -1
  1116. package/lib/shape/point/hollowTriangle.d.ts +1 -1
  1117. package/lib/shape/point/hollowTriangleDown.d.ts +1 -1
  1118. package/lib/shape/point/hyphen.d.ts +1 -1
  1119. package/lib/shape/point/line.d.ts +1 -1
  1120. package/lib/shape/point/plus.d.ts +1 -1
  1121. package/lib/shape/point/point.d.ts +1 -1
  1122. package/lib/shape/point/square.d.ts +1 -1
  1123. package/lib/shape/point/tick.d.ts +1 -1
  1124. package/lib/shape/point/triangle.d.ts +1 -1
  1125. package/lib/shape/point/triangleDown.d.ts +1 -1
  1126. package/lib/shape/polygon/polygon.d.ts +1 -1
  1127. package/lib/shape/polygon/polygon.js +2 -0
  1128. package/lib/shape/polygon/polygon.js.map +1 -1
  1129. package/lib/shape/polygon/ribbon.d.ts +1 -1
  1130. package/lib/shape/polygon/ribbon.js +2 -0
  1131. package/lib/shape/polygon/ribbon.js.map +1 -1
  1132. package/lib/shape/shape/shape.d.ts +6 -0
  1133. package/lib/shape/shape/shape.js +31 -0
  1134. package/lib/shape/shape/shape.js.map +1 -0
  1135. package/lib/shape/text/advance.d.ts +2 -0
  1136. package/lib/shape/text/advance.js +125 -0
  1137. package/lib/shape/text/advance.js.map +1 -0
  1138. package/lib/shape/text/badge.d.ts +5 -9
  1139. package/lib/shape/text/badge.js +31 -50
  1140. package/lib/shape/text/badge.js.map +1 -1
  1141. package/lib/shape/text/text.d.ts +1 -15
  1142. package/lib/shape/text/text.js +15 -144
  1143. package/lib/shape/text/text.js.map +1 -1
  1144. package/lib/shape/utils.d.ts +21 -21
  1145. package/lib/shape/utils.js +33 -13
  1146. package/lib/shape/utils.js.map +1 -1
  1147. package/lib/shape/vector/vector.d.ts +1 -7
  1148. package/lib/shape/vector/vector.js +4 -2
  1149. package/lib/shape/vector/vector.js.map +1 -1
  1150. package/lib/spec/action.d.ts +27 -27
  1151. package/lib/spec/animate.d.ts +1 -8
  1152. package/lib/spec/composition.d.ts +40 -17
  1153. package/lib/spec/coordinate.d.ts +17 -17
  1154. package/lib/spec/data.d.ts +47 -25
  1155. package/lib/spec/encode.d.ts +7 -7
  1156. package/lib/spec/geometry.d.ts +79 -39
  1157. package/lib/spec/index.d.ts +1 -1
  1158. package/lib/spec/interaction.d.ts +28 -26
  1159. package/lib/spec/labelTransform.d.ts +10 -3
  1160. package/lib/spec/palette.d.ts +23 -23
  1161. package/lib/spec/scale.d.ts +17 -17
  1162. package/lib/spec/theme.d.ts +5 -5
  1163. package/lib/spec/title.d.ts +1 -1
  1164. package/lib/spec/transform.d.ts +44 -26
  1165. package/lib/stdlib/index.js +4 -208
  1166. package/lib/stdlib/index.js.map +1 -1
  1167. package/lib/theme/dark.d.ts +1 -1
  1168. package/lib/theme/dark.js +157 -57
  1169. package/lib/theme/dark.js.map +1 -1
  1170. package/lib/theme/light.d.ts +1 -1
  1171. package/lib/theme/light.js +155 -52
  1172. package/lib/theme/light.js.map +1 -1
  1173. package/lib/transform/Select.d.ts +1 -1
  1174. package/lib/transform/SelectX.d.ts +1 -1
  1175. package/lib/transform/SelectY.d.ts +1 -1
  1176. package/lib/transform/bin.d.ts +12 -0
  1177. package/lib/transform/bin.js +86 -0
  1178. package/lib/transform/bin.js.map +1 -0
  1179. package/lib/transform/binX.d.ts +4 -0
  1180. package/lib/transform/binX.js +11 -0
  1181. package/lib/transform/binX.js.map +1 -0
  1182. package/lib/transform/diffY.d.ts +1 -1
  1183. package/lib/transform/dodgeX.d.ts +1 -1
  1184. package/lib/transform/flexX.d.ts +1 -1
  1185. package/lib/transform/group.d.ts +2 -2
  1186. package/lib/transform/group.js +4 -82
  1187. package/lib/transform/group.js.map +1 -1
  1188. package/lib/transform/groupColor.d.ts +1 -1
  1189. package/lib/transform/groupColor.js +1 -1
  1190. package/lib/transform/groupColor.js.map +1 -1
  1191. package/lib/transform/groupN.d.ts +9 -0
  1192. package/lib/transform/groupN.js +103 -0
  1193. package/lib/transform/groupN.js.map +1 -0
  1194. package/lib/transform/groupX.d.ts +1 -1
  1195. package/lib/transform/groupX.js +1 -1
  1196. package/lib/transform/groupX.js.map +1 -1
  1197. package/lib/transform/groupY.d.ts +1 -1
  1198. package/lib/transform/groupY.js +1 -1
  1199. package/lib/transform/groupY.js.map +1 -1
  1200. package/lib/transform/index.d.ts +16 -6
  1201. package/lib/transform/index.js +17 -7
  1202. package/lib/transform/index.js.map +1 -1
  1203. package/lib/transform/jitter.d.ts +1 -1
  1204. package/lib/transform/jitterX.d.ts +1 -1
  1205. package/lib/transform/maybeFunctionAttribute.d.ts +6 -0
  1206. package/lib/transform/maybeFunctionAttribute.js +23 -0
  1207. package/lib/transform/maybeFunctionAttribute.js.map +1 -0
  1208. package/lib/transform/maybeGradient.d.ts +7 -0
  1209. package/lib/transform/maybeGradient.js +28 -0
  1210. package/lib/transform/maybeGradient.js.map +1 -0
  1211. package/lib/transform/maybeIdentityX.d.ts +1 -1
  1212. package/lib/transform/maybeIdentityY.d.ts +1 -1
  1213. package/lib/transform/maybeKey.d.ts +1 -1
  1214. package/lib/transform/maybeSeries.d.ts +1 -1
  1215. package/lib/transform/maybeSize.d.ts +1 -1
  1216. package/lib/transform/maybeStackY.d.ts +1 -1
  1217. package/lib/transform/maybeTitle.d.ts +8 -0
  1218. package/lib/transform/{maybeTitleX.js → maybeTitle.js} +8 -7
  1219. package/lib/transform/maybeTitle.js.map +1 -0
  1220. package/lib/transform/maybeTooltip.d.ts +2 -2
  1221. package/lib/transform/maybeTooltip.js +7 -5
  1222. package/lib/transform/maybeTooltip.js.map +1 -1
  1223. package/lib/transform/maybeTuple.d.ts +7 -0
  1224. package/lib/transform/maybeTuple.js +23 -0
  1225. package/lib/transform/maybeTuple.js.map +1 -0
  1226. package/lib/transform/maybeTupleX.d.ts +1 -1
  1227. package/lib/transform/maybeTupleX.js +1 -1
  1228. package/lib/transform/maybeTupleX.js.map +1 -1
  1229. package/lib/transform/maybeTupleY.d.ts +1 -1
  1230. package/lib/transform/maybeTupleY.js +1 -1
  1231. package/lib/transform/maybeTupleY.js.map +1 -1
  1232. package/lib/transform/maybeVisualPosition.d.ts +7 -0
  1233. package/lib/transform/maybeVisualPosition.js +49 -0
  1234. package/lib/transform/maybeVisualPosition.js.map +1 -0
  1235. package/lib/transform/maybeZeroPadding.d.ts +1 -1
  1236. package/lib/transform/maybeZeroX.d.ts +1 -1
  1237. package/lib/transform/maybeZeroY.d.ts +1 -1
  1238. package/lib/transform/maybeZeroY1.d.ts +1 -1
  1239. package/lib/transform/normalizeY.d.ts +1 -1
  1240. package/lib/transform/pack.d.ts +1 -1
  1241. package/lib/transform/sort.d.ts +1 -1
  1242. package/lib/transform/sortColor.d.ts +1 -1
  1243. package/lib/transform/sortX.d.ts +1 -1
  1244. package/lib/transform/sortY.d.ts +1 -1
  1245. package/lib/transform/stackEnter.d.ts +2 -1
  1246. package/lib/transform/stackEnter.js +15 -5
  1247. package/lib/transform/stackEnter.js.map +1 -1
  1248. package/lib/transform/stackY.d.ts +1 -1
  1249. package/lib/transform/stackY.js +25 -4
  1250. package/lib/transform/stackY.js.map +1 -1
  1251. package/lib/transform/symmetryY.d.ts +1 -1
  1252. package/lib/transform/utils/helper.d.ts +1 -0
  1253. package/lib/transform/utils/helper.js +11 -2
  1254. package/lib/transform/utils/helper.js.map +1 -1
  1255. package/lib/transform/utils/order.d.ts +3 -3
  1256. package/lib/transform/utils/order.js +2 -0
  1257. package/lib/transform/utils/order.js.map +1 -1
  1258. package/lib/utils/coordinate.js +3 -1
  1259. package/lib/utils/coordinate.js.map +1 -1
  1260. package/lib/utils/helper.d.ts +5 -2
  1261. package/lib/utils/helper.js +13 -4
  1262. package/lib/utils/helper.js.map +1 -1
  1263. package/lib/utils/selection.d.ts +4 -4
  1264. package/lib/utils/selection.js +3 -1
  1265. package/lib/utils/selection.js.map +1 -1
  1266. package/lib/utils/size.d.ts +6 -1
  1267. package/lib/utils/size.js +24 -2
  1268. package/lib/utils/size.js.map +1 -1
  1269. package/lib/utils/vector.d.ts +1 -1
  1270. package/package.json +12 -11
  1271. package/src/animation/fadeIn.ts +1 -1
  1272. package/src/animation/fadeOut.ts +1 -1
  1273. package/src/animation/growInX.ts +40 -0
  1274. package/src/animation/growInY.ts +40 -0
  1275. package/src/animation/index.ts +6 -0
  1276. package/src/animation/morphing.ts +60 -11
  1277. package/src/animation/pathIn.ts +24 -0
  1278. package/src/animation/scaleInX.ts +1 -1
  1279. package/src/animation/scaleInY.ts +1 -1
  1280. package/src/animation/scaleOutX.ts +1 -1
  1281. package/src/animation/scaleOutY.ts +1 -1
  1282. package/src/animation/types.ts +6 -0
  1283. package/src/animation/waveIn.ts +26 -3
  1284. package/src/animation/zoomIn.ts +1 -1
  1285. package/src/animation/zoomOut.ts +1 -1
  1286. package/src/api/chart.ts +25 -5
  1287. package/src/api/composition/facetCircle.ts +4 -10
  1288. package/src/api/composition/facetRect.ts +4 -14
  1289. package/src/api/composition/geoPath.ts +43 -0
  1290. package/src/api/composition/geoView.ts +42 -0
  1291. package/src/api/composition/index.ts +8 -0
  1292. package/src/api/composition/repeatMatrix.ts +4 -13
  1293. package/src/api/composition/spaceFlex.ts +1 -12
  1294. package/src/api/composition/spaceLayer.ts +1 -6
  1295. package/src/api/composition/timingKeyframe.ts +3 -19
  1296. package/src/api/composition/view.ts +12 -14
  1297. package/src/api/mark/index.ts +24 -0
  1298. package/src/api/mark/mark.ts +97 -11
  1299. package/src/api/mark/types.ts +3 -11
  1300. package/src/api/types.ts +4 -2
  1301. package/src/component/axis.ts +29 -13
  1302. package/src/component/legendCategory.ts +3 -3
  1303. package/src/composition/facetCircle.ts +2 -2
  1304. package/src/composition/facetRect.ts +8 -10
  1305. package/src/composition/mark.ts +4 -4
  1306. package/src/composition/repeatMatrix.ts +4 -4
  1307. package/src/composition/timingKeyframe.ts +7 -8
  1308. package/src/data/fetch.ts +1 -0
  1309. package/src/data/filter.ts +19 -0
  1310. package/src/data/index.ts +4 -2
  1311. package/src/data/join.ts +40 -0
  1312. package/src/data/rename.ts +2 -3
  1313. package/src/geo/d3-projection.ts +33 -0
  1314. package/src/geo/geoPath.ts +34 -0
  1315. package/src/geo/geoView.ts +235 -0
  1316. package/src/geo/index.ts +12 -0
  1317. package/src/interaction/action/service/elementSelection.ts +1 -1
  1318. package/src/interaction/action/transformer/filter.ts +6 -5
  1319. package/src/interaction/builtin/elementHighlightByColor.ts +1 -1
  1320. package/src/interaction/builtin/elementHighlightByX.ts +1 -1
  1321. package/src/interaction/index.ts +4 -3
  1322. package/src/interaction/native/chartIndex.ts +5 -2
  1323. package/src/interaction/native/{elementActive.ts → elementHighlight.ts} +9 -9
  1324. package/src/interaction/native/{elementActiveByColor.ts → elementHighlightByColor.ts} +5 -5
  1325. package/src/interaction/native/{elementActiveByX.ts → elementHighlightByX.ts} +5 -5
  1326. package/src/interaction/native/elementSelect.ts +2 -2
  1327. package/src/interaction/native/elementSelectByColor.ts +2 -2
  1328. package/src/interaction/native/elementSelectByX.ts +2 -2
  1329. package/src/interaction/native/fisheye.ts +7 -5
  1330. package/src/interaction/native/tooltip.ts +381 -0
  1331. package/src/interaction/native/utils.ts +2 -2
  1332. package/src/label-transform/dodgeY.ts +11 -1
  1333. package/src/label-transform/hideOverlap.ts +17 -5
  1334. package/src/label-transform/index.ts +4 -0
  1335. package/src/label-transform/spider.ts +37 -0
  1336. package/src/label-transform/surround.ts +37 -0
  1337. package/src/mark/area.ts +10 -7
  1338. package/src/mark/box.ts +7 -8
  1339. package/src/mark/boxplot.ts +119 -0
  1340. package/src/mark/cell.ts +5 -7
  1341. package/src/mark/connector.ts +3 -2
  1342. package/src/mark/forceGraph.ts +133 -0
  1343. package/src/mark/image.ts +14 -9
  1344. package/src/mark/index.ts +16 -0
  1345. package/src/mark/interval.ts +8 -7
  1346. package/src/mark/line.ts +15 -8
  1347. package/src/mark/lineX.ts +6 -2
  1348. package/src/mark/lineY.ts +6 -2
  1349. package/src/mark/link.ts +5 -7
  1350. package/src/mark/pack.ts +105 -0
  1351. package/src/mark/path.ts +34 -0
  1352. package/src/mark/point.ts +32 -27
  1353. package/src/mark/polygon.ts +5 -7
  1354. package/src/mark/range.ts +3 -2
  1355. package/src/mark/rangeX.ts +6 -2
  1356. package/src/mark/rangeY.ts +6 -2
  1357. package/src/mark/rect.ts +8 -7
  1358. package/src/mark/sankey.ts +128 -0
  1359. package/src/mark/shape.ts +37 -0
  1360. package/src/mark/text.ts +17 -11
  1361. package/src/mark/tree.ts +86 -0
  1362. package/src/mark/treemap.ts +189 -0
  1363. package/src/mark/utils.ts +115 -12
  1364. package/src/mark/vector.ts +5 -7
  1365. package/src/mark/wordCloud.ts +74 -0
  1366. package/src/runtime/component.ts +18 -28
  1367. package/src/runtime/coordinate.ts +20 -20
  1368. package/src/runtime/mark.ts +52 -71
  1369. package/src/runtime/plot.ts +229 -61
  1370. package/src/runtime/render.ts +7 -5
  1371. package/src/runtime/scale.ts +112 -246
  1372. package/src/runtime/transform.ts +21 -2
  1373. package/src/runtime/types/common.ts +21 -1
  1374. package/src/runtime/types/component.ts +11 -5
  1375. package/src/runtime/types/mark.ts +12 -2
  1376. package/src/runtime/types/options.ts +6 -4
  1377. package/src/runtime/types/theme.ts +32 -4
  1378. package/src/shape/.DS_Store +0 -0
  1379. package/src/shape/area/curve.ts +2 -0
  1380. package/src/shape/box/box.ts +3 -1
  1381. package/src/shape/connector/connector.ts +75 -102
  1382. package/src/shape/image/image.ts +5 -2
  1383. package/src/shape/index.ts +5 -0
  1384. package/src/shape/interval/color.ts +31 -9
  1385. package/src/shape/interval/funnel.ts +1 -1
  1386. package/src/shape/interval/pyramid.ts +1 -1
  1387. package/src/shape/label/label.ts +20 -7
  1388. package/src/shape/label/position.ts +116 -34
  1389. package/src/shape/line/curve.ts +7 -1
  1390. package/src/shape/lineXY/line.ts +2 -0
  1391. package/src/shape/link/arc.ts +2 -0
  1392. package/src/shape/link/link.ts +6 -10
  1393. package/src/shape/link/smooth.ts +2 -0
  1394. package/src/shape/link/vhv.ts +2 -0
  1395. package/src/shape/path/color.ts +38 -0
  1396. package/src/shape/path/hollow.ts +20 -0
  1397. package/src/shape/path/path.ts +20 -0
  1398. package/src/shape/point/color.ts +5 -2
  1399. package/src/shape/polygon/polygon.ts +2 -0
  1400. package/src/shape/polygon/ribbon.ts +2 -0
  1401. package/src/shape/shape/shape.ts +25 -0
  1402. package/src/shape/text/advance.ts +181 -0
  1403. package/src/shape/text/badge.ts +40 -79
  1404. package/src/shape/text/text.ts +19 -219
  1405. package/src/shape/utils.ts +42 -18
  1406. package/src/shape/vector/vector.ts +5 -9
  1407. package/src/spec/action.ts +1 -1
  1408. package/src/spec/animate.ts +9 -9
  1409. package/src/spec/composition.ts +41 -5
  1410. package/src/spec/data.ts +38 -10
  1411. package/src/spec/geometry.ts +122 -13
  1412. package/src/spec/interaction.ts +40 -34
  1413. package/src/spec/labelTransform.ts +9 -0
  1414. package/src/spec/transform.ts +19 -1
  1415. package/src/stdlib/index.ts +66 -18
  1416. package/src/theme/dark.ts +161 -58
  1417. package/src/theme/light.ts +159 -53
  1418. package/src/transform/bin.ts +102 -0
  1419. package/src/transform/binX.ts +17 -0
  1420. package/src/transform/group.ts +7 -104
  1421. package/src/transform/groupColor.ts +1 -1
  1422. package/src/transform/groupN.ts +120 -0
  1423. package/src/transform/groupX.ts +1 -1
  1424. package/src/transform/groupY.ts +1 -1
  1425. package/src/transform/index.ts +16 -6
  1426. package/src/transform/maybeFunctionAttribute.ts +28 -0
  1427. package/src/transform/maybeGradient.ts +27 -0
  1428. package/src/transform/{maybeTitleX.ts → maybeTitle.ts} +8 -5
  1429. package/src/transform/maybeTooltip.ts +17 -13
  1430. package/src/transform/maybeTuple.ts +22 -0
  1431. package/src/transform/maybeTupleX.ts +2 -2
  1432. package/src/transform/maybeTupleY.ts +2 -2
  1433. package/src/transform/maybeVisualPosition.ts +37 -0
  1434. package/src/transform/stackEnter.ts +20 -4
  1435. package/src/transform/stackY.ts +30 -4
  1436. package/src/transform/utils/helper.ts +8 -1
  1437. package/src/transform/utils/order.ts +1 -0
  1438. package/src/utils/coordinate.ts +2 -1
  1439. package/src/utils/helper.ts +17 -4
  1440. package/src/utils/selection.ts +7 -4
  1441. package/src/utils/size.ts +45 -1
  1442. package/esm/data/filterBy.d.ts +0 -8
  1443. package/esm/data/filterBy.js +0 -17
  1444. package/esm/data/filterBy.js.map +0 -1
  1445. package/esm/interaction/native/elementActive.d.ts +0 -10
  1446. package/esm/interaction/native/elementActive.js.map +0 -1
  1447. package/esm/interaction/native/elementActiveByColor.d.ts +0 -4
  1448. package/esm/interaction/native/elementActiveByColor.js +0 -12
  1449. package/esm/interaction/native/elementActiveByColor.js.map +0 -1
  1450. package/esm/interaction/native/elementActiveByX.js +0 -13
  1451. package/esm/interaction/native/elementActiveByX.js.map +0 -1
  1452. package/esm/transform/maybeTitleX.d.ts +0 -6
  1453. package/esm/transform/maybeTitleX.js.map +0 -1
  1454. package/esm/transform/maybeTooltipPosition.d.ts +0 -7
  1455. package/esm/transform/maybeTooltipPosition.js +0 -10
  1456. package/esm/transform/maybeTooltipPosition.js.map +0 -1
  1457. package/esm/transform/maybeTooltipY.d.ts +0 -6
  1458. package/esm/transform/maybeTooltipY.js +0 -9
  1459. package/esm/transform/maybeTooltipY.js.map +0 -1
  1460. package/lib/data/filterBy.d.ts +0 -8
  1461. package/lib/data/filterBy.js +0 -21
  1462. package/lib/data/filterBy.js.map +0 -1
  1463. package/lib/interaction/native/elementActive.d.ts +0 -10
  1464. package/lib/interaction/native/elementActive.js.map +0 -1
  1465. package/lib/interaction/native/elementActiveByColor.d.ts +0 -4
  1466. package/lib/interaction/native/elementActiveByColor.js +0 -16
  1467. package/lib/interaction/native/elementActiveByColor.js.map +0 -1
  1468. package/lib/interaction/native/elementActiveByX.js +0 -17
  1469. package/lib/interaction/native/elementActiveByX.js.map +0 -1
  1470. package/lib/transform/maybeTitleX.d.ts +0 -6
  1471. package/lib/transform/maybeTitleX.js.map +0 -1
  1472. package/lib/transform/maybeTooltipPosition.d.ts +0 -7
  1473. package/lib/transform/maybeTooltipPosition.js +0 -14
  1474. package/lib/transform/maybeTooltipPosition.js.map +0 -1
  1475. package/lib/transform/maybeTooltipY.d.ts +0 -6
  1476. package/lib/transform/maybeTooltipY.js +0 -13
  1477. package/lib/transform/maybeTooltipY.js.map +0 -1
  1478. package/src/data/filterBy.ts +0 -28
  1479. package/src/transform/maybeTooltipPosition.ts +0 -14
  1480. package/src/transform/maybeTooltipY.ts +0 -13
@@ -1,7 +1,7 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { FoldTransform } from '../spec';
3
3
  export declare function isEmpty(obj: any): boolean;
4
- export declare type FoldOptions = Omit<FoldTransform, 'type'>;
4
+ export type FoldOptions = Omit<FoldTransform, 'type'>;
5
5
  /**
6
6
  * Collapses (or “folds”) one or more data fields into two
7
7
  * properties: `key` (contains the original data field name)
@@ -1,6 +1,6 @@
1
1
  export { Fetch } from './fetch';
2
2
  export { Fold } from './fold';
3
- export { FilterBy } from './filterBy';
3
+ export { Filter } from './filter';
4
4
  export { Pick } from './pick';
5
5
  export { Rename } from './rename';
6
6
  export { Subset } from './subset';
@@ -13,9 +13,10 @@ export { Tree } from './tree';
13
13
  export { Sankey } from './sankey';
14
14
  export { Arc } from './arc';
15
15
  export { WordCloud } from './wordCloud';
16
+ export { Join } from './join';
16
17
  export type { FetchOptions } from './fetch';
17
18
  export type { FoldOptions } from './fold';
18
- export type { FilterByOptions } from './filterBy';
19
+ export type { FilterOptions } from './filter';
19
20
  export type { PickOptions } from './pick';
20
21
  export type { RenameOptions } from './rename';
21
22
  export type { SubsetOptions } from './subset';
@@ -28,3 +29,4 @@ export type { TreeOptions } from './tree';
28
29
  export type { SankeyOptions } from './sankey';
29
30
  export type { ArcOptions } from './arc';
30
31
  export type { WordCloudOptions } from './wordCloud';
32
+ export type { JoinOptions } from './join';
package/lib/data/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WordCloud = exports.Arc = exports.Sankey = exports.Tree = exports.Cluster = exports.Map = exports.Custom = exports.Inline = exports.SortBy = exports.Subset = exports.Rename = exports.Pick = exports.FilterBy = exports.Fold = exports.Fetch = void 0;
3
+ exports.Join = exports.WordCloud = exports.Arc = exports.Sankey = exports.Tree = exports.Cluster = exports.Map = exports.Custom = exports.Inline = exports.SortBy = exports.Subset = exports.Rename = exports.Pick = exports.Filter = exports.Fold = exports.Fetch = void 0;
4
4
  var fetch_1 = require("./fetch");
5
5
  Object.defineProperty(exports, "Fetch", { enumerable: true, get: function () { return fetch_1.Fetch; } });
6
6
  var fold_1 = require("./fold");
7
7
  Object.defineProperty(exports, "Fold", { enumerable: true, get: function () { return fold_1.Fold; } });
8
- var filterBy_1 = require("./filterBy");
9
- Object.defineProperty(exports, "FilterBy", { enumerable: true, get: function () { return filterBy_1.FilterBy; } });
8
+ var filter_1 = require("./filter");
9
+ Object.defineProperty(exports, "Filter", { enumerable: true, get: function () { return filter_1.Filter; } });
10
10
  var pick_1 = require("./pick");
11
11
  Object.defineProperty(exports, "Pick", { enumerable: true, get: function () { return pick_1.Pick; } });
12
12
  var rename_1 = require("./rename");
@@ -31,4 +31,6 @@ var arc_1 = require("./arc");
31
31
  Object.defineProperty(exports, "Arc", { enumerable: true, get: function () { return arc_1.Arc; } });
32
32
  var wordCloud_1 = require("./wordCloud");
33
33
  Object.defineProperty(exports, "WordCloud", { enumerable: true, get: function () { return wordCloud_1.WordCloud; } });
34
+ var join_1 = require("./join");
35
+ Object.defineProperty(exports, "Join", { enumerable: true, get: function () { return join_1.Join; } });
34
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["data/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["data/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+BAA8B;AAArB,4FAAA,IAAI,OAAA"}
@@ -1,4 +1,4 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { InlineConnector } from '../spec';
3
- export declare type InlineOptions = Omit<InlineConnector, 'type'>;
3
+ export type InlineOptions = Omit<InlineConnector, 'type'>;
4
4
  export declare const Inline: DC<InlineOptions>;
@@ -0,0 +1,7 @@
1
+ import { DataComponent as DC } from '../runtime';
2
+ import { JoinTransform } from '../spec';
3
+ export type JoinOptions = Omit<JoinTransform, 'type'>;
4
+ /**
5
+ * Join data with another dataset by SQL style.
6
+ */
7
+ export declare const Join: DC<JoinOptions>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Join = void 0;
4
+ const d3_array_1 = require("d3-array");
5
+ function field(key) {
6
+ return typeof key === 'string' ? (d) => d[key] : key;
7
+ }
8
+ /**
9
+ * Join data with another dataset by SQL style.
10
+ */
11
+ const Join = (options) => {
12
+ // const { fromKey, from, key, unknown = NaN, ...rest } = options;
13
+ const { join, on, select = [], as = select, unknown = NaN } = options;
14
+ const [key, fromKey] = on;
15
+ const fk = field(fromKey);
16
+ const k = field(key);
17
+ const keyData = (0, d3_array_1.rollup)(join, ([d]) => d, // Get the first matched.
18
+ (d) => fk(d));
19
+ return (data) => data.map((d) => {
20
+ const source = keyData.get(k(d));
21
+ return Object.assign(Object.assign({}, d), select.reduce((prev, key, idx) => ((prev[as[idx]] = source ? source[key] : unknown), prev), {}));
22
+ });
23
+ };
24
+ exports.Join = Join;
25
+ exports.Join.props = {};
26
+ //# sourceMappingURL=join.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.js","sourceRoot":"src/","sources":["data/join.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAIlC,SAAS,KAAK,CAAC,GAA+B;IAC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AAEF,YAAI,CAAC,KAAK,GAAG,EAAE,CAAC"}
package/lib/data/map.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { MapTransform } from '../spec';
3
- export declare type MapOptions = Omit<MapTransform, 'type'>;
3
+ export type MapOptions = Omit<MapTransform, 'type'>;
4
4
  /**
5
5
  * Map transform by function.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { PickTransform } from '../spec';
3
- export declare type PickOptions = Omit<PickTransform, 'type'>;
3
+ export type PickOptions = Omit<PickTransform, 'type'>;
4
4
  /**
5
5
  * Immutable data pick by specified fields.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { RenameTransform } from '../spec';
3
3
  export declare function isEmpty(obj: any): boolean;
4
- export declare type RenameOptions = Omit<RenameTransform, 'type'>;
4
+ export type RenameOptions = Omit<RenameTransform, 'type'>;
5
5
  /**
6
6
  * Immutable data rename by specified fields.
7
7
  */
@@ -9,11 +9,10 @@ exports.isEmpty = isEmpty;
9
9
  * Immutable data rename by specified fields.
10
10
  */
11
11
  const Rename = (options) => {
12
- const { map } = options;
13
12
  return (data) => {
14
- if (!map || isEmpty(map))
13
+ if (!options || isEmpty(options))
15
14
  return data;
16
- const rename = (v) => Object.entries(v).reduce((datum, [key, value]) => ((datum[map[key] || key] = value), datum), {});
15
+ const rename = (v) => Object.entries(v).reduce((datum, [key, value]) => ((datum[options[key] || key] = value), datum), {});
17
16
  return data.map(rename);
18
17
  };
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rename.js","sourceRoot":"src/","sources":["data/rename.ts"],"names":[],"mappings":";;;AAGA,SAAgB,OAAO,CAAC,GAAQ;IAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACvC,CAAC;AAFD,0BAEC;AAID;;GAEG;AACI,MAAM,MAA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,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,KAAK,CAAC,EACtE,EAAE,CACH,CAAC;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,MAAM,UAUjB;AAEF,cAAM,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { SankeyTransform } from '../spec';
3
- export declare type SankeyOptions = Omit<SankeyTransform, 'type'>;
3
+ export type SankeyOptions = Omit<SankeyTransform, 'type'>;
4
4
  /**
5
5
  * Compute the node and edge position, return a graph representing the Sankey layout. All will be normalized to [[0, 0], [1, 1]]
6
6
  * Required graph data (nodes, edges)
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { SortByTransform } from '../spec';
3
- export declare type SortByOptions = Omit<SortByTransform, 'type'>;
3
+ export type SortByOptions = Omit<SortByTransform, 'type'>;
4
4
  /**
5
5
  * Immutable data sort by specified fields.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { SubsetTransform } from '../spec';
3
- export declare type SubsetOptions = Omit<SubsetTransform, 'type'>;
3
+ export type SubsetOptions = Omit<SubsetTransform, 'type'>;
4
4
  /**
5
5
  * Immutable data sort by specified fields.
6
6
  */
@@ -1,4 +1,4 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { TreeTransform } from '../spec';
3
- export declare type TreeOptions = Omit<TreeTransform, 'type'>;
3
+ export type TreeOptions = Omit<TreeTransform, 'type'>;
4
4
  export declare const Tree: DC<TreeOptions>;
@@ -1,4 +1,4 @@
1
- export declare type ArcOptions = {
1
+ export type ArcOptions = {
2
2
  /** Key of node, default: node.id */
3
3
  id?: (node: any) => any;
4
4
  /** Source key of edge, default: edge.source */
@@ -20,7 +20,7 @@ export declare type ArcOptions = {
20
20
  /** Thickness of node, default: 0.05 */
21
21
  thickness?: number;
22
22
  };
23
- export declare type ArcData = {
23
+ export type ArcData = {
24
24
  nodes: any[];
25
25
  edges: any[];
26
26
  };
@@ -1,4 +1,4 @@
1
- declare type Flow = {
1
+ type Flow = {
2
2
  set(key: string, normalize?: any, callback?: any): Flow;
3
3
  setAsync(key: string, normalize?: any, callback?: any): Promise<Flow>;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { DataComponent as DC } from '../runtime';
2
2
  import { WordCloudTransform } from '../spec';
3
- export declare type WordCloudOptions = Omit<WordCloudTransform, 'type'>;
3
+ export type WordCloudOptions = Omit<WordCloudTransform, 'type'>;
4
4
  export declare function processImageMask(img: HTMLImageElement | string): Promise<HTMLImageElement>;
5
5
  export declare function normalizeFontSize(fontSize: any, range?: [number, number]): any;
6
6
  export declare const WordCloud: DC<WordCloudOptions>;
@@ -1,6 +1,6 @@
1
1
  import { EncodeComponent as EC } from '../runtime';
2
2
  import { ColumnEncode } from '../spec';
3
- export declare type ColumnOptions = Omit<ColumnEncode, 'type'>;
3
+ export type ColumnOptions = Omit<ColumnEncode, 'type'>;
4
4
  /**
5
5
  * Extract a column of data specified in encoding.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { EncodeComponent as EC } from '../runtime';
2
2
  import { ConstantEncode } from '../spec';
3
- export declare type ConstantOptions = Omit<ConstantEncode, 'type'>;
3
+ export type ConstantOptions = Omit<ConstantEncode, 'type'>;
4
4
  /**
5
5
  * Extract a column of data filled with the specified constant.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { EncodeComponent as EC } from '../runtime';
2
2
  import { FieldEncode } from '../spec';
3
- export declare type FieldOptions = Omit<FieldEncode, 'type'>;
3
+ export type FieldOptions = Omit<FieldEncode, 'type'>;
4
4
  /**
5
5
  * Extract a column of data with specified field.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { EncodeComponent as EC } from '../runtime';
2
2
  import { TransformEncode } from '../spec';
3
- export declare type TransformOptions = Omit<TransformEncode, 'type'>;
3
+ export type TransformOptions = Omit<TransformEncode, 'type'>;
4
4
  /**
5
5
  * Extract a column of data with specified map function from data.
6
6
  * Each datum in the array is not visual data by default.
@@ -0,0 +1 @@
1
+ export { geoAlbersUsa, geoAlbers, geoAzimuthalEqualArea, geoAzimuthalEqualAreaRaw, geoAzimuthalEquidistant, geoAzimuthalEquidistantRaw, geoConicConformal, geoConicConformalRaw, geoConicEqualArea, geoConicEqualAreaRaw, geoConicEquidistant, geoConicEquidistantRaw, geoEqualEarth, geoEqualEarthRaw, geoEquirectangular, geoEquirectangularRaw, geoGnomonic, geoGnomonicRaw, geoIdentity, geoProjection, geoProjectionMutator, geoMercator, geoMercatorRaw, geoNaturalEarth1, geoNaturalEarth1Raw, geoOrthographic, geoOrthographicRaw, geoStereographic, geoStereographicRaw, geoTransverseMercator, geoTransverseMercatorRaw, } from 'd3-geo';
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.geoTransverseMercatorRaw = exports.geoTransverseMercator = exports.geoStereographicRaw = exports.geoStereographic = exports.geoOrthographicRaw = exports.geoOrthographic = exports.geoNaturalEarth1Raw = exports.geoNaturalEarth1 = exports.geoMercatorRaw = exports.geoMercator = exports.geoProjectionMutator = exports.geoProjection = exports.geoIdentity = exports.geoGnomonicRaw = exports.geoGnomonic = exports.geoEquirectangularRaw = exports.geoEquirectangular = exports.geoEqualEarthRaw = exports.geoEqualEarth = exports.geoConicEquidistantRaw = exports.geoConicEquidistant = exports.geoConicEqualAreaRaw = exports.geoConicEqualArea = exports.geoConicConformalRaw = exports.geoConicConformal = exports.geoAzimuthalEquidistantRaw = exports.geoAzimuthalEquidistant = exports.geoAzimuthalEqualAreaRaw = exports.geoAzimuthalEqualArea = exports.geoAlbers = exports.geoAlbersUsa = void 0;
4
+ var d3_geo_1 = require("d3-geo");
5
+ Object.defineProperty(exports, "geoAlbersUsa", { enumerable: true, get: function () { return d3_geo_1.geoAlbersUsa; } });
6
+ Object.defineProperty(exports, "geoAlbers", { enumerable: true, get: function () { return d3_geo_1.geoAlbers; } });
7
+ Object.defineProperty(exports, "geoAzimuthalEqualArea", { enumerable: true, get: function () { return d3_geo_1.geoAzimuthalEqualArea; } });
8
+ Object.defineProperty(exports, "geoAzimuthalEqualAreaRaw", { enumerable: true, get: function () { return d3_geo_1.geoAzimuthalEqualAreaRaw; } });
9
+ Object.defineProperty(exports, "geoAzimuthalEquidistant", { enumerable: true, get: function () { return d3_geo_1.geoAzimuthalEquidistant; } });
10
+ Object.defineProperty(exports, "geoAzimuthalEquidistantRaw", { enumerable: true, get: function () { return d3_geo_1.geoAzimuthalEquidistantRaw; } });
11
+ Object.defineProperty(exports, "geoConicConformal", { enumerable: true, get: function () { return d3_geo_1.geoConicConformal; } });
12
+ Object.defineProperty(exports, "geoConicConformalRaw", { enumerable: true, get: function () { return d3_geo_1.geoConicConformalRaw; } });
13
+ Object.defineProperty(exports, "geoConicEqualArea", { enumerable: true, get: function () { return d3_geo_1.geoConicEqualArea; } });
14
+ Object.defineProperty(exports, "geoConicEqualAreaRaw", { enumerable: true, get: function () { return d3_geo_1.geoConicEqualAreaRaw; } });
15
+ Object.defineProperty(exports, "geoConicEquidistant", { enumerable: true, get: function () { return d3_geo_1.geoConicEquidistant; } });
16
+ Object.defineProperty(exports, "geoConicEquidistantRaw", { enumerable: true, get: function () { return d3_geo_1.geoConicEquidistantRaw; } });
17
+ Object.defineProperty(exports, "geoEqualEarth", { enumerable: true, get: function () { return d3_geo_1.geoEqualEarth; } });
18
+ Object.defineProperty(exports, "geoEqualEarthRaw", { enumerable: true, get: function () { return d3_geo_1.geoEqualEarthRaw; } });
19
+ Object.defineProperty(exports, "geoEquirectangular", { enumerable: true, get: function () { return d3_geo_1.geoEquirectangular; } });
20
+ Object.defineProperty(exports, "geoEquirectangularRaw", { enumerable: true, get: function () { return d3_geo_1.geoEquirectangularRaw; } });
21
+ Object.defineProperty(exports, "geoGnomonic", { enumerable: true, get: function () { return d3_geo_1.geoGnomonic; } });
22
+ Object.defineProperty(exports, "geoGnomonicRaw", { enumerable: true, get: function () { return d3_geo_1.geoGnomonicRaw; } });
23
+ Object.defineProperty(exports, "geoIdentity", { enumerable: true, get: function () { return d3_geo_1.geoIdentity; } });
24
+ Object.defineProperty(exports, "geoProjection", { enumerable: true, get: function () { return d3_geo_1.geoProjection; } });
25
+ Object.defineProperty(exports, "geoProjectionMutator", { enumerable: true, get: function () { return d3_geo_1.geoProjectionMutator; } });
26
+ Object.defineProperty(exports, "geoMercator", { enumerable: true, get: function () { return d3_geo_1.geoMercator; } });
27
+ Object.defineProperty(exports, "geoMercatorRaw", { enumerable: true, get: function () { return d3_geo_1.geoMercatorRaw; } });
28
+ Object.defineProperty(exports, "geoNaturalEarth1", { enumerable: true, get: function () { return d3_geo_1.geoNaturalEarth1; } });
29
+ Object.defineProperty(exports, "geoNaturalEarth1Raw", { enumerable: true, get: function () { return d3_geo_1.geoNaturalEarth1Raw; } });
30
+ Object.defineProperty(exports, "geoOrthographic", { enumerable: true, get: function () { return d3_geo_1.geoOrthographic; } });
31
+ Object.defineProperty(exports, "geoOrthographicRaw", { enumerable: true, get: function () { return d3_geo_1.geoOrthographicRaw; } });
32
+ Object.defineProperty(exports, "geoStereographic", { enumerable: true, get: function () { return d3_geo_1.geoStereographic; } });
33
+ Object.defineProperty(exports, "geoStereographicRaw", { enumerable: true, get: function () { return d3_geo_1.geoStereographicRaw; } });
34
+ Object.defineProperty(exports, "geoTransverseMercator", { enumerable: true, get: function () { return d3_geo_1.geoTransverseMercator; } });
35
+ Object.defineProperty(exports, "geoTransverseMercatorRaw", { enumerable: true, get: function () { return d3_geo_1.geoTransverseMercatorRaw; } });
36
+ //# sourceMappingURL=d3-projection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d3-projection.js","sourceRoot":"src/","sources":["geo/d3-projection.ts"],"names":[],"mappings":";;;AAAA,iCAgCgB;AA/Bd,sGAAA,YAAY,OAAA;AACZ,mGAAA,SAAS,OAAA;AACT,+GAAA,qBAAqB,OAAA;AACrB,kHAAA,wBAAwB,OAAA;AACxB,iHAAA,uBAAuB,OAAA;AACvB,oHAAA,0BAA0B,OAAA;AAC1B,2GAAA,iBAAiB,OAAA;AACjB,8GAAA,oBAAoB,OAAA;AACpB,2GAAA,iBAAiB,OAAA;AACjB,8GAAA,oBAAoB,OAAA;AACpB,6GAAA,mBAAmB,OAAA;AACnB,gHAAA,sBAAsB,OAAA;AACtB,uGAAA,aAAa,OAAA;AACb,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,+GAAA,qBAAqB,OAAA;AACrB,qGAAA,WAAW,OAAA;AACX,wGAAA,cAAc,OAAA;AACd,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,8GAAA,oBAAoB,OAAA;AACpB,qGAAA,WAAW,OAAA;AACX,wGAAA,cAAc,OAAA;AACd,0GAAA,gBAAgB,OAAA;AAChB,6GAAA,mBAAmB,OAAA;AACnB,yGAAA,eAAe,OAAA;AACf,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,6GAAA,mBAAmB,OAAA;AACnB,+GAAA,qBAAqB,OAAA;AACrB,kHAAA,wBAAwB,OAAA"}
@@ -0,0 +1,7 @@
1
+ import { CompositionComponent as CC } from '../runtime';
2
+ import { GeoPathComposition } from '../spec';
3
+ export type GeoPathOptions = Omit<GeoPathComposition, 'type'>;
4
+ /**
5
+ * Wrap GeoPath by a GeoView.
6
+ */
7
+ export declare const GeoPath: CC<GeoPathOptions>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.GeoPath = void 0;
15
+ /**
16
+ * Wrap GeoPath by a GeoView.
17
+ */
18
+ const GeoPath = () => {
19
+ return (options) => {
20
+ const { type, data, scale, encode, style, animate, key } = options, rest = __rest(options, ["type", "data", "scale", "encode", "style", "animate", "key"]);
21
+ return [
22
+ Object.assign(Object.assign({ type: 'geoView' }, rest), { children: [
23
+ {
24
+ type: 'geoPath',
25
+ key: `${key}-0`,
26
+ data: {
27
+ value: data,
28
+ },
29
+ scale,
30
+ encode,
31
+ style,
32
+ animate,
33
+ },
34
+ ] }),
35
+ ];
36
+ };
37
+ };
38
+ exports.GeoPath = GeoPath;
39
+ exports.GeoPath.props = {};
40
+ //# sourceMappingURL=geoPath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoPath.js","sourceRoot":"src/","sources":["geo/geoPath.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA;;GAEG;AACI,MAAM,OAAO,GAAuB,GAAG,EAAE;IAC9C,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAc,OAAO,EAAhB,IAAI,UAAK,OAAO,EAArE,8DAA2D,CAAU,CAAC;QAC5E,OAAO;0CAEH,IAAI,EAAE,SAAS,IACZ,IAAI,KACP,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,GAAG,EAAE,GAAG,GAAG,IAAI;wBACf,IAAI,EAAE;4BACJ,KAAK,EAAE,IAAI;yBACZ;wBACD,KAAK;wBACL,MAAM;wBACN,KAAK;wBACL,OAAO;qBACR;iBACF;SAEJ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,OAAO,WAuBlB;AAEF,eAAO,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CompositionComponent as CC } from '../runtime';
2
+ import { GeoViewComposition } from '../spec';
3
+ export type GeoViewOptions = Omit<GeoViewComposition, 'type'>;
4
+ /**
5
+ * A view with geo coordinate.
6
+ */
7
+ export declare const GeoView: CC<GeoViewOptions>;
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GeoView = void 0;
38
+ const scale_1 = require("@antv/scale");
39
+ const util_1 = require("@antv/util");
40
+ const d3_geo_1 = require("d3-geo");
41
+ const d3Projection = __importStar(require("./d3-projection"));
42
+ /**
43
+ * Get projection factory from d3-projection.
44
+ */
45
+ function normalizeProjection(type) {
46
+ if (typeof type === 'function')
47
+ return type;
48
+ const name = `geo${(0, util_1.upperFirst)(type)}`;
49
+ const projection = d3Projection[name];
50
+ if (!projection)
51
+ throw new Error(`Unknown projection: ${type}`);
52
+ return projection;
53
+ }
54
+ /**
55
+ * @see https://github.com/mapbox/geojson-merge/blob/master/index.js
56
+ */
57
+ function mergeGeoJSON(gjs) {
58
+ return {
59
+ type: 'FeatureCollection',
60
+ features: gjs.flatMap((gj) => normalizeGeoJSON(gj).features),
61
+ };
62
+ }
63
+ function normalizeGeoJSON(gj) {
64
+ const types = {
65
+ Point: 'geometry',
66
+ MultiPoint: 'geometry',
67
+ LineString: 'geometry',
68
+ MultiLineString: 'geometry',
69
+ Polygon: 'geometry',
70
+ MultiPolygon: 'geometry',
71
+ GeometryCollection: 'geometry',
72
+ Feature: 'feature',
73
+ FeatureCollection: 'featureCollection',
74
+ };
75
+ if (!gj || !gj.type)
76
+ return null;
77
+ const type = types[gj.type];
78
+ if (!type)
79
+ return null;
80
+ if (type === 'geometry') {
81
+ return {
82
+ type: 'FeatureCollection',
83
+ features: [
84
+ {
85
+ type: 'Feature',
86
+ properties: {},
87
+ geometry: gj,
88
+ },
89
+ ],
90
+ };
91
+ }
92
+ else if (type === 'feature') {
93
+ return {
94
+ type: 'FeatureCollection',
95
+ features: [gj],
96
+ };
97
+ }
98
+ else if (type === 'featureCollection') {
99
+ return gj;
100
+ }
101
+ }
102
+ /**
103
+ * Specify the options for d3 projection
104
+ * @see https://github.com/d3/d3-geo#projections
105
+ * @todo Specify key each by each.
106
+ */
107
+ function setProjectionOptions(projection, options) {
108
+ var _a;
109
+ for (const [key, value] of Object.entries(options)) {
110
+ (_a = projection[key]) === null || _a === void 0 ? void 0 : _a.call(projection, value);
111
+ }
112
+ }
113
+ function setProjectionSize(projection, nodes, layout, options) {
114
+ const defaultOutline = () => {
115
+ const geoNodes = nodes.filter(isGeoPath);
116
+ // For geoPath with sphere mark, use it as outline.
117
+ const sphere = geoNodes.find((d) => d.sphere);
118
+ if (sphere)
119
+ return { type: 'Sphere' };
120
+ // Merge all GeoJSON as the outline.
121
+ return mergeGeoJSON(geoNodes.filter((d) => !d.sphere).flatMap((d) => d.data.value));
122
+ };
123
+ const { outline = defaultOutline() } = options;
124
+ const { size = 'fitExtent' } = options;
125
+ if (size === 'fitExtent') {
126
+ return setFitExtent(projection, outline, layout);
127
+ }
128
+ else if (size === 'fitWidth') {
129
+ return setFitWidth(projection, outline, layout);
130
+ }
131
+ }
132
+ function setFitExtent(projection, object, layout) {
133
+ const { x, y, width, height } = layout;
134
+ projection.fitExtent([
135
+ [x, y],
136
+ [width, height],
137
+ ], object);
138
+ }
139
+ function setFitWidth(projection, object, layout) {
140
+ const { width, height } = layout;
141
+ const [[x0, y0], [x1, y1]] = (0, d3_geo_1.geoPath)(projection.fitWidth(width, object)).bounds(object);
142
+ const dy = Math.ceil(y1 - y0);
143
+ const l = Math.min(Math.ceil(x1 - x0), dy);
144
+ const s = (projection.scale() * (l - 1)) / l;
145
+ const [tx, ty] = projection.translate();
146
+ const t = ty + (height - dy) / 2;
147
+ projection.scale(s).translate([tx, t]).precision(0.2);
148
+ }
149
+ /**
150
+ * @todo Remove this.
151
+ */
152
+ function normalizeDataSource(node) {
153
+ const { data } = node;
154
+ if (Array.isArray(data))
155
+ return Object.assign(Object.assign({}, node), { data: { value: data } });
156
+ const { type } = data;
157
+ if (type === 'graticule10') {
158
+ return Object.assign(Object.assign({}, node), { data: { value: [(0, d3_geo_1.geoGraticule10)()] } });
159
+ }
160
+ else if (type === 'sphere') {
161
+ // Sphere is not a standard type of GeoJSON.
162
+ // Mark this geoPath as sphere geoPath.
163
+ return Object.assign(Object.assign({}, node), { sphere: true, data: { value: [{ type: 'Sphere' }] } });
164
+ }
165
+ return node;
166
+ }
167
+ function isGeoPath(d) {
168
+ return d.type === 'geoPath';
169
+ }
170
+ /**
171
+ * A view with geo coordinate.
172
+ */
173
+ const GeoView = () => {
174
+ return (options) => {
175
+ const { children, projection = {} } = options;
176
+ if (!Array.isArray(children))
177
+ return [];
178
+ // Get projection factory.
179
+ const { type = 'equalEarth' } = projection, projectionOptions = __rest(projection, ["type"]);
180
+ const createProjection = normalizeProjection(type);
181
+ const nodes = children.map(normalizeDataSource);
182
+ // Set path generator lazily.
183
+ let path;
184
+ // A custom geo coordinate.
185
+ function Geo() {
186
+ return [
187
+ [
188
+ 'custom',
189
+ (x, y, width, height) => {
190
+ // Create and set projection.
191
+ const visual = createProjection();
192
+ const layout = { x, y, width, height };
193
+ setProjectionSize(visual, nodes, layout, projectionOptions);
194
+ setProjectionOptions(visual, projectionOptions);
195
+ // Create path generator.
196
+ path = (0, d3_geo_1.geoPath)(visual);
197
+ // Normalize projection and projection.invert,
198
+ // which normalize projected points.
199
+ const scaleX = new scale_1.Linear({
200
+ domain: [x, x + width],
201
+ });
202
+ const scaleY = new scale_1.Linear({
203
+ domain: [y, y + height],
204
+ });
205
+ const normalize = (point) => {
206
+ const visualPoint = visual(point);
207
+ if (!visualPoint)
208
+ return null;
209
+ const [vx, vy] = visualPoint;
210
+ return [scaleX.map(vx), scaleY.map(vy)];
211
+ };
212
+ const normalizeInvert = (point) => {
213
+ if (!point)
214
+ return null;
215
+ const [px, py] = point;
216
+ const visualPoint = [scaleX.invert(px), scaleY.invert(py)];
217
+ return visual.invert(visualPoint);
218
+ };
219
+ return {
220
+ transform: (point) => normalize(point),
221
+ untransform: (point) => normalizeInvert(point),
222
+ };
223
+ },
224
+ ],
225
+ ];
226
+ }
227
+ function GeoPath(options) {
228
+ const { style } = options;
229
+ return Object.assign(Object.assign({}, options), { type: 'path', style: Object.assign(Object.assign({}, style), { d: (d) => path(d) }) });
230
+ }
231
+ const t = (d) => (isGeoPath(d) ? GeoPath(d) : d);
232
+ return [
233
+ Object.assign(Object.assign({}, options), { type: 'view', scale: {
234
+ x: { type: 'identity' },
235
+ y: { type: 'identity' },
236
+ }, axis: false, coordinates: [{ type: Geo }], children: nodes.flatMap(t) }),
237
+ ];
238
+ };
239
+ };
240
+ exports.GeoView = GeoView;
241
+ exports.GeoView.props = {};
242
+ //# sourceMappingURL=geoView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoView.js","sourceRoot":"src/","sources":["geo/geoView.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAqC;AACrC,qCAAwC;AACxC,mCAAiD;AAIjD,8DAAgD;AAEhD;;GAEG;AACH,SAAS,mBAAmB,CAAC,IAAY;IACvC,IAAI,OAAO,IAAI,KAAK,UAAU;QAAE,OAAO,IAAI,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAU,EAAC,IAAI,CAAC,EAAE,CAAC;IACtC,MAAM,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,IAAI,EAAE,CAAC,CAAC;IAChE,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,GAAG;IACvB,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;KAC7D,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,EAAE;IAC1B,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,UAAU;QACjB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAA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