@visactor/react-vchart 1.12.2-alpha.9 → 1.12.3-alpha.1

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/cjs/VChart.d.ts +3 -0
  2. package/cjs/VChart.js +17 -0
  3. package/cjs/VChart.js.map +1 -0
  4. package/cjs/VChartSimple.d.ts +6 -0
  5. package/cjs/VChartSimple.js +10 -0
  6. package/cjs/VChartSimple.js.map +1 -0
  7. package/cjs/charts/AreaChart.d.ts +10 -0
  8. package/cjs/charts/AreaChart.js +13 -0
  9. package/cjs/charts/AreaChart.js.map +1 -0
  10. package/cjs/charts/Bar3dChart.d.ts +10 -0
  11. package/cjs/charts/Bar3dChart.js +13 -0
  12. package/cjs/charts/Bar3dChart.js.map +1 -0
  13. package/cjs/charts/BarChart.d.ts +10 -0
  14. package/cjs/charts/BarChart.js +13 -0
  15. package/cjs/charts/BarChart.js.map +1 -0
  16. package/cjs/charts/BaseChart.d.ts +23 -0
  17. package/cjs/charts/BaseChart.js +128 -0
  18. package/cjs/charts/BaseChart.js.map +1 -0
  19. package/cjs/charts/BoxPlotChart.d.ts +10 -0
  20. package/cjs/charts/BoxPlotChart.js +13 -0
  21. package/cjs/charts/BoxPlotChart.js.map +1 -0
  22. package/cjs/charts/CirclePackingChart.d.ts +10 -0
  23. package/cjs/charts/CirclePackingChart.js +13 -0
  24. package/cjs/charts/CirclePackingChart.js.map +1 -0
  25. package/cjs/charts/CircularProgressChart.d.ts +10 -0
  26. package/cjs/charts/CircularProgressChart.js +13 -0
  27. package/cjs/charts/CircularProgressChart.js.map +1 -0
  28. package/cjs/charts/CommonChart.d.ts +10 -0
  29. package/cjs/charts/CommonChart.js +13 -0
  30. package/cjs/charts/CommonChart.js.map +1 -0
  31. package/cjs/charts/CorrelationChart.d.ts +10 -0
  32. package/cjs/charts/CorrelationChart.js +13 -0
  33. package/cjs/charts/CorrelationChart.js.map +1 -0
  34. package/cjs/charts/Funnel3dChart.d.ts +10 -0
  35. package/cjs/charts/Funnel3dChart.js +13 -0
  36. package/cjs/charts/Funnel3dChart.js.map +1 -0
  37. package/cjs/charts/FunnelChart.d.ts +10 -0
  38. package/cjs/charts/FunnelChart.js +13 -0
  39. package/cjs/charts/FunnelChart.js.map +1 -0
  40. package/cjs/charts/GaugeChart.d.ts +10 -0
  41. package/cjs/charts/GaugeChart.js +13 -0
  42. package/cjs/charts/GaugeChart.js.map +1 -0
  43. package/cjs/charts/HeatmapChart.d.ts +10 -0
  44. package/cjs/charts/HeatmapChart.js +13 -0
  45. package/cjs/charts/HeatmapChart.js.map +1 -0
  46. package/cjs/charts/Histogram3dChart.d.ts +10 -0
  47. package/cjs/charts/Histogram3dChart.js +13 -0
  48. package/cjs/charts/Histogram3dChart.js.map +1 -0
  49. package/cjs/charts/HistogramChart.d.ts +10 -0
  50. package/cjs/charts/HistogramChart.js +12 -0
  51. package/cjs/charts/HistogramChart.js.map +1 -0
  52. package/cjs/charts/LineChart.d.ts +10 -0
  53. package/cjs/charts/LineChart.js +13 -0
  54. package/cjs/charts/LineChart.js.map +1 -0
  55. package/cjs/charts/LinearProgressChart.d.ts +10 -0
  56. package/cjs/charts/LinearProgressChart.js +13 -0
  57. package/cjs/charts/LinearProgressChart.js.map +1 -0
  58. package/cjs/charts/LiquidChart.d.ts +10 -0
  59. package/cjs/charts/LiquidChart.js +13 -0
  60. package/cjs/charts/LiquidChart.js.map +1 -0
  61. package/cjs/charts/MapChart.d.ts +10 -0
  62. package/cjs/charts/MapChart.js +13 -0
  63. package/cjs/charts/MapChart.js.map +1 -0
  64. package/cjs/charts/Pie3dChart.d.ts +10 -0
  65. package/cjs/charts/Pie3dChart.js +13 -0
  66. package/cjs/charts/Pie3dChart.js.map +1 -0
  67. package/cjs/charts/PieChart.d.ts +10 -0
  68. package/cjs/charts/PieChart.js +13 -0
  69. package/cjs/charts/PieChart.js.map +1 -0
  70. package/cjs/charts/RadarChart.d.ts +10 -0
  71. package/cjs/charts/RadarChart.js +13 -0
  72. package/cjs/charts/RadarChart.js.map +1 -0
  73. package/cjs/charts/RangeColumn3dChart.d.ts +10 -0
  74. package/cjs/charts/RangeColumn3dChart.js +13 -0
  75. package/cjs/charts/RangeColumn3dChart.js.map +1 -0
  76. package/cjs/charts/RangeColumnChart.d.ts +10 -0
  77. package/cjs/charts/RangeColumnChart.js +13 -0
  78. package/cjs/charts/RangeColumnChart.js.map +1 -0
  79. package/cjs/charts/RoseChart.d.ts +10 -0
  80. package/cjs/charts/RoseChart.js +13 -0
  81. package/cjs/charts/RoseChart.js.map +1 -0
  82. package/cjs/charts/SankeyChart.d.ts +10 -0
  83. package/cjs/charts/SankeyChart.js +13 -0
  84. package/cjs/charts/SankeyChart.js.map +1 -0
  85. package/cjs/charts/ScatterChart.d.ts +10 -0
  86. package/cjs/charts/ScatterChart.js +13 -0
  87. package/cjs/charts/ScatterChart.js.map +1 -0
  88. package/cjs/charts/SequenceChart.d.ts +10 -0
  89. package/cjs/charts/SequenceChart.js +13 -0
  90. package/cjs/charts/SequenceChart.js.map +1 -0
  91. package/cjs/charts/SunburstChart.d.ts +10 -0
  92. package/cjs/charts/SunburstChart.js +13 -0
  93. package/cjs/charts/SunburstChart.js.map +1 -0
  94. package/cjs/charts/TreemapChart.d.ts +10 -0
  95. package/cjs/charts/TreemapChart.js +13 -0
  96. package/cjs/charts/TreemapChart.js.map +1 -0
  97. package/cjs/charts/VennChart.d.ts +10 -0
  98. package/cjs/charts/VennChart.js +12 -0
  99. package/cjs/charts/VennChart.js.map +1 -0
  100. package/cjs/charts/WaterfallChart.d.ts +10 -0
  101. package/cjs/charts/WaterfallChart.js +13 -0
  102. package/cjs/charts/WaterfallChart.js.map +1 -0
  103. package/cjs/charts/WordCloud3dChart.d.ts +10 -0
  104. package/cjs/charts/WordCloud3dChart.js +13 -0
  105. package/cjs/charts/WordCloud3dChart.js.map +1 -0
  106. package/cjs/charts/WordCloudChart.d.ts +10 -0
  107. package/cjs/charts/WordCloudChart.js +13 -0
  108. package/cjs/charts/WordCloudChart.js.map +1 -0
  109. package/cjs/charts/index.d.ts +35 -0
  110. package/cjs/charts/index.js +37 -0
  111. package/cjs/charts/index.js.map +1 -0
  112. package/cjs/charts/registers/cartesian.d.ts +1 -0
  113. package/cjs/charts/registers/cartesian.js +10 -0
  114. package/cjs/charts/registers/cartesian.js.map +1 -0
  115. package/cjs/charts/registers/polar.d.ts +1 -0
  116. package/cjs/charts/registers/polar.js +10 -0
  117. package/cjs/charts/registers/polar.js.map +1 -0
  118. package/cjs/charts/registers/simple.d.ts +1 -0
  119. package/cjs/charts/registers/simple.js +10 -0
  120. package/cjs/charts/registers/simple.js.map +1 -0
  121. package/cjs/components/Axis.d.ts +4 -0
  122. package/cjs/components/Axis.js +10 -0
  123. package/cjs/components/Axis.js.map +1 -0
  124. package/cjs/components/BaseComponent.d.ts +10 -0
  125. package/cjs/components/BaseComponent.js +56 -0
  126. package/cjs/components/BaseComponent.js.map +1 -0
  127. package/cjs/components/Brush.d.ts +5 -0
  128. package/cjs/components/Brush.js +10 -0
  129. package/cjs/components/Brush.js.map +1 -0
  130. package/cjs/components/ContinuousLegend.d.ts +5 -0
  131. package/cjs/components/ContinuousLegend.js +10 -0
  132. package/cjs/components/ContinuousLegend.js.map +1 -0
  133. package/cjs/components/Crosshair.d.ts +4 -0
  134. package/cjs/components/Crosshair.js +10 -0
  135. package/cjs/components/Crosshair.js.map +1 -0
  136. package/cjs/components/DataZoom.d.ts +5 -0
  137. package/cjs/components/DataZoom.js +10 -0
  138. package/cjs/components/DataZoom.js.map +1 -0
  139. package/cjs/components/Indicator.d.ts +4 -0
  140. package/cjs/components/Indicator.js +10 -0
  141. package/cjs/components/Indicator.js.map +1 -0
  142. package/cjs/components/Legend.d.ts +5 -0
  143. package/cjs/components/Legend.js +10 -0
  144. package/cjs/components/Legend.js.map +1 -0
  145. package/cjs/components/Mark.d.ts +4 -0
  146. package/cjs/components/Mark.js +10 -0
  147. package/cjs/components/Mark.js.map +1 -0
  148. package/cjs/components/MarkArea.d.ts +4 -0
  149. package/cjs/components/MarkArea.js +10 -0
  150. package/cjs/components/MarkArea.js.map +1 -0
  151. package/cjs/components/MarkLine.d.ts +4 -0
  152. package/cjs/components/MarkLine.js +10 -0
  153. package/cjs/components/MarkLine.js.map +1 -0
  154. package/cjs/components/MarkPoint.d.ts +4 -0
  155. package/cjs/components/MarkPoint.js +9 -0
  156. package/cjs/components/MarkPoint.js.map +1 -0
  157. package/cjs/components/Player.d.ts +5 -0
  158. package/cjs/components/Player.js +10 -0
  159. package/cjs/components/Player.js.map +1 -0
  160. package/cjs/components/Region.d.ts +4 -0
  161. package/cjs/components/Region.js +10 -0
  162. package/cjs/components/Region.js.map +1 -0
  163. package/cjs/components/ScrollBar.d.ts +5 -0
  164. package/cjs/components/ScrollBar.js +10 -0
  165. package/cjs/components/ScrollBar.js.map +1 -0
  166. package/cjs/components/Title.d.ts +4 -0
  167. package/cjs/components/Title.js +10 -0
  168. package/cjs/components/Title.js.map +1 -0
  169. package/cjs/components/index.d.ts +16 -0
  170. package/cjs/components/index.js +28 -0
  171. package/cjs/components/index.js.map +1 -0
  172. package/cjs/components/tooltip/CanvasTooltip.d.ts +2 -0
  173. package/cjs/components/tooltip/CanvasTooltip.js +10 -0
  174. package/cjs/components/tooltip/CanvasTooltip.js.map +1 -0
  175. package/cjs/components/tooltip/Tooltip.d.ts +2 -0
  176. package/cjs/components/tooltip/Tooltip.js +10 -0
  177. package/cjs/components/tooltip/Tooltip.js.map +1 -0
  178. package/cjs/components/tooltip/constant.d.ts +1 -0
  179. package/cjs/components/tooltip/constant.js +10 -0
  180. package/cjs/components/tooltip/constant.js.map +1 -0
  181. package/cjs/components/tooltip/index.d.ts +4 -0
  182. package/cjs/components/tooltip/index.js +22 -0
  183. package/cjs/components/tooltip/index.js.map +1 -0
  184. package/cjs/components/tooltip/interface.d.ts +14 -0
  185. package/cjs/components/tooltip/interface.js +6 -0
  186. package/cjs/components/tooltip/interface.js.map +1 -0
  187. package/cjs/components/tooltip/util.d.ts +5 -0
  188. package/cjs/components/tooltip/util.js +47 -0
  189. package/cjs/components/tooltip/util.js.map +1 -0
  190. package/cjs/constants.d.ts +1 -0
  191. package/cjs/constants.js +6 -0
  192. package/cjs/constants.js.map +1 -0
  193. package/cjs/containers/withContainer.d.ts +8 -0
  194. package/cjs/containers/withContainer.js +64 -0
  195. package/cjs/containers/withContainer.js.map +1 -0
  196. package/cjs/context/chart.d.ts +9 -0
  197. package/cjs/context/chart.js +25 -0
  198. package/cjs/context/chart.js.map +1 -0
  199. package/cjs/context/stage.d.ts +5 -0
  200. package/cjs/context/stage.js +24 -0
  201. package/cjs/context/stage.js.map +1 -0
  202. package/cjs/context/view.d.ts +5 -0
  203. package/cjs/context/view.js +24 -0
  204. package/cjs/context/view.js.map +1 -0
  205. package/cjs/eventsUtils.d.ts +256 -0
  206. package/cjs/eventsUtils.js +114 -0
  207. package/cjs/eventsUtils.js.map +1 -0
  208. package/cjs/index.d.ts +8 -0
  209. package/cjs/index.js +32 -0
  210. package/cjs/index.js.map +1 -0
  211. package/cjs/series/Area.d.ts +7 -0
  212. package/cjs/series/Area.js +10 -0
  213. package/cjs/series/Area.js.map +1 -0
  214. package/cjs/series/Bar.d.ts +7 -0
  215. package/cjs/series/Bar.js +10 -0
  216. package/cjs/series/Bar.js.map +1 -0
  217. package/cjs/series/Bar3d.d.ts +7 -0
  218. package/cjs/series/Bar3d.js +10 -0
  219. package/cjs/series/Bar3d.js.map +1 -0
  220. package/cjs/series/BaseSeries.d.ts +9 -0
  221. package/cjs/series/BaseSeries.js +52 -0
  222. package/cjs/series/BaseSeries.js.map +1 -0
  223. package/cjs/series/BoxPlot.d.ts +7 -0
  224. package/cjs/series/BoxPlot.js +10 -0
  225. package/cjs/series/BoxPlot.js.map +1 -0
  226. package/cjs/series/CirclePacking.d.ts +7 -0
  227. package/cjs/series/CirclePacking.js +10 -0
  228. package/cjs/series/CirclePacking.js.map +1 -0
  229. package/cjs/series/CircularProgress.d.ts +7 -0
  230. package/cjs/series/CircularProgress.js +10 -0
  231. package/cjs/series/CircularProgress.js.map +1 -0
  232. package/cjs/series/Correlation.d.ts +7 -0
  233. package/cjs/series/Correlation.js +10 -0
  234. package/cjs/series/Correlation.js.map +1 -0
  235. package/cjs/series/Dot.d.ts +7 -0
  236. package/cjs/series/Dot.js +10 -0
  237. package/cjs/series/Dot.js.map +1 -0
  238. package/cjs/series/Funnel.d.ts +7 -0
  239. package/cjs/series/Funnel.js +10 -0
  240. package/cjs/series/Funnel.js.map +1 -0
  241. package/cjs/series/Funnel3d.d.ts +7 -0
  242. package/cjs/series/Funnel3d.js +10 -0
  243. package/cjs/series/Funnel3d.js.map +1 -0
  244. package/cjs/series/Gauge.d.ts +7 -0
  245. package/cjs/series/Gauge.js +10 -0
  246. package/cjs/series/Gauge.js.map +1 -0
  247. package/cjs/series/Heatmap.d.ts +7 -0
  248. package/cjs/series/Heatmap.js +10 -0
  249. package/cjs/series/Heatmap.js.map +1 -0
  250. package/cjs/series/Line.d.ts +7 -0
  251. package/cjs/series/Line.js +10 -0
  252. package/cjs/series/Line.js.map +1 -0
  253. package/cjs/series/LinearProgress.d.ts +7 -0
  254. package/cjs/series/LinearProgress.js +10 -0
  255. package/cjs/series/LinearProgress.js.map +1 -0
  256. package/cjs/series/Link.d.ts +7 -0
  257. package/cjs/series/Link.js +10 -0
  258. package/cjs/series/Link.js.map +1 -0
  259. package/cjs/series/Liquid.d.ts +7 -0
  260. package/cjs/series/Liquid.js +10 -0
  261. package/cjs/series/Liquid.js.map +1 -0
  262. package/cjs/series/Map.d.ts +7 -0
  263. package/cjs/series/Map.js +10 -0
  264. package/cjs/series/Map.js.map +1 -0
  265. package/cjs/series/Pie.d.ts +7 -0
  266. package/cjs/series/Pie.js +10 -0
  267. package/cjs/series/Pie.js.map +1 -0
  268. package/cjs/series/Pie3d.d.ts +7 -0
  269. package/cjs/series/Pie3d.js +10 -0
  270. package/cjs/series/Pie3d.js.map +1 -0
  271. package/cjs/series/Radar.d.ts +7 -0
  272. package/cjs/series/Radar.js +10 -0
  273. package/cjs/series/Radar.js.map +1 -0
  274. package/cjs/series/RangeColumn.d.ts +7 -0
  275. package/cjs/series/RangeColumn.js +10 -0
  276. package/cjs/series/RangeColumn.js.map +1 -0
  277. package/cjs/series/RangeColumn3d.d.ts +7 -0
  278. package/cjs/series/RangeColumn3d.js +10 -0
  279. package/cjs/series/RangeColumn3d.js.map +1 -0
  280. package/cjs/series/Rose.d.ts +7 -0
  281. package/cjs/series/Rose.js +10 -0
  282. package/cjs/series/Rose.js.map +1 -0
  283. package/cjs/series/Sankey.d.ts +7 -0
  284. package/cjs/series/Sankey.js +10 -0
  285. package/cjs/series/Sankey.js.map +1 -0
  286. package/cjs/series/Scatter.d.ts +7 -0
  287. package/cjs/series/Scatter.js +10 -0
  288. package/cjs/series/Scatter.js.map +1 -0
  289. package/cjs/series/Series.d.ts +7 -0
  290. package/cjs/series/Series.js +10 -0
  291. package/cjs/series/Series.js.map +1 -0
  292. package/cjs/series/Sunburst.d.ts +7 -0
  293. package/cjs/series/Sunburst.js +10 -0
  294. package/cjs/series/Sunburst.js.map +1 -0
  295. package/cjs/series/Treemap.d.ts +7 -0
  296. package/cjs/series/Treemap.js +10 -0
  297. package/cjs/series/Treemap.js.map +1 -0
  298. package/cjs/series/Waterfall.d.ts +7 -0
  299. package/cjs/series/Waterfall.js +10 -0
  300. package/cjs/series/Waterfall.js.map +1 -0
  301. package/cjs/series/WordCloud.d.ts +7 -0
  302. package/cjs/series/WordCloud.js +10 -0
  303. package/cjs/series/WordCloud.js.map +1 -0
  304. package/cjs/series/WordCloud3d.d.ts +7 -0
  305. package/cjs/series/WordCloud3d.js +10 -0
  306. package/cjs/series/WordCloud3d.js.map +1 -0
  307. package/cjs/series/index.d.ts +31 -0
  308. package/cjs/series/index.js +36 -0
  309. package/cjs/series/index.js.map +1 -0
  310. package/cjs/util.d.ts +6 -0
  311. package/cjs/util.js +49 -0
  312. package/cjs/util.js.map +1 -0
  313. package/esm/VChart.d.ts +3 -0
  314. package/esm/VChart.js +7 -0
  315. package/esm/VChart.js.map +1 -0
  316. package/esm/VChartSimple.d.ts +6 -0
  317. package/esm/VChartSimple.js +4 -0
  318. package/esm/VChartSimple.js.map +1 -0
  319. package/esm/charts/AreaChart.d.ts +10 -0
  320. package/esm/charts/AreaChart.js +11 -0
  321. package/esm/charts/AreaChart.js.map +1 -0
  322. package/esm/charts/Bar3dChart.d.ts +10 -0
  323. package/esm/charts/Bar3dChart.js +11 -0
  324. package/esm/charts/Bar3dChart.js.map +1 -0
  325. package/esm/charts/BarChart.d.ts +10 -0
  326. package/esm/charts/BarChart.js +11 -0
  327. package/esm/charts/BarChart.js.map +1 -0
  328. package/esm/charts/BaseChart.d.ts +23 -0
  329. package/esm/charts/BaseChart.js +108 -0
  330. package/esm/charts/BaseChart.js.map +1 -0
  331. package/esm/charts/BoxPlotChart.d.ts +10 -0
  332. package/esm/charts/BoxPlotChart.js +11 -0
  333. package/esm/charts/BoxPlotChart.js.map +1 -0
  334. package/esm/charts/CirclePackingChart.d.ts +10 -0
  335. package/esm/charts/CirclePackingChart.js +11 -0
  336. package/esm/charts/CirclePackingChart.js.map +1 -0
  337. package/esm/charts/CircularProgressChart.d.ts +10 -0
  338. package/esm/charts/CircularProgressChart.js +11 -0
  339. package/esm/charts/CircularProgressChart.js.map +1 -0
  340. package/esm/charts/CommonChart.d.ts +10 -0
  341. package/esm/charts/CommonChart.js +9 -0
  342. package/esm/charts/CommonChart.js.map +1 -0
  343. package/esm/charts/CorrelationChart.d.ts +10 -0
  344. package/esm/charts/CorrelationChart.js +11 -0
  345. package/esm/charts/CorrelationChart.js.map +1 -0
  346. package/esm/charts/Funnel3dChart.d.ts +10 -0
  347. package/esm/charts/Funnel3dChart.js +11 -0
  348. package/esm/charts/Funnel3dChart.js.map +1 -0
  349. package/esm/charts/FunnelChart.d.ts +10 -0
  350. package/esm/charts/FunnelChart.js +11 -0
  351. package/esm/charts/FunnelChart.js.map +1 -0
  352. package/esm/charts/GaugeChart.d.ts +10 -0
  353. package/esm/charts/GaugeChart.js +11 -0
  354. package/esm/charts/GaugeChart.js.map +1 -0
  355. package/esm/charts/HeatmapChart.d.ts +10 -0
  356. package/esm/charts/HeatmapChart.js +11 -0
  357. package/esm/charts/HeatmapChart.js.map +1 -0
  358. package/esm/charts/Histogram3dChart.d.ts +10 -0
  359. package/esm/charts/Histogram3dChart.js +11 -0
  360. package/esm/charts/Histogram3dChart.js.map +1 -0
  361. package/esm/charts/HistogramChart.d.ts +10 -0
  362. package/esm/charts/HistogramChart.js +10 -0
  363. package/esm/charts/HistogramChart.js.map +1 -0
  364. package/esm/charts/LineChart.d.ts +10 -0
  365. package/esm/charts/LineChart.js +11 -0
  366. package/esm/charts/LineChart.js.map +1 -0
  367. package/esm/charts/LinearProgressChart.d.ts +10 -0
  368. package/esm/charts/LinearProgressChart.js +11 -0
  369. package/esm/charts/LinearProgressChart.js.map +1 -0
  370. package/esm/charts/LiquidChart.d.ts +10 -0
  371. package/esm/charts/LiquidChart.js +11 -0
  372. package/esm/charts/LiquidChart.js.map +1 -0
  373. package/esm/charts/MapChart.d.ts +10 -0
  374. package/esm/charts/MapChart.js +11 -0
  375. package/esm/charts/MapChart.js.map +1 -0
  376. package/esm/charts/Pie3dChart.d.ts +10 -0
  377. package/esm/charts/Pie3dChart.js +11 -0
  378. package/esm/charts/Pie3dChart.js.map +1 -0
  379. package/esm/charts/PieChart.d.ts +10 -0
  380. package/esm/charts/PieChart.js +11 -0
  381. package/esm/charts/PieChart.js.map +1 -0
  382. package/esm/charts/RadarChart.d.ts +10 -0
  383. package/esm/charts/RadarChart.js +11 -0
  384. package/esm/charts/RadarChart.js.map +1 -0
  385. package/esm/charts/RangeColumn3dChart.d.ts +10 -0
  386. package/esm/charts/RangeColumn3dChart.js +11 -0
  387. package/esm/charts/RangeColumn3dChart.js.map +1 -0
  388. package/esm/charts/RangeColumnChart.d.ts +10 -0
  389. package/esm/charts/RangeColumnChart.js +11 -0
  390. package/esm/charts/RangeColumnChart.js.map +1 -0
  391. package/esm/charts/RoseChart.d.ts +10 -0
  392. package/esm/charts/RoseChart.js +11 -0
  393. package/esm/charts/RoseChart.js.map +1 -0
  394. package/esm/charts/SankeyChart.d.ts +10 -0
  395. package/esm/charts/SankeyChart.js +11 -0
  396. package/esm/charts/SankeyChart.js.map +1 -0
  397. package/esm/charts/ScatterChart.d.ts +10 -0
  398. package/esm/charts/ScatterChart.js +11 -0
  399. package/esm/charts/ScatterChart.js.map +1 -0
  400. package/esm/charts/SequenceChart.d.ts +10 -0
  401. package/esm/charts/SequenceChart.js +11 -0
  402. package/esm/charts/SequenceChart.js.map +1 -0
  403. package/esm/charts/SunburstChart.d.ts +10 -0
  404. package/esm/charts/SunburstChart.js +11 -0
  405. package/esm/charts/SunburstChart.js.map +1 -0
  406. package/esm/charts/TreemapChart.d.ts +10 -0
  407. package/esm/charts/TreemapChart.js +11 -0
  408. package/esm/charts/TreemapChart.js.map +1 -0
  409. package/esm/charts/VennChart.d.ts +10 -0
  410. package/esm/charts/VennChart.js +10 -0
  411. package/esm/charts/VennChart.js.map +1 -0
  412. package/esm/charts/WaterfallChart.d.ts +10 -0
  413. package/esm/charts/WaterfallChart.js +11 -0
  414. package/esm/charts/WaterfallChart.js.map +1 -0
  415. package/esm/charts/WordCloud3dChart.d.ts +10 -0
  416. package/esm/charts/WordCloud3dChart.js +11 -0
  417. package/esm/charts/WordCloud3dChart.js.map +1 -0
  418. package/esm/charts/WordCloudChart.d.ts +10 -0
  419. package/esm/charts/WordCloudChart.js +11 -0
  420. package/esm/charts/WordCloudChart.js.map +1 -0
  421. package/esm/charts/index.d.ts +35 -0
  422. package/esm/charts/index.js +66 -0
  423. package/esm/charts/index.js.map +1 -0
  424. package/esm/charts/registers/cartesian.d.ts +1 -0
  425. package/esm/charts/registers/cartesian.js +4 -0
  426. package/esm/charts/registers/cartesian.js.map +1 -0
  427. package/esm/charts/registers/polar.d.ts +1 -0
  428. package/esm/charts/registers/polar.js +4 -0
  429. package/esm/charts/registers/polar.js.map +1 -0
  430. package/esm/charts/registers/simple.d.ts +1 -0
  431. package/esm/charts/registers/simple.js +4 -0
  432. package/esm/charts/registers/simple.js.map +1 -0
  433. package/esm/components/Axis.d.ts +4 -0
  434. package/esm/components/Axis.js +4 -0
  435. package/esm/components/Axis.js.map +1 -0
  436. package/esm/components/BaseComponent.d.ts +10 -0
  437. package/esm/components/BaseComponent.js +29 -0
  438. package/esm/components/BaseComponent.js.map +1 -0
  439. package/esm/components/Brush.d.ts +5 -0
  440. package/esm/components/Brush.js +8 -0
  441. package/esm/components/Brush.js.map +1 -0
  442. package/esm/components/ContinuousLegend.d.ts +5 -0
  443. package/esm/components/ContinuousLegend.js +8 -0
  444. package/esm/components/ContinuousLegend.js.map +1 -0
  445. package/esm/components/Crosshair.d.ts +4 -0
  446. package/esm/components/Crosshair.js +4 -0
  447. package/esm/components/Crosshair.js.map +1 -0
  448. package/esm/components/DataZoom.d.ts +5 -0
  449. package/esm/components/DataZoom.js +8 -0
  450. package/esm/components/DataZoom.js.map +1 -0
  451. package/esm/components/Indicator.d.ts +4 -0
  452. package/esm/components/Indicator.js +6 -0
  453. package/esm/components/Indicator.js.map +1 -0
  454. package/esm/components/Legend.d.ts +5 -0
  455. package/esm/components/Legend.js +8 -0
  456. package/esm/components/Legend.js.map +1 -0
  457. package/esm/components/Mark.d.ts +4 -0
  458. package/esm/components/Mark.js +6 -0
  459. package/esm/components/Mark.js.map +1 -0
  460. package/esm/components/MarkArea.d.ts +4 -0
  461. package/esm/components/MarkArea.js +6 -0
  462. package/esm/components/MarkArea.js.map +1 -0
  463. package/esm/components/MarkLine.d.ts +4 -0
  464. package/esm/components/MarkLine.js +6 -0
  465. package/esm/components/MarkLine.js.map +1 -0
  466. package/esm/components/MarkPoint.d.ts +4 -0
  467. package/esm/components/MarkPoint.js +5 -0
  468. package/esm/components/MarkPoint.js.map +1 -0
  469. package/esm/components/Player.d.ts +5 -0
  470. package/esm/components/Player.js +8 -0
  471. package/esm/components/Player.js.map +1 -0
  472. package/esm/components/Region.d.ts +4 -0
  473. package/esm/components/Region.js +4 -0
  474. package/esm/components/Region.js.map +1 -0
  475. package/esm/components/ScrollBar.d.ts +5 -0
  476. package/esm/components/ScrollBar.js +8 -0
  477. package/esm/components/ScrollBar.js.map +1 -0
  478. package/esm/components/Title.d.ts +4 -0
  479. package/esm/components/Title.js +6 -0
  480. package/esm/components/Title.js.map +1 -0
  481. package/esm/components/index.d.ts +16 -0
  482. package/esm/components/index.js +32 -0
  483. package/esm/components/index.js.map +1 -0
  484. package/esm/components/tooltip/CanvasTooltip.d.ts +2 -0
  485. package/esm/components/tooltip/CanvasTooltip.js +6 -0
  486. package/esm/components/tooltip/CanvasTooltip.js.map +1 -0
  487. package/esm/components/tooltip/Tooltip.d.ts +2 -0
  488. package/esm/components/tooltip/Tooltip.js +6 -0
  489. package/esm/components/tooltip/Tooltip.js.map +1 -0
  490. package/esm/components/tooltip/constant.d.ts +1 -0
  491. package/esm/components/tooltip/constant.js +4 -0
  492. package/esm/components/tooltip/constant.js.map +1 -0
  493. package/esm/components/tooltip/index.d.ts +4 -0
  494. package/esm/components/tooltip/index.js +8 -0
  495. package/esm/components/tooltip/index.js.map +1 -0
  496. package/esm/components/tooltip/interface.d.ts +14 -0
  497. package/esm/components/tooltip/interface.js +2 -0
  498. package/esm/components/tooltip/interface.js.map +1 -0
  499. package/esm/components/tooltip/util.d.ts +5 -0
  500. package/esm/components/tooltip/util.js +40 -0
  501. package/esm/components/tooltip/util.js.map +1 -0
  502. package/esm/constants.d.ts +1 -0
  503. package/esm/constants.js +2 -0
  504. package/esm/constants.js.map +1 -0
  505. package/esm/containers/withContainer.d.ts +8 -0
  506. package/esm/containers/withContainer.js +33 -0
  507. package/esm/containers/withContainer.js.map +1 -0
  508. package/esm/context/chart.d.ts +9 -0
  509. package/esm/context/chart.js +16 -0
  510. package/esm/context/chart.js.map +1 -0
  511. package/esm/context/stage.d.ts +5 -0
  512. package/esm/context/stage.js +16 -0
  513. package/esm/context/stage.js.map +1 -0
  514. package/esm/context/view.d.ts +5 -0
  515. package/esm/context/view.js +16 -0
  516. package/esm/context/view.js.map +1 -0
  517. package/esm/eventsUtils.d.ts +256 -0
  518. package/esm/eventsUtils.js +126 -0
  519. package/esm/eventsUtils.js.map +1 -0
  520. package/esm/index.d.ts +8 -0
  521. package/esm/index.js +14 -0
  522. package/esm/index.js.map +1 -0
  523. package/esm/series/Area.d.ts +7 -0
  524. package/esm/series/Area.js +6 -0
  525. package/esm/series/Area.js.map +1 -0
  526. package/esm/series/Bar.d.ts +7 -0
  527. package/esm/series/Bar.js +6 -0
  528. package/esm/series/Bar.js.map +1 -0
  529. package/esm/series/Bar3d.d.ts +7 -0
  530. package/esm/series/Bar3d.js +6 -0
  531. package/esm/series/Bar3d.js.map +1 -0
  532. package/esm/series/BaseSeries.d.ts +9 -0
  533. package/esm/series/BaseSeries.js +48 -0
  534. package/esm/series/BaseSeries.js.map +1 -0
  535. package/esm/series/BoxPlot.d.ts +7 -0
  536. package/esm/series/BoxPlot.js +6 -0
  537. package/esm/series/BoxPlot.js.map +1 -0
  538. package/esm/series/CirclePacking.d.ts +7 -0
  539. package/esm/series/CirclePacking.js +6 -0
  540. package/esm/series/CirclePacking.js.map +1 -0
  541. package/esm/series/CircularProgress.d.ts +7 -0
  542. package/esm/series/CircularProgress.js +6 -0
  543. package/esm/series/CircularProgress.js.map +1 -0
  544. package/esm/series/Correlation.d.ts +7 -0
  545. package/esm/series/Correlation.js +6 -0
  546. package/esm/series/Correlation.js.map +1 -0
  547. package/esm/series/Dot.d.ts +7 -0
  548. package/esm/series/Dot.js +6 -0
  549. package/esm/series/Dot.js.map +1 -0
  550. package/esm/series/Funnel.d.ts +7 -0
  551. package/esm/series/Funnel.js +6 -0
  552. package/esm/series/Funnel.js.map +1 -0
  553. package/esm/series/Funnel3d.d.ts +7 -0
  554. package/esm/series/Funnel3d.js +6 -0
  555. package/esm/series/Funnel3d.js.map +1 -0
  556. package/esm/series/Gauge.d.ts +7 -0
  557. package/esm/series/Gauge.js +6 -0
  558. package/esm/series/Gauge.js.map +1 -0
  559. package/esm/series/Heatmap.d.ts +7 -0
  560. package/esm/series/Heatmap.js +6 -0
  561. package/esm/series/Heatmap.js.map +1 -0
  562. package/esm/series/Line.d.ts +7 -0
  563. package/esm/series/Line.js +6 -0
  564. package/esm/series/Line.js.map +1 -0
  565. package/esm/series/LinearProgress.d.ts +7 -0
  566. package/esm/series/LinearProgress.js +6 -0
  567. package/esm/series/LinearProgress.js.map +1 -0
  568. package/esm/series/Link.d.ts +7 -0
  569. package/esm/series/Link.js +6 -0
  570. package/esm/series/Link.js.map +1 -0
  571. package/esm/series/Liquid.d.ts +7 -0
  572. package/esm/series/Liquid.js +6 -0
  573. package/esm/series/Liquid.js.map +1 -0
  574. package/esm/series/Map.d.ts +7 -0
  575. package/esm/series/Map.js +6 -0
  576. package/esm/series/Map.js.map +1 -0
  577. package/esm/series/Pie.d.ts +7 -0
  578. package/esm/series/Pie.js +6 -0
  579. package/esm/series/Pie.js.map +1 -0
  580. package/esm/series/Pie3d.d.ts +7 -0
  581. package/esm/series/Pie3d.js +6 -0
  582. package/esm/series/Pie3d.js.map +1 -0
  583. package/esm/series/Radar.d.ts +7 -0
  584. package/esm/series/Radar.js +6 -0
  585. package/esm/series/Radar.js.map +1 -0
  586. package/esm/series/RangeColumn.d.ts +7 -0
  587. package/esm/series/RangeColumn.js +6 -0
  588. package/esm/series/RangeColumn.js.map +1 -0
  589. package/esm/series/RangeColumn3d.d.ts +7 -0
  590. package/esm/series/RangeColumn3d.js +6 -0
  591. package/esm/series/RangeColumn3d.js.map +1 -0
  592. package/esm/series/Rose.d.ts +7 -0
  593. package/esm/series/Rose.js +6 -0
  594. package/esm/series/Rose.js.map +1 -0
  595. package/esm/series/Sankey.d.ts +7 -0
  596. package/esm/series/Sankey.js +6 -0
  597. package/esm/series/Sankey.js.map +1 -0
  598. package/esm/series/Scatter.d.ts +7 -0
  599. package/esm/series/Scatter.js +6 -0
  600. package/esm/series/Scatter.js.map +1 -0
  601. package/esm/series/Series.d.ts +7 -0
  602. package/esm/series/Series.js +4 -0
  603. package/esm/series/Series.js.map +1 -0
  604. package/esm/series/Sunburst.d.ts +7 -0
  605. package/esm/series/Sunburst.js +6 -0
  606. package/esm/series/Sunburst.js.map +1 -0
  607. package/esm/series/Treemap.d.ts +7 -0
  608. package/esm/series/Treemap.js +6 -0
  609. package/esm/series/Treemap.js.map +1 -0
  610. package/esm/series/Waterfall.d.ts +7 -0
  611. package/esm/series/Waterfall.js +6 -0
  612. package/esm/series/Waterfall.js.map +1 -0
  613. package/esm/series/WordCloud.d.ts +7 -0
  614. package/esm/series/WordCloud.js +6 -0
  615. package/esm/series/WordCloud.js.map +1 -0
  616. package/esm/series/WordCloud3d.d.ts +7 -0
  617. package/esm/series/WordCloud3d.js +6 -0
  618. package/esm/series/WordCloud3d.js.map +1 -0
  619. package/esm/series/index.d.ts +31 -0
  620. package/esm/series/index.js +62 -0
  621. package/esm/series/index.js.map +1 -0
  622. package/esm/util.d.ts +6 -0
  623. package/esm/util.js +32 -0
  624. package/esm/util.js.map +1 -0
  625. package/package.json +7 -7
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ import { registerCustomMark, registerAllMarks } from "@visactor/vchart";
4
+
5
+ export const Mark = createComponent("Mark", "customMark", null, !1, [ registerCustomMark, registerAllMarks ]);
6
+ //# sourceMappingURL=Mark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Mark.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIxE,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAY,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE;IAChF,kBAAkB;IAClB,gBAAgB;CACjB,CAAC,CAAC","file":"Mark.js","sourcesContent":["import type { ICustomMarkSpec, EnableMarkType } from '@visactor/vchart';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\nimport { registerCustomMark, registerAllMarks } from '@visactor/vchart';\n\nexport type MarkProps = ICustomMarkSpec<EnableMarkType> & BaseComponentProps;\n\nexport const Mark = createComponent<MarkProps>('Mark', 'customMark', null, false, [\n registerCustomMark,\n registerAllMarks\n]);\n"]}
@@ -0,0 +1,4 @@
1
+ import { BaseComponentProps } from './BaseComponent';
2
+ import type { IMarkAreaSpec } from '@visactor/vchart';
3
+ export type MarkAreaProps = IMarkAreaSpec & BaseComponentProps;
4
+ export declare const MarkArea: import("react").FC<MarkAreaProps>;
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ import { registerMarkArea } from "@visactor/vchart";
4
+
5
+ export const MarkArea = createComponent("MarkArea", "markArea", null, !1, [ registerMarkArea ]);
6
+ //# sourceMappingURL=MarkArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MarkArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIpD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAgB,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC","file":"MarkArea.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IMarkAreaSpec } from '@visactor/vchart';\nimport { registerMarkArea } from '@visactor/vchart';\n\nexport type MarkAreaProps = IMarkAreaSpec & BaseComponentProps;\n\nexport const MarkArea = createComponent<MarkAreaProps>('MarkArea', 'markArea', null, false, [registerMarkArea]);\n"]}
@@ -0,0 +1,4 @@
1
+ import { BaseComponentProps } from './BaseComponent';
2
+ import type { IMarkLineSpec } from '@visactor/vchart';
3
+ export type MarkLineProps = IMarkLineSpec & BaseComponentProps;
4
+ export declare const MarkLine: import("react").FC<MarkLineProps>;
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ import { registerMarkLine } from "@visactor/vchart";
4
+
5
+ export const MarkLine = createComponent("MarkLine", "markLine", null, !1, [ registerMarkLine ]);
6
+ //# sourceMappingURL=MarkLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MarkLine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIpD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAgB,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC","file":"MarkLine.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IMarkLineSpec } from '@visactor/vchart';\nimport { registerMarkLine } from '@visactor/vchart';\n\nexport type MarkLineProps = IMarkLineSpec & BaseComponentProps;\n\nexport const MarkLine = createComponent<MarkLineProps>('MarkLine', 'markLine', null, false, [registerMarkLine]);\n"]}
@@ -0,0 +1,4 @@
1
+ import { BaseComponentProps } from './BaseComponent';
2
+ import type { IMarkPointSpec } from '@visactor/vchart';
3
+ export type MarkPointProps = IMarkPointSpec & BaseComponentProps;
4
+ export declare const MarkPoint: import("react").FC<MarkPointProps>;
@@ -0,0 +1,5 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ import { registerMarkPoint } from "@visactor/vchart";
4
+
5
+ export const MarkPoint = createComponent("MarkPoint", "markPoint", null, !1, [ registerMarkPoint ]);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MarkPoint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAiB,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC","file":"MarkPoint.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IMarkPointSpec } from '@visactor/vchart';\nimport { registerMarkPoint } from '@visactor/vchart';\n\nexport type MarkPointProps = IMarkPointSpec & BaseComponentProps;\n\nexport const MarkPoint = createComponent<MarkPointProps>('MarkPoint', 'markPoint', null, false, [registerMarkPoint]);\n"]}
@@ -0,0 +1,5 @@
1
+ import { PlayerEventProps } from '../eventsUtils';
2
+ import { BaseComponentProps } from './BaseComponent';
3
+ import type { IPlayerSpec } from '@visactor/vchart';
4
+ export type PlayerProps = IPlayerSpec & BaseComponentProps & PlayerEventProps;
5
+ export declare const Player: import("react").FC<PlayerProps>;
@@ -0,0 +1,8 @@
1
+ import { PLAYER_CUSTOMIZED_EVENTS } from "../eventsUtils";
2
+
3
+ import { createComponent } from "./BaseComponent";
4
+
5
+ import { registerPlayer } from "@visactor/vchart";
6
+
7
+ export const Player = createComponent("Player", "player", PLAYER_CUSTOMIZED_EVENTS, !0, [ registerPlayer ]);
8
+ //# sourceMappingURL=Player.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Player.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAoB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAc,QAAQ,EAAE,QAAQ,EAAE,wBAAwB,EAAE,IAAI,EAAE;IACrG,cAAc;CACf,CAAC,CAAC","file":"Player.js","sourcesContent":["import { PLAYER_CUSTOMIZED_EVENTS, PlayerEventProps } from '../eventsUtils';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IPlayerSpec } from '@visactor/vchart';\nimport { registerPlayer } from '@visactor/vchart';\n\nexport type PlayerProps = IPlayerSpec & BaseComponentProps & PlayerEventProps;\n\nexport const Player = createComponent<PlayerProps>('Player', 'player', PLAYER_CUSTOMIZED_EVENTS, true, [\n registerPlayer\n]);\n"]}
@@ -0,0 +1,4 @@
1
+ import type { IRegionSpec } from '@visactor/vchart';
2
+ import { BaseComponentProps } from './BaseComponent';
3
+ export type RegionProps = BaseComponentProps & IRegionSpec;
4
+ export declare const Region: import("react").FC<RegionProps>;
@@ -0,0 +1,4 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ export const Region = createComponent("Region", "region");
4
+ //# sourceMappingURL=Region.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Region.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAItE,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAc,QAAQ,EAAE,QAAQ,CAAC,CAAC","file":"Region.js","sourcesContent":["import type { IRegionSpec } from '@visactor/vchart';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\n\nexport type RegionProps = BaseComponentProps & IRegionSpec;\n\nexport const Region = createComponent<RegionProps>('Region', 'region');\n"]}
@@ -0,0 +1,5 @@
1
+ import { ScrollBarEventProps } from '../eventsUtils';
2
+ import { BaseComponentProps } from './BaseComponent';
3
+ import type { IScrollBarSpec } from '@visactor/vchart';
4
+ export type ScrollBarProps = IScrollBarSpec & BaseComponentProps & ScrollBarEventProps;
5
+ export declare const ScrollBar: import("react").FC<ScrollBarProps>;
@@ -0,0 +1,8 @@
1
+ import { SCROLLBAR_CUSTOMIZED_EVENTS } from "../eventsUtils";
2
+
3
+ import { createComponent } from "./BaseComponent";
4
+
5
+ import { registerScrollBar } from "@visactor/vchart";
6
+
7
+ export const ScrollBar = createComponent("ScrollBar", "scrollBar", SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ registerScrollBar ]);
8
+ //# sourceMappingURL=ScrollBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ScrollBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAuB,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAiB,WAAW,EAAE,WAAW,EAAE,2BAA2B,EAAE,KAAK,EAAE;IACrH,iBAAiB;CAClB,CAAC,CAAC","file":"ScrollBar.js","sourcesContent":["import { SCROLLBAR_CUSTOMIZED_EVENTS, ScrollBarEventProps } from '../eventsUtils';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IScrollBarSpec } from '@visactor/vchart';\nimport { registerScrollBar } from '@visactor/vchart';\n\nexport type ScrollBarProps = IScrollBarSpec & BaseComponentProps & ScrollBarEventProps;\n\nexport const ScrollBar = createComponent<ScrollBarProps>('ScrollBar', 'scrollBar', SCROLLBAR_CUSTOMIZED_EVENTS, false, [\n registerScrollBar\n]);\n"]}
@@ -0,0 +1,4 @@
1
+ import { BaseComponentProps } from './BaseComponent';
2
+ import type { ITitleSpec } from '@visactor/vchart';
3
+ export type TitleProps = ITitleSpec & BaseComponentProps;
4
+ export declare const Title: import("react").FC<TitleProps>;
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "./BaseComponent";
2
+
3
+ import { registerTitle } from "@visactor/vchart";
4
+
5
+ export const Title = createComponent("Title", "title", null, !0, [ registerTitle ]);
6
+ //# sourceMappingURL=Title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAa,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC","file":"Title.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { ITitleSpec } from '@visactor/vchart';\nimport { registerTitle } from '@visactor/vchart';\n\nexport type TitleProps = ITitleSpec & BaseComponentProps;\n\nexport const Title = createComponent<TitleProps>('Title', 'title', null, true, [registerTitle]);\n"]}
@@ -0,0 +1,16 @@
1
+ export * from './Axis';
2
+ export * from './Mark';
3
+ export * from './Region';
4
+ export * from './Legend';
5
+ export * from './Brush';
6
+ export * from './Crosshair';
7
+ export * from './DataZoom';
8
+ export * from './MarkLine';
9
+ export * from './MarkArea';
10
+ export * from './MarkPoint';
11
+ export * from './ScrollBar';
12
+ export * from './tooltip';
13
+ export * from './Player';
14
+ export * from './Indicator';
15
+ export * from './Title';
16
+ export * from './ContinuousLegend';
@@ -0,0 +1,32 @@
1
+ export * from "./Axis";
2
+
3
+ export * from "./Mark";
4
+
5
+ export * from "./Region";
6
+
7
+ export * from "./Legend";
8
+
9
+ export * from "./Brush";
10
+
11
+ export * from "./Crosshair";
12
+
13
+ export * from "./DataZoom";
14
+
15
+ export * from "./MarkLine";
16
+
17
+ export * from "./MarkArea";
18
+
19
+ export * from "./MarkPoint";
20
+
21
+ export * from "./ScrollBar";
22
+
23
+ export * from "./tooltip";
24
+
25
+ export * from "./Player";
26
+
27
+ export * from "./Indicator";
28
+
29
+ export * from "./Title";
30
+
31
+ export * from "./ContinuousLegend";
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC","file":"index.js","sourcesContent":["export * from './Axis';\nexport * from './Mark';\nexport * from './Region';\nexport * from './Legend';\nexport * from './Brush';\nexport * from './Crosshair';\nexport * from './DataZoom';\nexport * from './MarkLine';\nexport * from './MarkArea';\nexport * from './MarkPoint';\nexport * from './ScrollBar';\nexport * from './tooltip';\nexport * from './Player';\nexport * from './Indicator';\nexport * from './Title';\nexport * from './ContinuousLegend';\n"]}
@@ -0,0 +1,2 @@
1
+ import { TooltipProps } from './interface';
2
+ export declare const CanvasTooltip: import("react").FC<TooltipProps>;
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "../BaseComponent";
2
+
3
+ import { registerTooltip, registerCanvasTooltipHandler } from "@visactor/vchart";
4
+
5
+ export const CanvasTooltip = createComponent("CanvasTooltip", "tooltip", null, !0, [ registerTooltip, registerCanvasTooltipHandler ]);
6
+ //# sourceMappingURL=CanvasTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEjF,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAe,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;IACjG,eAAe;IACf,4BAA4B;CAC7B,CAAC,CAAC","file":"CanvasTooltip.js","sourcesContent":["import { createComponent } from '../BaseComponent';\nimport { TooltipProps } from './interface';\nimport { registerTooltip, registerCanvasTooltipHandler } from '@visactor/vchart';\n\nexport const CanvasTooltip = createComponent<TooltipProps>('CanvasTooltip', 'tooltip', null, true, [\n registerTooltip,\n registerCanvasTooltipHandler\n]);\n"]}
@@ -0,0 +1,2 @@
1
+ import { TooltipProps } from './interface';
2
+ export declare const Tooltip: import("react").FC<TooltipProps>;
@@ -0,0 +1,6 @@
1
+ import { createComponent } from "../BaseComponent";
2
+
3
+ import { registerTooltip, registerDomTooltipHandler } from "@visactor/vchart";
4
+
5
+ export const Tooltip = createComponent("Tooltip", "tooltip", null, !0, [ registerTooltip, registerDomTooltipHandler ]);
6
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAe,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;IACrF,eAAe;IACf,yBAAyB;CAC1B,CAAC,CAAC","file":"Tooltip.js","sourcesContent":["import { createComponent } from '../BaseComponent';\nimport { TooltipProps } from './interface';\nimport { registerTooltip, registerDomTooltipHandler } from '@visactor/vchart';\n\nexport const Tooltip = createComponent<TooltipProps>('Tooltip', 'tooltip', null, true, [\n registerTooltip,\n registerDomTooltipHandler\n]);\n"]}
@@ -0,0 +1 @@
1
+ export declare const REACT_TOOLTIP_ClASS_NAME: string;
@@ -0,0 +1,4 @@
1
+ import { PREFIX } from "@visactor/vchart";
2
+
3
+ export const REACT_TOOLTIP_ClASS_NAME = `${PREFIX}_REACT_TOOLTIP`;
4
+ //# sourceMappingURL=constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,MAAM,gBAAgB,CAAC","file":"constant.js","sourcesContent":["import { PREFIX } from '@visactor/vchart';\n\nexport const REACT_TOOLTIP_ClASS_NAME = `${PREFIX}_REACT_TOOLTIP`;\n"]}
@@ -0,0 +1,4 @@
1
+ export * from './Tooltip';
2
+ export * from './interface';
3
+ export * from './constant';
4
+ export * from './CanvasTooltip';
@@ -0,0 +1,8 @@
1
+ export * from "./Tooltip";
2
+
3
+ export * from "./interface";
4
+
5
+ export * from "./constant";
6
+
7
+ export * from "./CanvasTooltip";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC","file":"index.js","sourcesContent":["export * from './Tooltip';\nexport * from './interface';\nexport * from './constant';\nexport * from './CanvasTooltip';\n"]}
@@ -0,0 +1,14 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ import { BaseComponentProps } from '../BaseComponent';
3
+ import type { ITooltipSpec, ITooltipActual, TooltipHandlerParams } from '@visactor/vchart';
4
+ export type TooltipProps = PropsWithChildren<ITooltipSpec & IReactTooltipProps & BaseComponentProps>;
5
+ export interface ITooltipRenderProps {
6
+ tooltipElement: HTMLElement;
7
+ actualTooltip: ITooltipActual;
8
+ params: TooltipHandlerParams;
9
+ }
10
+ export type TooltipRender = (tooltipElement: HTMLElement, actualTooltip: ITooltipActual, params: TooltipHandlerParams) => ReactNode;
11
+ export interface IReactTooltipProps {
12
+ tooltipRender?: TooltipRender;
13
+ reserveDefaultTooltip?: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ export { };
2
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import { PropsWithChildren, ReactNode } from 'react';\nimport { BaseComponentProps } from '../BaseComponent';\nimport type { ITooltipSpec, ITooltipActual, TooltipHandlerParams } from '@visactor/vchart';\n\nexport type TooltipProps = PropsWithChildren<ITooltipSpec & IReactTooltipProps & BaseComponentProps>;\n\nexport interface ITooltipRenderProps {\n tooltipElement: HTMLElement;\n actualTooltip: ITooltipActual;\n params: TooltipHandlerParams;\n}\n\nexport type TooltipRender = (\n tooltipElement: HTMLElement,\n actualTooltip: ITooltipActual,\n params: TooltipHandlerParams\n) => ReactNode;\n\nexport interface IReactTooltipProps {\n /**\n * tooltip 自定义渲染器\n * @since 1.10.0\n */\n tooltipRender?: TooltipRender;\n /**\n * 在应用 `tooltipRender` 配置时,是否保留默认 tooltip dom 元素的显示\n * @since 1.10.0\n */\n reserveDefaultTooltip?: boolean;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { BaseChartProps } from '../../charts/BaseChart';
3
+ import { TooltipProps } from './interface';
4
+ import { ITooltipSpec } from '@visactor/vchart';
5
+ export declare const initCustomTooltip: (setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>, props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+
3
+ import { isObject } from "@visactor/vutils";
4
+
5
+ import { REACT_TOOLTIP_ClASS_NAME } from "./constant";
6
+
7
+ import { createPortal } from "react-dom";
8
+
9
+ export const initCustomTooltip = (setTooltipNode, props, spec) => {
10
+ let render;
11
+ if ((null == spec ? void 0 : spec.tooltipRender) ? (render = spec.tooltipRender,
12
+ delete spec.tooltipRender) : (null == spec ? void 0 : spec.children) ? render = (tooltipElement, actualTooltip, params) => React.Children.map(spec.children, (child => isObject(child) ? React.cloneElement(child, {
13
+ tooltipElement: tooltipElement,
14
+ actualTooltip: actualTooltip,
15
+ params: params
16
+ }) : child)) : props.tooltipRender && (render = props.tooltipRender), render) {
17
+ let reserve;
18
+ return (null == spec ? void 0 : spec.reserveDefaultTooltip) ? (reserve = spec.reserveDefaultTooltip,
19
+ delete spec.reserveDefaultTooltip) : reserve = props.reserveDefaultTooltip, Object.assign(Object.assign({}, spec), {
20
+ updateElement: (el, actualTooltip, params) => {
21
+ const {changePositionOnly: changePositionOnly} = params;
22
+ if (!changePositionOnly) {
23
+ if (!reserve) {
24
+ el.style.width = "auto", el.style.height = "auto", el.style.minHeight = "auto",
25
+ el.style.padding = "0px";
26
+ for (let i = 0; i < el.children.length; i++) {
27
+ const childNode = el.children[i];
28
+ childNode.className !== REACT_TOOLTIP_ClASS_NAME && "none" !== childNode.style.display && (childNode.style.display = "none");
29
+ }
30
+ }
31
+ setTooltipNode(createPortal(React.createElement("div", {
32
+ className: REACT_TOOLTIP_ClASS_NAME
33
+ }, render(el, actualTooltip, params)), el));
34
+ }
35
+ }
36
+ });
37
+ }
38
+ return spec;
39
+ };
40
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,cAAqE,EACrE,KAAqB,EACrB,IAAmB,EACnB,EAAE;IACF,IAAI,MAAM,GAAkB,SAAS,CAAC;IACtC,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,EAAE;QACvB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5B,OAAO,IAAI,CAAC,aAAa,CAAC;KAC3B;SAAM,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAE;QACzB,MAAM,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,CACjD,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CACxC,QAAQ,CAAC,KAAK,CAAC;YACb,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;gBACrF,cAAc;gBACd,aAAa;gBACb,MAAM;aACP,CAAC;YACJ,CAAC,CAAC,KAAK,CACV,CAAC;KACL;SAAM,IAAI,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAO,GAAY,SAAS,CAAC;QACjC,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,qBAAqB,EAAE;YAC/B,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC;YACrC,OAAO,IAAI,CAAC,qBAAqB,CAAC;SACnC;aAAM;YACL,OAAO,GAAG,KAAK,CAAC,qBAAqB,CAAC;SACvC;QACD,OAAO,gCACF,IAAI,KACP,aAAa,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE;gBAC3C,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;gBACtC,IAAI,kBAAkB,EAAE;oBACtB,OAAO;iBACR;gBACD,IAAI,CAAC,OAAO,EAAE;oBACZ,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBACxB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;oBACzB,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;oBAC5B,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;oBACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAgB,CAAC;wBAChD,IAAI,SAAS,CAAC,SAAS,KAAK,wBAAwB,IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE;4BAC1F,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;yBAClC;qBACF;iBACF;gBACD,cAAc,CACZ,YAAY,CAAC,6BAAK,SAAS,EAAE,wBAAwB,IAAG,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,CAAO,EAAE,EAAE,CAAC,CACtG,CAAC;YACJ,CAAC,GACc,CAAC;KACnB;IAED,OAAO,IAAoB,CAAC;AAC9B,CAAC,CAAC","file":"util.js","sourcesContent":["import React from 'react';\nimport type { BaseChartProps } from '../../charts/BaseChart';\nimport { TooltipProps, TooltipRender } from './interface';\nimport { isObject } from '@visactor/vutils';\nimport { ITooltipSpec } from '@visactor/vchart';\nimport { REACT_TOOLTIP_ClASS_NAME } from './constant';\nimport { createPortal } from 'react-dom';\n\n/** tooltip 自定义插槽 */\nexport const initCustomTooltip = (\n setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>,\n props: BaseChartProps,\n spec?: TooltipProps\n) => {\n let render: TooltipRender = undefined;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (spec?.children) {\n render = (tooltipElement, actualTooltip, params) =>\n React.Children.map(spec.children, child =>\n isObject(child)\n ? React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n tooltipElement,\n actualTooltip,\n params\n })\n : child\n );\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean = undefined;\n if (spec?.reserveDefaultTooltip) {\n reserve = spec.reserveDefaultTooltip;\n delete spec.reserveDefaultTooltip;\n } else {\n reserve = props.reserveDefaultTooltip;\n }\n return {\n ...spec,\n updateElement: (el, actualTooltip, params) => {\n const { changePositionOnly } = params;\n if (changePositionOnly) {\n return;\n }\n if (!reserve) {\n el.style.width = 'auto';\n el.style.height = 'auto';\n el.style.minHeight = 'auto';\n el.style.padding = '0px';\n for (let i = 0; i < el.children.length; i++) {\n const childNode = el.children[i] as HTMLElement;\n if (childNode.className !== REACT_TOOLTIP_ClASS_NAME && childNode.style.display !== 'none') {\n childNode.style.display = 'none';\n }\n }\n }\n setTooltipNode(\n createPortal(<div className={REACT_TOOLTIP_ClASS_NAME}>{render(el, actualTooltip, params)}</div>, el)\n );\n }\n } as ITooltipSpec;\n }\n\n return spec as ITooltipSpec;\n};\n"]}
@@ -0,0 +1 @@
1
+ export declare const REACT_PRIVATE_PROPS: string[];
@@ -0,0 +1,2 @@
1
+ export const REACT_PRIVATE_PROPS = [ "children", "hooks", "ref" ];
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC","file":"constants.js","sourcesContent":["export const REACT_PRIVATE_PROPS = [\"children\", \"hooks\", \"ref\"];\n\n"]}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface ContainerProps {
3
+ style?: React.CSSProperties;
4
+ className?: string;
5
+ width?: number | string;
6
+ height?: number | string;
7
+ }
8
+ export default function withContainer<Props extends ContainerProps, CompProps>(Comp: any, name?: string, getProps?: (props: any) => CompProps): React.ForwardRefExoticComponent<React.PropsWithoutRef<CompProps & Props> & React.RefAttributes<any>>;
@@ -0,0 +1,33 @@
1
+ var __rest = this && this.__rest || function(s, e) {
2
+ var t = {};
3
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
4
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
5
+ var i = 0;
6
+ for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
7
+ }
8
+ return t;
9
+ };
10
+
11
+ import React, { useRef, useState, useLayoutEffect } from "react";
12
+
13
+ export default function withContainer(Comp, name = "ChartContainer", getProps) {
14
+ const Cls = React.forwardRef(((props, ref) => {
15
+ const container = useRef(), [inited, setInited] = useState(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
16
+ return useLayoutEffect((() => {
17
+ setInited(!0);
18
+ }), []), React.createElement("div", {
19
+ ref: container,
20
+ className: className,
21
+ style: Object.assign({
22
+ position: "relative",
23
+ height: props.height || "100%",
24
+ width: props.width || "100%"
25
+ }, style)
26
+ }, inited ? React.createElement(Comp, Object.assign({
27
+ ref: ref,
28
+ container: container.current
29
+ }, getProps ? getProps(options) : options)) : React.createElement(React.Fragment, null));
30
+ }));
31
+ return Cls.displayName = name || Comp.name, Cls;
32
+ }
33
+ //# sourceMappingURL=withContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,IAAS,EACT,IAAI,GAAG,gBAAgB,EACvB,QAAoC;IAEpC,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAyB,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;QACrF,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA/C,+BAAuC,CAAQ,CAAC;QAEtD,eAAe,CAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,MAAM,EAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,MAAM,IACzB,KAAK,KAGT,MAAM,CAAC,CAAC,CAAC,CACR,oBAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,IAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAAqB,CAAC,EAAI,CAC9G,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACG,CACP,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;IACpC,OAAO,GAAG,CAAC;AACb,CAAC","file":"withContainer.js","sourcesContent":["import React, { useRef, useState, useLayoutEffect } from 'react';\n\nexport interface ContainerProps {\n style?: React.CSSProperties;\n className?: string;\n width?: number | string;\n height?: number | string;\n}\n\nexport default function withContainer<Props extends ContainerProps, CompProps>(\n Comp: any,\n name = 'ChartContainer',\n getProps?: (props: any) => CompProps\n) {\n const Cls = React.forwardRef<any, CompProps & Props>((props: CompProps & Props, ref) => {\n const container = useRef();\n const [inited, setInited] = useState(false);\n const { className, style, width, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n className={className}\n style={{\n position: 'relative',\n height: props.height || '100%',\n width: props.width || '100%',\n ...style\n }}\n >\n {inited ? (\n <Comp ref={ref} container={container.current} {...(getProps ? getProps(options) : (options as CompProps))} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IVChart } from '@visactor/vchart';
3
+ export interface ChartContextType {
4
+ chart?: IVChart;
5
+ isChildrenUpdated?: boolean;
6
+ }
7
+ declare const ChartContext: React.Context<ChartContextType>;
8
+ export declare function withChartInstance<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
9
+ export default ChartContext;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+
3
+ const ChartContext = React.createContext(null);
4
+
5
+ ChartContext.displayName = "ChartContext";
6
+
7
+ export function withChartInstance(Component) {
8
+ const Com = React.forwardRef(((props, ref) => React.createElement(ChartContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({
9
+ ref: ref,
10
+ chart: ctx.chart
11
+ }, props))))));
12
+ return Com.displayName = Component.name, Com;
13
+ }
14
+
15
+ export default ChartContext;
16
+ //# sourceMappingURL=chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/context/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAmB,IAAI,CAAC,CAAC;AACjE,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAI,SAAiC;IACpE,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,QACnB,CAAC,GAAqB,EAAE,EAAE,CAAC,oBAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAM,KAAK,EAAI,CAC1D,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,YAAY,CAAC","file":"chart.js","sourcesContent":["import React from 'react';\nimport type { IVChart } from '@visactor/vchart';\n\nexport interface ChartContextType {\n chart?: IVChart;\n isChildrenUpdated?: boolean;\n}\n\nconst ChartContext = React.createContext<ChartContextType>(null);\nChartContext.displayName = 'ChartContext';\n\nexport function withChartInstance<T>(Component: typeof React.Component) {\n const Com = React.forwardRef<any, T>((props: T, ref) => {\n return (\n <ChartContext.Consumer>\n {(ctx: ChartContextType) => <Component ref={ref} chart={ctx.chart} {...props} />}\n </ChartContext.Consumer>\n );\n });\n Com.displayName = Component.name;\n return Com;\n}\n\nexport default ChartContext;\n"]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { IStage } from '@visactor/vrender-core';
3
+ declare const StageContext: React.Context<IStage>;
4
+ export declare function withStage<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
5
+ export default StageContext;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+
3
+ const StageContext = React.createContext(null);
4
+
5
+ StageContext.displayName = "StageContext";
6
+
7
+ export function withStage(Component) {
8
+ const Com = React.forwardRef(((props, ref) => React.createElement(StageContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({
9
+ ref: ref,
10
+ stage: ctx
11
+ }, props))))));
12
+ return Com.displayName = Component.name, Com;
13
+ }
14
+
15
+ export default StageContext;
16
+ //# sourceMappingURL=stage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/context/stage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAS,IAAI,CAAC,CAAC;AACvD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,SAAS,CAAI,SAAiC;IAC5D,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,oBAAC,YAAY,CAAC,QAAQ,QAAE,GAAG,CAAC,EAAE,CAAC,oBAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAM,KAAK,EAAI,CAAyB,CAAC;IAChH,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,YAAY,CAAC","file":"stage.js","sourcesContent":["import React from 'react';\nimport type { IStage } from '@visactor/vrender-core';\n\nconst StageContext = React.createContext<IStage>(null);\nStageContext.displayName = 'StageContext';\n\nexport function withStage<T>(Component: typeof React.Component) {\n const Com = React.forwardRef<any, T>((props: T, ref) => {\n return <StageContext.Consumer>{ctx => <Component ref={ref} stage={ctx} {...props} />}</StageContext.Consumer>;\n });\n Com.displayName = Component.name;\n return Com;\n}\n\nexport default StageContext;\n"]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { IView } from '@visactor/vgrammar-core';
3
+ declare const ViewContext: React.Context<IView>;
4
+ export declare function withView<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
5
+ export default ViewContext;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+
3
+ const ViewContext = React.createContext(null);
4
+
5
+ ViewContext.displayName = "ViewContext";
6
+
7
+ export function withView(Component) {
8
+ const Com = React.forwardRef(((props, ref) => React.createElement(ViewContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({
9
+ ref: ref,
10
+ view: ctx
11
+ }, props))))));
12
+ return Com.displayName = Component.name, Com;
13
+ }
14
+
15
+ export default ViewContext;
16
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/context/view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAQ,IAAI,CAAC,CAAC;AACrD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,MAAM,UAAU,QAAQ,CAAI,SAAiC;IAC3D,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,oBAAC,WAAW,CAAC,QAAQ,QAAE,GAAG,CAAC,EAAE,CAAC,oBAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAM,KAAK,EAAI,CAAwB,CAAC;IAC7G,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,WAAW,CAAC","file":"view.js","sourcesContent":["import React from 'react';\nimport type { IView } from '@visactor/vgrammar-core';\n\nconst ViewContext = React.createContext<IView>(null);\nViewContext.displayName = 'ViewContext';\n\nexport function withView<T>(Component: typeof React.Component) {\n const Com = React.forwardRef<any, T>((props: T, ref) => {\n return <ViewContext.Consumer>{ctx => <Component ref={ref} view={ctx} {...props} />}</ViewContext.Consumer>;\n });\n Com.displayName = Component.name;\n return Com;\n}\n\nexport default ViewContext;\n"]}