@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
@@ -1,27 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { defineProps, nodeProps } from '../props';
8
- import { mark } from '../mark';
9
- import { CompositionNode } from './index';
10
- let RepeatMatrix = class RepeatMatrix extends CompositionNode {
11
- constructor() {
12
- super({}, 'repeatMatrix');
13
- }
14
- };
15
- RepeatMatrix = __decorate([
16
- defineProps([
17
- { type: 'value', name: 'data' },
18
- { type: 'array', name: 'transform' },
19
- { type: 'object', name: 'scale' },
20
- { type: 'object', name: 'encode' },
21
- { type: 'object', name: 'encode' },
22
- { type: 'object', name: 'legend' },
23
- ...nodeProps(mark),
24
- ])
25
- ], RepeatMatrix);
26
- export { RepeatMatrix };
27
- //# sourceMappingURL=repeatMatrix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["api/composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOlD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAsBhD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,eAAwC;IACxE;QACE,KAAK,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AAJY,YAAY;IATxB,WAAW,CAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,GAAG,SAAS,CAAC,IAAI,CAAC;KACnB,CAAC;GACW,YAAY,CAIxB;SAJY,YAAY"}
@@ -1,12 +0,0 @@
1
- import { SpaceFlexComposition } from '../../spec';
2
- import { ValueAttribute, Concrete } from '../types';
3
- import { Mark } from '../mark';
4
- import { Composition, CompositionNode } from './index';
5
- type SpaceFlexSpec = Concrete<SpaceFlexComposition>;
6
- export interface SpaceFlex extends Composition, Mark {
7
- data: ValueAttribute<SpaceFlexSpec['data'], SpaceFlex>;
8
- }
9
- export declare class SpaceFlex extends CompositionNode<SpaceFlexSpec> {
10
- constructor();
11
- }
12
- export {};
@@ -1,19 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { defineProps, nodeProps } from '../props';
8
- import { mark } from '../mark';
9
- import { CompositionNode } from './index';
10
- let SpaceFlex = class SpaceFlex extends CompositionNode {
11
- constructor() {
12
- super({}, 'spaceFlex');
13
- }
14
- };
15
- SpaceFlex = __decorate([
16
- defineProps([{ type: 'value', name: 'data' }, ...nodeProps(mark)])
17
- ], SpaceFlex);
18
- export { SpaceFlex };
19
- //# sourceMappingURL=spaceFlex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spaceFlex.js","sourceRoot":"src/","sources":["api/composition/spaceFlex.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAShD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,eAA8B;IAC3D;QACE,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AAJY,SAAS;IADrB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;GACtD,SAAS,CAIrB;SAJY,SAAS"}
@@ -1,12 +0,0 @@
1
- import { SpaceLayerComposition } from '../../spec';
2
- import { ValueAttribute, Concrete } from '../types';
3
- import { Mark } from '../mark';
4
- import { Composition, CompositionNode } from './index';
5
- type SpaceLayerSpec = Concrete<SpaceLayerComposition>;
6
- export interface SpaceLayer extends Composition, Mark {
7
- data: ValueAttribute<SpaceLayerSpec['data'], SpaceLayer>;
8
- }
9
- export declare class SpaceLayer extends CompositionNode<SpaceLayerComposition> {
10
- constructor();
11
- }
12
- export {};
@@ -1,19 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { defineProps, nodeProps } from '../props';
8
- import { mark } from '../mark';
9
- import { CompositionNode } from './index';
10
- let SpaceLayer = class SpaceLayer extends CompositionNode {
11
- constructor() {
12
- super({}, 'spaceLayer');
13
- }
14
- };
15
- SpaceLayer = __decorate([
16
- defineProps([{ type: 'value', name: 'data' }, ...nodeProps(mark)])
17
- ], SpaceLayer);
18
- export { SpaceLayer };
19
- //# sourceMappingURL=spaceLayer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spaceLayer.js","sourceRoot":"src/","sources":["api/composition/spaceLayer.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAShD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,eAAsC;IACpE;QACE,KAAK,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AAJY,UAAU;IADtB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;GACtD,UAAU,CAItB;SAJY,UAAU"}
@@ -1,11 +0,0 @@
1
- import { TimingKeyframeComposition } from '../../spec';
2
- import { Concrete } from '../types';
3
- import { Mark } from '../mark';
4
- import { Composition, CompositionNode } from './index';
5
- type TimingKeyframeSpec = Concrete<TimingKeyframeComposition>;
6
- export interface TimingKeyframe extends Composition, Mark {
7
- }
8
- export declare class TimingKeyframe extends CompositionNode<TimingKeyframeSpec> {
9
- constructor();
10
- }
11
- export {};
@@ -1,19 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { defineProps, nodeProps } from '../props';
8
- import { mark } from '../mark';
9
- import { CompositionNode } from './index';
10
- let TimingKeyframe = class TimingKeyframe extends CompositionNode {
11
- constructor() {
12
- super({}, 'timingKeyframe');
13
- }
14
- };
15
- TimingKeyframe = __decorate([
16
- defineProps([...nodeProps(mark)])
17
- ], TimingKeyframe);
18
- export { TimingKeyframe };
19
- //# sourceMappingURL=timingKeyframe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timingKeyframe.js","sourceRoot":"src/","sources":["api/composition/timingKeyframe.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAOhD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,eAAmC;IACrE;QACE,KAAK,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAC9B,CAAC;CACF,CAAA;AAJY,cAAc;IAD1B,WAAW,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;GACrB,cAAc,CAI1B;SAJY,cAAc"}
@@ -1,19 +0,0 @@
1
- import { ViewComposition } from '../../spec';
2
- import { ValueAttribute, ObjectAttribute, ArrayAttribute, Concrete } from '../types';
3
- import { Mark } from '../mark';
4
- import { CompositionNode } from './base';
5
- type ViewSpec = Concrete<ViewComposition>;
6
- export interface View extends Mark {
7
- data: ValueAttribute<ViewSpec['data'], View>;
8
- coordinate: ArrayAttribute<ViewSpec['coordinate'], View>;
9
- interaction: ObjectAttribute<ViewSpec['interaction'], View>;
10
- theme: ObjectAttribute<ViewSpec['theme'], View>;
11
- style: ObjectAttribute<ViewSpec['style'], View>;
12
- scale: ObjectAttribute<ViewSpec['scale'], View>;
13
- axis: ObjectAttribute<ViewSpec['axis'], View>;
14
- legend: ObjectAttribute<ViewSpec['legend'], View>;
15
- }
16
- export declare class View<ViewProps extends ViewComposition = ViewComposition> extends CompositionNode<ViewProps> {
17
- constructor(options?: {}, type?: string);
18
- }
19
- export {};
@@ -1,29 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { defineProps, nodeProps } from '../props';
8
- import { mark } from '../mark';
9
- import { CompositionNode } from './base';
10
- let View = class View extends CompositionNode {
11
- constructor(options = {}, type = 'view') {
12
- super(options, type);
13
- }
14
- };
15
- View = __decorate([
16
- defineProps([
17
- { type: 'value', name: 'data' },
18
- { type: 'value', name: 'coordinate' },
19
- { type: 'object', name: 'interaction' },
20
- { type: 'object', name: 'theme' },
21
- { type: 'object', name: 'style' },
22
- { type: 'object', name: 'scale' },
23
- { type: 'object', name: 'axis' },
24
- { type: 'object', name: 'legend' },
25
- ...nodeProps(mark),
26
- ])
27
- ], View);
28
- export { View };
29
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"src/","sources":["api/composition/view.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOlD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AA0BlC,IAAM,IAAI,GAAV,MAAM,IAEX,SAAQ,eAA0B;IAClC,YAAY,OAAO,GAAG,EAAE,EAAE,IAAI,GAAG,MAAM;QACrC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;CACF,CAAA;AANY,IAAI;IAXhB,WAAW,CAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE;QACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE;QACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;QAChC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,GAAG,SAAS,CAAC,IAAI,CAAC;KACnB,CAAC;GACW,IAAI,CAMhB;SANY,IAAI"}
@@ -1,22 +0,0 @@
1
- import { DisplayObject } from '@antv/g';
2
- import { Node } from '../node';
3
- import { G2MarkState, Scale } from '../../runtime';
4
- export declare class MarkNode<Value extends Record<string, any> = Record<string, any>, ParentValue extends Record<string, any> = Record<string, any>, ChildValue extends Record<string, any> = Record<string, any>> extends Node<Value, ParentValue, ChildValue> {
5
- changeData(data: any): Promise<import("..").Chart>;
6
- /**
7
- * Get mark from chart views.
8
- */
9
- getMark(): G2MarkState;
10
- /**
11
- * Get all scales instance.
12
- */
13
- getScale(): Record<string, Scale>;
14
- /**
15
- * Get the scale instance by channel.
16
- */
17
- getScaleByChannel(channel: string): Scale;
18
- /**
19
- * Get canvas group.
20
- */
21
- getGroup(): DisplayObject;
22
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"src/","sources":["api/mark/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,OAAO,QAIX,SAAQ,IAAoC;IAC5C,UAAU,CAAC,IAAS;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;;QACL,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;QAChC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAC/C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CACxC,CAAC;QACF,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,QAAQ;;QACN,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,OAAO,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,OAAe;;QAC/B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,OAAO,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAG,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACvD,OAAO,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;CACF"}
@@ -1,75 +0,0 @@
1
- import { CompositeMarkType } from '../../spec';
2
- import { Interval, Rect, Point, Area, Line, Cell, Vector, Link, Polygon, Image, Text, Box, LineX, LineY, Range, RangeX, RangeY, Connector, Sankey, Treemap, Boxplot, Density, Heatmap, Path, Shape, Pack, ForceGraph, Tree, WordCloud, Composite, Gauge, AxisX, AxisY, Legends } from './mark';
3
- export interface Mark {
4
- mark(Composite: CompositeMarkType): Composite;
5
- interval(): Interval;
6
- rect(): Rect;
7
- point(): Point;
8
- area(): Area;
9
- line(): Line;
10
- cell(): Cell;
11
- vector(): Vector;
12
- link(): Link;
13
- polygon(): Polygon;
14
- image(): Image;
15
- text(): Text;
16
- box(): Box;
17
- lineX(): LineX;
18
- lineY(): LineY;
19
- range(): Range;
20
- rangeX(): RangeX;
21
- rangeY(): RangeY;
22
- connector(): Connector;
23
- sankey(): Sankey;
24
- treemap(): Treemap;
25
- boxplot(): Boxplot;
26
- density(): Density;
27
- heatmap(): Heatmap;
28
- path(): Path;
29
- shape(): Shape;
30
- pack(): Pack;
31
- forceGraph(): ForceGraph;
32
- tree(): Tree;
33
- wordCloud(): WordCloud;
34
- gauge(): Gauge;
35
- axisX(): AxisX;
36
- axisY(): AxisY;
37
- legends(): Legends;
38
- }
39
- export { MarkNode } from './base';
40
- export declare const mark: {
41
- mark: typeof Composite;
42
- interval: typeof Interval;
43
- rect: typeof Rect;
44
- point: typeof Point;
45
- area: typeof Area;
46
- line: typeof Line;
47
- cell: typeof Cell;
48
- vector: typeof Vector;
49
- link: typeof Link;
50
- polygon: typeof Polygon;
51
- image: typeof Image;
52
- text: typeof Text;
53
- box: typeof Box;
54
- lineX: typeof LineX;
55
- lineY: typeof LineY;
56
- range: typeof Range;
57
- rangeX: typeof RangeX;
58
- rangeY: typeof RangeY;
59
- connector: typeof Connector;
60
- sankey: typeof Sankey;
61
- treemap: typeof Treemap;
62
- boxplot: typeof Boxplot;
63
- density: typeof Density;
64
- heatmap: typeof Heatmap;
65
- path: typeof Path;
66
- shape: typeof Shape;
67
- pack: typeof Pack;
68
- forceGraph: typeof ForceGraph;
69
- tree: typeof Tree;
70
- wordCloud: typeof WordCloud;
71
- gauge: typeof Gauge;
72
- axisX: typeof AxisX;
73
- axisY: typeof AxisY;
74
- legends: typeof Legends;
75
- };
@@ -1,39 +0,0 @@
1
- import { Interval, Rect, Point, Area, Line, Cell, Vector, Link, Polygon, Image, Text, Box, LineX, LineY, Range, RangeX, RangeY, Connector, Sankey, Treemap, Boxplot, Density, Heatmap, Path, Shape, Pack, ForceGraph, Tree, WordCloud, Composite, Gauge, AxisX, AxisY, Legends, } from './mark';
2
- export { MarkNode } from './base';
3
- export const mark = {
4
- mark: Composite,
5
- interval: Interval,
6
- rect: Rect,
7
- point: Point,
8
- area: Area,
9
- line: Line,
10
- cell: Cell,
11
- vector: Vector,
12
- link: Link,
13
- polygon: Polygon,
14
- image: Image,
15
- text: Text,
16
- box: Box,
17
- lineX: LineX,
18
- lineY: LineY,
19
- range: Range,
20
- rangeX: RangeX,
21
- rangeY: RangeY,
22
- connector: Connector,
23
- sankey: Sankey,
24
- treemap: Treemap,
25
- boxplot: Boxplot,
26
- density: Density,
27
- heatmap: Heatmap,
28
- path: Path,
29
- shape: Shape,
30
- pack: Pack,
31
- forceGraph: ForceGraph,
32
- tree: Tree,
33
- wordCloud: WordCloud,
34
- gauge: Gauge,
35
- axisX: AxisX,
36
- axisY: AxisY,
37
- legends: Legends,
38
- };
39
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/mark/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,OAAO,EACP,KAAK,EACL,IAAI,EACJ,GAAG,EACH,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,GACR,MAAM,QAAQ,CAAC;AAuChB,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,IAAI;IACV,UAAU,EAAE,UAAU;IACtB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,OAAO;CACjB,CAAC"}
@@ -1,212 +0,0 @@
1
- import { IntervalMark, RectMark, AreaMark, PointMark, CellMark, VectorMark, LinkMark, PolygonMark, ImageMark, TextMark, BoxMark, LineMark, LineXMark, LineYMark, RangeMark, RangeXMark, RangeYMark, ConnectorMark, SankeyMark, BoxPlotMark, DensityMark, HeatmapMark, PathMark, ShapeMark, TreemapMark, ForceGraphMark, PackMark, TreeMark, WordCloudMark, CompositeMark, GaugeMark, AxisComponent, LegendComponent } from '../../spec';
2
- import { NodePropertyDescriptor } from '../props';
3
- import { Concrete } from '../types';
4
- import { MarkNode } from './base';
5
- import { API, StaticAPI } from './types';
6
- export interface Interval extends API<Concrete<IntervalMark>, Interval> {
7
- type: 'interval';
8
- }
9
- export interface Rect extends API<Concrete<RectMark>, Rect> {
10
- type: 'rect';
11
- }
12
- export interface Point extends API<Concrete<PointMark>, Point> {
13
- type: 'point';
14
- }
15
- export interface Area extends API<Concrete<AreaMark>, Area> {
16
- type: 'area';
17
- }
18
- export interface Line extends API<Concrete<LinkMark>, Line> {
19
- type: 'line';
20
- }
21
- export interface Cell extends API<Concrete<CellMark>, Cell> {
22
- type: 'cell';
23
- }
24
- export interface Vector extends API<Concrete<VectorMark>, Vector> {
25
- type: 'cell';
26
- }
27
- export interface Link extends API<Concrete<LinkMark>, Link> {
28
- type: 'link';
29
- }
30
- export interface Polygon extends API<Concrete<PolygonMark>, Polygon> {
31
- type: 'polygon';
32
- }
33
- export interface Image extends API<Concrete<ImageMark>, Image> {
34
- type: 'image';
35
- }
36
- export interface Text extends API<Concrete<TextMark>, Text> {
37
- type: 'text';
38
- }
39
- export interface Box extends API<Concrete<BoxMark>, Box> {
40
- type: 'box';
41
- }
42
- export interface LineX extends API<Concrete<LineXMark>, LineX> {
43
- type: 'annotation.lineX';
44
- }
45
- export interface LineY extends API<Concrete<LineYMark>, LineY> {
46
- type: 'annotation.lineY';
47
- }
48
- export interface Range extends API<Concrete<RangeMark>, Range> {
49
- type: 'annotation.range';
50
- }
51
- export interface RangeX extends API<Concrete<RangeXMark>, RangeX> {
52
- type: 'annotation.rangeX';
53
- }
54
- export interface RangeY extends API<Concrete<RangeYMark>, RangeY> {
55
- type: 'annotation.rangeY';
56
- }
57
- export interface Connector extends API<Concrete<ConnectorMark>, Connector> {
58
- type: 'connector';
59
- }
60
- export interface Sankey extends API<Concrete<SankeyMark>, Sankey> {
61
- type: 'sankey';
62
- }
63
- export interface Boxplot extends API<Concrete<BoxPlotMark>, Boxplot> {
64
- type: 'boxplot';
65
- }
66
- export interface Density extends API<Concrete<DensityMark>, Density> {
67
- type: 'density';
68
- }
69
- export interface Heatmap extends API<Concrete<HeatmapMark>, Heatmap> {
70
- type: 'heatmap';
71
- }
72
- export interface Path extends API<Concrete<PathMark>, Path> {
73
- type: 'path';
74
- }
75
- export interface Shape extends API<Concrete<ShapeMark>, Shape> {
76
- type: 'shape';
77
- }
78
- export interface Treemap extends API<Concrete<TreemapMark>, Treemap> {
79
- type: 'treemap';
80
- }
81
- export interface Pack extends API<Concrete<PackMark>, Pack> {
82
- type: 'pack';
83
- }
84
- export interface ForceGraph extends API<Concrete<ForceGraphMark>, ForceGraph> {
85
- type: 'forceGraph';
86
- }
87
- export interface Tree extends API<Concrete<TreeMark>, Tree> {
88
- type: 'tree';
89
- }
90
- export interface WordCloud extends API<Concrete<WordCloudMark>, WordCloud> {
91
- type: 'wordCloud';
92
- }
93
- export interface Gauge extends API<Concrete<GaugeMark>, Gauge> {
94
- type: 'gauge';
95
- }
96
- export interface Composite extends API<Concrete<CompositeMark>, Composite> {
97
- type: 'interval';
98
- }
99
- export interface AxisX extends StaticAPI<Concrete<AxisComponent>, AxisX> {
100
- type: 'axisX';
101
- }
102
- export interface AxisY extends StaticAPI<Concrete<AxisComponent>, AxisY> {
103
- type: 'axisY';
104
- }
105
- export interface Legends extends StaticAPI<Concrete<LegendComponent>, Legends> {
106
- type: 'legends';
107
- }
108
- export declare const props: NodePropertyDescriptor[];
109
- export declare const axisProps: NodePropertyDescriptor[];
110
- export declare const legendProps: NodePropertyDescriptor[];
111
- export declare class Composite extends MarkNode<Composite> {
112
- constructor();
113
- }
114
- export declare class Interval extends MarkNode<IntervalMark> {
115
- constructor();
116
- }
117
- export declare class Rect extends MarkNode<RectMark> {
118
- constructor();
119
- }
120
- export declare class Point extends MarkNode<PointMark> {
121
- constructor();
122
- }
123
- export declare class Area extends MarkNode<AreaMark> {
124
- constructor();
125
- }
126
- export declare class Line extends MarkNode<LineMark> {
127
- constructor();
128
- }
129
- export declare class Cell extends MarkNode<CellMark> {
130
- constructor();
131
- }
132
- export declare class Vector extends MarkNode<VectorMark> {
133
- constructor();
134
- }
135
- export declare class Link extends MarkNode<LinkMark> {
136
- constructor();
137
- }
138
- export declare class Polygon extends MarkNode<PolygonMark> {
139
- constructor();
140
- }
141
- export declare class Image extends MarkNode<ImageMark> {
142
- constructor();
143
- }
144
- export declare class Text extends MarkNode<TextMark> {
145
- constructor();
146
- }
147
- export declare class Box extends MarkNode<BoxMark> {
148
- constructor();
149
- }
150
- export declare class LineX extends MarkNode<LineXMark> {
151
- constructor();
152
- }
153
- export declare class LineY extends MarkNode<LineYMark> {
154
- constructor();
155
- }
156
- export declare class Range extends MarkNode<RangeMark> {
157
- constructor();
158
- }
159
- export declare class RangeX extends MarkNode<RangeXMark> {
160
- constructor();
161
- }
162
- export declare class RangeY extends MarkNode<RangeYMark> {
163
- constructor();
164
- }
165
- export declare class Connector extends MarkNode<ConnectorMark> {
166
- constructor();
167
- }
168
- export declare class Shape extends MarkNode<ShapeMark> {
169
- constructor();
170
- }
171
- export declare class Sankey extends MarkNode<SankeyMark> {
172
- constructor();
173
- }
174
- export declare class Treemap extends MarkNode<TreemapMark> {
175
- constructor();
176
- }
177
- export declare class Boxplot extends MarkNode<BoxPlotMark> {
178
- constructor();
179
- }
180
- export declare class Density extends MarkNode<DensityMark> {
181
- constructor();
182
- }
183
- export declare class Heatmap extends MarkNode<HeatmapMark> {
184
- constructor();
185
- }
186
- export declare class Path extends MarkNode<PathMark> {
187
- constructor();
188
- }
189
- export declare class Pack extends MarkNode<PackMark> {
190
- constructor();
191
- }
192
- export declare class ForceGraph extends MarkNode<ForceGraphMark> {
193
- constructor();
194
- }
195
- export declare class Tree extends MarkNode<TreeMark> {
196
- constructor();
197
- }
198
- export declare class WordCloud extends MarkNode<WordCloudMark> {
199
- constructor();
200
- }
201
- export declare class Gauge extends MarkNode<GaugeMark> {
202
- constructor();
203
- }
204
- export declare class AxisX extends MarkNode<AxisComponent> {
205
- constructor();
206
- }
207
- export declare class AxisY extends MarkNode<AxisComponent> {
208
- constructor();
209
- }
210
- export declare class Legends extends MarkNode<LegendComponent> {
211
- constructor();
212
- }