@visactor/react-vchart 1.11.0-alpha.2 → 1.11.0

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 (467) hide show
  1. package/cjs/VChart.d.ts +1 -3
  2. package/cjs/VChart.js +2 -2
  3. package/cjs/VChart.js.map +1 -1
  4. package/cjs/charts/AreaChart.d.ts +1 -1
  5. package/cjs/charts/AreaChart.js +3 -9
  6. package/cjs/charts/AreaChart.js.map +1 -1
  7. package/cjs/charts/Bar3dChart.d.ts +10 -0
  8. package/cjs/charts/Bar3dChart.js +13 -0
  9. package/cjs/charts/Bar3dChart.js.map +1 -0
  10. package/cjs/charts/BarChart.d.ts +1 -1
  11. package/cjs/charts/BarChart.js +3 -9
  12. package/cjs/charts/BarChart.js.map +1 -1
  13. package/cjs/charts/BaseChart.d.ts +3 -3
  14. package/cjs/charts/BaseChart.js +11 -7
  15. package/cjs/charts/BaseChart.js.map +1 -1
  16. package/cjs/charts/BoxPlotChart.d.ts +1 -1
  17. package/cjs/charts/BoxPlotChart.js +3 -9
  18. package/cjs/charts/BoxPlotChart.js.map +1 -1
  19. package/cjs/charts/CirclePackingChart.d.ts +10 -0
  20. package/cjs/charts/CirclePackingChart.js +13 -0
  21. package/cjs/charts/CirclePackingChart.js.map +1 -0
  22. package/cjs/charts/CircularProgressChart.d.ts +1 -1
  23. package/cjs/charts/CircularProgressChart.js +3 -9
  24. package/cjs/charts/CircularProgressChart.js.map +1 -1
  25. package/cjs/charts/CommonChart.d.ts +1 -1
  26. package/cjs/charts/CommonChart.js +3 -9
  27. package/cjs/charts/CommonChart.js.map +1 -1
  28. package/cjs/charts/CorrelationChart.d.ts +10 -0
  29. package/cjs/charts/CorrelationChart.js +13 -0
  30. package/cjs/charts/CorrelationChart.js.map +1 -0
  31. package/cjs/charts/Funnel3dChart.d.ts +10 -0
  32. package/cjs/charts/Funnel3dChart.js +13 -0
  33. package/cjs/charts/Funnel3dChart.js.map +1 -0
  34. package/cjs/charts/FunnelChart.d.ts +1 -1
  35. package/cjs/charts/FunnelChart.js +3 -9
  36. package/cjs/charts/FunnelChart.js.map +1 -1
  37. package/cjs/charts/GaugeChart.d.ts +10 -0
  38. package/cjs/charts/GaugeChart.js +13 -0
  39. package/cjs/charts/GaugeChart.js.map +1 -0
  40. package/cjs/charts/HeatmapChart.d.ts +10 -0
  41. package/cjs/charts/HeatmapChart.js +13 -0
  42. package/cjs/charts/HeatmapChart.js.map +1 -0
  43. package/cjs/charts/Histogram3dChart.d.ts +10 -0
  44. package/cjs/charts/Histogram3dChart.js +13 -0
  45. package/cjs/charts/Histogram3dChart.js.map +1 -0
  46. package/cjs/charts/HistogramChart.d.ts +1 -1
  47. package/cjs/charts/HistogramChart.js +3 -10
  48. package/cjs/charts/HistogramChart.js.map +1 -1
  49. package/cjs/charts/LineChart.d.ts +1 -1
  50. package/cjs/charts/LineChart.js +3 -9
  51. package/cjs/charts/LineChart.js.map +1 -1
  52. package/cjs/charts/LinearProgressChart.d.ts +1 -1
  53. package/cjs/charts/LinearProgressChart.js +3 -9
  54. package/cjs/charts/LinearProgressChart.js.map +1 -1
  55. package/cjs/charts/LiquidChart.d.ts +10 -0
  56. package/cjs/charts/LiquidChart.js +13 -0
  57. package/cjs/charts/LiquidChart.js.map +1 -0
  58. package/cjs/charts/MapChart.d.ts +1 -1
  59. package/cjs/charts/MapChart.js +3 -9
  60. package/cjs/charts/MapChart.js.map +1 -1
  61. package/cjs/charts/Pie3dChart.d.ts +10 -0
  62. package/cjs/charts/Pie3dChart.js +13 -0
  63. package/cjs/charts/Pie3dChart.js.map +1 -0
  64. package/cjs/charts/PieChart.d.ts +1 -1
  65. package/cjs/charts/PieChart.js +3 -9
  66. package/cjs/charts/PieChart.js.map +1 -1
  67. package/cjs/charts/RadarChart.d.ts +1 -1
  68. package/cjs/charts/RadarChart.js +3 -9
  69. package/cjs/charts/RadarChart.js.map +1 -1
  70. package/cjs/charts/RangeColumn3dChart.d.ts +10 -0
  71. package/cjs/charts/RangeColumn3dChart.js +13 -0
  72. package/cjs/charts/RangeColumn3dChart.js.map +1 -0
  73. package/cjs/charts/RangeColumnChart.d.ts +1 -1
  74. package/cjs/charts/RangeColumnChart.js +3 -9
  75. package/cjs/charts/RangeColumnChart.js.map +1 -1
  76. package/cjs/charts/RoseChart.d.ts +1 -1
  77. package/cjs/charts/RoseChart.js +4 -9
  78. package/cjs/charts/RoseChart.js.map +1 -1
  79. package/cjs/charts/SankeyChart.d.ts +10 -0
  80. package/cjs/charts/SankeyChart.js +13 -0
  81. package/cjs/charts/SankeyChart.js.map +1 -0
  82. package/cjs/charts/ScatterChart.d.ts +1 -1
  83. package/cjs/charts/ScatterChart.js +3 -9
  84. package/cjs/charts/ScatterChart.js.map +1 -1
  85. package/cjs/charts/SequenceChart.d.ts +1 -1
  86. package/cjs/charts/SequenceChart.js +3 -9
  87. package/cjs/charts/SequenceChart.js.map +1 -1
  88. package/cjs/charts/SunburstChart.d.ts +10 -0
  89. package/cjs/charts/SunburstChart.js +13 -0
  90. package/cjs/charts/SunburstChart.js.map +1 -0
  91. package/cjs/charts/TreemapChart.d.ts +10 -0
  92. package/cjs/charts/TreemapChart.js +13 -0
  93. package/cjs/charts/TreemapChart.js.map +1 -0
  94. package/cjs/charts/WaterfallChart.d.ts +10 -0
  95. package/cjs/charts/WaterfallChart.js +12 -0
  96. package/cjs/charts/WaterfallChart.js.map +1 -0
  97. package/cjs/charts/WordCloud3dChart.d.ts +10 -0
  98. package/cjs/charts/WordCloud3dChart.js +13 -0
  99. package/cjs/charts/WordCloud3dChart.js.map +1 -0
  100. package/cjs/charts/WordCloudChart.d.ts +1 -1
  101. package/cjs/charts/WordCloudChart.js +3 -9
  102. package/cjs/charts/WordCloudChart.js.map +1 -1
  103. package/cjs/charts/index.d.ts +26 -10
  104. package/cjs/charts/index.js +15 -7
  105. package/cjs/charts/index.js.map +1 -1
  106. package/cjs/charts/register.d.ts +3 -0
  107. package/cjs/charts/register.js +12 -0
  108. package/cjs/charts/register.js.map +1 -0
  109. package/cjs/components/BaseComponent.d.ts +1 -1
  110. package/cjs/components/BaseComponent.js +2 -1
  111. package/cjs/components/BaseComponent.js.map +1 -1
  112. package/cjs/components/Brush.js +2 -2
  113. package/cjs/components/Brush.js.map +1 -1
  114. package/cjs/components/ContinuousLegend.d.ts +5 -0
  115. package/cjs/components/ContinuousLegend.js +10 -0
  116. package/cjs/components/ContinuousLegend.js.map +1 -0
  117. package/cjs/components/DataZoom.js +2 -2
  118. package/cjs/components/DataZoom.js.map +1 -1
  119. package/cjs/components/Indicator.js +2 -2
  120. package/cjs/components/Indicator.js.map +1 -1
  121. package/cjs/components/Legend.js +2 -2
  122. package/cjs/components/Legend.js.map +1 -1
  123. package/cjs/components/Mark.js +2 -2
  124. package/cjs/components/Mark.js.map +1 -1
  125. package/cjs/components/MarkArea.js +2 -2
  126. package/cjs/components/MarkArea.js.map +1 -1
  127. package/cjs/components/MarkLine.js +2 -2
  128. package/cjs/components/MarkLine.js.map +1 -1
  129. package/cjs/components/MarkPoint.js +2 -2
  130. package/cjs/components/MarkPoint.js.map +1 -1
  131. package/cjs/components/Player.js +2 -2
  132. package/cjs/components/Player.js.map +1 -1
  133. package/cjs/components/Region.d.ts +1 -2
  134. package/cjs/components/Region.js.map +1 -1
  135. package/cjs/components/ScrollBar.js +2 -2
  136. package/cjs/components/ScrollBar.js.map +1 -1
  137. package/cjs/components/Title.js +2 -2
  138. package/cjs/components/Title.js.map +1 -1
  139. package/cjs/components/index.d.ts +1 -0
  140. package/cjs/components/index.js +1 -1
  141. package/cjs/components/index.js.map +1 -1
  142. package/cjs/components/tooltip/CanvasTooltip.d.ts +2 -0
  143. package/cjs/components/tooltip/CanvasTooltip.js +10 -0
  144. package/cjs/components/tooltip/CanvasTooltip.js.map +1 -0
  145. package/cjs/components/tooltip/Tooltip.js +2 -2
  146. package/cjs/components/tooltip/Tooltip.js.map +1 -1
  147. package/cjs/components/tooltip/index.d.ts +1 -0
  148. package/cjs/components/tooltip/index.js +1 -1
  149. package/cjs/components/tooltip/index.js.map +1 -1
  150. package/cjs/index.d.ts +2 -1
  151. package/cjs/index.js +12 -3
  152. package/cjs/index.js.map +1 -1
  153. package/cjs/series/Area.js +2 -2
  154. package/cjs/series/Area.js.map +1 -1
  155. package/cjs/series/Bar.js +3 -3
  156. package/cjs/series/Bar.js.map +1 -1
  157. package/cjs/series/Bar3d.d.ts +7 -0
  158. package/cjs/series/Bar3d.js +10 -0
  159. package/cjs/series/Bar3d.js.map +1 -0
  160. package/cjs/series/BaseSeries.d.ts +1 -1
  161. package/cjs/series/BaseSeries.js +3 -2
  162. package/cjs/series/BaseSeries.js.map +1 -1
  163. package/cjs/series/BoxPlot.js +3 -3
  164. package/cjs/series/BoxPlot.js.map +1 -1
  165. package/cjs/series/CirclePacking.d.ts +7 -0
  166. package/cjs/series/CirclePacking.js +10 -0
  167. package/cjs/series/CirclePacking.js.map +1 -0
  168. package/cjs/series/CircularProgress.js +3 -3
  169. package/cjs/series/CircularProgress.js.map +1 -1
  170. package/cjs/series/Correlation.d.ts +7 -0
  171. package/cjs/series/Correlation.js +10 -0
  172. package/cjs/series/Correlation.js.map +1 -0
  173. package/cjs/series/Dot.js +3 -3
  174. package/cjs/series/Dot.js.map +1 -1
  175. package/cjs/series/Funnel.js +3 -3
  176. package/cjs/series/Funnel.js.map +1 -1
  177. package/cjs/series/Funnel3d.d.ts +7 -0
  178. package/cjs/series/Funnel3d.js +10 -0
  179. package/cjs/series/Funnel3d.js.map +1 -0
  180. package/cjs/series/Gauge.d.ts +7 -0
  181. package/cjs/series/Gauge.js +10 -0
  182. package/cjs/series/Gauge.js.map +1 -0
  183. package/cjs/series/Heatmap.d.ts +7 -0
  184. package/cjs/series/Heatmap.js +10 -0
  185. package/cjs/series/Heatmap.js.map +1 -0
  186. package/cjs/series/Line.js +3 -3
  187. package/cjs/series/Line.js.map +1 -1
  188. package/cjs/series/LinearProgress.js +3 -3
  189. package/cjs/series/LinearProgress.js.map +1 -1
  190. package/cjs/series/Link.js +3 -2
  191. package/cjs/series/Link.js.map +1 -1
  192. package/cjs/series/Liquid.d.ts +7 -0
  193. package/cjs/series/Liquid.js +10 -0
  194. package/cjs/series/Liquid.js.map +1 -0
  195. package/cjs/series/Map.js +3 -3
  196. package/cjs/series/Map.js.map +1 -1
  197. package/cjs/series/Pie.js +3 -3
  198. package/cjs/series/Pie.js.map +1 -1
  199. package/cjs/series/Pie3d.d.ts +7 -0
  200. package/cjs/series/Pie3d.js +10 -0
  201. package/cjs/series/Pie3d.js.map +1 -0
  202. package/cjs/series/Radar.js +3 -3
  203. package/cjs/series/Radar.js.map +1 -1
  204. package/cjs/series/RangeColumn.js +3 -3
  205. package/cjs/series/RangeColumn.js.map +1 -1
  206. package/cjs/series/RangeColumn3d.d.ts +7 -0
  207. package/cjs/series/RangeColumn3d.js +10 -0
  208. package/cjs/series/RangeColumn3d.js.map +1 -0
  209. package/cjs/series/Rose.js +3 -3
  210. package/cjs/series/Rose.js.map +1 -1
  211. package/cjs/series/Sankey.d.ts +7 -0
  212. package/cjs/series/Sankey.js +10 -0
  213. package/cjs/series/Sankey.js.map +1 -0
  214. package/cjs/series/Scatter.js +3 -3
  215. package/cjs/series/Scatter.js.map +1 -1
  216. package/cjs/series/Series.js +1 -1
  217. package/cjs/series/Sunburst.d.ts +7 -0
  218. package/cjs/series/Sunburst.js +10 -0
  219. package/cjs/series/Sunburst.js.map +1 -0
  220. package/cjs/series/Treemap.d.ts +7 -0
  221. package/cjs/series/Treemap.js +10 -0
  222. package/cjs/series/Treemap.js.map +1 -0
  223. package/cjs/series/Waterfall.d.ts +7 -0
  224. package/cjs/series/Waterfall.js +10 -0
  225. package/cjs/series/Waterfall.js.map +1 -0
  226. package/cjs/series/WordCloud.js +2 -2
  227. package/cjs/series/WordCloud.js.map +1 -1
  228. package/cjs/series/WordCloud3d.d.ts +7 -0
  229. package/cjs/series/WordCloud3d.js +10 -0
  230. package/cjs/series/WordCloud3d.js.map +1 -0
  231. package/cjs/series/index.d.ts +24 -10
  232. package/cjs/series/index.js +16 -9
  233. package/cjs/series/index.js.map +1 -1
  234. package/esm/VChart.d.ts +1 -3
  235. package/esm/VChart.js +1 -3
  236. package/esm/VChart.js.map +1 -1
  237. package/esm/charts/AreaChart.d.ts +1 -1
  238. package/esm/charts/AreaChart.js +4 -2
  239. package/esm/charts/AreaChart.js.map +1 -1
  240. package/esm/charts/Bar3dChart.d.ts +10 -0
  241. package/esm/charts/Bar3dChart.js +11 -0
  242. package/esm/charts/Bar3dChart.js.map +1 -0
  243. package/esm/charts/BarChart.d.ts +1 -1
  244. package/esm/charts/BarChart.js +4 -2
  245. package/esm/charts/BarChart.js.map +1 -1
  246. package/esm/charts/BaseChart.d.ts +3 -3
  247. package/esm/charts/BaseChart.js +12 -8
  248. package/esm/charts/BaseChart.js.map +1 -1
  249. package/esm/charts/BoxPlotChart.d.ts +1 -1
  250. package/esm/charts/BoxPlotChart.js +4 -2
  251. package/esm/charts/BoxPlotChart.js.map +1 -1
  252. package/esm/charts/CirclePackingChart.d.ts +10 -0
  253. package/esm/charts/CirclePackingChart.js +11 -0
  254. package/esm/charts/CirclePackingChart.js.map +1 -0
  255. package/esm/charts/CircularProgressChart.d.ts +1 -1
  256. package/esm/charts/CircularProgressChart.js +4 -2
  257. package/esm/charts/CircularProgressChart.js.map +1 -1
  258. package/esm/charts/CommonChart.d.ts +1 -1
  259. package/esm/charts/CommonChart.js +2 -2
  260. package/esm/charts/CommonChart.js.map +1 -1
  261. package/esm/charts/CorrelationChart.d.ts +10 -0
  262. package/esm/charts/CorrelationChart.js +11 -0
  263. package/esm/charts/CorrelationChart.js.map +1 -0
  264. package/esm/charts/Funnel3dChart.d.ts +10 -0
  265. package/esm/charts/Funnel3dChart.js +11 -0
  266. package/esm/charts/Funnel3dChart.js.map +1 -0
  267. package/esm/charts/FunnelChart.d.ts +1 -1
  268. package/esm/charts/FunnelChart.js +4 -2
  269. package/esm/charts/FunnelChart.js.map +1 -1
  270. package/esm/charts/GaugeChart.d.ts +10 -0
  271. package/esm/charts/GaugeChart.js +11 -0
  272. package/esm/charts/GaugeChart.js.map +1 -0
  273. package/esm/charts/HeatmapChart.d.ts +10 -0
  274. package/esm/charts/HeatmapChart.js +11 -0
  275. package/esm/charts/HeatmapChart.js.map +1 -0
  276. package/esm/charts/Histogram3dChart.d.ts +10 -0
  277. package/esm/charts/Histogram3dChart.js +11 -0
  278. package/esm/charts/Histogram3dChart.js.map +1 -0
  279. package/esm/charts/HistogramChart.d.ts +1 -1
  280. package/esm/charts/HistogramChart.js +4 -3
  281. package/esm/charts/HistogramChart.js.map +1 -1
  282. package/esm/charts/LineChart.d.ts +1 -1
  283. package/esm/charts/LineChart.js +4 -2
  284. package/esm/charts/LineChart.js.map +1 -1
  285. package/esm/charts/LinearProgressChart.d.ts +1 -1
  286. package/esm/charts/LinearProgressChart.js +4 -2
  287. package/esm/charts/LinearProgressChart.js.map +1 -1
  288. package/esm/charts/LiquidChart.d.ts +10 -0
  289. package/esm/charts/LiquidChart.js +11 -0
  290. package/esm/charts/LiquidChart.js.map +1 -0
  291. package/esm/charts/MapChart.d.ts +1 -1
  292. package/esm/charts/MapChart.js +4 -2
  293. package/esm/charts/MapChart.js.map +1 -1
  294. package/esm/charts/Pie3dChart.d.ts +10 -0
  295. package/esm/charts/Pie3dChart.js +11 -0
  296. package/esm/charts/Pie3dChart.js.map +1 -0
  297. package/esm/charts/PieChart.d.ts +1 -1
  298. package/esm/charts/PieChart.js +4 -2
  299. package/esm/charts/PieChart.js.map +1 -1
  300. package/esm/charts/RadarChart.d.ts +1 -1
  301. package/esm/charts/RadarChart.js +4 -2
  302. package/esm/charts/RadarChart.js.map +1 -1
  303. package/esm/charts/RangeColumn3dChart.d.ts +10 -0
  304. package/esm/charts/RangeColumn3dChart.js +11 -0
  305. package/esm/charts/RangeColumn3dChart.js.map +1 -0
  306. package/esm/charts/RangeColumnChart.d.ts +1 -1
  307. package/esm/charts/RangeColumnChart.js +4 -2
  308. package/esm/charts/RangeColumnChart.js.map +1 -1
  309. package/esm/charts/RoseChart.d.ts +1 -1
  310. package/esm/charts/RoseChart.js +5 -2
  311. package/esm/charts/RoseChart.js.map +1 -1
  312. package/esm/charts/SankeyChart.d.ts +10 -0
  313. package/esm/charts/SankeyChart.js +11 -0
  314. package/esm/charts/SankeyChart.js.map +1 -0
  315. package/esm/charts/ScatterChart.d.ts +1 -1
  316. package/esm/charts/ScatterChart.js +4 -2
  317. package/esm/charts/ScatterChart.js.map +1 -1
  318. package/esm/charts/SequenceChart.d.ts +1 -1
  319. package/esm/charts/SequenceChart.js +4 -2
  320. package/esm/charts/SequenceChart.js.map +1 -1
  321. package/esm/charts/SunburstChart.d.ts +10 -0
  322. package/esm/charts/SunburstChart.js +11 -0
  323. package/esm/charts/SunburstChart.js.map +1 -0
  324. package/esm/charts/TreemapChart.d.ts +10 -0
  325. package/esm/charts/TreemapChart.js +11 -0
  326. package/esm/charts/TreemapChart.js.map +1 -0
  327. package/esm/charts/WaterfallChart.d.ts +10 -0
  328. package/esm/charts/WaterfallChart.js +10 -0
  329. package/esm/charts/WaterfallChart.js.map +1 -0
  330. package/esm/charts/WordCloud3dChart.d.ts +10 -0
  331. package/esm/charts/WordCloud3dChart.js +11 -0
  332. package/esm/charts/WordCloud3dChart.js.map +1 -0
  333. package/esm/charts/WordCloudChart.d.ts +1 -1
  334. package/esm/charts/WordCloudChart.js +4 -2
  335. package/esm/charts/WordCloudChart.js.map +1 -1
  336. package/esm/charts/index.d.ts +26 -10
  337. package/esm/charts/index.js +43 -11
  338. package/esm/charts/index.js.map +1 -1
  339. package/esm/charts/register.d.ts +3 -0
  340. package/esm/charts/register.js +8 -0
  341. package/esm/charts/register.js.map +1 -0
  342. package/esm/components/BaseComponent.d.ts +1 -1
  343. package/esm/components/BaseComponent.js +4 -1
  344. package/esm/components/BaseComponent.js.map +1 -1
  345. package/esm/components/Brush.js +3 -1
  346. package/esm/components/Brush.js.map +1 -1
  347. package/esm/components/ContinuousLegend.d.ts +5 -0
  348. package/esm/components/ContinuousLegend.js +8 -0
  349. package/esm/components/ContinuousLegend.js.map +1 -0
  350. package/esm/components/DataZoom.js +3 -1
  351. package/esm/components/DataZoom.js.map +1 -1
  352. package/esm/components/Indicator.js +3 -1
  353. package/esm/components/Indicator.js.map +1 -1
  354. package/esm/components/Legend.js +3 -1
  355. package/esm/components/Legend.js.map +1 -1
  356. package/esm/components/Mark.js +3 -1
  357. package/esm/components/Mark.js.map +1 -1
  358. package/esm/components/MarkArea.js +3 -1
  359. package/esm/components/MarkArea.js.map +1 -1
  360. package/esm/components/MarkLine.js +3 -1
  361. package/esm/components/MarkLine.js.map +1 -1
  362. package/esm/components/MarkPoint.js +3 -1
  363. package/esm/components/MarkPoint.js.map +1 -1
  364. package/esm/components/Player.js +3 -1
  365. package/esm/components/Player.js.map +1 -1
  366. package/esm/components/Region.d.ts +1 -2
  367. package/esm/components/Region.js.map +1 -1
  368. package/esm/components/ScrollBar.js +3 -1
  369. package/esm/components/ScrollBar.js.map +1 -1
  370. package/esm/components/Title.js +3 -1
  371. package/esm/components/Title.js.map +1 -1
  372. package/esm/components/index.d.ts +1 -0
  373. package/esm/components/index.js +2 -0
  374. package/esm/components/index.js.map +1 -1
  375. package/esm/components/tooltip/CanvasTooltip.d.ts +2 -0
  376. package/esm/components/tooltip/CanvasTooltip.js +6 -0
  377. package/esm/components/tooltip/CanvasTooltip.js.map +1 -0
  378. package/esm/components/tooltip/Tooltip.js +3 -1
  379. package/esm/components/tooltip/Tooltip.js.map +1 -1
  380. package/esm/components/tooltip/index.d.ts +1 -0
  381. package/esm/components/tooltip/index.js +2 -0
  382. package/esm/components/tooltip/index.js.map +1 -1
  383. package/esm/index.d.ts +2 -1
  384. package/esm/index.js +3 -1
  385. package/esm/index.js.map +1 -1
  386. package/esm/series/Area.js +3 -1
  387. package/esm/series/Area.js.map +1 -1
  388. package/esm/series/Bar.js +4 -2
  389. package/esm/series/Bar.js.map +1 -1
  390. package/esm/series/Bar3d.d.ts +7 -0
  391. package/esm/series/Bar3d.js +6 -0
  392. package/esm/series/Bar3d.js.map +1 -0
  393. package/esm/series/BaseSeries.d.ts +1 -1
  394. package/esm/series/BaseSeries.js +5 -2
  395. package/esm/series/BaseSeries.js.map +1 -1
  396. package/esm/series/BoxPlot.js +4 -2
  397. package/esm/series/BoxPlot.js.map +1 -1
  398. package/esm/series/CirclePacking.d.ts +7 -0
  399. package/esm/series/CirclePacking.js +6 -0
  400. package/esm/series/CirclePacking.js.map +1 -0
  401. package/esm/series/CircularProgress.js +4 -2
  402. package/esm/series/CircularProgress.js.map +1 -1
  403. package/esm/series/Correlation.d.ts +7 -0
  404. package/esm/series/Correlation.js +6 -0
  405. package/esm/series/Correlation.js.map +1 -0
  406. package/esm/series/Dot.js +4 -2
  407. package/esm/series/Dot.js.map +1 -1
  408. package/esm/series/Funnel.js +4 -2
  409. package/esm/series/Funnel.js.map +1 -1
  410. package/esm/series/Funnel3d.d.ts +7 -0
  411. package/esm/series/Funnel3d.js +6 -0
  412. package/esm/series/Funnel3d.js.map +1 -0
  413. package/esm/series/Gauge.d.ts +7 -0
  414. package/esm/series/Gauge.js +6 -0
  415. package/esm/series/Gauge.js.map +1 -0
  416. package/esm/series/Heatmap.d.ts +7 -0
  417. package/esm/series/Heatmap.js +6 -0
  418. package/esm/series/Heatmap.js.map +1 -0
  419. package/esm/series/Line.js +4 -2
  420. package/esm/series/Line.js.map +1 -1
  421. package/esm/series/LinearProgress.js +4 -2
  422. package/esm/series/LinearProgress.js.map +1 -1
  423. package/esm/series/Link.js +4 -1
  424. package/esm/series/Link.js.map +1 -1
  425. package/esm/series/Liquid.d.ts +7 -0
  426. package/esm/series/Liquid.js +6 -0
  427. package/esm/series/Liquid.js.map +1 -0
  428. package/esm/series/Map.js +4 -2
  429. package/esm/series/Map.js.map +1 -1
  430. package/esm/series/Pie.js +4 -2
  431. package/esm/series/Pie.js.map +1 -1
  432. package/esm/series/Pie3d.d.ts +7 -0
  433. package/esm/series/Pie3d.js +6 -0
  434. package/esm/series/Pie3d.js.map +1 -0
  435. package/esm/series/Radar.js +4 -2
  436. package/esm/series/Radar.js.map +1 -1
  437. package/esm/series/RangeColumn.js +4 -2
  438. package/esm/series/RangeColumn.js.map +1 -1
  439. package/esm/series/RangeColumn3d.d.ts +7 -0
  440. package/esm/series/RangeColumn3d.js +6 -0
  441. package/esm/series/RangeColumn3d.js.map +1 -0
  442. package/esm/series/Rose.js +4 -2
  443. package/esm/series/Rose.js.map +1 -1
  444. package/esm/series/Sankey.d.ts +7 -0
  445. package/esm/series/Sankey.js +6 -0
  446. package/esm/series/Sankey.js.map +1 -0
  447. package/esm/series/Scatter.js +4 -2
  448. package/esm/series/Scatter.js.map +1 -1
  449. package/esm/series/Series.js +1 -1
  450. package/esm/series/Sunburst.d.ts +7 -0
  451. package/esm/series/Sunburst.js +6 -0
  452. package/esm/series/Sunburst.js.map +1 -0
  453. package/esm/series/Treemap.d.ts +7 -0
  454. package/esm/series/Treemap.js +6 -0
  455. package/esm/series/Treemap.js.map +1 -0
  456. package/esm/series/Waterfall.d.ts +7 -0
  457. package/esm/series/Waterfall.js +6 -0
  458. package/esm/series/Waterfall.js.map +1 -0
  459. package/esm/series/WordCloud.js +3 -1
  460. package/esm/series/WordCloud.js.map +1 -1
  461. package/esm/series/WordCloud3d.d.ts +7 -0
  462. package/esm/series/WordCloud3d.js +6 -0
  463. package/esm/series/WordCloud3d.js.map +1 -0
  464. package/esm/series/index.d.ts +24 -10
  465. package/esm/series/index.js +40 -12
  466. package/esm/series/index.js.map +1 -1
  467. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Pie.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,GAAG,GAAG,IAAA,yBAAY,EAAW,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC","file":"Pie.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IPieSeriesSpec } from '@visactor/vchart';\n\nexport type PieProps = BaseSeriesProps & Omit<IPieSeriesSpec, 'type'>;\n\nexport const Pie = createSeries<PieProps>('Pie', ['pie'], 'pie');\n"]}
1
+ {"version":3,"sources":["../src/series/Pie.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAqD;AAIxC,QAAA,GAAG,GAAG,IAAA,yBAAY,EAAW,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,0BAAiB,CAAC,CAAC,CAAC","file":"Pie.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IPieSeriesSpec } from '@visactor/vchart';\nimport { registerPieSeries } from '@visactor/vchart';\n\nexport type PieProps = BaseSeriesProps & Omit<IPieSeriesSpec, 'type'>;\n\nexport const Pie = createSeries<PieProps>('Pie', ['pie'], 'pie', [registerPieSeries]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { IPie3dSeriesSpec } from '@visactor/vchart';
3
+ export type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;
4
+ export declare const Pie3d: import("react").FC<BaseSeriesProps & Omit<IPie3dSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.Pie3d = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.Pie3d = (0, BaseSeries_1.createSeries)("Pie3d", [ "pie" ], "pie3d", [ vchart_1.registerPie3dSeries ]);
10
+ //# sourceMappingURL=Pie3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/Pie3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,4BAAmB,CAAC,CAAC,CAAC","file":"Pie3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IPie3dSeriesSpec } from '@visactor/vchart';\nimport { registerPie3dSeries } from '@visactor/vchart';\n\nexport type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;\n\nexport const Pie3d = createSeries<Pie3dProps>('Pie3d', ['pie'], 'pie3d', [registerPie3dSeries]);\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Radar = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
8
 
9
- exports.Radar = (0, BaseSeries_1.createSeries)("Radar", [ "radar" ], "radar");
10
- //# sourceMappingURL=Radar.js.map
9
+ exports.Radar = (0, BaseSeries_1.createSeries)("Radar", [ "radar" ], "radar", [ vchart_1.registerRadarSeries ]);
10
+ //# sourceMappingURL=Radar.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Radar.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC","file":"Radar.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRadarSeriesSpec } from '@visactor/vchart';\n\nexport type RadarProps = BaseSeriesProps & Omit<IRadarSeriesSpec, 'type'>;\n\nexport const Radar = createSeries<RadarProps>('Radar', ['radar'], 'radar');\n"]}
1
+ {"version":3,"sources":["../src/series/Radar.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,4BAAmB,CAAC,CAAC,CAAC","file":"Radar.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRadarSeriesSpec } from '@visactor/vchart';\nimport { registerRadarSeries } from '@visactor/vchart';\n\nexport type RadarProps = BaseSeriesProps & Omit<IRadarSeriesSpec, 'type'>;\n\nexport const Radar = createSeries<RadarProps>('Radar', ['radar'], 'radar', [registerRadarSeries]);\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.RangeColumn = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
8
 
9
- exports.RangeColumn = (0, BaseSeries_1.createSeries)("RangeColumn", [ "rangeColumn" ], "rangeColumn");
10
- //# sourceMappingURL=RangeColumn.js.map
9
+ exports.RangeColumn = (0, BaseSeries_1.createSeries)("RangeColumn", [ "rangeColumn" ], "rangeColumn", [ vchart_1.registerRangeColumnSeries ]);
10
+ //# sourceMappingURL=RangeColumn.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/RangeColumn.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,yBAAY,EAAmB,aAAa,EAAE,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC","file":"RangeColumn.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRangeColumnSeriesSpec } from '@visactor/vchart';\n\nexport type RangeColumnProps = BaseSeriesProps & Omit<IRangeColumnSeriesSpec, 'type'>;\n\nexport const RangeColumn = createSeries<RangeColumnProps>('RangeColumn', ['rangeColumn'], 'rangeColumn');\n"]}
1
+ {"version":3,"sources":["../src/series/RangeColumn.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA6D;AAIhD,QAAA,WAAW,GAAG,IAAA,yBAAY,EAAmB,aAAa,EAAE,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE;IACvG,kCAAyB;CAC1B,CAAC,CAAC","file":"RangeColumn.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRangeColumnSeriesSpec } from '@visactor/vchart';\nimport { registerRangeColumnSeries } from '@visactor/vchart';\n\nexport type RangeColumnProps = BaseSeriesProps & Omit<IRangeColumnSeriesSpec, 'type'>;\n\nexport const RangeColumn = createSeries<RangeColumnProps>('RangeColumn', ['rangeColumn'], 'rangeColumn', [\n registerRangeColumnSeries\n]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { IRangeColumn3dSeriesSpec } from '@visactor/vchart';
3
+ export type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;
4
+ export declare const RangeColumn3d: import("react").FC<BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.RangeColumn3d = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.RangeColumn3d = (0, BaseSeries_1.createSeries)("RangeColumn3d", [ "rangeColumn" ], "rangeColumn3d", [ vchart_1.registerRangeColumn3dSeries ]);
10
+ //# sourceMappingURL=RangeColumn3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/RangeColumn3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA+D;AAIlD,QAAA,aAAa,GAAG,IAAA,yBAAY,EAAqB,eAAe,EAAE,CAAC,aAAa,CAAC,EAAE,eAAe,EAAE;IAC/G,oCAA2B;CAC5B,CAAC,CAAC","file":"RangeColumn3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRangeColumn3dSeriesSpec } from '@visactor/vchart';\nimport { registerRangeColumn3dSeries } from '@visactor/vchart';\n\nexport type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;\n\nexport const RangeColumn3d = createSeries<RangeColumn3dProps>('RangeColumn3d', ['rangeColumn'], 'rangeColumn3d', [\n registerRangeColumn3dSeries\n]);\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Rose = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
8
 
9
- exports.Rose = (0, BaseSeries_1.createSeries)("Rose", [ "rose" ], "rose");
10
- //# sourceMappingURL=Rose.js.map
9
+ exports.Rose = (0, BaseSeries_1.createSeries)("Rose", [ "rose" ], "rose", [ vchart_1.registerRoseSeries ]);
10
+ //# sourceMappingURL=Rose.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Rose.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,IAAI,GAAG,IAAA,yBAAY,EAAY,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC","file":"Rose.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRoseSeriesSpec } from '@visactor/vchart';\n\nexport type RoseProps = BaseSeriesProps & Omit<IRoseSeriesSpec, 'type'>;\n\nexport const Rose = createSeries<RoseProps>('Rose', ['rose'], 'rose');\n"]}
1
+ {"version":3,"sources":["../src/series/Rose.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAsD;AAIzC,QAAA,IAAI,GAAG,IAAA,yBAAY,EAAY,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,2BAAkB,CAAC,CAAC,CAAC","file":"Rose.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRoseSeriesSpec } from '@visactor/vchart';\nimport { registerRoseSeries } from '@visactor/vchart';\n\nexport type RoseProps = BaseSeriesProps & Omit<IRoseSeriesSpec, 'type'>;\n\nexport const Rose = createSeries<RoseProps>('Rose', ['rose'], 'rose', [registerRoseSeries]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { ISankeySeriesSpec } from '@visactor/vchart';
3
+ export type SankeyProps = BaseSeriesProps & Omit<ISankeySeriesSpec, 'type'>;
4
+ export declare const Sankey: import("react").FC<BaseSeriesProps & Omit<ISankeySeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.Sankey = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.Sankey = (0, BaseSeries_1.createSeries)("Sankey", [ "node", "link" ], "sankey", [ vchart_1.registerSankeySeries ]);
10
+ //# sourceMappingURL=Sankey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/Sankey.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAG7D,6CAAwD;AAI3C,QAAA,MAAM,GAAG,IAAA,yBAAY,EAAc,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,6BAAoB,CAAC,CAAC,CAAC","file":"Sankey.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\n\nimport type { ISankeySeriesSpec } from '@visactor/vchart';\nimport { registerSankeySeries } from '@visactor/vchart';\n\nexport type SankeyProps = BaseSeriesProps & Omit<ISankeySeriesSpec, 'type'>;\n\nexport const Sankey = createSeries<SankeyProps>('Sankey', ['node', 'link'], 'sankey', [registerSankeySeries]);\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Scatter = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
8
 
9
- exports.Scatter = (0, BaseSeries_1.createSeries)("Scatter", [ "scatter" ], "scatter");
10
- //# sourceMappingURL=Scatter.js.map
9
+ exports.Scatter = (0, BaseSeries_1.createSeries)("Scatter", [ "scatter" ], "scatter", [ vchart_1.registerScatterSeries ]);
10
+ //# sourceMappingURL=Scatter.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Scatter.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,OAAO,GAAG,IAAA,yBAAY,EAAe,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC","file":"Scatter.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IScatterSeriesSpec } from '@visactor/vchart';\n\nexport type ScatterProps = BaseSeriesProps & Omit<IScatterSeriesSpec, 'type'>;\n\nexport const Scatter = createSeries<ScatterProps>('Scatter', ['scatter'], 'scatter');\n"]}
1
+ {"version":3,"sources":["../src/series/Scatter.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAyD;AAI5C,QAAA,OAAO,GAAG,IAAA,yBAAY,EAAe,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,8BAAqB,CAAC,CAAC,CAAC","file":"Scatter.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IScatterSeriesSpec } from '@visactor/vchart';\nimport { registerScatterSeries } from '@visactor/vchart';\n\nexport type ScatterProps = BaseSeriesProps & Omit<IScatterSeriesSpec, 'type'>;\n\nexport const Scatter = createSeries<ScatterProps>('Scatter', ['scatter'], 'scatter', [registerScatterSeries]);\n"]}
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const BaseSeries_1 = require("./BaseSeries");
8
8
 
9
9
  exports.Series = (0, BaseSeries_1.createSeries)("Series", [ "bar", "line", "area" ]);
10
- //# sourceMappingURL=Series.js.map
10
+ //# sourceMappingURL=Series.js.map
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { ISunburstSeriesSpec } from '@visactor/vchart';
3
+ export type SunburstProps = BaseSeriesProps & Omit<ISunburstSeriesSpec, 'type'>;
4
+ export declare const Sunburst: import("react").FC<BaseSeriesProps & Omit<ISunburstSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.Sunburst = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.Sunburst = (0, BaseSeries_1.createSeries)("Sunburst", [ "sunburst", "label" ], "sunburst", [ vchart_1.registerSunBurstSeries ]);
10
+ //# sourceMappingURL=Sunburst.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/Sunburst.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAG7D,6CAA0D;AAI7C,QAAA,QAAQ,GAAG,IAAA,yBAAY,EAAgB,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE;IACjG,+BAAsB;CACvB,CAAC,CAAC","file":"Sunburst.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\n\nimport type { ISunburstSeriesSpec } from '@visactor/vchart';\nimport { registerSunBurstSeries } from '@visactor/vchart';\n\nexport type SunburstProps = BaseSeriesProps & Omit<ISunburstSeriesSpec, 'type'>;\n\nexport const Sunburst = createSeries<SunburstProps>('Sunburst', ['sunburst', 'label'], 'sunburst', [\n registerSunBurstSeries\n]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { ITreemapSeriesSpec } from '@visactor/vchart';
3
+ export type TreemapProps = BaseSeriesProps & Omit<ITreemapSeriesSpec, 'type'>;
4
+ export declare const Treemap: import("react").FC<BaseSeriesProps & Omit<ITreemapSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.Treemap = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.Treemap = (0, BaseSeries_1.createSeries)("Treemap", [ "leaf", "nonLeaf", "label", "nonLeafLabel" ], "treemap", [ vchart_1.registerTreemapSeries ]);
10
+ //# sourceMappingURL=Treemap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/Treemap.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAG7D,6CAAyD;AAI5C,QAAA,OAAO,GAAG,IAAA,yBAAY,EAAe,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE;IACpH,8BAAqB;CACtB,CAAC,CAAC","file":"Treemap.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\n\nimport type { ITreemapSeriesSpec } from '@visactor/vchart';\nimport { registerTreemapSeries } from '@visactor/vchart';\n\nexport type TreemapProps = BaseSeriesProps & Omit<ITreemapSeriesSpec, 'type'>;\n\nexport const Treemap = createSeries<TreemapProps>('Treemap', ['leaf', 'nonLeaf', 'label', 'nonLeafLabel'], 'treemap', [\n registerTreemapSeries\n]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { IWaterfallSeriesSpec } from '@visactor/vchart';
3
+ export type WaterfallProps = BaseSeriesProps & Omit<IWaterfallSeriesSpec, 'type'>;
4
+ export declare const Waterfall: import("react").FC<BaseSeriesProps & Omit<IWaterfallSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.Waterfall = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.Waterfall = (0, BaseSeries_1.createSeries)("Waterfall", [ "leaderLine", "stackLabel", "label", "bar" ], "waterfall", [ vchart_1.registerWaterfallSeries ]);
10
+ //# sourceMappingURL=Waterfall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/Waterfall.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA2D;AAI9C,QAAA,SAAS,GAAG,IAAA,yBAAY,EACnC,WAAW,EACX,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC,EAC5C,WAAW,EACX,CAAC,gCAAuB,CAAC,CAC1B,CAAC","file":"Waterfall.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IWaterfallSeriesSpec } from '@visactor/vchart';\nimport { registerWaterfallSeries } from '@visactor/vchart';\n\nexport type WaterfallProps = BaseSeriesProps & Omit<IWaterfallSeriesSpec, 'type'>;\n\nexport const Waterfall = createSeries<WaterfallProps>(\n 'Waterfall',\n ['leaderLine', 'stackLabel', 'label', 'bar'],\n 'waterfall',\n [registerWaterfallSeries]\n);\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.WordCloud = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
8
 
9
- exports.WordCloud = (0, BaseSeries_1.createSeries)("WordCloud", [ "wordCloud" ], "wordCloud");
9
+ exports.WordCloud = (0, BaseSeries_1.createSeries)("WordCloud", [ "wordCloud" ], "wordCloud", [ vchart_1.registerWordCloudSeries ]);
10
10
  //# sourceMappingURL=WordCloud.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/WordCloud.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAKhD,QAAA,SAAS,GAAG,IAAA,yBAAY,EAAiB,WAAW,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC","file":"WordCloud.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IWordCloudSeriesSpec } from '@visactor/vchart';\n\nexport type WordCloudProps = BaseSeriesProps & Omit<IWordCloudSeriesSpec, 'type'>;\n\nexport const WordCloud = createSeries<WordCloudProps>('WordCloud', ['wordCloud'], 'wordCloud');\n"]}
1
+ {"version":3,"sources":["../src/series/WordCloud.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA2D;AAI9C,QAAA,SAAS,GAAG,IAAA,yBAAY,EAAiB,WAAW,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE;IAC7F,gCAAuB;CACxB,CAAC,CAAC","file":"WordCloud.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IWordCloudSeriesSpec } from '@visactor/vchart';\nimport { registerWordCloudSeries } from '@visactor/vchart';\n\nexport type WordCloudProps = BaseSeriesProps & Omit<IWordCloudSeriesSpec, 'type'>;\n\nexport const WordCloud = createSeries<WordCloudProps>('WordCloud', ['wordCloud'], 'wordCloud', [\n registerWordCloudSeries\n]);\n"]}
@@ -0,0 +1,7 @@
1
+ import { BaseSeriesProps } from './BaseSeries';
2
+ import type { IWordCloud3dSeriesSpec } from '@visactor/vchart';
3
+ export type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;
4
+ export declare const WordCloud3d: import("react").FC<BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, "type"> & {
5
+ updateId?: number;
6
+ componentId?: string;
7
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.WordCloud3d = void 0;
6
+
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
+
9
+ exports.WordCloud3d = (0, BaseSeries_1.createSeries)("WordCloud3d", [ "wordCloud" ], "wordCloud3d", [ vchart_1.registerWordCloud3dSeries ]);
10
+ //# sourceMappingURL=WordCloud3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/WordCloud3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA6D;AAIhD,QAAA,WAAW,GAAG,IAAA,yBAAY,EAAmB,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,aAAa,EAAE;IACrG,kCAAyB;CAC1B,CAAC,CAAC","file":"WordCloud3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IWordCloud3dSeriesSpec } from '@visactor/vchart';\nimport { registerWordCloud3dSeries } from '@visactor/vchart';\n\nexport type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;\n\nexport const WordCloud3d = createSeries<WordCloud3dProps>('WordCloud3d', ['wordCloud'], 'wordCloud3d', [\n registerWordCloud3dSeries\n]);\n"]}
@@ -1,17 +1,31 @@
1
1
  export * from './Series';
2
- export * from './Line';
3
2
  export * from './Area';
4
3
  export * from './Bar';
5
- export * from './Scatter';
6
- export * from './Map';
7
- export * from './Pie';
8
- export * from './Rose';
9
- export * from './Radar';
10
- export * from './Dot';
11
- export * from './Link';
4
+ export * from './Bar3d';
5
+ export * from './BoxPlot';
6
+ export * from './CirclePacking';
12
7
  export * from './CircularProgress';
13
- export * from './WordCloud';
8
+ export * from './Correlation';
9
+ export * from './Dot';
14
10
  export * from './Funnel';
11
+ export * from './Funnel3d';
12
+ export * from './Gauge';
13
+ export * from './Heatmap';
14
+ export * from './Line';
15
15
  export * from './LinearProgress';
16
+ export * from './Link';
17
+ export * from './Liquid';
18
+ export * from './Map';
19
+ export * from './Pie';
20
+ export * from './Pie3d';
21
+ export * from './Radar';
16
22
  export * from './RangeColumn';
17
- export * from './BoxPlot';
23
+ export * from './RangeColumn3d';
24
+ export * from './Rose';
25
+ export * from './Sankey';
26
+ export * from './Scatter';
27
+ export * from './Sunburst';
28
+ export * from './Treemap';
29
+ export * from './Waterfall';
30
+ export * from './WordCloud';
31
+ export * from './WordCloud3d';
@@ -17,13 +17,20 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./Series"), exports), __exportStar(require("./Line"), exports),
21
- __exportStar(require("./Area"), exports), __exportStar(require("./Bar"), exports),
22
- __exportStar(require("./Scatter"), exports), __exportStar(require("./Map"), exports),
23
- __exportStar(require("./Pie"), exports), __exportStar(require("./Rose"), exports),
24
- __exportStar(require("./Radar"), exports), __exportStar(require("./Dot"), exports),
25
- __exportStar(require("./Link"), exports), __exportStar(require("./CircularProgress"), exports),
26
- __exportStar(require("./WordCloud"), exports), __exportStar(require("./Funnel"), exports),
27
- __exportStar(require("./LinearProgress"), exports), __exportStar(require("./RangeColumn"), exports),
28
- __exportStar(require("./BoxPlot"), exports);
20
+ }), __exportStar(require("./Series"), exports), __exportStar(require("./Area"), exports),
21
+ __exportStar(require("./Bar"), exports), __exportStar(require("./Bar3d"), exports),
22
+ __exportStar(require("./BoxPlot"), exports), __exportStar(require("./CirclePacking"), exports),
23
+ __exportStar(require("./CircularProgress"), exports), __exportStar(require("./Correlation"), exports),
24
+ __exportStar(require("./Dot"), exports), __exportStar(require("./Funnel"), exports),
25
+ __exportStar(require("./Funnel3d"), exports), __exportStar(require("./Gauge"), exports),
26
+ __exportStar(require("./Heatmap"), exports), __exportStar(require("./Line"), exports),
27
+ __exportStar(require("./LinearProgress"), exports), __exportStar(require("./Link"), exports),
28
+ __exportStar(require("./Liquid"), exports), __exportStar(require("./Map"), exports),
29
+ __exportStar(require("./Pie"), exports), __exportStar(require("./Pie3d"), exports),
30
+ __exportStar(require("./Radar"), exports), __exportStar(require("./RangeColumn"), exports),
31
+ __exportStar(require("./RangeColumn3d"), exports), __exportStar(require("./Rose"), exports),
32
+ __exportStar(require("./Sankey"), exports), __exportStar(require("./Scatter"), exports),
33
+ __exportStar(require("./Sunburst"), exports), __exportStar(require("./Treemap"), exports),
34
+ __exportStar(require("./Waterfall"), exports), __exportStar(require("./WordCloud"), exports),
35
+ __exportStar(require("./WordCloud3d"), exports);
29
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,wCAAsB;AACtB,wCAAsB;AACtB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,qDAAmC;AACnC,8CAA4B;AAC5B,2CAAyB;AACzB,mDAAiC;AACjC,gDAA8B;AAC9B,4CAA0B","file":"index.js","sourcesContent":["export * from './Series';\n\nexport * from './Line';\nexport * from './Area';\nexport * from './Bar';\nexport * from './Scatter';\nexport * from './Map';\nexport * from './Pie';\nexport * from './Rose';\nexport * from './Radar';\nexport * from './Dot';\nexport * from './Link';\nexport * from './CircularProgress';\nexport * from './WordCloud';\nexport * from './Funnel';\nexport * from './LinearProgress';\nexport * from './RangeColumn';\nexport * from './BoxPlot';\n"]}
1
+ {"version":3,"sources":["../src/series/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,wCAAsB;AACtB,0CAAwB;AACxB,4CAA0B;AAE1B,kDAAgC;AAChC,qDAAmC;AACnC,gDAA8B;AAC9B,wCAAsB;AACtB,2CAAyB;AACzB,6CAA2B;AAE3B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,mDAAiC;AACjC,yCAAuB;AACvB,2CAAyB;AAEzB,wCAAsB;AACtB,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AACxB,gDAA8B;AAC9B,kDAAgC;AAChC,yCAAuB;AAEvB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,8CAA4B;AAC5B,gDAA8B","file":"index.js","sourcesContent":["export * from './Series';\n\nexport * from './Area';\nexport * from './Bar';\nexport * from './Bar3d';\nexport * from './BoxPlot';\n\nexport * from './CirclePacking';\nexport * from './CircularProgress';\nexport * from './Correlation';\nexport * from './Dot';\nexport * from './Funnel';\nexport * from './Funnel3d';\n\nexport * from './Gauge';\nexport * from './Heatmap';\nexport * from './Line';\nexport * from './LinearProgress';\nexport * from './Link';\nexport * from './Liquid';\n\nexport * from './Map';\nexport * from './Pie';\nexport * from './Pie3d';\nexport * from './Radar';\nexport * from './RangeColumn';\nexport * from './RangeColumn3d';\nexport * from './Rose';\n\nexport * from './Sankey';\nexport * from './Scatter';\nexport * from './Sunburst';\nexport * from './Treemap';\nexport * from './Waterfall';\nexport * from './WordCloud';\nexport * from './WordCloud3d';\n"]}
package/esm/VChart.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  import { BaseChartProps } from './charts/BaseChart';
2
- import VChartCore from '@visactor/vchart';
3
- export { VChartCore };
4
- export type VChartProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'type'>;
2
+ export type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;
5
3
  export declare const VChart: import("react").ForwardRefExoticComponent<VChartProps & import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
package/esm/VChart.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import { createChart } from "./charts/BaseChart";
2
2
 
3
- import VChartCore from "@visactor/vchart";
4
-
5
- export { VChartCore };
3
+ import { default as VChartCore } from "@visactor/vchart";
6
4
 
7
5
  export const VChart = createChart("VChart", {
8
6
  vchartConstrouctor: VChartCore
package/esm/VChart.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/VChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAc,QAAQ,EAAE;IACvD,kBAAkB,EAAE,UAAU;CAC/B,CAAC,CAAC","file":"VChart.js","sourcesContent":["import { BaseChartProps, createChart } from './charts/BaseChart';\nimport VChartCore from '@visactor/vchart';\nexport { VChartCore };\n\nexport type VChartProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'type'>;\n\nexport const VChart = createChart<VChartProps>('VChart', {\n vchartConstrouctor: VChartCore\n});\n"]}
1
+ {"version":3,"sources":["../src/VChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAc,QAAQ,EAAE;IACvD,kBAAkB,EAAE,UAAU;CAC/B,CAAC,CAAC","file":"VChart.js","sourcesContent":["import { BaseChartProps, createChart } from './charts/BaseChart';\nimport { default as VChartCore } from '@visactor/vchart';\nexport type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;\n\nexport const VChart = createChart<VChartProps>('VChart', {\n vchartConstrouctor: VChartCore\n});\n"]}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { IAreaChartSpec } from '@visactor/vchart';
3
3
  import { BaseChartProps } from './BaseChart';
4
- export interface AreaChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IAreaChartSpec, 'type'> {
4
+ export interface AreaChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<IAreaChartSpec, 'type'> {
5
5
  }
6
6
  export declare const AreaChart: React.ForwardRefExoticComponent<AreaChartProps & {
7
7
  children?: React.ReactNode;
@@ -1,9 +1,11 @@
1
- import { default as VChart } from "@visactor/vchart";
1
+ import { VChart, registerAreaChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const AreaChart = createChart("AreaChart", {
6
8
  type: "area",
7
9
  vchartConstrouctor: VChart
8
- });
10
+ }, [ registerAreaChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=AreaChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/AreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAA6D,WAAW,EAAE;IAC5G,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAAM;CAC3B,CAAC,CAAC","file":"AreaChart.js","sourcesContent":["import React from 'react';\nimport type { IAreaChartSpec } from '@visactor/vchart';\nimport { default as VChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IAreaChartSpec, 'type'> {}\n\nexport const AreaChart = createChart<React.PropsWithChildren<AreaChartProps> & { type: 'area' }>('AreaChart', {\n type: 'area',\n vchartConstrouctor: VChart\n});\n"]}
1
+ {"version":3,"sources":["../src/charts/AreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CACpE,CAAC","file":"AreaChart.js","sourcesContent":["import React from 'react';\nimport type { IAreaChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerAreaChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IAreaChartSpec, 'type'> {}\n\nexport const AreaChart = createChart<React.PropsWithChildren<AreaChartProps> & { type: 'area' }>(\n 'AreaChart',\n {\n type: 'area',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerAreaChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { IBar3dChartSpec } from '@visactor/vchart';
3
+ import { BaseChartProps } from './BaseChart';
4
+ export interface Bar3dChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<IBar3dChartSpec, 'type'> {
5
+ }
6
+ export declare const Bar3dChart: React.ForwardRefExoticComponent<Bar3dChartProps & {
7
+ children?: React.ReactNode;
8
+ } & {
9
+ type: 'bar3d';
10
+ } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
@@ -0,0 +1,11 @@
1
+ import { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
+
3
+ import { createChart } from "./BaseChart";
4
+
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
7
+ export const Bar3dChart = createChart("Bar3dChart", {
8
+ type: "bar3d",
9
+ vchartConstrouctor: VChart
10
+ }, [ registerBar3dChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters ]);
11
+ //# sourceMappingURL=Bar3dChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/charts/Bar3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAQ1D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,4BAA4B,CAAC,CACzF,CAAC","file":"Bar3dChart.js","sourcesContent":["import React from 'react';\nimport type { IBar3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface Bar3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IBar3dChartSpec, 'type'> {\n //\n}\n\nexport const Bar3dChart = createChart<React.PropsWithChildren<Bar3dChartProps> & { type: 'bar3d' }>(\n 'Bar3dChart',\n {\n type: 'bar3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBar3dChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { IBarChartSpec } from '@visactor/vchart';
3
3
  import { BaseChartProps } from './BaseChart';
4
- export interface BarChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IBarChartSpec, 'type'> {
4
+ export interface BarChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<IBarChartSpec, 'type'> {
5
5
  }
6
6
  export declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & {
7
7
  children?: React.ReactNode;
@@ -1,9 +1,11 @@
1
- import { default as VChart } from "@visactor/vchart";
1
+ import { VChart, registerBarChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const BarChart = createChart("BarChart", {
6
8
  type: "bar",
7
9
  vchartConstrouctor: VChart
8
- });
10
+ }, [ registerBarChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=BarChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1D,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAA2D,UAAU,EAAE;IACxG,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAAM;CAC3B,CAAC,CAAC","file":"BarChart.js","sourcesContent":["import React from 'react';\nimport type { IBarChartSpec } from '@visactor/vchart';\nimport { default as VChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IBarChartSpec, 'type'> {\n //\n}\n\nexport const BarChart = createChart<React.PropsWithChildren<BarChartProps> & { type: 'bar' }>('BarChart', {\n type: 'bar',\n vchartConstrouctor: VChart\n});\n"]}
1
+ {"version":3,"sources":["../src/charts/BarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAQ1D,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,4BAA4B,CAAC,CACvF,CAAC","file":"BarChart.js","sourcesContent":["import React from 'react';\nimport type { IBarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBarChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IBarChartSpec, 'type'> {\n //\n}\n\nexport const BarChart = createChart<React.PropsWithChildren<BarChartProps> & { type: 'bar' }>(\n 'BarChart',\n {\n type: 'bar',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBarChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,4 +1,4 @@
1
- import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor } from '@visactor/vchart';
1
+ import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor, IHierarchyData } from '@visactor/vchart';
2
2
  import React from 'react';
3
3
  import { ContainerProps } from '../containers/withContainer';
4
4
  import { EventsProps, LegendEventProps, ScrollBarEventProps, BrushEventProps, DataZoomEventProps, PlayerEventProps, DimensionEventProps, HierarchyEventProps, ChartLifeCycleEventProps } from '../eventsUtils';
@@ -9,7 +9,7 @@ export interface BaseChartProps extends EventsProps, LegendEventProps, ScrollBar
9
9
  type?: string;
10
10
  container?: HTMLDivElement;
11
11
  spec?: ISpec;
12
- data?: IData;
12
+ data?: IData | IHierarchyData;
13
13
  width?: number;
14
14
  height?: number;
15
15
  options?: ChartOptions;
@@ -19,5 +19,5 @@ export interface BaseChartProps extends EventsProps, LegendEventProps, ScrollBar
19
19
  useSyncRender?: boolean;
20
20
  }
21
21
  type Props = React.PropsWithChildren<BaseChartProps>;
22
- export declare const createChart: <T extends Props>(componentName: string, defaultProps?: Partial<T>, callback?: (props: T, defaultProps?: Partial<T>) => T) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T & ContainerProps> & React.RefAttributes<any>>;
22
+ export declare const createChart: <T extends Props>(componentName: string, defaultProps?: Partial<T>, registers?: (() => void)[]) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T & ContainerProps> & React.RefAttributes<any>>;
23
23
  export {};
@@ -4,7 +4,7 @@ import withContainer from "../containers/withContainer";
4
4
 
5
5
  import RootChartContext from "../context/chart";
6
6
 
7
- import { isEqual, isNil, pickWithout } from "@visactor/vutils";
7
+ import { isEqual, isNil, isValid, pickWithout } from "@visactor/vutils";
8
8
 
9
9
  import ViewContext from "../context/view";
10
10
 
@@ -36,7 +36,9 @@ const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConst
36
36
  }));
37
37
  const hasSpec = !!props.spec, [view, setView] = useState(null), isUnmount = useRef(!1), prevSpec = useRef(pickWithout(props, notSpecKeys)), specFromChildren = useRef(null), eventsBinded = React.useRef(null), skipFunctionDiff = !!props.skipFunctionDiff, [tooltipNode, setTooltipNode] = useState(null), parseSpec = props => {
38
38
  let spec;
39
- spec = hasSpec && props.spec ? props.spec : Object.assign(Object.assign({}, prevSpec.current), specFromChildren.current);
39
+ hasSpec && props.spec ? (spec = props.spec, isValid(props.data) && (spec = Object.assign(Object.assign({}, props.spec), {
40
+ data: props.data
41
+ }))) : spec = Object.assign(Object.assign({}, prevSpec.current), specFromChildren.current);
40
42
  const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);
41
43
  return tooltipSpec && (spec.tooltip = tooltipSpec), spec;
42
44
  }, handleChartRender = () => {
@@ -44,7 +46,7 @@ const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConst
44
46
  if (!chartContext.current || !chartContext.current.chart) return;
45
47
  bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);
46
48
  const newView = chartContext.current.chart.getCompiler().getVGrammarView();
47
- setUpdateId(updateId + 1), props.onReady && props.onReady(chartContext.current.chart, 0 === updateId),
49
+ setUpdateId(updateId + 1), window.vchart = chartContext.current.chart, props.onReady && props.onReady(chartContext.current.chart, 0 === updateId),
48
50
  setView(newView);
49
51
  }
50
52
  };
@@ -66,10 +68,11 @@ const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConst
66
68
  }), handleChartRender()), void (eventsBinded.current = props);
67
69
  if (hasSpec) return void (isEqual(eventsBinded.current.spec, props.spec, {
68
70
  skipFunction: skipFunctionDiff
69
- }) || (eventsBinded.current = props, chartContext.current.chart.updateSpecSync(parseSpec(props), void 0, {
71
+ }) ? eventsBinded.current.data !== props.data && (chartContext.current.chart.updateFullDataSync(props.data),
72
+ handleChartRender(), eventsBinded.current = props) : (chartContext.current.chart.updateSpecSync(parseSpec(props), void 0, {
70
73
  morph: !1,
71
74
  enableExitAnimation: !1
72
- }), handleChartRender()));
75
+ }), handleChartRender(), eventsBinded.current = props));
73
76
  const newSpec = pickWithout(props, notSpecKeys);
74
77
  isEqual(newSpec, prevSpec.current, {
75
78
  skipFunction: skipFunctionDiff
@@ -77,7 +80,7 @@ const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConst
77
80
  specFromChildren.current = newSpecFromChildren, chartContext.current.chart.updateSpecSync(parseSpec(props), void 0, {
78
81
  morph: !1,
79
82
  enableExitAnimation: !1
80
- }), handleChartRender());
83
+ }), handleChartRender(), eventsBinded.current = props);
81
84
  }), [ props ]), useEffect((() => () => {
82
85
  chartContext && chartContext.current && chartContext.current.chart && (chartContext.current.chart.release(),
83
86
  chartContext.current.chart = null), eventsBinded.current = null, isUnmount.current = !0;
@@ -97,8 +100,9 @@ const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConst
97
100
  })), tooltipNode));
98
101
  }));
99
102
 
100
- export const createChart = (componentName, defaultProps, callback) => {
101
- const Com = withContainer(BaseChart, componentName, (props => callback ? callback(props, defaultProps) : defaultProps ? Object.assign(props, defaultProps) : props));
103
+ export const createChart = (componentName, defaultProps, registers) => {
104
+ registers && registers.length && defaultProps.vchartConstrouctor && defaultProps.vchartConstrouctor.useRegisters(registers);
105
+ const Com = withContainer(BaseChart, componentName, (props => defaultProps ? Object.assign(props, defaultProps) : props));
102
106
  return Com.displayName = componentName, Com;
103
107
  };
104
108
  //# sourceMappingURL=BaseChart.js.map