@antv/g2 5.0.17 → 5.0.19

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 (529) 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 +1017 -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 +9 -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 +170 -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/component/legendContinuous.js +6 -5
  41. package/esm/component/legendContinuous.js.map +1 -1
  42. package/esm/composition/d3Projection.js.map +1 -0
  43. package/esm/composition/geoPath.js.map +1 -0
  44. package/esm/{geo → composition}/geoView.js +1 -1
  45. package/esm/composition/geoView.js.map +1 -0
  46. package/esm/composition/index.d.ts +2 -0
  47. package/esm/composition/index.js +2 -0
  48. package/esm/composition/index.js.map +1 -1
  49. package/esm/index.d.ts +4 -3
  50. package/esm/index.js +3 -2
  51. package/esm/index.js.map +1 -1
  52. package/esm/interaction/legendFilter.d.ts +2 -0
  53. package/esm/interaction/legendFilter.js +66 -37
  54. package/esm/interaction/legendFilter.js.map +1 -1
  55. package/esm/label-transform/overlapDodgeY.js.map +1 -1
  56. package/esm/lib/core.d.ts +158 -0
  57. package/esm/lib/core.js +174 -0
  58. package/esm/lib/core.js.map +1 -0
  59. package/esm/lib/geo.d.ts +4 -0
  60. package/esm/lib/geo.js +9 -0
  61. package/esm/lib/geo.js.map +1 -0
  62. package/esm/lib/graph.d.ts +4 -0
  63. package/esm/lib/graph.js +8 -0
  64. package/esm/lib/graph.js.map +1 -0
  65. package/esm/lib/index.d.ts +6 -0
  66. package/esm/lib/index.js +7 -0
  67. package/esm/lib/index.js.map +1 -0
  68. package/esm/lib/lite.d.ts +64 -0
  69. package/esm/lib/lite.js +78 -0
  70. package/esm/lib/lite.js.map +1 -0
  71. package/esm/lib/plot.d.ts +11 -0
  72. package/esm/lib/plot.js +16 -0
  73. package/esm/lib/plot.js.map +1 -0
  74. package/esm/lib/std.d.ts +170 -0
  75. package/esm/lib/std.js +8 -0
  76. package/esm/lib/std.js.map +1 -0
  77. package/esm/mark/area.js +14 -5
  78. package/esm/mark/area.js.map +1 -1
  79. package/esm/mark/box.js +9 -2
  80. package/esm/mark/box.js.map +1 -1
  81. package/esm/mark/cell.js +11 -5
  82. package/esm/mark/cell.js.map +1 -1
  83. package/esm/mark/connector.js +6 -2
  84. package/esm/mark/connector.js.map +1 -1
  85. package/esm/mark/density.js +10 -7
  86. package/esm/mark/density.js.map +1 -1
  87. package/esm/mark/forceGraph.js +0 -3
  88. package/esm/mark/forceGraph.js.map +1 -1
  89. package/esm/mark/heatmap.js +9 -4
  90. package/esm/mark/heatmap.js.map +1 -1
  91. package/esm/mark/image.js +9 -4
  92. package/esm/mark/image.js.map +1 -1
  93. package/esm/mark/interval.js +13 -7
  94. package/esm/mark/interval.js.map +1 -1
  95. package/esm/mark/line.js +15 -4
  96. package/esm/mark/line.js.map +1 -1
  97. package/esm/mark/lineX.js +13 -6
  98. package/esm/mark/lineX.js.map +1 -1
  99. package/esm/mark/lineY.js +13 -6
  100. package/esm/mark/lineY.js.map +1 -1
  101. package/esm/mark/link.js +12 -4
  102. package/esm/mark/link.js.map +1 -1
  103. package/esm/mark/path.js +7 -2
  104. package/esm/mark/path.js.map +1 -1
  105. package/esm/mark/point.js +28 -29
  106. package/esm/mark/point.js.map +1 -1
  107. package/esm/mark/polygon.js +7 -2
  108. package/esm/mark/polygon.js.map +1 -1
  109. package/esm/mark/range.js +4 -2
  110. package/esm/mark/range.js.map +1 -1
  111. package/esm/mark/rangeX.js +6 -2
  112. package/esm/mark/rangeX.js.map +1 -1
  113. package/esm/mark/rangeY.js +6 -2
  114. package/esm/mark/rangeY.js.map +1 -1
  115. package/esm/mark/rect.js +9 -3
  116. package/esm/mark/rect.js.map +1 -1
  117. package/esm/mark/shape.js +9 -3
  118. package/esm/mark/shape.js.map +1 -1
  119. package/esm/mark/text.js +10 -4
  120. package/esm/mark/text.js.map +1 -1
  121. package/esm/mark/treemap.js.map +1 -1
  122. package/esm/mark/utils.d.ts +11 -8
  123. package/esm/mark/utils.js +8 -7
  124. package/esm/mark/utils.js.map +1 -1
  125. package/esm/mark/vector.js +6 -2
  126. package/esm/mark/vector.js.map +1 -1
  127. package/esm/runtime/index.d.ts +1 -1
  128. package/esm/runtime/index.js +1 -1
  129. package/esm/runtime/index.js.map +1 -1
  130. package/esm/runtime/plot.js +14 -10
  131. package/esm/runtime/plot.js.map +1 -1
  132. package/esm/runtime/render.js +3 -6
  133. package/esm/runtime/render.js.map +1 -1
  134. package/esm/runtime/types/component.d.ts +1 -1
  135. package/esm/runtime/types/mark.d.ts +4 -0
  136. package/esm/runtime/types/options.d.ts +4 -1
  137. package/esm/runtime/types/theme.d.ts +1 -0
  138. package/esm/shape/index.d.ts +106 -101
  139. package/esm/shape/index.js +58 -53
  140. package/esm/shape/index.js.map +1 -1
  141. package/esm/shape/label/label.d.ts +7 -1
  142. package/esm/shape/label/label.js +11 -2
  143. package/esm/shape/label/label.js.map +1 -1
  144. package/esm/shape/text/advance.js +24 -11
  145. package/esm/shape/text/advance.js.map +1 -1
  146. package/esm/spec/composition.d.ts +7 -0
  147. package/esm/spec/index.d.ts +1 -0
  148. package/esm/spec/index.js.map +1 -1
  149. package/esm/spec/interaction.d.ts +2 -0
  150. package/esm/theme/academy.js +12 -6
  151. package/esm/theme/academy.js.map +1 -1
  152. package/esm/theme/classic.js +12 -7
  153. package/esm/theme/classic.js.map +1 -1
  154. package/esm/theme/classicDark.js +12 -6
  155. package/esm/theme/classicDark.js.map +1 -1
  156. package/esm/transform/filter.js +19 -6
  157. package/esm/transform/filter.js.map +1 -1
  158. package/esm/utils/coordinate.d.ts +2 -2
  159. package/esm/utils/scale.d.ts +1 -1
  160. package/esm/utils/scale.js +1 -1
  161. package/esm/utils/scale.js.map +1 -1
  162. package/esm/utils/selection.d.ts +1 -1
  163. package/esm/utils/selection.js +3 -1
  164. package/esm/utils/selection.js.map +1 -1
  165. package/lib/api/chart.d.ts +1017 -85
  166. package/lib/api/chart.js +4 -263
  167. package/lib/api/chart.js.map +1 -1
  168. package/lib/api/composition.d.ts +37 -0
  169. package/lib/api/{composition/base.js → composition.js} +16 -5
  170. package/lib/api/composition.js.map +1 -0
  171. package/lib/api/define.d.ts +14 -0
  172. package/lib/api/define.js +97 -0
  173. package/lib/api/define.js.map +1 -0
  174. package/lib/api/extend.d.ts +9 -0
  175. package/lib/api/extend.js +13 -0
  176. package/lib/api/extend.js.map +1 -0
  177. package/lib/api/index.d.ts +2 -0
  178. package/lib/api/index.js +5 -1
  179. package/lib/api/index.js.map +1 -1
  180. package/lib/api/library.d.ts +170 -1
  181. package/lib/api/library.js +2 -2
  182. package/lib/api/library.js.map +1 -1
  183. package/lib/api/mark.d.ts +29 -0
  184. package/lib/api/{mark/base.js → mark.js} +15 -4
  185. package/lib/api/mark.js.map +1 -0
  186. package/lib/api/node.d.ts +2 -2
  187. package/lib/api/node.js.map +1 -1
  188. package/lib/api/props.d.ts +170 -12
  189. package/lib/api/props.js +22 -106
  190. package/lib/api/props.js.map +1 -1
  191. package/lib/api/runtime.d.ts +66 -0
  192. package/lib/api/runtime.js +301 -0
  193. package/lib/api/runtime.js.map +1 -0
  194. package/lib/api/types.d.ts +60 -5
  195. package/lib/api/utils.d.ts +1 -1
  196. package/lib/api/utils.js +14 -16
  197. package/lib/api/utils.js.map +1 -1
  198. package/lib/component/axis.js +7 -4
  199. package/lib/component/axis.js.map +1 -1
  200. package/lib/component/legendCategory.js +4 -5
  201. package/lib/component/legendCategory.js.map +1 -1
  202. package/lib/component/legendContinuous.js +5 -4
  203. package/lib/component/legendContinuous.js.map +1 -1
  204. package/lib/composition/d3Projection.js.map +1 -0
  205. package/lib/composition/geoPath.js.map +1 -0
  206. package/lib/{geo → composition}/geoView.js +1 -1
  207. package/lib/composition/geoView.js.map +1 -0
  208. package/lib/composition/index.d.ts +2 -0
  209. package/lib/composition/index.js +5 -1
  210. package/lib/composition/index.js.map +1 -1
  211. package/lib/index.d.ts +4 -3
  212. package/lib/index.js +8 -3
  213. package/lib/index.js.map +1 -1
  214. package/lib/interaction/legendFilter.d.ts +2 -0
  215. package/lib/interaction/legendFilter.js +67 -37
  216. package/lib/interaction/legendFilter.js.map +1 -1
  217. package/lib/label-transform/overlapDodgeY.js.map +1 -1
  218. package/lib/lib/core.d.ts +158 -0
  219. package/lib/lib/core.js +178 -0
  220. package/lib/lib/core.js.map +1 -0
  221. package/lib/lib/geo.d.ts +4 -0
  222. package/lib/lib/geo.js +13 -0
  223. package/lib/lib/geo.js.map +1 -0
  224. package/lib/lib/graph.d.ts +4 -0
  225. package/lib/lib/graph.js +12 -0
  226. package/lib/lib/graph.js.map +1 -0
  227. package/lib/lib/index.d.ts +6 -0
  228. package/lib/lib/index.js +16 -0
  229. package/lib/lib/index.js.map +1 -0
  230. package/lib/lib/lite.d.ts +64 -0
  231. package/lib/lib/lite.js +82 -0
  232. package/lib/lib/lite.js.map +1 -0
  233. package/lib/lib/plot.d.ts +11 -0
  234. package/lib/lib/plot.js +20 -0
  235. package/lib/lib/plot.js.map +1 -0
  236. package/lib/lib/std.d.ts +170 -0
  237. package/lib/lib/std.js +12 -0
  238. package/lib/lib/std.js.map +1 -0
  239. package/lib/mark/area.js +14 -5
  240. package/lib/mark/area.js.map +1 -1
  241. package/lib/mark/box.js +9 -2
  242. package/lib/mark/box.js.map +1 -1
  243. package/lib/mark/cell.js +11 -5
  244. package/lib/mark/cell.js.map +1 -1
  245. package/lib/mark/connector.js +6 -2
  246. package/lib/mark/connector.js.map +1 -1
  247. package/lib/mark/density.js +10 -7
  248. package/lib/mark/density.js.map +1 -1
  249. package/lib/mark/forceGraph.js +0 -3
  250. package/lib/mark/forceGraph.js.map +1 -1
  251. package/lib/mark/heatmap.js +9 -4
  252. package/lib/mark/heatmap.js.map +1 -1
  253. package/lib/mark/image.js +9 -4
  254. package/lib/mark/image.js.map +1 -1
  255. package/lib/mark/interval.js +13 -7
  256. package/lib/mark/interval.js.map +1 -1
  257. package/lib/mark/line.js +15 -4
  258. package/lib/mark/line.js.map +1 -1
  259. package/lib/mark/lineX.js +12 -5
  260. package/lib/mark/lineX.js.map +1 -1
  261. package/lib/mark/lineY.js +12 -5
  262. package/lib/mark/lineY.js.map +1 -1
  263. package/lib/mark/link.js +12 -4
  264. package/lib/mark/link.js.map +1 -1
  265. package/lib/mark/path.js +7 -2
  266. package/lib/mark/path.js.map +1 -1
  267. package/lib/mark/point.js +28 -29
  268. package/lib/mark/point.js.map +1 -1
  269. package/lib/mark/polygon.js +7 -2
  270. package/lib/mark/polygon.js.map +1 -1
  271. package/lib/mark/range.js +4 -2
  272. package/lib/mark/range.js.map +1 -1
  273. package/lib/mark/rangeX.js +6 -2
  274. package/lib/mark/rangeX.js.map +1 -1
  275. package/lib/mark/rangeY.js +6 -2
  276. package/lib/mark/rangeY.js.map +1 -1
  277. package/lib/mark/rect.js +9 -3
  278. package/lib/mark/rect.js.map +1 -1
  279. package/lib/mark/shape.js +9 -3
  280. package/lib/mark/shape.js.map +1 -1
  281. package/lib/mark/text.js +10 -4
  282. package/lib/mark/text.js.map +1 -1
  283. package/lib/mark/treemap.js.map +1 -1
  284. package/lib/mark/utils.d.ts +11 -8
  285. package/lib/mark/utils.js +8 -7
  286. package/lib/mark/utils.js.map +1 -1
  287. package/lib/mark/vector.js +6 -2
  288. package/lib/mark/vector.js.map +1 -1
  289. package/lib/runtime/index.d.ts +1 -1
  290. package/lib/runtime/index.js +4 -4
  291. package/lib/runtime/index.js.map +1 -1
  292. package/lib/runtime/plot.js +14 -10
  293. package/lib/runtime/plot.js.map +1 -1
  294. package/lib/runtime/render.js +3 -6
  295. package/lib/runtime/render.js.map +1 -1
  296. package/lib/runtime/types/component.d.ts +1 -1
  297. package/lib/runtime/types/mark.d.ts +4 -0
  298. package/lib/runtime/types/options.d.ts +4 -1
  299. package/lib/runtime/types/theme.d.ts +1 -0
  300. package/lib/shape/index.d.ts +106 -101
  301. package/lib/shape/index.js +71 -61
  302. package/lib/shape/index.js.map +1 -1
  303. package/lib/shape/label/label.d.ts +7 -1
  304. package/lib/shape/label/label.js +11 -2
  305. package/lib/shape/label/label.js.map +1 -1
  306. package/lib/shape/text/advance.js +24 -11
  307. package/lib/shape/text/advance.js.map +1 -1
  308. package/lib/spec/composition.d.ts +7 -0
  309. package/lib/spec/index.d.ts +1 -0
  310. package/lib/spec/index.js.map +1 -1
  311. package/lib/spec/interaction.d.ts +2 -0
  312. package/lib/theme/academy.js +12 -6
  313. package/lib/theme/academy.js.map +1 -1
  314. package/lib/theme/classic.js +12 -7
  315. package/lib/theme/classic.js.map +1 -1
  316. package/lib/theme/classicDark.js +12 -6
  317. package/lib/theme/classicDark.js.map +1 -1
  318. package/lib/transform/filter.js +19 -6
  319. package/lib/transform/filter.js.map +1 -1
  320. package/lib/utils/coordinate.d.ts +2 -2
  321. package/lib/utils/scale.d.ts +1 -1
  322. package/lib/utils/scale.js +1 -1
  323. package/lib/utils/scale.js.map +1 -1
  324. package/lib/utils/selection.d.ts +1 -1
  325. package/lib/utils/selection.js +3 -1
  326. package/lib/utils/selection.js.map +1 -1
  327. package/package.json +11 -10
  328. package/src/api/chart.ts +5 -341
  329. package/src/api/{composition/base.ts → composition.ts} +16 -8
  330. package/src/api/define.ts +128 -0
  331. package/src/api/extend.ts +34 -0
  332. package/src/api/index.ts +2 -0
  333. package/src/api/library.ts +2 -2
  334. package/src/api/{mark/base.ts → mark.ts} +10 -7
  335. package/src/api/node.ts +3 -3
  336. package/src/api/props.ts +30 -114
  337. package/src/api/runtime.ts +366 -0
  338. package/src/api/types.ts +95 -17
  339. package/src/api/utils.ts +28 -11
  340. package/src/component/axis.ts +10 -5
  341. package/src/component/legendCategory.ts +4 -6
  342. package/src/component/legendContinuous.ts +9 -5
  343. package/src/{geo → composition}/geoView.ts +1 -1
  344. package/src/composition/index.ts +2 -0
  345. package/src/index.ts +12 -3
  346. package/src/interaction/legendFilter.ts +96 -49
  347. package/src/label-transform/overlapDodgeY.ts +0 -1
  348. package/src/{stdlib/index.ts → lib/core.ts} +74 -258
  349. package/src/lib/geo.ts +9 -0
  350. package/src/lib/graph.ts +8 -0
  351. package/src/lib/index.ts +6 -0
  352. package/src/lib/lite.ts +127 -0
  353. package/src/lib/plot.ts +16 -0
  354. package/src/lib/std.ts +13 -0
  355. package/src/mark/area.ts +15 -6
  356. package/src/mark/box.ts +10 -2
  357. package/src/mark/cell.ts +12 -6
  358. package/src/mark/connector.ts +7 -3
  359. package/src/mark/density.ts +11 -8
  360. package/src/mark/forceGraph.ts +0 -3
  361. package/src/mark/heatmap.ts +10 -5
  362. package/src/mark/image.ts +10 -5
  363. package/src/mark/interval.ts +22 -10
  364. package/src/mark/line.ts +23 -5
  365. package/src/mark/lineX.ts +20 -9
  366. package/src/mark/lineY.ts +20 -9
  367. package/src/mark/link.ts +13 -5
  368. package/src/mark/path.ts +8 -3
  369. package/src/mark/point.ts +49 -30
  370. package/src/mark/polygon.ts +8 -3
  371. package/src/mark/range.ts +5 -3
  372. package/src/mark/rangeX.ts +7 -3
  373. package/src/mark/rangeY.ts +7 -3
  374. package/src/mark/rect.ts +10 -4
  375. package/src/mark/shape.ts +14 -3
  376. package/src/mark/text.ts +11 -5
  377. package/src/mark/treemap.ts +0 -1
  378. package/src/mark/utils.ts +9 -8
  379. package/src/mark/vector.ts +7 -3
  380. package/src/runtime/index.ts +1 -1
  381. package/src/runtime/plot.ts +26 -12
  382. package/src/runtime/render.ts +3 -6
  383. package/src/runtime/types/component.ts +1 -2
  384. package/src/runtime/types/mark.ts +4 -0
  385. package/src/runtime/types/options.ts +4 -1
  386. package/src/runtime/types/theme.ts +1 -0
  387. package/src/shape/index.ts +106 -110
  388. package/src/shape/label/label.ts +21 -2
  389. package/src/shape/text/advance.ts +38 -14
  390. package/src/spec/composition.ts +7 -0
  391. package/src/spec/index.ts +1 -0
  392. package/src/spec/interaction.ts +2 -0
  393. package/src/theme/academy.ts +12 -6
  394. package/src/theme/classic.ts +12 -7
  395. package/src/theme/classicDark.ts +12 -6
  396. package/src/transform/filter.ts +16 -5
  397. package/src/utils/scale.ts +1 -1
  398. package/src/utils/selection.ts +6 -1
  399. package/CHANGELOG.md +0 -251
  400. package/esm/api/composition/base.d.ts +0 -28
  401. package/esm/api/composition/base.js.map +0 -1
  402. package/esm/api/composition/facetCircle.d.ts +0 -17
  403. package/esm/api/composition/facetCircle.js +0 -27
  404. package/esm/api/composition/facetCircle.js.map +0 -1
  405. package/esm/api/composition/facetRect.d.ts +0 -17
  406. package/esm/api/composition/facetRect.js +0 -27
  407. package/esm/api/composition/facetRect.js.map +0 -1
  408. package/esm/api/composition/geoPath.d.ts +0 -20
  409. package/esm/api/composition/geoPath.js +0 -30
  410. package/esm/api/composition/geoPath.js.map +0 -1
  411. package/esm/api/composition/geoView.d.ts +0 -19
  412. package/esm/api/composition/geoView.js +0 -28
  413. package/esm/api/composition/geoView.js.map +0 -1
  414. package/esm/api/composition/index.d.ts +0 -33
  415. package/esm/api/composition/index.js +0 -32
  416. package/esm/api/composition/index.js.map +0 -1
  417. package/esm/api/composition/repeatMatrix.d.ts +0 -17
  418. package/esm/api/composition/repeatMatrix.js +0 -27
  419. package/esm/api/composition/repeatMatrix.js.map +0 -1
  420. package/esm/api/composition/spaceFlex.d.ts +0 -12
  421. package/esm/api/composition/spaceFlex.js +0 -19
  422. package/esm/api/composition/spaceFlex.js.map +0 -1
  423. package/esm/api/composition/spaceLayer.d.ts +0 -12
  424. package/esm/api/composition/spaceLayer.js +0 -19
  425. package/esm/api/composition/spaceLayer.js.map +0 -1
  426. package/esm/api/composition/timingKeyframe.d.ts +0 -11
  427. package/esm/api/composition/timingKeyframe.js +0 -19
  428. package/esm/api/composition/timingKeyframe.js.map +0 -1
  429. package/esm/api/composition/view.d.ts +0 -19
  430. package/esm/api/composition/view.js +0 -29
  431. package/esm/api/composition/view.js.map +0 -1
  432. package/esm/api/mark/base.d.ts +0 -22
  433. package/esm/api/mark/base.js.map +0 -1
  434. package/esm/api/mark/index.d.ts +0 -75
  435. package/esm/api/mark/index.js +0 -39
  436. package/esm/api/mark/index.js.map +0 -1
  437. package/esm/api/mark/mark.d.ts +0 -212
  438. package/esm/api/mark/mark.js +0 -339
  439. package/esm/api/mark/mark.js.map +0 -1
  440. package/esm/api/mark/types.d.ts +0 -26
  441. package/esm/api/mark/types.js +0 -2
  442. package/esm/api/mark/types.js.map +0 -1
  443. package/esm/geo/d3Projection.js.map +0 -1
  444. package/esm/geo/geoPath.js.map +0 -1
  445. package/esm/geo/geoView.js.map +0 -1
  446. package/esm/geo/index.d.ts +0 -9
  447. package/esm/geo/index.js +0 -8
  448. package/esm/geo/index.js.map +0 -1
  449. package/esm/stdlib/index.d.ts +0 -2
  450. package/esm/stdlib/index.js +0 -21
  451. package/esm/stdlib/index.js.map +0 -1
  452. package/lib/api/composition/base.d.ts +0 -28
  453. package/lib/api/composition/base.js.map +0 -1
  454. package/lib/api/composition/facetCircle.d.ts +0 -17
  455. package/lib/api/composition/facetCircle.js +0 -30
  456. package/lib/api/composition/facetCircle.js.map +0 -1
  457. package/lib/api/composition/facetRect.d.ts +0 -17
  458. package/lib/api/composition/facetRect.js +0 -30
  459. package/lib/api/composition/facetRect.js.map +0 -1
  460. package/lib/api/composition/geoPath.d.ts +0 -20
  461. package/lib/api/composition/geoPath.js +0 -33
  462. package/lib/api/composition/geoPath.js.map +0 -1
  463. package/lib/api/composition/geoView.d.ts +0 -19
  464. package/lib/api/composition/geoView.js +0 -31
  465. package/lib/api/composition/geoView.js.map +0 -1
  466. package/lib/api/composition/index.d.ts +0 -33
  467. package/lib/api/composition/index.js +0 -44
  468. package/lib/api/composition/index.js.map +0 -1
  469. package/lib/api/composition/repeatMatrix.d.ts +0 -17
  470. package/lib/api/composition/repeatMatrix.js +0 -30
  471. package/lib/api/composition/repeatMatrix.js.map +0 -1
  472. package/lib/api/composition/spaceFlex.d.ts +0 -12
  473. package/lib/api/composition/spaceFlex.js +0 -22
  474. package/lib/api/composition/spaceFlex.js.map +0 -1
  475. package/lib/api/composition/spaceLayer.d.ts +0 -12
  476. package/lib/api/composition/spaceLayer.js +0 -22
  477. package/lib/api/composition/spaceLayer.js.map +0 -1
  478. package/lib/api/composition/timingKeyframe.d.ts +0 -11
  479. package/lib/api/composition/timingKeyframe.js +0 -22
  480. package/lib/api/composition/timingKeyframe.js.map +0 -1
  481. package/lib/api/composition/view.d.ts +0 -19
  482. package/lib/api/composition/view.js +0 -32
  483. package/lib/api/composition/view.js.map +0 -1
  484. package/lib/api/mark/base.d.ts +0 -22
  485. package/lib/api/mark/base.js.map +0 -1
  486. package/lib/api/mark/index.d.ts +0 -75
  487. package/lib/api/mark/index.js +0 -43
  488. package/lib/api/mark/index.js.map +0 -1
  489. package/lib/api/mark/mark.d.ts +0 -212
  490. package/lib/api/mark/mark.js +0 -342
  491. package/lib/api/mark/mark.js.map +0 -1
  492. package/lib/api/mark/types.d.ts +0 -26
  493. package/lib/api/mark/types.js +0 -3
  494. package/lib/api/mark/types.js.map +0 -1
  495. package/lib/geo/d3Projection.js.map +0 -1
  496. package/lib/geo/geoPath.js.map +0 -1
  497. package/lib/geo/geoView.js.map +0 -1
  498. package/lib/geo/index.d.ts +0 -9
  499. package/lib/geo/index.js +0 -12
  500. package/lib/geo/index.js.map +0 -1
  501. package/lib/stdlib/index.d.ts +0 -2
  502. package/lib/stdlib/index.js +0 -25
  503. package/lib/stdlib/index.js.map +0 -1
  504. package/src/api/composition/facetCircle.ts +0 -36
  505. package/src/api/composition/facetRect.ts +0 -36
  506. package/src/api/composition/geoPath.ts +0 -37
  507. package/src/api/composition/geoView.ts +0 -39
  508. package/src/api/composition/index.ts +0 -57
  509. package/src/api/composition/repeatMatrix.ts +0 -36
  510. package/src/api/composition/spaceFlex.ts +0 -18
  511. package/src/api/composition/spaceLayer.ts +0 -18
  512. package/src/api/composition/timingKeyframe.ts +0 -16
  513. package/src/api/composition/view.ts +0 -42
  514. package/src/api/mark/index.ts +0 -113
  515. package/src/api/mark/mark.ts +0 -439
  516. package/src/api/mark/types.ts +0 -31
  517. package/src/geo/index.ts +0 -12
  518. /package/esm/{geo → composition}/d3Projection.d.ts +0 -0
  519. /package/esm/{geo → composition}/d3Projection.js +0 -0
  520. /package/esm/{geo → composition}/geoPath.d.ts +0 -0
  521. /package/esm/{geo → composition}/geoPath.js +0 -0
  522. /package/esm/{geo → composition}/geoView.d.ts +0 -0
  523. /package/lib/{geo → composition}/d3Projection.d.ts +0 -0
  524. /package/lib/{geo → composition}/d3Projection.js +0 -0
  525. /package/lib/{geo → composition}/geoPath.d.ts +0 -0
  526. /package/lib/{geo → composition}/geoPath.js +0 -0
  527. /package/lib/{geo → composition}/geoView.d.ts +0 -0
  528. /package/src/{geo → composition}/d3Projection.ts +0 -0
  529. /package/src/{geo → composition}/geoPath.ts +0 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.plotlib = void 0;
4
+ const mark_1 = require("../mark");
5
+ const data_1 = require("../data");
6
+ function plotlib() {
7
+ return {
8
+ 'data.venn': data_1.Venn,
9
+ 'data.arc': data_1.Arc,
10
+ 'data.cluster': data_1.Cluster,
11
+ 'mark.sankey': mark_1.Sankey,
12
+ 'mark.treemap': mark_1.Treemap,
13
+ 'mark.boxplot': mark_1.Boxplot,
14
+ 'mark.pack': mark_1.Pack,
15
+ 'mark.gauge': mark_1.Gauge,
16
+ 'mark.wordCloud': mark_1.WordCloud,
17
+ };
18
+ }
19
+ exports.plotlib = plotlib;
20
+ //# sourceMappingURL=plot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot.js","sourceRoot":"src/","sources":["lib/plot.ts"],"names":[],"mappings":";;;AAAA,kCAA2E;AAC3E,kCAA6C;AAE7C,SAAgB,OAAO;IACrB,OAAO;QACL,WAAW,EAAE,WAAI;QACjB,UAAU,EAAE,UAAG;QACf,cAAc,EAAE,cAAO;QACvB,aAAa,EAAE,aAAM;QACrB,cAAc,EAAE,cAAO;QACvB,cAAc,EAAE,cAAO;QACvB,WAAW,EAAE,WAAI;QACjB,YAAY,EAAE,YAAK;QACnB,gBAAgB,EAAE,gBAAS;KACnB,CAAC;AACb,CAAC;AAZD,0BAYC"}
@@ -0,0 +1,170 @@
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 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
16
+ readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
17
+ readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
18
+ readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
19
+ readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
20
+ readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
21
+ readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
22
+ readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
23
+ readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
24
+ readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
25
+ readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
26
+ readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
27
+ readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
28
+ readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
29
+ readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
30
+ readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
31
+ readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
32
+ readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
33
+ readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
34
+ readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
35
+ readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
36
+ readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
37
+ readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
38
+ readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
39
+ readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
40
+ readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
41
+ readonly 'coordinate.helix': import("../runtime").CoordinateComponent<import("..").HelixCoordinate>;
42
+ readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
43
+ readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("..").ThetaCoordinate>;
44
+ readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
45
+ readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("..").FisheyeCoordinate>;
46
+ readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
47
+ readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("..").RadarCoordinate>;
48
+ readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
49
+ readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
50
+ readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
51
+ readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
52
+ readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
53
+ readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
54
+ readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
55
+ readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
56
+ readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
57
+ readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
58
+ readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
59
+ readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
60
+ readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
61
+ readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
62
+ readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
63
+ readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
64
+ readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
65
+ readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
66
+ readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
67
+ readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
68
+ readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
69
+ readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
70
+ readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
71
+ readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
72
+ readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
73
+ readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
74
+ readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
75
+ readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
76
+ readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
77
+ readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
78
+ readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
79
+ readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
80
+ readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
81
+ readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
82
+ readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
83
+ readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
84
+ readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
85
+ readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
86
+ readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
87
+ readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
88
+ readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
89
+ readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
90
+ readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
91
+ readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
92
+ readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
93
+ readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
94
+ readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
95
+ readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
96
+ readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
97
+ readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
98
+ readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
99
+ readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
100
+ readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
101
+ readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
102
+ readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
103
+ readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
104
+ readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
105
+ readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
106
+ readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
107
+ readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
108
+ readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
109
+ readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
110
+ readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
111
+ readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
112
+ readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
113
+ readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
114
+ readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
115
+ readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
116
+ readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
117
+ readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
118
+ readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
119
+ readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
120
+ readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
121
+ readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
122
+ readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
123
+ readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
124
+ readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
125
+ readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
126
+ readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
127
+ readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
128
+ readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
129
+ readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
130
+ readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
131
+ readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
132
+ readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
133
+ readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
134
+ readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
135
+ readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
136
+ readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
137
+ readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
138
+ readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
139
+ readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
140
+ readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
141
+ readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
142
+ readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
143
+ readonly 'interaction.poptip': typeof import("../interaction").Poptip;
144
+ readonly 'interaction.event': typeof import("../interaction").Event;
145
+ readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
146
+ readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
147
+ readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
148
+ readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
149
+ readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
150
+ readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("..").RepeatMatrixComposition>;
151
+ readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("..").FacetCircleComposition>;
152
+ readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
153
+ readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
154
+ readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
155
+ readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
156
+ readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
157
+ readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
158
+ readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
159
+ readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
160
+ readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
161
+ readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
162
+ readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
163
+ readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
164
+ readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
165
+ readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
166
+ readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
167
+ readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
168
+ readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
169
+ readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
170
+ };
package/lib/lib/std.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stdlib = void 0;
4
+ const core_1 = require("./core");
5
+ const geo_1 = require("./geo");
6
+ const graph_1 = require("./graph");
7
+ const plot_1 = require("./plot");
8
+ function stdlib() {
9
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, geo_1.geolib)()), (0, graph_1.graphlib)()), (0, plot_1.plotlib)()), (0, core_1.corelib)());
10
+ }
11
+ exports.stdlib = stdlib;
12
+ //# sourceMappingURL=std.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std.js","sourceRoot":"src/","sources":["lib/std.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,+BAA+B;AAC/B,mCAAmC;AACnC,iCAAiC;AAEjC,SAAgB,MAAM;IACpB,OAAO,4DACF,IAAA,YAAM,GAAE,GACR,IAAA,gBAAQ,GAAE,GACV,IAAA,cAAO,GAAE,GACT,IAAA,cAAO,GAAE,CACJ,CAAC;AACb,CAAC;AAPD,wBAOC"}
package/lib/mark/area.js CHANGED
@@ -2,7 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Area = void 0;
4
4
  const d3_array_1 = require("d3-array");
5
+ const shape_1 = require("../shape");
6
+ const transform_1 = require("../transform");
5
7
  const utils_1 = require("./utils");
8
+ const shape = {
9
+ area: shape_1.AreaShape,
10
+ smooth: shape_1.AreaSmooth,
11
+ hvh: shape_1.AreaHVH,
12
+ vh: shape_1.AreaVH,
13
+ hv: shape_1.AreaHV,
14
+ };
6
15
  /*
7
16
  * Convert value for each channel to area shapes.
8
17
  *
@@ -53,13 +62,13 @@ const Area = () => {
53
62
  };
54
63
  };
55
64
  exports.Area = Area;
56
- const shapes = ['area', 'smooth', 'hvh', 'hv', 'vh'];
57
65
  exports.Area.props = {
58
66
  defaultShape: 'area',
59
67
  defaultLabelShape: 'label',
60
68
  composite: false,
69
+ shape,
61
70
  channels: [
62
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
71
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
63
72
  { name: 'x', required: true },
64
73
  { name: 'y', required: true },
65
74
  { name: 'size' },
@@ -67,9 +76,9 @@ exports.Area.props = {
67
76
  ],
68
77
  preInference: [
69
78
  ...(0, utils_1.basePreInference)(),
70
- { type: 'maybeSeries' },
71
- { type: 'maybeZeroY1' },
72
- { type: 'maybeZeroPadding' },
79
+ { type: transform_1.MaybeSeries },
80
+ { type: transform_1.MaybeZeroY1 },
81
+ { type: transform_1.MaybeZeroPadding },
73
82
  ],
74
83
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
75
84
  interaction: {
@@ -1 +1 @@
1
- {"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,mCAKiB;AAIjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEI,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,E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,YAAY,EAAE,MAAM;IACpB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,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,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,uBAAW,EAAE;QACrB,EAAE,IAAI,EAAE,uBAAW,EAAE;QACrB,EAAE,IAAI,EAAE,4BAAgB,EAAE;KAC3B;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC"}
package/lib/mark/box.js CHANGED
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Box = void 0;
4
+ const shape_1 = require("../shape");
5
+ const transform_1 = require("../transform");
4
6
  const utils_1 = require("./utils");
7
+ const shape = {
8
+ box: shape_1.BoxShape,
9
+ violin: shape_1.BoxViolin,
10
+ };
5
11
  /**
6
12
  * Convert value for each channel to box shapes.
7
13
  *
@@ -78,13 +84,14 @@ exports.Box.props = {
78
84
  defaultShape: 'box',
79
85
  defaultLabelShape: 'label',
80
86
  composite: false,
87
+ shape,
81
88
  channels: [
82
- ...(0, utils_1.baseGeometryChannels)({ shapes: ['box'] }),
89
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
83
90
  { name: 'x', scale: 'band', required: true },
84
91
  { name: 'y', required: true },
85
92
  { name: 'series', scale: 'band' },
86
93
  ],
87
- preInference: [...(0, utils_1.basePreInference)(), { type: 'maybeZeroX' }],
94
+ preInference: [...(0, utils_1.basePreInference)(), { type: transform_1.MaybeZeroX }],
88
95
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
89
96
  interaction: {
90
97
  shareTooltip: true,
@@ -1 +1 @@
1
- {"version":3,"file":"box.js","sourceRoot":"src/","sources":["mark/box.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;AAIjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACI,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,C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AC;QACH,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AA7CW,QAAA,GAAG,OA6Cd;AAEF,WAAG,CAAC,KAAK,GAAG;IACV,YAAY,EAAE,KAAK;IACnB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,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,IAAA,wBAAgB,GAAE,EAAE,EAAE,IAAI,EAAE,sBAAU,EAAE,CAAC;IAC3D,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
package/lib/mark/cell.js CHANGED
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Cell = void 0;
4
+ const shape_1 = require("../shape");
5
+ const transform_1 = require("../transform");
4
6
  const utils_1 = require("./utils");
7
+ const shape = {
8
+ cell: shape_1.CellShape,
9
+ hollow: shape_1.CellHollow,
10
+ };
5
11
  /**
6
12
  * Convert value for each channel to Cell shapes.
7
13
  * Calc the bbox of each Cell based on x, y and r.
@@ -27,21 +33,21 @@ const Cell = () => {
27
33
  };
28
34
  };
29
35
  exports.Cell = Cell;
30
- const shapes = ['cell', 'hollow'];
31
36
  exports.Cell.props = {
32
37
  defaultShape: 'cell',
33
38
  defaultLabelShape: 'label',
39
+ shape,
34
40
  composite: false,
35
41
  channels: [
36
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
42
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
37
43
  { name: 'x', required: true, scale: 'band' },
38
44
  { name: 'y', required: true, scale: 'band' },
39
45
  ],
40
46
  preInference: [
41
47
  ...(0, utils_1.basePreInference)(),
42
- { type: 'maybeZeroX' },
43
- { type: 'maybeZeroY' },
44
- { type: 'maybeZeroPadding' },
48
+ { type: transform_1.MaybeZeroX },
49
+ { type: transform_1.MaybeZeroY },
50
+ { type: transform_1.MaybeZeroPadding },
45
51
  ],
46
52
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
47
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cell.js","sourceRoot":"src/","sources":["mark/cell.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;AAIjB;;;;GAIG;AACI,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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ector = void 0;
4
+ const shape_1 = require("../shape");
4
5
  const utils_1 = require("./utils");
5
6
  const link_1 = require("./link");
7
+ const shape = {
8
+ connector: shape_1.ConnectorShape,
9
+ };
6
10
  const Connector = (...args) => {
7
11
  return (0, link_1.Link)(...args);
8
12
  };
9
13
  exports.Connector = Connector;
10
- const shapes = ['connector'];
11
14
  exports.Connector.props = {
12
15
  defaultShape: 'connector',
13
16
  defaultLabelShape: 'label',
14
17
  composite: false,
18
+ shape,
15
19
  channels: [
16
- ...(0, utils_1.baseAnnotationChannels)({ shapes }),
20
+ ...(0, utils_1.baseAnnotationChannels)({ shapes: Object.keys(shape) }),
17
21
  { name: 'x', required: true },
18
22
  { name: 'y', required: true },
19
23
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":";;;AAEA,mCAIiB;AACjB,iCAA8B;AAIvB,MAAM,SAAS,GAAyB,CAAC,GAAG,IAAI,EAAE,EAAE;IACzD,OAAO,IAAA,WAAI,EAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,MAAM,MAAM,GAAG,CAAC,WAAW,CAAC,CAAC;AAE7B,iBAAS,CAAC,KAAK,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,GAAG,IAAA,8BAAsB,EAAC,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,IAAA,wBAAgB,GAAE,CAAC;IACrC,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,CAAC;CACxC,CAAC"}
1
+ {"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":";;;AAEA,oCAA0C;AAC1C,mCAIiB;AACjB,iCAA8B;AAE9B,MAAM,KAAK,GAAG;IACZ,SAAS,EAAE,sBAAc;CAC1B,CAAC;AAIK,MAAM,SAAS,GAAyB,CAAC,GAAG,IAAI,EAAE,EAAE;IACzD,OAAO,IAAA,WAAI,EAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,iBAAS,CAAC,KAAK,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,8BAAsB,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,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,IAAA,wBAAgB,GAAE,CAAC;IACrC,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,CAAC;CACxC,CAAC"}
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Density = void 0;
4
+ const shape_1 = require("../shape");
5
+ const transform_1 = require("../transform");
4
6
  const utils_1 = require("./utils");
7
+ const shape = {
8
+ density: shape_1.DensityShape,
9
+ };
5
10
  const Density = () => {
6
11
  return (index, scale, value, coordinate) => {
7
12
  const { x: X, series: S } = value;
@@ -39,13 +44,13 @@ const Density = () => {
39
44
  };
40
45
  };
41
46
  exports.Density = Density;
42
- const shapes = ['density'];
43
47
  exports.Density.props = {
44
48
  defaultShape: 'density',
45
49
  defaultLabelShape: 'label',
46
50
  composite: false,
51
+ shape,
47
52
  channels: [
48
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
53
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
49
54
  { name: 'x', scale: 'band', required: true },
50
55
  { name: 'y', required: true },
51
56
  { name: 'size', required: true },
@@ -54,12 +59,10 @@ exports.Density.props = {
54
59
  ],
55
60
  preInference: [
56
61
  ...(0, utils_1.basePreInference)(),
57
- { type: 'maybeZeroY1' },
58
- { type: 'maybeZeroX' },
62
+ { type: transform_1.MaybeZeroY1 },
63
+ { type: transform_1.MaybeZeroX },
59
64
  ],
60
65
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
61
- interaction: {
62
- shareTooltip: true,
63
- },
66
+ interaction: { shareTooltip: true },
64
67
  };
65
68
  //# sourceMappingURL=density.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"density.js","sourceRoot":"src/","sources":["mark/density.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;AAIV,MAAM,OAAO,GAAuB,GAAG,EAAE;IAC9C,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAElC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAC7B,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACtC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QAE7B,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAC9B,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;aACzC,GAAG,CAAC,CAAC,CAAC,EAAE,KAA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AAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;CACpC,CAAC"}
@@ -44,9 +44,6 @@ const DEFAULT_NODE_OPTIONS = {
44
44
  color: 'group',
45
45
  shape: 'point',
46
46
  },
47
- scale: {
48
- color: { type: 'ordinal' },
49
- },
50
47
  style: {
51
48
  stroke: '#fff',
52
49
  },
@@ -1 +1 @@
1
- {"version":3,"file":"forceGraph.js","sourceRoot":"src/","sources":["mark/forceGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uCAOkB;AAClB,qCAAqC;AACrC,4CAA4C;AAG5C,wCAA2D;AAC3D,mCAAgD;AAWhD,MAAM,sBAAsB,GAAgB;IAC1C,KAAK,EAAE,IAAI;CACZ,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK;IACb,MAAM,EAAE;QACN,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACzC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAC1C;IACD,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,aAAa,EAAE,GAAG;KACnB;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK;IACb,MAAM,EAAE;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACf;IACD,KAAK,EAAE;QACL,KAAK,EA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QACF,IAAA,cAAO,EAAC,EAAE,EAAE,oBAAoB,EAAE;YAChC,IAAI,EAAE,SAAS;YACf,MAAM,oBAAO,UAAU,CAAE;YACzB,KAAK;YACL,KAAK,EAAE,IAAA,kBAAS,EAAC,KAAK,EAAE,MAAM,CAAC;YAC/B,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE;gDACD,qBAAqB,GAAK,IAAA,kBAAS,EAAC,KAAK,EAAE,OAAO,CAAC;gBACxD,GAAG,UAAU;aACd;YACD,OAAO,EAAE,IAAA,qBAAc,EAAC,OAAO,EAAE,MAAM,CAAC;SACzC,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AA1DW,QAAA,UAAU,cA0DrB;AAEF,kBAAU,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Heatmap = void 0;
4
+ const shape_1 = require("../shape");
5
+ const transform_1 = require("../transform");
4
6
  const utils_1 = require("./utils");
7
+ const shape = {
8
+ heatmap: shape_1.HeatmapShape,
9
+ };
5
10
  /**
6
11
  * Draw heatmap with gradient.
7
12
  */
@@ -18,13 +23,13 @@ const Heatmap = (options) => {
18
23
  };
19
24
  };
20
25
  exports.Heatmap = Heatmap;
21
- const shapes = ['heatmap'];
22
26
  exports.Heatmap.props = {
23
27
  defaultShape: 'heatmap',
24
28
  defaultLabelShape: 'label',
25
29
  composite: false,
30
+ shape,
26
31
  channels: [
27
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
32
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
28
33
  { name: 'x', required: true },
29
34
  { name: 'y', required: true },
30
35
  { name: 'color', scale: 'identity', required: true },
@@ -32,8 +37,8 @@ exports.Heatmap.props = {
32
37
  ],
33
38
  preInference: [
34
39
  ...(0, utils_1.basePreInference)(),
35
- { type: 'maybeZeroY' },
36
- { type: 'maybeZeroX' },
40
+ { type: transform_1.MaybeZeroX },
41
+ { type: transform_1.MaybeZeroY },
37
42
  ],
38
43
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
39
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"heatmap.js","sourceRoot":"src/","sources":["mark/heatmap.ts"],"names":[],"mappings":";;;AAEA,mCAKiB;AAIjB;;GAEG;AACI,MAAM,OAAO,GAAuB,CAAC,OAAO,EAAE,EAAE;IACrD,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAChD,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE;YAChC,qBAAqB;YACrB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACzB,gCAAgC;YAChC,OAAO,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAuB,CAAC;QAC5E,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,MAAM,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC;AAE3B,eAAO,CAAC,KAAK,GAAG;IACd,YAAY,EAAE,SAAS;IACvB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,GAAG,IA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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAuB,CAAC;QAC5E,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,eAAO,CAAC,KAAK,GAAG;IACd,YAAY,EAAE,SAAS;IACvB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,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,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QACpD,EAAE,IAAI,EAAE,MAAM,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,GAAG,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,sBAAU,EAAE;KACrB;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;CACxD,CAAC"}
package/lib/mark/image.js CHANGED
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Image = void 0;
4
+ const transform_1 = require("../transform");
5
+ const shape_1 = require("../shape");
4
6
  const utils_1 = require("./utils");
7
+ const shape = {
8
+ image: shape_1.ImageShape,
9
+ };
5
10
  const Image = (options) => {
6
11
  const { cartesian } = options;
7
12
  if (cartesian)
@@ -17,13 +22,13 @@ const Image = (options) => {
17
22
  };
18
23
  };
19
24
  exports.Image = Image;
20
- const shapes = ['image'];
21
25
  exports.Image.props = {
22
26
  defaultShape: 'image',
23
27
  defaultLabelShape: 'label',
24
28
  composite: false,
29
+ shape,
25
30
  channels: [
26
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
31
+ ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
27
32
  { name: 'x', required: true },
28
33
  { name: 'y', required: true },
29
34
  { name: 'src', scale: 'identity' },
@@ -31,8 +36,8 @@ exports.Image.props = {
31
36
  ],
32
37
  preInference: [
33
38
  ...(0, utils_1.basePreInference)(),
34
- { type: 'maybeTuple' },
35
- { type: 'maybeVisualPosition' },
39
+ { type: transform_1.MaybeTuple },
40
+ { type: transform_1.MaybeVisualPosition },
36
41
  ],
37
42
  postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
38
43
  };