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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1891) hide show
  1. package/dist/g2-lite.min.js +7 -0
  2. package/dist/g2.min.js +2 -5
  3. package/esm/animation/index.d.ts +18 -7
  4. package/esm/animation/index.js +3 -0
  5. package/esm/animation/index.js.map +1 -1
  6. package/esm/animation/morphing.js +3 -24
  7. package/esm/animation/morphing.js.map +1 -1
  8. package/esm/animation/scaleInX.js +3 -0
  9. package/esm/animation/scaleInX.js.map +1 -1
  10. package/esm/animation/scaleInY.js +3 -0
  11. package/esm/animation/scaleInY.js.map +1 -1
  12. package/esm/animation/utils.d.ts +3 -0
  13. package/esm/animation/utils.js +20 -0
  14. package/esm/animation/utils.js.map +1 -1
  15. package/esm/animation/waveIn.d.ts +7 -0
  16. package/esm/animation/waveIn.js +62 -0
  17. package/esm/animation/waveIn.js.map +1 -0
  18. package/esm/animation/zoomIn.d.ts +4 -0
  19. package/esm/animation/zoomIn.js +39 -0
  20. package/esm/animation/zoomIn.js.map +1 -0
  21. package/esm/animation/zoomOut.d.ts +4 -0
  22. package/esm/animation/zoomOut.js +34 -0
  23. package/esm/animation/zoomOut.js.map +1 -0
  24. package/esm/api/chart.d.ts +13 -0
  25. package/esm/api/chart.js +70 -6
  26. package/esm/api/chart.js.map +1 -1
  27. package/esm/api/composition/facetCircle.d.ts +21 -0
  28. package/esm/api/composition/facetCircle.js +30 -0
  29. package/esm/api/composition/facetCircle.js.map +1 -0
  30. package/esm/api/composition/facetRect.d.ts +23 -0
  31. package/esm/api/composition/facetRect.js +32 -0
  32. package/esm/api/composition/facetRect.js.map +1 -0
  33. package/esm/api/composition/index.d.ts +19 -19
  34. package/esm/api/composition/index.js +13 -13
  35. package/esm/api/composition/index.js.map +1 -1
  36. package/esm/api/composition/repeatMatrix.d.ts +21 -0
  37. package/esm/api/composition/repeatMatrix.js +30 -0
  38. package/esm/api/composition/repeatMatrix.js.map +1 -0
  39. package/esm/api/composition/spaceFlex.d.ts +17 -0
  40. package/esm/api/composition/spaceFlex.js +26 -0
  41. package/esm/api/composition/spaceFlex.js.map +1 -0
  42. package/esm/api/composition/spaceLayer.d.ts +14 -0
  43. package/esm/api/composition/spaceLayer.js +23 -0
  44. package/esm/api/composition/spaceLayer.js.map +1 -0
  45. package/esm/api/composition/timingKeyframe.d.ts +17 -0
  46. package/esm/api/composition/timingKeyframe.js +26 -0
  47. package/esm/api/composition/timingKeyframe.js.map +1 -0
  48. package/esm/api/mark/index.d.ts +19 -19
  49. package/esm/api/mark/index.js +10 -10
  50. package/esm/api/mark/index.js.map +1 -1
  51. package/esm/api/mark/mark.d.ts +26 -26
  52. package/esm/api/mark/mark.js +52 -49
  53. package/esm/api/mark/mark.js.map +1 -1
  54. package/esm/api/mark/types.d.ts +3 -0
  55. package/esm/api/node.d.ts +11 -5
  56. package/esm/api/node.js +61 -8
  57. package/esm/api/node.js.map +1 -1
  58. package/esm/api/props.d.ts +2 -1
  59. package/esm/api/props.js +39 -18
  60. package/esm/api/props.js.map +1 -1
  61. package/esm/api/types.d.ts +1 -1
  62. package/esm/component/axis.d.ts +8 -2
  63. package/esm/component/axis.js +172 -97
  64. package/esm/component/axis.js.map +1 -1
  65. package/esm/component/index.d.ts +10 -5
  66. package/esm/component/index.js.map +1 -1
  67. package/esm/component/legendCategory.d.ts +5 -1
  68. package/esm/component/legendCategory.js +7 -10
  69. package/esm/component/legendCategory.js.map +1 -1
  70. package/esm/component/legendContinuous.d.ts +1 -0
  71. package/esm/component/legendContinuous.js +4 -3
  72. package/esm/component/legendContinuous.js.map +1 -1
  73. package/esm/composition/facetCircle.d.ts +7 -0
  74. package/esm/composition/facetCircle.js +85 -0
  75. package/esm/composition/facetCircle.js.map +1 -0
  76. package/esm/composition/facetRect.d.ts +31 -0
  77. package/esm/composition/facetRect.js +306 -0
  78. package/esm/composition/facetRect.js.map +1 -0
  79. package/esm/composition/index.d.ts +16 -8
  80. package/esm/composition/index.js +6 -6
  81. package/esm/composition/index.js.map +1 -1
  82. package/esm/composition/mark.js +13 -2
  83. package/esm/composition/mark.js.map +1 -1
  84. package/esm/composition/repeatMatrix.d.ts +8 -0
  85. package/esm/composition/repeatMatrix.js +149 -0
  86. package/esm/composition/repeatMatrix.js.map +1 -0
  87. package/esm/composition/spaceFlex.d.ts +7 -0
  88. package/esm/composition/spaceFlex.js +40 -0
  89. package/esm/composition/spaceFlex.js.map +1 -0
  90. package/esm/composition/spaceLayer.d.ts +7 -0
  91. package/esm/composition/spaceLayer.js +32 -0
  92. package/esm/composition/spaceLayer.js.map +1 -0
  93. package/esm/composition/timingKeyframe.d.ts +7 -0
  94. package/esm/composition/timingKeyframe.js +75 -0
  95. package/esm/composition/timingKeyframe.js.map +1 -0
  96. package/esm/composition/view.js +3 -3
  97. package/esm/composition/view.js.map +1 -1
  98. package/esm/coordinate/index.d.ts +26 -12
  99. package/esm/coordinate/index.js +1 -0
  100. package/esm/coordinate/index.js.map +1 -1
  101. package/esm/coordinate/radial.d.ts +7 -0
  102. package/esm/coordinate/radial.js +12 -0
  103. package/esm/coordinate/radial.js.map +1 -0
  104. package/esm/data/arc.d.ts +7 -0
  105. package/esm/data/arc.js +10 -18
  106. package/esm/data/arc.js.map +1 -1
  107. package/esm/data/cluster.d.ts +8 -0
  108. package/esm/data/cluster.js +36 -46
  109. package/esm/data/cluster.js.map +1 -1
  110. package/esm/data/custom.d.ts +7 -0
  111. package/esm/data/custom.js +10 -0
  112. package/esm/data/custom.js.map +1 -0
  113. package/esm/data/fetch.js +7 -6
  114. package/esm/data/fetch.js.map +1 -1
  115. package/esm/data/filterBy.js +6 -2
  116. package/esm/data/filterBy.js.map +1 -1
  117. package/esm/data/index.d.ts +30 -9
  118. package/esm/data/index.js +7 -1
  119. package/esm/data/index.js.map +1 -1
  120. package/esm/data/map.d.ts +7 -0
  121. package/esm/data/map.js +10 -0
  122. package/esm/data/map.js.map +1 -0
  123. package/esm/data/sankey.d.ts +8 -0
  124. package/esm/data/sankey.js +76 -95
  125. package/esm/data/sankey.js.map +1 -1
  126. package/esm/data/sortBy.js +14 -4
  127. package/esm/data/sortBy.js.map +1 -1
  128. package/esm/data/tree.d.ts +4 -0
  129. package/esm/data/tree.js +6 -9
  130. package/esm/data/tree.js.map +1 -1
  131. package/esm/data/utils/arc/index.d.ts +1 -1
  132. package/esm/data/utils/fields.d.ts +6 -0
  133. package/esm/data/utils/fields.js +15 -0
  134. package/esm/data/utils/fields.js.map +1 -0
  135. package/esm/data/voronoi.d.ts +1 -0
  136. package/esm/data/voronoi.js +1 -22
  137. package/esm/data/voronoi.js.map +1 -1
  138. package/esm/data/wordCloud.d.ts +6 -0
  139. package/esm/data/wordCloud.js +102 -99
  140. package/esm/data/wordCloud.js.map +1 -1
  141. package/esm/encode/index.d.ts +8 -4
  142. package/esm/encode/index.js.map +1 -1
  143. package/esm/interaction/action/index.d.ts +42 -21
  144. package/esm/interaction/action/index.js +8 -8
  145. package/esm/interaction/action/index.js.map +1 -1
  146. package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -1
  147. package/esm/interaction/builtin/activeRegion.js.map +1 -1
  148. package/esm/interaction/builtin/brush.js.map +1 -1
  149. package/esm/interaction/builtin/brushHighlight.js.map +1 -1
  150. package/esm/interaction/builtin/brushVisible.js.map +1 -1
  151. package/esm/interaction/builtin/elementActive.d.ts +0 -2
  152. package/esm/interaction/builtin/elementActive.js.map +1 -1
  153. package/esm/interaction/builtin/elementHighlight.d.ts +0 -2
  154. package/esm/interaction/builtin/elementHighlight.js.map +1 -1
  155. package/esm/interaction/builtin/elementHighlightByColor.d.ts +0 -2
  156. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -1
  157. package/esm/interaction/builtin/elementHighlightByX.d.ts +0 -2
  158. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -1
  159. package/esm/interaction/builtin/elementListHighlight.js.map +1 -1
  160. package/esm/interaction/builtin/elementSelected.d.ts +1 -3
  161. package/esm/interaction/builtin/elementSelected.js.map +1 -1
  162. package/esm/interaction/builtin/ellipsisText.js.map +1 -1
  163. package/esm/interaction/builtin/fisheye.d.ts +6 -0
  164. package/esm/interaction/builtin/fisheye.js.map +1 -1
  165. package/esm/interaction/builtin/legendActive.js.map +1 -1
  166. package/esm/interaction/builtin/legendHighlight.js.map +1 -1
  167. package/esm/interaction/builtin/tooltip.d.ts +2 -2
  168. package/esm/interaction/builtin/tooltip.js.map +1 -1
  169. package/esm/interaction/index.d.ts +8 -18
  170. package/esm/interaction/index.js +40 -18
  171. package/esm/interaction/index.js.map +1 -1
  172. package/esm/interaction/interactor/index.d.ts +4 -2
  173. package/esm/interaction/interactor/index.js.map +1 -1
  174. package/esm/interaction/native/chartIndex.d.ts +4 -0
  175. package/esm/interaction/native/chartIndex.js +168 -0
  176. package/esm/interaction/native/chartIndex.js.map +1 -0
  177. package/esm/interaction/native/elementActive.d.ts +10 -0
  178. package/esm/interaction/native/elementActive.js +69 -0
  179. package/esm/interaction/native/elementActive.js.map +1 -0
  180. package/esm/interaction/native/elementActiveByColor.d.ts +4 -0
  181. package/esm/interaction/native/elementActiveByColor.js +12 -0
  182. package/esm/interaction/native/elementActiveByColor.js.map +1 -0
  183. package/esm/interaction/native/elementActiveByX.d.ts +8 -0
  184. package/esm/interaction/native/elementActiveByX.js +13 -0
  185. package/esm/interaction/native/elementActiveByX.js.map +1 -0
  186. package/esm/interaction/native/elementSelect.d.ts +11 -0
  187. package/esm/interaction/native/elementSelect.js +111 -0
  188. package/esm/interaction/native/elementSelect.js.map +1 -0
  189. package/esm/interaction/native/elementSelectByColor.d.ts +1 -0
  190. package/esm/interaction/native/elementSelectByColor.js +9 -0
  191. package/esm/interaction/native/elementSelectByColor.js.map +1 -0
  192. package/esm/interaction/native/elementSelectByX.d.ts +1 -0
  193. package/esm/interaction/native/elementSelectByX.js +9 -0
  194. package/esm/interaction/native/elementSelectByX.js.map +1 -0
  195. package/esm/interaction/native/fisheye.d.ts +4 -0
  196. package/esm/interaction/native/fisheye.js +44 -0
  197. package/esm/interaction/native/fisheye.js.map +1 -0
  198. package/esm/interaction/native/utils.d.ts +28 -0
  199. package/esm/interaction/native/utils.js +173 -0
  200. package/esm/interaction/native/utils.js.map +1 -0
  201. package/esm/label-transform/dodgeY.d.ts +7 -0
  202. package/esm/label-transform/dodgeY.js +67 -0
  203. package/esm/label-transform/dodgeY.js.map +1 -0
  204. package/esm/label-transform/hideOverlap.d.ts +4 -0
  205. package/esm/{labelLayout → label-transform}/hideOverlap.js +0 -0
  206. package/esm/label-transform/hideOverlap.js.map +1 -0
  207. package/esm/label-transform/index.d.ts +4 -0
  208. package/esm/label-transform/index.js +3 -0
  209. package/esm/label-transform/index.js.map +1 -0
  210. package/esm/mark/area.d.ts +4 -0
  211. package/esm/mark/area.js +71 -0
  212. package/esm/mark/area.js.map +1 -0
  213. package/esm/mark/box.d.ts +34 -0
  214. package/esm/mark/box.js +90 -0
  215. package/esm/mark/box.js.map +1 -0
  216. package/esm/mark/cell.d.ts +9 -0
  217. package/esm/mark/cell.js +47 -0
  218. package/esm/mark/cell.js.map +1 -0
  219. package/esm/mark/connector.d.ts +4 -0
  220. package/esm/mark/connector.js +18 -0
  221. package/esm/mark/connector.js.map +1 -0
  222. package/esm/mark/image.d.ts +4 -0
  223. package/esm/mark/image.js +31 -0
  224. package/esm/mark/image.js.map +1 -0
  225. package/esm/mark/index.d.ts +36 -0
  226. package/esm/mark/index.js +19 -0
  227. package/esm/mark/index.js.map +1 -0
  228. package/esm/mark/interval.d.ts +12 -0
  229. package/esm/mark/interval.js +71 -0
  230. package/esm/mark/interval.js.map +1 -0
  231. package/esm/mark/line.d.ts +7 -0
  232. package/esm/mark/line.js +80 -0
  233. package/esm/mark/line.js.map +1 -0
  234. package/esm/mark/lineX.d.ts +4 -0
  235. package/esm/mark/lineX.js +21 -0
  236. package/esm/mark/lineX.js.map +1 -0
  237. package/esm/mark/lineY.d.ts +4 -0
  238. package/esm/mark/lineY.js +21 -0
  239. package/esm/mark/lineY.js.map +1 -0
  240. package/esm/mark/link.d.ts +7 -0
  241. package/esm/mark/link.js +36 -0
  242. package/esm/mark/link.js.map +1 -0
  243. package/esm/mark/point.d.ts +9 -0
  244. package/esm/mark/point.js +79 -0
  245. package/esm/mark/point.js.map +1 -0
  246. package/esm/mark/polygon.d.ts +7 -0
  247. package/esm/mark/polygon.js +43 -0
  248. package/esm/mark/polygon.js.map +1 -0
  249. package/esm/mark/range.d.ts +8 -0
  250. package/esm/mark/range.js +44 -0
  251. package/esm/mark/range.js.map +1 -0
  252. package/esm/mark/rangeX.d.ts +4 -0
  253. package/esm/mark/rangeX.js +14 -0
  254. package/esm/mark/rangeX.js.map +1 -0
  255. package/esm/mark/rangeY.d.ts +4 -0
  256. package/esm/mark/rangeY.js +14 -0
  257. package/esm/mark/rangeY.js.map +1 -0
  258. package/esm/mark/rect.d.ts +4 -0
  259. package/esm/mark/rect.js +31 -0
  260. package/esm/mark/rect.js.map +1 -0
  261. package/esm/mark/text.d.ts +4 -0
  262. package/esm/mark/text.js +32 -0
  263. package/esm/mark/text.js.map +1 -0
  264. package/esm/mark/utils.d.ts +5 -0
  265. package/esm/mark/utils.js +18 -0
  266. package/esm/mark/utils.js.map +1 -1
  267. package/esm/mark/vector.d.ts +8 -0
  268. package/esm/mark/vector.js +43 -0
  269. package/esm/mark/vector.js.map +1 -0
  270. package/esm/palette/divergingGreenRed.d.ts +7 -0
  271. package/esm/palette/divergingGreenRed.js +26 -0
  272. package/esm/palette/divergingGreenRed.js.map +1 -0
  273. package/esm/palette/divergingGreenYellow.d.ts +7 -0
  274. package/esm/palette/divergingGreenYellow.js +26 -0
  275. package/esm/palette/divergingGreenYellow.js.map +1 -0
  276. package/esm/palette/divergingRedBlue.d.ts +7 -0
  277. package/esm/palette/divergingRedBlue.js +26 -0
  278. package/esm/palette/divergingRedBlue.js.map +1 -0
  279. package/esm/palette/divergingRedPurple.d.ts +7 -0
  280. package/esm/palette/divergingRedPurple.js +26 -0
  281. package/esm/palette/divergingRedPurple.js.map +1 -0
  282. package/esm/palette/index.d.ts +40 -2
  283. package/esm/palette/index.js +18 -0
  284. package/esm/palette/index.js.map +1 -1
  285. package/esm/palette/sequentialBlue.d.ts +7 -0
  286. package/esm/palette/sequentialBlue.js +18 -0
  287. package/esm/palette/sequentialBlue.js.map +1 -0
  288. package/esm/palette/sequentialDarkBlue.d.ts +7 -0
  289. package/esm/palette/sequentialDarkBlue.js +18 -0
  290. package/esm/palette/sequentialDarkBlue.js.map +1 -0
  291. package/esm/palette/sequentialDarkGreen.d.ts +7 -0
  292. package/esm/palette/sequentialDarkGreen.js +18 -0
  293. package/esm/palette/sequentialDarkGreen.js.map +1 -0
  294. package/esm/palette/sequentialGreen.d.ts +7 -0
  295. package/esm/palette/sequentialGreen.js +18 -0
  296. package/esm/palette/sequentialGreen.js.map +1 -0
  297. package/esm/palette/sequentialGreenBlue.d.ts +7 -0
  298. package/esm/palette/sequentialGreenBlue.js +18 -0
  299. package/esm/palette/sequentialGreenBlue.js.map +1 -0
  300. package/esm/palette/sequentialGrey.d.ts +7 -0
  301. package/esm/palette/sequentialGrey.js +18 -0
  302. package/esm/palette/sequentialGrey.js.map +1 -0
  303. package/esm/palette/sequentialOrange.d.ts +7 -0
  304. package/esm/palette/sequentialOrange.js +18 -0
  305. package/esm/palette/sequentialOrange.js.map +1 -0
  306. package/esm/palette/sequentialPink.d.ts +7 -0
  307. package/esm/palette/sequentialPink.js +18 -0
  308. package/esm/palette/sequentialPink.js.map +1 -0
  309. package/esm/palette/sequentialPinkPurple.d.ts +7 -0
  310. package/esm/palette/sequentialPinkPurple.js +18 -0
  311. package/esm/palette/sequentialPinkPurple.js.map +1 -0
  312. package/esm/palette/sequentialPurple.d.ts +7 -0
  313. package/esm/palette/sequentialPurple.js +18 -0
  314. package/esm/palette/sequentialPurple.js.map +1 -0
  315. package/esm/palette/sequentialRed.d.ts +7 -0
  316. package/esm/palette/sequentialRed.js +18 -0
  317. package/esm/palette/sequentialRed.js.map +1 -0
  318. package/esm/palette/sequentialYellow.d.ts +7 -0
  319. package/esm/palette/sequentialYellow.js +18 -0
  320. package/esm/palette/sequentialYellow.js.map +1 -0
  321. package/esm/palette/sequentialYellowGreen.d.ts +7 -0
  322. package/esm/palette/sequentialYellowGreen.js +18 -0
  323. package/esm/palette/sequentialYellowGreen.js.map +1 -0
  324. package/esm/palette/sequentialYellowOrange.d.ts +7 -0
  325. package/esm/palette/sequentialYellowOrange.js +18 -0
  326. package/esm/palette/sequentialYellowOrange.js.map +1 -0
  327. package/esm/runtime/component.d.ts +1 -1
  328. package/esm/runtime/component.js +36 -7
  329. package/esm/runtime/component.js.map +1 -1
  330. package/esm/runtime/constant.d.ts +8 -0
  331. package/esm/runtime/constant.js +9 -0
  332. package/esm/runtime/constant.js.map +1 -0
  333. package/esm/runtime/coordinate.d.ts +1 -0
  334. package/esm/runtime/coordinate.js +6 -8
  335. package/esm/runtime/coordinate.js.map +1 -1
  336. package/esm/runtime/index.d.ts +2 -1
  337. package/esm/runtime/index.js +2 -1
  338. package/esm/runtime/index.js.map +1 -1
  339. package/esm/runtime/layout.js +107 -17
  340. package/esm/runtime/layout.js.map +1 -1
  341. package/esm/runtime/mark.js +6 -4
  342. package/esm/runtime/mark.js.map +1 -1
  343. package/esm/runtime/plot.d.ts +2 -0
  344. package/esm/runtime/plot.js +276 -118
  345. package/esm/runtime/plot.js.map +1 -1
  346. package/esm/runtime/render.d.ts +11 -0
  347. package/esm/runtime/render.js +80 -10
  348. package/esm/runtime/render.js.map +1 -1
  349. package/esm/runtime/scale.d.ts +1 -0
  350. package/esm/runtime/scale.js +151 -26
  351. package/esm/runtime/scale.js.map +1 -1
  352. package/esm/runtime/transform.d.ts +1 -0
  353. package/esm/runtime/transform.js +30 -0
  354. package/esm/runtime/transform.js.map +1 -1
  355. package/esm/runtime/types/common.d.ts +16 -39
  356. package/esm/runtime/types/component.d.ts +7 -8
  357. package/esm/runtime/types/options.d.ts +23 -4
  358. package/esm/runtime/types/theme.d.ts +64 -0
  359. package/esm/runtime/types/theme.js +2 -0
  360. package/esm/runtime/types/theme.js.map +1 -0
  361. package/esm/scale/index.d.ts +26 -11
  362. package/esm/scale/index.js +2 -0
  363. package/esm/scale/index.js.map +1 -1
  364. package/esm/scale/sequential.d.ts +4 -0
  365. package/esm/scale/sequential.js +6 -0
  366. package/esm/scale/sequential.js.map +1 -0
  367. package/esm/scale/sqrt.d.ts +4 -0
  368. package/esm/scale/sqrt.js +6 -0
  369. package/esm/scale/sqrt.js.map +1 -0
  370. package/esm/shape/area/area.js +3 -3
  371. package/esm/shape/area/area.js.map +1 -1
  372. package/esm/shape/area/curve.d.ts +8 -0
  373. package/esm/shape/area/curve.js +165 -0
  374. package/esm/shape/area/curve.js.map +1 -0
  375. package/esm/shape/area/smooth.d.ts +5 -0
  376. package/esm/shape/area/smooth.js +23 -0
  377. package/esm/shape/area/smooth.js.map +1 -0
  378. package/esm/shape/area/step.d.ts +3 -0
  379. package/esm/shape/area/step.js +9 -0
  380. package/esm/shape/area/step.js.map +1 -0
  381. package/esm/shape/{schema → box}/box.d.ts +0 -0
  382. package/esm/shape/box/box.js +88 -0
  383. package/esm/shape/box/box.js.map +1 -0
  384. package/esm/shape/connector/connector.d.ts +17 -0
  385. package/esm/shape/connector/connector.js +106 -0
  386. package/esm/shape/connector/connector.js.map +1 -0
  387. package/esm/shape/createElement.d.ts +5 -0
  388. package/esm/shape/createElement.js +16 -0
  389. package/esm/shape/createElement.js.map +1 -0
  390. package/esm/shape/image/image.js +5 -3
  391. package/esm/shape/image/image.js.map +1 -1
  392. package/esm/shape/index.d.ts +86 -48
  393. package/esm/shape/index.js +14 -18
  394. package/esm/shape/index.js.map +1 -1
  395. package/esm/shape/interval/color.d.ts +12 -0
  396. package/esm/shape/interval/color.js +88 -0
  397. package/esm/shape/interval/color.js.map +1 -0
  398. package/esm/shape/interval/funnel.js +2 -2
  399. package/esm/shape/interval/funnel.js.map +1 -1
  400. package/esm/shape/interval/hollow.d.ts +6 -0
  401. package/esm/shape/interval/hollow.js +9 -0
  402. package/esm/shape/interval/hollow.js.map +1 -0
  403. package/esm/shape/interval/rect.js +3 -3
  404. package/esm/shape/interval/rect.js.map +1 -1
  405. package/esm/shape/label/label.js +22 -72
  406. package/esm/shape/label/label.js.map +1 -1
  407. package/esm/shape/label/position.d.ts +25 -0
  408. package/esm/shape/label/position.js +128 -0
  409. package/esm/shape/label/position.js.map +1 -0
  410. package/esm/shape/line/curve.d.ts +8 -0
  411. package/esm/shape/line/curve.js +117 -0
  412. package/esm/shape/line/curve.js.map +1 -0
  413. package/esm/shape/line/hv.js +3 -3
  414. package/esm/shape/line/hv.js.map +1 -1
  415. package/esm/shape/line/hvh.js +3 -3
  416. package/esm/shape/line/hvh.js.map +1 -1
  417. package/esm/shape/line/line.js +3 -3
  418. package/esm/shape/line/line.js.map +1 -1
  419. package/esm/shape/line/smooth.js +3 -3
  420. package/esm/shape/line/smooth.js.map +1 -1
  421. package/esm/shape/line/vh.js +3 -3
  422. package/esm/shape/line/vh.js.map +1 -1
  423. package/esm/shape/lineXY/line.d.ts +3 -0
  424. package/esm/shape/lineXY/line.js +58 -0
  425. package/esm/shape/lineXY/line.js.map +1 -0
  426. package/esm/shape/{edge → link}/arc.d.ts +0 -0
  427. package/esm/shape/link/arc.js +53 -0
  428. package/esm/shape/link/arc.js.map +1 -0
  429. package/esm/shape/link/link.js +5 -3
  430. package/esm/shape/link/link.js.map +1 -1
  431. package/esm/shape/link/smooth.d.ts +6 -0
  432. package/esm/shape/link/smooth.js +41 -0
  433. package/esm/shape/link/smooth.js.map +1 -0
  434. package/esm/shape/link/vhv.d.ts +12 -0
  435. package/esm/shape/link/vhv.js +71 -0
  436. package/esm/shape/link/vhv.js.map +1 -0
  437. package/esm/shape/point/bowtie.js +3 -3
  438. package/esm/shape/point/bowtie.js.map +1 -1
  439. package/esm/shape/point/color.d.ts +11 -0
  440. package/esm/shape/point/color.js +66 -0
  441. package/esm/shape/point/color.js.map +1 -0
  442. package/esm/shape/point/cross.js +3 -3
  443. package/esm/shape/point/cross.js.map +1 -1
  444. package/esm/shape/point/diamond.js +3 -3
  445. package/esm/shape/point/diamond.js.map +1 -1
  446. package/esm/shape/point/hexagon.js +3 -3
  447. package/esm/shape/point/hexagon.js.map +1 -1
  448. package/esm/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
  449. package/esm/shape/point/hollow.js +9 -0
  450. package/esm/shape/point/hollow.js.map +1 -0
  451. package/esm/shape/point/hollowBowtie.js +3 -3
  452. package/esm/shape/point/hollowBowtie.js.map +1 -1
  453. package/esm/shape/point/hollowDiamond.js +3 -3
  454. package/esm/shape/point/hollowDiamond.js.map +1 -1
  455. package/esm/shape/point/hollowHexagon.js +3 -3
  456. package/esm/shape/point/hollowHexagon.js.map +1 -1
  457. package/esm/shape/point/hollowSquare.js +3 -3
  458. package/esm/shape/point/hollowSquare.js.map +1 -1
  459. package/esm/shape/point/hollowTriangle.js +3 -3
  460. package/esm/shape/point/hollowTriangle.js.map +1 -1
  461. package/esm/shape/point/hollowTriangleDown.js +3 -3
  462. package/esm/shape/point/hollowTriangleDown.js.map +1 -1
  463. package/esm/shape/point/hyphen.js +3 -3
  464. package/esm/shape/point/hyphen.js.map +1 -1
  465. package/esm/shape/point/line.js +3 -3
  466. package/esm/shape/point/line.js.map +1 -1
  467. package/esm/shape/point/plus.js +3 -3
  468. package/esm/shape/point/plus.js.map +1 -1
  469. package/esm/shape/point/point.js +3 -3
  470. package/esm/shape/point/point.js.map +1 -1
  471. package/esm/shape/point/square.js +3 -3
  472. package/esm/shape/point/square.js.map +1 -1
  473. package/esm/shape/point/symbol.js +3 -2
  474. package/esm/shape/point/symbol.js.map +1 -1
  475. package/esm/shape/point/tick.js +3 -3
  476. package/esm/shape/point/tick.js.map +1 -1
  477. package/esm/shape/point/triangle.js +3 -3
  478. package/esm/shape/point/triangle.js.map +1 -1
  479. package/esm/shape/point/triangleDown.js +3 -3
  480. package/esm/shape/point/triangleDown.js.map +1 -1
  481. package/esm/shape/polygon/polygon.js +6 -5
  482. package/esm/shape/polygon/polygon.js.map +1 -1
  483. package/esm/shape/{edge → polygon}/ribbon.d.ts +0 -0
  484. package/esm/shape/polygon/ribbon.js +70 -0
  485. package/esm/shape/polygon/ribbon.js.map +1 -0
  486. package/esm/shape/text/badge.d.ts +11 -0
  487. package/esm/shape/text/badge.js +98 -0
  488. package/esm/shape/text/badge.js.map +1 -0
  489. package/esm/shape/text/text.d.ts +15 -1
  490. package/esm/shape/text/text.js +145 -10
  491. package/esm/shape/text/text.js.map +1 -1
  492. package/esm/shape/utils.d.ts +9 -2
  493. package/esm/shape/utils.js +41 -11
  494. package/esm/shape/utils.js.map +1 -1
  495. package/esm/shape/vector/vector.js +6 -5
  496. package/esm/shape/vector/vector.js.map +1 -1
  497. package/esm/spec/animate.d.ts +1 -1
  498. package/esm/spec/composition.d.ts +41 -15
  499. package/esm/spec/coordinate.d.ts +9 -2
  500. package/esm/spec/data.d.ts +145 -8
  501. package/esm/spec/geometry.d.ts +42 -12
  502. package/esm/spec/index.d.ts +1 -1
  503. package/esm/spec/index.js +1 -1
  504. package/esm/spec/index.js.map +1 -1
  505. package/esm/spec/interaction.d.ts +33 -21
  506. package/esm/spec/labelTransform.d.ts +10 -0
  507. package/esm/spec/labelTransform.js +2 -0
  508. package/esm/spec/labelTransform.js.map +1 -0
  509. package/esm/spec/palette.d.ts +54 -0
  510. package/esm/spec/scale.d.ts +12 -5
  511. package/esm/spec/transform.d.ts +60 -10
  512. package/esm/spec/transform.js +0 -133
  513. package/esm/spec/transform.js.map +1 -1
  514. package/esm/stdlib/index.js +166 -106
  515. package/esm/stdlib/index.js.map +1 -1
  516. package/esm/theme/dark.d.ts +6 -0
  517. package/esm/theme/dark.js +246 -0
  518. package/esm/theme/dark.js.map +1 -0
  519. package/esm/theme/index.d.ts +1 -0
  520. package/esm/theme/index.js +1 -0
  521. package/esm/theme/index.js.map +1 -1
  522. package/esm/theme/light.d.ts +0 -1
  523. package/esm/theme/light.js +220 -6
  524. package/esm/theme/light.js.map +1 -1
  525. package/esm/transform/diffY.d.ts +8 -0
  526. package/esm/transform/diffY.js +43 -0
  527. package/esm/transform/diffY.js.map +1 -0
  528. package/esm/transform/dodgeX.js +7 -3
  529. package/esm/transform/dodgeX.js.map +1 -1
  530. package/esm/transform/flexX.d.ts +7 -0
  531. package/esm/transform/flexX.js +31 -0
  532. package/esm/transform/flexX.js.map +1 -0
  533. package/esm/transform/group.d.ts +10 -0
  534. package/esm/transform/group.js +101 -0
  535. package/esm/transform/group.js.map +1 -0
  536. package/esm/transform/groupColor.d.ts +7 -0
  537. package/esm/transform/groupColor.js +9 -0
  538. package/esm/transform/groupColor.js.map +1 -0
  539. package/esm/transform/groupX.d.ts +0 -2
  540. package/esm/transform/groupX.js +2 -82
  541. package/esm/transform/groupX.js.map +1 -1
  542. package/esm/transform/groupY.d.ts +7 -0
  543. package/esm/transform/groupY.js +9 -0
  544. package/esm/transform/groupY.js.map +1 -0
  545. package/esm/transform/index.d.ts +70 -21
  546. package/esm/transform/index.js +16 -2
  547. package/esm/transform/index.js.map +1 -1
  548. package/esm/transform/jitter.d.ts +1 -0
  549. package/esm/transform/jitter.js +14 -5
  550. package/esm/transform/jitter.js.map +1 -1
  551. package/esm/transform/jitterX.d.ts +8 -0
  552. package/esm/transform/jitterX.js +25 -0
  553. package/esm/transform/jitterX.js.map +1 -0
  554. package/esm/transform/maybeIdentityX.d.ts +7 -0
  555. package/esm/transform/maybeIdentityX.js +18 -0
  556. package/esm/transform/maybeIdentityX.js.map +1 -0
  557. package/esm/transform/maybeIdentityY.d.ts +7 -0
  558. package/esm/transform/maybeIdentityY.js +18 -0
  559. package/esm/transform/maybeIdentityY.js.map +1 -0
  560. package/esm/transform/maybeTupleX.d.ts +7 -0
  561. package/esm/transform/maybeTupleX.js +16 -0
  562. package/esm/transform/maybeTupleX.js.map +1 -0
  563. package/esm/transform/maybeTupleY.d.ts +7 -0
  564. package/esm/transform/maybeTupleY.js +16 -0
  565. package/esm/transform/maybeTupleY.js.map +1 -0
  566. package/esm/transform/maybeZeroPadding.d.ts +6 -0
  567. package/esm/transform/maybeZeroPadding.js +14 -0
  568. package/esm/transform/maybeZeroPadding.js.map +1 -0
  569. package/esm/transform/maybeZeroX.js +1 -0
  570. package/esm/transform/maybeZeroX.js.map +1 -1
  571. package/esm/transform/maybeZeroY.js +1 -0
  572. package/esm/transform/maybeZeroY.js.map +1 -1
  573. package/esm/transform/normalizeY.js +14 -12
  574. package/esm/transform/normalizeY.js.map +1 -1
  575. package/esm/transform/pack.d.ts +8 -0
  576. package/esm/transform/pack.js +56 -0
  577. package/esm/transform/pack.js.map +1 -0
  578. package/esm/transform/sort.d.ts +14 -0
  579. package/esm/transform/sort.js +64 -0
  580. package/esm/transform/sort.js.map +1 -0
  581. package/esm/transform/sortColor.d.ts +7 -0
  582. package/esm/transform/sortColor.js +9 -0
  583. package/esm/transform/sortColor.js.map +1 -0
  584. package/esm/transform/sortX.d.ts +7 -0
  585. package/esm/transform/sortX.js +9 -0
  586. package/esm/transform/sortX.js.map +1 -0
  587. package/esm/transform/sortY.d.ts +7 -0
  588. package/esm/transform/sortY.js +9 -0
  589. package/esm/transform/sortY.js.map +1 -0
  590. package/esm/transform/stackY.d.ts +1 -1
  591. package/esm/transform/stackY.js +26 -9
  592. package/esm/transform/stackY.js.map +1 -1
  593. package/esm/utils/coordinate.d.ts +3 -0
  594. package/esm/utils/coordinate.js +11 -0
  595. package/esm/utils/coordinate.js.map +1 -1
  596. package/esm/utils/event.d.ts +16 -0
  597. package/esm/utils/event.js +35 -0
  598. package/esm/utils/event.js.map +1 -0
  599. package/esm/utils/helper.d.ts +2 -0
  600. package/esm/utils/helper.js +11 -0
  601. package/esm/utils/helper.js.map +1 -1
  602. package/esm/utils/selection.d.ts +2 -0
  603. package/esm/utils/selection.js +21 -10
  604. package/esm/utils/selection.js.map +1 -1
  605. package/esm/utils/size.d.ts +21 -0
  606. package/esm/utils/size.js +42 -0
  607. package/esm/utils/size.js.map +1 -0
  608. package/esm/utils/string.d.ts +12 -0
  609. package/esm/utils/string.js +19 -0
  610. package/esm/utils/string.js.map +1 -0
  611. package/esm/utils/vector.d.ts +7 -1
  612. package/esm/utils/vector.js +10 -3
  613. package/esm/utils/vector.js.map +1 -1
  614. package/lib/animation/index.d.ts +18 -7
  615. package/lib/animation/index.js +7 -1
  616. package/lib/animation/index.js.map +1 -1
  617. package/lib/animation/morphing.js +2 -23
  618. package/lib/animation/morphing.js.map +1 -1
  619. package/lib/animation/scaleInX.js +3 -0
  620. package/lib/animation/scaleInX.js.map +1 -1
  621. package/lib/animation/scaleInY.js +3 -0
  622. package/lib/animation/scaleInY.js.map +1 -1
  623. package/lib/animation/utils.d.ts +3 -0
  624. package/lib/animation/utils.js +22 -1
  625. package/lib/animation/utils.js.map +1 -1
  626. package/lib/animation/waveIn.d.ts +7 -0
  627. package/lib/animation/waveIn.js +66 -0
  628. package/lib/animation/waveIn.js.map +1 -0
  629. package/lib/animation/zoomIn.d.ts +4 -0
  630. package/lib/animation/zoomIn.js +43 -0
  631. package/lib/animation/zoomIn.js.map +1 -0
  632. package/lib/animation/zoomOut.d.ts +4 -0
  633. package/lib/animation/zoomOut.js +38 -0
  634. package/lib/animation/zoomOut.js.map +1 -0
  635. package/lib/api/chart.d.ts +13 -0
  636. package/lib/api/chart.js +71 -6
  637. package/lib/api/chart.js.map +1 -1
  638. package/lib/api/composition/facetCircle.d.ts +21 -0
  639. package/lib/api/composition/facetCircle.js +33 -0
  640. package/lib/api/composition/facetCircle.js.map +1 -0
  641. package/lib/api/composition/facetRect.d.ts +23 -0
  642. package/lib/api/composition/facetRect.js +35 -0
  643. package/lib/api/composition/facetRect.js.map +1 -0
  644. package/lib/api/composition/index.d.ts +19 -19
  645. package/lib/api/composition/index.js +19 -19
  646. package/lib/api/composition/index.js.map +1 -1
  647. package/lib/api/composition/repeatMatrix.d.ts +21 -0
  648. package/lib/api/composition/repeatMatrix.js +33 -0
  649. package/lib/api/composition/repeatMatrix.js.map +1 -0
  650. package/lib/api/composition/spaceFlex.d.ts +17 -0
  651. package/lib/api/composition/spaceFlex.js +29 -0
  652. package/lib/api/composition/spaceFlex.js.map +1 -0
  653. package/lib/api/composition/spaceLayer.d.ts +14 -0
  654. package/lib/api/composition/spaceLayer.js +26 -0
  655. package/lib/api/composition/spaceLayer.js.map +1 -0
  656. package/lib/api/composition/timingKeyframe.d.ts +17 -0
  657. package/lib/api/composition/timingKeyframe.js +29 -0
  658. package/lib/api/composition/timingKeyframe.js.map +1 -0
  659. package/lib/api/mark/index.d.ts +19 -19
  660. package/lib/api/mark/index.js +9 -9
  661. package/lib/api/mark/index.js.map +1 -1
  662. package/lib/api/mark/mark.d.ts +26 -26
  663. package/lib/api/mark/mark.js +53 -50
  664. package/lib/api/mark/mark.js.map +1 -1
  665. package/lib/api/mark/types.d.ts +3 -0
  666. package/lib/api/node.d.ts +11 -5
  667. package/lib/api/node.js +61 -8
  668. package/lib/api/node.js.map +1 -1
  669. package/lib/api/props.d.ts +2 -1
  670. package/lib/api/props.js +38 -17
  671. package/lib/api/props.js.map +1 -1
  672. package/lib/api/types.d.ts +1 -1
  673. package/lib/component/axis.d.ts +8 -2
  674. package/lib/component/axis.js +171 -96
  675. package/lib/component/axis.js.map +1 -1
  676. package/lib/component/index.d.ts +10 -5
  677. package/lib/component/index.js.map +1 -1
  678. package/lib/component/legendCategory.d.ts +5 -1
  679. package/lib/component/legendCategory.js +7 -10
  680. package/lib/component/legendCategory.js.map +1 -1
  681. package/lib/component/legendContinuous.d.ts +1 -0
  682. package/lib/component/legendContinuous.js +4 -3
  683. package/lib/component/legendContinuous.js.map +1 -1
  684. package/lib/composition/facetCircle.d.ts +7 -0
  685. package/lib/composition/facetCircle.js +89 -0
  686. package/lib/composition/facetCircle.js.map +1 -0
  687. package/lib/composition/facetRect.d.ts +31 -0
  688. package/lib/composition/facetRect.js +311 -0
  689. package/lib/composition/facetRect.js.map +1 -0
  690. package/lib/composition/index.d.ts +16 -8
  691. package/lib/composition/index.js +13 -13
  692. package/lib/composition/index.js.map +1 -1
  693. package/lib/composition/mark.js +13 -2
  694. package/lib/composition/mark.js.map +1 -1
  695. package/lib/composition/repeatMatrix.d.ts +8 -0
  696. package/lib/composition/repeatMatrix.js +153 -0
  697. package/lib/composition/repeatMatrix.js.map +1 -0
  698. package/lib/composition/spaceFlex.d.ts +7 -0
  699. package/lib/composition/spaceFlex.js +44 -0
  700. package/lib/composition/spaceFlex.js.map +1 -0
  701. package/lib/composition/spaceLayer.d.ts +7 -0
  702. package/lib/composition/spaceLayer.js +36 -0
  703. package/lib/composition/spaceLayer.js.map +1 -0
  704. package/lib/composition/timingKeyframe.d.ts +7 -0
  705. package/lib/composition/timingKeyframe.js +79 -0
  706. package/lib/composition/timingKeyframe.js.map +1 -0
  707. package/lib/composition/view.js +3 -3
  708. package/lib/composition/view.js.map +1 -1
  709. package/lib/coordinate/index.d.ts +26 -12
  710. package/lib/coordinate/index.js +3 -1
  711. package/lib/coordinate/index.js.map +1 -1
  712. package/lib/coordinate/radial.d.ts +7 -0
  713. package/lib/coordinate/radial.js +16 -0
  714. package/lib/coordinate/radial.js.map +1 -0
  715. package/lib/data/arc.d.ts +7 -0
  716. package/lib/data/arc.js +14 -18
  717. package/lib/data/arc.js.map +1 -1
  718. package/lib/data/cluster.d.ts +8 -0
  719. package/lib/data/cluster.js +41 -46
  720. package/lib/data/cluster.js.map +1 -1
  721. package/lib/data/custom.d.ts +7 -0
  722. package/lib/data/custom.js +14 -0
  723. package/lib/data/custom.js.map +1 -0
  724. package/lib/data/fetch.js +6 -5
  725. package/lib/data/fetch.js.map +1 -1
  726. package/lib/data/filterBy.js +6 -2
  727. package/lib/data/filterBy.js.map +1 -1
  728. package/lib/data/index.d.ts +30 -9
  729. package/lib/data/index.js +15 -3
  730. package/lib/data/index.js.map +1 -1
  731. package/lib/data/map.d.ts +7 -0
  732. package/lib/data/map.js +14 -0
  733. package/lib/data/map.js.map +1 -0
  734. package/lib/data/sankey.d.ts +8 -0
  735. package/lib/data/sankey.js +80 -95
  736. package/lib/data/sankey.js.map +1 -1
  737. package/lib/data/sortBy.js +14 -4
  738. package/lib/data/sortBy.js.map +1 -1
  739. package/lib/data/tree.d.ts +4 -0
  740. package/lib/data/tree.js +10 -9
  741. package/lib/data/tree.js.map +1 -1
  742. package/lib/data/utils/arc/index.d.ts +1 -1
  743. package/lib/data/utils/fields.d.ts +6 -0
  744. package/lib/data/utils/fields.js +19 -0
  745. package/lib/data/utils/fields.js.map +1 -0
  746. package/lib/data/voronoi.d.ts +1 -0
  747. package/lib/data/voronoi.js +2 -22
  748. package/lib/data/voronoi.js.map +1 -1
  749. package/lib/data/wordCloud.d.ts +6 -0
  750. package/lib/data/wordCloud.js +108 -99
  751. package/lib/data/wordCloud.js.map +1 -1
  752. package/lib/encode/index.d.ts +8 -4
  753. package/lib/encode/index.js.map +1 -1
  754. package/lib/interaction/action/index.d.ts +42 -21
  755. package/lib/interaction/action/index.js.map +1 -1
  756. package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -1
  757. package/lib/interaction/builtin/activeRegion.js.map +1 -1
  758. package/lib/interaction/builtin/brush.js.map +1 -1
  759. package/lib/interaction/builtin/brushHighlight.js.map +1 -1
  760. package/lib/interaction/builtin/brushVisible.js.map +1 -1
  761. package/lib/interaction/builtin/elementActive.d.ts +0 -2
  762. package/lib/interaction/builtin/elementActive.js.map +1 -1
  763. package/lib/interaction/builtin/elementHighlight.d.ts +0 -2
  764. package/lib/interaction/builtin/elementHighlight.js.map +1 -1
  765. package/lib/interaction/builtin/elementHighlightByColor.d.ts +0 -2
  766. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -1
  767. package/lib/interaction/builtin/elementHighlightByX.d.ts +0 -2
  768. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -1
  769. package/lib/interaction/builtin/elementListHighlight.js.map +1 -1
  770. package/lib/interaction/builtin/elementSelected.d.ts +1 -3
  771. package/lib/interaction/builtin/elementSelected.js.map +1 -1
  772. package/lib/interaction/builtin/ellipsisText.js.map +1 -1
  773. package/lib/interaction/builtin/fisheye.d.ts +6 -0
  774. package/lib/interaction/builtin/fisheye.js.map +1 -1
  775. package/lib/interaction/builtin/legendActive.js.map +1 -1
  776. package/lib/interaction/builtin/legendHighlight.js.map +1 -1
  777. package/lib/interaction/builtin/tooltip.d.ts +2 -2
  778. package/lib/interaction/builtin/tooltip.js.map +1 -1
  779. package/lib/interaction/index.d.ts +8 -18
  780. package/lib/interaction/index.js +47 -48
  781. package/lib/interaction/index.js.map +1 -1
  782. package/lib/interaction/interactor/index.d.ts +4 -2
  783. package/lib/interaction/interactor/index.js.map +1 -1
  784. package/lib/interaction/native/chartIndex.d.ts +4 -0
  785. package/lib/interaction/native/chartIndex.js +172 -0
  786. package/lib/interaction/native/chartIndex.js.map +1 -0
  787. package/lib/interaction/native/elementActive.d.ts +10 -0
  788. package/lib/interaction/native/elementActive.js +74 -0
  789. package/lib/interaction/native/elementActive.js.map +1 -0
  790. package/lib/interaction/native/elementActiveByColor.d.ts +4 -0
  791. package/lib/interaction/native/elementActiveByColor.js +16 -0
  792. package/lib/interaction/native/elementActiveByColor.js.map +1 -0
  793. package/lib/interaction/native/elementActiveByX.d.ts +8 -0
  794. package/lib/interaction/native/elementActiveByX.js +17 -0
  795. package/lib/interaction/native/elementActiveByX.js.map +1 -0
  796. package/lib/interaction/native/elementSelect.d.ts +11 -0
  797. package/lib/interaction/native/elementSelect.js +116 -0
  798. package/lib/interaction/native/elementSelect.js.map +1 -0
  799. package/lib/interaction/native/elementSelectByColor.d.ts +1 -0
  800. package/lib/interaction/native/elementSelectByColor.js +13 -0
  801. package/lib/interaction/native/elementSelectByColor.js.map +1 -0
  802. package/lib/interaction/native/elementSelectByX.d.ts +1 -0
  803. package/lib/interaction/native/elementSelectByX.js +13 -0
  804. package/lib/interaction/native/elementSelectByX.js.map +1 -0
  805. package/lib/interaction/native/fisheye.d.ts +4 -0
  806. package/lib/interaction/native/fisheye.js +48 -0
  807. package/lib/interaction/native/fisheye.js.map +1 -0
  808. package/lib/interaction/native/utils.d.ts +28 -0
  809. package/lib/interaction/native/utils.js +186 -0
  810. package/lib/interaction/native/utils.js.map +1 -0
  811. package/lib/label-transform/dodgeY.d.ts +7 -0
  812. package/lib/label-transform/dodgeY.js +71 -0
  813. package/lib/label-transform/dodgeY.js.map +1 -0
  814. package/lib/label-transform/hideOverlap.d.ts +4 -0
  815. package/lib/{labelLayout → label-transform}/hideOverlap.js +0 -0
  816. package/lib/label-transform/hideOverlap.js.map +1 -0
  817. package/lib/label-transform/index.d.ts +4 -0
  818. package/lib/label-transform/index.js +8 -0
  819. package/lib/label-transform/index.js.map +1 -0
  820. package/lib/mark/area.d.ts +4 -0
  821. package/lib/mark/area.js +75 -0
  822. package/lib/mark/area.js.map +1 -0
  823. package/lib/mark/box.d.ts +34 -0
  824. package/lib/mark/box.js +94 -0
  825. package/lib/mark/box.js.map +1 -0
  826. package/lib/mark/cell.d.ts +9 -0
  827. package/lib/mark/cell.js +51 -0
  828. package/lib/mark/cell.js.map +1 -0
  829. package/lib/mark/connector.d.ts +4 -0
  830. package/lib/mark/connector.js +22 -0
  831. package/lib/mark/connector.js.map +1 -0
  832. package/lib/mark/image.d.ts +4 -0
  833. package/lib/mark/image.js +35 -0
  834. package/lib/mark/image.js.map +1 -0
  835. package/lib/mark/index.d.ts +36 -0
  836. package/lib/mark/index.js +40 -0
  837. package/lib/mark/index.js.map +1 -0
  838. package/lib/mark/interval.d.ts +12 -0
  839. package/lib/mark/interval.js +75 -0
  840. package/lib/mark/interval.js.map +1 -0
  841. package/lib/mark/line.d.ts +7 -0
  842. package/lib/mark/line.js +84 -0
  843. package/lib/mark/line.js.map +1 -0
  844. package/lib/mark/lineX.d.ts +4 -0
  845. package/lib/mark/lineX.js +25 -0
  846. package/lib/mark/lineX.js.map +1 -0
  847. package/lib/mark/lineY.d.ts +4 -0
  848. package/lib/mark/lineY.js +25 -0
  849. package/lib/mark/lineY.js.map +1 -0
  850. package/lib/mark/link.d.ts +7 -0
  851. package/lib/mark/link.js +40 -0
  852. package/lib/mark/link.js.map +1 -0
  853. package/lib/mark/point.d.ts +9 -0
  854. package/lib/mark/point.js +83 -0
  855. package/lib/mark/point.js.map +1 -0
  856. package/lib/mark/polygon.d.ts +7 -0
  857. package/lib/mark/polygon.js +47 -0
  858. package/lib/mark/polygon.js.map +1 -0
  859. package/lib/mark/range.d.ts +8 -0
  860. package/lib/mark/range.js +49 -0
  861. package/lib/mark/range.js.map +1 -0
  862. package/lib/mark/rangeX.d.ts +4 -0
  863. package/lib/mark/rangeX.js +18 -0
  864. package/lib/mark/rangeX.js.map +1 -0
  865. package/lib/mark/rangeY.d.ts +4 -0
  866. package/lib/mark/rangeY.js +18 -0
  867. package/lib/mark/rangeY.js.map +1 -0
  868. package/lib/mark/rect.d.ts +4 -0
  869. package/lib/mark/rect.js +35 -0
  870. package/lib/mark/rect.js.map +1 -0
  871. package/lib/mark/text.d.ts +4 -0
  872. package/lib/mark/text.js +36 -0
  873. package/lib/mark/text.js.map +1 -0
  874. package/lib/mark/utils.d.ts +5 -0
  875. package/lib/mark/utils.js +21 -1
  876. package/lib/mark/utils.js.map +1 -1
  877. package/lib/mark/vector.d.ts +8 -0
  878. package/lib/mark/vector.js +47 -0
  879. package/lib/mark/vector.js.map +1 -0
  880. package/lib/palette/divergingGreenRed.d.ts +7 -0
  881. package/lib/palette/divergingGreenRed.js +30 -0
  882. package/lib/palette/divergingGreenRed.js.map +1 -0
  883. package/lib/palette/divergingGreenYellow.d.ts +7 -0
  884. package/lib/palette/divergingGreenYellow.js +30 -0
  885. package/lib/palette/divergingGreenYellow.js.map +1 -0
  886. package/lib/palette/divergingRedBlue.d.ts +7 -0
  887. package/lib/palette/divergingRedBlue.js +30 -0
  888. package/lib/palette/divergingRedBlue.js.map +1 -0
  889. package/lib/palette/divergingRedPurple.d.ts +7 -0
  890. package/lib/palette/divergingRedPurple.js +30 -0
  891. package/lib/palette/divergingRedPurple.js.map +1 -0
  892. package/lib/palette/index.d.ts +40 -2
  893. package/lib/palette/index.js +37 -1
  894. package/lib/palette/index.js.map +1 -1
  895. package/lib/palette/sequentialBlue.d.ts +7 -0
  896. package/lib/palette/sequentialBlue.js +22 -0
  897. package/lib/palette/sequentialBlue.js.map +1 -0
  898. package/lib/palette/sequentialDarkBlue.d.ts +7 -0
  899. package/lib/palette/sequentialDarkBlue.js +22 -0
  900. package/lib/palette/sequentialDarkBlue.js.map +1 -0
  901. package/lib/palette/sequentialDarkGreen.d.ts +7 -0
  902. package/lib/palette/sequentialDarkGreen.js +22 -0
  903. package/lib/palette/sequentialDarkGreen.js.map +1 -0
  904. package/lib/palette/sequentialGreen.d.ts +7 -0
  905. package/lib/palette/sequentialGreen.js +22 -0
  906. package/lib/palette/sequentialGreen.js.map +1 -0
  907. package/lib/palette/sequentialGreenBlue.d.ts +7 -0
  908. package/lib/palette/sequentialGreenBlue.js +22 -0
  909. package/lib/palette/sequentialGreenBlue.js.map +1 -0
  910. package/lib/palette/sequentialGrey.d.ts +7 -0
  911. package/lib/palette/sequentialGrey.js +22 -0
  912. package/lib/palette/sequentialGrey.js.map +1 -0
  913. package/lib/palette/sequentialOrange.d.ts +7 -0
  914. package/lib/palette/sequentialOrange.js +22 -0
  915. package/lib/palette/sequentialOrange.js.map +1 -0
  916. package/lib/palette/sequentialPink.d.ts +7 -0
  917. package/lib/palette/sequentialPink.js +22 -0
  918. package/lib/palette/sequentialPink.js.map +1 -0
  919. package/lib/palette/sequentialPinkPurple.d.ts +7 -0
  920. package/lib/palette/sequentialPinkPurple.js +22 -0
  921. package/lib/palette/sequentialPinkPurple.js.map +1 -0
  922. package/lib/palette/sequentialPurple.d.ts +7 -0
  923. package/lib/palette/sequentialPurple.js +22 -0
  924. package/lib/palette/sequentialPurple.js.map +1 -0
  925. package/lib/palette/sequentialRed.d.ts +7 -0
  926. package/lib/palette/sequentialRed.js +22 -0
  927. package/lib/palette/sequentialRed.js.map +1 -0
  928. package/lib/palette/sequentialYellow.d.ts +7 -0
  929. package/lib/palette/sequentialYellow.js +22 -0
  930. package/lib/palette/sequentialYellow.js.map +1 -0
  931. package/lib/palette/sequentialYellowGreen.d.ts +7 -0
  932. package/lib/palette/sequentialYellowGreen.js +22 -0
  933. package/lib/palette/sequentialYellowGreen.js.map +1 -0
  934. package/lib/palette/sequentialYellowOrange.d.ts +7 -0
  935. package/lib/palette/sequentialYellowOrange.js +22 -0
  936. package/lib/palette/sequentialYellowOrange.js.map +1 -0
  937. package/lib/runtime/component.d.ts +1 -1
  938. package/lib/runtime/component.js +35 -6
  939. package/lib/runtime/component.js.map +1 -1
  940. package/lib/runtime/constant.d.ts +8 -0
  941. package/lib/runtime/constant.js +12 -0
  942. package/lib/runtime/constant.js.map +1 -0
  943. package/lib/runtime/coordinate.d.ts +1 -0
  944. package/lib/runtime/coordinate.js +8 -9
  945. package/lib/runtime/coordinate.js.map +1 -1
  946. package/lib/runtime/index.d.ts +2 -1
  947. package/lib/runtime/index.js +4 -1
  948. package/lib/runtime/index.js.map +1 -1
  949. package/lib/runtime/layout.js +107 -17
  950. package/lib/runtime/layout.js.map +1 -1
  951. package/lib/runtime/mark.js +5 -3
  952. package/lib/runtime/mark.js.map +1 -1
  953. package/lib/runtime/plot.d.ts +2 -0
  954. package/lib/runtime/plot.js +275 -116
  955. package/lib/runtime/plot.js.map +1 -1
  956. package/lib/runtime/render.d.ts +11 -0
  957. package/lib/runtime/render.js +83 -9
  958. package/lib/runtime/render.js.map +1 -1
  959. package/lib/runtime/scale.d.ts +1 -0
  960. package/lib/runtime/scale.js +174 -25
  961. package/lib/runtime/scale.js.map +1 -1
  962. package/lib/runtime/transform.d.ts +1 -0
  963. package/lib/runtime/transform.js +32 -1
  964. package/lib/runtime/transform.js.map +1 -1
  965. package/lib/runtime/types/common.d.ts +16 -39
  966. package/lib/runtime/types/component.d.ts +7 -8
  967. package/lib/runtime/types/options.d.ts +23 -4
  968. package/lib/runtime/types/theme.d.ts +64 -0
  969. package/lib/runtime/types/theme.js +3 -0
  970. package/lib/runtime/types/theme.js.map +1 -0
  971. package/lib/scale/index.d.ts +26 -11
  972. package/lib/scale/index.js +5 -1
  973. package/lib/scale/index.js.map +1 -1
  974. package/lib/scale/sequential.d.ts +4 -0
  975. package/lib/scale/sequential.js +10 -0
  976. package/lib/scale/sequential.js.map +1 -0
  977. package/lib/scale/sqrt.d.ts +4 -0
  978. package/lib/scale/sqrt.js +10 -0
  979. package/lib/scale/sqrt.js.map +1 -0
  980. package/lib/shape/area/area.js +3 -3
  981. package/lib/shape/area/area.js.map +1 -1
  982. package/lib/shape/area/curve.d.ts +8 -0
  983. package/lib/shape/area/curve.js +169 -0
  984. package/lib/shape/area/curve.js.map +1 -0
  985. package/lib/shape/area/smooth.d.ts +5 -0
  986. package/lib/shape/area/smooth.js +27 -0
  987. package/lib/shape/area/smooth.js.map +1 -0
  988. package/lib/shape/area/step.d.ts +3 -0
  989. package/lib/shape/area/step.js +13 -0
  990. package/lib/shape/area/step.js.map +1 -0
  991. package/lib/shape/{schema → box}/box.d.ts +0 -0
  992. package/lib/shape/box/box.js +92 -0
  993. package/lib/shape/box/box.js.map +1 -0
  994. package/lib/shape/connector/connector.d.ts +17 -0
  995. package/lib/shape/connector/connector.js +110 -0
  996. package/lib/shape/connector/connector.js.map +1 -0
  997. package/lib/shape/createElement.d.ts +5 -0
  998. package/lib/shape/createElement.js +20 -0
  999. package/lib/shape/createElement.js.map +1 -0
  1000. package/lib/shape/image/image.js +4 -2
  1001. package/lib/shape/image/image.js.map +1 -1
  1002. package/lib/shape/index.d.ts +86 -48
  1003. package/lib/shape/index.js +24 -31
  1004. package/lib/shape/index.js.map +1 -1
  1005. package/lib/shape/interval/color.d.ts +12 -0
  1006. package/lib/shape/interval/color.js +92 -0
  1007. package/lib/shape/interval/color.js.map +1 -0
  1008. package/lib/shape/interval/funnel.js +2 -2
  1009. package/lib/shape/interval/funnel.js.map +1 -1
  1010. package/lib/shape/interval/hollow.d.ts +6 -0
  1011. package/lib/shape/interval/hollow.js +13 -0
  1012. package/lib/shape/interval/hollow.js.map +1 -0
  1013. package/lib/shape/interval/rect.js +3 -3
  1014. package/lib/shape/interval/rect.js.map +1 -1
  1015. package/lib/shape/label/label.js +43 -70
  1016. package/lib/shape/label/label.js.map +1 -1
  1017. package/lib/shape/label/position.d.ts +25 -0
  1018. package/lib/shape/label/position.js +132 -0
  1019. package/lib/shape/label/position.js.map +1 -0
  1020. package/lib/shape/line/curve.d.ts +8 -0
  1021. package/lib/shape/line/curve.js +121 -0
  1022. package/lib/shape/line/curve.js.map +1 -0
  1023. package/lib/shape/line/hv.js +3 -3
  1024. package/lib/shape/line/hv.js.map +1 -1
  1025. package/lib/shape/line/hvh.js +3 -3
  1026. package/lib/shape/line/hvh.js.map +1 -1
  1027. package/lib/shape/line/line.js +3 -3
  1028. package/lib/shape/line/line.js.map +1 -1
  1029. package/lib/shape/line/smooth.js +3 -3
  1030. package/lib/shape/line/smooth.js.map +1 -1
  1031. package/lib/shape/line/vh.js +3 -3
  1032. package/lib/shape/line/vh.js.map +1 -1
  1033. package/lib/shape/lineXY/line.d.ts +3 -0
  1034. package/lib/shape/lineXY/line.js +62 -0
  1035. package/lib/shape/lineXY/line.js.map +1 -0
  1036. package/lib/shape/{edge → link}/arc.d.ts +0 -0
  1037. package/lib/shape/link/arc.js +57 -0
  1038. package/lib/shape/link/arc.js.map +1 -0
  1039. package/lib/shape/link/link.js +4 -2
  1040. package/lib/shape/link/link.js.map +1 -1
  1041. package/lib/shape/link/smooth.d.ts +6 -0
  1042. package/lib/shape/link/smooth.js +45 -0
  1043. package/lib/shape/link/smooth.js.map +1 -0
  1044. package/lib/shape/link/vhv.d.ts +12 -0
  1045. package/lib/shape/link/vhv.js +75 -0
  1046. package/lib/shape/link/vhv.js.map +1 -0
  1047. package/lib/shape/point/bowtie.js +3 -3
  1048. package/lib/shape/point/bowtie.js.map +1 -1
  1049. package/lib/shape/point/color.d.ts +11 -0
  1050. package/lib/shape/point/color.js +93 -0
  1051. package/lib/shape/point/color.js.map +1 -0
  1052. package/lib/shape/point/cross.js +3 -3
  1053. package/lib/shape/point/cross.js.map +1 -1
  1054. package/lib/shape/point/diamond.js +3 -3
  1055. package/lib/shape/point/diamond.js.map +1 -1
  1056. package/lib/shape/point/hexagon.js +3 -3
  1057. package/lib/shape/point/hexagon.js.map +1 -1
  1058. package/lib/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
  1059. package/lib/shape/point/hollow.js +13 -0
  1060. package/lib/shape/point/hollow.js.map +1 -0
  1061. package/lib/shape/point/hollowBowtie.js +3 -3
  1062. package/lib/shape/point/hollowBowtie.js.map +1 -1
  1063. package/lib/shape/point/hollowDiamond.js +3 -3
  1064. package/lib/shape/point/hollowDiamond.js.map +1 -1
  1065. package/lib/shape/point/hollowHexagon.js +3 -3
  1066. package/lib/shape/point/hollowHexagon.js.map +1 -1
  1067. package/lib/shape/point/hollowSquare.js +3 -3
  1068. package/lib/shape/point/hollowSquare.js.map +1 -1
  1069. package/lib/shape/point/hollowTriangle.js +3 -3
  1070. package/lib/shape/point/hollowTriangle.js.map +1 -1
  1071. package/lib/shape/point/hollowTriangleDown.js +3 -3
  1072. package/lib/shape/point/hollowTriangleDown.js.map +1 -1
  1073. package/lib/shape/point/hyphen.js +3 -3
  1074. package/lib/shape/point/hyphen.js.map +1 -1
  1075. package/lib/shape/point/line.js +3 -3
  1076. package/lib/shape/point/line.js.map +1 -1
  1077. package/lib/shape/point/plus.js +3 -3
  1078. package/lib/shape/point/plus.js.map +1 -1
  1079. package/lib/shape/point/point.js +3 -3
  1080. package/lib/shape/point/point.js.map +1 -1
  1081. package/lib/shape/point/square.js +3 -3
  1082. package/lib/shape/point/square.js.map +1 -1
  1083. package/lib/shape/point/symbol.js +3 -2
  1084. package/lib/shape/point/symbol.js.map +1 -1
  1085. package/lib/shape/point/tick.js +3 -3
  1086. package/lib/shape/point/tick.js.map +1 -1
  1087. package/lib/shape/point/triangle.js +3 -3
  1088. package/lib/shape/point/triangle.js.map +1 -1
  1089. package/lib/shape/point/triangleDown.js +3 -3
  1090. package/lib/shape/point/triangleDown.js.map +1 -1
  1091. package/lib/shape/polygon/polygon.js +5 -4
  1092. package/lib/shape/polygon/polygon.js.map +1 -1
  1093. package/lib/shape/{edge → polygon}/ribbon.d.ts +0 -0
  1094. package/lib/shape/polygon/ribbon.js +74 -0
  1095. package/lib/shape/polygon/ribbon.js.map +1 -0
  1096. package/lib/shape/text/badge.d.ts +11 -0
  1097. package/lib/shape/text/badge.js +102 -0
  1098. package/lib/shape/text/badge.js.map +1 -0
  1099. package/lib/shape/text/text.d.ts +15 -1
  1100. package/lib/shape/text/text.js +143 -8
  1101. package/lib/shape/text/text.js.map +1 -1
  1102. package/lib/shape/utils.d.ts +9 -2
  1103. package/lib/shape/utils.js +43 -10
  1104. package/lib/shape/utils.js.map +1 -1
  1105. package/lib/shape/vector/vector.js +5 -4
  1106. package/lib/shape/vector/vector.js.map +1 -1
  1107. package/lib/spec/animate.d.ts +1 -1
  1108. package/lib/spec/composition.d.ts +41 -15
  1109. package/lib/spec/coordinate.d.ts +9 -2
  1110. package/lib/spec/data.d.ts +145 -8
  1111. package/lib/spec/geometry.d.ts +42 -12
  1112. package/lib/spec/index.d.ts +1 -1
  1113. package/lib/spec/index.js +1 -1
  1114. package/lib/spec/index.js.map +1 -1
  1115. package/lib/spec/interaction.d.ts +33 -21
  1116. package/lib/spec/labelTransform.d.ts +10 -0
  1117. package/lib/spec/labelTransform.js +3 -0
  1118. package/lib/spec/labelTransform.js.map +1 -0
  1119. package/lib/spec/palette.d.ts +54 -0
  1120. package/lib/spec/scale.d.ts +12 -5
  1121. package/lib/spec/transform.d.ts +60 -10
  1122. package/lib/spec/transform.js +0 -133
  1123. package/lib/spec/transform.js.map +1 -1
  1124. package/lib/stdlib/index.js +148 -104
  1125. package/lib/stdlib/index.js.map +1 -1
  1126. package/lib/theme/dark.d.ts +6 -0
  1127. package/lib/theme/dark.js +250 -0
  1128. package/lib/theme/dark.js.map +1 -0
  1129. package/lib/theme/index.d.ts +1 -0
  1130. package/lib/theme/index.js +3 -1
  1131. package/lib/theme/index.js.map +1 -1
  1132. package/lib/theme/light.d.ts +0 -1
  1133. package/lib/theme/light.js +220 -6
  1134. package/lib/theme/light.js.map +1 -1
  1135. package/lib/transform/diffY.d.ts +8 -0
  1136. package/lib/transform/diffY.js +47 -0
  1137. package/lib/transform/diffY.js.map +1 -0
  1138. package/lib/transform/dodgeX.js +7 -3
  1139. package/lib/transform/dodgeX.js.map +1 -1
  1140. package/lib/transform/flexX.d.ts +7 -0
  1141. package/lib/transform/flexX.js +35 -0
  1142. package/lib/transform/flexX.js.map +1 -0
  1143. package/lib/transform/group.d.ts +10 -0
  1144. package/lib/transform/group.js +105 -0
  1145. package/lib/transform/group.js.map +1 -0
  1146. package/lib/transform/groupColor.d.ts +7 -0
  1147. package/lib/transform/groupColor.js +13 -0
  1148. package/lib/transform/groupColor.js.map +1 -0
  1149. package/lib/transform/groupX.d.ts +0 -2
  1150. package/lib/transform/groupX.js +2 -82
  1151. package/lib/transform/groupX.js.map +1 -1
  1152. package/lib/transform/groupY.d.ts +7 -0
  1153. package/lib/transform/groupY.js +13 -0
  1154. package/lib/transform/groupY.js.map +1 -0
  1155. package/lib/transform/index.d.ts +70 -21
  1156. package/lib/transform/index.js +31 -3
  1157. package/lib/transform/index.js.map +1 -1
  1158. package/lib/transform/jitter.d.ts +1 -0
  1159. package/lib/transform/jitter.js +19 -9
  1160. package/lib/transform/jitter.js.map +1 -1
  1161. package/lib/transform/jitterX.d.ts +8 -0
  1162. package/lib/transform/jitterX.js +29 -0
  1163. package/lib/transform/jitterX.js.map +1 -0
  1164. package/lib/transform/maybeIdentityX.d.ts +7 -0
  1165. package/lib/transform/maybeIdentityX.js +22 -0
  1166. package/lib/transform/maybeIdentityX.js.map +1 -0
  1167. package/lib/transform/maybeIdentityY.d.ts +7 -0
  1168. package/lib/transform/maybeIdentityY.js +22 -0
  1169. package/lib/transform/maybeIdentityY.js.map +1 -0
  1170. package/lib/transform/maybeTupleX.d.ts +7 -0
  1171. package/lib/transform/maybeTupleX.js +20 -0
  1172. package/lib/transform/maybeTupleX.js.map +1 -0
  1173. package/lib/transform/maybeTupleY.d.ts +7 -0
  1174. package/lib/transform/maybeTupleY.js +20 -0
  1175. package/lib/transform/maybeTupleY.js.map +1 -0
  1176. package/lib/transform/maybeZeroPadding.d.ts +6 -0
  1177. package/lib/transform/maybeZeroPadding.js +18 -0
  1178. package/lib/transform/maybeZeroPadding.js.map +1 -0
  1179. package/lib/transform/maybeZeroX.js +1 -0
  1180. package/lib/transform/maybeZeroX.js.map +1 -1
  1181. package/lib/transform/maybeZeroY.js +1 -0
  1182. package/lib/transform/maybeZeroY.js.map +1 -1
  1183. package/lib/transform/normalizeY.js +13 -11
  1184. package/lib/transform/normalizeY.js.map +1 -1
  1185. package/lib/transform/pack.d.ts +8 -0
  1186. package/lib/transform/pack.js +60 -0
  1187. package/lib/transform/pack.js.map +1 -0
  1188. package/lib/transform/sort.d.ts +14 -0
  1189. package/lib/transform/sort.js +68 -0
  1190. package/lib/transform/sort.js.map +1 -0
  1191. package/lib/transform/sortColor.d.ts +7 -0
  1192. package/lib/transform/sortColor.js +13 -0
  1193. package/lib/transform/sortColor.js.map +1 -0
  1194. package/lib/transform/sortX.d.ts +7 -0
  1195. package/lib/transform/sortX.js +13 -0
  1196. package/lib/transform/sortX.js.map +1 -0
  1197. package/lib/transform/sortY.d.ts +7 -0
  1198. package/lib/transform/sortY.js +13 -0
  1199. package/lib/transform/sortY.js.map +1 -0
  1200. package/lib/transform/stackY.d.ts +1 -1
  1201. package/lib/transform/stackY.js +26 -9
  1202. package/lib/transform/stackY.js.map +1 -1
  1203. package/lib/utils/coordinate.d.ts +3 -0
  1204. package/lib/utils/coordinate.js +15 -1
  1205. package/lib/utils/coordinate.js.map +1 -1
  1206. package/lib/utils/event.d.ts +16 -0
  1207. package/lib/utils/event.js +40 -0
  1208. package/lib/utils/event.js.map +1 -0
  1209. package/lib/utils/helper.d.ts +2 -0
  1210. package/lib/utils/helper.js +14 -1
  1211. package/lib/utils/helper.js.map +1 -1
  1212. package/lib/utils/selection.d.ts +2 -0
  1213. package/lib/utils/selection.js +21 -10
  1214. package/lib/utils/selection.js.map +1 -1
  1215. package/lib/utils/size.d.ts +21 -0
  1216. package/lib/utils/size.js +47 -0
  1217. package/lib/utils/size.js.map +1 -0
  1218. package/lib/utils/string.d.ts +12 -0
  1219. package/lib/utils/string.js +24 -0
  1220. package/lib/utils/string.js.map +1 -0
  1221. package/lib/utils/vector.d.ts +7 -1
  1222. package/lib/utils/vector.js +12 -4
  1223. package/lib/utils/vector.js.map +1 -1
  1224. package/package.json +24 -4
  1225. package/src/.DS_Store +0 -0
  1226. package/src/animation/index.ts +19 -7
  1227. package/src/animation/morphing.ts +4 -26
  1228. package/src/animation/scaleInX.ts +3 -0
  1229. package/src/animation/scaleInY.ts +3 -0
  1230. package/src/animation/utils.ts +23 -0
  1231. package/src/animation/waveIn.ts +91 -0
  1232. package/src/animation/zoomIn.ts +55 -0
  1233. package/src/animation/zoomOut.ts +50 -0
  1234. package/src/api/chart.ts +119 -7
  1235. package/src/api/composition/facetCircle.ts +43 -0
  1236. package/src/api/composition/facetRect.ts +47 -0
  1237. package/src/api/composition/index.ts +27 -19
  1238. package/src/api/composition/repeatMatrix.ts +46 -0
  1239. package/src/api/composition/spaceFlex.ts +30 -0
  1240. package/src/api/composition/spaceLayer.ts +24 -0
  1241. package/src/api/composition/timingKeyframe.ts +33 -0
  1242. package/src/api/mark/index.ts +27 -27
  1243. package/src/api/mark/mark.ts +49 -54
  1244. package/src/api/mark/types.ts +3 -0
  1245. package/src/api/node.ts +68 -8
  1246. package/src/api/props.ts +42 -19
  1247. package/src/api/types.ts +1 -1
  1248. package/src/component/axis.ts +298 -127
  1249. package/src/component/index.ts +11 -5
  1250. package/src/component/legendCategory.ts +23 -11
  1251. package/src/component/legendContinuous.ts +5 -3
  1252. package/src/composition/facetCircle.ts +102 -0
  1253. package/src/composition/facetRect.ts +369 -0
  1254. package/src/composition/index.ts +17 -8
  1255. package/src/composition/mark.ts +24 -2
  1256. package/src/composition/repeatMatrix.ts +173 -0
  1257. package/src/composition/spaceFlex.ts +49 -0
  1258. package/src/composition/spaceLayer.ts +26 -0
  1259. package/src/composition/timingKeyframe.ts +90 -0
  1260. package/src/composition/view.ts +16 -7
  1261. package/src/coordinate/index.ts +27 -12
  1262. package/src/coordinate/radial.ts +22 -0
  1263. package/src/data/.DS_Store +0 -0
  1264. package/src/data/arc.ts +13 -18
  1265. package/src/data/cluster.ts +53 -56
  1266. package/src/data/custom.ts +15 -0
  1267. package/src/data/fetch.ts +12 -7
  1268. package/src/data/filterBy.ts +11 -2
  1269. package/src/data/index.ts +31 -9
  1270. package/src/data/map.ts +15 -0
  1271. package/src/data/sankey.ts +92 -95
  1272. package/src/data/sortBy.ts +18 -8
  1273. package/src/data/tree.ts +9 -9
  1274. package/src/data/utils/arc/index.ts +1 -1
  1275. package/src/data/utils/fields.ts +17 -0
  1276. package/src/data/voronoi.ts +2 -0
  1277. package/src/data/wordCloud.ts +112 -115
  1278. package/src/encode/index.ts +9 -4
  1279. package/src/interaction/action/index.ts +43 -45
  1280. package/src/interaction/action/service/triggerInfoSelection.ts +1 -1
  1281. package/src/interaction/builtin/activeRegion.ts +1 -0
  1282. package/src/interaction/builtin/brush.ts +1 -0
  1283. package/src/interaction/builtin/brushHighlight.ts +1 -0
  1284. package/src/interaction/builtin/brushVisible.ts +1 -0
  1285. package/src/interaction/builtin/elementActive.ts +1 -0
  1286. package/src/interaction/builtin/elementHighlight.ts +1 -0
  1287. package/src/interaction/builtin/elementHighlightByColor.ts +1 -0
  1288. package/src/interaction/builtin/elementHighlightByX.ts +1 -0
  1289. package/src/interaction/builtin/elementListHighlight.ts +1 -0
  1290. package/src/interaction/builtin/elementSelected.ts +1 -0
  1291. package/src/interaction/builtin/ellipsisText.ts +1 -0
  1292. package/src/interaction/builtin/fisheye.ts +1 -0
  1293. package/src/interaction/builtin/legendActive.ts +1 -0
  1294. package/src/interaction/builtin/legendHighlight.ts +1 -0
  1295. package/src/interaction/builtin/tooltip.ts +1 -0
  1296. package/src/interaction/index.ts +41 -18
  1297. package/src/interaction/interactor/index.ts +5 -2
  1298. package/src/interaction/native/chartIndex.ts +211 -0
  1299. package/src/interaction/native/elementActive.ts +75 -0
  1300. package/src/interaction/native/elementActiveByColor.ts +23 -0
  1301. package/src/interaction/native/elementActiveByX.ts +25 -0
  1302. package/src/interaction/native/elementSelect.ts +113 -0
  1303. package/src/interaction/native/elementSelectByColor.ts +19 -0
  1304. package/src/interaction/native/elementSelectByX.ts +19 -0
  1305. package/src/interaction/native/fisheye.ts +54 -0
  1306. package/src/interaction/native/utils.ts +201 -0
  1307. package/src/interaction/types.ts +1 -1
  1308. package/src/label-transform/dodgeY.ts +75 -0
  1309. package/src/label-transform/hideOverlap.ts +50 -0
  1310. package/src/label-transform/index.ts +5 -0
  1311. package/src/mark/area.ts +86 -0
  1312. package/src/mark/box.ts +105 -0
  1313. package/src/mark/cell.ts +57 -0
  1314. package/src/mark/connector.ts +27 -0
  1315. package/src/mark/image.ts +41 -0
  1316. package/src/mark/index.ts +37 -0
  1317. package/src/mark/interval.ts +83 -0
  1318. package/src/mark/line.ts +99 -0
  1319. package/src/mark/lineX.ts +31 -0
  1320. package/src/mark/lineY.ts +31 -0
  1321. package/src/mark/link.ts +46 -0
  1322. package/src/mark/point.ts +92 -0
  1323. package/src/mark/polygon.ts +54 -0
  1324. package/src/mark/range.ts +56 -0
  1325. package/src/mark/rangeX.ts +23 -0
  1326. package/src/mark/rangeY.ts +23 -0
  1327. package/src/mark/rect.ts +43 -0
  1328. package/src/mark/text.ts +42 -0
  1329. package/src/mark/utils.ts +32 -0
  1330. package/src/mark/vector.ts +56 -0
  1331. package/src/palette/divergingGreenRed.ts +33 -0
  1332. package/src/palette/divergingGreenYellow.ts +36 -0
  1333. package/src/palette/divergingRedBlue.ts +33 -0
  1334. package/src/palette/divergingRedPurple.ts +33 -0
  1335. package/src/palette/index.ts +41 -2
  1336. package/src/palette/sequentialBlue.ts +23 -0
  1337. package/src/palette/sequentialDarkBlue.ts +25 -0
  1338. package/src/palette/sequentialDarkGreen.ts +28 -0
  1339. package/src/palette/sequentialGreen.ts +23 -0
  1340. package/src/palette/sequentialGreenBlue.ts +28 -0
  1341. package/src/palette/sequentialGrey.ts +23 -0
  1342. package/src/palette/sequentialOrange.ts +25 -0
  1343. package/src/palette/sequentialPink.ts +23 -0
  1344. package/src/palette/sequentialPinkPurple.ts +28 -0
  1345. package/src/palette/sequentialPurple.ts +25 -0
  1346. package/src/palette/sequentialRed.ts +23 -0
  1347. package/src/palette/sequentialYellow.ts +25 -0
  1348. package/src/palette/sequentialYellowGreen.ts +28 -0
  1349. package/src/palette/sequentialYellowOrange.ts +28 -0
  1350. package/src/runtime/component.ts +37 -11
  1351. package/src/runtime/constant.ts +8 -0
  1352. package/src/runtime/coordinate.ts +22 -6
  1353. package/src/runtime/index.ts +2 -1
  1354. package/src/runtime/layout.ts +158 -21
  1355. package/src/runtime/mark.ts +6 -3
  1356. package/src/runtime/plot.ts +370 -160
  1357. package/src/runtime/render.ts +120 -14
  1358. package/src/runtime/scale.ts +193 -34
  1359. package/src/runtime/transform.ts +37 -0
  1360. package/src/runtime/types/common.ts +22 -41
  1361. package/src/runtime/types/component.ts +8 -18
  1362. package/src/runtime/types/options.ts +24 -4
  1363. package/src/runtime/types/theme.ts +97 -0
  1364. package/src/scale/index.ts +27 -11
  1365. package/src/scale/sequential.ts +11 -0
  1366. package/src/scale/sqrt.ts +11 -0
  1367. package/src/shape/area/area.ts +3 -3
  1368. package/src/shape/area/curve.ts +202 -0
  1369. package/src/shape/area/smooth.ts +25 -0
  1370. package/src/shape/area/step.ts +15 -0
  1371. package/src/shape/box/box.ts +102 -0
  1372. package/src/shape/connector/connector.ts +155 -0
  1373. package/src/shape/createElement.ts +25 -0
  1374. package/src/shape/image/image.ts +10 -3
  1375. package/src/shape/index.ts +87 -61
  1376. package/src/shape/interval/color.ts +108 -0
  1377. package/src/shape/interval/funnel.ts +2 -2
  1378. package/src/shape/interval/hollow.ts +15 -0
  1379. package/src/shape/interval/pyramid.ts +1 -1
  1380. package/src/shape/interval/rect.ts +3 -3
  1381. package/src/shape/label/label.ts +25 -89
  1382. package/src/shape/label/position.ts +181 -0
  1383. package/src/shape/line/curve.ts +147 -0
  1384. package/src/shape/line/hv.ts +3 -3
  1385. package/src/shape/line/hvh.ts +3 -3
  1386. package/src/shape/line/line.ts +3 -3
  1387. package/src/shape/line/smooth.ts +3 -3
  1388. package/src/shape/line/vh.ts +3 -3
  1389. package/src/shape/lineXY/line.ts +62 -0
  1390. package/src/shape/link/arc.ts +53 -0
  1391. package/src/shape/link/link.ts +10 -3
  1392. package/src/shape/link/smooth.ts +48 -0
  1393. package/src/shape/link/vhv.ts +92 -0
  1394. package/src/shape/point/bowtie.ts +3 -3
  1395. package/src/shape/point/color.ts +73 -0
  1396. package/src/shape/point/cross.ts +3 -3
  1397. package/src/shape/point/diamond.ts +3 -3
  1398. package/src/shape/point/hexagon.ts +3 -3
  1399. package/src/shape/point/hollow.ts +15 -0
  1400. package/src/shape/point/hollowBowtie.ts +3 -3
  1401. package/src/shape/point/hollowDiamond.ts +3 -3
  1402. package/src/shape/point/hollowHexagon.ts +3 -3
  1403. package/src/shape/point/hollowSquare.ts +3 -3
  1404. package/src/shape/point/hollowTriangle.ts +3 -3
  1405. package/src/shape/point/hollowTriangleDown.ts +3 -3
  1406. package/src/shape/point/hyphen.ts +3 -3
  1407. package/src/shape/point/line.ts +3 -3
  1408. package/src/shape/point/plus.ts +3 -3
  1409. package/src/shape/point/point.ts +3 -3
  1410. package/src/shape/point/square.ts +3 -3
  1411. package/src/shape/point/symbol.ts +3 -2
  1412. package/src/shape/point/tick.ts +3 -3
  1413. package/src/shape/point/triangle.ts +3 -3
  1414. package/src/shape/point/triangleDown.ts +3 -3
  1415. package/src/shape/polygon/polygon.ts +11 -5
  1416. package/src/shape/polygon/ribbon.ts +99 -0
  1417. package/src/shape/text/badge.ts +126 -0
  1418. package/src/shape/text/text.ts +221 -21
  1419. package/src/shape/utils.ts +62 -12
  1420. package/src/shape/vector/vector.ts +11 -5
  1421. package/src/spec/action.ts +1 -0
  1422. package/src/spec/animate.ts +1 -0
  1423. package/src/spec/composition.ts +46 -20
  1424. package/src/spec/coordinate.ts +16 -2
  1425. package/src/spec/data.ts +157 -8
  1426. package/src/spec/geometry.ts +71 -36
  1427. package/src/spec/index.ts +1 -1
  1428. package/src/spec/interaction.ts +50 -29
  1429. package/src/spec/labelTransform.ts +12 -0
  1430. package/src/spec/palette.ts +80 -0
  1431. package/src/spec/scale.ts +17 -4
  1432. package/src/spec/transform.ts +111 -155
  1433. package/src/stdlib/index.ts +230 -138
  1434. package/src/theme/dark.ts +250 -0
  1435. package/src/theme/index.ts +1 -0
  1436. package/src/theme/light.ts +220 -6
  1437. package/src/transform/diffY.ts +52 -0
  1438. package/src/transform/dodgeX.ts +5 -4
  1439. package/src/transform/flexX.ts +38 -0
  1440. package/src/transform/group.ts +124 -0
  1441. package/src/transform/groupColor.ts +14 -0
  1442. package/src/transform/groupX.ts +4 -82
  1443. package/src/transform/groupY.ts +14 -0
  1444. package/src/transform/index.ts +71 -24
  1445. package/src/transform/jitter.ts +24 -5
  1446. package/src/transform/jitterX.ts +30 -0
  1447. package/src/transform/maybeIdentityX.ts +21 -0
  1448. package/src/transform/maybeIdentityY.ts +21 -0
  1449. package/src/transform/maybeTupleX.ts +19 -0
  1450. package/src/transform/maybeTupleY.ts +19 -0
  1451. package/src/transform/maybeZeroPadding.ts +19 -0
  1452. package/src/transform/maybeZeroX.ts +1 -0
  1453. package/src/transform/maybeZeroY.ts +1 -0
  1454. package/src/transform/normalizeY.ts +13 -12
  1455. package/src/transform/pack.ts +69 -0
  1456. package/src/transform/sort.ts +63 -0
  1457. package/src/transform/sortColor.ts +14 -0
  1458. package/src/transform/sortX.ts +14 -0
  1459. package/src/transform/sortY.ts +14 -0
  1460. package/src/transform/stackY.ts +34 -9
  1461. package/src/utils/coordinate.ts +16 -0
  1462. package/src/utils/event.ts +46 -0
  1463. package/src/utils/helper.ts +19 -0
  1464. package/src/utils/selection.ts +22 -9
  1465. package/src/utils/size.ts +61 -0
  1466. package/src/utils/string.ts +19 -0
  1467. package/src/utils/vector.ts +11 -3
  1468. package/esm/adjust/index.d.ts +0 -1
  1469. package/esm/adjust/index.js +0 -2
  1470. package/esm/adjust/index.js.map +0 -1
  1471. package/esm/adjust/pack.d.ts +0 -8
  1472. package/esm/adjust/pack.js +0 -55
  1473. package/esm/adjust/pack.js.map +0 -1
  1474. package/esm/api/composition/circle.d.ts +0 -21
  1475. package/esm/api/composition/circle.js +0 -30
  1476. package/esm/api/composition/circle.js.map +0 -1
  1477. package/esm/api/composition/flex.d.ts +0 -17
  1478. package/esm/api/composition/flex.js +0 -26
  1479. package/esm/api/composition/flex.js.map +0 -1
  1480. package/esm/api/composition/keyframe.d.ts +0 -17
  1481. package/esm/api/composition/keyframe.js +0 -26
  1482. package/esm/api/composition/keyframe.js.map +0 -1
  1483. package/esm/api/composition/layer.d.ts +0 -14
  1484. package/esm/api/composition/layer.js +0 -23
  1485. package/esm/api/composition/layer.js.map +0 -1
  1486. package/esm/api/composition/matrix.d.ts +0 -21
  1487. package/esm/api/composition/matrix.js +0 -30
  1488. package/esm/api/composition/matrix.js.map +0 -1
  1489. package/esm/api/composition/rect.d.ts +0 -23
  1490. package/esm/api/composition/rect.js +0 -32
  1491. package/esm/api/composition/rect.js.map +0 -1
  1492. package/esm/composition/circle.d.ts +0 -7
  1493. package/esm/composition/circle.js +0 -85
  1494. package/esm/composition/circle.js.map +0 -1
  1495. package/esm/composition/flex.d.ts +0 -7
  1496. package/esm/composition/flex.js +0 -40
  1497. package/esm/composition/flex.js.map +0 -1
  1498. package/esm/composition/keyframe.d.ts +0 -7
  1499. package/esm/composition/keyframe.js +0 -75
  1500. package/esm/composition/keyframe.js.map +0 -1
  1501. package/esm/composition/layer.d.ts +0 -7
  1502. package/esm/composition/layer.js +0 -32
  1503. package/esm/composition/layer.js.map +0 -1
  1504. package/esm/composition/matrix.d.ts +0 -8
  1505. package/esm/composition/matrix.js +0 -151
  1506. package/esm/composition/matrix.js.map +0 -1
  1507. package/esm/composition/rect.d.ts +0 -30
  1508. package/esm/composition/rect.js +0 -286
  1509. package/esm/composition/rect.js.map +0 -1
  1510. package/esm/data/connector.d.ts +0 -7
  1511. package/esm/data/connector.js +0 -9
  1512. package/esm/data/connector.js.map +0 -1
  1513. package/esm/labelLayout/hideOverlap.d.ts +0 -2
  1514. package/esm/labelLayout/hideOverlap.js.map +0 -1
  1515. package/esm/labelLayout/index.d.ts +0 -1
  1516. package/esm/labelLayout/index.js +0 -2
  1517. package/esm/labelLayout/index.js.map +0 -1
  1518. package/esm/mark/annotation/connector.d.ts +0 -4
  1519. package/esm/mark/annotation/connector.js +0 -18
  1520. package/esm/mark/annotation/connector.js.map +0 -1
  1521. package/esm/mark/annotation/index.d.ts +0 -7
  1522. package/esm/mark/annotation/index.js +0 -8
  1523. package/esm/mark/annotation/index.js.map +0 -1
  1524. package/esm/mark/annotation/lineX.d.ts +0 -4
  1525. package/esm/mark/annotation/lineX.js +0 -21
  1526. package/esm/mark/annotation/lineX.js.map +0 -1
  1527. package/esm/mark/annotation/lineY.d.ts +0 -4
  1528. package/esm/mark/annotation/lineY.js +0 -21
  1529. package/esm/mark/annotation/lineY.js.map +0 -1
  1530. package/esm/mark/annotation/range.d.ts +0 -8
  1531. package/esm/mark/annotation/range.js +0 -44
  1532. package/esm/mark/annotation/range.js.map +0 -1
  1533. package/esm/mark/annotation/rangeX.d.ts +0 -4
  1534. package/esm/mark/annotation/rangeX.js +0 -14
  1535. package/esm/mark/annotation/rangeX.js.map +0 -1
  1536. package/esm/mark/annotation/rangeY.d.ts +0 -4
  1537. package/esm/mark/annotation/rangeY.js +0 -14
  1538. package/esm/mark/annotation/rangeY.js.map +0 -1
  1539. package/esm/mark/annotation/text.d.ts +0 -4
  1540. package/esm/mark/annotation/text.js +0 -21
  1541. package/esm/mark/annotation/text.js.map +0 -1
  1542. package/esm/mark/geometry/area.d.ts +0 -4
  1543. package/esm/mark/geometry/area.js +0 -70
  1544. package/esm/mark/geometry/area.js.map +0 -1
  1545. package/esm/mark/geometry/edge.d.ts +0 -13
  1546. package/esm/mark/geometry/edge.js +0 -31
  1547. package/esm/mark/geometry/edge.js.map +0 -1
  1548. package/esm/mark/geometry/grid.d.ts +0 -9
  1549. package/esm/mark/geometry/grid.js +0 -46
  1550. package/esm/mark/geometry/grid.js.map +0 -1
  1551. package/esm/mark/geometry/image.d.ts +0 -4
  1552. package/esm/mark/geometry/image.js +0 -34
  1553. package/esm/mark/geometry/image.js.map +0 -1
  1554. package/esm/mark/geometry/index.d.ts +0 -13
  1555. package/esm/mark/geometry/index.js +0 -14
  1556. package/esm/mark/geometry/index.js.map +0 -1
  1557. package/esm/mark/geometry/interval.d.ts +0 -12
  1558. package/esm/mark/geometry/interval.js +0 -59
  1559. package/esm/mark/geometry/interval.js.map +0 -1
  1560. package/esm/mark/geometry/line.d.ts +0 -7
  1561. package/esm/mark/geometry/line.js +0 -76
  1562. package/esm/mark/geometry/line.js.map +0 -1
  1563. package/esm/mark/geometry/link.d.ts +0 -7
  1564. package/esm/mark/geometry/link.js +0 -33
  1565. package/esm/mark/geometry/link.js.map +0 -1
  1566. package/esm/mark/geometry/node.d.ts +0 -8
  1567. package/esm/mark/geometry/node.js +0 -27
  1568. package/esm/mark/geometry/node.js.map +0 -1
  1569. package/esm/mark/geometry/point.d.ts +0 -10
  1570. package/esm/mark/geometry/point.js +0 -71
  1571. package/esm/mark/geometry/point.js.map +0 -1
  1572. package/esm/mark/geometry/polygon.d.ts +0 -7
  1573. package/esm/mark/geometry/polygon.js +0 -43
  1574. package/esm/mark/geometry/polygon.js.map +0 -1
  1575. package/esm/mark/geometry/schema.d.ts +0 -34
  1576. package/esm/mark/geometry/schema.js +0 -90
  1577. package/esm/mark/geometry/schema.js.map +0 -1
  1578. package/esm/mark/geometry/text.d.ts +0 -4
  1579. package/esm/mark/geometry/text.js +0 -35
  1580. package/esm/mark/geometry/text.js.map +0 -1
  1581. package/esm/mark/geometry/vector.d.ts +0 -8
  1582. package/esm/mark/geometry/vector.js +0 -43
  1583. package/esm/mark/geometry/vector.js.map +0 -1
  1584. package/esm/renderer/canvas.d.ts +0 -10
  1585. package/esm/renderer/canvas.js +0 -18
  1586. package/esm/renderer/canvas.js.map +0 -1
  1587. package/esm/renderer/index.d.ts +0 -1
  1588. package/esm/renderer/index.js +0 -2
  1589. package/esm/renderer/index.js.map +0 -1
  1590. package/esm/shape/annotation/badge.d.ts +0 -14
  1591. package/esm/shape/annotation/badge.js +0 -93
  1592. package/esm/shape/annotation/badge.js.map +0 -1
  1593. package/esm/shape/annotation/connector.d.ts +0 -15
  1594. package/esm/shape/annotation/connector.js +0 -101
  1595. package/esm/shape/annotation/connector.js.map +0 -1
  1596. package/esm/shape/annotation/line.d.ts +0 -3
  1597. package/esm/shape/annotation/line.js +0 -56
  1598. package/esm/shape/annotation/line.js.map +0 -1
  1599. package/esm/shape/annotation/text.d.ts +0 -20
  1600. package/esm/shape/annotation/text.js +0 -162
  1601. package/esm/shape/annotation/text.js.map +0 -1
  1602. package/esm/shape/area/curveArea.d.ts +0 -8
  1603. package/esm/shape/area/curveArea.js +0 -60
  1604. package/esm/shape/area/curveArea.js.map +0 -1
  1605. package/esm/shape/area/smoothArea.d.ts +0 -5
  1606. package/esm/shape/area/smoothArea.js +0 -23
  1607. package/esm/shape/area/smoothArea.js.map +0 -1
  1608. package/esm/shape/edge/arc.js +0 -51
  1609. package/esm/shape/edge/arc.js.map +0 -1
  1610. package/esm/shape/edge/edge.d.ts +0 -6
  1611. package/esm/shape/edge/edge.js +0 -11
  1612. package/esm/shape/edge/edge.js.map +0 -1
  1613. package/esm/shape/edge/ribbon.js +0 -69
  1614. package/esm/shape/edge/ribbon.js.map +0 -1
  1615. package/esm/shape/edge/smoothEdge.d.ts +0 -6
  1616. package/esm/shape/edge/smoothEdge.js +0 -39
  1617. package/esm/shape/edge/smoothEdge.js.map +0 -1
  1618. package/esm/shape/edge/vhv.d.ts +0 -12
  1619. package/esm/shape/edge/vhv.js +0 -69
  1620. package/esm/shape/edge/vhv.js.map +0 -1
  1621. package/esm/shape/interval/colorRect.d.ts +0 -14
  1622. package/esm/shape/interval/colorRect.js +0 -62
  1623. package/esm/shape/interval/colorRect.js.map +0 -1
  1624. package/esm/shape/interval/hollowRect.d.ts +0 -6
  1625. package/esm/shape/interval/hollowRect.js +0 -9
  1626. package/esm/shape/interval/hollowRect.js.map +0 -1
  1627. package/esm/shape/line/curveLine.d.ts +0 -8
  1628. package/esm/shape/line/curveLine.js +0 -41
  1629. package/esm/shape/line/curveLine.js.map +0 -1
  1630. package/esm/shape/node/point.d.ts +0 -6
  1631. package/esm/shape/node/point.js +0 -27
  1632. package/esm/shape/node/point.js.map +0 -1
  1633. package/esm/shape/node/polygon.d.ts +0 -3
  1634. package/esm/shape/node/polygon.js +0 -8
  1635. package/esm/shape/node/polygon.js.map +0 -1
  1636. package/esm/shape/point/colorPoint.d.ts +0 -11
  1637. package/esm/shape/point/colorPoint.js +0 -59
  1638. package/esm/shape/point/colorPoint.js.map +0 -1
  1639. package/esm/shape/point/hollowPoint.js +0 -9
  1640. package/esm/shape/point/hollowPoint.js.map +0 -1
  1641. package/esm/shape/schema/box.js +0 -87
  1642. package/esm/shape/schema/box.js.map +0 -1
  1643. package/esm/spec/labelLayout.d.ts +0 -4
  1644. package/esm/spec/labelLayout.js +0 -2
  1645. package/esm/spec/labelLayout.js.map +0 -1
  1646. package/esm/transform/jitterY.d.ts +0 -8
  1647. package/esm/transform/jitterY.js +0 -21
  1648. package/esm/transform/jitterY.js.map +0 -1
  1649. package/lib/adjust/index.d.ts +0 -1
  1650. package/lib/adjust/index.js +0 -6
  1651. package/lib/adjust/index.js.map +0 -1
  1652. package/lib/adjust/pack.d.ts +0 -8
  1653. package/lib/adjust/pack.js +0 -59
  1654. package/lib/adjust/pack.js.map +0 -1
  1655. package/lib/api/composition/circle.d.ts +0 -21
  1656. package/lib/api/composition/circle.js +0 -33
  1657. package/lib/api/composition/circle.js.map +0 -1
  1658. package/lib/api/composition/flex.d.ts +0 -17
  1659. package/lib/api/composition/flex.js +0 -29
  1660. package/lib/api/composition/flex.js.map +0 -1
  1661. package/lib/api/composition/keyframe.d.ts +0 -17
  1662. package/lib/api/composition/keyframe.js +0 -29
  1663. package/lib/api/composition/keyframe.js.map +0 -1
  1664. package/lib/api/composition/layer.d.ts +0 -14
  1665. package/lib/api/composition/layer.js +0 -26
  1666. package/lib/api/composition/layer.js.map +0 -1
  1667. package/lib/api/composition/matrix.d.ts +0 -21
  1668. package/lib/api/composition/matrix.js +0 -33
  1669. package/lib/api/composition/matrix.js.map +0 -1
  1670. package/lib/api/composition/rect.d.ts +0 -23
  1671. package/lib/api/composition/rect.js +0 -35
  1672. package/lib/api/composition/rect.js.map +0 -1
  1673. package/lib/composition/circle.d.ts +0 -7
  1674. package/lib/composition/circle.js +0 -89
  1675. package/lib/composition/circle.js.map +0 -1
  1676. package/lib/composition/flex.d.ts +0 -7
  1677. package/lib/composition/flex.js +0 -44
  1678. package/lib/composition/flex.js.map +0 -1
  1679. package/lib/composition/keyframe.d.ts +0 -7
  1680. package/lib/composition/keyframe.js +0 -79
  1681. package/lib/composition/keyframe.js.map +0 -1
  1682. package/lib/composition/layer.d.ts +0 -7
  1683. package/lib/composition/layer.js +0 -36
  1684. package/lib/composition/layer.js.map +0 -1
  1685. package/lib/composition/matrix.d.ts +0 -8
  1686. package/lib/composition/matrix.js +0 -155
  1687. package/lib/composition/matrix.js.map +0 -1
  1688. package/lib/composition/rect.d.ts +0 -30
  1689. package/lib/composition/rect.js +0 -291
  1690. package/lib/composition/rect.js.map +0 -1
  1691. package/lib/data/connector.d.ts +0 -7
  1692. package/lib/data/connector.js +0 -13
  1693. package/lib/data/connector.js.map +0 -1
  1694. package/lib/labelLayout/hideOverlap.d.ts +0 -2
  1695. package/lib/labelLayout/hideOverlap.js.map +0 -1
  1696. package/lib/labelLayout/index.d.ts +0 -1
  1697. package/lib/labelLayout/index.js +0 -6
  1698. package/lib/labelLayout/index.js.map +0 -1
  1699. package/lib/mark/annotation/connector.d.ts +0 -4
  1700. package/lib/mark/annotation/connector.js +0 -22
  1701. package/lib/mark/annotation/connector.js.map +0 -1
  1702. package/lib/mark/annotation/index.d.ts +0 -7
  1703. package/lib/mark/annotation/index.js +0 -18
  1704. package/lib/mark/annotation/index.js.map +0 -1
  1705. package/lib/mark/annotation/lineX.d.ts +0 -4
  1706. package/lib/mark/annotation/lineX.js +0 -25
  1707. package/lib/mark/annotation/lineX.js.map +0 -1
  1708. package/lib/mark/annotation/lineY.d.ts +0 -4
  1709. package/lib/mark/annotation/lineY.js +0 -25
  1710. package/lib/mark/annotation/lineY.js.map +0 -1
  1711. package/lib/mark/annotation/range.d.ts +0 -8
  1712. package/lib/mark/annotation/range.js +0 -49
  1713. package/lib/mark/annotation/range.js.map +0 -1
  1714. package/lib/mark/annotation/rangeX.d.ts +0 -4
  1715. package/lib/mark/annotation/rangeX.js +0 -18
  1716. package/lib/mark/annotation/rangeX.js.map +0 -1
  1717. package/lib/mark/annotation/rangeY.d.ts +0 -4
  1718. package/lib/mark/annotation/rangeY.js +0 -18
  1719. package/lib/mark/annotation/rangeY.js.map +0 -1
  1720. package/lib/mark/annotation/text.d.ts +0 -4
  1721. package/lib/mark/annotation/text.js +0 -25
  1722. package/lib/mark/annotation/text.js.map +0 -1
  1723. package/lib/mark/geometry/area.d.ts +0 -4
  1724. package/lib/mark/geometry/area.js +0 -74
  1725. package/lib/mark/geometry/area.js.map +0 -1
  1726. package/lib/mark/geometry/edge.d.ts +0 -13
  1727. package/lib/mark/geometry/edge.js +0 -35
  1728. package/lib/mark/geometry/edge.js.map +0 -1
  1729. package/lib/mark/geometry/grid.d.ts +0 -9
  1730. package/lib/mark/geometry/grid.js +0 -50
  1731. package/lib/mark/geometry/grid.js.map +0 -1
  1732. package/lib/mark/geometry/image.d.ts +0 -4
  1733. package/lib/mark/geometry/image.js +0 -38
  1734. package/lib/mark/geometry/image.js.map +0 -1
  1735. package/lib/mark/geometry/index.d.ts +0 -13
  1736. package/lib/mark/geometry/index.js +0 -30
  1737. package/lib/mark/geometry/index.js.map +0 -1
  1738. package/lib/mark/geometry/interval.d.ts +0 -12
  1739. package/lib/mark/geometry/interval.js +0 -63
  1740. package/lib/mark/geometry/interval.js.map +0 -1
  1741. package/lib/mark/geometry/line.d.ts +0 -7
  1742. package/lib/mark/geometry/line.js +0 -80
  1743. package/lib/mark/geometry/line.js.map +0 -1
  1744. package/lib/mark/geometry/link.d.ts +0 -7
  1745. package/lib/mark/geometry/link.js +0 -37
  1746. package/lib/mark/geometry/link.js.map +0 -1
  1747. package/lib/mark/geometry/node.d.ts +0 -8
  1748. package/lib/mark/geometry/node.js +0 -31
  1749. package/lib/mark/geometry/node.js.map +0 -1
  1750. package/lib/mark/geometry/point.d.ts +0 -10
  1751. package/lib/mark/geometry/point.js +0 -75
  1752. package/lib/mark/geometry/point.js.map +0 -1
  1753. package/lib/mark/geometry/polygon.d.ts +0 -7
  1754. package/lib/mark/geometry/polygon.js +0 -47
  1755. package/lib/mark/geometry/polygon.js.map +0 -1
  1756. package/lib/mark/geometry/schema.d.ts +0 -34
  1757. package/lib/mark/geometry/schema.js +0 -94
  1758. package/lib/mark/geometry/schema.js.map +0 -1
  1759. package/lib/mark/geometry/text.d.ts +0 -4
  1760. package/lib/mark/geometry/text.js +0 -39
  1761. package/lib/mark/geometry/text.js.map +0 -1
  1762. package/lib/mark/geometry/vector.d.ts +0 -8
  1763. package/lib/mark/geometry/vector.js +0 -47
  1764. package/lib/mark/geometry/vector.js.map +0 -1
  1765. package/lib/renderer/canvas.d.ts +0 -10
  1766. package/lib/renderer/canvas.js +0 -22
  1767. package/lib/renderer/canvas.js.map +0 -1
  1768. package/lib/renderer/index.d.ts +0 -1
  1769. package/lib/renderer/index.js +0 -6
  1770. package/lib/renderer/index.js.map +0 -1
  1771. package/lib/shape/annotation/badge.d.ts +0 -14
  1772. package/lib/shape/annotation/badge.js +0 -97
  1773. package/lib/shape/annotation/badge.js.map +0 -1
  1774. package/lib/shape/annotation/connector.d.ts +0 -15
  1775. package/lib/shape/annotation/connector.js +0 -105
  1776. package/lib/shape/annotation/connector.js.map +0 -1
  1777. package/lib/shape/annotation/line.d.ts +0 -3
  1778. package/lib/shape/annotation/line.js +0 -60
  1779. package/lib/shape/annotation/line.js.map +0 -1
  1780. package/lib/shape/annotation/text.d.ts +0 -20
  1781. package/lib/shape/annotation/text.js +0 -166
  1782. package/lib/shape/annotation/text.js.map +0 -1
  1783. package/lib/shape/area/curveArea.d.ts +0 -8
  1784. package/lib/shape/area/curveArea.js +0 -64
  1785. package/lib/shape/area/curveArea.js.map +0 -1
  1786. package/lib/shape/area/smoothArea.d.ts +0 -5
  1787. package/lib/shape/area/smoothArea.js +0 -27
  1788. package/lib/shape/area/smoothArea.js.map +0 -1
  1789. package/lib/shape/edge/arc.js +0 -55
  1790. package/lib/shape/edge/arc.js.map +0 -1
  1791. package/lib/shape/edge/edge.d.ts +0 -6
  1792. package/lib/shape/edge/edge.js +0 -15
  1793. package/lib/shape/edge/edge.js.map +0 -1
  1794. package/lib/shape/edge/ribbon.js +0 -73
  1795. package/lib/shape/edge/ribbon.js.map +0 -1
  1796. package/lib/shape/edge/smoothEdge.d.ts +0 -6
  1797. package/lib/shape/edge/smoothEdge.js +0 -43
  1798. package/lib/shape/edge/smoothEdge.js.map +0 -1
  1799. package/lib/shape/edge/vhv.d.ts +0 -12
  1800. package/lib/shape/edge/vhv.js +0 -73
  1801. package/lib/shape/edge/vhv.js.map +0 -1
  1802. package/lib/shape/interval/colorRect.d.ts +0 -14
  1803. package/lib/shape/interval/colorRect.js +0 -66
  1804. package/lib/shape/interval/colorRect.js.map +0 -1
  1805. package/lib/shape/interval/hollowRect.d.ts +0 -6
  1806. package/lib/shape/interval/hollowRect.js +0 -13
  1807. package/lib/shape/interval/hollowRect.js.map +0 -1
  1808. package/lib/shape/line/curveLine.d.ts +0 -8
  1809. package/lib/shape/line/curveLine.js +0 -45
  1810. package/lib/shape/line/curveLine.js.map +0 -1
  1811. package/lib/shape/node/point.d.ts +0 -6
  1812. package/lib/shape/node/point.js +0 -31
  1813. package/lib/shape/node/point.js.map +0 -1
  1814. package/lib/shape/node/polygon.d.ts +0 -3
  1815. package/lib/shape/node/polygon.js +0 -12
  1816. package/lib/shape/node/polygon.js.map +0 -1
  1817. package/lib/shape/point/colorPoint.d.ts +0 -11
  1818. package/lib/shape/point/colorPoint.js +0 -86
  1819. package/lib/shape/point/colorPoint.js.map +0 -1
  1820. package/lib/shape/point/hollowPoint.js +0 -13
  1821. package/lib/shape/point/hollowPoint.js.map +0 -1
  1822. package/lib/shape/schema/box.js +0 -91
  1823. package/lib/shape/schema/box.js.map +0 -1
  1824. package/lib/spec/labelLayout.d.ts +0 -4
  1825. package/lib/spec/labelLayout.js +0 -3
  1826. package/lib/spec/labelLayout.js.map +0 -1
  1827. package/lib/transform/jitterY.d.ts +0 -8
  1828. package/lib/transform/jitterY.js +0 -25
  1829. package/lib/transform/jitterY.js.map +0 -1
  1830. package/src/adjust/index.ts +0 -1
  1831. package/src/adjust/pack.ts +0 -67
  1832. package/src/api/composition/circle.ts +0 -43
  1833. package/src/api/composition/flex.ts +0 -30
  1834. package/src/api/composition/keyframe.ts +0 -30
  1835. package/src/api/composition/layer.ts +0 -24
  1836. package/src/api/composition/matrix.ts +0 -43
  1837. package/src/api/composition/rect.ts +0 -47
  1838. package/src/composition/circle.ts +0 -102
  1839. package/src/composition/flex.ts +0 -49
  1840. package/src/composition/keyframe.ts +0 -90
  1841. package/src/composition/layer.ts +0 -26
  1842. package/src/composition/matrix.ts +0 -170
  1843. package/src/composition/rect.ts +0 -339
  1844. package/src/data/connector.ts +0 -14
  1845. package/src/labelLayout/hideOverlap.ts +0 -47
  1846. package/src/labelLayout/index.ts +0 -1
  1847. package/src/mark/annotation/connector.ts +0 -27
  1848. package/src/mark/annotation/index.ts +0 -25
  1849. package/src/mark/annotation/lineX.ts +0 -31
  1850. package/src/mark/annotation/lineY.ts +0 -31
  1851. package/src/mark/annotation/range.ts +0 -55
  1852. package/src/mark/annotation/rangeX.ts +0 -23
  1853. package/src/mark/annotation/rangeY.ts +0 -23
  1854. package/src/mark/annotation/text.ts +0 -30
  1855. package/src/mark/geometry/area.ts +0 -85
  1856. package/src/mark/geometry/edge.ts +0 -40
  1857. package/src/mark/geometry/grid.ts +0 -56
  1858. package/src/mark/geometry/image.ts +0 -41
  1859. package/src/mark/geometry/index.ts +0 -13
  1860. package/src/mark/geometry/interval.ts +0 -71
  1861. package/src/mark/geometry/line.ts +0 -94
  1862. package/src/mark/geometry/link.ts +0 -44
  1863. package/src/mark/geometry/node.ts +0 -36
  1864. package/src/mark/geometry/point.ts +0 -80
  1865. package/src/mark/geometry/polygon.ts +0 -54
  1866. package/src/mark/geometry/schema.ts +0 -105
  1867. package/src/mark/geometry/text.ts +0 -43
  1868. package/src/mark/geometry/vector.ts +0 -56
  1869. package/src/renderer/canvas.ts +0 -27
  1870. package/src/renderer/index.ts +0 -1
  1871. package/src/shape/annotation/badge.ts +0 -114
  1872. package/src/shape/annotation/connector.ts +0 -138
  1873. package/src/shape/annotation/line.ts +0 -55
  1874. package/src/shape/annotation/text.ts +0 -224
  1875. package/src/shape/area/curveArea.ts +0 -61
  1876. package/src/shape/area/smoothArea.ts +0 -25
  1877. package/src/shape/edge/arc.ts +0 -46
  1878. package/src/shape/edge/edge.ts +0 -15
  1879. package/src/shape/edge/ribbon.ts +0 -93
  1880. package/src/shape/edge/smoothEdge.ts +0 -41
  1881. package/src/shape/edge/vhv.ts +0 -85
  1882. package/src/shape/interval/colorRect.ts +0 -62
  1883. package/src/shape/interval/hollowRect.ts +0 -15
  1884. package/src/shape/line/curveLine.ts +0 -44
  1885. package/src/shape/node/point.ts +0 -32
  1886. package/src/shape/node/polygon.ts +0 -12
  1887. package/src/shape/point/colorPoint.ts +0 -65
  1888. package/src/shape/point/hollowPoint.ts +0 -15
  1889. package/src/shape/schema/box.ts +0 -96
  1890. package/src/spec/labelLayout.ts +0 -5
  1891. package/src/transform/jitterY.ts +0 -26
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WaveIn = void 0;
4
+ const d3_shape_1 = require("d3-shape");
5
+ const g_1 = require("@antv/g");
6
+ const utils_1 = require("../shape/utils");
7
+ const coordinate_1 = require("../utils/coordinate");
8
+ const utils_2 = require("./utils");
9
+ const scaleInX_1 = require("./scaleInX");
10
+ /**
11
+ * Transform mark from transparent to solid.
12
+ */
13
+ const WaveIn = (options) => {
14
+ const ZERO = 0.0001;
15
+ // @see https://g-next.antv.vision/zh/docs/api/css/css-properties-values-api#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%9E%E6%80%A7
16
+ g_1.CSS.registerProperty({
17
+ name: 'waveInArcAngle',
18
+ inherits: false,
19
+ initialValue: '',
20
+ interpolable: true,
21
+ syntax: g_1.PropertySyntax.NUMBER,
22
+ });
23
+ return (from, to, value, coordinate, defaults) => {
24
+ const [shape] = from;
25
+ if (!(0, coordinate_1.isPolar)(coordinate)) {
26
+ return (0, scaleInX_1.ScaleInX)(options)(from, to, value, coordinate, defaults);
27
+ }
28
+ const center = coordinate.getCenter();
29
+ const { __data__, style } = shape;
30
+ const { radius = 0 } = style;
31
+ const { points, y, y1 } = __data__;
32
+ const path = (0, d3_shape_1.arc)().cornerRadius(radius);
33
+ const arcObject = (0, utils_1.getArcObject)(coordinate, points, [y, y1]);
34
+ const { startAngle, endAngle } = arcObject;
35
+ const pathForConversion = new g_1.Path({});
36
+ const createArcPath = (arcParams) => {
37
+ pathForConversion.attr({
38
+ d: path(arcParams),
39
+ transform: `translate(${center[0]}, ${center[1]})`,
40
+ });
41
+ const convertedPathDefinition = (0, g_1.convertToPath)(pathForConversion);
42
+ pathForConversion.style.transform = 'none';
43
+ return convertedPathDefinition;
44
+ };
45
+ const keyframes = [
46
+ // Use custom interpolable CSS property.
47
+ {
48
+ waveInArcAngle: startAngle + ZERO,
49
+ },
50
+ {
51
+ waveInArcAngle: endAngle,
52
+ },
53
+ ];
54
+ const animation = shape.animate(keyframes, (0, utils_2.effectTiming)(defaults, value, options));
55
+ animation.onframe = function () {
56
+ shape.style.path = createArcPath(Object.assign(Object.assign({}, arcObject), { endAngle: Number(shape.style.waveInArcAngle) }));
57
+ };
58
+ animation.onfinish = function () {
59
+ shape.style.path = createArcPath(Object.assign(Object.assign({}, arcObject), { endAngle: endAngle }));
60
+ };
61
+ return animation;
62
+ };
63
+ };
64
+ exports.WaveIn = WaveIn;
65
+ exports.WaveIn.props = {};
66
+ //# sourceMappingURL=waveIn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waveIn.js","sourceRoot":"src/","sources":["animation/waveIn.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,+BAAmE;AAInE,0CAA8C;AAC9C,oDAA8C;AAC9C,mCAAuC;AACvC,yCAAsC;AAItC;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,IAAI,GAAG,MAAM,CAAC;IAEpB,0HAA0H;IAC1H,OAAG,CAAC,gBAAgB,CAAC;QACnB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI;QAClB,MAAM,EAAE,kBAAc,CAAC,MAAM;KAC9B,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;QAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC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ACD;gBACE,cAAc,EAAE,QAAQ;aACzB;SACF,CAAC;QACF,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAC7B,SAAS,EACT,IAAA,oBAAY,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CACvC,CAAC;QAEF,SAAS,CAAC,OAAO,GAAG;YAClB,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,aAAa,iCAC3B,SAAS,KACZ,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,IAC5C,CAAC;QACL,CAAC,CAAC;QACF,SAAS,CAAC,QAAQ,GAAG;YACnB,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,aAAa,iCAC3B,SAAS,KACZ,QAAQ,EAAE,QAAQ,IAClB,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC,CAAC;AAzEW,QAAA,MAAM,UAyEjB;AAEF,cAAM,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Animation } from '../spec';
2
+ import { AnimationComponent as AC } from '../runtime';
3
+ export declare type ZoomInOptions = Animation;
4
+ export declare const ZoomIn: AC<ZoomInOptions>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZoomIn = void 0;
4
+ const utils_1 = require("./utils");
5
+ const ZoomIn = (options) => {
6
+ // Small enough to hide or show very small part of mark,
7
+ // but bigger enough to not cause bug.
8
+ const ZERO = 0.0001;
9
+ return (from, to, value, coordinate, defaults) => {
10
+ const [shape] = from;
11
+ const { transform: prefix, fillOpacity, strokeOpacity, opacity, } = shape.style;
12
+ const keyframes = [
13
+ {
14
+ transform: `${prefix} scale(${ZERO})`.trimStart(),
15
+ fillOpacity: 0,
16
+ strokeOpacity: 0,
17
+ opacity: 0,
18
+ },
19
+ {
20
+ transform: `${prefix} scale(${ZERO})`.trimStart(),
21
+ fillOpacity,
22
+ strokeOpacity,
23
+ opacity,
24
+ offset: 0.01,
25
+ },
26
+ {
27
+ transform: `${prefix} scale(1)`.trimStart(),
28
+ fillOpacity,
29
+ strokeOpacity,
30
+ opacity,
31
+ },
32
+ ];
33
+ const { width, height } = shape.getBoundingClientRect();
34
+ // Change transform origin for correct transform.
35
+ shape.setOrigin([width / 2, height / 2]);
36
+ const animation = shape.animate(keyframes, (0, utils_1.effectTiming)(defaults, value, options));
37
+ // Reset transform origin to eliminate side effect for following animations.
38
+ animation.finished.then(() => shape.setOrigin(0, 0));
39
+ return animation;
40
+ };
41
+ };
42
+ exports.ZoomIn = ZoomIn;
43
+ //# sourceMappingURL=zoomIn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoomIn.js","sourceRoot":"src/","sources":["animation/zoomIn.ts"],"names":[],"mappings":";;;AAEA,mCAAuC;AAIhC,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,wDAAwD;IACxD,sCAAsC;IACtC,MAAM,IAAI,GAAG,MAAM,CAAC;IAEpB,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;QAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QACrB,MAAM,EACJ,SAAS,EAAE,MAAM,EACjB,WAAW,EACX,aAAa,EACb,OAAO,GACR,GAAG,KAAK,CAAC,KAAK,CAAC;QAChB,MAAM,SAAS,GAAG;YAChB;gBACE,SAAS,EAAE,GAAG,MAAM,UAAU,IAAI,GAAG,CAAC,SAAS,EAAE;gBACjD,WAAW,EAAE,CAAC;gBACd,aAAa,EAAE,CAAC;gBAChB,OAAO,EAAE,CAAC;aACX;YACD;gBACE,SAAS,EAAE,GAAG,MAAM,UAAU,IAAI,GAAG,CAAC,SAAS,EAAE;gBACjD,WAAW;gBACX,aAAa;gBACb,OAAO;gBACP,MAAM,EAAE,IAAI;aACb;YACD;gBACE,SAAS,EAAE,GAAG,MAAM,WAAW,CAAC,SAAS,EAAE;gBAC3C,WAAW;gBACX,aAAa;gBACb,OAAO;aACR;SACF,CAAC;QACF,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;QACxD,iDAAiD;QACjD,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QAEzC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAC7B,SAAS,EACT,IAAA,oBAAY,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CACvC,CAAC;QAEF,4EAA4E;QAC5E,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAErD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,MAAM,UAgDjB"}
@@ -0,0 +1,4 @@
1
+ import { Animation } from '../spec';
2
+ import { AnimationComponent as AC } from '../runtime';
3
+ export declare type ZoomOutOptions = Animation;
4
+ export declare const ZoomOut: AC<ZoomOutOptions>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZoomOut = void 0;
4
+ const utils_1 = require("./utils");
5
+ const ZoomOut = (options) => {
6
+ // Small enough to hide or show very small part of mark,
7
+ // but bigger enough to not cause bug.
8
+ const ZERO = 0.0001;
9
+ return (from, to, value, coordinate, defaults) => {
10
+ const [shape] = from;
11
+ const { transform: prefix, fillOpacity, strokeOpacity, opacity, } = shape.style;
12
+ const keyframes = [
13
+ { transform: `${prefix} scale(1)`.trimStart() },
14
+ {
15
+ transform: `${prefix} scale(${ZERO})`.trimStart(),
16
+ fillOpacity,
17
+ strokeOpacity,
18
+ opacity,
19
+ offset: 0.99,
20
+ },
21
+ {
22
+ transform: `${prefix} scale(${ZERO})`.trimStart(),
23
+ fillOpacity: 0,
24
+ strokeOpacity: 0,
25
+ opacity: 0,
26
+ },
27
+ ];
28
+ const { width, height } = shape.getBoundingClientRect();
29
+ // Change transform origin for correct transform.
30
+ shape.setOrigin([width / 2, height / 2]);
31
+ const animation = shape.animate(keyframes, (0, utils_1.effectTiming)(defaults, value, options));
32
+ // Reset transform origin to eliminate side effect for following animations.
33
+ animation.finished.then(() => shape.setOrigin(0, 0));
34
+ return animation;
35
+ };
36
+ };
37
+ exports.ZoomOut = ZoomOut;
38
+ //# sourceMappingURL=zoomOut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoomOut.js","sourceRoot":"src/","sources":["animation/zoomOut.ts"],"names":[],"mappings":";;;AAEA,mCAAuC;AAIhC,MAAM,OAAO,GAAuB,CAAC,OAAO,EAAE,EAAE;IACrD,wDAAwD;IACxD,sCAAsC;IACtC,MAAM,IAAI,GAAG,MAAM,CAAC;IAEpB,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;QAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QACrB,MAAM,EACJ,SAAS,EAAE,MAAM,EACjB,WAAW,EACX,aAAa,EACb,OAAO,GACR,GAAG,KAAK,CAAC,KAAK,CAAC;QAChB,MAAM,SAAS,GAAG;YAChB,EAAE,SAAS,EAAE,GAAG,MAAM,WAAW,CAAC,SAAS,EAAE,EAAE;YAC/C;gBACE,SAAS,EAAE,GAAG,MAAM,UAAU,IAAI,GAAG,CAAC,SAAS,EAAE;gBACjD,WAAW;gBACX,aAAa;gBACb,OAAO;gBACP,MAAM,EAAE,IAAI;aACb;YACD;gBACE,SAAS,EAAE,GAAG,MAAM,UAAU,IAAI,GAAG,CAAC,SAAS,EAAE;gBACjD,WAAW,EAAE,CAAC;gBACd,aAAa,EAAE,CAAC;gBAChB,OAAO,EAAE,CAAC;aACX;SACF,CAAC;QAEF,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;QACxD,iDAAiD;QACjD,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAC7B,SAAS,EACT,IAAA,oBAAY,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CACvC,CAAC;QAEF,4EAA4E;QAC5E,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAErD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,OAAO,WA2ClB"}
@@ -1,3 +1,5 @@
1
+ import { RendererPlugin } from '@antv/g';
2
+ import { Renderer as CanvasRenderer } from '@antv/g-canvas';
1
3
  import { G2Context } from '../runtime';
2
4
  import { ViewComposition } from '../spec';
3
5
  import { Node } from './node';
@@ -5,22 +7,29 @@ import { NodePropertyDescriptor } from './props';
5
7
  import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from './types';
6
8
  import { Mark } from './mark';
7
9
  import { Composition } from './composition';
10
+ export declare function removeContainer(container: HTMLElement): void;
8
11
  export declare function optionsOf(node: Node): Record<string, any>;
9
12
  export declare type ChartOptions = ViewComposition & {
10
13
  container?: string | HTMLElement;
11
14
  width?: number;
12
15
  height?: number;
16
+ autoFit?: boolean;
17
+ renderer?: CanvasRenderer;
18
+ plugins?: RendererPlugin[];
13
19
  };
14
20
  declare type ChartProps = Concrete<ViewComposition>;
15
21
  export interface Chart extends Composition, Mark {
16
22
  render(): void;
17
23
  node(): HTMLElement;
18
24
  data: ValueAttribute<ChartProps['data'], Chart>;
25
+ width: ValueAttribute<ChartProps['width'], Chart>;
26
+ height: ValueAttribute<ChartProps['height'], Chart>;
19
27
  coordinate: ArrayAttribute<ChartProps['coordinate'], Chart>;
20
28
  interaction: ArrayAttribute<ChartProps['interaction'], Chart>;
21
29
  key: ValueAttribute<ChartProps['key'], Chart>;
22
30
  transform: ArrayAttribute<ChartProps['transform'], Chart>;
23
31
  theme: ObjectAttribute<ChartProps['theme'], Chart>;
32
+ on: ObjectAttribute<ChartProps['on'], Chart>;
24
33
  }
25
34
  export declare const props: NodePropertyDescriptor[];
26
35
  export declare class Chart extends Node<ChartOptions> {
@@ -29,5 +38,9 @@ export declare class Chart extends Node<ChartOptions> {
29
38
  constructor(options?: ChartOptions);
30
39
  options(): Record<string, any>;
31
40
  context(): G2Context;
41
+ destroy(): void;
42
+ clear(): void;
43
+ forceFit(): void;
44
+ changeSize(adjustedWidth: number, adjustedHeight: number): this;
32
45
  }
33
46
  export {};
package/lib/api/chart.js CHANGED
@@ -17,9 +17,13 @@ var __rest = (this && this.__rest) || function (s, e) {
17
17
  return t;
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.Chart = exports.props = exports.optionsOf = void 0;
21
- const util_1 = require("@antv/util");
20
+ exports.Chart = exports.props = exports.optionsOf = exports.removeContainer = void 0;
21
+ const g_1 = require("@antv/g");
22
+ const g_canvas_1 = require("@antv/g-canvas");
23
+ const g_plugin_dragndrop_1 = require("@antv/g-plugin-dragndrop");
22
24
  const runtime_1 = require("../runtime");
25
+ const size_1 = require("../utils/size");
26
+ const event_1 = require("../utils/event");
23
27
  const node_1 = require("./node");
24
28
  const props_1 = require("./props");
25
29
  const mark_1 = require("./mark");
@@ -34,6 +38,13 @@ function normalizeContainer(container) {
34
38
  }
35
39
  return container;
36
40
  }
41
+ function removeContainer(container) {
42
+ const parent = container.parentNode;
43
+ if (parent) {
44
+ parent.removeChild(container);
45
+ }
46
+ }
47
+ exports.removeContainer = removeContainer;
37
48
  function normalizeRoot(node) {
38
49
  if (node.type !== null)
39
50
  return node;
@@ -47,8 +58,19 @@ function normalizeRoot(node) {
47
58
  return root;
48
59
  }
49
60
  function valueOf(node) {
50
- const value = (0, util_1.clone)(node.value);
51
- return Object.assign(Object.assign({}, value), { type: node.type });
61
+ return Object.assign(Object.assign({}, node.value), { type: node.type });
62
+ }
63
+ function Canvas(container, width, height, renderer = new g_canvas_1.Renderer(), plugins = []) {
64
+ // DragAndDropPlugin is for interaction.
65
+ // It is OK to register more than one time, G will handle this.
66
+ plugins.push(new g_plugin_dragndrop_1.Plugin());
67
+ plugins.forEach((d) => renderer.registerPlugin(d));
68
+ return new g_1.Canvas({
69
+ container,
70
+ width,
71
+ height,
72
+ renderer,
73
+ });
52
74
  }
53
75
  function optionsOf(node) {
54
76
  const root = normalizeRoot(node);
@@ -72,6 +94,8 @@ function optionsOf(node) {
72
94
  exports.optionsOf = optionsOf;
73
95
  exports.props = [
74
96
  { name: 'data', type: 'value' },
97
+ { name: 'width', type: 'value' },
98
+ { name: 'height', type: 'value' },
75
99
  { name: 'coordinate', type: 'array' },
76
100
  { name: 'interaction', type: 'array' },
77
101
  { name: 'theme', type: 'object' },
@@ -79,6 +103,7 @@ exports.props = [
79
103
  { name: 'key', type: 'value' },
80
104
  { name: 'transform', type: 'array' },
81
105
  { name: 'theme', type: 'object' },
106
+ { name: 'on', type: 'event' },
82
107
  ...(0, props_1.nodeProps)(mark_1.mark),
83
108
  ...(0, props_1.containerProps)(composition_1.composition),
84
109
  ];
@@ -90,8 +115,16 @@ let Chart = class Chart extends node_1.Node {
90
115
  this._context = { library: library_1.library };
91
116
  }
92
117
  render() {
93
- const options = optionsOf(this);
94
- const node = (0, runtime_1.render)(options, this._context);
118
+ if (!this._context.canvas) {
119
+ // Init width and height.
120
+ const { width = 640, height = 480, renderer, plugins, autoFit, } = this.options();
121
+ const { width: adjustedWidth, height: adjustedHeight } = (0, size_1.getChartSize)(this._container, autoFit, width, height);
122
+ this.width(adjustedWidth);
123
+ this.height(adjustedHeight);
124
+ // Create canvas if it do not exist.
125
+ this._context.canvas = Canvas(document.createElement('div'), width, height, renderer, plugins);
126
+ }
127
+ const node = (0, runtime_1.render)(this.options(), this._context);
95
128
  if (node.parentNode !== this._container) {
96
129
  this._container.append(node);
97
130
  }
@@ -106,6 +139,38 @@ let Chart = class Chart extends node_1.Node {
106
139
  context() {
107
140
  return this._context;
108
141
  }
142
+ destroy() {
143
+ const options = this.options();
144
+ const { on } = options;
145
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.BEFORE_DESTROY);
146
+ (0, runtime_1.destroy)(options, this._context);
147
+ // Remove the container.
148
+ removeContainer(this._container);
149
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.AFTER_DESTROY);
150
+ }
151
+ clear() {
152
+ const options = this.options();
153
+ const { on } = options;
154
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.BEFORE_CLEAR);
155
+ (0, runtime_1.destroy)(options, this._context);
156
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.AFTER_CLEAR);
157
+ }
158
+ forceFit() {
159
+ const { width, height } = this.options();
160
+ const { width: adjustedWidth, height: adjustedHeight } = (0, size_1.getChartSize)(this._container, true, width, height);
161
+ this.changeSize(adjustedWidth, adjustedHeight);
162
+ }
163
+ changeSize(adjustedWidth, adjustedHeight) {
164
+ const { width, height, on } = this.options();
165
+ if (width === adjustedWidth && height === adjustedHeight) {
166
+ return this;
167
+ }
168
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.BEFORE_CHANGE_SIZE);
169
+ this.width(adjustedWidth);
170
+ this.height(adjustedHeight);
171
+ this.render();
172
+ (0, event_1.emitEvent)(on, event_1.CHART_LIFE_CIRCLE.AFTER_CHANGE_SIZE);
173
+ }
109
174
  };
110
175
  Chart = __decorate([
111
176
  (0, props_1.defineProps)(exports.props)
@@ -1 +1 @@
1
- {"version":3,"file":"chart.js","sourceRoot":"src/","sources":["api/chart.ts"],"names":[],"mappings":";;;;;;;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,cAAc,EAAE,GAAG,IAAA,mBAAY,EACnE,IAAI,CAAC,UAAU,EACf,IAAI,EACJ,KAAK,EACL,MAAM,CACP,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IACjD,CAAC;IAED,UAAU,CAAC,aAAqB,EAAE,cAAsB;QACtD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAE7C,IAAI,KAAK,KAAK,aAAa,IAAI,MAAM,KAAK,cAAc,EAAE;YACxD,OAAO,IAAI,CAAC;SACb;QAED,IAAA,iBAAS,EAAC,EAAE,EAAE,yBAAiB,CAAC,kBAAkB,CAAC,CAAC;QAEpD,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAA,iBAAS,EAAC,EAAE,EAAE,yBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAxGY,KAAK;IADjB,IAAA,mBAAW,EAAC,aAAK,CAAC;GACN,KAAK,CAwGjB;AAxGY,sBAAK"}
@@ -0,0 +1,21 @@
1
+ import { FacetCircleComposition } from '../../spec';
2
+ import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
3
+ import { Node } from '../node';
4
+ import { Mark } from '../mark';
5
+ import { Composition } from './index';
6
+ declare type FacetCircleSpec = Concrete<FacetCircleComposition>;
7
+ export interface FacetCircle extends Composition, Mark {
8
+ key: ValueAttribute<FacetCircleSpec['key'], FacetCircle>;
9
+ data: ValueAttribute<FacetCircleSpec['data'], FacetCircle>;
10
+ transform: ArrayAttribute<FacetCircleSpec['transform'], FacetCircle>;
11
+ encode: ObjectAttribute<FacetCircleSpec['encode'], FacetCircle>;
12
+ scale: ObjectAttribute<FacetCircleSpec['scale'], FacetCircle>;
13
+ paddingLeft: ValueAttribute<FacetCircleSpec['paddingLeft'], FacetCircle>;
14
+ paddingRight: ValueAttribute<FacetCircleSpec['paddingRight'], FacetCircle>;
15
+ paddingBottom: ValueAttribute<FacetCircleSpec['paddingBottom'], FacetCircle>;
16
+ paddingTop: ValueAttribute<FacetCircleSpec['paddingTop'], FacetCircle>;
17
+ }
18
+ export declare class FacetCircle extends Node<FacetCircleComposition> {
19
+ constructor();
20
+ }
21
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FacetCircle = void 0;
10
+ const props_1 = require("../props");
11
+ const node_1 = require("../node");
12
+ const mark_1 = require("../mark");
13
+ let FacetCircle = class FacetCircle extends node_1.Node {
14
+ constructor() {
15
+ super({}, 'facetCircle');
16
+ }
17
+ };
18
+ FacetCircle = __decorate([
19
+ (0, props_1.defineProps)([
20
+ { type: 'value', name: 'data' },
21
+ { type: 'value', name: 'key' },
22
+ { type: 'array', name: 'transform' },
23
+ { type: 'object', name: 'scale' },
24
+ { type: 'object', name: 'encode' },
25
+ { type: 'value', name: 'paddingLeft' },
26
+ { type: 'value', name: 'paddingRight' },
27
+ { type: 'value', name: 'paddingBottom' },
28
+ { type: 'value', name: 'paddingTop' },
29
+ ...(0, props_1.nodeProps)(mark_1.mark),
30
+ ])
31
+ ], FacetCircle);
32
+ exports.FacetCircle = FacetCircle;
33
+ //# sourceMappingURL=facetCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facetCircle.js","sourceRoot":"src/","sources":["api/composition/facetCircle.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAA+B;AAC/B,kCAAqC;AA6B9B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAA4B;IAC3D;QACE,KAAK,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;IAC3B,CAAC;CACF,CAAA;AAJY,WAAW;IAZvB,IAAA,mBAAW,EAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;QAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE;QACvC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE;QACxC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE;QACrC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,WAAW,CAIvB;AAJY,kCAAW"}
@@ -0,0 +1,23 @@
1
+ import { FacetRectComposition } from '../../spec';
2
+ import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
3
+ import { Node } from '../node';
4
+ import { Mark } from '../mark';
5
+ import { Composition } from './index';
6
+ declare type FacetRectSpec = Concrete<FacetRectComposition>;
7
+ export interface FacetRect extends Composition, Mark {
8
+ key: ValueAttribute<FacetRectSpec['key'], FacetRect>;
9
+ data: ValueAttribute<FacetRectSpec['data'], FacetRect>;
10
+ transform: ArrayAttribute<FacetRectSpec['transform'], FacetRect>;
11
+ encode: ObjectAttribute<FacetRectSpec['encode'], FacetRect>;
12
+ scale: ObjectAttribute<FacetRectSpec['scale'], FacetRect>;
13
+ paddingLeft: ValueAttribute<FacetRectSpec['paddingLeft'], FacetRect>;
14
+ paddingRight: ValueAttribute<FacetRectSpec['paddingRight'], FacetRect>;
15
+ paddingBottom: ValueAttribute<FacetRectSpec['paddingBottom'], FacetRect>;
16
+ paddingTop: ValueAttribute<FacetRectSpec['paddingTop'], FacetRect>;
17
+ shareData: ValueAttribute<FacetRectSpec['shareData'], FacetRect>;
18
+ shareSize: ValueAttribute<FacetRectSpec['shareSize'], FacetRect>;
19
+ }
20
+ export declare class FacetRect extends Node<FacetRectComposition> {
21
+ constructor();
22
+ }
23
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FacetRect = void 0;
10
+ const props_1 = require("../props");
11
+ const node_1 = require("../node");
12
+ const mark_1 = require("../mark");
13
+ let FacetRect = class FacetRect extends node_1.Node {
14
+ constructor() {
15
+ super({}, 'facetRect');
16
+ }
17
+ };
18
+ FacetRect = __decorate([
19
+ (0, props_1.defineProps)([
20
+ { type: 'value', name: 'data' },
21
+ { type: 'value', name: 'key' },
22
+ { type: 'array', name: 'transform' },
23
+ { type: 'object', name: 'scale' },
24
+ { type: 'object', name: 'encode' },
25
+ { type: 'value', name: 'paddingLeft' },
26
+ { type: 'value', name: 'paddingRight' },
27
+ { type: 'value', name: 'paddingBottom' },
28
+ { type: 'value', name: 'paddingTop' },
29
+ { type: 'value', name: 'shareData' },
30
+ { type: 'value', name: 'shareSize' },
31
+ ...(0, props_1.nodeProps)(mark_1.mark),
32
+ ])
33
+ ], FacetRect);
34
+ exports.FacetRect = FacetRect;
35
+ //# sourceMappingURL=facetRect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facetRect.js","sourceRoot":"src/","sources":["api/composition/facetRect.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAA+B;AAC/B,kCAAqC;AAiC9B,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAA0B;IACvD;QACE,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AAJY,SAAS;IAdrB,IAAA,mBAAW,EAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;QAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE;QACvC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE;QACxC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE;QACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,SAAS,CAIrB;AAJY,8BAAS"}
@@ -1,26 +1,26 @@
1
1
  import { View } from './view';
2
- import { Layer } from './layer';
3
- import { Flex } from './flex';
4
- import { Rect } from './rect';
5
- import { Circle } from './circle';
6
- import { Matrix } from './matrix';
7
- import { Keyframe } from './keyframe';
2
+ import { SpaceLayer } from './spaceLayer';
3
+ import { SpaceFlex } from './spaceFlex';
4
+ import { FacetRect } from './facetRect';
5
+ import { FacetCircle } from './facetCircle';
6
+ import { RepeatMatrix } from './repeatMatrix';
7
+ import { TimingKeyframe } from './timingKeyframe';
8
8
  export declare const composition: {
9
9
  view: typeof View;
10
- layer: typeof Layer;
11
- flex: typeof Flex;
12
- rect: typeof Rect;
13
- circle: typeof Circle;
14
- matrix: typeof Matrix;
15
- keyframe: typeof Keyframe;
10
+ spaceLayer: typeof SpaceLayer;
11
+ spaceFlex: typeof SpaceFlex;
12
+ facetRect: typeof FacetRect;
13
+ facetCircle: typeof FacetCircle;
14
+ repeatMatrix: typeof RepeatMatrix;
15
+ timingKeyframe: typeof TimingKeyframe;
16
16
  };
17
17
  export interface Composition {
18
- layer(): Layer;
19
18
  view(): View;
20
- flex(): Flex;
21
- rect(): Rect;
22
- circle(): Circle;
23
- matrix(): Matrix;
24
- keyframe(): Keyframe;
19
+ spaceLayer(): SpaceLayer;
20
+ spaceFlex(): SpaceFlex;
21
+ facetRect(): FacetRect;
22
+ facetCircle(): FacetCircle;
23
+ repeatMatrix(): RepeatMatrix;
24
+ timingKeyframe(): TimingKeyframe;
25
25
  }
26
- export { View, Layer, Flex, Rect, Circle, Matrix, Keyframe };
26
+ export { View, SpaceLayer, SpaceFlex, FacetRect, FacetCircle, RepeatMatrix, TimingKeyframe, };
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Keyframe = exports.Matrix = exports.Circle = exports.Rect = exports.Flex = exports.Layer = exports.View = exports.composition = void 0;
3
+ exports.TimingKeyframe = exports.RepeatMatrix = exports.FacetCircle = exports.FacetRect = exports.SpaceFlex = exports.SpaceLayer = exports.View = exports.composition = void 0;
4
4
  const props_1 = require("../props");
5
5
  const view_1 = require("./view");
6
6
  Object.defineProperty(exports, "View", { enumerable: true, get: function () { return view_1.View; } });
7
- const layer_1 = require("./layer");
8
- Object.defineProperty(exports, "Layer", { enumerable: true, get: function () { return layer_1.Layer; } });
9
- const flex_1 = require("./flex");
10
- Object.defineProperty(exports, "Flex", { enumerable: true, get: function () { return flex_1.Flex; } });
11
- const rect_1 = require("./rect");
12
- Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } });
13
- const circle_1 = require("./circle");
14
- Object.defineProperty(exports, "Circle", { enumerable: true, get: function () { return circle_1.Circle; } });
15
- const matrix_1 = require("./matrix");
16
- Object.defineProperty(exports, "Matrix", { enumerable: true, get: function () { return matrix_1.Matrix; } });
17
- const keyframe_1 = require("./keyframe");
18
- Object.defineProperty(exports, "Keyframe", { enumerable: true, get: function () { return keyframe_1.Keyframe; } });
7
+ const spaceLayer_1 = require("./spaceLayer");
8
+ Object.defineProperty(exports, "SpaceLayer", { enumerable: true, get: function () { return spaceLayer_1.SpaceLayer; } });
9
+ const spaceFlex_1 = require("./spaceFlex");
10
+ Object.defineProperty(exports, "SpaceFlex", { enumerable: true, get: function () { return spaceFlex_1.SpaceFlex; } });
11
+ const facetRect_1 = require("./facetRect");
12
+ Object.defineProperty(exports, "FacetRect", { enumerable: true, get: function () { return facetRect_1.FacetRect; } });
13
+ const facetCircle_1 = require("./facetCircle");
14
+ Object.defineProperty(exports, "FacetCircle", { enumerable: true, get: function () { return facetCircle_1.FacetCircle; } });
15
+ const repeatMatrix_1 = require("./repeatMatrix");
16
+ Object.defineProperty(exports, "RepeatMatrix", { enumerable: true, get: function () { return repeatMatrix_1.RepeatMatrix; } });
17
+ const timingKeyframe_1 = require("./timingKeyframe");
18
+ Object.defineProperty(exports, "TimingKeyframe", { enumerable: true, get: function () { return timingKeyframe_1.TimingKeyframe; } });
19
19
  exports.composition = {
20
20
  view: view_1.View,
21
- layer: layer_1.Layer,
22
- flex: flex_1.Flex,
23
- rect: rect_1.Rect,
24
- circle: circle_1.Circle,
25
- matrix: matrix_1.Matrix,
26
- keyframe: keyframe_1.Keyframe,
21
+ spaceLayer: spaceLayer_1.SpaceLayer,
22
+ spaceFlex: spaceFlex_1.SpaceFlex,
23
+ facetRect: facetRect_1.FacetRect,
24
+ facetCircle: facetCircle_1.FacetCircle,
25
+ repeatMatrix: repeatMatrix_1.RepeatMatrix,
26
+ timingKeyframe: timingKeyframe_1.TimingKeyframe,
27
27
  };
28
28
  /**
29
29
  * Define composition node api for composition node dynamically,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/composition/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAClD,iCAA8B;AA4BrB,qFA5BA,WAAI,OA4BA;AA3Bb,mCAAgC;AA2BjB,sFA3BN,aAAK,OA2BM;AA1BpB,iCAA8B;AA0BR,qFA1Bb,WAAI,OA0Ba;AAzB1B,iCAA8B;AAyBF,qFAzBnB,WAAI,OAyBmB;AAxBhC,qCAAkC;AAwBA,uFAxBzB,eAAM,OAwByB;AAvBxC,qCAAkC;AAuBQ,uFAvBjC,eAAM,OAuBiC;AAtBhD,yCAAsC;AAsBY,yFAtBzC,mBAAQ,OAsByC;AApB7C,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,WAAI;IACV,KAAK,EAAE,aAAK;IACZ,IAAI,EAAE,WAAI;IACV,IAAI,EAAE,WAAI;IACV,MAAM,EAAE,eAAM;IACd,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE,mBAAQ;CACnB,CAAC;AAcF;;;;GAIG;AACH,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAW,CAAC,EAAE;IAC7C,IAAA,mBAAW,EAAC,IAAA,iBAAS,EAAC,mBAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/composition/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAClD,iCAA8B;AA6B5B,qFA7BO,WAAI,OA6BP;AA5BN,6CAA0C;AA6BxC,2FA7BO,uBAAU,OA6BP;AA5BZ,2CAAwC;AA6BtC,0FA7BO,qBAAS,OA6BP;AA5BX,2CAAwC;AA6BtC,0FA7BO,qBAAS,OA6BP;AA5BX,+CAA4C;AA6B1C,4FA7BO,yBAAW,OA6BP;AA5Bb,iDAA8C;AA6B5C,6FA7BO,2BAAY,OA6BP;AA5Bd,qDAAkD;AA6BhD,+FA7BO,+BAAc,OA6BP;AA3BH,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,WAAI;IACV,UAAU,EAAE,uBAAU;IACtB,SAAS,EAAE,qBAAS;IACpB,SAAS,EAAE,qBAAS;IACpB,WAAW,EAAE,yBAAW;IACxB,YAAY,EAAE,2BAAY;IAC1B,cAAc,EAAE,+BAAc;CAC/B,CAAC;AAsBF;;;;GAIG;AACH,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAW,CAAC,EAAE;IAC7C,IAAA,mBAAW,EAAC,IAAA,iBAAS,EAAC,mBAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,21 @@
1
+ import { RepeatMatrixComposition } from '../../spec';
2
+ import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
3
+ import { Node } from '../node';
4
+ import { Mark } from '../mark';
5
+ import { Composition } from './index';
6
+ declare type RepeatMatrixSpec = Concrete<RepeatMatrixComposition>;
7
+ export interface RepeatMatrix extends Composition, Mark {
8
+ key: ValueAttribute<RepeatMatrixSpec['key'], RepeatMatrix>;
9
+ data: ValueAttribute<RepeatMatrixSpec['data'], RepeatMatrix>;
10
+ transform: ArrayAttribute<RepeatMatrixSpec['transform'], RepeatMatrix>;
11
+ encode: ObjectAttribute<RepeatMatrixSpec['encode'], RepeatMatrix>;
12
+ scale: ObjectAttribute<RepeatMatrixSpec['scale'], RepeatMatrix>;
13
+ paddingLeft: ValueAttribute<RepeatMatrixSpec['paddingLeft'], RepeatMatrix>;
14
+ paddingRight: ValueAttribute<RepeatMatrixSpec['paddingRight'], RepeatMatrix>;
15
+ paddingBottom: ValueAttribute<RepeatMatrixSpec['paddingBottom'], RepeatMatrix>;
16
+ paddingTop: ValueAttribute<RepeatMatrixSpec['paddingTop'], RepeatMatrix>;
17
+ }
18
+ export declare class RepeatMatrix extends Node<RepeatMatrixComposition> {
19
+ constructor();
20
+ }
21
+ export {};