@visactor/react-vchart 1.12.2-alpha.2 → 1.12.2-alpha.9

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 (625) hide show
  1. package/package.json +7 -7
  2. package/cjs/VChart.d.ts +0 -3
  3. package/cjs/VChart.js +0 -17
  4. package/cjs/VChart.js.map +0 -1
  5. package/cjs/VChartSimple.d.ts +0 -6
  6. package/cjs/VChartSimple.js +0 -10
  7. package/cjs/VChartSimple.js.map +0 -1
  8. package/cjs/charts/AreaChart.d.ts +0 -10
  9. package/cjs/charts/AreaChart.js +0 -13
  10. package/cjs/charts/AreaChart.js.map +0 -1
  11. package/cjs/charts/Bar3dChart.d.ts +0 -10
  12. package/cjs/charts/Bar3dChart.js +0 -13
  13. package/cjs/charts/Bar3dChart.js.map +0 -1
  14. package/cjs/charts/BarChart.d.ts +0 -10
  15. package/cjs/charts/BarChart.js +0 -13
  16. package/cjs/charts/BarChart.js.map +0 -1
  17. package/cjs/charts/BaseChart.d.ts +0 -23
  18. package/cjs/charts/BaseChart.js +0 -128
  19. package/cjs/charts/BaseChart.js.map +0 -1
  20. package/cjs/charts/BoxPlotChart.d.ts +0 -10
  21. package/cjs/charts/BoxPlotChart.js +0 -13
  22. package/cjs/charts/BoxPlotChart.js.map +0 -1
  23. package/cjs/charts/CirclePackingChart.d.ts +0 -10
  24. package/cjs/charts/CirclePackingChart.js +0 -13
  25. package/cjs/charts/CirclePackingChart.js.map +0 -1
  26. package/cjs/charts/CircularProgressChart.d.ts +0 -10
  27. package/cjs/charts/CircularProgressChart.js +0 -13
  28. package/cjs/charts/CircularProgressChart.js.map +0 -1
  29. package/cjs/charts/CommonChart.d.ts +0 -10
  30. package/cjs/charts/CommonChart.js +0 -13
  31. package/cjs/charts/CommonChart.js.map +0 -1
  32. package/cjs/charts/CorrelationChart.d.ts +0 -10
  33. package/cjs/charts/CorrelationChart.js +0 -13
  34. package/cjs/charts/CorrelationChart.js.map +0 -1
  35. package/cjs/charts/Funnel3dChart.d.ts +0 -10
  36. package/cjs/charts/Funnel3dChart.js +0 -13
  37. package/cjs/charts/Funnel3dChart.js.map +0 -1
  38. package/cjs/charts/FunnelChart.d.ts +0 -10
  39. package/cjs/charts/FunnelChart.js +0 -13
  40. package/cjs/charts/FunnelChart.js.map +0 -1
  41. package/cjs/charts/GaugeChart.d.ts +0 -10
  42. package/cjs/charts/GaugeChart.js +0 -13
  43. package/cjs/charts/GaugeChart.js.map +0 -1
  44. package/cjs/charts/HeatmapChart.d.ts +0 -10
  45. package/cjs/charts/HeatmapChart.js +0 -13
  46. package/cjs/charts/HeatmapChart.js.map +0 -1
  47. package/cjs/charts/Histogram3dChart.d.ts +0 -10
  48. package/cjs/charts/Histogram3dChart.js +0 -13
  49. package/cjs/charts/Histogram3dChart.js.map +0 -1
  50. package/cjs/charts/HistogramChart.d.ts +0 -10
  51. package/cjs/charts/HistogramChart.js +0 -12
  52. package/cjs/charts/HistogramChart.js.map +0 -1
  53. package/cjs/charts/LineChart.d.ts +0 -10
  54. package/cjs/charts/LineChart.js +0 -13
  55. package/cjs/charts/LineChart.js.map +0 -1
  56. package/cjs/charts/LinearProgressChart.d.ts +0 -10
  57. package/cjs/charts/LinearProgressChart.js +0 -13
  58. package/cjs/charts/LinearProgressChart.js.map +0 -1
  59. package/cjs/charts/LiquidChart.d.ts +0 -10
  60. package/cjs/charts/LiquidChart.js +0 -13
  61. package/cjs/charts/LiquidChart.js.map +0 -1
  62. package/cjs/charts/MapChart.d.ts +0 -10
  63. package/cjs/charts/MapChart.js +0 -13
  64. package/cjs/charts/MapChart.js.map +0 -1
  65. package/cjs/charts/Pie3dChart.d.ts +0 -10
  66. package/cjs/charts/Pie3dChart.js +0 -13
  67. package/cjs/charts/Pie3dChart.js.map +0 -1
  68. package/cjs/charts/PieChart.d.ts +0 -10
  69. package/cjs/charts/PieChart.js +0 -13
  70. package/cjs/charts/PieChart.js.map +0 -1
  71. package/cjs/charts/RadarChart.d.ts +0 -10
  72. package/cjs/charts/RadarChart.js +0 -13
  73. package/cjs/charts/RadarChart.js.map +0 -1
  74. package/cjs/charts/RangeColumn3dChart.d.ts +0 -10
  75. package/cjs/charts/RangeColumn3dChart.js +0 -13
  76. package/cjs/charts/RangeColumn3dChart.js.map +0 -1
  77. package/cjs/charts/RangeColumnChart.d.ts +0 -10
  78. package/cjs/charts/RangeColumnChart.js +0 -13
  79. package/cjs/charts/RangeColumnChart.js.map +0 -1
  80. package/cjs/charts/RoseChart.d.ts +0 -10
  81. package/cjs/charts/RoseChart.js +0 -13
  82. package/cjs/charts/RoseChart.js.map +0 -1
  83. package/cjs/charts/SankeyChart.d.ts +0 -10
  84. package/cjs/charts/SankeyChart.js +0 -13
  85. package/cjs/charts/SankeyChart.js.map +0 -1
  86. package/cjs/charts/ScatterChart.d.ts +0 -10
  87. package/cjs/charts/ScatterChart.js +0 -13
  88. package/cjs/charts/ScatterChart.js.map +0 -1
  89. package/cjs/charts/SequenceChart.d.ts +0 -10
  90. package/cjs/charts/SequenceChart.js +0 -13
  91. package/cjs/charts/SequenceChart.js.map +0 -1
  92. package/cjs/charts/SunburstChart.d.ts +0 -10
  93. package/cjs/charts/SunburstChart.js +0 -13
  94. package/cjs/charts/SunburstChart.js.map +0 -1
  95. package/cjs/charts/TreemapChart.d.ts +0 -10
  96. package/cjs/charts/TreemapChart.js +0 -13
  97. package/cjs/charts/TreemapChart.js.map +0 -1
  98. package/cjs/charts/VennChart.d.ts +0 -10
  99. package/cjs/charts/VennChart.js +0 -12
  100. package/cjs/charts/VennChart.js.map +0 -1
  101. package/cjs/charts/WaterfallChart.d.ts +0 -10
  102. package/cjs/charts/WaterfallChart.js +0 -13
  103. package/cjs/charts/WaterfallChart.js.map +0 -1
  104. package/cjs/charts/WordCloud3dChart.d.ts +0 -10
  105. package/cjs/charts/WordCloud3dChart.js +0 -13
  106. package/cjs/charts/WordCloud3dChart.js.map +0 -1
  107. package/cjs/charts/WordCloudChart.d.ts +0 -10
  108. package/cjs/charts/WordCloudChart.js +0 -13
  109. package/cjs/charts/WordCloudChart.js.map +0 -1
  110. package/cjs/charts/index.d.ts +0 -35
  111. package/cjs/charts/index.js +0 -37
  112. package/cjs/charts/index.js.map +0 -1
  113. package/cjs/charts/registers/cartesian.d.ts +0 -1
  114. package/cjs/charts/registers/cartesian.js +0 -10
  115. package/cjs/charts/registers/cartesian.js.map +0 -1
  116. package/cjs/charts/registers/polar.d.ts +0 -1
  117. package/cjs/charts/registers/polar.js +0 -10
  118. package/cjs/charts/registers/polar.js.map +0 -1
  119. package/cjs/charts/registers/simple.d.ts +0 -1
  120. package/cjs/charts/registers/simple.js +0 -10
  121. package/cjs/charts/registers/simple.js.map +0 -1
  122. package/cjs/components/Axis.d.ts +0 -4
  123. package/cjs/components/Axis.js +0 -10
  124. package/cjs/components/Axis.js.map +0 -1
  125. package/cjs/components/BaseComponent.d.ts +0 -10
  126. package/cjs/components/BaseComponent.js +0 -56
  127. package/cjs/components/BaseComponent.js.map +0 -1
  128. package/cjs/components/Brush.d.ts +0 -5
  129. package/cjs/components/Brush.js +0 -10
  130. package/cjs/components/Brush.js.map +0 -1
  131. package/cjs/components/ContinuousLegend.d.ts +0 -5
  132. package/cjs/components/ContinuousLegend.js +0 -10
  133. package/cjs/components/ContinuousLegend.js.map +0 -1
  134. package/cjs/components/Crosshair.d.ts +0 -4
  135. package/cjs/components/Crosshair.js +0 -10
  136. package/cjs/components/Crosshair.js.map +0 -1
  137. package/cjs/components/DataZoom.d.ts +0 -5
  138. package/cjs/components/DataZoom.js +0 -10
  139. package/cjs/components/DataZoom.js.map +0 -1
  140. package/cjs/components/Indicator.d.ts +0 -4
  141. package/cjs/components/Indicator.js +0 -10
  142. package/cjs/components/Indicator.js.map +0 -1
  143. package/cjs/components/Legend.d.ts +0 -5
  144. package/cjs/components/Legend.js +0 -10
  145. package/cjs/components/Legend.js.map +0 -1
  146. package/cjs/components/Mark.d.ts +0 -4
  147. package/cjs/components/Mark.js +0 -10
  148. package/cjs/components/Mark.js.map +0 -1
  149. package/cjs/components/MarkArea.d.ts +0 -4
  150. package/cjs/components/MarkArea.js +0 -10
  151. package/cjs/components/MarkArea.js.map +0 -1
  152. package/cjs/components/MarkLine.d.ts +0 -4
  153. package/cjs/components/MarkLine.js +0 -10
  154. package/cjs/components/MarkLine.js.map +0 -1
  155. package/cjs/components/MarkPoint.d.ts +0 -4
  156. package/cjs/components/MarkPoint.js +0 -10
  157. package/cjs/components/MarkPoint.js.map +0 -1
  158. package/cjs/components/Player.d.ts +0 -5
  159. package/cjs/components/Player.js +0 -10
  160. package/cjs/components/Player.js.map +0 -1
  161. package/cjs/components/Region.d.ts +0 -4
  162. package/cjs/components/Region.js +0 -10
  163. package/cjs/components/Region.js.map +0 -1
  164. package/cjs/components/ScrollBar.d.ts +0 -5
  165. package/cjs/components/ScrollBar.js +0 -9
  166. package/cjs/components/ScrollBar.js.map +0 -1
  167. package/cjs/components/Title.d.ts +0 -4
  168. package/cjs/components/Title.js +0 -10
  169. package/cjs/components/Title.js.map +0 -1
  170. package/cjs/components/index.d.ts +0 -16
  171. package/cjs/components/index.js +0 -28
  172. package/cjs/components/index.js.map +0 -1
  173. package/cjs/components/tooltip/CanvasTooltip.d.ts +0 -2
  174. package/cjs/components/tooltip/CanvasTooltip.js +0 -10
  175. package/cjs/components/tooltip/CanvasTooltip.js.map +0 -1
  176. package/cjs/components/tooltip/Tooltip.d.ts +0 -2
  177. package/cjs/components/tooltip/Tooltip.js +0 -10
  178. package/cjs/components/tooltip/Tooltip.js.map +0 -1
  179. package/cjs/components/tooltip/constant.d.ts +0 -1
  180. package/cjs/components/tooltip/constant.js +0 -10
  181. package/cjs/components/tooltip/constant.js.map +0 -1
  182. package/cjs/components/tooltip/index.d.ts +0 -4
  183. package/cjs/components/tooltip/index.js +0 -22
  184. package/cjs/components/tooltip/index.js.map +0 -1
  185. package/cjs/components/tooltip/interface.d.ts +0 -14
  186. package/cjs/components/tooltip/interface.js +0 -6
  187. package/cjs/components/tooltip/interface.js.map +0 -1
  188. package/cjs/components/tooltip/util.d.ts +0 -5
  189. package/cjs/components/tooltip/util.js +0 -47
  190. package/cjs/components/tooltip/util.js.map +0 -1
  191. package/cjs/constants.d.ts +0 -1
  192. package/cjs/constants.js +0 -6
  193. package/cjs/constants.js.map +0 -1
  194. package/cjs/containers/withContainer.d.ts +0 -8
  195. package/cjs/containers/withContainer.js +0 -64
  196. package/cjs/containers/withContainer.js.map +0 -1
  197. package/cjs/context/chart.d.ts +0 -9
  198. package/cjs/context/chart.js +0 -25
  199. package/cjs/context/chart.js.map +0 -1
  200. package/cjs/context/stage.d.ts +0 -5
  201. package/cjs/context/stage.js +0 -24
  202. package/cjs/context/stage.js.map +0 -1
  203. package/cjs/context/view.d.ts +0 -5
  204. package/cjs/context/view.js +0 -24
  205. package/cjs/context/view.js.map +0 -1
  206. package/cjs/eventsUtils.d.ts +0 -256
  207. package/cjs/eventsUtils.js +0 -114
  208. package/cjs/eventsUtils.js.map +0 -1
  209. package/cjs/index.d.ts +0 -8
  210. package/cjs/index.js +0 -32
  211. package/cjs/index.js.map +0 -1
  212. package/cjs/series/Area.d.ts +0 -7
  213. package/cjs/series/Area.js +0 -10
  214. package/cjs/series/Area.js.map +0 -1
  215. package/cjs/series/Bar.d.ts +0 -7
  216. package/cjs/series/Bar.js +0 -10
  217. package/cjs/series/Bar.js.map +0 -1
  218. package/cjs/series/Bar3d.d.ts +0 -7
  219. package/cjs/series/Bar3d.js +0 -10
  220. package/cjs/series/Bar3d.js.map +0 -1
  221. package/cjs/series/BaseSeries.d.ts +0 -9
  222. package/cjs/series/BaseSeries.js +0 -52
  223. package/cjs/series/BaseSeries.js.map +0 -1
  224. package/cjs/series/BoxPlot.d.ts +0 -7
  225. package/cjs/series/BoxPlot.js +0 -10
  226. package/cjs/series/BoxPlot.js.map +0 -1
  227. package/cjs/series/CirclePacking.d.ts +0 -7
  228. package/cjs/series/CirclePacking.js +0 -10
  229. package/cjs/series/CirclePacking.js.map +0 -1
  230. package/cjs/series/CircularProgress.d.ts +0 -7
  231. package/cjs/series/CircularProgress.js +0 -10
  232. package/cjs/series/CircularProgress.js.map +0 -1
  233. package/cjs/series/Correlation.d.ts +0 -7
  234. package/cjs/series/Correlation.js +0 -10
  235. package/cjs/series/Correlation.js.map +0 -1
  236. package/cjs/series/Dot.d.ts +0 -7
  237. package/cjs/series/Dot.js +0 -10
  238. package/cjs/series/Dot.js.map +0 -1
  239. package/cjs/series/Funnel.d.ts +0 -7
  240. package/cjs/series/Funnel.js +0 -10
  241. package/cjs/series/Funnel.js.map +0 -1
  242. package/cjs/series/Funnel3d.d.ts +0 -7
  243. package/cjs/series/Funnel3d.js +0 -10
  244. package/cjs/series/Funnel3d.js.map +0 -1
  245. package/cjs/series/Gauge.d.ts +0 -7
  246. package/cjs/series/Gauge.js +0 -10
  247. package/cjs/series/Gauge.js.map +0 -1
  248. package/cjs/series/Heatmap.d.ts +0 -7
  249. package/cjs/series/Heatmap.js +0 -10
  250. package/cjs/series/Heatmap.js.map +0 -1
  251. package/cjs/series/Line.d.ts +0 -7
  252. package/cjs/series/Line.js +0 -10
  253. package/cjs/series/Line.js.map +0 -1
  254. package/cjs/series/LinearProgress.d.ts +0 -7
  255. package/cjs/series/LinearProgress.js +0 -10
  256. package/cjs/series/LinearProgress.js.map +0 -1
  257. package/cjs/series/Link.d.ts +0 -7
  258. package/cjs/series/Link.js +0 -10
  259. package/cjs/series/Link.js.map +0 -1
  260. package/cjs/series/Liquid.d.ts +0 -7
  261. package/cjs/series/Liquid.js +0 -10
  262. package/cjs/series/Liquid.js.map +0 -1
  263. package/cjs/series/Map.d.ts +0 -7
  264. package/cjs/series/Map.js +0 -10
  265. package/cjs/series/Map.js.map +0 -1
  266. package/cjs/series/Pie.d.ts +0 -7
  267. package/cjs/series/Pie.js +0 -10
  268. package/cjs/series/Pie.js.map +0 -1
  269. package/cjs/series/Pie3d.d.ts +0 -7
  270. package/cjs/series/Pie3d.js +0 -10
  271. package/cjs/series/Pie3d.js.map +0 -1
  272. package/cjs/series/Radar.d.ts +0 -7
  273. package/cjs/series/Radar.js +0 -10
  274. package/cjs/series/Radar.js.map +0 -1
  275. package/cjs/series/RangeColumn.d.ts +0 -7
  276. package/cjs/series/RangeColumn.js +0 -10
  277. package/cjs/series/RangeColumn.js.map +0 -1
  278. package/cjs/series/RangeColumn3d.d.ts +0 -7
  279. package/cjs/series/RangeColumn3d.js +0 -10
  280. package/cjs/series/RangeColumn3d.js.map +0 -1
  281. package/cjs/series/Rose.d.ts +0 -7
  282. package/cjs/series/Rose.js +0 -10
  283. package/cjs/series/Rose.js.map +0 -1
  284. package/cjs/series/Sankey.d.ts +0 -7
  285. package/cjs/series/Sankey.js +0 -10
  286. package/cjs/series/Sankey.js.map +0 -1
  287. package/cjs/series/Scatter.d.ts +0 -7
  288. package/cjs/series/Scatter.js +0 -10
  289. package/cjs/series/Scatter.js.map +0 -1
  290. package/cjs/series/Series.d.ts +0 -7
  291. package/cjs/series/Series.js +0 -10
  292. package/cjs/series/Series.js.map +0 -1
  293. package/cjs/series/Sunburst.d.ts +0 -7
  294. package/cjs/series/Sunburst.js +0 -10
  295. package/cjs/series/Sunburst.js.map +0 -1
  296. package/cjs/series/Treemap.d.ts +0 -7
  297. package/cjs/series/Treemap.js +0 -10
  298. package/cjs/series/Treemap.js.map +0 -1
  299. package/cjs/series/Waterfall.d.ts +0 -7
  300. package/cjs/series/Waterfall.js +0 -10
  301. package/cjs/series/Waterfall.js.map +0 -1
  302. package/cjs/series/WordCloud.d.ts +0 -7
  303. package/cjs/series/WordCloud.js +0 -10
  304. package/cjs/series/WordCloud.js.map +0 -1
  305. package/cjs/series/WordCloud3d.d.ts +0 -7
  306. package/cjs/series/WordCloud3d.js +0 -10
  307. package/cjs/series/WordCloud3d.js.map +0 -1
  308. package/cjs/series/index.d.ts +0 -31
  309. package/cjs/series/index.js +0 -36
  310. package/cjs/series/index.js.map +0 -1
  311. package/cjs/util.d.ts +0 -6
  312. package/cjs/util.js +0 -49
  313. package/cjs/util.js.map +0 -1
  314. package/esm/VChart.d.ts +0 -3
  315. package/esm/VChart.js +0 -7
  316. package/esm/VChart.js.map +0 -1
  317. package/esm/VChartSimple.d.ts +0 -6
  318. package/esm/VChartSimple.js +0 -4
  319. package/esm/VChartSimple.js.map +0 -1
  320. package/esm/charts/AreaChart.d.ts +0 -10
  321. package/esm/charts/AreaChart.js +0 -11
  322. package/esm/charts/AreaChart.js.map +0 -1
  323. package/esm/charts/Bar3dChart.d.ts +0 -10
  324. package/esm/charts/Bar3dChart.js +0 -11
  325. package/esm/charts/Bar3dChart.js.map +0 -1
  326. package/esm/charts/BarChart.d.ts +0 -10
  327. package/esm/charts/BarChart.js +0 -11
  328. package/esm/charts/BarChart.js.map +0 -1
  329. package/esm/charts/BaseChart.d.ts +0 -23
  330. package/esm/charts/BaseChart.js +0 -108
  331. package/esm/charts/BaseChart.js.map +0 -1
  332. package/esm/charts/BoxPlotChart.d.ts +0 -10
  333. package/esm/charts/BoxPlotChart.js +0 -11
  334. package/esm/charts/BoxPlotChart.js.map +0 -1
  335. package/esm/charts/CirclePackingChart.d.ts +0 -10
  336. package/esm/charts/CirclePackingChart.js +0 -11
  337. package/esm/charts/CirclePackingChart.js.map +0 -1
  338. package/esm/charts/CircularProgressChart.d.ts +0 -10
  339. package/esm/charts/CircularProgressChart.js +0 -11
  340. package/esm/charts/CircularProgressChart.js.map +0 -1
  341. package/esm/charts/CommonChart.d.ts +0 -10
  342. package/esm/charts/CommonChart.js +0 -9
  343. package/esm/charts/CommonChart.js.map +0 -1
  344. package/esm/charts/CorrelationChart.d.ts +0 -10
  345. package/esm/charts/CorrelationChart.js +0 -11
  346. package/esm/charts/CorrelationChart.js.map +0 -1
  347. package/esm/charts/Funnel3dChart.d.ts +0 -10
  348. package/esm/charts/Funnel3dChart.js +0 -11
  349. package/esm/charts/Funnel3dChart.js.map +0 -1
  350. package/esm/charts/FunnelChart.d.ts +0 -10
  351. package/esm/charts/FunnelChart.js +0 -11
  352. package/esm/charts/FunnelChart.js.map +0 -1
  353. package/esm/charts/GaugeChart.d.ts +0 -10
  354. package/esm/charts/GaugeChart.js +0 -11
  355. package/esm/charts/GaugeChart.js.map +0 -1
  356. package/esm/charts/HeatmapChart.d.ts +0 -10
  357. package/esm/charts/HeatmapChart.js +0 -11
  358. package/esm/charts/HeatmapChart.js.map +0 -1
  359. package/esm/charts/Histogram3dChart.d.ts +0 -10
  360. package/esm/charts/Histogram3dChart.js +0 -11
  361. package/esm/charts/Histogram3dChart.js.map +0 -1
  362. package/esm/charts/HistogramChart.d.ts +0 -10
  363. package/esm/charts/HistogramChart.js +0 -10
  364. package/esm/charts/HistogramChart.js.map +0 -1
  365. package/esm/charts/LineChart.d.ts +0 -10
  366. package/esm/charts/LineChart.js +0 -11
  367. package/esm/charts/LineChart.js.map +0 -1
  368. package/esm/charts/LinearProgressChart.d.ts +0 -10
  369. package/esm/charts/LinearProgressChart.js +0 -11
  370. package/esm/charts/LinearProgressChart.js.map +0 -1
  371. package/esm/charts/LiquidChart.d.ts +0 -10
  372. package/esm/charts/LiquidChart.js +0 -11
  373. package/esm/charts/LiquidChart.js.map +0 -1
  374. package/esm/charts/MapChart.d.ts +0 -10
  375. package/esm/charts/MapChart.js +0 -11
  376. package/esm/charts/MapChart.js.map +0 -1
  377. package/esm/charts/Pie3dChart.d.ts +0 -10
  378. package/esm/charts/Pie3dChart.js +0 -11
  379. package/esm/charts/Pie3dChart.js.map +0 -1
  380. package/esm/charts/PieChart.d.ts +0 -10
  381. package/esm/charts/PieChart.js +0 -11
  382. package/esm/charts/PieChart.js.map +0 -1
  383. package/esm/charts/RadarChart.d.ts +0 -10
  384. package/esm/charts/RadarChart.js +0 -11
  385. package/esm/charts/RadarChart.js.map +0 -1
  386. package/esm/charts/RangeColumn3dChart.d.ts +0 -10
  387. package/esm/charts/RangeColumn3dChart.js +0 -11
  388. package/esm/charts/RangeColumn3dChart.js.map +0 -1
  389. package/esm/charts/RangeColumnChart.d.ts +0 -10
  390. package/esm/charts/RangeColumnChart.js +0 -11
  391. package/esm/charts/RangeColumnChart.js.map +0 -1
  392. package/esm/charts/RoseChart.d.ts +0 -10
  393. package/esm/charts/RoseChart.js +0 -11
  394. package/esm/charts/RoseChart.js.map +0 -1
  395. package/esm/charts/SankeyChart.d.ts +0 -10
  396. package/esm/charts/SankeyChart.js +0 -11
  397. package/esm/charts/SankeyChart.js.map +0 -1
  398. package/esm/charts/ScatterChart.d.ts +0 -10
  399. package/esm/charts/ScatterChart.js +0 -11
  400. package/esm/charts/ScatterChart.js.map +0 -1
  401. package/esm/charts/SequenceChart.d.ts +0 -10
  402. package/esm/charts/SequenceChart.js +0 -11
  403. package/esm/charts/SequenceChart.js.map +0 -1
  404. package/esm/charts/SunburstChart.d.ts +0 -10
  405. package/esm/charts/SunburstChart.js +0 -11
  406. package/esm/charts/SunburstChart.js.map +0 -1
  407. package/esm/charts/TreemapChart.d.ts +0 -10
  408. package/esm/charts/TreemapChart.js +0 -11
  409. package/esm/charts/TreemapChart.js.map +0 -1
  410. package/esm/charts/VennChart.d.ts +0 -10
  411. package/esm/charts/VennChart.js +0 -10
  412. package/esm/charts/VennChart.js.map +0 -1
  413. package/esm/charts/WaterfallChart.d.ts +0 -10
  414. package/esm/charts/WaterfallChart.js +0 -11
  415. package/esm/charts/WaterfallChart.js.map +0 -1
  416. package/esm/charts/WordCloud3dChart.d.ts +0 -10
  417. package/esm/charts/WordCloud3dChart.js +0 -11
  418. package/esm/charts/WordCloud3dChart.js.map +0 -1
  419. package/esm/charts/WordCloudChart.d.ts +0 -10
  420. package/esm/charts/WordCloudChart.js +0 -11
  421. package/esm/charts/WordCloudChart.js.map +0 -1
  422. package/esm/charts/index.d.ts +0 -35
  423. package/esm/charts/index.js +0 -66
  424. package/esm/charts/index.js.map +0 -1
  425. package/esm/charts/registers/cartesian.d.ts +0 -1
  426. package/esm/charts/registers/cartesian.js +0 -4
  427. package/esm/charts/registers/cartesian.js.map +0 -1
  428. package/esm/charts/registers/polar.d.ts +0 -1
  429. package/esm/charts/registers/polar.js +0 -4
  430. package/esm/charts/registers/polar.js.map +0 -1
  431. package/esm/charts/registers/simple.d.ts +0 -1
  432. package/esm/charts/registers/simple.js +0 -4
  433. package/esm/charts/registers/simple.js.map +0 -1
  434. package/esm/components/Axis.d.ts +0 -4
  435. package/esm/components/Axis.js +0 -4
  436. package/esm/components/Axis.js.map +0 -1
  437. package/esm/components/BaseComponent.d.ts +0 -10
  438. package/esm/components/BaseComponent.js +0 -29
  439. package/esm/components/BaseComponent.js.map +0 -1
  440. package/esm/components/Brush.d.ts +0 -5
  441. package/esm/components/Brush.js +0 -8
  442. package/esm/components/Brush.js.map +0 -1
  443. package/esm/components/ContinuousLegend.d.ts +0 -5
  444. package/esm/components/ContinuousLegend.js +0 -8
  445. package/esm/components/ContinuousLegend.js.map +0 -1
  446. package/esm/components/Crosshair.d.ts +0 -4
  447. package/esm/components/Crosshair.js +0 -4
  448. package/esm/components/Crosshair.js.map +0 -1
  449. package/esm/components/DataZoom.d.ts +0 -5
  450. package/esm/components/DataZoom.js +0 -8
  451. package/esm/components/DataZoom.js.map +0 -1
  452. package/esm/components/Indicator.d.ts +0 -4
  453. package/esm/components/Indicator.js +0 -6
  454. package/esm/components/Indicator.js.map +0 -1
  455. package/esm/components/Legend.d.ts +0 -5
  456. package/esm/components/Legend.js +0 -8
  457. package/esm/components/Legend.js.map +0 -1
  458. package/esm/components/Mark.d.ts +0 -4
  459. package/esm/components/Mark.js +0 -6
  460. package/esm/components/Mark.js.map +0 -1
  461. package/esm/components/MarkArea.d.ts +0 -4
  462. package/esm/components/MarkArea.js +0 -6
  463. package/esm/components/MarkArea.js.map +0 -1
  464. package/esm/components/MarkLine.d.ts +0 -4
  465. package/esm/components/MarkLine.js +0 -6
  466. package/esm/components/MarkLine.js.map +0 -1
  467. package/esm/components/MarkPoint.d.ts +0 -4
  468. package/esm/components/MarkPoint.js +0 -6
  469. package/esm/components/MarkPoint.js.map +0 -1
  470. package/esm/components/Player.d.ts +0 -5
  471. package/esm/components/Player.js +0 -8
  472. package/esm/components/Player.js.map +0 -1
  473. package/esm/components/Region.d.ts +0 -4
  474. package/esm/components/Region.js +0 -4
  475. package/esm/components/Region.js.map +0 -1
  476. package/esm/components/ScrollBar.d.ts +0 -5
  477. package/esm/components/ScrollBar.js +0 -7
  478. package/esm/components/ScrollBar.js.map +0 -1
  479. package/esm/components/Title.d.ts +0 -4
  480. package/esm/components/Title.js +0 -6
  481. package/esm/components/Title.js.map +0 -1
  482. package/esm/components/index.d.ts +0 -16
  483. package/esm/components/index.js +0 -32
  484. package/esm/components/index.js.map +0 -1
  485. package/esm/components/tooltip/CanvasTooltip.d.ts +0 -2
  486. package/esm/components/tooltip/CanvasTooltip.js +0 -6
  487. package/esm/components/tooltip/CanvasTooltip.js.map +0 -1
  488. package/esm/components/tooltip/Tooltip.d.ts +0 -2
  489. package/esm/components/tooltip/Tooltip.js +0 -6
  490. package/esm/components/tooltip/Tooltip.js.map +0 -1
  491. package/esm/components/tooltip/constant.d.ts +0 -1
  492. package/esm/components/tooltip/constant.js +0 -4
  493. package/esm/components/tooltip/constant.js.map +0 -1
  494. package/esm/components/tooltip/index.d.ts +0 -4
  495. package/esm/components/tooltip/index.js +0 -8
  496. package/esm/components/tooltip/index.js.map +0 -1
  497. package/esm/components/tooltip/interface.d.ts +0 -14
  498. package/esm/components/tooltip/interface.js +0 -2
  499. package/esm/components/tooltip/interface.js.map +0 -1
  500. package/esm/components/tooltip/util.d.ts +0 -5
  501. package/esm/components/tooltip/util.js +0 -40
  502. package/esm/components/tooltip/util.js.map +0 -1
  503. package/esm/constants.d.ts +0 -1
  504. package/esm/constants.js +0 -2
  505. package/esm/constants.js.map +0 -1
  506. package/esm/containers/withContainer.d.ts +0 -8
  507. package/esm/containers/withContainer.js +0 -33
  508. package/esm/containers/withContainer.js.map +0 -1
  509. package/esm/context/chart.d.ts +0 -9
  510. package/esm/context/chart.js +0 -16
  511. package/esm/context/chart.js.map +0 -1
  512. package/esm/context/stage.d.ts +0 -5
  513. package/esm/context/stage.js +0 -16
  514. package/esm/context/stage.js.map +0 -1
  515. package/esm/context/view.d.ts +0 -5
  516. package/esm/context/view.js +0 -16
  517. package/esm/context/view.js.map +0 -1
  518. package/esm/eventsUtils.d.ts +0 -256
  519. package/esm/eventsUtils.js +0 -126
  520. package/esm/eventsUtils.js.map +0 -1
  521. package/esm/index.d.ts +0 -8
  522. package/esm/index.js +0 -14
  523. package/esm/index.js.map +0 -1
  524. package/esm/series/Area.d.ts +0 -7
  525. package/esm/series/Area.js +0 -6
  526. package/esm/series/Area.js.map +0 -1
  527. package/esm/series/Bar.d.ts +0 -7
  528. package/esm/series/Bar.js +0 -6
  529. package/esm/series/Bar.js.map +0 -1
  530. package/esm/series/Bar3d.d.ts +0 -7
  531. package/esm/series/Bar3d.js +0 -6
  532. package/esm/series/Bar3d.js.map +0 -1
  533. package/esm/series/BaseSeries.d.ts +0 -9
  534. package/esm/series/BaseSeries.js +0 -48
  535. package/esm/series/BaseSeries.js.map +0 -1
  536. package/esm/series/BoxPlot.d.ts +0 -7
  537. package/esm/series/BoxPlot.js +0 -6
  538. package/esm/series/BoxPlot.js.map +0 -1
  539. package/esm/series/CirclePacking.d.ts +0 -7
  540. package/esm/series/CirclePacking.js +0 -6
  541. package/esm/series/CirclePacking.js.map +0 -1
  542. package/esm/series/CircularProgress.d.ts +0 -7
  543. package/esm/series/CircularProgress.js +0 -6
  544. package/esm/series/CircularProgress.js.map +0 -1
  545. package/esm/series/Correlation.d.ts +0 -7
  546. package/esm/series/Correlation.js +0 -6
  547. package/esm/series/Correlation.js.map +0 -1
  548. package/esm/series/Dot.d.ts +0 -7
  549. package/esm/series/Dot.js +0 -6
  550. package/esm/series/Dot.js.map +0 -1
  551. package/esm/series/Funnel.d.ts +0 -7
  552. package/esm/series/Funnel.js +0 -6
  553. package/esm/series/Funnel.js.map +0 -1
  554. package/esm/series/Funnel3d.d.ts +0 -7
  555. package/esm/series/Funnel3d.js +0 -6
  556. package/esm/series/Funnel3d.js.map +0 -1
  557. package/esm/series/Gauge.d.ts +0 -7
  558. package/esm/series/Gauge.js +0 -6
  559. package/esm/series/Gauge.js.map +0 -1
  560. package/esm/series/Heatmap.d.ts +0 -7
  561. package/esm/series/Heatmap.js +0 -6
  562. package/esm/series/Heatmap.js.map +0 -1
  563. package/esm/series/Line.d.ts +0 -7
  564. package/esm/series/Line.js +0 -6
  565. package/esm/series/Line.js.map +0 -1
  566. package/esm/series/LinearProgress.d.ts +0 -7
  567. package/esm/series/LinearProgress.js +0 -6
  568. package/esm/series/LinearProgress.js.map +0 -1
  569. package/esm/series/Link.d.ts +0 -7
  570. package/esm/series/Link.js +0 -6
  571. package/esm/series/Link.js.map +0 -1
  572. package/esm/series/Liquid.d.ts +0 -7
  573. package/esm/series/Liquid.js +0 -6
  574. package/esm/series/Liquid.js.map +0 -1
  575. package/esm/series/Map.d.ts +0 -7
  576. package/esm/series/Map.js +0 -6
  577. package/esm/series/Map.js.map +0 -1
  578. package/esm/series/Pie.d.ts +0 -7
  579. package/esm/series/Pie.js +0 -6
  580. package/esm/series/Pie.js.map +0 -1
  581. package/esm/series/Pie3d.d.ts +0 -7
  582. package/esm/series/Pie3d.js +0 -6
  583. package/esm/series/Pie3d.js.map +0 -1
  584. package/esm/series/Radar.d.ts +0 -7
  585. package/esm/series/Radar.js +0 -6
  586. package/esm/series/Radar.js.map +0 -1
  587. package/esm/series/RangeColumn.d.ts +0 -7
  588. package/esm/series/RangeColumn.js +0 -6
  589. package/esm/series/RangeColumn.js.map +0 -1
  590. package/esm/series/RangeColumn3d.d.ts +0 -7
  591. package/esm/series/RangeColumn3d.js +0 -6
  592. package/esm/series/RangeColumn3d.js.map +0 -1
  593. package/esm/series/Rose.d.ts +0 -7
  594. package/esm/series/Rose.js +0 -6
  595. package/esm/series/Rose.js.map +0 -1
  596. package/esm/series/Sankey.d.ts +0 -7
  597. package/esm/series/Sankey.js +0 -6
  598. package/esm/series/Sankey.js.map +0 -1
  599. package/esm/series/Scatter.d.ts +0 -7
  600. package/esm/series/Scatter.js +0 -6
  601. package/esm/series/Scatter.js.map +0 -1
  602. package/esm/series/Series.d.ts +0 -7
  603. package/esm/series/Series.js +0 -4
  604. package/esm/series/Series.js.map +0 -1
  605. package/esm/series/Sunburst.d.ts +0 -7
  606. package/esm/series/Sunburst.js +0 -6
  607. package/esm/series/Sunburst.js.map +0 -1
  608. package/esm/series/Treemap.d.ts +0 -7
  609. package/esm/series/Treemap.js +0 -6
  610. package/esm/series/Treemap.js.map +0 -1
  611. package/esm/series/Waterfall.d.ts +0 -7
  612. package/esm/series/Waterfall.js +0 -6
  613. package/esm/series/Waterfall.js.map +0 -1
  614. package/esm/series/WordCloud.d.ts +0 -7
  615. package/esm/series/WordCloud.js +0 -6
  616. package/esm/series/WordCloud.js.map +0 -1
  617. package/esm/series/WordCloud3d.d.ts +0 -7
  618. package/esm/series/WordCloud3d.js +0 -6
  619. package/esm/series/WordCloud3d.js.map +0 -1
  620. package/esm/series/index.d.ts +0 -31
  621. package/esm/series/index.js +0 -62
  622. package/esm/series/index.js.map +0 -1
  623. package/esm/util.d.ts +0 -6
  624. package/esm/util.js +0 -32
  625. package/esm/util.js.map +0 -1
@@ -1 +0,0 @@
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"]}
@@ -1,7 +0,0 @@
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
- }>;
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,7 +0,0 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IWordCloudSeriesSpec } from '@visactor/vchart';
3
- export type WordCloudProps = BaseSeriesProps & Omit<IWordCloudSeriesSpec, 'type'>;
4
- export declare const WordCloud: import("react").FC<BaseSeriesProps & Omit<IWordCloudSeriesSpec, "type"> & {
5
- updateId?: number;
6
- componentId?: string;
7
- }>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: !0
5
- }), exports.WordCloud = void 0;
6
-
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
8
-
9
- exports.WordCloud = (0, BaseSeries_1.createSeries)("WordCloud", [ "wordCloud" ], "wordCloud", [ vchart_1.registerWordCloudSeries ]);
10
- //# sourceMappingURL=WordCloud.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,7 +0,0 @@
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
- }>;
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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,31 +0,0 @@
1
- export * from './Series';
2
- export * from './Area';
3
- export * from './Bar';
4
- export * from './Bar3d';
5
- export * from './BoxPlot';
6
- export * from './CirclePacking';
7
- export * from './CircularProgress';
8
- export * from './Correlation';
9
- export * from './Dot';
10
- export * from './Funnel';
11
- export * from './Funnel3d';
12
- export * from './Gauge';
13
- export * from './Heatmap';
14
- export * from './Line';
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';
22
- export * from './RangeColumn';
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';
@@ -1,36 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", {
19
- value: !0
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);
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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/cjs/util.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export declare const getDisplayName: (Comp: any) => any;
3
- export declare const typeOfComponent: (component: any, customTypeKey?: string) => string;
4
- export declare const toArray: <T = React.ReactNode, TC = React.ReactNode>(children: T) => TC[];
5
- export declare const findAllByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC | TC[]) => T[];
6
- export declare const findChildByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC) => T;
package/cjs/util.js DELETED
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- var __importDefault = this && this.__importDefault || function(mod) {
4
- return mod && mod.__esModule ? mod : {
5
- default: mod
6
- };
7
- };
8
-
9
- Object.defineProperty(exports, "__esModule", {
10
- value: !0
11
- }), exports.findChildByType = exports.findAllByType = exports.toArray = exports.typeOfComponent = exports.getDisplayName = void 0;
12
-
13
- const vutils_1 = require("@visactor/vutils"), react_1 = __importDefault(require("react")), react_is_1 = require("react-is"), getDisplayName = Comp => "string" == typeof Comp ? Comp : Comp ? Comp.displayName || Comp.name : "";
14
-
15
- exports.getDisplayName = getDisplayName;
16
-
17
- const typeOfComponent = (component, customTypeKey = "__TYPE") => (null == component ? void 0 : component.props) && component.props[customTypeKey] || "string" == typeof (null == component ? void 0 : component.type) && component.type || (null == component ? void 0 : component.type) && "symbol" == typeof component.type && "Symbol(react.fragment)" === component.type.toString() && "react.fragment" || "function" == typeof (null == component ? void 0 : component.type) && component.type || "object" == typeof (null == component ? void 0 : component.type) && "Symbol(react.forward_ref)" === component.type.$$typeof.toString() && "react.forward_ref" || "string" == typeof component && "string" || "function" == typeof component && "function" || void 0;
18
-
19
- exports.typeOfComponent = typeOfComponent;
20
-
21
- const toArray = children => {
22
- let result = [];
23
- return react_1.default.Children.forEach(children, (child => {
24
- (0, vutils_1.isNil)(child) || ((0, react_is_1.isFragment)(child) ? result = result.concat((0,
25
- exports.toArray)(child.props.children)) : result.push(child));
26
- })), result;
27
- };
28
-
29
- exports.toArray = toArray;
30
-
31
- const findAllByType = (children, type) => {
32
- const result = [];
33
- let types = [];
34
- return types = (0, vutils_1.isArray)(type) ? type.map((t => (0, exports.getDisplayName)(t))) : [ (0,
35
- exports.getDisplayName)(type) ], (0, exports.toArray)(children).forEach((child => {
36
- const childType = (0, exports.getDisplayName)((0, exports.typeOfComponent)(child));
37
- -1 !== types.indexOf(childType) && result.push(child);
38
- })), result;
39
- };
40
-
41
- exports.findAllByType = findAllByType;
42
-
43
- const findChildByType = (children, type) => {
44
- const result = (0, exports.findAllByType)(children, type);
45
- return null == result ? void 0 : result[0];
46
- };
47
-
48
- exports.findChildByType = findChildByType;
49
- //# sourceMappingURL=util.js.map
package/cjs/util.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/util.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAkD;AAClD,kDAAyC;AACzC,uCAAsC;AAO/B,MAAM,cAAc,GAAG,CAAC,IAAS,EAAE,EAAE;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEK,MAAM,eAAe,GAAG,CAAC,SAAc,EAAE,aAAa,GAAG,QAAQ,EAAU,EAAE;IAClF,OAAO,CACL,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,KAAI,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpD,CAAC,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,CAAA,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC;QACvD,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI;YACd,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ;YAClC,SAAS,CAAC,IAAI,CAAC,QA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,EAAE;QACjB,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,sBAAc,EAAC,CAAC,CAAC,CAAC,CAAC;KAC1C;SAAM;QACL,KAAK,GAAG,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAC,CAAC;KAChC;IAED,IAAA,eAAO,EAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAChC,MAAM,SAAS,GAAG,IAAA,sBAAc,EAAC,IAAA,uBAAe,EAAC,KAAK,CAAC,CAAC,CAAC;QAEzD,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,IAAI,CAAC,KAAU,CAAC,CAAC;SACzB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAtBW,QAAA,aAAa,iBAsBxB;AAKK,MAAM,eAAe,GAAG,CAA0C,QAAyB,EAAE,IAAQ,EAAK,EAAE;IACjH,MAAM,MAAM,GAAG,IAAA,qBAAa,EAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC;IAEpD,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B","file":"util.js","sourcesContent":["import { isNil, isArray } from '@visactor/vutils';\nimport React, { ReactNode } from 'react';\nimport { isFragment } from 'react-is';\n\n/**\n * Get the display name of a component\n * @param {Object} Comp Specified Component\n * @return {String} Display name of Component\n */\nexport const getDisplayName = (Comp: any) => {\n if (typeof Comp === 'string') {\n return Comp;\n }\n if (!Comp) {\n return '';\n }\n return Comp.displayName || Comp.name;\n};\n\nexport const typeOfComponent = (component: any, customTypeKey = '__TYPE'): string => {\n return (\n (component?.props && component.props[customTypeKey]) ||\n (typeof component?.type === 'string' && component.type) ||\n (component?.type &&\n typeof component.type === 'symbol' &&\n component.type.toString() === 'Symbol(react.fragment)' &&\n 'react.fragment') ||\n (typeof component?.type === 'function' && component.type) ||\n (typeof component?.type === 'object' &&\n component.type.$$typeof.toString() === 'Symbol(react.forward_ref)' &&\n 'react.forward_ref') ||\n (typeof component === 'string' && 'string') ||\n (typeof component === 'function' && 'function') ||\n undefined\n );\n};\n\nexport const toArray = <T = ReactNode, TC = ReactNode>(children: T): TC[] => {\n let result: TC[] = [];\n\n React.Children.forEach(children, child => {\n if (isNil(child)) return;\n\n if (isFragment(child)) {\n result = result.concat(toArray(child.props.children));\n } else {\n result.push(child as unknown as TC);\n }\n });\n\n return result;\n};\n\n/*\n * Find and return all matched children by type. `type` can be a React element class or\n * string\n */\nexport const findAllByType = <T extends React.ReactNode, TC = unknown>(\n children: React.ReactNode,\n type: TC | TC[]\n): T[] => {\n const result: T[] = [];\n let types: string[] = [];\n\n if (isArray(type)) {\n types = type.map(t => getDisplayName(t));\n } else {\n types = [getDisplayName(type)];\n }\n\n toArray(children).forEach(child => {\n const childType = getDisplayName(typeOfComponent(child));\n\n if (types.indexOf(childType) !== -1) {\n result.push(child as T);\n }\n });\n\n return result;\n};\n/*\n * Return the first matched child by type, return null otherwise.\n * `type` can be a React element class or string.\n */\nexport const findChildByType = <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC): T => {\n const result = findAllByType<T, TC>(children, type);\n\n return result?.[0];\n};\n"]}
package/esm/VChart.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { BaseChartProps } from './charts/BaseChart';
2
- export type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;
3
- export declare const VChart: import("react").ForwardRefExoticComponent<VChartProps & import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
package/esm/VChart.js DELETED
@@ -1,7 +0,0 @@
1
- import { createChart } from "./charts/BaseChart";
2
-
3
- import { default as VChartCore } from "@visactor/vchart";
4
-
5
- export const VChart = createChart("VChart", {
6
- vchartConstrouctor: VChartCore
7
- });
package/esm/VChart.js.map DELETED
@@ -1 +0,0 @@
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,6 +0,0 @@
1
- import type { IVChartConstructor } from '@visactor/vchart';
2
- import { BaseChartProps } from './charts/BaseChart';
3
- export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;
4
- export declare const VChartSimple: import("react").ForwardRefExoticComponent<VChartSimpleProps & {
5
- vchartConstrouctor: IVChartConstructor;
6
- } & import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
@@ -1,4 +0,0 @@
1
- import { createChart } from "./charts/BaseChart";
2
-
3
- export const VChartSimple = createChart("VChartSimple");
4
- //# sourceMappingURL=VChartSimple.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/VChartSimple.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjE,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAiE,cAAc,CAAC,CAAC","file":"VChartSimple.js","sourcesContent":["import type { IVChartConstructor } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './charts/BaseChart';\n\nexport type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;\n\nexport const VChartSimple = createChart<VChartSimpleProps & { vchartConstrouctor: IVChartConstructor }>('VChartSimple');\n"]}
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- import type { IAreaChartSpec } from '@visactor/vchart';
3
- import type { BaseChartProps } from './BaseChart';
4
- export interface AreaChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<Partial<IAreaChartSpec>, 'type'> {
5
- }
6
- export declare const AreaChart: React.ForwardRefExoticComponent<AreaChartProps & {
7
- children?: React.ReactNode;
8
- } & {
9
- type?: 'area';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
@@ -1,11 +0,0 @@
1
- import { VChart, registerAreaChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
-
3
- import { createChart } from "./BaseChart";
4
-
5
- import { registers } from "./registers/cartesian";
6
-
7
- export const AreaChart = createChart("AreaChart", {
8
- type: "area",
9
- vchartConstrouctor: VChart
10
- }, [ registerAreaChart, registerLabel, registerTotalLabel, ...registers ]);
11
- //# sourceMappingURL=AreaChart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/AreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CACrE,CAAC","file":"AreaChart.js","sourcesContent":["import type React from 'react';\nimport type { IAreaChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerAreaChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<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, registerTotalLabel, ...registers]\n);\n"]}
@@ -1,10 +0,0 @@
1
- import type 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<Partial<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>>;
@@ -1,11 +0,0 @@
1
- import { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
-
3
- import { createChart } from "./BaseChart";
4
-
5
- import { registers } from "./registers/cartesian";
6
-
7
- export const Bar3dChart = createChart("Bar3dChart", {
8
- type: "bar3d",
9
- vchartConstrouctor: VChart
10
- }, [ registerBar3dChart, registerLabel, registerTotalLabel, ...registers ]);
11
- //# sourceMappingURL=Bar3dChart.js.map
@@ -1 +0,0 @@
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,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD,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,SAAS,CAAC,CACtE,CAAC","file":"Bar3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IBar3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface Bar3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<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, ...registers]\n);\n"]}
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- import type { IBarChartSpec } from '@visactor/vchart';
3
- import { BaseChartProps } from './BaseChart';
4
- export interface BarChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<Partial<IBarChartSpec>, 'type'> {
5
- }
6
- export declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & {
7
- children?: React.ReactNode;
8
- } & {
9
- type?: 'bar';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
@@ -1,11 +0,0 @@
1
- import { VChart, registerBarChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
-
3
- import { createChart } from "./BaseChart";
4
-
5
- import { registers } from "./registers/cartesian";
6
-
7
- export const BarChart = createChart("BarChart", {
8
- type: "bar",
9
- vchartConstrouctor: VChart
10
- }, [ registerBarChart, registerLabel, registerTotalLabel, ...registers ]);
11
- //# sourceMappingURL=BarChart.js.map
@@ -1 +0,0 @@
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,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD,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,SAAS,CAAC,CACpE,CAAC","file":"BarChart.js","sourcesContent":["import type React from 'react';\nimport type { IBarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBarChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<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, ...registers]\n);\n"]}
@@ -1,23 +0,0 @@
1
- import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor, IHierarchyData } from '@visactor/vchart';
2
- import React from 'react';
3
- import type { ContainerProps } from '../containers/withContainer';
4
- import type { EventsProps, LegendEventProps, ScrollBarEventProps, BrushEventProps, DataZoomEventProps, PlayerEventProps, DimensionEventProps, HierarchyEventProps, ChartLifeCycleEventProps } from '../eventsUtils';
5
- import type { IReactTooltipProps } from '../components/tooltip/interface';
6
- export type ChartOptions = Omit<IInitOption, 'dom'>;
7
- export interface BaseChartProps extends EventsProps, LegendEventProps, ScrollBarEventProps, BrushEventProps, DataZoomEventProps, PlayerEventProps, DimensionEventProps, HierarchyEventProps, ChartLifeCycleEventProps, IReactTooltipProps {
8
- vchartConstrouctor?: IVChartConstructor;
9
- type?: string;
10
- container?: HTMLDivElement;
11
- spec?: ISpec;
12
- data?: IData | IHierarchyData;
13
- width?: number;
14
- height?: number;
15
- options?: ChartOptions;
16
- skipFunctionDiff?: boolean;
17
- onReady?: (instance: IVChart, isInitial: boolean) => void;
18
- onError?: (err: Error) => void;
19
- useSyncRender?: boolean;
20
- }
21
- type Props = React.PropsWithChildren<BaseChartProps>;
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
- export {};
@@ -1,108 +0,0 @@
1
- import React, { useState, useEffect, useRef, useImperativeHandle } from "react";
2
-
3
- import withContainer from "../containers/withContainer";
4
-
5
- import RootChartContext from "../context/chart";
6
-
7
- import { isEqual, isNil, isValid, pickWithout } from "@visactor/vutils";
8
-
9
- import ViewContext from "../context/view";
10
-
11
- import { toArray } from "../util";
12
-
13
- import { REACT_PRIVATE_PROPS } from "../constants";
14
-
15
- import { bindEventsToChart, CHART_EVENTS_KEYS, CHART_EVENTS } from "../eventsUtils";
16
-
17
- import { initCustomTooltip } from "../components/tooltip/util";
18
-
19
- const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "vchartConstrouctor", "useSyncRender", "skipFunctionDiff", "onError", "onReady", "spec", "container", "options" ], getComponentId = (child, index) => `${child && child.type && (child.type.displayName || child.type.name)}-${index}`, parseSpecFromChildren = props => {
20
- const specFromChildren = {};
21
- return toArray(props.children).map(((child, index) => {
22
- const parseSpec = child && child.type && child.type.parseSpec;
23
- if (parseSpec && child.props) {
24
- const specResult = parseSpec(isNil(child.props.componentId) ? Object.assign(Object.assign({}, child.props), {
25
- componentId: getComponentId(child, index)
26
- }) : child.props);
27
- specResult.isSingle ? specFromChildren[specResult.specName] = specResult.spec : (specFromChildren[specResult.specName] || (specFromChildren[specResult.specName] = []),
28
- specFromChildren[specResult.specName].push(specResult.spec));
29
- }
30
- })), specFromChildren;
31
- }, BaseChart = React.forwardRef(((props, ref) => {
32
- const [updateId, setUpdateId] = useState(0), chartContext = useRef({});
33
- useImperativeHandle(ref, (() => {
34
- var _a;
35
- return null === (_a = chartContext.current) || void 0 === _a ? void 0 : _a.chart;
36
- }));
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
- let spec;
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);
42
- const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);
43
- return tooltipSpec && (spec.tooltip = tooltipSpec), spec;
44
- }, handleChartRender = () => {
45
- if (!isUnmount.current) {
46
- if (!chartContext.current || !chartContext.current.chart) return;
47
- bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);
48
- const newView = chartContext.current.chart.getCompiler().getVGrammarView();
49
- setUpdateId(updateId + 1), props.onReady && props.onReady(chartContext.current.chart, 0 === updateId),
50
- setView(newView);
51
- }
52
- };
53
- return useEffect((() => {
54
- var _a;
55
- const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);
56
- if (!(null === (_a = chartContext.current) || void 0 === _a ? void 0 : _a.chart)) return hasSpec || (specFromChildren.current = newSpecFromChildren),
57
- (props => {
58
- const cs = new props.vchartConstrouctor(parseSpec(props), Object.assign(Object.assign({}, props.options), {
59
- onError: props.onError,
60
- autoFit: !0,
61
- dom: props.container
62
- }));
63
- chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
64
- chart: cs
65
- }), isUnmount.current = !1;
66
- })(props), chartContext.current.chart && (chartContext.current.chart.renderSync({
67
- reuse: !1
68
- }), handleChartRender()), void (eventsBinded.current = props);
69
- if (hasSpec) return void (isEqual(eventsBinded.current.spec, props.spec, {
70
- skipFunction: skipFunctionDiff
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, {
73
- morph: !1,
74
- enableExitAnimation: !1
75
- }), handleChartRender(), eventsBinded.current = props));
76
- const newSpec = pickWithout(props, notSpecKeys);
77
- isEqual(newSpec, prevSpec.current, {
78
- skipFunction: skipFunctionDiff
79
- }) && isEqual(newSpecFromChildren, specFromChildren.current) || (prevSpec.current = newSpec,
80
- specFromChildren.current = newSpecFromChildren, chartContext.current.chart.updateSpecSync(parseSpec(props), void 0, {
81
- morph: !1,
82
- enableExitAnimation: !1
83
- }), handleChartRender(), eventsBinded.current = props);
84
- }), [ props ]), useEffect((() => () => {
85
- chartContext && chartContext.current && chartContext.current.chart && (chartContext.current.chart.release(),
86
- chartContext.current.chart = null), eventsBinded.current = null, isUnmount.current = !0;
87
- }), []), React.createElement(RootChartContext.Provider, {
88
- value: chartContext.current
89
- }, React.createElement(ViewContext.Provider, {
90
- value: view
91
- }, toArray(props.children).map(((child, index) => {
92
- if ("string" == typeof child) return null;
93
- const childId = getComponentId(child, index);
94
- return React.createElement(React.Fragment, {
95
- key: childId
96
- }, React.cloneElement(child, {
97
- updateId: updateId,
98
- componentId: childId
99
- }));
100
- })), tooltipNode));
101
- }));
102
-
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));
106
- return Com.displayName = componentName, Com;
107
- };
108
- //# sourceMappingURL=BaseChart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/BaseChart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,aAAa,MAAM,6BAA6B,CAAC;AAExD,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAYnD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAgD/D,MAAM,WAAW,GAAG;IAClB,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,oBAAoB;IACpB,eAAe;IACf,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,MAAM;IACN,WAAW;IACX,SAAS;CACV,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,KAAa,EAAE,EAAE;IAC/D,MAAM,aAAa,GAAG,KAAK,IAAK,KAAa,CAAC,IAAI,IAAI,CAAE,KAAa,CAAC,IAAI,CAAC,WAAW,IAAK,KAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpH,OAAO,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAE,EAAE;IAC7C,MAAM,gBAAgB,GAAsD,EAAE,CAAC;IAE/E,OAAO,CAAC,KA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OAAO,GAAG,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBAE7C,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,OAAO,IACzB,KAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;oBACtF,QAAQ,EAAE,QAAQ;oBAClB,WAAW,EAAE,OAAO;iBACrB,CAAC,CACa,CAClB,CAAC;YACJ,CAAC,CAAC;YACD,WAAW,CACS,CACG,CAC7B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,aAAqB,EACrB,YAAyB,EACzB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE;QACpE,YAAY,CAAC,kBAAkB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KACzD;IAED,MAAM,GAAG,GAAG,aAAa,CAAoB,SAAgB,EAAE,aAAa,EAAE,CAAC,KAAQ,EAAE,EAAE;QACzF,IAAI,YAAY,EAAE;YAChB,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SAC3C;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC","file":"BaseChart.js","sourcesContent":["import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor, IHierarchyData } from '@visactor/vchart';\nimport type { ReactNode } from 'react';\nimport React, { useState, useEffect, useRef, useImperativeHandle } from 'react';\nimport type { ContainerProps } from '../containers/withContainer';\nimport withContainer from '../containers/withContainer';\nimport type { ChartContextType } from '../context/chart';\nimport RootChartContext from '../context/chart';\nimport type { IView } from '@visactor/vgrammar-core';\nimport { isEqual, isNil, isValid, pickWithout } from '@visactor/vutils';\nimport ViewContext from '../context/view';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport type {\n EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps\n} from '../eventsUtils';\nimport { bindEventsToChart, CHART_EVENTS_KEYS, CHART_EVENTS } from '../eventsUtils';\nimport type { IReactTooltipProps } from '../components/tooltip/interface';\nimport { initCustomTooltip } from '../components/tooltip/util';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps\n extends EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps,\n IReactTooltipProps {\n vchartConstrouctor?: IVChartConstructor;\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: ISpec;\n /** 数据 */\n data?: IData | IHierarchyData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n /** skip function diff when component update */\n skipFunctionDiff?: boolean;\n /** 图表渲染完成事件 */\n onReady?: (instance: IVChart, isInitial: boolean) => void;\n /** throw error when chart run into an error */\n onError?: (err: Error) => void;\n /**\n * use sync render\n *\n * @since 1.8.3\n * @deprecated 1.9.0\n **/\n useSyncRender?: boolean;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [\n ...REACT_PRIVATE_PROPS,\n ...CHART_EVENTS_KEYS,\n 'vchartConstrouctor',\n 'useSyncRender',\n 'skipFunctionDiff',\n 'onError',\n 'onReady',\n 'spec',\n 'container',\n 'options'\n];\n\nconst getComponentId = (child: React.ReactNode, index: number) => {\n const componentName = child && (child as any).type && ((child as any).type.displayName || (child as any).type.name);\n return `${componentName}-${index}`;\n};\n\nconst parseSpecFromChildren = (props: Props) => {\n const specFromChildren: Omit<ISpec, 'type' | 'data' | 'width' | 'height'> = {};\n\n toArray(props.children).map((child, index) => {\n const parseSpec = child && (child as any).type && (child as any).type.parseSpec;\n\n if (parseSpec && (child as any).props) {\n const childProps = isNil((child as any).props.componentId)\n ? {\n ...(child as any).props,\n componentId: getComponentId(child, index)\n }\n : (child as any).props;\n\n const specResult = parseSpec(childProps);\n\n if (specResult.isSingle) {\n specFromChildren[specResult.specName] = specResult.spec;\n } else {\n if (!specFromChildren[specResult.specName]) {\n specFromChildren[specResult.specName] = [];\n }\n\n specFromChildren[specResult.specName].push(specResult.spec);\n }\n }\n });\n\n return specFromChildren;\n};\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({});\n useImperativeHandle(ref, () => chartContext.current?.chart);\n const hasSpec = !!props.spec;\n const [view, setView] = useState<IView>(null);\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const specFromChildren = useRef<Omit<ISpec, 'type' | 'data' | 'width' | 'height'>>(null);\n const eventsBinded = React.useRef<BaseChartProps>(null);\n const skipFunctionDiff = !!props.skipFunctionDiff;\n const [tooltipNode, setTooltipNode] = useState<ReactNode>(null);\n\n const parseSpec = (props: Props) => {\n let spec: ISpec;\n\n if (hasSpec && props.spec) {\n spec = props.spec;\n\n if (isValid(props.data)) {\n spec = {\n ...props.spec,\n data: props.data\n } as ISpec;\n }\n } else {\n spec = {\n ...prevSpec.current,\n ...specFromChildren.current\n } as ISpec;\n }\n\n const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);\n if (tooltipSpec) {\n spec.tooltip = tooltipSpec;\n }\n return spec;\n };\n\n const createChart = (props: Props) => {\n const cs = new props.vchartConstrouctor(parseSpec(props), {\n ...props.options,\n onError: props.onError,\n autoFit: true,\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n isUnmount.current = false;\n };\n\n const handleChartRender = () => {\n // rebind events after render\n if (!isUnmount.current) {\n if (!chartContext.current || !chartContext.current.chart) {\n return;\n }\n\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n const newView = chartContext.current.chart.getCompiler().getVGrammarView();\n\n setUpdateId(updateId + 1);\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n setView(newView);\n }\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n chartContext.current.chart.renderSync({\n reuse: false\n });\n handleChartRender();\n }\n };\n\n useEffect(() => {\n const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);\n\n if (!chartContext.current?.chart) {\n if (!hasSpec) {\n specFromChildren.current = newSpecFromChildren;\n }\n\n createChart(props);\n renderChart();\n eventsBinded.current = props;\n return;\n }\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec, { skipFunction: skipFunctionDiff })) {\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n eventsBinded.current = props;\n } else if (eventsBinded.current.data !== props.data) {\n chartContext.current.chart.updateFullDataSync(props.data as any);\n handleChartRender();\n eventsBinded.current = props;\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (\n !isEqual(newSpec, prevSpec.current, { skipFunction: skipFunctionDiff }) ||\n !isEqual(newSpecFromChildren, specFromChildren.current)\n ) {\n prevSpec.current = newSpec;\n specFromChildren.current = newSpecFromChildren;\n\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n eventsBinded.current = props;\n }\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current && chartContext.current.chart) {\n chartContext.current.chart.release();\n chartContext.current.chart = null;\n }\n }\n eventsBinded.current = null;\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n <ViewContext.Provider value={view}>\n {toArray(props.children).map((child, index) => {\n if (typeof child === 'string') {\n return null;\n }\n\n const childId = getComponentId(child, index);\n\n return (\n <React.Fragment key={childId}>\n {React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n updateId: updateId,\n componentId: childId\n })}\n </React.Fragment>\n );\n })}\n {tooltipNode}\n </ViewContext.Provider>\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(\n componentName: string,\n defaultProps?: Partial<T>,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length && defaultProps.vchartConstrouctor) {\n defaultProps.vchartConstrouctor.useRegisters(registers);\n }\n\n const Com = withContainer<ContainerProps, T>(BaseChart as any, componentName, (props: T) => {\n if (defaultProps) {\n return Object.assign(props, defaultProps);\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- import type { IBoxPlotChartSpec } from '@visactor/vchart';
3
- import { BaseChartProps } from './BaseChart';
4
- export interface BoxPlotChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<Partial<IBoxPlotChartSpec>, 'type'> {
5
- }
6
- export declare const BoxPlotChart: React.ForwardRefExoticComponent<BoxPlotChartProps & {
7
- children?: React.ReactNode;
8
- } & {
9
- type?: 'boxPlot';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
@@ -1,11 +0,0 @@
1
- import { VChart, registerBoxplotChart, registerLabel } from "@visactor/vchart";
2
-
3
- import { createChart } from "./BaseChart";
4
-
5
- import { registers } from "./registers/cartesian";
6
-
7
- export const BoxPlotChart = createChart("BoxPlotChart", {
8
- type: "boxPlot",
9
- vchartConstrouctor: VChart
10
- }, [ registerBoxplotChart, registerLabel, ...registers ]);
11
- //# sourceMappingURL=BoxPlotChart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/BoxPlotChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,oBAAoB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACpD,CAAC","file":"BoxPlotChart.js","sourcesContent":["import type React from 'react';\nimport type { IBoxPlotChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBoxplotChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<IBoxPlotChartSpec>, 'type'> {}\n\nexport const BoxPlotChart = createChart<React.PropsWithChildren<BoxPlotChartProps> & { type?: 'boxPlot' }>(\n 'BoxPlotChart',\n {\n type: 'boxPlot',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBoxplotChart, registerLabel, ...registers]\n);\n"]}
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- import type { ICirclePackingChartSpec } from '@visactor/vchart';
3
- import { BaseChartProps } from './BaseChart';
4
- export interface CirclePackingChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<Partial<ICirclePackingChartSpec>, 'type'> {
5
- }
6
- export declare const CirclePackingChart: React.ForwardRefExoticComponent<CirclePackingChartProps & {
7
- children?: React.ReactNode;
8
- } & {
9
- type?: 'circlePacking';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
@@ -1,11 +0,0 @@
1
- import { VChart, registerCirclePackingChart } from "@visactor/vchart";
2
-
3
- import { createChart } from "./BaseChart";
4
-
5
- import { registers } from "./registers/simple";
6
-
7
- export const CirclePackingChart = createChart("CirclePackingChart", {
8
- type: "circlePacking",
9
- vchartConstrouctor: VChart
10
- }, [ registerCirclePackingChart, ...registers ]);
11
- //# sourceMappingURL=CirclePackingChart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/CirclePackingChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,0BAA0B,EAAE,GAAG,SAAS,CAAC,CAC3C,CAAC","file":"CirclePackingChart.js","sourcesContent":["import type React from 'react';\nimport type { ICirclePackingChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCirclePackingChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface CirclePackingChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<ICirclePackingChartSpec>, 'type'> {}\n\nexport const CirclePackingChart = createChart<\n React.PropsWithChildren<CirclePackingChartProps> & { type?: 'circlePacking' }\n>(\n 'CirclePackingChart',\n {\n type: 'circlePacking',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCirclePackingChart, ...registers]\n);\n"]}
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- import type { ICircularProgressChartSpec } from '@visactor/vchart';
3
- import type { BaseChartProps } from './BaseChart';
4
- export interface CircularProgressChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>, Omit<Partial<ICircularProgressChartSpec>, 'type'> {
5
- }
6
- export declare const CircularProgressChart: React.ForwardRefExoticComponent<CircularProgressChartProps & {
7
- children?: React.ReactNode;
8
- } & {
9
- type?: 'circularProgress';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;