@antv/g2 5.0.18 → 5.0.20

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 (539) hide show
  1. package/dist/g2-lite.min.js +3 -3
  2. package/dist/g2.min.js +3 -3
  3. package/esm/api/chart.d.ts +175 -85
  4. package/esm/api/chart.js +3 -259
  5. package/esm/api/chart.js.map +1 -1
  6. package/esm/api/composition.d.ts +37 -0
  7. package/esm/api/{composition/base.js → composition.js} +17 -5
  8. package/esm/api/composition.js.map +1 -0
  9. package/esm/api/define.d.ts +14 -0
  10. package/esm/api/define.js +92 -0
  11. package/esm/api/define.js.map +1 -0
  12. package/esm/api/extend.d.ts +10 -0
  13. package/esm/api/extend.js +9 -0
  14. package/esm/api/extend.js.map +1 -0
  15. package/esm/api/index.d.ts +2 -0
  16. package/esm/api/index.js +2 -0
  17. package/esm/api/index.js.map +1 -1
  18. package/esm/api/library.d.ts +171 -1
  19. package/esm/api/library.js +2 -2
  20. package/esm/api/library.js.map +1 -1
  21. package/esm/api/mark.d.ts +29 -0
  22. package/esm/api/{mark/base.js → mark.js} +16 -4
  23. package/esm/api/mark.js.map +1 -0
  24. package/esm/api/node.d.ts +2 -2
  25. package/esm/api/node.js.map +1 -1
  26. package/esm/api/props.d.ts +170 -12
  27. package/esm/api/props.js +21 -102
  28. package/esm/api/props.js.map +1 -1
  29. package/esm/api/runtime.d.ts +66 -0
  30. package/esm/api/runtime.js +294 -0
  31. package/esm/api/runtime.js.map +1 -0
  32. package/esm/api/types.d.ts +60 -5
  33. package/esm/api/utils.d.ts +1 -1
  34. package/esm/api/utils.js +11 -13
  35. package/esm/api/utils.js.map +1 -1
  36. package/esm/component/axis.js +7 -4
  37. package/esm/component/axis.js.map +1 -1
  38. package/esm/component/legendCategory.js +4 -5
  39. package/esm/component/legendCategory.js.map +1 -1
  40. package/esm/composition/d3Projection.js.map +1 -0
  41. package/esm/composition/geoPath.js.map +1 -0
  42. package/esm/{geo → composition}/geoView.js +1 -1
  43. package/esm/composition/geoView.js.map +1 -0
  44. package/esm/composition/index.d.ts +2 -0
  45. package/esm/composition/index.js +2 -0
  46. package/esm/composition/index.js.map +1 -1
  47. package/esm/data/index.d.ts +2 -0
  48. package/esm/data/index.js +1 -0
  49. package/esm/data/index.js.map +1 -1
  50. package/esm/data/log.d.ts +7 -0
  51. package/esm/data/log.js +11 -0
  52. package/esm/data/log.js.map +1 -0
  53. package/esm/index.d.ts +4 -3
  54. package/esm/index.js +3 -2
  55. package/esm/index.js.map +1 -1
  56. package/esm/interaction/brushFilter.js +18 -16
  57. package/esm/interaction/brushFilter.js.map +1 -1
  58. package/esm/interaction/chartIndex.js +25 -22
  59. package/esm/interaction/chartIndex.js.map +1 -1
  60. package/esm/interaction/fisheye.js +17 -13
  61. package/esm/interaction/fisheye.js.map +1 -1
  62. package/esm/interaction/legendFilter.js +32 -26
  63. package/esm/interaction/legendFilter.js.map +1 -1
  64. package/esm/interaction/sliderFilter.js +8 -9
  65. package/esm/interaction/sliderFilter.js.map +1 -1
  66. package/esm/interaction/tooltip.d.ts +1 -1
  67. package/esm/interaction/tooltip.js +39 -4
  68. package/esm/interaction/tooltip.js.map +1 -1
  69. package/esm/label-transform/overlapDodgeY.js.map +1 -1
  70. package/esm/lib/core.d.ts +159 -0
  71. package/esm/lib/core.js +175 -0
  72. package/esm/lib/core.js.map +1 -0
  73. package/esm/lib/geo.d.ts +4 -0
  74. package/esm/lib/geo.js +9 -0
  75. package/esm/lib/geo.js.map +1 -0
  76. package/esm/lib/graph.d.ts +4 -0
  77. package/esm/lib/graph.js +8 -0
  78. package/esm/lib/graph.js.map +1 -0
  79. package/esm/lib/index.d.ts +6 -0
  80. package/esm/lib/index.js +7 -0
  81. package/esm/lib/index.js.map +1 -0
  82. package/esm/lib/lite.d.ts +64 -0
  83. package/esm/lib/lite.js +78 -0
  84. package/esm/lib/lite.js.map +1 -0
  85. package/esm/lib/plot.d.ts +11 -0
  86. package/esm/lib/plot.js +16 -0
  87. package/esm/lib/plot.js.map +1 -0
  88. package/esm/lib/std.d.ts +171 -0
  89. package/esm/lib/std.js +8 -0
  90. package/esm/lib/std.js.map +1 -0
  91. package/esm/mark/area.js +14 -5
  92. package/esm/mark/area.js.map +1 -1
  93. package/esm/mark/box.js +9 -2
  94. package/esm/mark/box.js.map +1 -1
  95. package/esm/mark/cell.js +11 -5
  96. package/esm/mark/cell.js.map +1 -1
  97. package/esm/mark/connector.js +6 -2
  98. package/esm/mark/connector.js.map +1 -1
  99. package/esm/mark/density.js +10 -7
  100. package/esm/mark/density.js.map +1 -1
  101. package/esm/mark/forceGraph.js +0 -3
  102. package/esm/mark/forceGraph.js.map +1 -1
  103. package/esm/mark/heatmap.js +9 -4
  104. package/esm/mark/heatmap.js.map +1 -1
  105. package/esm/mark/image.js +9 -4
  106. package/esm/mark/image.js.map +1 -1
  107. package/esm/mark/interval.js +13 -7
  108. package/esm/mark/interval.js.map +1 -1
  109. package/esm/mark/line.js +15 -4
  110. package/esm/mark/line.js.map +1 -1
  111. package/esm/mark/lineX.js +8 -3
  112. package/esm/mark/lineX.js.map +1 -1
  113. package/esm/mark/lineY.js +8 -3
  114. package/esm/mark/lineY.js.map +1 -1
  115. package/esm/mark/link.js +12 -4
  116. package/esm/mark/link.js.map +1 -1
  117. package/esm/mark/path.js +7 -2
  118. package/esm/mark/path.js.map +1 -1
  119. package/esm/mark/point.js +28 -29
  120. package/esm/mark/point.js.map +1 -1
  121. package/esm/mark/polygon.js +7 -2
  122. package/esm/mark/polygon.js.map +1 -1
  123. package/esm/mark/range.js +4 -2
  124. package/esm/mark/range.js.map +1 -1
  125. package/esm/mark/rangeX.js +6 -2
  126. package/esm/mark/rangeX.js.map +1 -1
  127. package/esm/mark/rangeY.js +6 -2
  128. package/esm/mark/rangeY.js.map +1 -1
  129. package/esm/mark/rect.js +9 -3
  130. package/esm/mark/rect.js.map +1 -1
  131. package/esm/mark/shape.js +9 -3
  132. package/esm/mark/shape.js.map +1 -1
  133. package/esm/mark/text.js +10 -4
  134. package/esm/mark/text.js.map +1 -1
  135. package/esm/mark/treemap.js.map +1 -1
  136. package/esm/mark/utils.d.ts +11 -8
  137. package/esm/mark/utils.js +8 -7
  138. package/esm/mark/utils.js.map +1 -1
  139. package/esm/mark/vector.js +6 -2
  140. package/esm/mark/vector.js.map +1 -1
  141. package/esm/runtime/index.d.ts +1 -1
  142. package/esm/runtime/index.js +1 -1
  143. package/esm/runtime/index.js.map +1 -1
  144. package/esm/runtime/plot.js +32 -13
  145. package/esm/runtime/plot.js.map +1 -1
  146. package/esm/runtime/render.js +3 -6
  147. package/esm/runtime/render.js.map +1 -1
  148. package/esm/runtime/types/component.d.ts +1 -1
  149. package/esm/runtime/types/mark.d.ts +4 -0
  150. package/esm/runtime/types/options.d.ts +4 -1
  151. package/esm/shape/index.d.ts +106 -101
  152. package/esm/shape/index.js +58 -53
  153. package/esm/shape/index.js.map +1 -1
  154. package/esm/shape/text/advance.js +3 -3
  155. package/esm/shape/text/advance.js.map +1 -1
  156. package/esm/spec/composition.d.ts +7 -0
  157. package/esm/spec/dataTransform.d.ts +3 -2
  158. package/esm/spec/index.d.ts +1 -0
  159. package/esm/spec/index.js.map +1 -1
  160. package/esm/spec/interaction.d.ts +4 -1
  161. package/esm/theme/academy.js +6 -6
  162. package/esm/theme/classic.js +6 -7
  163. package/esm/theme/classic.js.map +1 -1
  164. package/esm/theme/classicDark.js +6 -6
  165. package/esm/utils/coordinate.d.ts +2 -2
  166. package/esm/utils/scale.d.ts +1 -1
  167. package/esm/utils/scale.js +1 -1
  168. package/esm/utils/scale.js.map +1 -1
  169. package/lib/api/chart.d.ts +175 -85
  170. package/lib/api/chart.js +4 -263
  171. package/lib/api/chart.js.map +1 -1
  172. package/lib/api/composition.d.ts +37 -0
  173. package/lib/api/{composition/base.js → composition.js} +16 -5
  174. package/lib/api/composition.js.map +1 -0
  175. package/lib/api/define.d.ts +14 -0
  176. package/lib/api/define.js +97 -0
  177. package/lib/api/define.js.map +1 -0
  178. package/lib/api/extend.d.ts +10 -0
  179. package/lib/api/extend.js +13 -0
  180. package/lib/api/extend.js.map +1 -0
  181. package/lib/api/index.d.ts +2 -0
  182. package/lib/api/index.js +5 -1
  183. package/lib/api/index.js.map +1 -1
  184. package/lib/api/library.d.ts +171 -1
  185. package/lib/api/library.js +2 -2
  186. package/lib/api/library.js.map +1 -1
  187. package/lib/api/mark.d.ts +29 -0
  188. package/lib/api/{mark/base.js → mark.js} +15 -4
  189. package/lib/api/mark.js.map +1 -0
  190. package/lib/api/node.d.ts +2 -2
  191. package/lib/api/node.js.map +1 -1
  192. package/lib/api/props.d.ts +170 -12
  193. package/lib/api/props.js +22 -106
  194. package/lib/api/props.js.map +1 -1
  195. package/lib/api/runtime.d.ts +66 -0
  196. package/lib/api/runtime.js +301 -0
  197. package/lib/api/runtime.js.map +1 -0
  198. package/lib/api/types.d.ts +60 -5
  199. package/lib/api/utils.d.ts +1 -1
  200. package/lib/api/utils.js +14 -16
  201. package/lib/api/utils.js.map +1 -1
  202. package/lib/component/axis.js +7 -4
  203. package/lib/component/axis.js.map +1 -1
  204. package/lib/component/legendCategory.js +4 -5
  205. package/lib/component/legendCategory.js.map +1 -1
  206. package/lib/composition/d3Projection.js.map +1 -0
  207. package/lib/composition/geoPath.js.map +1 -0
  208. package/lib/{geo → composition}/geoView.js +1 -1
  209. package/lib/composition/geoView.js.map +1 -0
  210. package/lib/composition/index.d.ts +2 -0
  211. package/lib/composition/index.js +5 -1
  212. package/lib/composition/index.js.map +1 -1
  213. package/lib/data/index.d.ts +2 -0
  214. package/lib/data/index.js +3 -1
  215. package/lib/data/index.js.map +1 -1
  216. package/lib/data/log.d.ts +7 -0
  217. package/lib/data/log.js +15 -0
  218. package/lib/data/log.js.map +1 -0
  219. package/lib/index.d.ts +4 -3
  220. package/lib/index.js +8 -3
  221. package/lib/index.js.map +1 -1
  222. package/lib/interaction/brushFilter.js +18 -16
  223. package/lib/interaction/brushFilter.js.map +1 -1
  224. package/lib/interaction/chartIndex.js +25 -22
  225. package/lib/interaction/chartIndex.js.map +1 -1
  226. package/lib/interaction/fisheye.js +17 -13
  227. package/lib/interaction/fisheye.js.map +1 -1
  228. package/lib/interaction/legendFilter.js +32 -26
  229. package/lib/interaction/legendFilter.js.map +1 -1
  230. package/lib/interaction/sliderFilter.js +8 -9
  231. package/lib/interaction/sliderFilter.js.map +1 -1
  232. package/lib/interaction/tooltip.d.ts +1 -1
  233. package/lib/interaction/tooltip.js +38 -3
  234. package/lib/interaction/tooltip.js.map +1 -1
  235. package/lib/label-transform/overlapDodgeY.js.map +1 -1
  236. package/lib/lib/core.d.ts +159 -0
  237. package/lib/lib/core.js +179 -0
  238. package/lib/lib/core.js.map +1 -0
  239. package/lib/lib/geo.d.ts +4 -0
  240. package/lib/lib/geo.js +13 -0
  241. package/lib/lib/geo.js.map +1 -0
  242. package/lib/lib/graph.d.ts +4 -0
  243. package/lib/lib/graph.js +12 -0
  244. package/lib/lib/graph.js.map +1 -0
  245. package/lib/lib/index.d.ts +6 -0
  246. package/lib/lib/index.js +16 -0
  247. package/lib/lib/index.js.map +1 -0
  248. package/lib/lib/lite.d.ts +64 -0
  249. package/lib/lib/lite.js +82 -0
  250. package/lib/lib/lite.js.map +1 -0
  251. package/lib/lib/plot.d.ts +11 -0
  252. package/lib/lib/plot.js +20 -0
  253. package/lib/lib/plot.js.map +1 -0
  254. package/lib/lib/std.d.ts +171 -0
  255. package/lib/lib/std.js +12 -0
  256. package/lib/lib/std.js.map +1 -0
  257. package/lib/mark/area.js +14 -5
  258. package/lib/mark/area.js.map +1 -1
  259. package/lib/mark/box.js +9 -2
  260. package/lib/mark/box.js.map +1 -1
  261. package/lib/mark/cell.js +11 -5
  262. package/lib/mark/cell.js.map +1 -1
  263. package/lib/mark/connector.js +6 -2
  264. package/lib/mark/connector.js.map +1 -1
  265. package/lib/mark/density.js +10 -7
  266. package/lib/mark/density.js.map +1 -1
  267. package/lib/mark/forceGraph.js +0 -3
  268. package/lib/mark/forceGraph.js.map +1 -1
  269. package/lib/mark/heatmap.js +9 -4
  270. package/lib/mark/heatmap.js.map +1 -1
  271. package/lib/mark/image.js +9 -4
  272. package/lib/mark/image.js.map +1 -1
  273. package/lib/mark/interval.js +13 -7
  274. package/lib/mark/interval.js.map +1 -1
  275. package/lib/mark/line.js +15 -4
  276. package/lib/mark/line.js.map +1 -1
  277. package/lib/mark/lineX.js +8 -3
  278. package/lib/mark/lineX.js.map +1 -1
  279. package/lib/mark/lineY.js +8 -3
  280. package/lib/mark/lineY.js.map +1 -1
  281. package/lib/mark/link.js +12 -4
  282. package/lib/mark/link.js.map +1 -1
  283. package/lib/mark/path.js +7 -2
  284. package/lib/mark/path.js.map +1 -1
  285. package/lib/mark/point.js +28 -29
  286. package/lib/mark/point.js.map +1 -1
  287. package/lib/mark/polygon.js +7 -2
  288. package/lib/mark/polygon.js.map +1 -1
  289. package/lib/mark/range.js +4 -2
  290. package/lib/mark/range.js.map +1 -1
  291. package/lib/mark/rangeX.js +6 -2
  292. package/lib/mark/rangeX.js.map +1 -1
  293. package/lib/mark/rangeY.js +6 -2
  294. package/lib/mark/rangeY.js.map +1 -1
  295. package/lib/mark/rect.js +9 -3
  296. package/lib/mark/rect.js.map +1 -1
  297. package/lib/mark/shape.js +9 -3
  298. package/lib/mark/shape.js.map +1 -1
  299. package/lib/mark/text.js +10 -4
  300. package/lib/mark/text.js.map +1 -1
  301. package/lib/mark/treemap.js.map +1 -1
  302. package/lib/mark/utils.d.ts +11 -8
  303. package/lib/mark/utils.js +8 -7
  304. package/lib/mark/utils.js.map +1 -1
  305. package/lib/mark/vector.js +6 -2
  306. package/lib/mark/vector.js.map +1 -1
  307. package/lib/runtime/index.d.ts +1 -1
  308. package/lib/runtime/index.js +4 -4
  309. package/lib/runtime/index.js.map +1 -1
  310. package/lib/runtime/plot.js +32 -13
  311. package/lib/runtime/plot.js.map +1 -1
  312. package/lib/runtime/render.js +3 -6
  313. package/lib/runtime/render.js.map +1 -1
  314. package/lib/runtime/types/component.d.ts +1 -1
  315. package/lib/runtime/types/mark.d.ts +4 -0
  316. package/lib/runtime/types/options.d.ts +4 -1
  317. package/lib/shape/index.d.ts +106 -101
  318. package/lib/shape/index.js +71 -61
  319. package/lib/shape/index.js.map +1 -1
  320. package/lib/shape/text/advance.js +3 -3
  321. package/lib/shape/text/advance.js.map +1 -1
  322. package/lib/spec/composition.d.ts +7 -0
  323. package/lib/spec/dataTransform.d.ts +3 -2
  324. package/lib/spec/index.d.ts +1 -0
  325. package/lib/spec/index.js.map +1 -1
  326. package/lib/spec/interaction.d.ts +4 -1
  327. package/lib/theme/academy.js +6 -6
  328. package/lib/theme/classic.js +6 -7
  329. package/lib/theme/classic.js.map +1 -1
  330. package/lib/theme/classicDark.js +6 -6
  331. package/lib/utils/coordinate.d.ts +2 -2
  332. package/lib/utils/scale.d.ts +1 -1
  333. package/lib/utils/scale.js +1 -1
  334. package/lib/utils/scale.js.map +1 -1
  335. package/package.json +8 -7
  336. package/src/api/chart.ts +5 -341
  337. package/src/api/{composition/base.ts → composition.ts} +16 -8
  338. package/src/api/define.ts +128 -0
  339. package/src/api/extend.ts +36 -0
  340. package/src/api/index.ts +2 -0
  341. package/src/api/library.ts +2 -2
  342. package/src/api/{mark/base.ts → mark.ts} +10 -7
  343. package/src/api/node.ts +3 -3
  344. package/src/api/props.ts +30 -114
  345. package/src/api/runtime.ts +366 -0
  346. package/src/api/types.ts +95 -17
  347. package/src/api/utils.ts +28 -11
  348. package/src/component/axis.ts +10 -5
  349. package/src/component/legendCategory.ts +4 -6
  350. package/src/{geo → composition}/geoView.ts +1 -1
  351. package/src/composition/index.ts +2 -0
  352. package/src/data/index.ts +2 -0
  353. package/src/data/log.ts +16 -0
  354. package/src/index.ts +12 -3
  355. package/src/interaction/brushFilter.ts +31 -28
  356. package/src/interaction/chartIndex.ts +26 -23
  357. package/src/interaction/fisheye.ts +16 -12
  358. package/src/interaction/legendFilter.ts +45 -40
  359. package/src/interaction/sliderFilter.ts +15 -16
  360. package/src/interaction/tooltip.ts +47 -3
  361. package/src/label-transform/overlapDodgeY.ts +0 -1
  362. package/src/{stdlib/index.ts → lib/core.ts} +76 -258
  363. package/src/lib/geo.ts +9 -0
  364. package/src/lib/graph.ts +8 -0
  365. package/src/lib/index.ts +6 -0
  366. package/src/lib/lite.ts +127 -0
  367. package/src/lib/plot.ts +16 -0
  368. package/src/lib/std.ts +13 -0
  369. package/src/mark/area.ts +15 -6
  370. package/src/mark/box.ts +10 -2
  371. package/src/mark/cell.ts +12 -6
  372. package/src/mark/connector.ts +7 -3
  373. package/src/mark/density.ts +11 -8
  374. package/src/mark/forceGraph.ts +0 -3
  375. package/src/mark/heatmap.ts +10 -5
  376. package/src/mark/image.ts +10 -5
  377. package/src/mark/interval.ts +22 -10
  378. package/src/mark/line.ts +23 -5
  379. package/src/mark/lineX.ts +9 -4
  380. package/src/mark/lineY.ts +9 -4
  381. package/src/mark/link.ts +13 -5
  382. package/src/mark/path.ts +8 -3
  383. package/src/mark/point.ts +49 -30
  384. package/src/mark/polygon.ts +8 -3
  385. package/src/mark/range.ts +5 -3
  386. package/src/mark/rangeX.ts +7 -3
  387. package/src/mark/rangeY.ts +7 -3
  388. package/src/mark/rect.ts +10 -4
  389. package/src/mark/shape.ts +14 -3
  390. package/src/mark/text.ts +11 -5
  391. package/src/mark/treemap.ts +0 -1
  392. package/src/mark/utils.ts +9 -8
  393. package/src/mark/vector.ts +7 -3
  394. package/src/runtime/index.ts +1 -1
  395. package/src/runtime/plot.ts +41 -17
  396. package/src/runtime/render.ts +3 -6
  397. package/src/runtime/types/component.ts +1 -2
  398. package/src/runtime/types/mark.ts +4 -0
  399. package/src/runtime/types/options.ts +4 -1
  400. package/src/shape/index.ts +106 -110
  401. package/src/shape/text/advance.ts +1 -2
  402. package/src/spec/composition.ts +7 -0
  403. package/src/spec/dataTransform.ts +5 -0
  404. package/src/spec/index.ts +1 -0
  405. package/src/spec/interaction.ts +5 -1
  406. package/src/theme/academy.ts +6 -6
  407. package/src/theme/classic.ts +6 -7
  408. package/src/theme/classicDark.ts +6 -6
  409. package/src/utils/scale.ts +1 -1
  410. package/esm/api/composition/base.d.ts +0 -28
  411. package/esm/api/composition/base.js.map +0 -1
  412. package/esm/api/composition/facetCircle.d.ts +0 -17
  413. package/esm/api/composition/facetCircle.js +0 -27
  414. package/esm/api/composition/facetCircle.js.map +0 -1
  415. package/esm/api/composition/facetRect.d.ts +0 -17
  416. package/esm/api/composition/facetRect.js +0 -27
  417. package/esm/api/composition/facetRect.js.map +0 -1
  418. package/esm/api/composition/geoPath.d.ts +0 -20
  419. package/esm/api/composition/geoPath.js +0 -30
  420. package/esm/api/composition/geoPath.js.map +0 -1
  421. package/esm/api/composition/geoView.d.ts +0 -19
  422. package/esm/api/composition/geoView.js +0 -28
  423. package/esm/api/composition/geoView.js.map +0 -1
  424. package/esm/api/composition/index.d.ts +0 -33
  425. package/esm/api/composition/index.js +0 -32
  426. package/esm/api/composition/index.js.map +0 -1
  427. package/esm/api/composition/repeatMatrix.d.ts +0 -17
  428. package/esm/api/composition/repeatMatrix.js +0 -27
  429. package/esm/api/composition/repeatMatrix.js.map +0 -1
  430. package/esm/api/composition/spaceFlex.d.ts +0 -12
  431. package/esm/api/composition/spaceFlex.js +0 -19
  432. package/esm/api/composition/spaceFlex.js.map +0 -1
  433. package/esm/api/composition/spaceLayer.d.ts +0 -12
  434. package/esm/api/composition/spaceLayer.js +0 -19
  435. package/esm/api/composition/spaceLayer.js.map +0 -1
  436. package/esm/api/composition/timingKeyframe.d.ts +0 -11
  437. package/esm/api/composition/timingKeyframe.js +0 -19
  438. package/esm/api/composition/timingKeyframe.js.map +0 -1
  439. package/esm/api/composition/view.d.ts +0 -19
  440. package/esm/api/composition/view.js +0 -29
  441. package/esm/api/composition/view.js.map +0 -1
  442. package/esm/api/mark/base.d.ts +0 -22
  443. package/esm/api/mark/base.js.map +0 -1
  444. package/esm/api/mark/index.d.ts +0 -75
  445. package/esm/api/mark/index.js +0 -39
  446. package/esm/api/mark/index.js.map +0 -1
  447. package/esm/api/mark/mark.d.ts +0 -212
  448. package/esm/api/mark/mark.js +0 -339
  449. package/esm/api/mark/mark.js.map +0 -1
  450. package/esm/api/mark/types.d.ts +0 -26
  451. package/esm/api/mark/types.js +0 -2
  452. package/esm/api/mark/types.js.map +0 -1
  453. package/esm/geo/d3Projection.js.map +0 -1
  454. package/esm/geo/geoPath.js.map +0 -1
  455. package/esm/geo/geoView.js.map +0 -1
  456. package/esm/geo/index.d.ts +0 -9
  457. package/esm/geo/index.js +0 -8
  458. package/esm/geo/index.js.map +0 -1
  459. package/esm/stdlib/index.d.ts +0 -2
  460. package/esm/stdlib/index.js +0 -21
  461. package/esm/stdlib/index.js.map +0 -1
  462. package/lib/api/composition/base.d.ts +0 -28
  463. package/lib/api/composition/base.js.map +0 -1
  464. package/lib/api/composition/facetCircle.d.ts +0 -17
  465. package/lib/api/composition/facetCircle.js +0 -30
  466. package/lib/api/composition/facetCircle.js.map +0 -1
  467. package/lib/api/composition/facetRect.d.ts +0 -17
  468. package/lib/api/composition/facetRect.js +0 -30
  469. package/lib/api/composition/facetRect.js.map +0 -1
  470. package/lib/api/composition/geoPath.d.ts +0 -20
  471. package/lib/api/composition/geoPath.js +0 -33
  472. package/lib/api/composition/geoPath.js.map +0 -1
  473. package/lib/api/composition/geoView.d.ts +0 -19
  474. package/lib/api/composition/geoView.js +0 -31
  475. package/lib/api/composition/geoView.js.map +0 -1
  476. package/lib/api/composition/index.d.ts +0 -33
  477. package/lib/api/composition/index.js +0 -44
  478. package/lib/api/composition/index.js.map +0 -1
  479. package/lib/api/composition/repeatMatrix.d.ts +0 -17
  480. package/lib/api/composition/repeatMatrix.js +0 -30
  481. package/lib/api/composition/repeatMatrix.js.map +0 -1
  482. package/lib/api/composition/spaceFlex.d.ts +0 -12
  483. package/lib/api/composition/spaceFlex.js +0 -22
  484. package/lib/api/composition/spaceFlex.js.map +0 -1
  485. package/lib/api/composition/spaceLayer.d.ts +0 -12
  486. package/lib/api/composition/spaceLayer.js +0 -22
  487. package/lib/api/composition/spaceLayer.js.map +0 -1
  488. package/lib/api/composition/timingKeyframe.d.ts +0 -11
  489. package/lib/api/composition/timingKeyframe.js +0 -22
  490. package/lib/api/composition/timingKeyframe.js.map +0 -1
  491. package/lib/api/composition/view.d.ts +0 -19
  492. package/lib/api/composition/view.js +0 -32
  493. package/lib/api/composition/view.js.map +0 -1
  494. package/lib/api/mark/base.d.ts +0 -22
  495. package/lib/api/mark/base.js.map +0 -1
  496. package/lib/api/mark/index.d.ts +0 -75
  497. package/lib/api/mark/index.js +0 -43
  498. package/lib/api/mark/index.js.map +0 -1
  499. package/lib/api/mark/mark.d.ts +0 -212
  500. package/lib/api/mark/mark.js +0 -342
  501. package/lib/api/mark/mark.js.map +0 -1
  502. package/lib/api/mark/types.d.ts +0 -26
  503. package/lib/api/mark/types.js +0 -3
  504. package/lib/api/mark/types.js.map +0 -1
  505. package/lib/geo/d3Projection.js.map +0 -1
  506. package/lib/geo/geoPath.js.map +0 -1
  507. package/lib/geo/geoView.js.map +0 -1
  508. package/lib/geo/index.d.ts +0 -9
  509. package/lib/geo/index.js +0 -12
  510. package/lib/geo/index.js.map +0 -1
  511. package/lib/stdlib/index.d.ts +0 -2
  512. package/lib/stdlib/index.js +0 -25
  513. package/lib/stdlib/index.js.map +0 -1
  514. package/src/api/composition/facetCircle.ts +0 -36
  515. package/src/api/composition/facetRect.ts +0 -36
  516. package/src/api/composition/geoPath.ts +0 -37
  517. package/src/api/composition/geoView.ts +0 -39
  518. package/src/api/composition/index.ts +0 -57
  519. package/src/api/composition/repeatMatrix.ts +0 -36
  520. package/src/api/composition/spaceFlex.ts +0 -18
  521. package/src/api/composition/spaceLayer.ts +0 -18
  522. package/src/api/composition/timingKeyframe.ts +0 -16
  523. package/src/api/composition/view.ts +0 -42
  524. package/src/api/mark/index.ts +0 -113
  525. package/src/api/mark/mark.ts +0 -439
  526. package/src/api/mark/types.ts +0 -31
  527. package/src/geo/index.ts +0 -12
  528. /package/esm/{geo → composition}/d3Projection.d.ts +0 -0
  529. /package/esm/{geo → composition}/d3Projection.js +0 -0
  530. /package/esm/{geo → composition}/geoPath.d.ts +0 -0
  531. /package/esm/{geo → composition}/geoPath.js +0 -0
  532. /package/esm/{geo → composition}/geoView.d.ts +0 -0
  533. /package/lib/{geo → composition}/d3Projection.d.ts +0 -0
  534. /package/lib/{geo → composition}/d3Projection.js +0 -0
  535. /package/lib/{geo → composition}/geoPath.d.ts +0 -0
  536. /package/lib/{geo → composition}/geoPath.js +0 -0
  537. /package/lib/{geo → composition}/geoView.d.ts +0 -0
  538. /package/src/{geo → composition}/d3Projection.ts +0 -0
  539. /package/src/{geo → composition}/geoPath.ts +0 -0
@@ -0,0 +1,64 @@
1
+ import { Tooltip, LegendFilter, LegendHighlight, SliderFilter, Poptip, Event, ScrollbarFilter } from '../interaction';
2
+ /**
3
+ * In test stage, don't use it.
4
+ */
5
+ export declare function litelib(): {
6
+ readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
7
+ readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
8
+ readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
9
+ readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
10
+ readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
11
+ readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
12
+ readonly 'mark.interval': import("../runtime").MarkComponent<import("../mark").IntervalOptions>;
13
+ readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
14
+ readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
15
+ readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
16
+ readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
17
+ readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
18
+ readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
19
+ readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
20
+ readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
21
+ readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
22
+ readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
23
+ readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
24
+ readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
25
+ readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
26
+ readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
27
+ readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
28
+ readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
29
+ readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
30
+ readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
31
+ readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
32
+ readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
33
+ readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
34
+ readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
35
+ readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
36
+ readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
37
+ readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
38
+ readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
39
+ readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
40
+ readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
41
+ readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
42
+ readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
43
+ readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
44
+ readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
45
+ readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
46
+ readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
47
+ readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
48
+ readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
49
+ readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
50
+ readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
51
+ readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
52
+ readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
53
+ readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
54
+ readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
55
+ readonly 'interaction.tooltip': typeof Tooltip;
56
+ readonly 'interaction.legendFilter': typeof LegendFilter;
57
+ readonly 'interaction.legendHighlight': typeof LegendHighlight;
58
+ readonly 'interaction.sliderFilter': typeof SliderFilter;
59
+ readonly 'interaction.scrollbarFilter': typeof ScrollbarFilter;
60
+ readonly 'interaction.poptip': typeof Poptip;
61
+ readonly 'interaction.event': typeof Event;
62
+ readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
63
+ readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
64
+ };
@@ -0,0 +1,78 @@
1
+ import { Cartesian } from '../coordinate';
2
+ import { Constant, Field, Transform, Column } from '../encode';
3
+ import { Interval } from '../mark';
4
+ import { Category10, Category20 } from '../palette';
5
+ import { Linear as ScaleLinear, Ordinal as ScaleOrdinal, Band as ScaleBand, Identity as ScaleIdenity, Point as ScalePoint, Time as ScaleTime, Log as ScaleLog, Pow as ScalePow, Threshold as ScaleThreshold, Quantile as ScaleQuantile, Quantize as ScaleQuantize, Sqrt as ScaleSqrt, Sequential as ScaleSequential, Constant as ScaleConstant, } from '../scale';
6
+ import { Classic } from '../theme';
7
+ import { AxisLinear, AxisArc, AxisX, AxisY, AxisRadar, LegendCategory, LegendContinuous, LegendContinuousBlock, LegendContinuousBlockSize, LegendContinuousSize, TitleComponent, SliderX, SliderY, ScrollbarX, ScrollbarY, Legends, } from '../component';
8
+ import { ScaleInX, ScaleOutX, ScaleInY, ScaleOutY, WaveIn, FadeIn, FadeOut, Morphing, } from '../animation';
9
+ import { Tooltip, LegendFilter, LegendHighlight, SliderFilter, Poptip, Event, ScrollbarFilter, } from '../interaction';
10
+ import { Mark, View } from '../composition';
11
+ import { LabelShape } from '../shape';
12
+ import { Inline } from '../data';
13
+ /**
14
+ * In test stage, don't use it.
15
+ */
16
+ export function litelib() {
17
+ return {
18
+ 'data.inline': Inline,
19
+ 'coordinate.cartesian': Cartesian,
20
+ 'encode.constant': Constant,
21
+ 'encode.field': Field,
22
+ 'encode.transform': Transform,
23
+ 'encode.column': Column,
24
+ 'mark.interval': Interval,
25
+ 'shape.label.label': LabelShape,
26
+ 'palette.category10': Category10,
27
+ 'palette.category20': Category20,
28
+ 'scale.linear': ScaleLinear,
29
+ 'scale.ordinal': ScaleOrdinal,
30
+ 'scale.band': ScaleBand,
31
+ 'scale.identity': ScaleIdenity,
32
+ 'scale.point': ScalePoint,
33
+ 'scale.time': ScaleTime,
34
+ 'scale.log': ScaleLog,
35
+ 'scale.pow': ScalePow,
36
+ 'scale.sqrt': ScaleSqrt,
37
+ 'scale.threshold': ScaleThreshold,
38
+ 'scale.quantile': ScaleQuantile,
39
+ 'scale.quantize': ScaleQuantize,
40
+ 'scale.sequential': ScaleSequential,
41
+ 'scale.constant': ScaleConstant,
42
+ 'theme.classic': Classic,
43
+ 'component.axisX': AxisX,
44
+ 'component.axisY': AxisY,
45
+ 'component.axisRadar': AxisRadar,
46
+ 'component.axisLinear': AxisLinear,
47
+ 'component.axisArc': AxisArc,
48
+ 'component.legendCategory': LegendCategory,
49
+ 'component.legendContinuous': LegendContinuous,
50
+ 'component.legendContinuousBlock': LegendContinuousBlock,
51
+ 'component.legendContinuousBlockSize': LegendContinuousBlockSize,
52
+ 'component.legendContinuousSize': LegendContinuousSize,
53
+ 'component.legends': Legends,
54
+ 'component.title': TitleComponent,
55
+ 'component.sliderX': SliderX,
56
+ 'component.sliderY': SliderY,
57
+ 'component.scrollbarX': ScrollbarX,
58
+ 'component.scrollbarY': ScrollbarY,
59
+ 'animation.scaleInX': ScaleInX,
60
+ 'animation.scaleOutX': ScaleOutX,
61
+ 'animation.scaleInY': ScaleInY,
62
+ 'animation.scaleOutY': ScaleOutY,
63
+ 'animation.waveIn': WaveIn,
64
+ 'animation.fadeIn': FadeIn,
65
+ 'animation.fadeOut': FadeOut,
66
+ 'animation.morphing': Morphing,
67
+ 'interaction.tooltip': Tooltip,
68
+ 'interaction.legendFilter': LegendFilter,
69
+ 'interaction.legendHighlight': LegendHighlight,
70
+ 'interaction.sliderFilter': SliderFilter,
71
+ 'interaction.scrollbarFilter': ScrollbarFilter,
72
+ 'interaction.poptip': Poptip,
73
+ 'interaction.event': Event,
74
+ 'composition.mark': Mark,
75
+ 'composition.view': View,
76
+ };
77
+ }
78
+ //# sourceMappingURL=lite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lite.js","sourceRoot":"src/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QAClC,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,SAAS;QAChC,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,SAAS;QAChC,kBAAkB,EAAE,MAAM;QAC1B,kBAAkB,EAAE,MAAM;QAC1B,mBAAmB,EAAE,OAAO;QAC5B,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,OAAO;QAC9B,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,oBAAoB,EAAE,MAAM;QAC5B,mBAAmB,EAAE,KAAK;QAC1B,kBAAkB,EAAE,IAAI;QACxB,kBAAkB,EAAE,IAAI;KAChB,CAAC;AACb,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare function plotlib(): {
2
+ readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
3
+ readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
4
+ readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
5
+ readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("../mark").SankeyOptions>;
6
+ readonly 'mark.treemap': import("../runtime").CompositionComponent<import("../mark").TreemapOptions>;
7
+ readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
8
+ readonly 'mark.pack': import("../runtime").CompositionComponent<import("../mark").PackOptions>;
9
+ readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("../mark").GaugeOptions>;
10
+ readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("../mark").WordCloudOptions>;
11
+ };
@@ -0,0 +1,16 @@
1
+ import { Sankey, Treemap, Pack, Boxplot, WordCloud, Gauge } from '../mark';
2
+ import { Arc, Cluster, Venn } from '../data';
3
+ export function plotlib() {
4
+ return {
5
+ 'data.venn': Venn,
6
+ 'data.arc': Arc,
7
+ 'data.cluster': Cluster,
8
+ 'mark.sankey': Sankey,
9
+ 'mark.treemap': Treemap,
10
+ 'mark.boxplot': Boxplot,
11
+ 'mark.pack': Pack,
12
+ 'mark.gauge': Gauge,
13
+ 'mark.wordCloud': WordCloud,
14
+ };
15
+ }
16
+ //# sourceMappingURL=plot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot.js","sourceRoot":"src/","sources":["lib/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,UAAU,OAAO;IACrB,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,OAAO;QACvB,aAAa,EAAE,MAAM;QACrB,cAAc,EAAE,OAAO;QACvB,cAAc,EAAE,OAAO;QACvB,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;QACnB,gBAAgB,EAAE,SAAS;KACnB,CAAC;AACb,CAAC"}
@@ -0,0 +1,171 @@
1
+ export declare function stdlib(): {
2
+ readonly 'data.fetch': import("../runtime").DataComponent<import("../data").FetchOptions>;
3
+ readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
4
+ readonly 'data.sortBy': import("../runtime").DataComponent<import("../data").SortByOptions>;
5
+ readonly 'data.sort': import("../runtime").DataComponent<import("../data").SortOptions>;
6
+ readonly 'data.filter': import("../runtime").DataComponent<import("../data").FilterDataOptions>;
7
+ readonly 'data.pick': import("../runtime").DataComponent<import("../data").PickOptions>;
8
+ readonly 'data.rename': import("../runtime").DataComponent<import("../data").RenameOptions>;
9
+ readonly 'data.fold': import("../runtime").DataComponent<import("../data").FoldOptions>;
10
+ readonly 'data.slice': import("../runtime").DataComponent<import("../data").SliceOptions>;
11
+ readonly 'data.custom': import("../runtime").DataComponent<import("../data").CustomOptions>;
12
+ readonly 'data.map': import("../runtime").DataComponent<import("../data").MapOptions>;
13
+ readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
14
+ readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
15
+ readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
16
+ readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
17
+ readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
18
+ readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
19
+ readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
20
+ readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
21
+ readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
22
+ readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
23
+ readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
24
+ readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
25
+ readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
26
+ readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
27
+ readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
28
+ readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
29
+ readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
30
+ readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
31
+ readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
32
+ readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
33
+ readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
34
+ readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
35
+ readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
36
+ readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
37
+ readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
38
+ readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
39
+ readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
40
+ readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
41
+ readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
42
+ readonly 'coordinate.helix': import("../runtime").CoordinateComponent<import("..").HelixCoordinate>;
43
+ readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
44
+ readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("..").ThetaCoordinate>;
45
+ readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
46
+ readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("..").FisheyeCoordinate>;
47
+ readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
48
+ readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("..").RadarCoordinate>;
49
+ readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
50
+ readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
51
+ readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
52
+ readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
53
+ readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
54
+ readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
55
+ readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
56
+ readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
57
+ readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
58
+ readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
59
+ readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
60
+ readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
61
+ readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
62
+ readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
63
+ readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
64
+ readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
65
+ readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
66
+ readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
67
+ readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
68
+ readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
69
+ readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
70
+ readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
71
+ readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
72
+ readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
73
+ readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
74
+ readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
75
+ readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
76
+ readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
77
+ readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
78
+ readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
79
+ readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
80
+ readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
81
+ readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
82
+ readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
83
+ readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
84
+ readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
85
+ readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
86
+ readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
87
+ readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
88
+ readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
89
+ readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
90
+ readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
91
+ readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
92
+ readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
93
+ readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
94
+ readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
95
+ readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
96
+ readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
97
+ readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
98
+ readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
99
+ readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
100
+ readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
101
+ readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
102
+ readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
103
+ readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
104
+ readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
105
+ readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
106
+ readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
107
+ readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
108
+ readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
109
+ readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
110
+ readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
111
+ readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
112
+ readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
113
+ readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
114
+ readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
115
+ readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
116
+ readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
117
+ readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
118
+ readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
119
+ readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
120
+ readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
121
+ readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
122
+ readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
123
+ readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
124
+ readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
125
+ readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
126
+ readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
127
+ readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
128
+ readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
129
+ readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
130
+ readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
131
+ readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
132
+ readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
133
+ readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
134
+ readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
135
+ readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
136
+ readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
137
+ readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
138
+ readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
139
+ readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
140
+ readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
141
+ readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
142
+ readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
143
+ readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
144
+ readonly 'interaction.poptip': typeof import("../interaction").Poptip;
145
+ readonly 'interaction.event': typeof import("../interaction").Event;
146
+ readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
147
+ readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
148
+ readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
149
+ readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
150
+ readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
151
+ readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("..").RepeatMatrixComposition>;
152
+ readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("..").FacetCircleComposition>;
153
+ readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
154
+ readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
155
+ readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
156
+ readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
157
+ readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
158
+ readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
159
+ readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
160
+ readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
161
+ readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
162
+ readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
163
+ readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
164
+ readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
165
+ readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
166
+ readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
167
+ readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
168
+ readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
169
+ readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
170
+ readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
171
+ };
package/esm/lib/std.js ADDED
@@ -0,0 +1,8 @@
1
+ import { corelib } from './core';
2
+ import { geolib } from './geo';
3
+ import { graphlib } from './graph';
4
+ import { plotlib } from './plot';
5
+ export function stdlib() {
6
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, geolib()), graphlib()), plotlib()), corelib());
7
+ }
8
+ //# sourceMappingURL=std.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std.js","sourceRoot":"src/","sources":["lib/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,UAAU,MAAM;IACpB,OAAO,4DACF,MAAM,EAAE,GACR,QAAQ,EAAE,GACV,OAAO,EAAE,GACT,OAAO,EAAE,CACJ,CAAC;AACb,CAAC"}
package/esm/mark/area.js CHANGED
@@ -1,5 +1,14 @@
1
1
  import { group } from 'd3-array';
2
+ import { AreaShape, AreaHV, AreaHVH, AreaSmooth, AreaVH } from '../shape';
3
+ import { MaybeSeries, MaybeZeroY1, MaybeZeroPadding } from '../transform';
2
4
  import { baseGeometryChannels, basePostInference, basePreInference, tooltip1d, } from './utils';
5
+ const shape = {
6
+ area: AreaShape,
7
+ smooth: AreaSmooth,
8
+ hvh: AreaHVH,
9
+ vh: AreaVH,
10
+ hv: AreaHV,
11
+ };
3
12
  /*
4
13
  * Convert value for each channel to area shapes.
5
14
  *
@@ -49,13 +58,13 @@ export const Area = () => {
49
58
  return [I, P, series];
50
59
  };
51
60
  };
52
- const shapes = ['area', 'smooth', 'hvh', 'hv', 'vh'];
53
61
  Area.props = {
54
62
  defaultShape: 'area',
55
63
  defaultLabelShape: 'label',
56
64
  composite: false,
65
+ shape,
57
66
  channels: [
58
- ...baseGeometryChannels({ shapes }),
67
+ ...baseGeometryChannels({ shapes: Object.keys(shape) }),
59
68
  { name: 'x', required: true },
60
69
  { name: 'y', required: true },
61
70
  { name: 'size' },
@@ -63,9 +72,9 @@ Area.props = {
63
72
  ],
64
73
  preInference: [
65
74
  ...basePreInference(),
66
- { type: 'maybeSeries' },
67
- { type: 'maybeZeroY1' },
68
- { type: 'maybeZeroPadding' },
75
+ { type: MaybeSeries },
76
+ { type: MaybeZeroY1 },
77
+ { type: MaybeZeroPadding },
69
78
  ],
70
79
  postInference: [...basePostInference(), ...tooltip1d()],
71
80
  interaction: {
@@ -1 +1 @@
1
- {"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAIjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,CAAC,MAAM,IAAI,GAAoB,GAAG,EAAE;IACxC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAChD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAEvB,8BAA8B;QAC9B,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,K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IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE;KACtC;IACD,YAAY,EAAE;QACZ,GAAG,gBAAgB,EAAE;QACrB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,gBAAgB,EAAE;KAC3B;IACD,aAAa,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC"}
package/esm/mark/box.js CHANGED
@@ -1,4 +1,10 @@
1
+ import { BoxShape, BoxViolin } from '../shape';
2
+ import { MaybeZeroX } from '../transform';
1
3
  import { baseGeometryChannels, basePostInference, basePreInference, tooltip1d, } from './utils';
4
+ const shape = {
5
+ box: BoxShape,
6
+ violin: BoxViolin,
7
+ };
2
8
  /**
3
9
  * Convert value for each channel to box shapes.
4
10
  *
@@ -74,13 +80,14 @@ Box.props = {
74
80
  defaultShape: 'box',
75
81
  defaultLabelShape: 'label',
76
82
  composite: false,
83
+ shape,
77
84
  channels: [
78
- ...baseGeometryChannels({ shapes: ['box'] }),
85
+ ...baseGeometryChannels({ shapes: Object.keys(shape) }),
79
86
  { name: 'x', scale: 'band', required: true },
80
87
  { name: 'y', required: true },
81
88
  { name: 'series', scale: 'band' },
82
89
  ],
83
- preInference: [...basePreInference(), { type: 'maybeZeroX' }],
90
+ preInference: [...basePreInference(), { type: MaybeZeroX }],
84
91
  postInference: [...basePostInference(), ...tooltip1d()],
85
92
  interaction: {
86
93
  shareTooltip: true,
@@ -1 +1 @@
1
- {"version":3,"file":"box.js","sourceRoot":"src/","sources":["mark/box.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAIjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,GAAG,GAAmB,GAAG,EAAE;IACtC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAExE,2BAA2B;QAC3B,2DAA2D;QAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAS,CAAC;QAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAc,CAAC;QAEpC,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE;YAChC,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7D,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvE,MAAM,KAAK,GAAG,UAAU,GAAG,KAAK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AAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,GAAG,CAAC,KAAK,GAAG;IACV,YAAY,EAAE,KAAK;IACnB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;KAClC;IACD,YAAY,EAAE,CAAC,GAAG,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC3D,aAAa,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
package/esm/mark/cell.js CHANGED
@@ -1,4 +1,10 @@
1
+ import { CellShape, CellHollow } from '../shape';
2
+ import { MaybeZeroX, MaybeZeroY, MaybeZeroPadding } from '../transform';
1
3
  import { baseGeometryChannels, basePostInference, basePreInference, tooltip2d, } from './utils';
4
+ const shape = {
5
+ cell: CellShape,
6
+ hollow: CellHollow,
7
+ };
2
8
  /**
3
9
  * Convert value for each channel to Cell shapes.
4
10
  * Calc the bbox of each Cell based on x, y and r.
@@ -23,21 +29,21 @@ export const Cell = () => {
23
29
  return [index, P];
24
30
  };
25
31
  };
26
- const shapes = ['cell', 'hollow'];
27
32
  Cell.props = {
28
33
  defaultShape: 'cell',
29
34
  defaultLabelShape: 'label',
35
+ shape,
30
36
  composite: false,
31
37
  channels: [
32
- ...baseGeometryChannels({ shapes }),
38
+ ...baseGeometryChannels({ shapes: Object.keys(shape) }),
33
39
  { name: 'x', required: true, scale: 'band' },
34
40
  { name: 'y', required: true, scale: 'band' },
35
41
  ],
36
42
  preInference: [
37
43
  ...basePreInference(),
38
- { type: 'maybeZeroX' },
39
- { type: 'maybeZeroY' },
40
- { type: 'maybeZeroPadding' },
44
+ { type: MaybeZeroX },
45
+ { type: MaybeZeroY },
46
+ { type: MaybeZeroPadding },
41
47
  ],
42
48
  postInference: [...basePostInference(), ...tooltip2d()],
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cell.js","sourceRoot":"src/","sources":["mark/cell.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAIjB;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAoB,GAAG,EAAE;IACxC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAC7B,MAAM,CAAC,GAAG,KAAK,CAAC,CAAS,CAAC;QAC1B,MAAM,CAAC,GAAG,KAAK,CAAC,CAAS,CAAC;QAC1B,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,MAAM,MAAM,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjB,MAAM,EAAE,GAAG,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, } from './utils';
2
3
  import { Link } from './link';
4
+ const shape = {
5
+ connector: ConnectorShape,
6
+ };
3
7
  export const Connector = (...args) => {
4
8
  return Link(...args);
5
9
  };
6
- const shapes = ['connector'];
7
10
  Connector.props = {
8
11
  defaultShape: 'connector',
9
12
  defaultLabelShape: 'label',
10
13
  composite: false,
14
+ shape,
11
15
  channels: [
12
- ...baseAnnotationChannels({ shapes }),
16
+ ...baseAnnotationChannels({ shapes: Object.keys(shape) }),
13
17
  { name: 'x', required: true },
14
18
  { name: 'y', required: true },
15
19
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,MAAM,CAAC,MAAM,SAAS,GAAyB,CAAC,GAAG,IAAI,EAAE,EAAE;IACzD,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,WAAW,CAAC,CAAC;AAE7B,SAAS,CAAC,KAAK,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,GAAG,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;QACrC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC9B;IACD,YAAY,EAAE,CAAC,GAAG,gBAAgB,EAAE,CAAC;IACrC,aAAa,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC;CACxC,CAAC"}
1
+ {"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":"AAEA,OAAO,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