@visactor/react-vchart 1.13.11-alpha.1 → 1.13.11

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 (181) hide show
  1. package/cjs/VChart.js +1 -1
  2. package/cjs/VChart.js.map +1 -1
  3. package/cjs/VChartSimple.d.ts +2 -2
  4. package/cjs/VChartSimple.js.map +1 -1
  5. package/cjs/charts/AreaChart.js +1 -1
  6. package/cjs/charts/AreaChart.js.map +1 -1
  7. package/cjs/charts/Bar3dChart.js +1 -1
  8. package/cjs/charts/Bar3dChart.js.map +1 -1
  9. package/cjs/charts/BarChart.js +1 -1
  10. package/cjs/charts/BarChart.js.map +1 -1
  11. package/cjs/charts/BaseChart.d.ts +1 -0
  12. package/cjs/charts/BaseChart.js +8 -6
  13. package/cjs/charts/BaseChart.js.map +1 -1
  14. package/cjs/charts/BoxPlotChart.js +1 -1
  15. package/cjs/charts/BoxPlotChart.js.map +1 -1
  16. package/cjs/charts/CirclePackingChart.js +1 -1
  17. package/cjs/charts/CirclePackingChart.js.map +1 -1
  18. package/cjs/charts/CircularProgressChart.js +1 -1
  19. package/cjs/charts/CircularProgressChart.js.map +1 -1
  20. package/cjs/charts/CommonChart.js +1 -1
  21. package/cjs/charts/CommonChart.js.map +1 -1
  22. package/cjs/charts/CorrelationChart.js +1 -1
  23. package/cjs/charts/CorrelationChart.js.map +1 -1
  24. package/cjs/charts/Funnel3dChart.js +1 -1
  25. package/cjs/charts/Funnel3dChart.js.map +1 -1
  26. package/cjs/charts/FunnelChart.js +1 -1
  27. package/cjs/charts/FunnelChart.js.map +1 -1
  28. package/cjs/charts/GaugeChart.js +1 -1
  29. package/cjs/charts/GaugeChart.js.map +1 -1
  30. package/cjs/charts/HeatmapChart.js +1 -1
  31. package/cjs/charts/HeatmapChart.js.map +1 -1
  32. package/cjs/charts/Histogram3dChart.js +1 -1
  33. package/cjs/charts/Histogram3dChart.js.map +1 -1
  34. package/cjs/charts/HistogramChart.js +1 -1
  35. package/cjs/charts/HistogramChart.js.map +1 -1
  36. package/cjs/charts/LineChart.js +1 -1
  37. package/cjs/charts/LineChart.js.map +1 -1
  38. package/cjs/charts/LinearProgressChart.js +1 -1
  39. package/cjs/charts/LinearProgressChart.js.map +1 -1
  40. package/cjs/charts/LiquidChart.js +1 -1
  41. package/cjs/charts/LiquidChart.js.map +1 -1
  42. package/cjs/charts/MapChart.js +1 -1
  43. package/cjs/charts/MapChart.js.map +1 -1
  44. package/cjs/charts/MosaicChart.js +1 -1
  45. package/cjs/charts/MosaicChart.js.map +1 -1
  46. package/cjs/charts/PictogramChart.js +1 -1
  47. package/cjs/charts/PictogramChart.js.map +1 -1
  48. package/cjs/charts/Pie3dChart.js +1 -1
  49. package/cjs/charts/Pie3dChart.js.map +1 -1
  50. package/cjs/charts/PieChart.js +1 -1
  51. package/cjs/charts/PieChart.js.map +1 -1
  52. package/cjs/charts/RadarChart.js +1 -1
  53. package/cjs/charts/RadarChart.js.map +1 -1
  54. package/cjs/charts/RangeAreaChart.js +1 -1
  55. package/cjs/charts/RangeAreaChart.js.map +1 -1
  56. package/cjs/charts/RangeColumn3dChart.js +1 -1
  57. package/cjs/charts/RangeColumn3dChart.js.map +1 -1
  58. package/cjs/charts/RangeColumnChart.js +1 -1
  59. package/cjs/charts/RangeColumnChart.js.map +1 -1
  60. package/cjs/charts/RoseChart.js +1 -1
  61. package/cjs/charts/RoseChart.js.map +1 -1
  62. package/cjs/charts/SankeyChart.js +1 -1
  63. package/cjs/charts/SankeyChart.js.map +1 -1
  64. package/cjs/charts/ScatterChart.js +1 -1
  65. package/cjs/charts/ScatterChart.js.map +1 -1
  66. package/cjs/charts/SequenceChart.js +1 -1
  67. package/cjs/charts/SequenceChart.js.map +1 -1
  68. package/cjs/charts/SunburstChart.js +1 -1
  69. package/cjs/charts/SunburstChart.js.map +1 -1
  70. package/cjs/charts/TreemapChart.js +1 -1
  71. package/cjs/charts/TreemapChart.js.map +1 -1
  72. package/cjs/charts/VennChart.js +1 -1
  73. package/cjs/charts/VennChart.js.map +1 -1
  74. package/cjs/charts/WaterfallChart.js +1 -1
  75. package/cjs/charts/WaterfallChart.js.map +1 -1
  76. package/cjs/charts/WordCloud3dChart.js +1 -1
  77. package/cjs/charts/WordCloud3dChart.js.map +1 -1
  78. package/cjs/charts/WordCloudChart.js +1 -1
  79. package/cjs/charts/WordCloudChart.js.map +1 -1
  80. package/cjs/components/MarkArea.js +2 -1
  81. package/cjs/components/ScrollBar.js +1 -2
  82. package/cjs/components/tooltip/util.d.ts +2 -1
  83. package/cjs/components/tooltip/util.js +12 -16
  84. package/cjs/components/tooltip/util.js.map +1 -1
  85. package/cjs/containers/withContainer.d.ts +1 -0
  86. package/cjs/containers/withContainer.js +4 -3
  87. package/cjs/containers/withContainer.js.map +1 -1
  88. package/cjs/index.d.ts +1 -1
  89. package/cjs/index.js +1 -1
  90. package/cjs/index.js.map +1 -1
  91. package/esm/VChart.js +1 -1
  92. package/esm/VChart.js.map +1 -1
  93. package/esm/VChartSimple.d.ts +2 -2
  94. package/esm/VChartSimple.js.map +1 -1
  95. package/esm/charts/AreaChart.js +1 -1
  96. package/esm/charts/AreaChart.js.map +1 -1
  97. package/esm/charts/Bar3dChart.js +1 -1
  98. package/esm/charts/Bar3dChart.js.map +1 -1
  99. package/esm/charts/BarChart.js +1 -1
  100. package/esm/charts/BarChart.js.map +1 -1
  101. package/esm/charts/BaseChart.d.ts +1 -0
  102. package/esm/charts/BaseChart.js +7 -6
  103. package/esm/charts/BaseChart.js.map +1 -1
  104. package/esm/charts/BoxPlotChart.js +1 -1
  105. package/esm/charts/BoxPlotChart.js.map +1 -1
  106. package/esm/charts/CirclePackingChart.js +1 -1
  107. package/esm/charts/CirclePackingChart.js.map +1 -1
  108. package/esm/charts/CircularProgressChart.js +1 -1
  109. package/esm/charts/CircularProgressChart.js.map +1 -1
  110. package/esm/charts/CommonChart.js +1 -1
  111. package/esm/charts/CommonChart.js.map +1 -1
  112. package/esm/charts/CorrelationChart.js +1 -1
  113. package/esm/charts/CorrelationChart.js.map +1 -1
  114. package/esm/charts/Funnel3dChart.js +1 -1
  115. package/esm/charts/Funnel3dChart.js.map +1 -1
  116. package/esm/charts/FunnelChart.js +1 -1
  117. package/esm/charts/FunnelChart.js.map +1 -1
  118. package/esm/charts/GaugeChart.js +1 -1
  119. package/esm/charts/GaugeChart.js.map +1 -1
  120. package/esm/charts/HeatmapChart.js +1 -1
  121. package/esm/charts/HeatmapChart.js.map +1 -1
  122. package/esm/charts/Histogram3dChart.js +1 -1
  123. package/esm/charts/Histogram3dChart.js.map +1 -1
  124. package/esm/charts/HistogramChart.js +1 -1
  125. package/esm/charts/HistogramChart.js.map +1 -1
  126. package/esm/charts/LineChart.js +1 -1
  127. package/esm/charts/LineChart.js.map +1 -1
  128. package/esm/charts/LinearProgressChart.js +1 -1
  129. package/esm/charts/LinearProgressChart.js.map +1 -1
  130. package/esm/charts/LiquidChart.js +1 -1
  131. package/esm/charts/LiquidChart.js.map +1 -1
  132. package/esm/charts/MapChart.js +1 -1
  133. package/esm/charts/MapChart.js.map +1 -1
  134. package/esm/charts/MosaicChart.js +1 -1
  135. package/esm/charts/MosaicChart.js.map +1 -1
  136. package/esm/charts/PictogramChart.js +1 -1
  137. package/esm/charts/PictogramChart.js.map +1 -1
  138. package/esm/charts/Pie3dChart.js +1 -1
  139. package/esm/charts/Pie3dChart.js.map +1 -1
  140. package/esm/charts/PieChart.js +1 -1
  141. package/esm/charts/PieChart.js.map +1 -1
  142. package/esm/charts/RadarChart.js +1 -1
  143. package/esm/charts/RadarChart.js.map +1 -1
  144. package/esm/charts/RangeAreaChart.js +1 -1
  145. package/esm/charts/RangeAreaChart.js.map +1 -1
  146. package/esm/charts/RangeColumn3dChart.js +1 -1
  147. package/esm/charts/RangeColumn3dChart.js.map +1 -1
  148. package/esm/charts/RangeColumnChart.js +1 -1
  149. package/esm/charts/RangeColumnChart.js.map +1 -1
  150. package/esm/charts/RoseChart.js +1 -1
  151. package/esm/charts/RoseChart.js.map +1 -1
  152. package/esm/charts/SankeyChart.js +1 -1
  153. package/esm/charts/SankeyChart.js.map +1 -1
  154. package/esm/charts/ScatterChart.js +1 -1
  155. package/esm/charts/ScatterChart.js.map +1 -1
  156. package/esm/charts/SequenceChart.js +1 -1
  157. package/esm/charts/SequenceChart.js.map +1 -1
  158. package/esm/charts/SunburstChart.js +1 -1
  159. package/esm/charts/SunburstChart.js.map +1 -1
  160. package/esm/charts/TreemapChart.js +1 -1
  161. package/esm/charts/TreemapChart.js.map +1 -1
  162. package/esm/charts/VennChart.js +1 -1
  163. package/esm/charts/VennChart.js.map +1 -1
  164. package/esm/charts/WaterfallChart.js +1 -1
  165. package/esm/charts/WaterfallChart.js.map +1 -1
  166. package/esm/charts/WordCloud3dChart.js +1 -1
  167. package/esm/charts/WordCloud3dChart.js.map +1 -1
  168. package/esm/charts/WordCloudChart.js +1 -1
  169. package/esm/charts/WordCloudChart.js.map +1 -1
  170. package/esm/components/MarkArea.js +2 -1
  171. package/esm/components/ScrollBar.js +1 -2
  172. package/esm/components/tooltip/util.d.ts +2 -1
  173. package/esm/components/tooltip/util.js +13 -19
  174. package/esm/components/tooltip/util.js.map +1 -1
  175. package/esm/containers/withContainer.d.ts +1 -0
  176. package/esm/containers/withContainer.js +4 -3
  177. package/esm/containers/withContainer.js.map +1 -1
  178. package/esm/index.d.ts +1 -1
  179. package/esm/index.js +1 -1
  180. package/esm/index.js.map +1 -1
  181. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RangeColumnChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACxD,CAAC","file":"RangeColumnChart.js","sourcesContent":["import type React from 'react';\nimport type { IRangeColumnChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRangeColumnChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface RangeColumnChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRangeColumnChartSpec>, 'type'> {}\n\nexport const RangeColumnChart = createChart<React.PropsWithChildren<RangeColumnChartProps> & { type?: 'rangeColumn' }>(\n 'RangeColumnChart',\n {\n type: 'rangeColumn',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRangeColumnChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RangeColumnChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,wBAAwB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACxD,CAAC","file":"RangeColumnChart.js","sourcesContent":["import type React from 'react';\nimport type { IRangeColumnChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRangeColumnChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface RangeColumnChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRangeColumnChartSpec>, 'type'> {}\n\nexport const RangeColumnChart = createChart<React.PropsWithChildren<RangeColumnChartProps> & { type?: 'rangeColumn' }>(\n 'RangeColumnChart',\n {\n type: 'rangeColumn',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerRangeColumnChart, registerLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { registers } from "./registers/polar";
6
6
 
7
7
  export const RoseChart = createChart("RoseChart", {
8
8
  type: "rose",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerRoseChart, registerLabel, ...registers ]);
11
11
  //# sourceMappingURL=RoseChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RoseChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACjD,CAAC","file":"RoseChart.js","sourcesContent":["import type React from 'react';\nimport type { IRoseChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRoseChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/polar';\n\nexport interface RoseChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRoseChartSpec>, 'type'> {}\n\nexport const RoseChart = createChart<React.PropsWithChildren<RoseChartProps> & { type?: 'rose' }>(\n 'RoseChart',\n {\n type: 'rose',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRoseChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RoseChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACjD,CAAC","file":"RoseChart.js","sourcesContent":["import type React from 'react';\nimport type { IRoseChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRoseChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/polar';\n\nexport interface RoseChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRoseChartSpec>, 'type'> {}\n\nexport const RoseChart = createChart<React.PropsWithChildren<RoseChartProps> & { type?: 'rose' }>(\n 'RoseChart',\n {\n type: 'rose',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerRoseChart, registerLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const SankeyChart = createChart("SankeyChart", {
8
8
  type: "sankey",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerSankeyChart, registerLabel, ...registers ]);
11
11
  //# sourceMappingURL=SankeyChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/SankeyChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,mBAAmB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACnD,CAAC","file":"SankeyChart.js","sourcesContent":["import type React from 'react';\nimport type { ISankeyChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerSankeyChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SankeyChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISankeyChartSpec>, 'type'> {}\n\nexport const SankeyChart = createChart<React.PropsWithChildren<SankeyChartProps> & { type?: 'sankey' }>(\n 'SankeyChart',\n {\n type: 'sankey',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerSankeyChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/SankeyChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,mBAAmB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACnD,CAAC","file":"SankeyChart.js","sourcesContent":["import type React from 'react';\nimport type { ISankeyChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerSankeyChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SankeyChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISankeyChartSpec>, 'type'> {}\n\nexport const SankeyChart = createChart<React.PropsWithChildren<SankeyChartProps> & { type?: 'sankey' }>(\n 'SankeyChart',\n {\n type: 'sankey',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerSankeyChart, registerLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const ScatterChart = createChart("ScatterChart", {
8
8
  type: "scatter",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerScatterChart, registerLabel, ...registers ]);
11
11
  //# sourceMappingURL=ScatterChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/ScatterChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,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":"ScatterChart.js","sourcesContent":["import type React from 'react';\nimport type { IScatterChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerScatterChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface ScatterChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IScatterChartSpec>, 'type'> {}\n\nexport const ScatterChart = createChart<React.PropsWithChildren<ScatterChartProps> & { type?: 'scatter' }>(\n 'ScatterChart',\n {\n type: 'scatter',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerScatterChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/ScatterChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,oBAAoB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACpD,CAAC","file":"ScatterChart.js","sourcesContent":["import type React from 'react';\nimport type { IScatterChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerScatterChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface ScatterChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IScatterChartSpec>, 'type'> {}\n\nexport const ScatterChart = createChart<React.PropsWithChildren<ScatterChartProps> & { type?: 'scatter' }>(\n 'ScatterChart',\n {\n type: 'scatter',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerScatterChart, registerLabel, ...registers]\n);\n"]}
@@ -6,5 +6,5 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const SequenceChart = createChart("SequenceChart", {
8
8
  type: "sequence",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerSequenceChart, ...registers ]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/SequenceChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,qBAAqB,EAAE,GAAG,SAAS,CAAC,CACtC,CAAC","file":"SequenceChart.js","sourcesContent":["import type React from 'react';\nimport type { ISequenceChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerSequenceChart } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SequenceChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISequenceChartSpec>, 'type'> {}\n\nexport const SequenceChart = createChart<React.PropsWithChildren<SequenceChartProps> & { type?: 'sequence' }>(\n 'SequenceChart',\n {\n type: 'sequence',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerSequenceChart, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/SequenceChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,qBAAqB,EAAE,GAAG,SAAS,CAAC,CACtC,CAAC","file":"SequenceChart.js","sourcesContent":["import type React from 'react';\nimport type { ISequenceChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerSequenceChart } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SequenceChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISequenceChartSpec>, 'type'> {}\n\nexport const SequenceChart = createChart<React.PropsWithChildren<SequenceChartProps> & { type?: 'sequence' }>(\n 'SequenceChart',\n {\n type: 'sequence',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerSequenceChart, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const SunburstChart = createChart("SunburstChart", {
8
8
  type: "sunburst",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerSunburstChart, registerLabel, ...registers ]);
11
11
  //# sourceMappingURL=SunburstChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/SunburstChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,qBAAqB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACrD,CAAC","file":"SunburstChart.js","sourcesContent":["import type React from 'react';\nimport type { ISunburstChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerSunburstChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SunburstChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISunburstChartSpec>, 'type'> {}\n\nexport const SunburstChart = createChart<React.PropsWithChildren<SunburstChartProps> & { type?: 'sunburst' }>(\n 'SunburstChart',\n {\n type: 'sunburst',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerSunburstChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/SunburstChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,qBAAqB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACrD,CAAC","file":"SunburstChart.js","sourcesContent":["import type React from 'react';\nimport type { ISunburstChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerSunburstChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface SunburstChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ISunburstChartSpec>, 'type'> {}\n\nexport const SunburstChart = createChart<React.PropsWithChildren<SunburstChartProps> & { type?: 'sunburst' }>(\n 'SunburstChart',\n {\n type: 'sunburst',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerSunburstChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ import { registerLabel } from "@visactor/vgrammar-core";
8
8
 
9
9
  export const TreemapChart = createChart("TreemapChart", {
10
10
  type: "treemap",
11
- vchartConstrouctor: VChart
11
+ vchartConstructor: VChart
12
12
  }, [ registerTreemapChart, registerLabel, ...registers ]);
13
13
  //# sourceMappingURL=TreemapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/TreemapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,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":"TreemapChart.js","sourcesContent":["import type React from 'react';\nimport type { ITreemapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerTreemapChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registerLabel } from '@visactor/vgrammar-core';\n\nexport interface TreemapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ITreemapChartSpec>, 'type'> {}\n\nexport const TreemapChart = createChart<React.PropsWithChildren<TreemapChartProps> & { type?: 'treemap' }>(\n 'TreemapChart',\n {\n type: 'treemap',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerTreemapChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/TreemapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,oBAAoB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACpD,CAAC","file":"TreemapChart.js","sourcesContent":["import type React from 'react';\nimport type { ITreemapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerTreemapChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registerLabel } from '@visactor/vgrammar-core';\n\nexport interface TreemapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ITreemapChartSpec>, 'type'> {}\n\nexport const TreemapChart = createChart<React.PropsWithChildren<TreemapChartProps> & { type?: 'treemap' }>(\n 'TreemapChart',\n {\n type: 'treemap',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerTreemapChart, registerLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { registers } from "./registers/simple";
6
6
 
7
7
  export const VennChart = createChart("VennChart", {
8
8
  type: "venn",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerVennChart, registerLabel, ...registers ]);
11
11
  //# sourceMappingURL=VennChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/VennChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACjD,CAAC","file":"VennChart.js","sourcesContent":["import type React from 'react';\nimport type { IVennChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerVennChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface VennChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<IVennChartSpec, 'type'> {}\n\nexport const VennChart = createChart<React.PropsWithChildren<VennChartProps> & { type: 'venn' }>(\n 'VennChart',\n {\n type: 'venn',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerVennChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/VennChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CACjD,CAAC","file":"VennChart.js","sourcesContent":["import type React from 'react';\nimport type { IVennChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerVennChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface VennChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<IVennChartSpec, 'type'> {}\n\nexport const VennChart = createChart<React.PropsWithChildren<VennChartProps> & { type: 'venn' }>(\n 'VennChart',\n {\n type: 'venn',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerVennChart, registerLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const WaterfallChart = createChart("WaterfallChart", {
8
8
  type: "waterfall",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerWaterfallChart, registerLabel, registerTotalLabel, ...registers ]);
11
11
  //# sourceMappingURL=WaterfallChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/WaterfallChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1C,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CAC1E,CAAC","file":"WaterfallChart.js","sourcesContent":["import type React from 'react';\nimport type { IWaterfallChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWaterfallChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface WaterfallChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWaterfallChartSpec>, 'type'> {\n //\n}\n\nexport const WaterfallChart = createChart<React.PropsWithChildren<WaterfallChartProps> & { type?: 'waterfall' }>(\n 'WaterfallChart',\n {\n type: 'waterfall',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerWaterfallChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/WaterfallChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1C,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CAC1E,CAAC","file":"WaterfallChart.js","sourcesContent":["import type React from 'react';\nimport type { IWaterfallChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWaterfallChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface WaterfallChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWaterfallChartSpec>, 'type'> {\n //\n}\n\nexport const WaterfallChart = createChart<React.PropsWithChildren<WaterfallChartProps> & { type?: 'waterfall' }>(\n 'WaterfallChart',\n {\n type: 'waterfall',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerWaterfallChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { createChart } from "./BaseChart";
6
6
 
7
7
  export const WordCloud3dChart = createChart("WordCloud3dChart", {
8
8
  type: "wordCloud3d",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerWordCloud3dChart, ...registers ]);
11
11
  //# sourceMappingURL=WordCloud3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/WordCloud3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,EAAE,GAAG,SAAS,CAAC,CACzC,CAAC","file":"WordCloud3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IWordCloud3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWordCloud3dChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface WordCloud3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWordCloud3dChartSpec>, 'type'> {}\n\nexport const WordCloud3dChart = createChart<React.PropsWithChildren<WordCloud3dChartProps> & { type?: 'wordCloud3d' }>(\n 'WordCloud3dChart',\n {\n type: 'wordCloud3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerWordCloud3dChart, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/WordCloud3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,wBAAwB,EAAE,GAAG,SAAS,CAAC,CACzC,CAAC","file":"WordCloud3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IWordCloud3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWordCloud3dChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface WordCloud3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWordCloud3dChartSpec>, 'type'> {}\n\nexport const WordCloud3dChart = createChart<React.PropsWithChildren<WordCloud3dChartProps> & { type?: 'wordCloud3d' }>(\n 'WordCloud3dChart',\n {\n type: 'wordCloud3d',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerWordCloud3dChart, ...registers]\n);\n"]}
@@ -6,6 +6,6 @@ import { registers } from "./registers/simple";
6
6
 
7
7
  export const WordCloudChart = createChart("WordCloudChart", {
8
8
  type: "wordCloud",
9
- vchartConstrouctor: VChart
9
+ vchartConstructor: VChart
10
10
  }, [ registerWordCloudChart, ...registers ]);
11
11
  //# sourceMappingURL=WordCloudChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/WordCloudChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,sBAAsB,EAAE,GAAG,SAAS,CAAC,CACvC,CAAC","file":"WordCloudChart.js","sourcesContent":["import type React from 'react';\nimport type { IWordCloudChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWordCloudChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface WordCloudChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWordCloudChartSpec>, 'type'> {}\n\nexport const WordCloudChart = createChart<React.PropsWithChildren<WordCloudChartProps> & { type?: 'wordCloud' }>(\n 'WordCloudChart',\n {\n type: 'wordCloud',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerWordCloudChart, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/WordCloudChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,iBAAiB,EAAE,MAA4B;CAChD,EACD,CAAC,sBAAsB,EAAE,GAAG,SAAS,CAAC,CACvC,CAAC","file":"WordCloudChart.js","sourcesContent":["import type React from 'react';\nimport type { IWordCloudChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerWordCloudChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface WordCloudChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IWordCloudChartSpec>, 'type'> {}\n\nexport const WordCloudChart = createChart<React.PropsWithChildren<WordCloudChartProps> & { type?: 'wordCloud' }>(\n 'WordCloudChart',\n {\n type: 'wordCloud',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerWordCloudChart, ...registers]\n);\n"]}
@@ -2,4 +2,5 @@ import { createComponent } from "./BaseComponent";
2
2
 
3
3
  import { registerMarkArea } from "@visactor/vchart";
4
4
 
5
- export const MarkArea = createComponent("MarkArea", "markArea", null, !1, [ registerMarkArea ]);
5
+ export const MarkArea = createComponent("MarkArea", "markArea", null, !1, [ registerMarkArea ]);
6
+ //# sourceMappingURL=MarkArea.js.map
@@ -4,5 +4,4 @@ import { createComponent } from "./BaseComponent";
4
4
 
5
5
  import { registerScrollBar } from "@visactor/vchart";
6
6
 
7
- export const ScrollBar = createComponent("ScrollBar", "scrollBar", SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ registerScrollBar ]);
8
- //# sourceMappingURL=ScrollBar.js.map
7
+ export const ScrollBar = createComponent("ScrollBar", "scrollBar", SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ registerScrollBar ]);
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import type { BaseChartProps } from '../../charts/BaseChart';
2
3
  import type { TooltipProps } from './interface';
3
4
  import type { ITooltipSpec } from '@visactor/vchart';
4
- export declare const initCustomTooltip: (props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
5
+ export declare const initCustomTooltip: (setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>, props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
@@ -2,11 +2,9 @@ import React from "react";
2
2
 
3
3
  import { REACT_TOOLTIP_ClASS_NAME } from "./constant";
4
4
 
5
- import { createRoot } from "react-dom/client";
5
+ import { createPortal } from "react-dom";
6
6
 
7
- import { render as reactRender } from "react-dom";
8
-
9
- export const initCustomTooltip = (props, spec) => {
7
+ export const initCustomTooltip = (setTooltipNode, props, spec) => {
10
8
  let render;
11
9
  if ((null == spec ? void 0 : spec.tooltipRender) ? (render = spec.tooltipRender,
12
10
  delete spec.tooltipRender) : props.tooltipRender && (render = props.tooltipRender),
@@ -16,23 +14,19 @@ export const initCustomTooltip = (props, spec) => {
16
14
  delete spec.reserveDefaultTooltip) : reserve = props.reserveDefaultTooltip, Object.assign(Object.assign({}, spec), {
17
15
  updateElement: (el, actualTooltip, params) => {
18
16
  const {changePositionOnly: changePositionOnly} = params;
19
- if (changePositionOnly) return;
20
- if (!reserve) {
21
- el.style.width = "auto", el.style.height = "auto", el.style.minHeight = "auto",
22
- el.style.padding = "0px";
23
- for (let i = 0; i < el.children.length; i++) {
24
- const childNode = el.children[i];
25
- childNode.className !== REACT_TOOLTIP_ClASS_NAME && "none" !== childNode.style.display && (childNode.style.display = "none");
17
+ if (!changePositionOnly) {
18
+ if (!reserve) {
19
+ el.style.width = "auto", el.style.height = "auto", el.style.minHeight = "auto",
20
+ el.style.padding = "0px";
21
+ for (let i = 0; i < el.children.length; i++) {
22
+ const childNode = el.children[i];
23
+ childNode.className !== REACT_TOOLTIP_ClASS_NAME && "none" !== childNode.style.display && (childNode.style.display = "none");
24
+ }
26
25
  }
26
+ setTooltipNode(createPortal(React.createElement("div", {
27
+ className: REACT_TOOLTIP_ClASS_NAME
28
+ }, render(el, actualTooltip, params)), el));
27
29
  }
28
- let container = el.querySelector(`.${REACT_TOOLTIP_ClASS_NAME}`);
29
- container || (container = document.createElement("div"), container.className = REACT_TOOLTIP_ClASS_NAME,
30
- el.appendChild(container));
31
- const element = render(el, actualTooltip, params), finalElement = React.isValidElement(element) ? element : React.createElement(React.Fragment, null, element);
32
- if (createRoot) if (container.reactRoot) container.reactRoot.render(finalElement); else {
33
- const root = createRoot(container);
34
- container.reactRoot = root, root.render(finalElement);
35
- } else reactRender(finalElement, container);
36
30
  }
37
31
  });
38
32
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AAGlD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAqB,EAAE,IAAmB,EAAE,EAAE;IAC9E,IAAI,MAAqB,CAAC;IAC1B,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,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAgB,CAAC;QACrB,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;gBAED,IAAI,SAAS,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,wBAAwB,EAAE,CAAC,CAAC;gBACjE,IAAI,CAAC,SAAS,EAAE;oBAEd,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC1C,SAAS,CAAC,SAAS,GAAG,wBAAwB,CAAC;oBAC/C,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;iBAC3B;gBACD,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;gBAClD,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,KAAK,CAAC,QAAQ,QAAE,OAAO,CAAkB,CAAC;gBAE1G,IAAI,UAAU,EAAE;oBACd,IAAK,SAAiB,CAAC,SAAS,EAAE;wBAC/B,SAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;qBACnD;yBAAM;wBACL,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;wBAClC,SAAiB,CAAC,SAAS,GAAG,IAAI,CAAC;wBACpC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;qBAC3B;iBACF;qBAAM;oBAEL,WAAW,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;iBACtC;YACH,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 type { TooltipProps, TooltipRender } from './interface';\nimport type { ITooltipSpec } from '@visactor/vchart';\nimport { REACT_TOOLTIP_ClASS_NAME } from './constant';\nimport { createRoot } from 'react-dom/client';\nimport { render as reactRender } from 'react-dom';\n\n/** tooltip 自定义插槽 */\nexport const initCustomTooltip = (props: BaseChartProps, spec?: TooltipProps) => {\n let render: TooltipRender;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean;\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\n let container = el.querySelector(`.${REACT_TOOLTIP_ClASS_NAME}`);\n if (!container) {\n // eslint-disable-next-line no-undef\n container = document.createElement('div');\n container.className = REACT_TOOLTIP_ClASS_NAME;\n el.appendChild(container);\n }\n const element = render(el, actualTooltip, params);\n const finalElement = React.isValidElement(element) ? element : <React.Fragment>{element}</React.Fragment>;\n\n if (createRoot) {\n if ((container as any).reactRoot) {\n (container as any).reactRoot.render(finalElement);\n } else {\n const root = createRoot(container);\n (container as any).reactRoot = root;\n root.render(finalElement);\n }\n } else {\n // react 17 以及以下\n reactRender(finalElement, container);\n }\n }\n } as ITooltipSpec;\n }\n\n return spec as ITooltipSpec;\n};\n"]}
1
+ {"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,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,MAAqB,CAAC;IAC1B,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,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAgB,CAAC;QACrB,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;gBAED,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":["// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport React from 'react';\nimport type { BaseChartProps } from '../../charts/BaseChart';\nimport type { TooltipProps, TooltipRender } from './interface';\nimport type { 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;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean;\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\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"]}
@@ -4,5 +4,6 @@ export interface ContainerProps {
4
4
  className?: string;
5
5
  width?: number | string;
6
6
  height?: number | string;
7
+ id?: string;
7
8
  }
8
9
  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>>;
@@ -12,16 +12,17 @@ import React, { useRef, useState, useLayoutEffect } from "react";
12
12
 
13
13
  export default function withContainer(Comp, name = "ChartContainer", getProps) {
14
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" ]);
15
+ const container = useRef(), [inited, setInited] = useState(!1), {className: className, style: style, width: width, height: height, id: id} = props, options = __rest(props, [ "className", "style", "width", "height", "id" ]);
16
16
  return useLayoutEffect((() => {
17
17
  setInited(!0);
18
18
  }), []), React.createElement("div", {
19
19
  ref: container,
20
+ id: id,
20
21
  className: className,
21
22
  style: Object.assign({
22
23
  position: "relative",
23
- height: props.height || "100%",
24
- width: props.width || "100%"
24
+ height: height || "100%",
25
+ width: width || "100%"
25
26
  }, style)
26
27
  }, inited ? React.createElement(Comp, Object.assign({
27
28
  ref: ref,
@@ -1 +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"]}
1
+ {"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAUjE,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,EAAE,MAAM,EAAE,EAAE,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA3D,+CAAmD,CAAQ,CAAC;QAElE,eAAe,CAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,MAAM,IAAI,MAAM,EACxB,KAAK,EAAE,KAAK,IAAI,MAAM,IACnB,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 id?: 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, height, id, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n id={id}\n className={className}\n style={{\n position: 'relative',\n height: height || '100%',\n width: 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"]}
package/esm/index.d.ts CHANGED
@@ -5,5 +5,5 @@ export * from './VChart';
5
5
  export * from './VChartSimple';
6
6
  export * from './register';
7
7
  export { VChart as VChartCore } from '@visactor/vchart';
8
- export declare const version = "1.13.11-alpha.1";
8
+ export declare const version = "1.13.11";
9
9
  export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
package/esm/index.js CHANGED
@@ -12,5 +12,5 @@ export * from "./register";
12
12
 
13
13
  export { VChart as VChartCore } from "@visactor/vchart";
14
14
 
15
- export const version = "1.13.11-alpha.1";
15
+ export const version = "1.13.11";
16
16
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport * from './register';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"1.13.11-alpha.1\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport * from './register';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"1.13.11\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/react-vchart",
3
- "version": "1.13.11-alpha.1",
3
+ "version": "1.13.11",
4
4
  "sideEffects": false,
5
5
  "description": "The react version of VChart 4.x",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@visactor/vchart": "1.13.11-alpha.1",
26
+ "@visactor/vchart": "1.13.11",
27
27
  "@visactor/vutils": "~0.19.5",
28
28
  "@visactor/vrender-core": "0.22.10",
29
29
  "@visactor/vrender-kits": "0.22.10",
@@ -55,8 +55,8 @@
55
55
  "@vitejs/plugin-react": "3.1.0",
56
56
  "vite": "3.2.6",
57
57
  "@internal/bundler": "0.0.1",
58
- "@internal/ts-config": "0.0.1",
59
- "@internal/eslint-config": "0.0.1"
58
+ "@internal/eslint-config": "0.0.1",
59
+ "@internal/ts-config": "0.0.1"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": ">=16.0.0",