@visactor/vchart 1.0.1-alpha.1 → 1.0.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/build/index.js +5027 -5002
  2. package/build/index.min.js +2 -2
  3. package/chart.d.ts +1 -1
  4. package/chart.js +1 -1
  5. package/cjs/chart/area/area.js +3 -1
  6. package/cjs/chart/area/area.js.map +1 -1
  7. package/cjs/chart/bar/bar-3d.d.ts +7 -0
  8. package/cjs/chart/bar/bar-3d.js +19 -0
  9. package/cjs/chart/bar/bar-3d.js.map +1 -0
  10. package/cjs/chart/bar/bar.d.ts +0 -6
  11. package/cjs/chart/bar/bar.js +4 -11
  12. package/cjs/chart/bar/bar.js.map +1 -1
  13. package/cjs/chart/bar/index.d.ts +1 -0
  14. package/cjs/chart/bar/index.js +2 -1
  15. package/cjs/chart/bar/index.js.map +1 -1
  16. package/cjs/chart/base-chart.d.ts +1 -1
  17. package/cjs/chart/box-plot/box-plot.js +3 -1
  18. package/cjs/chart/box-plot/box-plot.js.map +1 -1
  19. package/cjs/chart/circle-packing/circle-packing.js +3 -1
  20. package/cjs/chart/circle-packing/circle-packing.js.map +1 -1
  21. package/cjs/chart/funnel/base.d.ts +9 -0
  22. package/cjs/chart/funnel/base.js +47 -0
  23. package/cjs/chart/funnel/base.js.map +1 -0
  24. package/cjs/chart/funnel/funnel-3d.d.ts +7 -0
  25. package/cjs/chart/funnel/funnel-3d.js +19 -0
  26. package/cjs/chart/funnel/funnel-3d.js.map +1 -0
  27. package/cjs/chart/funnel/funnel.d.ts +1 -16
  28. package/cjs/chart/funnel/funnel.js +4 -48
  29. package/cjs/chart/funnel/funnel.js.map +1 -1
  30. package/cjs/chart/funnel/index.d.ts +1 -0
  31. package/cjs/chart/funnel/index.js +2 -1
  32. package/cjs/chart/funnel/index.js.map +1 -1
  33. package/cjs/chart/gauge/gauge.js +3 -1
  34. package/cjs/chart/gauge/gauge.js.map +1 -1
  35. package/cjs/chart/heatmap/heatmap.js +3 -1
  36. package/cjs/chart/heatmap/heatmap.js.map +1 -1
  37. package/cjs/chart/histogram/base.d.ts +5 -0
  38. package/cjs/chart/histogram/base.js +22 -0
  39. package/cjs/chart/histogram/base.js.map +1 -0
  40. package/cjs/chart/histogram/histogram-3d.d.ts +7 -0
  41. package/cjs/chart/histogram/histogram-3d.js +19 -0
  42. package/cjs/chart/histogram/histogram-3d.js.map +1 -0
  43. package/cjs/chart/histogram/histogram.d.ts +1 -12
  44. package/cjs/chart/histogram/histogram.js +4 -23
  45. package/cjs/chart/histogram/histogram.js.map +1 -1
  46. package/cjs/chart/histogram/index.d.ts +1 -0
  47. package/cjs/chart/histogram/index.js +2 -1
  48. package/cjs/chart/histogram/index.js.map +1 -1
  49. package/cjs/chart/index.d.ts +57 -22
  50. package/cjs/chart/index.js +293 -26
  51. package/cjs/chart/index.js.map +1 -1
  52. package/cjs/chart/line/line.js +3 -1
  53. package/cjs/chart/line/line.js.map +1 -1
  54. package/cjs/chart/map/map.js +3 -1
  55. package/cjs/chart/map/map.js.map +1 -1
  56. package/cjs/chart/pie/base.d.ts +5 -0
  57. package/cjs/chart/pie/base.js +26 -0
  58. package/cjs/chart/pie/base.js.map +1 -0
  59. package/cjs/chart/pie/index.d.ts +1 -0
  60. package/cjs/chart/pie/index.js +2 -1
  61. package/cjs/chart/pie/index.js.map +1 -1
  62. package/cjs/chart/pie/pie-3d.d.ts +8 -0
  63. package/cjs/chart/pie/pie-3d.js +24 -0
  64. package/cjs/chart/pie/pie-3d.js.map +1 -0
  65. package/cjs/chart/pie/pie.d.ts +1 -13
  66. package/cjs/chart/pie/pie.js +4 -32
  67. package/cjs/chart/pie/pie.js.map +1 -1
  68. package/cjs/chart/progress/circular/circular.js +3 -1
  69. package/cjs/chart/progress/circular/circular.js.map +1 -1
  70. package/cjs/chart/progress/linear/linear.js +3 -1
  71. package/cjs/chart/progress/linear/linear.js.map +1 -1
  72. package/cjs/chart/radar/radar.js +3 -1
  73. package/cjs/chart/radar/radar.js.map +1 -1
  74. package/cjs/chart/range-area/range-area.js +3 -1
  75. package/cjs/chart/range-area/range-area.js.map +1 -1
  76. package/cjs/chart/range-column/index.d.ts +2 -1
  77. package/cjs/chart/range-column/index.js +2 -1
  78. package/cjs/chart/range-column/index.js.map +1 -1
  79. package/cjs/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
  80. package/cjs/chart/range-column/{rangeColumn.js → range-column-3d.js} +4 -17
  81. package/cjs/chart/range-column/range-column-3d.js.map +1 -0
  82. package/cjs/chart/range-column/range-column.d.ts +8 -0
  83. package/cjs/chart/range-column/range-column.js +25 -0
  84. package/cjs/chart/range-column/range-column.js.map +1 -0
  85. package/cjs/chart/rose/rose.js +3 -1
  86. package/cjs/chart/rose/rose.js.map +1 -1
  87. package/cjs/chart/sankey/sankey.js +3 -1
  88. package/cjs/chart/sankey/sankey.js.map +1 -1
  89. package/cjs/chart/scatter/scatter.js +3 -1
  90. package/cjs/chart/scatter/scatter.js.map +1 -1
  91. package/cjs/chart/sequence/sequence.js +3 -1
  92. package/cjs/chart/sequence/sequence.js.map +1 -1
  93. package/cjs/chart/sunburst/sunburst.js +3 -1
  94. package/cjs/chart/sunburst/sunburst.js.map +1 -1
  95. package/cjs/chart/treemap/treemap.js +3 -1
  96. package/cjs/chart/treemap/treemap.js.map +1 -1
  97. package/cjs/chart/waterfall/waterfall.js +3 -1
  98. package/cjs/chart/waterfall/waterfall.js.map +1 -1
  99. package/cjs/chart/word-cloud/base.d.ts +6 -0
  100. package/cjs/chart/word-cloud/base.js +25 -0
  101. package/cjs/chart/word-cloud/base.js.map +1 -0
  102. package/cjs/chart/word-cloud/index.d.ts +1 -0
  103. package/cjs/chart/word-cloud/index.js +2 -1
  104. package/cjs/chart/word-cloud/index.js.map +1 -1
  105. package/cjs/chart/word-cloud/word-cloud-3d.d.ts +9 -0
  106. package/cjs/chart/word-cloud/word-cloud-3d.js +46 -0
  107. package/cjs/chart/word-cloud/word-cloud-3d.js.map +1 -0
  108. package/cjs/chart/word-cloud/word-cloud.d.ts +2 -15
  109. package/cjs/chart/word-cloud/word-cloud.js +4 -53
  110. package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
  111. package/cjs/compile/grammar-item.js +1 -2
  112. package/cjs/component/index.d.ts +39 -1
  113. package/cjs/component/index.js +202 -16
  114. package/cjs/component/index.js.map +1 -1
  115. package/cjs/component/legend/base-legend.d.ts +1 -1
  116. package/cjs/component/legend/util.d.ts +3 -3
  117. package/cjs/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
  118. package/cjs/constant/marker.js +1 -2
  119. package/cjs/constant/word-cloud.js +2 -1
  120. package/cjs/core/factory.js +1 -1
  121. package/cjs/{export/core.d.ts → core/index.d.ts} +4 -4
  122. package/cjs/{export/core.js → core/index.js} +5 -5
  123. package/cjs/core/index.js.map +1 -0
  124. package/cjs/core/instance-manager.js +1 -1
  125. package/cjs/core/interface.js +1 -1
  126. package/cjs/core/vchart.js +1 -1
  127. package/cjs/data/initialize.js +2 -1
  128. package/cjs/index.d.ts +6 -6
  129. package/cjs/index.js +4 -4
  130. package/cjs/index.js.map +1 -1
  131. package/cjs/interaction/interface.js +1 -1
  132. package/cjs/interaction/trigger.js +1 -1
  133. package/cjs/layout/base-layout.d.ts +24 -0
  134. package/cjs/layout/base-layout.js +124 -0
  135. package/cjs/layout/base-layout.js.map +1 -0
  136. package/cjs/layout/index.d.ts +7 -24
  137. package/cjs/layout/index.js +25 -115
  138. package/cjs/layout/index.js.map +1 -1
  139. package/cjs/layout/layout3d/index.d.ts +1 -1
  140. package/cjs/layout/layout3d/index.js +2 -2
  141. package/cjs/layout/layout3d/index.js.map +1 -1
  142. package/cjs/mark/arc-3d.d.ts +9 -0
  143. package/cjs/mark/arc-3d.js +16 -0
  144. package/cjs/mark/arc-3d.js.map +1 -0
  145. package/cjs/mark/arc.d.ts +1 -6
  146. package/cjs/mark/arc.js +1 -9
  147. package/cjs/mark/arc.js.map +1 -1
  148. package/cjs/mark/index.d.ts +21 -0
  149. package/cjs/{export/mark.js → mark/index.js} +49 -37
  150. package/cjs/mark/index.js.map +1 -0
  151. package/cjs/mark/{linkPath.js → link-path.js} +1 -1
  152. package/cjs/mark/link-path.js.map +1 -0
  153. package/cjs/mark/polygon/base-polygon.d.ts +6 -0
  154. package/cjs/mark/polygon/base-polygon.js +18 -0
  155. package/cjs/mark/polygon/base-polygon.js.map +1 -0
  156. package/cjs/mark/polygon/polygon.d.ts +9 -0
  157. package/cjs/mark/polygon/polygon.js +16 -0
  158. package/cjs/mark/polygon/polygon.js.map +1 -0
  159. package/cjs/mark/polygon/pyramid-3d.d.ts +9 -0
  160. package/cjs/mark/polygon/pyramid-3d.js +16 -0
  161. package/cjs/mark/polygon/pyramid-3d.js.map +1 -0
  162. package/cjs/mark/rect-3d.d.ts +10 -0
  163. package/cjs/mark/rect-3d.js +23 -0
  164. package/cjs/mark/rect-3d.js.map +1 -0
  165. package/cjs/mark/rect.d.ts +1 -7
  166. package/cjs/mark/rect.js +1 -16
  167. package/cjs/mark/rect.js.map +1 -1
  168. package/cjs/model/layout-item.js +1 -2
  169. package/cjs/plugin/interface.js +1 -1
  170. package/cjs/region/region.js +1 -1
  171. package/cjs/series/area/area.js +3 -1
  172. package/cjs/series/area/area.js.map +1 -1
  173. package/cjs/series/bar/bar-3d.d.ts +11 -0
  174. package/cjs/series/bar/bar-3d.js +25 -0
  175. package/cjs/series/bar/bar-3d.js.map +1 -0
  176. package/cjs/series/bar/bar.d.ts +0 -7
  177. package/cjs/series/bar/bar.js +3 -18
  178. package/cjs/series/bar/bar.js.map +1 -1
  179. package/cjs/series/box-plot/box-plot.js +5 -1
  180. package/cjs/series/box-plot/box-plot.js.map +1 -1
  181. package/cjs/series/circle-packing/circle-packing.js +3 -1
  182. package/cjs/series/circle-packing/circle-packing.js.map +1 -1
  183. package/cjs/series/dot/dot.js +3 -1
  184. package/cjs/series/dot/dot.js.map +1 -1
  185. package/cjs/series/funnel/funnel-3d.d.ts +18 -0
  186. package/cjs/series/funnel/funnel-3d.js +104 -0
  187. package/cjs/series/funnel/funnel-3d.js.map +1 -0
  188. package/cjs/series/funnel/funnel.d.ts +2 -14
  189. package/cjs/series/funnel/funnel.js +4 -96
  190. package/cjs/series/funnel/funnel.js.map +1 -1
  191. package/cjs/series/gauge/gauge-pointer.js +3 -1
  192. package/cjs/series/gauge/gauge-pointer.js.map +1 -1
  193. package/cjs/series/gauge/gauge.js +3 -1
  194. package/cjs/series/gauge/gauge.js.map +1 -1
  195. package/cjs/series/heatmap/heatmap.js +2 -2
  196. package/cjs/series/heatmap/heatmap.js.map +1 -1
  197. package/cjs/series/index.d.ts +66 -0
  198. package/cjs/{export/series.js → series/index.js} +70 -50
  199. package/cjs/series/index.js.map +1 -0
  200. package/cjs/series/line/line.js +3 -1
  201. package/cjs/series/line/line.js.map +1 -1
  202. package/cjs/series/link/link.js +3 -1
  203. package/cjs/series/link/link.js.map +1 -1
  204. package/cjs/series/map/map.js +2 -2
  205. package/cjs/series/map/map.js.map +1 -1
  206. package/cjs/series/pie/pie-3d.d.ts +16 -0
  207. package/cjs/series/pie/pie-3d.js +97 -0
  208. package/cjs/series/pie/pie-3d.js.map +1 -0
  209. package/cjs/series/pie/pie.d.ts +1 -11
  210. package/cjs/series/pie/pie.js +4 -89
  211. package/cjs/series/pie/pie.js.map +1 -1
  212. package/cjs/series/polar/animation.d.ts +1 -1
  213. package/cjs/series/polar/animation.js.map +1 -1
  214. package/cjs/series/progress/circular/circular.js +3 -1
  215. package/cjs/series/progress/circular/circular.js.map +1 -1
  216. package/cjs/series/progress/linear/linear.js +3 -1
  217. package/cjs/series/progress/linear/linear.js.map +1 -1
  218. package/cjs/series/radar/animation.d.ts +1 -1
  219. package/cjs/series/radar/animation.js.map +1 -1
  220. package/cjs/series/radar/radar.js +3 -1
  221. package/cjs/series/radar/radar.js.map +1 -1
  222. package/cjs/series/range-column/rangeColumn-3d.d.ts +10 -0
  223. package/cjs/series/range-column/rangeColumn-3d.js +19 -0
  224. package/cjs/series/range-column/rangeColumn-3d.js.map +1 -0
  225. package/cjs/series/range-column/rangeColumn.d.ts +0 -6
  226. package/cjs/series/range-column/rangeColumn.js +1 -10
  227. package/cjs/series/range-column/rangeColumn.js.map +1 -1
  228. package/cjs/series/rose/rose.js +2 -2
  229. package/cjs/series/rose/rose.js.map +1 -1
  230. package/cjs/series/sankey/sankey.js +2 -1
  231. package/cjs/series/sankey/sankey.js.map +1 -1
  232. package/cjs/series/scatter/scatter.js +3 -1
  233. package/cjs/series/scatter/scatter.js.map +1 -1
  234. package/cjs/series/sunburst/sunburst.js +3 -1
  235. package/cjs/series/sunburst/sunburst.js.map +1 -1
  236. package/cjs/series/treemap/treemap.js +3 -1
  237. package/cjs/series/treemap/treemap.js.map +1 -1
  238. package/cjs/series/waterfall/waterfall.js +2 -2
  239. package/cjs/series/waterfall/waterfall.js.map +1 -1
  240. package/cjs/series/word-cloud/base.d.ts +60 -0
  241. package/cjs/series/word-cloud/base.js +254 -0
  242. package/cjs/series/word-cloud/base.js.map +1 -0
  243. package/cjs/series/word-cloud/word-cloud-3d.d.ts +11 -0
  244. package/cjs/series/word-cloud/word-cloud-3d.js +199 -0
  245. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -0
  246. package/cjs/series/word-cloud/word-cloud.d.ts +2 -69
  247. package/cjs/series/word-cloud/word-cloud.js +5 -441
  248. package/cjs/series/word-cloud/word-cloud.js.map +1 -1
  249. package/cjs/vchart-all.d.ts +1 -1
  250. package/cjs/vchart-all.js +3 -5
  251. package/cjs/vchart-all.js.map +1 -1
  252. package/cjs/vchart-simple.d.ts +1 -1
  253. package/cjs/vchart-simple.js +2 -4
  254. package/cjs/vchart-simple.js.map +1 -1
  255. package/component.d.ts +1 -1
  256. package/component.js +1 -1
  257. package/core.d.ts +1 -1
  258. package/core.js +1 -1
  259. package/esm/chart/area/area.js +6 -0
  260. package/esm/chart/area/area.js.map +1 -1
  261. package/esm/chart/bar/bar-3d.d.ts +7 -0
  262. package/esm/chart/bar/bar-3d.js +20 -0
  263. package/esm/chart/bar/bar-3d.js.map +1 -0
  264. package/esm/chart/bar/bar.d.ts +0 -6
  265. package/esm/chart/bar/bar.js +6 -8
  266. package/esm/chart/bar/bar.js.map +1 -1
  267. package/esm/chart/bar/index.d.ts +1 -0
  268. package/esm/chart/bar/index.js +2 -0
  269. package/esm/chart/bar/index.js.map +1 -1
  270. package/esm/chart/base-chart.d.ts +1 -1
  271. package/esm/chart/box-plot/box-plot.js +6 -0
  272. package/esm/chart/box-plot/box-plot.js.map +1 -1
  273. package/esm/chart/circle-packing/circle-packing.js +6 -0
  274. package/esm/chart/circle-packing/circle-packing.js.map +1 -1
  275. package/esm/chart/funnel/base.d.ts +9 -0
  276. package/esm/chart/funnel/base.js +39 -0
  277. package/esm/chart/funnel/base.js.map +1 -0
  278. package/esm/chart/funnel/funnel-3d.d.ts +7 -0
  279. package/esm/chart/funnel/funnel-3d.js +20 -0
  280. package/esm/chart/funnel/funnel-3d.js.map +1 -0
  281. package/esm/chart/funnel/funnel.d.ts +1 -16
  282. package/esm/chart/funnel/funnel.js +7 -46
  283. package/esm/chart/funnel/funnel.js.map +1 -1
  284. package/esm/chart/funnel/index.d.ts +1 -0
  285. package/esm/chart/funnel/index.js +2 -0
  286. package/esm/chart/funnel/index.js.map +1 -1
  287. package/esm/chart/gauge/gauge.js +6 -0
  288. package/esm/chart/gauge/gauge.js.map +1 -1
  289. package/esm/chart/heatmap/heatmap.js +6 -0
  290. package/esm/chart/heatmap/heatmap.js.map +1 -1
  291. package/esm/chart/histogram/base.d.ts +5 -0
  292. package/esm/chart/histogram/base.js +14 -0
  293. package/esm/chart/histogram/base.js.map +1 -0
  294. package/esm/chart/histogram/histogram-3d.d.ts +7 -0
  295. package/esm/chart/histogram/histogram-3d.js +20 -0
  296. package/esm/chart/histogram/histogram-3d.js.map +1 -0
  297. package/esm/chart/histogram/histogram.d.ts +1 -12
  298. package/esm/chart/histogram/histogram.js +7 -21
  299. package/esm/chart/histogram/histogram.js.map +1 -1
  300. package/esm/chart/histogram/index.d.ts +1 -0
  301. package/esm/chart/histogram/index.js +2 -0
  302. package/esm/chart/histogram/index.js.map +1 -1
  303. package/esm/chart/index.d.ts +57 -22
  304. package/esm/chart/index.js +36 -22
  305. package/esm/chart/index.js.map +1 -1
  306. package/esm/chart/line/line.js +6 -0
  307. package/esm/chart/line/line.js.map +1 -1
  308. package/esm/chart/map/map.js +6 -0
  309. package/esm/chart/map/map.js.map +1 -1
  310. package/esm/chart/pie/base.d.ts +5 -0
  311. package/esm/chart/pie/base.js +18 -0
  312. package/esm/chart/pie/base.js.map +1 -0
  313. package/esm/chart/pie/index.d.ts +1 -0
  314. package/esm/chart/pie/index.js +2 -0
  315. package/esm/chart/pie/index.js.map +1 -1
  316. package/esm/chart/pie/pie-3d.d.ts +8 -0
  317. package/esm/chart/pie/pie-3d.js +25 -0
  318. package/esm/chart/pie/pie-3d.js.map +1 -0
  319. package/esm/chart/pie/pie.d.ts +1 -13
  320. package/esm/chart/pie/pie.js +6 -29
  321. package/esm/chart/pie/pie.js.map +1 -1
  322. package/esm/chart/progress/circular/circular.js +6 -0
  323. package/esm/chart/progress/circular/circular.js.map +1 -1
  324. package/esm/chart/progress/linear/linear.js +6 -0
  325. package/esm/chart/progress/linear/linear.js.map +1 -1
  326. package/esm/chart/radar/radar.js +6 -0
  327. package/esm/chart/radar/radar.js.map +1 -1
  328. package/esm/chart/range-area/range-area.js +6 -0
  329. package/esm/chart/range-area/range-area.js.map +1 -1
  330. package/esm/chart/range-column/index.d.ts +2 -1
  331. package/esm/chart/range-column/index.js +3 -1
  332. package/esm/chart/range-column/index.js.map +1 -1
  333. package/esm/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
  334. package/esm/chart/range-column/{rangeColumn.js → range-column-3d.js} +5 -13
  335. package/esm/chart/range-column/range-column-3d.js.map +1 -0
  336. package/esm/chart/range-column/range-column.d.ts +8 -0
  337. package/esm/chart/range-column/range-column.js +28 -0
  338. package/esm/chart/range-column/range-column.js.map +1 -0
  339. package/esm/chart/rose/rose.js +6 -0
  340. package/esm/chart/rose/rose.js.map +1 -1
  341. package/esm/chart/sankey/sankey.js +6 -0
  342. package/esm/chart/sankey/sankey.js.map +1 -1
  343. package/esm/chart/scatter/scatter.js +6 -0
  344. package/esm/chart/scatter/scatter.js.map +1 -1
  345. package/esm/chart/sequence/sequence.js +6 -0
  346. package/esm/chart/sequence/sequence.js.map +1 -1
  347. package/esm/chart/sunburst/sunburst.js +6 -0
  348. package/esm/chart/sunburst/sunburst.js.map +1 -1
  349. package/esm/chart/treemap/treemap.js +6 -0
  350. package/esm/chart/treemap/treemap.js.map +1 -1
  351. package/esm/chart/waterfall/waterfall.js +6 -0
  352. package/esm/chart/waterfall/waterfall.js.map +1 -1
  353. package/esm/chart/word-cloud/base.d.ts +6 -0
  354. package/esm/chart/word-cloud/base.js +21 -0
  355. package/esm/chart/word-cloud/base.js.map +1 -0
  356. package/esm/chart/word-cloud/index.d.ts +1 -0
  357. package/esm/chart/word-cloud/index.js +2 -0
  358. package/esm/chart/word-cloud/index.js.map +1 -1
  359. package/esm/chart/word-cloud/word-cloud-3d.d.ts +9 -0
  360. package/esm/chart/word-cloud/word-cloud-3d.js +47 -0
  361. package/esm/chart/word-cloud/word-cloud-3d.js.map +1 -0
  362. package/esm/chart/word-cloud/word-cloud.d.ts +2 -15
  363. package/esm/chart/word-cloud/word-cloud.js +6 -50
  364. package/esm/chart/word-cloud/word-cloud.js.map +1 -1
  365. package/esm/compile/grammar-item.js +1 -2
  366. package/esm/component/index.d.ts +39 -1
  367. package/esm/component/index.js +39 -1
  368. package/esm/component/index.js.map +1 -1
  369. package/esm/component/legend/base-legend.d.ts +1 -1
  370. package/esm/component/legend/util.d.ts +3 -3
  371. package/esm/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
  372. package/esm/constant/marker.js +1 -2
  373. package/esm/constant/word-cloud.js +2 -1
  374. package/esm/core/factory.js +1 -1
  375. package/esm/{export/core.d.ts → core/index.d.ts} +4 -4
  376. package/esm/{export/core.js → core/index.js} +5 -5
  377. package/esm/core/index.js.map +1 -0
  378. package/esm/core/instance-manager.js +1 -1
  379. package/esm/core/interface.js +1 -1
  380. package/esm/core/vchart.js +1 -1
  381. package/esm/data/initialize.js +2 -1
  382. package/esm/index.d.ts +6 -6
  383. package/esm/index.js +6 -6
  384. package/esm/index.js.map +1 -1
  385. package/esm/interaction/interface.js +1 -1
  386. package/esm/interaction/trigger.js +1 -1
  387. package/esm/layout/base-layout.d.ts +24 -0
  388. package/esm/layout/base-layout.js +116 -0
  389. package/esm/layout/base-layout.js.map +1 -0
  390. package/esm/layout/index.d.ts +7 -24
  391. package/esm/layout/index.js +8 -115
  392. package/esm/layout/index.js.map +1 -1
  393. package/esm/layout/layout3d/index.d.ts +1 -1
  394. package/esm/layout/layout3d/index.js +1 -1
  395. package/esm/layout/layout3d/index.js.map +1 -1
  396. package/esm/mark/arc-3d.d.ts +9 -0
  397. package/esm/mark/arc-3d.js +12 -0
  398. package/esm/mark/arc-3d.js.map +1 -0
  399. package/esm/mark/arc.d.ts +1 -6
  400. package/esm/mark/arc.js +0 -8
  401. package/esm/mark/arc.js.map +1 -1
  402. package/esm/mark/index.d.ts +21 -0
  403. package/esm/mark/index.js +40 -0
  404. package/esm/mark/index.js.map +1 -0
  405. package/esm/mark/{linkPath.js → link-path.js} +1 -1
  406. package/esm/mark/link-path.js.map +1 -0
  407. package/esm/mark/polygon/base-polygon.d.ts +6 -0
  408. package/esm/mark/polygon/base-polygon.js +10 -0
  409. package/esm/mark/polygon/base-polygon.js.map +1 -0
  410. package/esm/mark/polygon/polygon.d.ts +9 -0
  411. package/esm/mark/polygon/polygon.js +12 -0
  412. package/esm/mark/polygon/polygon.js.map +1 -0
  413. package/esm/mark/polygon/pyramid-3d.d.ts +9 -0
  414. package/esm/mark/polygon/pyramid-3d.js +12 -0
  415. package/esm/mark/polygon/pyramid-3d.js.map +1 -0
  416. package/esm/mark/rect-3d.d.ts +10 -0
  417. package/esm/mark/rect-3d.js +19 -0
  418. package/esm/mark/rect-3d.js.map +1 -0
  419. package/esm/mark/rect.d.ts +1 -7
  420. package/esm/mark/rect.js +0 -15
  421. package/esm/mark/rect.js.map +1 -1
  422. package/esm/model/layout-item.js +1 -2
  423. package/esm/plugin/interface.js +1 -1
  424. package/esm/region/region.js +1 -1
  425. package/esm/series/area/area.js +12 -0
  426. package/esm/series/area/area.js.map +1 -1
  427. package/esm/series/bar/bar-3d.d.ts +11 -0
  428. package/esm/series/bar/bar-3d.js +30 -0
  429. package/esm/series/bar/bar-3d.js.map +1 -0
  430. package/esm/series/bar/bar.d.ts +0 -7
  431. package/esm/series/bar/bar.js +8 -14
  432. package/esm/series/bar/bar.js.map +1 -1
  433. package/esm/series/box-plot/box-plot.js +8 -0
  434. package/esm/series/box-plot/box-plot.js.map +1 -1
  435. package/esm/series/circle-packing/circle-packing.js +8 -0
  436. package/esm/series/circle-packing/circle-packing.js.map +1 -1
  437. package/esm/series/dot/dot.js +14 -0
  438. package/esm/series/dot/dot.js.map +1 -1
  439. package/esm/series/funnel/funnel-3d.d.ts +18 -0
  440. package/esm/series/funnel/funnel-3d.js +113 -0
  441. package/esm/series/funnel/funnel-3d.js.map +1 -0
  442. package/esm/series/funnel/funnel.d.ts +2 -14
  443. package/esm/series/funnel/funnel.js +10 -93
  444. package/esm/series/funnel/funnel.js.map +1 -1
  445. package/esm/series/gauge/gauge-pointer.js +8 -0
  446. package/esm/series/gauge/gauge-pointer.js.map +1 -1
  447. package/esm/series/gauge/gauge.js +6 -0
  448. package/esm/series/gauge/gauge.js.map +1 -1
  449. package/esm/series/heatmap/heatmap.js +8 -0
  450. package/esm/series/heatmap/heatmap.js.map +1 -1
  451. package/esm/series/index.d.ts +66 -0
  452. package/esm/series/index.js +70 -0
  453. package/esm/series/index.js.map +1 -0
  454. package/esm/series/line/line.js +10 -0
  455. package/esm/series/line/line.js.map +1 -1
  456. package/esm/series/link/link.js +10 -0
  457. package/esm/series/link/link.js.map +1 -1
  458. package/esm/series/map/map.js +7 -1
  459. package/esm/series/map/map.js.map +1 -1
  460. package/esm/series/pie/pie-3d.d.ts +16 -0
  461. package/esm/series/pie/pie-3d.js +107 -0
  462. package/esm/series/pie/pie-3d.js.map +1 -0
  463. package/esm/series/pie/pie.d.ts +1 -11
  464. package/esm/series/pie/pie.js +10 -83
  465. package/esm/series/pie/pie.js.map +1 -1
  466. package/esm/series/polar/animation.d.ts +1 -1
  467. package/esm/series/polar/animation.js.map +1 -1
  468. package/esm/series/progress/circular/circular.js +8 -0
  469. package/esm/series/progress/circular/circular.js.map +1 -1
  470. package/esm/series/progress/linear/linear.js +6 -0
  471. package/esm/series/progress/linear/linear.js.map +1 -1
  472. package/esm/series/radar/animation.d.ts +1 -1
  473. package/esm/series/radar/animation.js.map +1 -1
  474. package/esm/series/radar/radar.js +12 -0
  475. package/esm/series/radar/radar.js.map +1 -1
  476. package/esm/series/range-column/rangeColumn-3d.d.ts +10 -0
  477. package/esm/series/range-column/rangeColumn-3d.js +23 -0
  478. package/esm/series/range-column/rangeColumn-3d.js.map +1 -0
  479. package/esm/series/range-column/rangeColumn.d.ts +0 -6
  480. package/esm/series/range-column/rangeColumn.js +0 -9
  481. package/esm/series/range-column/rangeColumn.js.map +1 -1
  482. package/esm/series/rose/rose.js +8 -0
  483. package/esm/series/rose/rose.js.map +1 -1
  484. package/esm/series/sankey/sankey.js +9 -1
  485. package/esm/series/sankey/sankey.js.map +1 -1
  486. package/esm/series/scatter/scatter.js +8 -0
  487. package/esm/series/scatter/scatter.js.map +1 -1
  488. package/esm/series/sunburst/sunburst.js +8 -0
  489. package/esm/series/sunburst/sunburst.js.map +1 -1
  490. package/esm/series/treemap/treemap.js +8 -0
  491. package/esm/series/treemap/treemap.js.map +1 -1
  492. package/esm/series/waterfall/waterfall.js +6 -0
  493. package/esm/series/waterfall/waterfall.js.map +1 -1
  494. package/esm/series/word-cloud/base.d.ts +60 -0
  495. package/esm/series/word-cloud/base.js +278 -0
  496. package/esm/series/word-cloud/base.js.map +1 -0
  497. package/esm/series/word-cloud/word-cloud-3d.d.ts +11 -0
  498. package/esm/series/word-cloud/word-cloud-3d.js +207 -0
  499. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -0
  500. package/esm/series/word-cloud/word-cloud.d.ts +2 -69
  501. package/esm/series/word-cloud/word-cloud.js +2 -461
  502. package/esm/series/word-cloud/word-cloud.js.map +1 -1
  503. package/esm/vchart-all.d.ts +1 -1
  504. package/esm/vchart-all.js +4 -12
  505. package/esm/vchart-all.js.map +1 -1
  506. package/esm/vchart-simple.d.ts +1 -1
  507. package/esm/vchart-simple.js +4 -10
  508. package/esm/vchart-simple.js.map +1 -1
  509. package/layout.d.ts +1 -1
  510. package/layout.js +1 -1
  511. package/mark.d.ts +1 -1
  512. package/mark.js +1 -1
  513. package/package.json +1 -1
  514. package/series.d.ts +1 -1
  515. package/series.js +1 -1
  516. package/cjs/chart/range-column/rangeColumn.js.map +0 -1
  517. package/cjs/export/chart.d.ts +0 -57
  518. package/cjs/export/chart.js +0 -298
  519. package/cjs/export/chart.js.map +0 -1
  520. package/cjs/export/component.d.ts +0 -39
  521. package/cjs/export/component.js +0 -207
  522. package/cjs/export/component.js.map +0 -1
  523. package/cjs/export/core.js.map +0 -1
  524. package/cjs/export/layout.d.ts +0 -7
  525. package/cjs/export/layout.js +0 -33
  526. package/cjs/export/layout.js.map +0 -1
  527. package/cjs/export/mark.d.ts +0 -18
  528. package/cjs/export/mark.js.map +0 -1
  529. package/cjs/export/series.d.ts +0 -61
  530. package/cjs/export/series.js.map +0 -1
  531. package/cjs/mark/linkPath.js.map +0 -1
  532. package/cjs/mark/polygon.d.ts +0 -18
  533. package/cjs/mark/polygon.js +0 -32
  534. package/cjs/mark/polygon.js.map +0 -1
  535. package/esm/chart/range-column/rangeColumn.js.map +0 -1
  536. package/esm/export/chart.d.ts +0 -57
  537. package/esm/export/chart.js +0 -58
  538. package/esm/export/chart.js.map +0 -1
  539. package/esm/export/component.d.ts +0 -39
  540. package/esm/export/component.js +0 -40
  541. package/esm/export/component.js.map +0 -1
  542. package/esm/export/core.js.map +0 -1
  543. package/esm/export/layout.d.ts +0 -7
  544. package/esm/export/layout.js +0 -8
  545. package/esm/export/layout.js.map +0 -1
  546. package/esm/export/mark.d.ts +0 -18
  547. package/esm/export/mark.js +0 -34
  548. package/esm/export/mark.js.map +0 -1
  549. package/esm/export/series.d.ts +0 -61
  550. package/esm/export/series.js +0 -60
  551. package/esm/export/series.js.map +0 -1
  552. package/esm/mark/linkPath.js.map +0 -1
  553. package/esm/mark/polygon.d.ts +0 -18
  554. package/esm/mark/polygon.js +0 -28
  555. package/esm/mark/polygon.js.map +0 -1
  556. /package/cjs/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
  557. /package/esm/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
@@ -2,23 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.Histogram3dChart = exports.HistogramChart = void 0;
5
+ }), exports.HistogramChart = void 0;
6
6
 
7
- const interface_1 = require("../../series/interface"), cartesian_1 = require("../cartesian/cartesian"), interface_2 = require("../interface");
7
+ const interface_1 = require("../../series/interface"), interface_2 = require("../interface"), base_1 = require("./base"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
8
8
 
9
- class BaseHistogramChart extends cartesian_1.CartesianChart {
10
- transformSpec(spec) {
11
- super.transformSpec(spec), spec.axes.forEach((axis => axis.type = "linear"));
12
- }
13
- _getDefaultSeriesSpec(spec) {
14
- return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
15
- x2Field: null == spec ? void 0 : spec.x2Field,
16
- y2Field: null == spec ? void 0 : spec.y2Field
17
- });
18
- }
19
- }
9
+ vchart_1.VChart.useSeries([ series_1.BarSeries ]);
20
10
 
21
- class HistogramChart extends BaseHistogramChart {
11
+ class HistogramChart extends base_1.BaseHistogramChart {
22
12
  constructor() {
23
13
  super(...arguments), this.type = interface_2.ChartTypeEnum.histogram, this.seriesType = interface_1.SeriesTypeEnum.bar;
24
14
  }
@@ -26,13 +16,4 @@ class HistogramChart extends BaseHistogramChart {
26
16
 
27
17
  exports.HistogramChart = HistogramChart, HistogramChart.type = interface_2.ChartTypeEnum.histogram,
28
18
  HistogramChart.view = "singleDefault";
29
-
30
- class Histogram3dChart extends BaseHistogramChart {
31
- constructor() {
32
- super(...arguments), this.type = interface_2.ChartTypeEnum.histogram3d, this.seriesType = interface_1.SeriesTypeEnum.bar3d;
33
- }
34
- }
35
-
36
- exports.Histogram3dChart = Histogram3dChart, Histogram3dChart.type = interface_2.ChartTypeEnum.histogram3d,
37
- Histogram3dChart.view = "singleDefault";
38
19
  //# sourceMappingURL=histogram.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/histogram/histogram.ts"],"names":[],"mappings":";;;AACA,sDAAwD;AACxD,sDAAwD;AACxD,4CAA6C;AAE7C,MAAM,kBAAmB,SAAQ,0BAAc;IAC7C,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAA8B,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC;IAChF,CAAC;IAES,qBAAqB,CAAC,IAAS;QACvC,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,OAAO,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EACtB,OAAO,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,IACtB;IACJ,CAAC;CACF;AAED,MAAa,cAAe,SAAQ,kBAAkB;IAAtD;;QAGW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,GAAG,CAAC;IACnD,CAAC;;AALD,wCAKC;AAJiB,mBAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;AACvC,mBAAI,GAAW,eAAe,CAAC;AAKjD,MAAa,gBAAiB,SAAQ,kBAAkB;IAAxD;;QAGW,SAAI,GAAW,yBAAa,CAAC,WAAW,CAAC;QACzC,eAAU,GAAW,0BAAc,CAAC,KAAK,CAAC;IACrD,CAAC;;AALD,4CAKC;AAJiB,qBAAI,GAAW,yBAAa,CAAC,WAAW,CAAC;AACzC,qBAAI,GAAW,eAAe,CAAC","file":"histogram.js","sourcesContent":["import type { ICartesianAxisCommonSpec } from '../../component/axis/cartesian/interface';\nimport { SeriesTypeEnum } from '../../series/interface';\nimport { CartesianChart } from '../cartesian/cartesian';\nimport { ChartTypeEnum } from '../interface';\n\nclass BaseHistogramChart extends CartesianChart {\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n spec.axes.forEach((axis: ICartesianAxisCommonSpec) => (axis.type = 'linear'));\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n x2Field: spec?.x2Field,\n y2Field: spec?.y2Field\n };\n }\n}\n\nexport class HistogramChart extends BaseHistogramChart {\n static readonly type: string = ChartTypeEnum.histogram;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.histogram;\n readonly seriesType: string = SeriesTypeEnum.bar;\n}\n\nexport class Histogram3dChart extends BaseHistogramChart {\n static readonly type: string = ChartTypeEnum.histogram3d;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.histogram3d;\n readonly seriesType: string = SeriesTypeEnum.bar3d;\n}\n"]}
1
+ {"version":3,"sources":["../src/chart/histogram/histogram.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,4CAA6C;AAC7C,iCAA4C;AAC5C,8CAA2C;AAC3C,yCAAyC;AACzC,eAAM,CAAC,SAAS,CAAC,CAAC,kBAAS,CAAC,CAAC,CAAC;AAE9B,MAAa,cAAe,SAAQ,yBAAkB;IAAtD;;QAGW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,GAAG,CAAC;IACnD,CAAC;;AALD,wCAKC;AAJiB,mBAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;AACvC,mBAAI,GAAW,eAAe,CAAC","file":"histogram.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { BaseHistogramChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { BarSeries } from '../../series';\nVChart.useSeries([BarSeries]);\n\nexport class HistogramChart extends BaseHistogramChart {\n static readonly type: string = ChartTypeEnum.histogram;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.histogram;\n readonly seriesType: string = SeriesTypeEnum.bar;\n}\n"]}
@@ -1,2 +1,3 @@
1
1
  export * from './histogram';
2
+ export * from './histogram-3d';
2
3
  export * from './interface';
@@ -17,5 +17,6 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./histogram"), exports), __exportStar(require("./interface"), exports);
20
+ }), __exportStar(require("./histogram"), exports), __exportStar(require("./histogram-3d"), exports),
21
+ __exportStar(require("./interface"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './interface';\n"]}
1
+ {"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './histogram-3d';\nexport * from './interface';\n"]}
@@ -1,22 +1,57 @@
1
- export * from './line';
2
- export * from './area';
3
- export * from './bar';
4
- export * from './histogram';
5
- export * from './pie';
6
- export * from './rose';
7
- export * from './map';
8
- export * from './funnel';
9
- export * from './radar';
10
- export * from './word-cloud';
11
- export * from './sequence';
12
- export * from './progress/circular';
13
- export * from './progress/linear';
14
- export * from './range-column';
15
- export * from './scatter';
16
- export * from './sunburst';
17
- export * from './circle-packing';
18
- export * from './box-plot';
19
- export * from './gauge';
20
- export * from './heatmap';
21
- export * from './common';
22
- export * from './base-chart';
1
+ import type { IAreaChartSpec } from './area';
2
+ import { AreaChart } from './area';
3
+ import type { IBarChartSpec, IBar3dChartSpec } from './bar';
4
+ import { BarChart, Bar3dChart } from './bar';
5
+ import type { IBoxPlotChartSpec } from './box-plot';
6
+ import { BoxPlotChart } from './box-plot';
7
+ import type { ICirclePackingChartSpec } from './circle-packing';
8
+ import { CirclePackingChart } from './circle-packing';
9
+ import type { ICommonChartSpec } from './common';
10
+ import { CommonChart } from './common';
11
+ import type { IFunnelChartSpec, IFunnel3dChartSpec } from './funnel';
12
+ import { FunnelChart, Funnel3dChart } from './funnel';
13
+ import type { IGaugeChartSpec } from './gauge';
14
+ import { GaugeChart } from './gauge';
15
+ import type { IHeatmapChartSpec } from './heatmap';
16
+ import { HeatmapChart } from './heatmap';
17
+ import type { IHistogramChartSpec, IHistogram3dChartSpec } from './histogram';
18
+ import { HistogramChart, Histogram3dChart } from './histogram';
19
+ import type { ILineChartSpec } from './line';
20
+ import { LineChart } from './line';
21
+ import type { IMapChartSpec } from './map';
22
+ import { MapChart } from './map';
23
+ import type { IPieChartSpec, IPie3dChartSpec } from './pie';
24
+ import { PieChart, Pie3dChart } from './pie';
25
+ import type { ICircularProgressChartSpec } from './progress/circular';
26
+ import { CircularProgressChart } from './progress/circular';
27
+ import type { ILinearProgressChartSpec } from './progress/linear';
28
+ import { LinearProgressChart } from './progress/linear';
29
+ import type { IRadarChartSpec } from './radar';
30
+ import { RadarChart } from './radar';
31
+ import type { IRangeAreaChartSpec } from './range-area';
32
+ import { RangeAreaChart } from './range-area';
33
+ import type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from './range-column';
34
+ import { RangeColumnChart, RangeColumn3dChart } from './range-column';
35
+ import type { IRoseChartSpec } from './rose';
36
+ import { RoseChart } from './rose';
37
+ import type { ISankeyChartSpec } from './sankey';
38
+ import { SankeyChart } from './sankey';
39
+ import type { IScatterChartSpec } from './scatter';
40
+ import { ScatterChart } from './scatter';
41
+ import type { ISequenceChartSpec } from './sequence';
42
+ import { SequenceChart } from './sequence';
43
+ import type { ISunburstChartSpec } from './sunburst';
44
+ import { SunburstChart } from './sunburst';
45
+ import type { ITreemapChartSpec } from './treemap';
46
+ import { TreeMapChart } from './treemap';
47
+ import type { IWaterfallChartSpec } from './waterfall';
48
+ import { WaterfallChart } from './waterfall';
49
+ import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';
50
+ import { WordCloudChart, WordCloud3dChart } from './word-cloud';
51
+ import { BaseChart } from './base-chart';
52
+ import type { ICartesianChartSpec } from './cartesian';
53
+ import { CartesianChart } from './cartesian';
54
+ import type { IPolarChartSpec } from './polar';
55
+ import { PolarChart, RoseLikeChart, ProgressLikeChart } from './polar';
56
+ export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, WordCloudChart, WordCloud3dChart, TreeMapChart, BaseChart, PolarChart, ProgressLikeChart, RoseLikeChart, CartesianChart };
57
+ export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec };
@@ -1,31 +1,298 @@
1
1
  "use strict";
2
2
 
3
- var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
4
- void 0 === k2 && (k2 = k);
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
7
- enumerable: !0,
8
- get: function() {
9
- return m[k];
10
- }
11
- }), Object.defineProperty(o, k2, desc);
12
- } : function(o, m, k, k2) {
13
- void 0 === k2 && (k2 = k), o[k2] = m[k];
14
- }), __exportStar = this && this.__exportStar || function(m, exports) {
15
- for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
16
- };
17
-
18
3
  Object.defineProperty(exports, "__esModule", {
19
4
  value: !0
20
- }), __exportStar(require("./line"), exports), __exportStar(require("./area"), exports),
21
- __exportStar(require("./bar"), exports), __exportStar(require("./histogram"), exports),
22
- __exportStar(require("./pie"), exports), __exportStar(require("./rose"), exports),
23
- __exportStar(require("./map"), exports), __exportStar(require("./funnel"), exports),
24
- __exportStar(require("./radar"), exports), __exportStar(require("./word-cloud"), exports),
25
- __exportStar(require("./sequence"), exports), __exportStar(require("./progress/circular"), exports),
26
- __exportStar(require("./progress/linear"), exports), __exportStar(require("./range-column"), exports),
27
- __exportStar(require("./scatter"), exports), __exportStar(require("./sunburst"), exports),
28
- __exportStar(require("./circle-packing"), exports), __exportStar(require("./box-plot"), exports),
29
- __exportStar(require("./gauge"), exports), __exportStar(require("./heatmap"), exports),
30
- __exportStar(require("./common"), exports), __exportStar(require("./base-chart"), exports);
5
+ }), exports.CartesianChart = exports.RoseLikeChart = exports.ProgressLikeChart = exports.PolarChart = exports.BaseChart = exports.TreeMapChart = exports.WordCloud3dChart = exports.WordCloudChart = exports.WaterfallChart = exports.SequenceChart = exports.SunburstChart = exports.ScatterChart = exports.SankeyChart = exports.RoseChart = exports.RangeAreaChart = exports.RangeColumn3dChart = exports.RangeColumnChart = exports.RadarChart = exports.LinearProgressChart = exports.CircularProgressChart = exports.Pie3dChart = exports.PieChart = exports.MapChart = exports.LineChart = exports.Histogram3dChart = exports.HistogramChart = exports.HeatmapChart = exports.GaugeChart = exports.Funnel3dChart = exports.FunnelChart = exports.CommonChart = exports.CirclePackingChart = exports.BoxPlotChart = exports.Bar3dChart = exports.BarChart = exports.AreaChart = void 0;
6
+
7
+ const area_1 = require("./area");
8
+
9
+ Object.defineProperty(exports, "AreaChart", {
10
+ enumerable: !0,
11
+ get: function() {
12
+ return area_1.AreaChart;
13
+ }
14
+ });
15
+
16
+ const bar_1 = require("./bar");
17
+
18
+ Object.defineProperty(exports, "BarChart", {
19
+ enumerable: !0,
20
+ get: function() {
21
+ return bar_1.BarChart;
22
+ }
23
+ }), Object.defineProperty(exports, "Bar3dChart", {
24
+ enumerable: !0,
25
+ get: function() {
26
+ return bar_1.Bar3dChart;
27
+ }
28
+ });
29
+
30
+ const box_plot_1 = require("./box-plot");
31
+
32
+ Object.defineProperty(exports, "BoxPlotChart", {
33
+ enumerable: !0,
34
+ get: function() {
35
+ return box_plot_1.BoxPlotChart;
36
+ }
37
+ });
38
+
39
+ const circle_packing_1 = require("./circle-packing");
40
+
41
+ Object.defineProperty(exports, "CirclePackingChart", {
42
+ enumerable: !0,
43
+ get: function() {
44
+ return circle_packing_1.CirclePackingChart;
45
+ }
46
+ });
47
+
48
+ const common_1 = require("./common");
49
+
50
+ Object.defineProperty(exports, "CommonChart", {
51
+ enumerable: !0,
52
+ get: function() {
53
+ return common_1.CommonChart;
54
+ }
55
+ });
56
+
57
+ const funnel_1 = require("./funnel");
58
+
59
+ Object.defineProperty(exports, "FunnelChart", {
60
+ enumerable: !0,
61
+ get: function() {
62
+ return funnel_1.FunnelChart;
63
+ }
64
+ }), Object.defineProperty(exports, "Funnel3dChart", {
65
+ enumerable: !0,
66
+ get: function() {
67
+ return funnel_1.Funnel3dChart;
68
+ }
69
+ });
70
+
71
+ const gauge_1 = require("./gauge");
72
+
73
+ Object.defineProperty(exports, "GaugeChart", {
74
+ enumerable: !0,
75
+ get: function() {
76
+ return gauge_1.GaugeChart;
77
+ }
78
+ });
79
+
80
+ const heatmap_1 = require("./heatmap");
81
+
82
+ Object.defineProperty(exports, "HeatmapChart", {
83
+ enumerable: !0,
84
+ get: function() {
85
+ return heatmap_1.HeatmapChart;
86
+ }
87
+ });
88
+
89
+ const histogram_1 = require("./histogram");
90
+
91
+ Object.defineProperty(exports, "HistogramChart", {
92
+ enumerable: !0,
93
+ get: function() {
94
+ return histogram_1.HistogramChart;
95
+ }
96
+ }), Object.defineProperty(exports, "Histogram3dChart", {
97
+ enumerable: !0,
98
+ get: function() {
99
+ return histogram_1.Histogram3dChart;
100
+ }
101
+ });
102
+
103
+ const line_1 = require("./line");
104
+
105
+ Object.defineProperty(exports, "LineChart", {
106
+ enumerable: !0,
107
+ get: function() {
108
+ return line_1.LineChart;
109
+ }
110
+ });
111
+
112
+ const map_1 = require("./map");
113
+
114
+ Object.defineProperty(exports, "MapChart", {
115
+ enumerable: !0,
116
+ get: function() {
117
+ return map_1.MapChart;
118
+ }
119
+ });
120
+
121
+ const pie_1 = require("./pie");
122
+
123
+ Object.defineProperty(exports, "PieChart", {
124
+ enumerable: !0,
125
+ get: function() {
126
+ return pie_1.PieChart;
127
+ }
128
+ }), Object.defineProperty(exports, "Pie3dChart", {
129
+ enumerable: !0,
130
+ get: function() {
131
+ return pie_1.Pie3dChart;
132
+ }
133
+ });
134
+
135
+ const circular_1 = require("./progress/circular");
136
+
137
+ Object.defineProperty(exports, "CircularProgressChart", {
138
+ enumerable: !0,
139
+ get: function() {
140
+ return circular_1.CircularProgressChart;
141
+ }
142
+ });
143
+
144
+ const linear_1 = require("./progress/linear");
145
+
146
+ Object.defineProperty(exports, "LinearProgressChart", {
147
+ enumerable: !0,
148
+ get: function() {
149
+ return linear_1.LinearProgressChart;
150
+ }
151
+ });
152
+
153
+ const radar_1 = require("./radar");
154
+
155
+ Object.defineProperty(exports, "RadarChart", {
156
+ enumerable: !0,
157
+ get: function() {
158
+ return radar_1.RadarChart;
159
+ }
160
+ });
161
+
162
+ const range_area_1 = require("./range-area");
163
+
164
+ Object.defineProperty(exports, "RangeAreaChart", {
165
+ enumerable: !0,
166
+ get: function() {
167
+ return range_area_1.RangeAreaChart;
168
+ }
169
+ });
170
+
171
+ const range_column_1 = require("./range-column");
172
+
173
+ Object.defineProperty(exports, "RangeColumnChart", {
174
+ enumerable: !0,
175
+ get: function() {
176
+ return range_column_1.RangeColumnChart;
177
+ }
178
+ }), Object.defineProperty(exports, "RangeColumn3dChart", {
179
+ enumerable: !0,
180
+ get: function() {
181
+ return range_column_1.RangeColumn3dChart;
182
+ }
183
+ });
184
+
185
+ const rose_1 = require("./rose");
186
+
187
+ Object.defineProperty(exports, "RoseChart", {
188
+ enumerable: !0,
189
+ get: function() {
190
+ return rose_1.RoseChart;
191
+ }
192
+ });
193
+
194
+ const sankey_1 = require("./sankey");
195
+
196
+ Object.defineProperty(exports, "SankeyChart", {
197
+ enumerable: !0,
198
+ get: function() {
199
+ return sankey_1.SankeyChart;
200
+ }
201
+ });
202
+
203
+ const scatter_1 = require("./scatter");
204
+
205
+ Object.defineProperty(exports, "ScatterChart", {
206
+ enumerable: !0,
207
+ get: function() {
208
+ return scatter_1.ScatterChart;
209
+ }
210
+ });
211
+
212
+ const sequence_1 = require("./sequence");
213
+
214
+ Object.defineProperty(exports, "SequenceChart", {
215
+ enumerable: !0,
216
+ get: function() {
217
+ return sequence_1.SequenceChart;
218
+ }
219
+ });
220
+
221
+ const sunburst_1 = require("./sunburst");
222
+
223
+ Object.defineProperty(exports, "SunburstChart", {
224
+ enumerable: !0,
225
+ get: function() {
226
+ return sunburst_1.SunburstChart;
227
+ }
228
+ });
229
+
230
+ const treemap_1 = require("./treemap");
231
+
232
+ Object.defineProperty(exports, "TreeMapChart", {
233
+ enumerable: !0,
234
+ get: function() {
235
+ return treemap_1.TreeMapChart;
236
+ }
237
+ });
238
+
239
+ const waterfall_1 = require("./waterfall");
240
+
241
+ Object.defineProperty(exports, "WaterfallChart", {
242
+ enumerable: !0,
243
+ get: function() {
244
+ return waterfall_1.WaterfallChart;
245
+ }
246
+ });
247
+
248
+ const word_cloud_1 = require("./word-cloud");
249
+
250
+ Object.defineProperty(exports, "WordCloudChart", {
251
+ enumerable: !0,
252
+ get: function() {
253
+ return word_cloud_1.WordCloudChart;
254
+ }
255
+ }), Object.defineProperty(exports, "WordCloud3dChart", {
256
+ enumerable: !0,
257
+ get: function() {
258
+ return word_cloud_1.WordCloud3dChart;
259
+ }
260
+ });
261
+
262
+ const base_chart_1 = require("./base-chart");
263
+
264
+ Object.defineProperty(exports, "BaseChart", {
265
+ enumerable: !0,
266
+ get: function() {
267
+ return base_chart_1.BaseChart;
268
+ }
269
+ });
270
+
271
+ const cartesian_1 = require("./cartesian");
272
+
273
+ Object.defineProperty(exports, "CartesianChart", {
274
+ enumerable: !0,
275
+ get: function() {
276
+ return cartesian_1.CartesianChart;
277
+ }
278
+ });
279
+
280
+ const polar_1 = require("./polar");
281
+
282
+ Object.defineProperty(exports, "PolarChart", {
283
+ enumerable: !0,
284
+ get: function() {
285
+ return polar_1.PolarChart;
286
+ }
287
+ }), Object.defineProperty(exports, "RoseLikeChart", {
288
+ enumerable: !0,
289
+ get: function() {
290
+ return polar_1.RoseLikeChart;
291
+ }
292
+ }), Object.defineProperty(exports, "ProgressLikeChart", {
293
+ enumerable: !0,
294
+ get: function() {
295
+ return polar_1.ProgressLikeChart;
296
+ }
297
+ });
31
298
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,8CAA4B;AAC5B,wCAAsB;AACtB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,6CAA2B;AAC3B,sDAAoC;AACpC,oDAAkC;AAClC,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,mDAAiC;AACjC,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAE1B,2CAAyB;AACzB,+CAA6B","file":"index.js","sourcesContent":["export * from './line';\nexport * from './area';\nexport * from './bar';\nexport * from './histogram';\nexport * from './pie';\nexport * from './rose';\nexport * from './map';\nexport * from './funnel';\nexport * from './radar';\nexport * from './word-cloud';\nexport * from './sequence';\nexport * from './progress/circular';\nexport * from './progress/linear';\nexport * from './range-column';\nexport * from './scatter';\nexport * from './sunburst';\nexport * from './circle-packing';\nexport * from './box-plot';\nexport * from './gauge';\nexport * from './heatmap';\n\nexport * from './common';\nexport * from './base-chart';\n"]}
1
+ {"version":3,"sources":["../src/chart/index.ts"],"names":[],"mappings":";;;AAKA,iCAAmC;AAwDjC,0FAxDO,gBAAS,OAwDP;AAtDX,+BAA6C;AAuD3C,yFAvDO,cAAQ,OAuDP;AACR,2FAxDiB,gBAAU,OAwDjB;AAtDZ,yCAA0C;AAuDxC,6FAvDO,uBAAY,OAuDP;AArDd,qDAAsD;AAsDpD,mGAtDO,mCAAkB,OAsDP;AApDpB,qCAAuC;AAqDrC,4FArDO,oBAAW,OAqDP;AAnDb,qCAAsD;AAoDpD,4FApDO,oBAAW,OAoDP;AACX,8FArDoB,sBAAa,OAqDpB;AAnDf,mCAAqC;AAoDnC,2FApDO,kBAAU,OAoDP;AAlDZ,uCAAyC;AAmDvC,6FAnDO,sBAAY,OAmDP;AAjDd,2CAA+D;AAkD7D,+FAlDO,0BAAc,OAkDP;AACd,iGAnDuB,4BAAgB,OAmDvB;AAjDlB,iCAAmC;AAkDjC,0FAlDO,gBAAS,OAkDP;AAhDX,+BAAiC;AAiD/B,yFAjDO,cAAQ,OAiDP;AA/CV,+BAA6C;AAgD3C,yFAhDO,cAAQ,OAgDP;AACR,2FAjDiB,gBAAU,OAiDjB;AA/CZ,kDAA4D;AAgD1D,sGAhDO,gCAAqB,OAgDP;AA9CvB,8CAAwD;AA+CtD,oGA/CO,4BAAmB,OA+CP;AA7CrB,mCAAqC;AA8CnC,2FA9CO,kBAAU,OA8CP;AA5CZ,6CAA8C;AA+C5C,+FA/CO,2BAAc,OA+CP;AA7ChB,iDAAsE;AA2CpE,iGA3CO,+BAAgB,OA2CP;AAChB,mGA5CyB,iCAAkB,OA4CzB;AA1CpB,iCAAmC;AA4CjC,0FA5CO,gBAAS,OA4CP;AA1CX,qCAAuC;AA2CrC,4FA3CO,oBAAW,OA2CP;AAzCb,uCAAyC;AA0CvC,6FA1CO,sBAAY,OA0CP;AAxCd,yCAA2C;AA0CzC,8FA1CO,wBAAa,OA0CP;AAxCf,yCAA2C;AAuCzC,8FAvCO,wBAAa,OAuCP;AArCf,uCAAyC;AA0CvC,6FA1CO,sBAAY,OA0CP;AAxCd,2CAA6C;AAqC3C,+FArCO,0BAAc,OAqCP;AAnChB,6CAAgE;AAoC9D,+FApCO,2BAAc,OAoCP;AACd,iGArCuB,6BAAgB,OAqCvB;AApClB,6CAAyC;AAsCvC,0FAtCO,sBAAS,OAsCP;AApCX,2CAA6C;AAwC3C,+FAxCO,0BAAc,OAwCP;AAtChB,mCAAuE;AAmCrE,2FAnCO,kBAAU,OAmCP;AAEV,8FArCmB,qBAAa,OAqCnB;AADb,kGApCkC,yBAAiB,OAoClC","file":"index.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\n/**\n * @description export all chart modules\n */\nimport type { IAreaChartSpec } from './area';\nimport { AreaChart } from './area';\nimport type { IBarChartSpec, IBar3dChartSpec } from './bar';\nimport { BarChart, Bar3dChart } from './bar';\nimport type { IBoxPlotChartSpec } from './box-plot';\nimport { BoxPlotChart } from './box-plot';\nimport type { ICirclePackingChartSpec } from './circle-packing';\nimport { CirclePackingChart } from './circle-packing';\nimport type { ICommonChartSpec } from './common';\nimport { CommonChart } from './common';\nimport type { IFunnelChartSpec, IFunnel3dChartSpec } from './funnel';\nimport { FunnelChart, Funnel3dChart } from './funnel';\nimport type { IGaugeChartSpec } from './gauge';\nimport { GaugeChart } from './gauge';\nimport type { IHeatmapChartSpec } from './heatmap';\nimport { HeatmapChart } from './heatmap';\nimport type { IHistogramChartSpec, IHistogram3dChartSpec } from './histogram';\nimport { HistogramChart, Histogram3dChart } from './histogram';\nimport type { ILineChartSpec } from './line';\nimport { LineChart } from './line';\nimport type { IMapChartSpec } from './map';\nimport { MapChart } from './map';\nimport type { IPieChartSpec, IPie3dChartSpec } from './pie';\nimport { PieChart, Pie3dChart } from './pie';\nimport type { ICircularProgressChartSpec } from './progress/circular';\nimport { CircularProgressChart } from './progress/circular';\nimport type { ILinearProgressChartSpec } from './progress/linear';\nimport { LinearProgressChart } from './progress/linear';\nimport type { IRadarChartSpec } from './radar';\nimport { RadarChart } from './radar';\nimport type { IRangeAreaChartSpec } from './range-area';\nimport { RangeAreaChart } from './range-area';\nimport type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from './range-column';\nimport { RangeColumnChart, RangeColumn3dChart } from './range-column';\nimport type { IRoseChartSpec } from './rose';\nimport { RoseChart } from './rose';\nimport type { ISankeyChartSpec } from './sankey';\nimport { SankeyChart } from './sankey';\nimport type { IScatterChartSpec } from './scatter';\nimport { ScatterChart } from './scatter';\nimport type { ISequenceChartSpec } from './sequence';\nimport { SequenceChart } from './sequence';\nimport type { ISunburstChartSpec } from './sunburst';\nimport { SunburstChart } from './sunburst';\nimport type { ITreemapChartSpec } from './treemap';\nimport { TreeMapChart } from './treemap';\nimport type { IWaterfallChartSpec } from './waterfall';\nimport { WaterfallChart } from './waterfall';\nimport type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';\nimport { WordCloudChart, WordCloud3dChart } from './word-cloud';\nimport { BaseChart } from './base-chart';\nimport type { ICartesianChartSpec } from './cartesian';\nimport { CartesianChart } from './cartesian';\nimport type { IPolarChartSpec } from './polar';\nimport { PolarChart, RoseLikeChart, ProgressLikeChart } from './polar';\n\nexport {\n AreaChart,\n BarChart,\n Bar3dChart,\n BoxPlotChart,\n CirclePackingChart,\n CommonChart,\n FunnelChart,\n Funnel3dChart,\n GaugeChart,\n HeatmapChart,\n HistogramChart,\n Histogram3dChart,\n LineChart,\n MapChart,\n PieChart,\n Pie3dChart,\n CircularProgressChart,\n LinearProgressChart,\n RadarChart,\n RangeColumnChart,\n RangeColumn3dChart,\n RangeAreaChart,\n RoseChart,\n SankeyChart,\n ScatterChart,\n SunburstChart,\n SequenceChart,\n WaterfallChart,\n WordCloudChart,\n WordCloud3dChart,\n TreeMapChart,\n BaseChart,\n PolarChart,\n ProgressLikeChart,\n RoseLikeChart,\n CartesianChart\n};\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec\n};\n"]}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.LineChart = void 0;
6
6
 
7
- const interface_1 = require("../../series/interface"), cartesian_1 = require("../cartesian/cartesian"), interface_2 = require("../interface");
7
+ const interface_1 = require("../../series/interface"), cartesian_1 = require("../cartesian/cartesian"), interface_2 = require("../interface"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
8
+
9
+ vchart_1.VChart.useSeries([ series_1.LineSeries ]);
8
10
 
9
11
  class LineChart extends cartesian_1.CartesianChart {
10
12
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,sDAAwD;AACxD,4CAA6C;AAG7C,MAAa,SAAU,SAAQ,0BAAc;IAA7C;;QAGW,SAAI,GAAW,yBAAa,CAAC,IAAI,CAAC;QAClC,eAAU,GAAW,0BAAc,CAAC,IAAI,CAAC;IAUpD,CAAC;IARW,qBAAqB,CAAC,IAAoB;QAClD,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,OAAO,EACxC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,IACf;IACJ,CAAC;;AAbH,8BAcC;AAbiB,cAAI,GAAW,yBAAa,CAAC,IAAI,CAAC;AAClC,cAAI,GAAW,eAAe,CAAC","file":"line.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { CartesianChart } from '../cartesian/cartesian';\nimport { ChartTypeEnum } from '../interface';\nimport type { ILineChartSpec } from './interface';\n\nexport class LineChart extends CartesianChart {\n static readonly type: string = ChartTypeEnum.line;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.line;\n readonly seriesType: string = SeriesTypeEnum.line;\n\n protected _getDefaultSeriesSpec(spec: ILineChartSpec): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n invalidType: spec.invalidType || 'break',\n point: spec.point,\n line: spec.line\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,sDAAwD;AACxD,4CAA6C;AAE7C,8CAA2C;AAC3C,yCAA0C;AAC1C,eAAM,CAAC,SAAS,CAAC,CAAC,mBAAU,CAAC,CAAC,CAAC;AAE/B,MAAa,SAAU,SAAQ,0BAAc;IAA7C;;QAGW,SAAI,GAAW,yBAAa,CAAC,IAAI,CAAC;QAClC,eAAU,GAAW,0BAAc,CAAC,IAAI,CAAC;IAUpD,CAAC;IARW,qBAAqB,CAAC,IAAoB;QAClD,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,OAAO,EACxC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,IACf;IACJ,CAAC;;AAbH,8BAcC;AAbiB,cAAI,GAAW,yBAAa,CAAC,IAAI,CAAC;AAClC,cAAI,GAAW,eAAe,CAAC","file":"line.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { CartesianChart } from '../cartesian/cartesian';\nimport { ChartTypeEnum } from '../interface';\nimport type { ILineChartSpec } from './interface';\nimport { VChart } from '../../core/vchart';\nimport { LineSeries } from '../../series';\nVChart.useSeries([LineSeries]);\n\nexport class LineChart extends CartesianChart {\n static readonly type: string = ChartTypeEnum.line;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.line;\n readonly seriesType: string = SeriesTypeEnum.line;\n\n protected _getDefaultSeriesSpec(spec: ILineChartSpec): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n invalidType: spec.invalidType || 'break',\n point: spec.point,\n line: spec.line\n };\n }\n}\n"]}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.MapChart = void 0;
6
6
 
7
- const base_chart_1 = require("../base-chart"), type_1 = require("../../series/interface/type"), type_2 = require("../interface/type");
7
+ const base_chart_1 = require("../base-chart"), type_1 = require("../../series/interface/type"), type_2 = require("../interface/type"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
8
+
9
+ vchart_1.VChart.useSeries([ series_1.MapSeries ]);
8
10
 
9
11
  class MapChart extends base_chart_1.BaseChart {
10
12
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAE1C,sDAA6D;AAC7D,4CAAkD;AAKlD,MAAa,QAAS,SAAQ,sBAAS;IAAvC;;QAGW,SAAI,GAAW,oBAAa,CAAC,GAAG,CAAC;QACjC,eAAU,GAAW,qBAAc,CAAC,GAAG,CAAC;IAiDnD,CAAC;IA/CW,qBAAqB,CAAC,IAAmB;QACjD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAEpC,IAAI,EAAE,IAAI,CAAC,IAAI,EAEf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAE7B,GAAG,EAAE,IAAI,CAAC,GAAG,EAEb,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAE,IAAI,CAAC,IAAI,GAChB,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;IAES,aAAa,CAAC,IAAY;QAClC,OAAO,IAAI,KAAK,qBAAc,CAAC,GAAG,CAAC;IACrC,CAAC;IAED,aAAa,CAAC,IAAmB;QAC/B,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;YACrC,CAAC,CAAC,UAAU,GAAG,KAAK,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAqB,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5C,IAAI,CAAC,MAAM,GAAG,CAAC,iBAAiB,CAAC,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;gBACrC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO;iBACR;gBACD,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBACzC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;wBACb,CAAC,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;qBAC7B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;;AApDH,4BAqDC;AApDiB,aAAI,GAAW,oBAAa,CAAC,GAAG,CAAC;AACjC,aAAI,GAAW,eAAe,CAAC","file":"map.js","sourcesContent":["import { BaseChart } from '../base-chart';\nimport type { IRegionSpec } from '../../region/interface';\nimport { SeriesTypeEnum } from '../../series/interface/type';\nimport { ChartTypeEnum } from '../interface/type';\nimport type { IMapChartSpec } from './interface';\nimport type { IMapSeriesSpec } from '../../series/map/interface';\nimport type { ISeriesSpec } from '../../typings/spec';\n\nexport class MapChart extends BaseChart {\n static readonly type: string = ChartTypeEnum.map;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.map;\n readonly seriesType: string = SeriesTypeEnum.map;\n\n protected _getDefaultSeriesSpec(spec: IMapChartSpec): IMapSeriesSpec {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n\n type: spec.type,\n\n nameField: spec.nameField,\n valueField: spec.valueField,\n seriesField: spec.seriesField,\n\n map: spec.map,\n\n nameProperty: spec.nameProperty,\n nameMap: spec.nameMap,\n area: spec.area\n };\n\n return series;\n }\n\n protected isValidSeries(type: string) {\n return type === SeriesTypeEnum.map;\n }\n\n transformSpec(spec: IMapChartSpec): void {\n super.transformSpec(spec);\n\n spec.region.forEach((r: IRegionSpec) => {\n r.coordinate = 'geo';\n });\n\n const defaultSeriesSpec = this._getDefaultSeriesSpec(spec as IMapChartSpec);\n if (!spec.series || spec.series.length === 0) {\n spec.series = [defaultSeriesSpec];\n } else {\n spec.series.forEach((s: ISeriesSpec) => {\n if (!this.isValidSeries(s.type)) {\n return;\n }\n Object.keys(defaultSeriesSpec).forEach(k => {\n if (!(k in s)) {\n s[k] = defaultSeriesSpec[k];\n }\n });\n });\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAE1C,sDAA6D;AAC7D,4CAAkD;AAIlD,8CAA2C;AAC3C,yCAAyC;AACzC,eAAM,CAAC,SAAS,CAAC,CAAC,kBAAS,CAAC,CAAC,CAAC;AAE9B,MAAa,QAAS,SAAQ,sBAAS;IAAvC;;QAGW,SAAI,GAAW,oBAAa,CAAC,GAAG,CAAC;QACjC,eAAU,GAAW,qBAAc,CAAC,GAAG,CAAC;IAiDnD,CAAC;IA/CW,qBAAqB,CAAC,IAAmB;QACjD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAEpC,IAAI,EAAE,IAAI,CAAC,IAAI,EAEf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAE7B,GAAG,EAAE,IAAI,CAAC,GAAG,EAEb,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAE,IAAI,CAAC,IAAI,GAChB,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;IAES,aAAa,CAAC,IAAY;QAClC,OAAO,IAAI,KAAK,qBAAc,CAAC,GAAG,CAAC;IACrC,CAAC;IAED,aAAa,CAAC,IAAmB;QAC/B,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;YACrC,CAAC,CAAC,UAAU,GAAG,KAAK,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAqB,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5C,IAAI,CAAC,MAAM,GAAG,CAAC,iBAAiB,CAAC,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;gBACrC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO;iBACR;gBACD,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBACzC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;wBACb,CAAC,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;qBAC7B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;;AApDH,4BAqDC;AApDiB,aAAI,GAAW,oBAAa,CAAC,GAAG,CAAC;AACjC,aAAI,GAAW,eAAe,CAAC","file":"map.js","sourcesContent":["import { BaseChart } from '../base-chart';\nimport type { IRegionSpec } from '../../region/interface';\nimport { SeriesTypeEnum } from '../../series/interface/type';\nimport { ChartTypeEnum } from '../interface/type';\nimport type { IMapChartSpec } from './interface';\nimport type { IMapSeriesSpec } from '../../series/map/interface';\nimport type { ISeriesSpec } from '../../typings/spec';\nimport { VChart } from '../../core/vchart';\nimport { MapSeries } from '../../series';\nVChart.useSeries([MapSeries]);\n\nexport class MapChart extends BaseChart {\n static readonly type: string = ChartTypeEnum.map;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.map;\n readonly seriesType: string = SeriesTypeEnum.map;\n\n protected _getDefaultSeriesSpec(spec: IMapChartSpec): IMapSeriesSpec {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n\n type: spec.type,\n\n nameField: spec.nameField,\n valueField: spec.valueField,\n seriesField: spec.seriesField,\n\n map: spec.map,\n\n nameProperty: spec.nameProperty,\n nameMap: spec.nameMap,\n area: spec.area\n };\n\n return series;\n }\n\n protected isValidSeries(type: string) {\n return type === SeriesTypeEnum.map;\n }\n\n transformSpec(spec: IMapChartSpec): void {\n super.transformSpec(spec);\n\n spec.region.forEach((r: IRegionSpec) => {\n r.coordinate = 'geo';\n });\n\n const defaultSeriesSpec = this._getDefaultSeriesSpec(spec as IMapChartSpec);\n if (!spec.series || spec.series.length === 0) {\n spec.series = [defaultSeriesSpec];\n } else {\n spec.series.forEach((s: ISeriesSpec) => {\n if (!this.isValidSeries(s.type)) {\n return;\n }\n Object.keys(defaultSeriesSpec).forEach(k => {\n if (!(k in s)) {\n s[k] = defaultSeriesSpec[k];\n }\n });\n });\n }\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { PolarChart } from '../polar/polar';
2
+ export declare class BasePieChart extends PolarChart {
3
+ protected needAxes(): boolean;
4
+ protected _getDefaultSeriesSpec(spec: any): any;
5
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.BasePieChart = void 0;
6
+
7
+ const polar_1 = require("../polar/polar");
8
+
9
+ class BasePieChart extends polar_1.PolarChart {
10
+ needAxes() {
11
+ return !1;
12
+ }
13
+ _getDefaultSeriesSpec(spec) {
14
+ return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
15
+ categoryField: spec.categoryField || spec.seriesField,
16
+ valueField: spec.valueField || spec.angleField,
17
+ center: spec.center,
18
+ centerOffset: spec.centerOffset,
19
+ cornerRadius: spec.cornerRadius,
20
+ padAngle: spec.padAngle
21
+ });
22
+ }
23
+ }
24
+
25
+ exports.BasePieChart = BasePieChart;
26
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/chart/pie/base.ts"],"names":[],"mappings":";;;AAAA,0CAA4C;AAE5C,MAAa,YAAa,SAAQ,kBAAU;IAChC,QAAQ;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IAES,qBAAqB,CAAC,IAAS;QACvC,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAGpC,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,WAAW,EACrD,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,EAE9C,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,YAAY,EAAE,IAAI,CAAC,YAAY,EAE/B,YAAY,EAAE,IAAI,CAAC,YAAY,EAE/B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB;IACJ,CAAC;CACF;AArBD,oCAqBC","file":"base.js","sourcesContent":["import { PolarChart } from '../polar/polar';\n\nexport class BasePieChart extends PolarChart {\n protected needAxes(): boolean {\n return false;\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n\n // 兼容旧版写法\n categoryField: spec.categoryField || spec.seriesField,\n valueField: spec.valueField || spec.angleField,\n\n center: spec.center,\n centerOffset: spec.centerOffset,\n\n cornerRadius: spec.cornerRadius,\n\n padAngle: spec.padAngle\n };\n }\n}\n"]}
@@ -1,2 +1,3 @@
1
1
  export * from './pie';
2
+ export * from './pie-3d';
2
3
  export * from './interface';
@@ -17,5 +17,6 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./pie"), exports), __exportStar(require("./interface"), exports);
20
+ }), __exportStar(require("./pie"), exports), __exportStar(require("./pie-3d"), exports),
21
+ __exportStar(require("./interface"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,8CAA4B","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './interface';\n"]}
1
+ {"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './pie-3d';\nexport * from './interface';\n"]}
@@ -0,0 +1,8 @@
1
+ import { BasePieChart } from './base';
2
+ export declare class Pie3dChart extends BasePieChart {
3
+ static readonly type: string;
4
+ static readonly view: string;
5
+ readonly type: string;
6
+ readonly seriesType: string;
7
+ transformSpec(spec: any): void;
8
+ }