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

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 (1307) hide show
  1. package/README.en-US.md +47 -75
  2. package/README.md +47 -83
  3. package/dist/g2-lite.min.js +10 -0
  4. package/dist/g2.min.js +3 -3
  5. package/esm/adjust/index.d.ts +2 -1
  6. package/esm/adjust/index.js.map +1 -1
  7. package/esm/animation/fadeIn.js +4 -6
  8. package/esm/animation/fadeIn.js.map +1 -1
  9. package/esm/animation/fadeOut.js +4 -4
  10. package/esm/animation/fadeOut.js.map +1 -1
  11. package/esm/animation/index.d.ts +14 -7
  12. package/esm/animation/index.js.map +1 -1
  13. package/esm/animation/morphing.js +4 -5
  14. package/esm/animation/morphing.js.map +1 -1
  15. package/esm/animation/scaleInX.js +7 -5
  16. package/esm/animation/scaleInX.js.map +1 -1
  17. package/esm/animation/scaleInY.js +7 -5
  18. package/esm/animation/scaleInY.js.map +1 -1
  19. package/esm/animation/scaleOutX.js +4 -5
  20. package/esm/animation/scaleOutX.js.map +1 -1
  21. package/esm/animation/scaleOutY.js +4 -5
  22. package/esm/animation/scaleOutY.js.map +1 -1
  23. package/esm/api/chart.d.ts +8 -1
  24. package/esm/api/chart.js +32 -7
  25. package/esm/api/chart.js.map +1 -1
  26. package/esm/api/composition/circle.js.map +1 -1
  27. package/esm/api/composition/flex.js.map +1 -1
  28. package/esm/api/composition/keyframe.js.map +1 -1
  29. package/esm/api/composition/layer.js.map +1 -1
  30. package/esm/api/composition/matrix.js.map +1 -1
  31. package/esm/api/composition/rect.js.map +1 -1
  32. package/esm/api/composition/view.js.map +1 -1
  33. package/esm/api/index.d.ts +1 -0
  34. package/esm/api/index.js +1 -0
  35. package/esm/api/index.js.map +1 -1
  36. package/esm/api/library.d.ts +3 -0
  37. package/esm/api/library.js +7 -0
  38. package/esm/api/library.js.map +1 -0
  39. package/esm/api/mark/index.d.ts +3 -3
  40. package/esm/api/mark/index.js +2 -2
  41. package/esm/api/mark/index.js.map +1 -1
  42. package/esm/api/mark/mark.d.ts +4 -4
  43. package/esm/api/mark/mark.js +6 -5
  44. package/esm/api/mark/mark.js.map +1 -1
  45. package/esm/api/mark/types.d.ts +1 -0
  46. package/esm/api/node.d.ts +4 -5
  47. package/esm/api/node.js +5 -7
  48. package/esm/api/node.js.map +1 -1
  49. package/esm/api/props.d.ts +1 -0
  50. package/esm/api/props.js +10 -10
  51. package/esm/api/props.js.map +1 -1
  52. package/esm/component/axis.d.ts +1 -1
  53. package/esm/component/axis.js +11 -4
  54. package/esm/component/axis.js.map +1 -1
  55. package/esm/component/index.d.ts +10 -5
  56. package/esm/component/index.js.map +1 -1
  57. package/esm/composition/circle.js +1 -1
  58. package/esm/composition/circle.js.map +1 -1
  59. package/esm/composition/flex.js +4 -2
  60. package/esm/composition/flex.js.map +1 -1
  61. package/esm/composition/index.d.ts +16 -8
  62. package/esm/composition/index.js.map +1 -1
  63. package/esm/composition/layer.js +3 -3
  64. package/esm/composition/layer.js.map +1 -1
  65. package/esm/composition/mark.js +2 -1
  66. package/esm/composition/mark.js.map +1 -1
  67. package/esm/composition/rect.js +29 -30
  68. package/esm/composition/rect.js.map +1 -1
  69. package/esm/composition/utils.d.ts +6 -0
  70. package/esm/composition/utils.js +19 -0
  71. package/esm/composition/utils.js.map +1 -1
  72. package/esm/composition/view.js +3 -2
  73. package/esm/composition/view.js.map +1 -1
  74. package/esm/coordinate/fisheye.d.ts +1 -1
  75. package/esm/coordinate/fisheye.js +1 -1
  76. package/esm/coordinate/fisheye.js.map +1 -1
  77. package/esm/coordinate/fisheyeX.d.ts +7 -0
  78. package/esm/coordinate/fisheyeX.js +6 -0
  79. package/esm/coordinate/fisheyeX.js.map +1 -0
  80. package/esm/coordinate/fisheyeY.d.ts +7 -0
  81. package/esm/coordinate/fisheyeY.js +6 -0
  82. package/esm/coordinate/fisheyeY.js.map +1 -0
  83. package/esm/coordinate/helix.d.ts +7 -0
  84. package/esm/coordinate/helix.js +11 -0
  85. package/esm/coordinate/helix.js.map +1 -0
  86. package/esm/coordinate/index.d.ts +24 -5
  87. package/esm/coordinate/index.js +7 -0
  88. package/esm/coordinate/index.js.map +1 -1
  89. package/esm/coordinate/reflect.d.ts +7 -0
  90. package/esm/coordinate/reflect.js +10 -0
  91. package/esm/coordinate/reflect.js.map +1 -0
  92. package/esm/coordinate/reflectX.d.ts +7 -0
  93. package/esm/coordinate/reflectX.js +10 -0
  94. package/esm/coordinate/reflectX.js.map +1 -0
  95. package/esm/coordinate/reflectY.d.ts +7 -0
  96. package/esm/coordinate/reflectY.js +10 -0
  97. package/esm/coordinate/reflectY.js.map +1 -0
  98. package/esm/coordinate/theta.d.ts +7 -0
  99. package/esm/coordinate/theta.js +11 -0
  100. package/esm/coordinate/theta.js.map +1 -0
  101. package/esm/data/arc.d.ts +7 -0
  102. package/esm/data/arc.js +11 -0
  103. package/esm/data/arc.js.map +1 -0
  104. package/esm/data/cluster.d.ts +8 -0
  105. package/esm/data/cluster.js +37 -0
  106. package/esm/data/cluster.js.map +1 -0
  107. package/esm/data/custom.d.ts +7 -0
  108. package/esm/data/custom.js +10 -0
  109. package/esm/data/custom.js.map +1 -0
  110. package/esm/data/fetch.d.ts +4 -0
  111. package/esm/data/fetch.js +28 -0
  112. package/esm/data/fetch.js.map +1 -0
  113. package/esm/data/filterBy.d.ts +8 -0
  114. package/esm/data/filterBy.js +17 -0
  115. package/esm/data/filterBy.js.map +1 -0
  116. package/esm/data/fold.d.ts +10 -0
  117. package/esm/data/fold.js +24 -0
  118. package/esm/data/fold.js.map +1 -0
  119. package/esm/data/index.d.ts +28 -0
  120. package/esm/data/index.js +15 -0
  121. package/esm/data/index.js.map +1 -0
  122. package/esm/data/inline.d.ts +4 -0
  123. package/esm/data/inline.js +6 -0
  124. package/esm/data/inline.js.map +1 -0
  125. package/esm/data/map.d.ts +7 -0
  126. package/esm/data/map.js +10 -0
  127. package/esm/data/map.js.map +1 -0
  128. package/esm/data/pick.d.ts +7 -0
  129. package/esm/data/pick.js +10 -0
  130. package/esm/data/pick.js.map +1 -0
  131. package/esm/data/rename.d.ts +8 -0
  132. package/esm/data/rename.js +17 -0
  133. package/esm/data/rename.js.map +1 -0
  134. package/esm/data/sankey.d.ts +8 -0
  135. package/esm/data/sankey.js +77 -0
  136. package/esm/data/sankey.js.map +1 -0
  137. package/esm/data/sortBy.d.ts +7 -0
  138. package/esm/data/sortBy.js +24 -0
  139. package/esm/data/sortBy.js.map +1 -0
  140. package/esm/data/subset.d.ts +7 -0
  141. package/esm/data/subset.js +26 -0
  142. package/esm/data/subset.js.map +1 -0
  143. package/esm/data/tree.d.ts +4 -0
  144. package/esm/data/tree.js +7 -0
  145. package/esm/data/tree.js.map +1 -0
  146. package/esm/{transform → data}/utils/arc/arc.d.ts +0 -0
  147. package/esm/{transform → data}/utils/arc/arc.js +0 -0
  148. package/esm/data/utils/arc/arc.js.map +1 -0
  149. package/esm/data/utils/arc/index.d.ts +2 -0
  150. package/esm/{transform → data}/utils/arc/index.js +0 -0
  151. package/esm/data/utils/arc/index.js.map +1 -0
  152. package/esm/{transform → data}/utils/arc/sort.d.ts +0 -0
  153. package/esm/{transform → data}/utils/arc/sort.js +0 -0
  154. package/esm/data/utils/arc/sort.js.map +1 -0
  155. package/esm/{transform → data}/utils/arc/types.d.ts +0 -0
  156. package/esm/{transform → data}/utils/arc/types.js +0 -0
  157. package/esm/data/utils/arc/types.js.map +1 -0
  158. package/esm/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
  159. package/esm/{transform → data}/utils/d3-cloud/index.js +0 -0
  160. package/esm/data/utils/d3-cloud/index.js.map +1 -0
  161. package/esm/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
  162. package/esm/{transform → data}/utils/d3-sankey/align.js +0 -0
  163. package/esm/data/utils/d3-sankey/align.js.map +1 -0
  164. package/esm/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
  165. package/esm/{transform → data}/utils/d3-sankey/constant.js +0 -0
  166. package/esm/data/utils/d3-sankey/constant.js.map +1 -0
  167. package/esm/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
  168. package/esm/{transform → data}/utils/d3-sankey/index.js +0 -0
  169. package/esm/data/utils/d3-sankey/index.js.map +1 -0
  170. package/esm/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
  171. package/esm/{transform → data}/utils/d3-sankey/sankey.js +0 -0
  172. package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
  173. package/esm/data/utils/fields.d.ts +6 -0
  174. package/esm/data/utils/fields.js +15 -0
  175. package/esm/data/utils/fields.js.map +1 -0
  176. package/esm/{transform → data}/utils/flow.d.ts +0 -0
  177. package/esm/{transform → data}/utils/flow.js +0 -0
  178. package/esm/data/utils/flow.js.map +1 -0
  179. package/esm/{transform → data}/utils/memo.d.ts +0 -0
  180. package/esm/{transform → data}/utils/memo.js +0 -0
  181. package/esm/data/utils/memo.js.map +1 -0
  182. package/esm/data/voronoi.d.ts +1 -0
  183. package/esm/data/voronoi.js +6 -0
  184. package/esm/data/voronoi.js.map +1 -0
  185. package/esm/data/wordCloud.d.ts +1 -0
  186. package/esm/data/wordCloud.js +8 -0
  187. package/esm/data/wordCloud.js.map +1 -0
  188. package/esm/encode/index.d.ts +8 -4
  189. package/esm/encode/index.js.map +1 -1
  190. package/esm/index.d.ts +1 -1
  191. package/esm/index.js +1 -1
  192. package/esm/index.js.map +1 -1
  193. package/esm/interaction/action/index.d.ts +42 -21
  194. package/esm/interaction/action/index.js +8 -8
  195. package/esm/interaction/action/index.js.map +1 -1
  196. package/esm/interaction/action/service/fisheyeFocus.js +7 -3
  197. package/esm/interaction/action/service/fisheyeFocus.js.map +1 -1
  198. package/esm/interaction/action/transformer/filter.js +9 -3
  199. package/esm/interaction/action/transformer/filter.js.map +1 -1
  200. package/esm/interaction/builtin/fisheye.d.ts +2 -0
  201. package/esm/interaction/index.d.ts +1 -1
  202. package/esm/interaction/index.js +0 -1
  203. package/esm/interaction/index.js.map +1 -1
  204. package/esm/interaction/interactor/index.d.ts +4 -2
  205. package/esm/interaction/interactor/index.js.map +1 -1
  206. package/esm/labelLayout/hideOverlap.d.ts +2 -0
  207. package/esm/labelLayout/hideOverlap.js +38 -0
  208. package/esm/labelLayout/hideOverlap.js.map +1 -0
  209. package/esm/labelLayout/index.d.ts +1 -0
  210. package/esm/labelLayout/index.js +2 -0
  211. package/esm/labelLayout/index.js.map +1 -0
  212. package/esm/mark/annotation/index.d.ts +14 -7
  213. package/esm/mark/annotation/index.js +6 -6
  214. package/esm/mark/annotation/index.js.map +1 -1
  215. package/esm/mark/geometry/box.d.ts +34 -0
  216. package/esm/mark/geometry/box.js +90 -0
  217. package/esm/mark/geometry/box.js.map +1 -0
  218. package/esm/mark/geometry/image.js +5 -4
  219. package/esm/mark/geometry/image.js.map +1 -1
  220. package/esm/mark/geometry/index.d.ts +22 -13
  221. package/esm/mark/geometry/index.js +1 -3
  222. package/esm/mark/geometry/index.js.map +1 -1
  223. package/esm/mark/geometry/interval.js +0 -1
  224. package/esm/mark/geometry/interval.js.map +1 -1
  225. package/esm/mark/geometry/line.js +5 -1
  226. package/esm/mark/geometry/line.js.map +1 -1
  227. package/esm/mark/geometry/link.js +1 -1
  228. package/esm/mark/geometry/link.js.map +1 -1
  229. package/esm/mark/geometry/point.js +6 -2
  230. package/esm/mark/geometry/point.js.map +1 -1
  231. package/esm/mark/geometry/polygon.js +1 -1
  232. package/esm/mark/geometry/polygon.js.map +1 -1
  233. package/esm/mark/utils.d.ts +1 -3
  234. package/esm/mark/utils.js +1 -1
  235. package/esm/mark/utils.js.map +1 -1
  236. package/esm/palette/index.d.ts +4 -2
  237. package/esm/palette/index.js.map +1 -1
  238. package/esm/runtime/component.d.ts +1 -1
  239. package/esm/runtime/component.js +19 -6
  240. package/esm/runtime/component.js.map +1 -1
  241. package/esm/runtime/coordinate.d.ts +4 -0
  242. package/esm/runtime/coordinate.js +16 -0
  243. package/esm/runtime/coordinate.js.map +1 -1
  244. package/esm/runtime/index.d.ts +1 -0
  245. package/esm/runtime/index.js +1 -0
  246. package/esm/runtime/index.js.map +1 -1
  247. package/esm/runtime/layout.js.map +1 -1
  248. package/esm/runtime/mark.d.ts +3 -3
  249. package/esm/runtime/mark.js +38 -93
  250. package/esm/runtime/mark.js.map +1 -1
  251. package/esm/runtime/plot.js +64 -39
  252. package/esm/runtime/plot.js.map +1 -1
  253. package/esm/runtime/render.js +19 -21
  254. package/esm/runtime/render.js.map +1 -1
  255. package/esm/runtime/scale.js +15 -6
  256. package/esm/runtime/scale.js.map +1 -1
  257. package/esm/runtime/transform.d.ts +9 -0
  258. package/esm/runtime/transform.js +144 -0
  259. package/esm/runtime/transform.js.map +1 -0
  260. package/esm/runtime/types/common.d.ts +5 -3
  261. package/esm/runtime/types/component.d.ts +7 -6
  262. package/esm/runtime/types/data.d.ts +7 -0
  263. package/esm/runtime/types/data.js +2 -0
  264. package/esm/runtime/types/data.js.map +1 -0
  265. package/esm/runtime/types/encode.d.ts +4 -2
  266. package/esm/runtime/types/options.d.ts +7 -3
  267. package/esm/runtime/types/transform.d.ts +6 -12
  268. package/esm/scale/index.d.ts +22 -11
  269. package/esm/scale/index.js.map +1 -1
  270. package/esm/shape/annotation/text.js +16 -4
  271. package/esm/shape/annotation/text.js.map +1 -1
  272. package/esm/shape/{schema → box}/box.d.ts +0 -0
  273. package/esm/shape/box/box.js +87 -0
  274. package/esm/shape/box/box.js.map +1 -0
  275. package/esm/shape/index.d.ts +86 -48
  276. package/esm/shape/index.js +9 -12
  277. package/esm/shape/index.js.map +1 -1
  278. package/esm/shape/interval/colorRect.js +4 -22
  279. package/esm/shape/interval/colorRect.js.map +1 -1
  280. package/esm/shape/label/label.js +109 -14
  281. package/esm/shape/label/label.js.map +1 -1
  282. package/esm/shape/{edge → link}/arc.d.ts +0 -0
  283. package/esm/shape/{edge → link}/arc.js +0 -0
  284. package/esm/shape/link/arc.js.map +1 -0
  285. package/esm/shape/{edge → link}/smoothEdge.d.ts +0 -0
  286. package/esm/shape/{edge → link}/smoothEdge.js +0 -0
  287. package/esm/shape/link/smoothEdge.js.map +1 -0
  288. package/esm/shape/{edge → link}/vhv.d.ts +0 -0
  289. package/esm/shape/{edge → link}/vhv.js +0 -0
  290. package/esm/shape/link/vhv.js.map +1 -0
  291. package/esm/shape/{edge → polygon}/ribbon.d.ts +0 -0
  292. package/esm/shape/{edge → polygon}/ribbon.js +0 -0
  293. package/esm/shape/polygon/ribbon.js.map +1 -0
  294. package/esm/shape/utils.d.ts +7 -0
  295. package/esm/shape/utils.js +23 -0
  296. package/esm/shape/utils.js.map +1 -1
  297. package/esm/spec/composition.d.ts +8 -5
  298. package/esm/spec/coordinate.d.ts +46 -2
  299. package/esm/spec/data.d.ts +191 -0
  300. package/esm/spec/data.js +2 -0
  301. package/esm/spec/data.js.map +1 -0
  302. package/esm/spec/geometry.d.ts +7 -4
  303. package/esm/spec/index.d.ts +2 -1
  304. package/esm/spec/index.js +2 -1
  305. package/esm/spec/index.js.map +1 -1
  306. package/esm/spec/labelLayout.d.ts +4 -0
  307. package/esm/spec/labelLayout.js +2 -0
  308. package/esm/spec/labelLayout.js.map +1 -0
  309. package/esm/spec/transform.d.ts +66 -164
  310. package/esm/stdlib/index.js +34 -27
  311. package/esm/stdlib/index.js.map +1 -1
  312. package/esm/theme/light.js +1 -0
  313. package/esm/theme/light.js.map +1 -1
  314. package/esm/transform/Select.d.ts +9 -0
  315. package/esm/transform/Select.js +53 -0
  316. package/esm/transform/Select.js.map +1 -0
  317. package/esm/transform/SelectX.d.ts +7 -0
  318. package/esm/transform/SelectX.js +21 -0
  319. package/esm/transform/SelectX.js.map +1 -0
  320. package/esm/transform/SelectY.d.ts +7 -0
  321. package/esm/transform/SelectY.js +21 -0
  322. package/esm/transform/SelectY.js.map +1 -0
  323. package/esm/transform/dodgeX.d.ts +9 -0
  324. package/esm/transform/dodgeX.js +60 -0
  325. package/esm/transform/dodgeX.js.map +1 -0
  326. package/esm/transform/flexX.d.ts +7 -0
  327. package/esm/transform/flexX.js +31 -0
  328. package/esm/transform/flexX.js.map +1 -0
  329. package/esm/transform/groupX.d.ts +9 -0
  330. package/esm/transform/groupX.js +87 -0
  331. package/esm/transform/groupX.js.map +1 -0
  332. package/esm/transform/index.d.ts +46 -36
  333. package/esm/transform/index.js +23 -39
  334. package/esm/transform/index.js.map +1 -1
  335. package/esm/transform/jitter.d.ts +9 -0
  336. package/esm/transform/jitter.js +36 -0
  337. package/esm/transform/jitter.js.map +1 -0
  338. package/esm/transform/jitterY.d.ts +8 -0
  339. package/esm/transform/jitterY.js +21 -0
  340. package/esm/transform/jitterY.js.map +1 -0
  341. package/esm/transform/maybeKey.d.ts +6 -0
  342. package/esm/transform/maybeKey.js +32 -0
  343. package/esm/transform/maybeKey.js.map +1 -0
  344. package/esm/transform/maybeSeries.d.ts +6 -0
  345. package/esm/transform/maybeSeries.js +17 -0
  346. package/esm/transform/maybeSeries.js.map +1 -0
  347. package/esm/transform/maybeSize.d.ts +7 -0
  348. package/esm/transform/maybeSize.js +20 -0
  349. package/esm/transform/maybeSize.js.map +1 -0
  350. package/esm/transform/maybeStackY.d.ts +9 -0
  351. package/esm/transform/maybeStackY.js +30 -0
  352. package/esm/transform/maybeStackY.js.map +1 -0
  353. package/esm/transform/maybeTitleX.d.ts +6 -0
  354. package/esm/transform/maybeTitleX.js +17 -0
  355. package/esm/transform/maybeTitleX.js.map +1 -0
  356. package/esm/transform/maybeTooltip.d.ts +8 -0
  357. package/esm/transform/maybeTooltip.js +29 -0
  358. package/esm/transform/maybeTooltip.js.map +1 -0
  359. package/esm/transform/maybeTooltipPosition.d.ts +7 -0
  360. package/esm/transform/maybeTooltipPosition.js +10 -0
  361. package/esm/transform/maybeTooltipPosition.js.map +1 -0
  362. package/esm/transform/maybeTooltipY.d.ts +6 -0
  363. package/esm/transform/maybeTooltipY.js +9 -0
  364. package/esm/transform/maybeTooltipY.js.map +1 -0
  365. package/esm/transform/maybeZeroX.d.ts +7 -0
  366. package/esm/transform/maybeZeroX.js +22 -0
  367. package/esm/transform/maybeZeroX.js.map +1 -0
  368. package/esm/transform/maybeZeroY.d.ts +6 -0
  369. package/esm/transform/maybeZeroY.js +21 -0
  370. package/esm/transform/maybeZeroY.js.map +1 -0
  371. package/esm/transform/maybeZeroY1.d.ts +6 -0
  372. package/esm/transform/maybeZeroY1.js +21 -0
  373. package/esm/transform/maybeZeroY1.js.map +1 -0
  374. package/esm/transform/normalizeY.d.ts +9 -0
  375. package/esm/transform/normalizeY.js +68 -0
  376. package/esm/transform/normalizeY.js.map +1 -0
  377. package/esm/transform/sortX.d.ts +8 -0
  378. package/esm/transform/sortX.js +60 -0
  379. package/esm/transform/sortX.js.map +1 -0
  380. package/esm/transform/stackEnter.d.ts +13 -0
  381. package/esm/transform/stackEnter.js +62 -0
  382. package/esm/transform/stackEnter.js.map +1 -0
  383. package/esm/transform/stackY.d.ts +9 -0
  384. package/esm/transform/stackY.js +73 -0
  385. package/esm/transform/stackY.js.map +1 -0
  386. package/esm/transform/symmetryY.d.ts +8 -0
  387. package/esm/transform/symmetryY.js +60 -0
  388. package/esm/transform/symmetryY.js.map +1 -0
  389. package/esm/transform/utils/helper.d.ts +11 -10
  390. package/esm/transform/utils/helper.js +27 -33
  391. package/esm/transform/utils/helper.js.map +1 -1
  392. package/esm/transform/utils/order.d.ts +9 -0
  393. package/esm/transform/utils/order.js +72 -0
  394. package/esm/transform/utils/order.js.map +1 -0
  395. package/esm/utils/coordinate.d.ts +2 -0
  396. package/esm/utils/coordinate.js +7 -0
  397. package/esm/utils/coordinate.js.map +1 -1
  398. package/lib/adjust/index.d.ts +2 -1
  399. package/lib/adjust/index.js.map +1 -1
  400. package/lib/animation/fadeIn.js +4 -6
  401. package/lib/animation/fadeIn.js.map +1 -1
  402. package/lib/animation/fadeOut.js +4 -4
  403. package/lib/animation/fadeOut.js.map +1 -1
  404. package/lib/animation/index.d.ts +14 -7
  405. package/lib/animation/index.js.map +1 -1
  406. package/lib/animation/morphing.js +4 -5
  407. package/lib/animation/morphing.js.map +1 -1
  408. package/lib/animation/scaleInX.js +7 -5
  409. package/lib/animation/scaleInX.js.map +1 -1
  410. package/lib/animation/scaleInY.js +7 -5
  411. package/lib/animation/scaleInY.js.map +1 -1
  412. package/lib/animation/scaleOutX.js +4 -5
  413. package/lib/animation/scaleOutX.js.map +1 -1
  414. package/lib/animation/scaleOutY.js +4 -5
  415. package/lib/animation/scaleOutY.js.map +1 -1
  416. package/lib/api/chart.d.ts +8 -1
  417. package/lib/api/chart.js +32 -7
  418. package/lib/api/chart.js.map +1 -1
  419. package/lib/api/composition/circle.js.map +1 -1
  420. package/lib/api/composition/flex.js.map +1 -1
  421. package/lib/api/composition/keyframe.js.map +1 -1
  422. package/lib/api/composition/layer.js.map +1 -1
  423. package/lib/api/composition/matrix.js.map +1 -1
  424. package/lib/api/composition/rect.js.map +1 -1
  425. package/lib/api/composition/view.js.map +1 -1
  426. package/lib/api/index.d.ts +1 -0
  427. package/lib/api/index.js +3 -1
  428. package/lib/api/index.js.map +1 -1
  429. package/lib/api/library.d.ts +3 -0
  430. package/lib/api/library.js +11 -0
  431. package/lib/api/library.js.map +1 -0
  432. package/lib/api/mark/index.d.ts +3 -3
  433. package/lib/api/mark/index.js +1 -1
  434. package/lib/api/mark/index.js.map +1 -1
  435. package/lib/api/mark/mark.d.ts +4 -4
  436. package/lib/api/mark/mark.js +7 -6
  437. package/lib/api/mark/mark.js.map +1 -1
  438. package/lib/api/mark/types.d.ts +1 -0
  439. package/lib/api/node.d.ts +4 -5
  440. package/lib/api/node.js +5 -7
  441. package/lib/api/node.js.map +1 -1
  442. package/lib/api/props.d.ts +1 -0
  443. package/lib/api/props.js +10 -10
  444. package/lib/api/props.js.map +1 -1
  445. package/lib/component/axis.d.ts +1 -1
  446. package/lib/component/axis.js +11 -4
  447. package/lib/component/axis.js.map +1 -1
  448. package/lib/component/index.d.ts +10 -5
  449. package/lib/component/index.js.map +1 -1
  450. package/lib/composition/circle.js +1 -1
  451. package/lib/composition/circle.js.map +1 -1
  452. package/lib/composition/flex.js +4 -2
  453. package/lib/composition/flex.js.map +1 -1
  454. package/lib/composition/index.d.ts +16 -8
  455. package/lib/composition/index.js.map +1 -1
  456. package/lib/composition/layer.js +3 -3
  457. package/lib/composition/layer.js.map +1 -1
  458. package/lib/composition/mark.js +2 -1
  459. package/lib/composition/mark.js.map +1 -1
  460. package/lib/composition/rect.js +29 -30
  461. package/lib/composition/rect.js.map +1 -1
  462. package/lib/composition/utils.d.ts +6 -0
  463. package/lib/composition/utils.js +21 -1
  464. package/lib/composition/utils.js.map +1 -1
  465. package/lib/composition/view.js +3 -2
  466. package/lib/composition/view.js.map +1 -1
  467. package/lib/coordinate/fisheye.d.ts +1 -1
  468. package/lib/coordinate/fisheye.js +1 -1
  469. package/lib/coordinate/fisheye.js.map +1 -1
  470. package/lib/coordinate/fisheyeX.d.ts +7 -0
  471. package/lib/coordinate/fisheyeX.js +10 -0
  472. package/lib/coordinate/fisheyeX.js.map +1 -0
  473. package/lib/coordinate/fisheyeY.d.ts +7 -0
  474. package/lib/coordinate/fisheyeY.js +10 -0
  475. package/lib/coordinate/fisheyeY.js.map +1 -0
  476. package/lib/coordinate/helix.d.ts +7 -0
  477. package/lib/coordinate/helix.js +15 -0
  478. package/lib/coordinate/helix.js.map +1 -0
  479. package/lib/coordinate/index.d.ts +24 -5
  480. package/lib/coordinate/index.js +15 -1
  481. package/lib/coordinate/index.js.map +1 -1
  482. package/lib/coordinate/reflect.d.ts +7 -0
  483. package/lib/coordinate/reflect.js +14 -0
  484. package/lib/coordinate/reflect.js.map +1 -0
  485. package/lib/coordinate/reflectX.d.ts +7 -0
  486. package/lib/coordinate/reflectX.js +14 -0
  487. package/lib/coordinate/reflectX.js.map +1 -0
  488. package/lib/coordinate/reflectY.d.ts +7 -0
  489. package/lib/coordinate/reflectY.js +14 -0
  490. package/lib/coordinate/reflectY.js.map +1 -0
  491. package/lib/coordinate/theta.d.ts +7 -0
  492. package/lib/coordinate/theta.js +15 -0
  493. package/lib/coordinate/theta.js.map +1 -0
  494. package/lib/data/arc.d.ts +7 -0
  495. package/lib/data/arc.js +15 -0
  496. package/lib/data/arc.js.map +1 -0
  497. package/lib/data/cluster.d.ts +8 -0
  498. package/lib/data/cluster.js +42 -0
  499. package/lib/data/cluster.js.map +1 -0
  500. package/lib/data/custom.d.ts +7 -0
  501. package/lib/data/custom.js +14 -0
  502. package/lib/data/custom.js.map +1 -0
  503. package/lib/data/fetch.d.ts +4 -0
  504. package/lib/data/fetch.js +32 -0
  505. package/lib/data/fetch.js.map +1 -0
  506. package/lib/data/filterBy.d.ts +8 -0
  507. package/lib/data/filterBy.js +21 -0
  508. package/lib/data/filterBy.js.map +1 -0
  509. package/lib/data/fold.d.ts +10 -0
  510. package/lib/data/fold.js +29 -0
  511. package/lib/data/fold.js.map +1 -0
  512. package/lib/data/index.d.ts +28 -0
  513. package/lib/data/index.js +32 -0
  514. package/lib/data/index.js.map +1 -0
  515. package/lib/data/inline.d.ts +4 -0
  516. package/lib/data/inline.js +10 -0
  517. package/lib/data/inline.js.map +1 -0
  518. package/lib/data/map.d.ts +7 -0
  519. package/lib/data/map.js +14 -0
  520. package/lib/data/map.js.map +1 -0
  521. package/lib/data/pick.d.ts +7 -0
  522. package/lib/data/pick.js +14 -0
  523. package/lib/data/pick.js.map +1 -0
  524. package/lib/data/rename.d.ts +8 -0
  525. package/lib/data/rename.js +22 -0
  526. package/lib/data/rename.js.map +1 -0
  527. package/lib/data/sankey.d.ts +8 -0
  528. package/lib/data/sankey.js +81 -0
  529. package/lib/data/sankey.js.map +1 -0
  530. package/lib/data/sortBy.d.ts +7 -0
  531. package/lib/data/sortBy.js +28 -0
  532. package/lib/data/sortBy.js.map +1 -0
  533. package/lib/data/subset.d.ts +7 -0
  534. package/lib/data/subset.js +30 -0
  535. package/lib/data/subset.js.map +1 -0
  536. package/lib/data/tree.d.ts +4 -0
  537. package/lib/data/tree.js +11 -0
  538. package/lib/data/tree.js.map +1 -0
  539. package/lib/{transform → data}/utils/arc/arc.d.ts +0 -0
  540. package/lib/{transform → data}/utils/arc/arc.js +0 -0
  541. package/lib/data/utils/arc/arc.js.map +1 -0
  542. package/lib/data/utils/arc/index.d.ts +2 -0
  543. package/lib/{transform → data}/utils/arc/index.js +0 -0
  544. package/lib/data/utils/arc/index.js.map +1 -0
  545. package/lib/{transform → data}/utils/arc/sort.d.ts +0 -0
  546. package/lib/{transform → data}/utils/arc/sort.js +0 -0
  547. package/lib/data/utils/arc/sort.js.map +1 -0
  548. package/lib/{transform → data}/utils/arc/types.d.ts +0 -0
  549. package/lib/{transform → data}/utils/arc/types.js +0 -0
  550. package/lib/data/utils/arc/types.js.map +1 -0
  551. package/lib/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
  552. package/lib/{transform → data}/utils/d3-cloud/index.js +0 -0
  553. package/lib/data/utils/d3-cloud/index.js.map +1 -0
  554. package/lib/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
  555. package/lib/{transform → data}/utils/d3-sankey/align.js +0 -0
  556. package/lib/data/utils/d3-sankey/align.js.map +1 -0
  557. package/lib/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
  558. package/lib/{transform → data}/utils/d3-sankey/constant.js +0 -0
  559. package/lib/data/utils/d3-sankey/constant.js.map +1 -0
  560. package/lib/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
  561. package/lib/{transform → data}/utils/d3-sankey/index.js +0 -0
  562. package/lib/data/utils/d3-sankey/index.js.map +1 -0
  563. package/lib/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
  564. package/lib/{transform → data}/utils/d3-sankey/sankey.js +0 -0
  565. package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
  566. package/lib/data/utils/fields.d.ts +6 -0
  567. package/lib/data/utils/fields.js +19 -0
  568. package/lib/data/utils/fields.js.map +1 -0
  569. package/lib/{transform → data}/utils/flow.d.ts +0 -0
  570. package/lib/{transform → data}/utils/flow.js +0 -0
  571. package/lib/data/utils/flow.js.map +1 -0
  572. package/lib/{transform → data}/utils/memo.d.ts +0 -0
  573. package/lib/{transform → data}/utils/memo.js +0 -0
  574. package/lib/data/utils/memo.js.map +1 -0
  575. package/lib/data/voronoi.d.ts +1 -0
  576. package/lib/data/voronoi.js +7 -0
  577. package/lib/data/voronoi.js.map +1 -0
  578. package/lib/data/wordCloud.d.ts +1 -0
  579. package/lib/data/wordCloud.js +9 -0
  580. package/lib/data/wordCloud.js.map +1 -0
  581. package/lib/encode/index.d.ts +8 -4
  582. package/lib/encode/index.js.map +1 -1
  583. package/lib/index.d.ts +1 -1
  584. package/lib/index.js +2 -1
  585. package/lib/index.js.map +1 -1
  586. package/lib/interaction/action/index.d.ts +42 -21
  587. package/lib/interaction/action/index.js.map +1 -1
  588. package/lib/interaction/action/service/fisheyeFocus.js +7 -3
  589. package/lib/interaction/action/service/fisheyeFocus.js.map +1 -1
  590. package/lib/interaction/action/transformer/filter.js +9 -3
  591. package/lib/interaction/action/transformer/filter.js.map +1 -1
  592. package/lib/interaction/builtin/fisheye.d.ts +2 -0
  593. package/lib/interaction/index.d.ts +1 -1
  594. package/lib/interaction/index.js +0 -15
  595. package/lib/interaction/index.js.map +1 -1
  596. package/lib/interaction/interactor/index.d.ts +4 -2
  597. package/lib/interaction/interactor/index.js.map +1 -1
  598. package/lib/labelLayout/hideOverlap.d.ts +2 -0
  599. package/lib/labelLayout/hideOverlap.js +42 -0
  600. package/lib/labelLayout/hideOverlap.js.map +1 -0
  601. package/lib/labelLayout/index.d.ts +1 -0
  602. package/lib/labelLayout/index.js +6 -0
  603. package/lib/labelLayout/index.js.map +1 -0
  604. package/lib/mark/annotation/index.d.ts +14 -7
  605. package/lib/mark/annotation/index.js.map +1 -1
  606. package/lib/mark/geometry/box.d.ts +34 -0
  607. package/lib/mark/geometry/box.js +94 -0
  608. package/lib/mark/geometry/box.js.map +1 -0
  609. package/lib/mark/geometry/image.js +5 -4
  610. package/lib/mark/geometry/image.js.map +1 -1
  611. package/lib/mark/geometry/index.d.ts +22 -13
  612. package/lib/mark/geometry/index.js +3 -7
  613. package/lib/mark/geometry/index.js.map +1 -1
  614. package/lib/mark/geometry/interval.js +0 -1
  615. package/lib/mark/geometry/interval.js.map +1 -1
  616. package/lib/mark/geometry/line.js +5 -1
  617. package/lib/mark/geometry/line.js.map +1 -1
  618. package/lib/mark/geometry/link.js +1 -1
  619. package/lib/mark/geometry/link.js.map +1 -1
  620. package/lib/mark/geometry/point.js +6 -2
  621. package/lib/mark/geometry/point.js.map +1 -1
  622. package/lib/mark/geometry/polygon.js +1 -1
  623. package/lib/mark/geometry/polygon.js.map +1 -1
  624. package/lib/mark/utils.d.ts +1 -3
  625. package/lib/mark/utils.js +1 -1
  626. package/lib/mark/utils.js.map +1 -1
  627. package/lib/palette/index.d.ts +4 -2
  628. package/lib/palette/index.js.map +1 -1
  629. package/lib/runtime/component.d.ts +1 -1
  630. package/lib/runtime/component.js +18 -5
  631. package/lib/runtime/component.js.map +1 -1
  632. package/lib/runtime/coordinate.d.ts +4 -0
  633. package/lib/runtime/coordinate.js +21 -1
  634. package/lib/runtime/coordinate.js.map +1 -1
  635. package/lib/runtime/index.d.ts +1 -0
  636. package/lib/runtime/index.js +1 -0
  637. package/lib/runtime/index.js.map +1 -1
  638. package/lib/runtime/layout.js.map +1 -1
  639. package/lib/runtime/mark.d.ts +3 -3
  640. package/lib/runtime/mark.js +37 -92
  641. package/lib/runtime/mark.js.map +1 -1
  642. package/lib/runtime/plot.js +62 -37
  643. package/lib/runtime/plot.js.map +1 -1
  644. package/lib/runtime/render.js +18 -20
  645. package/lib/runtime/render.js.map +1 -1
  646. package/lib/runtime/scale.js +14 -5
  647. package/lib/runtime/scale.js.map +1 -1
  648. package/lib/runtime/transform.d.ts +9 -0
  649. package/lib/runtime/transform.js +154 -0
  650. package/lib/runtime/transform.js.map +1 -0
  651. package/lib/runtime/types/common.d.ts +5 -3
  652. package/lib/runtime/types/component.d.ts +7 -6
  653. package/lib/runtime/types/data.d.ts +7 -0
  654. package/lib/runtime/types/data.js +3 -0
  655. package/lib/runtime/types/data.js.map +1 -0
  656. package/lib/runtime/types/encode.d.ts +4 -2
  657. package/lib/runtime/types/options.d.ts +7 -3
  658. package/lib/runtime/types/transform.d.ts +6 -12
  659. package/lib/scale/index.d.ts +22 -11
  660. package/lib/scale/index.js.map +1 -1
  661. package/lib/shape/annotation/text.js +16 -4
  662. package/lib/shape/annotation/text.js.map +1 -1
  663. package/lib/shape/{schema → box}/box.d.ts +0 -0
  664. package/lib/shape/box/box.js +91 -0
  665. package/lib/shape/box/box.js.map +1 -0
  666. package/lib/shape/index.d.ts +86 -48
  667. package/lib/shape/index.js +10 -16
  668. package/lib/shape/index.js.map +1 -1
  669. package/lib/shape/interval/colorRect.js +2 -20
  670. package/lib/shape/interval/colorRect.js.map +1 -1
  671. package/lib/shape/label/label.js +108 -13
  672. package/lib/shape/label/label.js.map +1 -1
  673. package/lib/shape/{edge → link}/arc.d.ts +0 -0
  674. package/lib/shape/{edge → link}/arc.js +0 -0
  675. package/lib/shape/link/arc.js.map +1 -0
  676. package/lib/shape/{edge → link}/smoothEdge.d.ts +0 -0
  677. package/lib/shape/{edge → link}/smoothEdge.js +0 -0
  678. package/lib/shape/link/smoothEdge.js.map +1 -0
  679. package/lib/shape/{edge → link}/vhv.d.ts +0 -0
  680. package/lib/shape/{edge → link}/vhv.js +0 -0
  681. package/lib/shape/link/vhv.js.map +1 -0
  682. package/lib/shape/{edge → polygon}/ribbon.d.ts +0 -0
  683. package/lib/shape/{edge → polygon}/ribbon.js +0 -0
  684. package/lib/shape/polygon/ribbon.js.map +1 -0
  685. package/lib/shape/utils.d.ts +7 -0
  686. package/lib/shape/utils.js +25 -1
  687. package/lib/shape/utils.js.map +1 -1
  688. package/lib/spec/composition.d.ts +8 -5
  689. package/lib/spec/coordinate.d.ts +46 -2
  690. package/lib/spec/data.d.ts +191 -0
  691. package/lib/spec/data.js +3 -0
  692. package/lib/spec/data.js.map +1 -0
  693. package/lib/spec/geometry.d.ts +7 -4
  694. package/lib/spec/index.d.ts +2 -1
  695. package/lib/spec/index.js +2 -1
  696. package/lib/spec/index.js.map +1 -1
  697. package/lib/spec/labelLayout.d.ts +4 -0
  698. package/lib/spec/labelLayout.js +3 -0
  699. package/lib/spec/labelLayout.js.map +1 -0
  700. package/lib/spec/transform.d.ts +66 -164
  701. package/lib/stdlib/index.js +30 -23
  702. package/lib/stdlib/index.js.map +1 -1
  703. package/lib/theme/light.js +1 -0
  704. package/lib/theme/light.js.map +1 -1
  705. package/lib/transform/Select.d.ts +9 -0
  706. package/lib/transform/Select.js +57 -0
  707. package/lib/transform/Select.js.map +1 -0
  708. package/lib/transform/SelectX.d.ts +7 -0
  709. package/lib/transform/SelectX.js +25 -0
  710. package/lib/transform/SelectX.js.map +1 -0
  711. package/lib/transform/SelectY.d.ts +7 -0
  712. package/lib/transform/SelectY.js +25 -0
  713. package/lib/transform/SelectY.js.map +1 -0
  714. package/lib/transform/dodgeX.d.ts +9 -0
  715. package/lib/transform/dodgeX.js +64 -0
  716. package/lib/transform/dodgeX.js.map +1 -0
  717. package/lib/transform/flexX.d.ts +7 -0
  718. package/lib/transform/flexX.js +35 -0
  719. package/lib/transform/flexX.js.map +1 -0
  720. package/lib/transform/groupX.d.ts +9 -0
  721. package/lib/transform/groupX.js +91 -0
  722. package/lib/transform/groupX.js.map +1 -0
  723. package/lib/transform/index.d.ts +46 -36
  724. package/lib/transform/index.js +26 -55
  725. package/lib/transform/index.js.map +1 -1
  726. package/lib/transform/jitter.d.ts +9 -0
  727. package/lib/transform/jitter.js +41 -0
  728. package/lib/transform/jitter.js.map +1 -0
  729. package/lib/transform/jitterY.d.ts +8 -0
  730. package/lib/transform/jitterY.js +25 -0
  731. package/lib/transform/jitterY.js.map +1 -0
  732. package/lib/transform/maybeKey.d.ts +6 -0
  733. package/lib/transform/maybeKey.js +36 -0
  734. package/lib/transform/maybeKey.js.map +1 -0
  735. package/lib/transform/maybeSeries.d.ts +6 -0
  736. package/lib/transform/maybeSeries.js +21 -0
  737. package/lib/transform/maybeSeries.js.map +1 -0
  738. package/lib/transform/maybeSize.d.ts +7 -0
  739. package/lib/transform/maybeSize.js +24 -0
  740. package/lib/transform/maybeSize.js.map +1 -0
  741. package/lib/transform/maybeStackY.d.ts +9 -0
  742. package/lib/transform/maybeStackY.js +34 -0
  743. package/lib/transform/maybeStackY.js.map +1 -0
  744. package/lib/transform/maybeTitleX.d.ts +6 -0
  745. package/lib/transform/maybeTitleX.js +21 -0
  746. package/lib/transform/maybeTitleX.js.map +1 -0
  747. package/lib/transform/maybeTooltip.d.ts +8 -0
  748. package/lib/transform/maybeTooltip.js +33 -0
  749. package/lib/transform/maybeTooltip.js.map +1 -0
  750. package/lib/transform/maybeTooltipPosition.d.ts +7 -0
  751. package/lib/transform/maybeTooltipPosition.js +14 -0
  752. package/lib/transform/maybeTooltipPosition.js.map +1 -0
  753. package/lib/transform/maybeTooltipY.d.ts +6 -0
  754. package/lib/transform/maybeTooltipY.js +13 -0
  755. package/lib/transform/maybeTooltipY.js.map +1 -0
  756. package/lib/transform/maybeZeroX.d.ts +7 -0
  757. package/lib/transform/maybeZeroX.js +26 -0
  758. package/lib/transform/maybeZeroX.js.map +1 -0
  759. package/lib/transform/maybeZeroY.d.ts +6 -0
  760. package/lib/transform/maybeZeroY.js +25 -0
  761. package/lib/transform/maybeZeroY.js.map +1 -0
  762. package/lib/transform/maybeZeroY1.d.ts +6 -0
  763. package/lib/transform/maybeZeroY1.js +25 -0
  764. package/lib/transform/maybeZeroY1.js.map +1 -0
  765. package/lib/transform/normalizeY.d.ts +9 -0
  766. package/lib/transform/normalizeY.js +72 -0
  767. package/lib/transform/normalizeY.js.map +1 -0
  768. package/lib/transform/sortX.d.ts +8 -0
  769. package/lib/transform/sortX.js +64 -0
  770. package/lib/transform/sortX.js.map +1 -0
  771. package/lib/transform/stackEnter.d.ts +13 -0
  772. package/lib/transform/stackEnter.js +66 -0
  773. package/lib/transform/stackEnter.js.map +1 -0
  774. package/lib/transform/stackY.d.ts +9 -0
  775. package/lib/transform/stackY.js +77 -0
  776. package/lib/transform/stackY.js.map +1 -0
  777. package/lib/transform/symmetryY.d.ts +8 -0
  778. package/lib/transform/symmetryY.js +64 -0
  779. package/lib/transform/symmetryY.js.map +1 -0
  780. package/lib/transform/utils/helper.d.ts +11 -10
  781. package/lib/transform/utils/helper.js +32 -38
  782. package/lib/transform/utils/helper.js.map +1 -1
  783. package/lib/transform/utils/order.d.ts +9 -0
  784. package/lib/transform/utils/order.js +79 -0
  785. package/lib/transform/utils/order.js.map +1 -0
  786. package/lib/utils/coordinate.d.ts +2 -0
  787. package/lib/utils/coordinate.js +10 -1
  788. package/lib/utils/coordinate.js.map +1 -1
  789. package/package.json +24 -8
  790. package/src/.DS_Store +0 -0
  791. package/src/adjust/index.ts +2 -1
  792. package/src/animation/fadeIn.ts +4 -6
  793. package/src/animation/fadeOut.ts +4 -4
  794. package/src/animation/index.ts +15 -7
  795. package/src/animation/morphing.ts +5 -6
  796. package/src/animation/scaleInX.ts +12 -5
  797. package/src/animation/scaleInY.ts +12 -5
  798. package/src/animation/scaleOutX.ts +9 -5
  799. package/src/animation/scaleOutY.ts +9 -5
  800. package/src/api/chart.ts +59 -11
  801. package/src/api/index.ts +1 -0
  802. package/src/api/library.ts +12 -0
  803. package/src/api/mark/index.ts +3 -3
  804. package/src/api/mark/mark.ts +6 -5
  805. package/src/api/mark/types.ts +1 -0
  806. package/src/api/node.ts +5 -6
  807. package/src/api/props.ts +14 -10
  808. package/src/component/axis.ts +13 -5
  809. package/src/component/index.ts +11 -5
  810. package/src/composition/circle.ts +1 -1
  811. package/src/composition/flex.ts +4 -2
  812. package/src/composition/index.ts +17 -8
  813. package/src/composition/layer.ts +3 -2
  814. package/src/composition/mark.ts +3 -0
  815. package/src/composition/rect.ts +27 -28
  816. package/src/composition/utils.ts +10 -0
  817. package/src/composition/view.ts +3 -2
  818. package/src/coordinate/fisheye.ts +3 -2
  819. package/src/coordinate/fisheyeX.ts +15 -0
  820. package/src/coordinate/fisheyeY.ts +15 -0
  821. package/src/coordinate/helix.ts +21 -0
  822. package/src/coordinate/index.ts +25 -5
  823. package/src/coordinate/reflect.ts +15 -0
  824. package/src/coordinate/reflectX.ts +15 -0
  825. package/src/coordinate/reflectY.ts +15 -0
  826. package/src/coordinate/theta.ts +21 -0
  827. package/src/data/arc.ts +16 -0
  828. package/src/data/cluster.ts +53 -0
  829. package/src/data/custom.ts +15 -0
  830. package/src/data/fetch.ts +28 -0
  831. package/src/data/filterBy.ts +28 -0
  832. package/src/data/fold.ts +29 -0
  833. package/src/data/index.ts +29 -0
  834. package/src/data/inline.ts +11 -0
  835. package/src/data/map.ts +15 -0
  836. package/src/data/pick.ts +15 -0
  837. package/src/data/rename.ts +26 -0
  838. package/src/data/sankey.ts +102 -0
  839. package/src/data/sortBy.ts +33 -0
  840. package/src/data/subset.ts +35 -0
  841. package/src/data/tree.ts +12 -0
  842. package/src/{transform → data}/utils/arc/arc.ts +0 -0
  843. package/src/data/utils/arc/index.ts +2 -0
  844. package/src/{transform → data}/utils/arc/sort.ts +0 -0
  845. package/src/{transform → data}/utils/arc/types.ts +0 -0
  846. package/src/{transform → data}/utils/d3-cloud/index.ts +0 -0
  847. package/src/{transform → data}/utils/d3-sankey/align.ts +0 -0
  848. package/src/{transform → data}/utils/d3-sankey/constant.ts +0 -0
  849. package/src/{transform → data}/utils/d3-sankey/index.ts +0 -0
  850. package/src/{transform → data}/utils/d3-sankey/sankey.ts +0 -0
  851. package/src/data/utils/fields.ts +17 -0
  852. package/src/{transform → data}/utils/flow.ts +0 -0
  853. package/src/data/utils/memo.ts +80 -0
  854. package/src/data/voronoi.ts +32 -0
  855. package/src/data/wordCloud.ts +117 -0
  856. package/src/encode/index.ts +9 -4
  857. package/src/index.ts +1 -1
  858. package/src/interaction/action/index.ts +43 -45
  859. package/src/interaction/action/service/fisheyeFocus.ts +16 -3
  860. package/src/interaction/action/transformer/filter.ts +8 -4
  861. package/src/interaction/index.ts +17 -1
  862. package/src/interaction/interactor/index.ts +5 -2
  863. package/src/interaction/types.ts +1 -1
  864. package/src/labelLayout/hideOverlap.ts +47 -0
  865. package/src/labelLayout/index.ts +1 -0
  866. package/src/mark/annotation/index.ts +15 -25
  867. package/src/mark/geometry/box.ts +105 -0
  868. package/src/mark/geometry/image.ts +4 -3
  869. package/src/mark/geometry/index.ts +23 -13
  870. package/src/mark/geometry/interval.ts +0 -1
  871. package/src/mark/geometry/line.ts +6 -1
  872. package/src/mark/geometry/link.ts +1 -1
  873. package/src/mark/geometry/point.ts +5 -2
  874. package/src/mark/geometry/polygon.ts +1 -1
  875. package/src/mark/utils.ts +1 -1
  876. package/src/palette/index.ts +5 -2
  877. package/src/runtime/component.ts +33 -6
  878. package/src/runtime/coordinate.ts +20 -0
  879. package/src/runtime/index.ts +1 -0
  880. package/src/runtime/layout.ts +1 -1
  881. package/src/runtime/mark.ts +60 -138
  882. package/src/runtime/plot.ts +93 -61
  883. package/src/runtime/render.ts +20 -15
  884. package/src/runtime/scale.ts +16 -6
  885. package/src/runtime/transform.ts +159 -0
  886. package/src/runtime/types/common.ts +5 -2
  887. package/src/runtime/types/component.ts +14 -13
  888. package/src/runtime/types/data.ts +10 -0
  889. package/src/runtime/types/encode.ts +6 -2
  890. package/src/runtime/types/options.ts +8 -2
  891. package/src/runtime/types/transform.ts +8 -13
  892. package/src/scale/index.ts +23 -11
  893. package/src/shape/annotation/text.ts +16 -4
  894. package/src/shape/box/box.ts +96 -0
  895. package/src/shape/index.ts +92 -60
  896. package/src/shape/interval/colorRect.ts +4 -23
  897. package/src/shape/label/label.ts +132 -15
  898. package/src/shape/{edge → link}/arc.ts +0 -0
  899. package/src/shape/{edge → link}/smoothEdge.ts +0 -0
  900. package/src/shape/{edge → link}/vhv.ts +0 -0
  901. package/src/shape/{edge → polygon}/ribbon.ts +0 -0
  902. package/src/shape/utils.ts +31 -0
  903. package/src/spec/composition.ts +8 -5
  904. package/src/spec/coordinate.ts +67 -3
  905. package/src/spec/data.ts +230 -0
  906. package/src/spec/geometry.ts +7 -4
  907. package/src/spec/index.ts +2 -1
  908. package/src/spec/labelLayout.ts +5 -0
  909. package/src/spec/transform.ts +129 -195
  910. package/src/stdlib/index.ts +62 -45
  911. package/src/theme/light.ts +1 -0
  912. package/src/transform/dodgeX.ts +60 -0
  913. package/src/transform/flexX.ts +38 -0
  914. package/src/transform/groupX.ts +109 -0
  915. package/src/transform/index.ts +46 -46
  916. package/src/transform/jitter.ts +45 -0
  917. package/src/transform/jitterY.ts +26 -0
  918. package/src/transform/maybeKey.ts +26 -0
  919. package/src/transform/maybeSeries.ts +20 -0
  920. package/src/transform/maybeSize.ts +23 -0
  921. package/src/transform/maybeStackY.ts +37 -0
  922. package/src/transform/maybeTitleX.ts +20 -0
  923. package/src/transform/maybeTooltip.ts +34 -0
  924. package/src/transform/maybeTooltipPosition.ts +14 -0
  925. package/src/transform/maybeTooltipY.ts +13 -0
  926. package/src/transform/maybeZeroX.ts +25 -0
  927. package/src/transform/maybeZeroY.ts +24 -0
  928. package/src/transform/maybeZeroY1.ts +24 -0
  929. package/src/transform/normalizeY.ts +69 -0
  930. package/src/transform/select.ts +53 -0
  931. package/src/transform/selectX.ts +15 -0
  932. package/src/transform/selectY.ts +15 -0
  933. package/src/transform/sortX.ts +48 -0
  934. package/src/transform/stackEnter.ts +73 -0
  935. package/src/transform/stackY.ts +84 -0
  936. package/src/transform/symmetryY.ts +60 -0
  937. package/src/transform/utils/helper.ts +27 -44
  938. package/src/transform/utils/order.ts +123 -0
  939. package/src/utils/coordinate.ts +9 -0
  940. package/esm/mark/geometry/edge.d.ts +0 -13
  941. package/esm/mark/geometry/edge.js +0 -31
  942. package/esm/mark/geometry/edge.js.map +0 -1
  943. package/esm/mark/geometry/node.d.ts +0 -8
  944. package/esm/mark/geometry/node.js +0 -27
  945. package/esm/mark/geometry/node.js.map +0 -1
  946. package/esm/mark/geometry/schema.d.ts +0 -34
  947. package/esm/mark/geometry/schema.js +0 -90
  948. package/esm/mark/geometry/schema.js.map +0 -1
  949. package/esm/renderer/canvas.d.ts +0 -10
  950. package/esm/renderer/canvas.js +0 -18
  951. package/esm/renderer/canvas.js.map +0 -1
  952. package/esm/renderer/index.d.ts +0 -1
  953. package/esm/renderer/index.js +0 -2
  954. package/esm/renderer/index.js.map +0 -1
  955. package/esm/shape/edge/arc.js.map +0 -1
  956. package/esm/shape/edge/edge.d.ts +0 -6
  957. package/esm/shape/edge/edge.js +0 -11
  958. package/esm/shape/edge/edge.js.map +0 -1
  959. package/esm/shape/edge/ribbon.js.map +0 -1
  960. package/esm/shape/edge/smoothEdge.js.map +0 -1
  961. package/esm/shape/edge/vhv.js.map +0 -1
  962. package/esm/shape/node/point.d.ts +0 -6
  963. package/esm/shape/node/point.js +0 -27
  964. package/esm/shape/node/point.js.map +0 -1
  965. package/esm/shape/node/polygon.d.ts +0 -3
  966. package/esm/shape/node/polygon.js +0 -8
  967. package/esm/shape/node/polygon.js.map +0 -1
  968. package/esm/shape/schema/box.js +0 -87
  969. package/esm/shape/schema/box.js.map +0 -1
  970. package/esm/spec/statistic.d.ts +0 -69
  971. package/esm/spec/statistic.js +0 -2
  972. package/esm/spec/statistic.js.map +0 -1
  973. package/esm/transform/inference/maybeArrayField.d.ts +0 -8
  974. package/esm/transform/inference/maybeArrayField.js +0 -47
  975. package/esm/transform/inference/maybeArrayField.js.map +0 -1
  976. package/esm/transform/inference/maybeKey.d.ts +0 -9
  977. package/esm/transform/inference/maybeKey.js +0 -33
  978. package/esm/transform/inference/maybeKey.js.map +0 -1
  979. package/esm/transform/inference/maybeSeries.d.ts +0 -7
  980. package/esm/transform/inference/maybeSeries.js +0 -23
  981. package/esm/transform/inference/maybeSeries.js.map +0 -1
  982. package/esm/transform/inference/maybeSize.d.ts +0 -7
  983. package/esm/transform/inference/maybeSize.js +0 -14
  984. package/esm/transform/inference/maybeSize.js.map +0 -1
  985. package/esm/transform/inference/maybeStackY.d.ts +0 -9
  986. package/esm/transform/inference/maybeStackY.js +0 -32
  987. package/esm/transform/inference/maybeStackY.js.map +0 -1
  988. package/esm/transform/inference/maybeTitleX.d.ts +0 -7
  989. package/esm/transform/inference/maybeTitleX.js +0 -23
  990. package/esm/transform/inference/maybeTitleX.js.map +0 -1
  991. package/esm/transform/inference/maybeTooltip.d.ts +0 -9
  992. package/esm/transform/inference/maybeTooltip.js +0 -30
  993. package/esm/transform/inference/maybeTooltip.js.map +0 -1
  994. package/esm/transform/inference/maybeTooltipPosition.d.ts +0 -7
  995. package/esm/transform/inference/maybeTooltipPosition.js +0 -12
  996. package/esm/transform/inference/maybeTooltipPosition.js.map +0 -1
  997. package/esm/transform/inference/maybeTooltipY.d.ts +0 -7
  998. package/esm/transform/inference/maybeTooltipY.js +0 -12
  999. package/esm/transform/inference/maybeTooltipY.js.map +0 -1
  1000. package/esm/transform/inference/maybeZeroX.d.ts +0 -7
  1001. package/esm/transform/inference/maybeZeroX.js +0 -14
  1002. package/esm/transform/inference/maybeZeroX.js.map +0 -1
  1003. package/esm/transform/inference/maybeZeroY.d.ts +0 -7
  1004. package/esm/transform/inference/maybeZeroY.js +0 -14
  1005. package/esm/transform/inference/maybeZeroY.js.map +0 -1
  1006. package/esm/transform/inference/maybeZeroY1.d.ts +0 -7
  1007. package/esm/transform/inference/maybeZeroY1.js +0 -14
  1008. package/esm/transform/inference/maybeZeroY1.js.map +0 -1
  1009. package/esm/transform/preprocessor/arc.d.ts +0 -7
  1010. package/esm/transform/preprocessor/arc.js +0 -16
  1011. package/esm/transform/preprocessor/arc.js.map +0 -1
  1012. package/esm/transform/preprocessor/cluster.d.ts +0 -5
  1013. package/esm/transform/preprocessor/cluster.js +0 -40
  1014. package/esm/transform/preprocessor/cluster.js.map +0 -1
  1015. package/esm/transform/preprocessor/connector.d.ts +0 -7
  1016. package/esm/transform/preprocessor/connector.js +0 -16
  1017. package/esm/transform/preprocessor/connector.js.map +0 -1
  1018. package/esm/transform/preprocessor/fetch.d.ts +0 -8
  1019. package/esm/transform/preprocessor/fetch.js +0 -36
  1020. package/esm/transform/preprocessor/fetch.js.map +0 -1
  1021. package/esm/transform/preprocessor/filterBy.d.ts +0 -8
  1022. package/esm/transform/preprocessor/filterBy.js +0 -18
  1023. package/esm/transform/preprocessor/filterBy.js.map +0 -1
  1024. package/esm/transform/preprocessor/fold.d.ts +0 -8
  1025. package/esm/transform/preprocessor/fold.js +0 -27
  1026. package/esm/transform/preprocessor/fold.js.map +0 -1
  1027. package/esm/transform/preprocessor/pick.d.ts +0 -7
  1028. package/esm/transform/preprocessor/pick.js +0 -12
  1029. package/esm/transform/preprocessor/pick.js.map +0 -1
  1030. package/esm/transform/preprocessor/rename.d.ts +0 -8
  1031. package/esm/transform/preprocessor/rename.js +0 -20
  1032. package/esm/transform/preprocessor/rename.js.map +0 -1
  1033. package/esm/transform/preprocessor/sankey.d.ts +0 -8
  1034. package/esm/transform/preprocessor/sankey.js +0 -80
  1035. package/esm/transform/preprocessor/sankey.js.map +0 -1
  1036. package/esm/transform/preprocessor/sortBy.d.ts +0 -7
  1037. package/esm/transform/preprocessor/sortBy.js +0 -19
  1038. package/esm/transform/preprocessor/sortBy.js.map +0 -1
  1039. package/esm/transform/preprocessor/subset.d.ts +0 -7
  1040. package/esm/transform/preprocessor/subset.js +0 -31
  1041. package/esm/transform/preprocessor/subset.js.map +0 -1
  1042. package/esm/transform/preprocessor/tree.d.ts +0 -4
  1043. package/esm/transform/preprocessor/tree.js +0 -7
  1044. package/esm/transform/preprocessor/tree.js.map +0 -1
  1045. package/esm/transform/preprocessor/voronoi.d.ts +0 -4
  1046. package/esm/transform/preprocessor/voronoi.js +0 -20
  1047. package/esm/transform/preprocessor/voronoi.js.map +0 -1
  1048. package/esm/transform/preprocessor/wordCloud.d.ts +0 -6
  1049. package/esm/transform/preprocessor/wordCloud.js +0 -106
  1050. package/esm/transform/preprocessor/wordCloud.js.map +0 -1
  1051. package/esm/transform/statistic/Select.d.ts +0 -9
  1052. package/esm/transform/statistic/Select.js +0 -58
  1053. package/esm/transform/statistic/Select.js.map +0 -1
  1054. package/esm/transform/statistic/SelectX.d.ts +0 -7
  1055. package/esm/transform/statistic/SelectX.js +0 -23
  1056. package/esm/transform/statistic/SelectX.js.map +0 -1
  1057. package/esm/transform/statistic/SelectY.d.ts +0 -7
  1058. package/esm/transform/statistic/SelectY.js +0 -23
  1059. package/esm/transform/statistic/SelectY.js.map +0 -1
  1060. package/esm/transform/statistic/dodgeX.d.ts +0 -9
  1061. package/esm/transform/statistic/dodgeX.js +0 -56
  1062. package/esm/transform/statistic/dodgeX.js.map +0 -1
  1063. package/esm/transform/statistic/groupX.d.ts +0 -8
  1064. package/esm/transform/statistic/groupX.js +0 -85
  1065. package/esm/transform/statistic/groupX.js.map +0 -1
  1066. package/esm/transform/statistic/jitter.d.ts +0 -9
  1067. package/esm/transform/statistic/jitter.js +0 -40
  1068. package/esm/transform/statistic/jitter.js.map +0 -1
  1069. package/esm/transform/statistic/jitterY.d.ts +0 -8
  1070. package/esm/transform/statistic/jitterY.js +0 -27
  1071. package/esm/transform/statistic/jitterY.js.map +0 -1
  1072. package/esm/transform/statistic/normalizeY.d.ts +0 -9
  1073. package/esm/transform/statistic/normalizeY.js +0 -70
  1074. package/esm/transform/statistic/normalizeY.js.map +0 -1
  1075. package/esm/transform/statistic/stackEnter.d.ts +0 -13
  1076. package/esm/transform/statistic/stackEnter.js +0 -59
  1077. package/esm/transform/statistic/stackEnter.js.map +0 -1
  1078. package/esm/transform/statistic/stackY.d.ts +0 -9
  1079. package/esm/transform/statistic/stackY.js +0 -55
  1080. package/esm/transform/statistic/stackY.js.map +0 -1
  1081. package/esm/transform/statistic/symmetryY.d.ts +0 -8
  1082. package/esm/transform/statistic/symmetryY.js +0 -61
  1083. package/esm/transform/statistic/symmetryY.js.map +0 -1
  1084. package/esm/transform/statistic/utils.d.ts +0 -9
  1085. package/esm/transform/statistic/utils.js +0 -70
  1086. package/esm/transform/statistic/utils.js.map +0 -1
  1087. package/esm/transform/utils/arc/arc.js.map +0 -1
  1088. package/esm/transform/utils/arc/index.d.ts +0 -2
  1089. package/esm/transform/utils/arc/index.js.map +0 -1
  1090. package/esm/transform/utils/arc/sort.js.map +0 -1
  1091. package/esm/transform/utils/arc/types.js.map +0 -1
  1092. package/esm/transform/utils/d3-cloud/index.js.map +0 -1
  1093. package/esm/transform/utils/d3-sankey/align.js.map +0 -1
  1094. package/esm/transform/utils/d3-sankey/constant.js.map +0 -1
  1095. package/esm/transform/utils/d3-sankey/index.js.map +0 -1
  1096. package/esm/transform/utils/d3-sankey/sankey.js.map +0 -1
  1097. package/esm/transform/utils/flow.js.map +0 -1
  1098. package/esm/transform/utils/memo.js.map +0 -1
  1099. package/lib/mark/geometry/edge.d.ts +0 -13
  1100. package/lib/mark/geometry/edge.js +0 -35
  1101. package/lib/mark/geometry/edge.js.map +0 -1
  1102. package/lib/mark/geometry/node.d.ts +0 -8
  1103. package/lib/mark/geometry/node.js +0 -31
  1104. package/lib/mark/geometry/node.js.map +0 -1
  1105. package/lib/mark/geometry/schema.d.ts +0 -34
  1106. package/lib/mark/geometry/schema.js +0 -94
  1107. package/lib/mark/geometry/schema.js.map +0 -1
  1108. package/lib/renderer/canvas.d.ts +0 -10
  1109. package/lib/renderer/canvas.js +0 -22
  1110. package/lib/renderer/canvas.js.map +0 -1
  1111. package/lib/renderer/index.d.ts +0 -1
  1112. package/lib/renderer/index.js +0 -6
  1113. package/lib/renderer/index.js.map +0 -1
  1114. package/lib/shape/edge/arc.js.map +0 -1
  1115. package/lib/shape/edge/edge.d.ts +0 -6
  1116. package/lib/shape/edge/edge.js +0 -15
  1117. package/lib/shape/edge/edge.js.map +0 -1
  1118. package/lib/shape/edge/ribbon.js.map +0 -1
  1119. package/lib/shape/edge/smoothEdge.js.map +0 -1
  1120. package/lib/shape/edge/vhv.js.map +0 -1
  1121. package/lib/shape/node/point.d.ts +0 -6
  1122. package/lib/shape/node/point.js +0 -31
  1123. package/lib/shape/node/point.js.map +0 -1
  1124. package/lib/shape/node/polygon.d.ts +0 -3
  1125. package/lib/shape/node/polygon.js +0 -12
  1126. package/lib/shape/node/polygon.js.map +0 -1
  1127. package/lib/shape/schema/box.js +0 -91
  1128. package/lib/shape/schema/box.js.map +0 -1
  1129. package/lib/spec/statistic.d.ts +0 -69
  1130. package/lib/spec/statistic.js +0 -3
  1131. package/lib/spec/statistic.js.map +0 -1
  1132. package/lib/transform/inference/maybeArrayField.d.ts +0 -8
  1133. package/lib/transform/inference/maybeArrayField.js +0 -51
  1134. package/lib/transform/inference/maybeArrayField.js.map +0 -1
  1135. package/lib/transform/inference/maybeKey.d.ts +0 -9
  1136. package/lib/transform/inference/maybeKey.js +0 -37
  1137. package/lib/transform/inference/maybeKey.js.map +0 -1
  1138. package/lib/transform/inference/maybeSeries.d.ts +0 -7
  1139. package/lib/transform/inference/maybeSeries.js +0 -27
  1140. package/lib/transform/inference/maybeSeries.js.map +0 -1
  1141. package/lib/transform/inference/maybeSize.d.ts +0 -7
  1142. package/lib/transform/inference/maybeSize.js +0 -18
  1143. package/lib/transform/inference/maybeSize.js.map +0 -1
  1144. package/lib/transform/inference/maybeStackY.d.ts +0 -9
  1145. package/lib/transform/inference/maybeStackY.js +0 -36
  1146. package/lib/transform/inference/maybeStackY.js.map +0 -1
  1147. package/lib/transform/inference/maybeTitleX.d.ts +0 -7
  1148. package/lib/transform/inference/maybeTitleX.js +0 -27
  1149. package/lib/transform/inference/maybeTitleX.js.map +0 -1
  1150. package/lib/transform/inference/maybeTooltip.d.ts +0 -9
  1151. package/lib/transform/inference/maybeTooltip.js +0 -34
  1152. package/lib/transform/inference/maybeTooltip.js.map +0 -1
  1153. package/lib/transform/inference/maybeTooltipPosition.d.ts +0 -7
  1154. package/lib/transform/inference/maybeTooltipPosition.js +0 -16
  1155. package/lib/transform/inference/maybeTooltipPosition.js.map +0 -1
  1156. package/lib/transform/inference/maybeTooltipY.d.ts +0 -7
  1157. package/lib/transform/inference/maybeTooltipY.js +0 -16
  1158. package/lib/transform/inference/maybeTooltipY.js.map +0 -1
  1159. package/lib/transform/inference/maybeZeroX.d.ts +0 -7
  1160. package/lib/transform/inference/maybeZeroX.js +0 -18
  1161. package/lib/transform/inference/maybeZeroX.js.map +0 -1
  1162. package/lib/transform/inference/maybeZeroY.d.ts +0 -7
  1163. package/lib/transform/inference/maybeZeroY.js +0 -18
  1164. package/lib/transform/inference/maybeZeroY.js.map +0 -1
  1165. package/lib/transform/inference/maybeZeroY1.d.ts +0 -7
  1166. package/lib/transform/inference/maybeZeroY1.js +0 -18
  1167. package/lib/transform/inference/maybeZeroY1.js.map +0 -1
  1168. package/lib/transform/preprocessor/arc.d.ts +0 -7
  1169. package/lib/transform/preprocessor/arc.js +0 -20
  1170. package/lib/transform/preprocessor/arc.js.map +0 -1
  1171. package/lib/transform/preprocessor/cluster.d.ts +0 -5
  1172. package/lib/transform/preprocessor/cluster.js +0 -44
  1173. package/lib/transform/preprocessor/cluster.js.map +0 -1
  1174. package/lib/transform/preprocessor/connector.d.ts +0 -7
  1175. package/lib/transform/preprocessor/connector.js +0 -20
  1176. package/lib/transform/preprocessor/connector.js.map +0 -1
  1177. package/lib/transform/preprocessor/fetch.d.ts +0 -8
  1178. package/lib/transform/preprocessor/fetch.js +0 -40
  1179. package/lib/transform/preprocessor/fetch.js.map +0 -1
  1180. package/lib/transform/preprocessor/filterBy.d.ts +0 -8
  1181. package/lib/transform/preprocessor/filterBy.js +0 -22
  1182. package/lib/transform/preprocessor/filterBy.js.map +0 -1
  1183. package/lib/transform/preprocessor/fold.d.ts +0 -8
  1184. package/lib/transform/preprocessor/fold.js +0 -32
  1185. package/lib/transform/preprocessor/fold.js.map +0 -1
  1186. package/lib/transform/preprocessor/pick.d.ts +0 -7
  1187. package/lib/transform/preprocessor/pick.js +0 -16
  1188. package/lib/transform/preprocessor/pick.js.map +0 -1
  1189. package/lib/transform/preprocessor/rename.d.ts +0 -8
  1190. package/lib/transform/preprocessor/rename.js +0 -25
  1191. package/lib/transform/preprocessor/rename.js.map +0 -1
  1192. package/lib/transform/preprocessor/sankey.d.ts +0 -8
  1193. package/lib/transform/preprocessor/sankey.js +0 -84
  1194. package/lib/transform/preprocessor/sankey.js.map +0 -1
  1195. package/lib/transform/preprocessor/sortBy.d.ts +0 -7
  1196. package/lib/transform/preprocessor/sortBy.js +0 -23
  1197. package/lib/transform/preprocessor/sortBy.js.map +0 -1
  1198. package/lib/transform/preprocessor/subset.d.ts +0 -7
  1199. package/lib/transform/preprocessor/subset.js +0 -35
  1200. package/lib/transform/preprocessor/subset.js.map +0 -1
  1201. package/lib/transform/preprocessor/tree.d.ts +0 -4
  1202. package/lib/transform/preprocessor/tree.js +0 -10
  1203. package/lib/transform/preprocessor/tree.js.map +0 -1
  1204. package/lib/transform/preprocessor/voronoi.d.ts +0 -4
  1205. package/lib/transform/preprocessor/voronoi.js +0 -24
  1206. package/lib/transform/preprocessor/voronoi.js.map +0 -1
  1207. package/lib/transform/preprocessor/wordCloud.d.ts +0 -6
  1208. package/lib/transform/preprocessor/wordCloud.js +0 -112
  1209. package/lib/transform/preprocessor/wordCloud.js.map +0 -1
  1210. package/lib/transform/statistic/Select.d.ts +0 -9
  1211. package/lib/transform/statistic/Select.js +0 -62
  1212. package/lib/transform/statistic/Select.js.map +0 -1
  1213. package/lib/transform/statistic/SelectX.d.ts +0 -7
  1214. package/lib/transform/statistic/SelectX.js +0 -27
  1215. package/lib/transform/statistic/SelectX.js.map +0 -1
  1216. package/lib/transform/statistic/SelectY.d.ts +0 -7
  1217. package/lib/transform/statistic/SelectY.js +0 -27
  1218. package/lib/transform/statistic/SelectY.js.map +0 -1
  1219. package/lib/transform/statistic/dodgeX.d.ts +0 -9
  1220. package/lib/transform/statistic/dodgeX.js +0 -60
  1221. package/lib/transform/statistic/dodgeX.js.map +0 -1
  1222. package/lib/transform/statistic/groupX.d.ts +0 -8
  1223. package/lib/transform/statistic/groupX.js +0 -89
  1224. package/lib/transform/statistic/groupX.js.map +0 -1
  1225. package/lib/transform/statistic/jitter.d.ts +0 -9
  1226. package/lib/transform/statistic/jitter.js +0 -45
  1227. package/lib/transform/statistic/jitter.js.map +0 -1
  1228. package/lib/transform/statistic/jitterY.d.ts +0 -8
  1229. package/lib/transform/statistic/jitterY.js +0 -31
  1230. package/lib/transform/statistic/jitterY.js.map +0 -1
  1231. package/lib/transform/statistic/normalizeY.d.ts +0 -9
  1232. package/lib/transform/statistic/normalizeY.js +0 -74
  1233. package/lib/transform/statistic/normalizeY.js.map +0 -1
  1234. package/lib/transform/statistic/stackEnter.d.ts +0 -13
  1235. package/lib/transform/statistic/stackEnter.js +0 -63
  1236. package/lib/transform/statistic/stackEnter.js.map +0 -1
  1237. package/lib/transform/statistic/stackY.d.ts +0 -9
  1238. package/lib/transform/statistic/stackY.js +0 -59
  1239. package/lib/transform/statistic/stackY.js.map +0 -1
  1240. package/lib/transform/statistic/symmetryY.d.ts +0 -8
  1241. package/lib/transform/statistic/symmetryY.js +0 -65
  1242. package/lib/transform/statistic/symmetryY.js.map +0 -1
  1243. package/lib/transform/statistic/utils.d.ts +0 -9
  1244. package/lib/transform/statistic/utils.js +0 -77
  1245. package/lib/transform/statistic/utils.js.map +0 -1
  1246. package/lib/transform/utils/arc/arc.js.map +0 -1
  1247. package/lib/transform/utils/arc/index.d.ts +0 -2
  1248. package/lib/transform/utils/arc/index.js.map +0 -1
  1249. package/lib/transform/utils/arc/sort.js.map +0 -1
  1250. package/lib/transform/utils/arc/types.js.map +0 -1
  1251. package/lib/transform/utils/d3-cloud/index.js.map +0 -1
  1252. package/lib/transform/utils/d3-sankey/align.js.map +0 -1
  1253. package/lib/transform/utils/d3-sankey/constant.js.map +0 -1
  1254. package/lib/transform/utils/d3-sankey/index.js.map +0 -1
  1255. package/lib/transform/utils/d3-sankey/sankey.js.map +0 -1
  1256. package/lib/transform/utils/flow.js.map +0 -1
  1257. package/lib/transform/utils/memo.js.map +0 -1
  1258. package/src/mark/geometry/edge.ts +0 -40
  1259. package/src/mark/geometry/node.ts +0 -36
  1260. package/src/mark/geometry/schema.ts +0 -105
  1261. package/src/renderer/canvas.ts +0 -27
  1262. package/src/renderer/index.ts +0 -1
  1263. package/src/shape/edge/edge.ts +0 -15
  1264. package/src/shape/node/point.ts +0 -32
  1265. package/src/shape/node/polygon.ts +0 -12
  1266. package/src/shape/schema/box.ts +0 -96
  1267. package/src/spec/statistic.ts +0 -135
  1268. package/src/transform/inference/maybeArrayField.ts +0 -55
  1269. package/src/transform/inference/maybeKey.ts +0 -29
  1270. package/src/transform/inference/maybeSeries.ts +0 -26
  1271. package/src/transform/inference/maybeSize.ts +0 -18
  1272. package/src/transform/inference/maybeStackY.ts +0 -38
  1273. package/src/transform/inference/maybeTitleX.ts +0 -26
  1274. package/src/transform/inference/maybeTooltip.ts +0 -35
  1275. package/src/transform/inference/maybeTooltipPosition.ts +0 -16
  1276. package/src/transform/inference/maybeTooltipY.ts +0 -16
  1277. package/src/transform/inference/maybeZeroX.ts +0 -18
  1278. package/src/transform/inference/maybeZeroY.ts +0 -18
  1279. package/src/transform/inference/maybeZeroY1.ts +0 -18
  1280. package/src/transform/preprocessor/arc.ts +0 -21
  1281. package/src/transform/preprocessor/cluster.ts +0 -56
  1282. package/src/transform/preprocessor/connector.ts +0 -22
  1283. package/src/transform/preprocessor/fetch.ts +0 -32
  1284. package/src/transform/preprocessor/filterBy.ts +0 -24
  1285. package/src/transform/preprocessor/fold.ts +0 -32
  1286. package/src/transform/preprocessor/pick.ts +0 -17
  1287. package/src/transform/preprocessor/rename.ts +0 -29
  1288. package/src/transform/preprocessor/sankey.ts +0 -105
  1289. package/src/transform/preprocessor/sortBy.ts +0 -28
  1290. package/src/transform/preprocessor/subset.ts +0 -40
  1291. package/src/transform/preprocessor/tree.ts +0 -12
  1292. package/src/transform/preprocessor/voronoi.ts +0 -30
  1293. package/src/transform/preprocessor/wordCloud.ts +0 -115
  1294. package/src/transform/statistic/dodgeX.ts +0 -56
  1295. package/src/transform/statistic/groupX.ts +0 -91
  1296. package/src/transform/statistic/jitter.ts +0 -49
  1297. package/src/transform/statistic/jitterY.ts +0 -32
  1298. package/src/transform/statistic/normalizeY.ts +0 -69
  1299. package/src/transform/statistic/select.ts +0 -58
  1300. package/src/transform/statistic/selectX.ts +0 -17
  1301. package/src/transform/statistic/selectY.ts +0 -17
  1302. package/src/transform/statistic/stackEnter.ts +0 -65
  1303. package/src/transform/statistic/stackY.ts +0 -58
  1304. package/src/transform/statistic/symmetryY.ts +0 -59
  1305. package/src/transform/statistic/utils.ts +0 -120
  1306. package/src/transform/utils/arc/index.ts +0 -2
  1307. package/src/transform/utils/memo.ts +0 -79
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.js","sourceRoot":"src/","sources":["runtime/transform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,0CAAoD;AACpD,4CAAwD;AACxD,uCAAuC;AACvC,iCAAwC;AAIxC,mCAAqC;AAErC,2BAA2B;AAC3B,SAAgB,aAAa,CAC3B,CAAW,EACX,IAAY,EACZ,OAAyB;IAEzB,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,KAAc,IAAI,EAAb,IAAI,UAAK,IAAI,EAA9C,sBAAuC,CAAO,CAAC;IACrD,OAAO,CAAC,CAAC,kCAAO,IAAI,KAAE,KAAK,EAAE,SAAS,IAAG,CAAC;AAC5C,CAAC;AAPD,sCAOC;AAED,SAAsB,kBAAkB,CACtC,CAAW,EACX,IAAY,EACZ,OAAyB;;QAEzB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,oBAAU,EAC1B,MAAM,EACN,OAAO,CACR,CAAC;QACF,MAAM,UAAU,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,KAAmB,UAAU,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AI,CAAG,CAAC,CAAC,0CAAG,OAAO,CAAC,MAAK,SAAS,EAAE;QACrE,OAAO,OAAO,CAAC;KAChB;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAI;IAChC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAChE,MAAM,EAAE,IAAI,GAAG,QAAQ,KAAc,IAAI,EAAb,IAAI,UAAK,IAAI,EAAnC,QAA4B,CAAO,CAAC;IAC1C,uCAAY,IAAI,KAAE,IAAI,IAAG;AAC3B,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import { Coordinate } from '@antv/coord';
2
2
  import { DisplayObject } from '@antv/g';
3
3
  import { G2GuideComponentOptions, G2Mark, G2ViewTree } from './options';
4
- import { Scale } from './component';
4
+ import { LabelLayout, Scale } from './component';
5
5
  import { MarkProps } from './mark';
6
- import { ColumnValue } from './encode';
7
6
  export declare type G2Theme = {
8
7
  defaultColor?: string;
9
8
  defaultCategory10?: string;
10
9
  defaultCategory20?: string;
11
10
  defaultSize?: number;
12
11
  elementActiveStroke?: string;
12
+ labelFill?: string;
13
13
  enter?: {
14
14
  duration?: number;
15
15
  delay?: number;
@@ -52,6 +52,7 @@ export declare type G2ViewDescriptor = {
52
52
  layout: Layout;
53
53
  key: string;
54
54
  frame: boolean;
55
+ labelLayout?: LabelLayout;
55
56
  };
56
57
  export declare type G2ViewInstance = {
57
58
  view: G2ViewDescriptor;
@@ -88,10 +89,11 @@ export declare type Channel = {
88
89
  scale?: string;
89
90
  scaleName?: string;
90
91
  required?: boolean;
91
- value?: ColumnValue;
92
+ value?: Primitive[];
92
93
  type?: string;
93
94
  independent?: boolean;
94
95
  field?: string | string[];
96
+ visual?: boolean;
95
97
  };
96
98
  export declare type Vector2 = [number, number];
97
99
  export declare type BBox = {
@@ -1,19 +1,18 @@
1
- import { Canvas, DisplayObject, Animation as GAnimation } from '@antv/g';
1
+ import { DisplayObject, IAnimation as GAnimation } from '@antv/g';
2
2
  import { Transformation, Coordinate } from '@antv/coord';
3
3
  import { IndexedValue, G2Theme, Vector2, GuideComponentPosition, Layout, G2ViewInstance } from './common';
4
4
  import { G2ViewTree } from './options';
5
5
  import { EncodeComponent, Encode } from './encode';
6
6
  import { MarkComponent, Mark } from './mark';
7
7
  import { TransformComponent, Transform } from './transform';
8
- export declare type G2ComponentNamespaces = 'renderer' | 'coordinate' | 'encode' | 'mark' | 'infer' | 'palette' | 'scale' | 'shape' | 'statistic' | 'theme' | 'transform' | 'component' | 'animation' | 'action' | 'interaction' | 'interactor' | 'composition' | 'adjust';
9
- export declare type G2Component = RendererComponent | EncodeComponent | InferComponent | StatisticComponent | ScaleComponent | CoordinateComponent | PaletteComponent | MarkComponent | ShapeComponent | ThemeComponent | GuideComponentComponent | AnimationComponent | InteractionComponent | CompositionComponent | AdjustComponent | TransformComponent;
10
- export declare type G2ComponentValue = Renderer | Transform | Encode | Infer | Statistic | Scale | CoordinateTransform | Palette | Mark | Shape | Theme | GuideComponent | Animation | Interaction | Composition | Adjust;
8
+ import { DataComponent } from './data';
9
+ export declare type G2ComponentNamespaces = 'coordinate' | 'encode' | 'mark' | 'infer' | 'palette' | 'scale' | 'shape' | 'statistic' | 'theme' | 'transform' | 'component' | 'animation' | 'action' | 'interaction' | 'interactor' | 'composition' | 'adjust' | 'data' | 'labelLayout';
10
+ export declare type G2Component = EncodeComponent | InferComponent | StatisticComponent | ScaleComponent | CoordinateComponent | PaletteComponent | MarkComponent | ShapeComponent | ThemeComponent | GuideComponentComponent | AnimationComponent | InteractionComponent | CompositionComponent | AdjustComponent | TransformComponent | DataComponent | LabelLayoutComponent;
11
+ export declare type G2ComponentValue = Transform | Encode | Infer | Statistic | Scale | CoordinateTransform | Palette | Mark | Shape | Theme | GuideComponent | Animation | Interaction | Composition | Adjust;
11
12
  export declare type G2BaseComponent<R = any, O = Record<string, unknown> | void, P = Record<string, unknown>> = {
12
13
  (options?: O): R;
13
14
  props?: P;
14
15
  };
15
- export declare type Renderer = Canvas;
16
- export declare type RendererComponent<O = Record<string, unknown>> = G2BaseComponent<Renderer, O>;
17
16
  export declare type InferredEncode = {
18
17
  type?: string;
19
18
  [key: string | symbol]: any;
@@ -71,3 +70,5 @@ export declare type Composition = (children: G2ViewTree) => G2ViewTree[] | (() =
71
70
  export declare type CompositionComponent<O = Record<string, unknown>> = G2BaseComponent<Composition, O>;
72
71
  export declare type Adjust = (points: Vector2[][], domain: number, layout: Layout) => string[];
73
72
  export declare type AdjustComponent<O = Record<string, unknown>> = G2BaseComponent<Adjust, O>;
73
+ export declare type LabelLayout = (labels: DisplayObject[]) => DisplayObject[];
74
+ export declare type LabelLayoutComponent<O = Record<string, unknown>> = G2BaseComponent<LabelLayout, O>;
@@ -0,0 +1,7 @@
1
+ export declare type DataOptions = Record<string, any>;
2
+ export declare type DataProps = Record<string, never>;
3
+ export declare type DataComponent<O extends DataOptions = DataOptions> = {
4
+ (options?: O): Data;
5
+ props: DataProps;
6
+ };
7
+ export declare type Data = (data: any) => any | Promise<any>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"src/","sources":["runtime/types/data.ts"],"names":[],"mappings":""}
@@ -7,7 +7,7 @@ export declare type EncodeComponent<O extends EncodeOptions = EncodeOptions> = {
7
7
  (options?: O): Encode;
8
8
  props: EncodeProps;
9
9
  };
10
- export declare type Encode = (data: TabularData) => ColumnValue;
10
+ export declare type Encode = (data: TabularData) => Primitive[];
11
11
  export declare type EncodeSpec = NormalizedEncodeSpec | PrimitiveEncodeSpec;
12
12
  export declare type NormalizedEncodeSpec = {
13
13
  type?: string;
@@ -16,6 +16,8 @@ export declare type NormalizedEncodeSpec = {
16
16
  };
17
17
  export declare type FunctionEncodeSpec = (value: TabularData[number], index: number, array: TabularData) => Primitive;
18
18
  export declare type PrimitiveEncodeSpec = Primitive | FunctionEncodeSpec;
19
- export declare type ColumnValue = Primitive[] & {
19
+ export declare type ColumnValue = {
20
+ type: 'column';
21
+ value: Primitive[];
20
22
  field?: string;
21
23
  };
@@ -1,9 +1,10 @@
1
1
  import { Canvas } from '@antv/g';
2
2
  import { G2Title, GuideComponentPosition, Layout, Primitive } from './common';
3
- import { G2BaseComponent, StatisticComponent, ThemeComponent, G2ComponentNamespaces, CoordinateComponent, ScaleComponent, InferComponent, ShapeComponent, PaletteComponent, GuideComponentComponent, AnimationComponent, InteractionComponent, CompositionComponent, AdjustComponent, Scale } from './component';
3
+ import { G2BaseComponent, StatisticComponent, ThemeComponent, G2ComponentNamespaces, CoordinateComponent, ScaleComponent, InferComponent, ShapeComponent, PaletteComponent, GuideComponentComponent, AnimationComponent, InteractionComponent, CompositionComponent, AdjustComponent, Scale, LabelLayoutComponent } from './component';
4
4
  import { TransformComponent } from './transform';
5
5
  import { EncodeComponent } from './encode';
6
6
  import { MarkComponent } from './mark';
7
+ import { DataComponent } from './data';
7
8
  export declare type G2ViewTree = {
8
9
  width?: number;
9
10
  height?: number;
@@ -40,6 +41,7 @@ export declare type G2View = {
40
41
  type?: string;
41
42
  [key: string]: any;
42
43
  };
44
+ labelLayout?: G2LabelLayoutOptions[];
43
45
  };
44
46
  export declare type G2Mark = {
45
47
  key?: string;
@@ -50,7 +52,6 @@ export declare type G2Mark = {
50
52
  paddingBottom?: number;
51
53
  data?: any;
52
54
  transform?: G2TransformOptions[];
53
- statistic?: G2StatisticOptions[];
54
55
  scale?: Record<string, G2ScaleOptions>;
55
56
  encode?: Record<string, any | G2EncodeOptions>;
56
57
  type?: string | MarkComponent;
@@ -61,6 +62,7 @@ export declare type G2Mark = {
61
62
  dataDomain?: number;
62
63
  frame?: boolean;
63
64
  style?: Record<string, Primitive>;
65
+ labels?: Record<string, any>[];
64
66
  };
65
67
  export declare type G2MarkChildrenCallback = (visualData: Record<string, any>[], scale: Record<string, Scale>, layout: Layout) => Node[];
66
68
  export declare type G2BaseComponentOptions<C = G2BaseComponent, O = {
@@ -68,7 +70,7 @@ export declare type G2BaseComponentOptions<C = G2BaseComponent, O = {
68
70
  }> = {
69
71
  type?: string | C;
70
72
  } & O;
71
- export declare type G2ComponentOptions = G2TransformOptions | G2StatisticOptions | G2EncodeOptions | G2ThemeOptions | G2MarkOptions | G2CoordinateOptions | G2ScaleOptions | G2InferOptions | G2ShapeOptions | G2PaletteOptions | G2GuideComponentOptions | G2AnimationOptions | G2InteractionOptions | G2CompositionOptions | G2AdjustOptions;
73
+ export declare type G2ComponentOptions = G2TransformOptions | G2StatisticOptions | G2EncodeOptions | G2ThemeOptions | G2MarkOptions | G2CoordinateOptions | G2ScaleOptions | G2InferOptions | G2ShapeOptions | G2PaletteOptions | G2GuideComponentOptions | G2AnimationOptions | G2InteractionOptions | G2CompositionOptions | G2AdjustOptions | G2LabelLayoutOptions;
72
74
  export declare type G2TransformOptions = G2BaseComponentOptions<TransformComponent>;
73
75
  export declare type G2StatisticOptions = G2BaseComponentOptions<StatisticComponent>;
74
76
  export declare type G2EncodeOptions = G2BaseComponentOptions<EncodeComponent>;
@@ -99,8 +101,10 @@ export declare type G2AnimationOptions = G2BaseComponentOptions<AnimationCompone
99
101
  export declare type G2InteractionOptions = G2BaseComponentOptions<InteractionComponent>;
100
102
  export declare type G2CompositionOptions = G2BaseComponentOptions<CompositionComponent>;
101
103
  export declare type G2AdjustOptions = G2BaseComponentOptions<AdjustComponent>;
104
+ export declare type G2LabelLayoutOptions = G2BaseComponentOptions<LabelLayoutComponent>;
102
105
  export declare type G2TitleOptions = G2Title & {
103
106
  position?: GuideComponentPosition;
104
107
  size?: number;
105
108
  zIndex?: number;
106
109
  };
110
+ export declare type G2DataOptions = G2BaseComponent<DataComponent>;
@@ -1,23 +1,17 @@
1
- import { ColumnValue, EncodeSpec } from './encode';
1
+ import { ColumnValue, NormalizedEncodeSpec } from './encode';
2
+ import { G2Library, G2Mark } from './options';
2
3
  export declare type TransformContext = {
3
- data?: any;
4
- I?: number[];
5
- encode?: Record<string, EncodeSpec>;
6
- columnOf?: ColumnOf;
7
- transform?: TransformSpec[];
8
- scale?: Record<string, any>;
4
+ library: G2Library;
9
5
  };
10
6
  export declare type TransformOptions = Record<string, any>;
11
- export declare type TransformProps = {
12
- category: 'inference' | 'preprocessor' | 'statistic';
13
- };
7
+ export declare type TransformProps = Record<string, never>;
14
8
  export declare type TransformComponent<O extends TransformOptions = TransformOptions> = {
15
9
  (options: O): Transform;
16
10
  props?: TransformProps;
17
11
  };
18
- export declare type Transform = (context: TransformContext) => TransformContext | Promise<TransformContext>;
12
+ export declare type Transform = (I: number[], mark: G2Mark, context: TransformContext) => [number[], G2Mark] | Promise<[number[], G2Mark]>;
19
13
  export declare type TransformSpec = {
20
14
  type?: string | TransformComponent;
21
15
  [key: string]: any;
22
16
  };
23
- export declare type ColumnOf = (data: any, encode: EncodeSpec) => ColumnValue;
17
+ export declare type ColumnOf = (data: any, encode: NormalizedEncodeSpec) => ColumnValue;
@@ -1,11 +1,22 @@
1
- export { Band, BandOptions } from './band';
2
- export { Linear, LinearOptions } from './linear';
3
- export { Ordinal, OrdinalOptions } from './ordinal';
4
- export { Identity, IdentityOptions } from './identity';
5
- export { Point, PointOptions } from './point';
6
- export { Time, TimeOptions } from './time';
7
- export { Log, LogOptions } from './log';
8
- export { Pow, PowOptions } from './pow';
9
- export { Threshold, ThresholdOptions } from './threshold';
10
- export { Quantile, QuantileOptions } from './quantile';
11
- export { Quantize, QuantizeOptions } from './quantize';
1
+ export { Band } from './band';
2
+ export { Linear } from './linear';
3
+ export { Ordinal } from './ordinal';
4
+ export { Identity } from './identity';
5
+ export { Point } from './point';
6
+ export { Time } from './time';
7
+ export { Log } from './log';
8
+ export { Pow } from './pow';
9
+ export { Threshold } from './threshold';
10
+ export { Quantile } from './quantile';
11
+ export { Quantize } from './quantize';
12
+ export type { BandOptions } from './band';
13
+ export type { LinearOptions } from './linear';
14
+ export type { OrdinalOptions } from './ordinal';
15
+ export type { IdentityOptions } from './identity';
16
+ export type { PointOptions } from './point';
17
+ export type { TimeOptions } from './time';
18
+ export type { LogOptions } from './log';
19
+ export type { PowOptions } from './pow';
20
+ export type { ThresholdOptions } from './threshold';
21
+ export type { QuantileOptions } from './quantile';
22
+ export type { QuantizeOptions } from './quantize';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["scale/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAAlC,4FAAA,IAAI,OAAA;AACb,mCAAiD;AAAxC,gGAAA,MAAM,OAAA;AACf,qCAAoD;AAA3C,kGAAA,OAAO,OAAA;AAChB,uCAAuD;AAA9C,oGAAA,QAAQ,OAAA;AACjB,iCAA8C;AAArC,8FAAA,KAAK,OAAA;AACd,+BAA2C;AAAlC,4FAAA,IAAI,OAAA;AACb,6BAAwC;AAA/B,0FAAA,GAAG,OAAA;AACZ,6BAAwC;AAA/B,0FAAA,GAAG,OAAA;AACZ,yCAA0D;AAAjD,sGAAA,SAAS,OAAA;AAClB,uCAAuD;AAA9C,oGAAA,QAAQ,OAAA;AACjB,uCAAuD;AAA9C,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["scale/index.ts"],"names":[],"mappings":";;;AAAA,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
@@ -73,7 +73,10 @@ class TextShape extends g_1.CustomElement {
73
73
  drawBackground() {
74
74
  const { background } = this.style;
75
75
  if (!background) {
76
- this.background && this.removeChild(this.background, true);
76
+ if (this.background) {
77
+ this.removeChild(this.background);
78
+ this.background.destroy();
79
+ }
77
80
  this.background = undefined;
78
81
  return;
79
82
  }
@@ -95,7 +98,10 @@ class TextShape extends g_1.CustomElement {
95
98
  drawConnector() {
96
99
  const { connector } = this.style;
97
100
  if (!connector) {
98
- this.connector && this.removeChild(this.connector, true);
101
+ if (this.connector) {
102
+ this.removeChild(this.connector);
103
+ this.connector.destroy();
104
+ }
99
105
  this.connector = undefined;
100
106
  return;
101
107
  }
@@ -116,7 +122,10 @@ class TextShape extends g_1.CustomElement {
116
122
  drawStartMarker(style) {
117
123
  const shape = this.startMarkerPoint;
118
124
  if (!style) {
119
- shape && this.removeChild(shape, true);
125
+ if (shape) {
126
+ this.removeChild(shape);
127
+ shape.destroy();
128
+ }
120
129
  this.startMarkerPoint = undefined;
121
130
  return;
122
131
  }
@@ -128,7 +137,10 @@ class TextShape extends g_1.CustomElement {
128
137
  drawEndMarker(style) {
129
138
  const shape = this.endMarkerPoint;
130
139
  if (!style) {
131
- shape && this.removeChild(shape, true);
140
+ if (shape) {
141
+ this.removeChild(shape);
142
+ shape.destroy();
143
+ }
132
144
  this.endMarkerPoint = undefined;
133
145
  return;
134
146
  }
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot":"src/","sources":["shape/annotation/text.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BASiB;AACjB,mCAAmC;AAEnC,6CAA+C;AAC/C,qDAA+C;AAmB/C,SAAS,gBAAgB,CAAC,KAAmB;IAC3C,MAAM,EACJ,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EACb,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,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,CAAC,CAAC;AAvBW,QAAA,cAAc,kBAuBzB;AAEF,sBAAc,CAAC,KAAK,GAAG;IACrB,qBAAqB,EAAE,QAAQ;CAChC,CAAC"}
File without changes
@@ -0,0 +1,91 @@
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.Box = void 0;
15
+ const g_1 = require("@antv/g");
16
+ const d3_path_1 = require("d3-path");
17
+ const utils_1 = require("../utils");
18
+ const selection_1 = require("../../utils/selection");
19
+ const coordinate_1 = require("../../utils/coordinate");
20
+ const vector_1 = require("../../utils/vector");
21
+ function getPath(points, coordinate) {
22
+ const path = (0, d3_path_1.path)();
23
+ if (!(0, coordinate_1.isPolar)(coordinate)) {
24
+ path.moveTo(...points[0]);
25
+ path.lineTo(...points[1]);
26
+ path.moveTo(...points[2]);
27
+ path.lineTo(...points[3]);
28
+ path.moveTo(...points[4]);
29
+ path.lineTo(...points[5]);
30
+ path.lineTo(...points[6]);
31
+ path.lineTo(...points[7]);
32
+ path.closePath();
33
+ path.moveTo(...points[8]);
34
+ path.lineTo(...points[9]);
35
+ path.moveTo(...points[10]);
36
+ path.lineTo(...points[11]);
37
+ path.moveTo(...points[12]);
38
+ path.lineTo(...points[13]);
39
+ }
40
+ else {
41
+ // In polar coordinate.
42
+ const center = coordinate.getCenter();
43
+ const [x, y] = center;
44
+ const startAngle = (0, vector_1.angle)((0, vector_1.sub)(points[0], center)) - Math.PI / 2;
45
+ const endAngle = (0, vector_1.angle)((0, vector_1.sub)(points[1], center)) - Math.PI / 2;
46
+ const radiusHigh = (0, vector_1.dist)(center, points[2]);
47
+ const radiusQ3 = (0, vector_1.dist)(center, points[3]);
48
+ const radiusMedian = (0, vector_1.dist)(center, points[8]);
49
+ const radiusQ1 = (0, vector_1.dist)(center, points[10]);
50
+ const radiusLow = (0, vector_1.dist)(center, points[11]);
51
+ path.moveTo(...points[0]);
52
+ path.arc(x, y, radiusHigh, startAngle, endAngle);
53
+ path.arc(x, y, radiusHigh, endAngle, startAngle, true);
54
+ path.moveTo(...points[2]);
55
+ path.lineTo(...points[3]);
56
+ path.moveTo(...points[4]);
57
+ path.arc(x, y, radiusQ3, startAngle, endAngle); // 4 -> 5
58
+ path.lineTo(...points[6]); // 5 -> 6
59
+ path.arc(x, y, radiusQ1, endAngle, startAngle, true); // 6 -> 7
60
+ path.closePath();
61
+ path.moveTo(...points[8]);
62
+ path.arc(x, y, radiusMedian, startAngle, endAngle); // 8 -> 9
63
+ path.arc(x, y, radiusMedian, endAngle, startAngle, true); // 9 -> 8
64
+ path.moveTo(...points[10]);
65
+ path.lineTo(...points[11]);
66
+ path.moveTo(...points[12]);
67
+ path.arc(x, y, radiusLow, startAngle, endAngle); // 12 -> 13
68
+ path.arc(x, y, radiusLow, endAngle, startAngle, true); // 13 -> 12
69
+ }
70
+ return path;
71
+ }
72
+ const Box = (options) => {
73
+ const style = __rest(options, []);
74
+ return (points, value, coordinate, theme) => {
75
+ const { defaultColor } = theme;
76
+ const { color = defaultColor, transform } = value;
77
+ const path = getPath(points, coordinate);
78
+ return (0, selection_1.select)(new g_1.Path())
79
+ .style('d', path.toString())
80
+ .style('stroke', color)
81
+ .style('fill', color)
82
+ .style('transform', transform)
83
+ .call(utils_1.applyStyle, style)
84
+ .node();
85
+ };
86
+ };
87
+ exports.Box = Box;
88
+ exports.Box.props = {
89
+ defaultEnterAnimation: 'fadeIn',
90
+ };
91
+ //# sourceMappingURL=box.js.map
@@ -0,0 +1 @@
1
+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C,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW;QAC5D,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW;KACnE;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAEM,MAAM,GAAG,GAAmB,CAAC,OAAO,EAAE,EAAE;IAC7C,MAAW,KAAK,UAAK,OAAO,EAAtB,EAAY,CAAU,CAAC;IAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAC/B,MAAM,EAAE,KAAK,GAAG,YAAY,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAElD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAEzC,OAAO,IAAA,kBAAM,EAAC,IAAI,QAAK,EAAE,CAAC;aACvB,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;aAC3B,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC;aACtB,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;aACpB,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC;aAC7B,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,GAAG,OAgBd;AAEF,WAAG,CAAC,KAAK,GAAG;IACV,qBAAqB,EAAE,QAAQ;CAChC,CAAC"}
@@ -1,48 +1,86 @@
1
- export { Rect, RectOptions } from './interval/rect';
2
- export { HollowRect, HollowRectOptions } from './interval/hollowRect';
3
- export { Funnel, FunnelOptions } from './interval/funnel';
4
- export { Pyramid, PyramidOptions } from './interval/pyramid';
5
- export { Line, LineOptions } from './line/line';
6
- export { Smooth, SmoothOptions } from './line/smooth';
7
- export { HV, HVOptions } from './line/hv';
8
- export { VH, VHOptions } from './line/vh';
9
- export { HVH, HVHOptions } from './line/hvh';
10
- export { Bowtie, BowtieOptions } from './point/bowtie';
11
- export { Cross, CrossOptions } from './point/cross';
12
- export { Diamond, DiamondOptions } from './point/diamond';
13
- export { Hexagon, HexagonOptions } from './point/hexagon';
14
- export { HollowBowtie, HollowBowtieOptions } from './point/hollowBowtie';
15
- export { HollowDiamond, HollowDiamondOptions } from './point/hollowDiamond';
16
- export { HollowHexagon, HollowHexagonOptions } from './point/hollowHexagon';
17
- export { HollowPoint, HollowPointOptions } from './point/hollowPoint';
18
- export { HollowSquare, HollowSquareOptions } from './point/hollowSquare';
19
- export { HollowTriangle, HollowTriangleOptions } from './point/hollowTriangle';
20
- export { HollowTriangleDown, HollowTriangleDownOptions, } from './point/hollowTriangleDown';
21
- export { Hyphen, HyphenOptions } from './point/hyphen';
22
- export { Line as LinePoint, LineOptions as LinePointOptions, } from './point/line';
23
- export { Plus, PlusOptions } from './point/plus';
24
- export { Point, PointOptions } from './point/point';
25
- export { Square, SquareOptions } from './point/square';
26
- export { Tick, TickOptions } from './point/tick';
27
- export { Triangle, TriangleOptions } from './point/triangle';
28
- export { TriangleDown, TriangleDownOptions } from './point/triangleDown';
29
- export { Vector, VectorOptions } from './vector/vector';
30
- export { Text, TextOptions } from './text/text';
31
- export { AnnotationText, AnnotationTextOptions } from './annotation/text';
32
- export { AnnotationBadge, AnnotationBadgeOptions } from './annotation/badge';
33
- export { Area, AreaOptions } from './area/area';
34
- export { SmoothArea, SmoothAreaOptions } from './area/smoothArea';
35
- export { Link, LinkOptions } from './link/link';
36
- export { Image, ImageOptions } from './image/image';
37
- export { Polygon, PolygonOptions } from './polygon/polygon';
38
- export { Box, BoxOptions } from './schema/box';
39
- export { Point as PointNode } from './node/point';
40
- export { Polygon as PolygonNode } from './node/polygon';
41
- export { Edge, EdgeOptions } from './edge/edge';
42
- export { SmoothEdge, SmoothEdgeOptions } from './edge/smoothEdge';
43
- export { VHVEdge, VHVEdgeOptions } from './edge/vhv';
44
- export { Arc, ArcOptions } from './edge/arc';
45
- export { Ribbon, RibbonOptions } from './edge/ribbon';
46
- export { AnnotationLine as AnnotationLine, LineOptions as AnnotationLineOptions, } from './annotation/line';
47
- export { Connector as AnnotationConnector, ConnectorOptions as AnnotationConnectorOptions, } from './annotation/connector';
48
- export { Label, LabelOptions } from './label/label';
1
+ export { Rect } from './interval/rect';
2
+ export { HollowRect } from './interval/hollowRect';
3
+ export { Funnel } from './interval/funnel';
4
+ export { Pyramid } from './interval/pyramid';
5
+ export { Line } from './line/line';
6
+ export { Smooth } from './line/smooth';
7
+ export { HV } from './line/hv';
8
+ export { VH } from './line/vh';
9
+ export { HVH } from './line/hvh';
10
+ export { Bowtie } from './point/bowtie';
11
+ export { Cross } from './point/cross';
12
+ export { Diamond } from './point/diamond';
13
+ export { Hexagon } from './point/hexagon';
14
+ export { HollowBowtie } from './point/hollowBowtie';
15
+ export { HollowDiamond } from './point/hollowDiamond';
16
+ export { HollowHexagon } from './point/hollowHexagon';
17
+ export { HollowPoint } from './point/hollowPoint';
18
+ export { HollowSquare } from './point/hollowSquare';
19
+ export { HollowTriangle } from './point/hollowTriangle';
20
+ export { HollowTriangleDown } from './point/hollowTriangleDown';
21
+ export { Hyphen } from './point/hyphen';
22
+ export { Line as LinePoint } from './point/line';
23
+ export { Plus } from './point/plus';
24
+ export { Point } from './point/point';
25
+ export { Square } from './point/square';
26
+ export { Tick } from './point/tick';
27
+ export { Triangle } from './point/triangle';
28
+ export { TriangleDown } from './point/triangleDown';
29
+ export { Vector } from './vector/vector';
30
+ export { Text } from './text/text';
31
+ export { AnnotationText } from './annotation/text';
32
+ export { AnnotationBadge } from './annotation/badge';
33
+ export { Area } from './area/area';
34
+ export { SmoothArea } from './area/smoothArea';
35
+ export { Link } from './link/link';
36
+ export { SmoothEdge } from './link/smoothEdge';
37
+ export { VHVEdge } from './link/vhv';
38
+ export { Arc } from './link/arc';
39
+ export { Image } from './image/image';
40
+ export { Polygon } from './polygon/polygon';
41
+ export { Ribbon } from './polygon/ribbon';
42
+ export { Box } from './box/box';
43
+ export { AnnotationLine as AnnotationLine } from './annotation/line';
44
+ export { Connector as AnnotationConnector } from './annotation/connector';
45
+ export { Label } from './label/label';
46
+ export type { RectOptions } from './interval/rect';
47
+ export type { HollowRectOptions } from './interval/hollowRect';
48
+ export type { FunnelOptions } from './interval/funnel';
49
+ export type { PyramidOptions } from './interval/pyramid';
50
+ export type { LineOptions } from './line/line';
51
+ export type { SmoothOptions } from './line/smooth';
52
+ export type { HVOptions } from './line/hv';
53
+ export type { VHOptions } from './line/vh';
54
+ export type { HVHOptions } from './line/hvh';
55
+ export type { BowtieOptions } from './point/bowtie';
56
+ export type { CrossOptions } from './point/cross';
57
+ export type { DiamondOptions } from './point/diamond';
58
+ export type { HexagonOptions } from './point/hexagon';
59
+ export type { HollowBowtieOptions } from './point/hollowBowtie';
60
+ export type { HollowDiamondOptions } from './point/hollowDiamond';
61
+ export type { HollowHexagonOptions } from './point/hollowHexagon';
62
+ export type { HollowPointOptions } from './point/hollowPoint';
63
+ export type { HollowSquareOptions } from './point/hollowSquare';
64
+ export type { HollowTriangleOptions } from './point/hollowTriangle';
65
+ export type { HollowTriangleDownOptions } from './point/hollowTriangleDown';
66
+ export type { HyphenOptions } from './point/hyphen';
67
+ export type { LineOptions as LinePointOptions } from './point/line';
68
+ export type { PlusOptions } from './point/plus';
69
+ export type { PointOptions } from './point/point';
70
+ export type { SquareOptions } from './point/square';
71
+ export type { TickOptions } from './point/tick';
72
+ export type { TriangleOptions } from './point/triangle';
73
+ export type { TriangleDownOptions } from './point/triangleDown';
74
+ export type { VectorOptions } from './vector/vector';
75
+ export type { TextOptions } from './text/text';
76
+ export type { AnnotationTextOptions } from './annotation/text';
77
+ export type { AnnotationBadgeOptions } from './annotation/badge';
78
+ export type { AreaOptions } from './area/area';
79
+ export type { SmoothAreaOptions } from './area/smoothArea';
80
+ export type { LinkOptions } from './link/link';
81
+ export type { ImageOptions } from './image/image';
82
+ export type { PolygonOptions } from './polygon/polygon';
83
+ export type { BoxOptions } from './box/box';
84
+ export type { LineOptions as AnnotationLineOptions } from './annotation/line';
85
+ export type { ConnectorOptions as AnnotationConnectorOptions } from './annotation/connector';
86
+ export type { LabelOptions } from './label/label';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Label = exports.AnnotationConnector = exports.AnnotationLine = exports.Ribbon = exports.Arc = exports.VHVEdge = exports.SmoothEdge = exports.Edge = exports.PolygonNode = exports.PointNode = exports.Box = exports.Polygon = exports.Image = exports.Link = exports.SmoothArea = exports.Area = exports.AnnotationBadge = exports.AnnotationText = exports.Text = exports.Vector = exports.TriangleDown = exports.Triangle = exports.Tick = exports.Square = exports.Point = exports.Plus = exports.LinePoint = exports.Hyphen = exports.HollowTriangleDown = exports.HollowTriangle = exports.HollowSquare = exports.HollowPoint = exports.HollowHexagon = exports.HollowDiamond = exports.HollowBowtie = exports.Hexagon = exports.Diamond = exports.Cross = exports.Bowtie = exports.HVH = exports.VH = exports.HV = exports.Smooth = exports.Line = exports.Pyramid = exports.Funnel = exports.HollowRect = exports.Rect = void 0;
3
+ exports.Label = exports.AnnotationConnector = exports.AnnotationLine = exports.Box = exports.Ribbon = exports.Polygon = exports.Image = exports.Arc = exports.VHVEdge = exports.SmoothEdge = exports.Link = exports.SmoothArea = exports.Area = exports.AnnotationBadge = exports.AnnotationText = exports.Text = exports.Vector = exports.TriangleDown = exports.Triangle = exports.Tick = exports.Square = exports.Point = exports.Plus = exports.LinePoint = exports.Hyphen = exports.HollowTriangleDown = exports.HollowTriangle = exports.HollowSquare = exports.HollowPoint = exports.HollowHexagon = exports.HollowDiamond = exports.HollowBowtie = exports.Hexagon = exports.Diamond = exports.Cross = exports.Bowtie = exports.HVH = exports.VH = exports.HV = exports.Smooth = exports.Line = exports.Pyramid = exports.Funnel = exports.HollowRect = exports.Rect = void 0;
4
4
  var rect_1 = require("./interval/rect");
5
5
  Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } });
6
6
  var hollowRect_1 = require("./interval/hollowRect");
@@ -71,27 +71,21 @@ var smoothArea_1 = require("./area/smoothArea");
71
71
  Object.defineProperty(exports, "SmoothArea", { enumerable: true, get: function () { return smoothArea_1.SmoothArea; } });
72
72
  var link_1 = require("./link/link");
73
73
  Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return link_1.Link; } });
74
+ var smoothEdge_1 = require("./link/smoothEdge");
75
+ Object.defineProperty(exports, "SmoothEdge", { enumerable: true, get: function () { return smoothEdge_1.SmoothEdge; } });
76
+ var vhv_1 = require("./link/vhv");
77
+ Object.defineProperty(exports, "VHVEdge", { enumerable: true, get: function () { return vhv_1.VHVEdge; } });
78
+ var arc_1 = require("./link/arc");
79
+ Object.defineProperty(exports, "Arc", { enumerable: true, get: function () { return arc_1.Arc; } });
74
80
  var image_1 = require("./image/image");
75
81
  Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return image_1.Image; } });
76
82
  var polygon_1 = require("./polygon/polygon");
77
83
  Object.defineProperty(exports, "Polygon", { enumerable: true, get: function () { return polygon_1.Polygon; } });
78
- var box_1 = require("./schema/box");
84
+ var ribbon_1 = require("./polygon/ribbon");
85
+ Object.defineProperty(exports, "Ribbon", { enumerable: true, get: function () { return ribbon_1.Ribbon; } });
86
+ var box_1 = require("./box/box");
79
87
  Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return box_1.Box; } });
80
88
  // For relation diagram (node and edge).
81
- var point_2 = require("./node/point");
82
- Object.defineProperty(exports, "PointNode", { enumerable: true, get: function () { return point_2.Point; } });
83
- var polygon_2 = require("./node/polygon");
84
- Object.defineProperty(exports, "PolygonNode", { enumerable: true, get: function () { return polygon_2.Polygon; } });
85
- var edge_1 = require("./edge/edge");
86
- Object.defineProperty(exports, "Edge", { enumerable: true, get: function () { return edge_1.Edge; } });
87
- var smoothEdge_1 = require("./edge/smoothEdge");
88
- Object.defineProperty(exports, "SmoothEdge", { enumerable: true, get: function () { return smoothEdge_1.SmoothEdge; } });
89
- var vhv_1 = require("./edge/vhv");
90
- Object.defineProperty(exports, "VHVEdge", { enumerable: true, get: function () { return vhv_1.VHVEdge; } });
91
- var arc_1 = require("./edge/arc");
92
- Object.defineProperty(exports, "Arc", { enumerable: true, get: function () { return arc_1.Arc; } });
93
- var ribbon_1 = require("./edge/ribbon");
94
- Object.defineProperty(exports, "Ribbon", { enumerable: true, get: function () { return ribbon_1.Ribbon; } });
95
89
  var line_3 = require("./annotation/line");
96
90
  Object.defineProperty(exports, "AnnotationLine", { enumerable: true, get: function () { return line_3.AnnotationLine; } });
97
91
  var connector_1 = require("./annotation/connector");