@visactor/react-vchart 2.0.0-alpha.0 → 2.0.0-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 (182) hide show
  1. package/README.md +18 -26
  2. package/cjs/VChart.d.ts +1 -1
  3. package/cjs/VChartSimple.d.ts +1 -1
  4. package/cjs/charts/AreaChart.d.ts +1 -1
  5. package/cjs/charts/Bar3dChart.d.ts +2 -2
  6. package/cjs/charts/Bar3dChart.js +2 -2
  7. package/cjs/charts/Bar3dChart.js.map +1 -1
  8. package/cjs/charts/BarChart.d.ts +1 -1
  9. package/cjs/charts/BaseChart.d.ts +1 -2
  10. package/cjs/charts/BaseChart.js +16 -17
  11. package/cjs/charts/BaseChart.js.map +1 -1
  12. package/cjs/charts/BoxPlotChart.d.ts +1 -1
  13. package/cjs/charts/CirclePackingChart.d.ts +1 -1
  14. package/cjs/charts/CircularProgressChart.d.ts +1 -1
  15. package/cjs/charts/CommonChart.d.ts +1 -1
  16. package/cjs/charts/CorrelationChart.d.ts +1 -1
  17. package/cjs/charts/Funnel3dChart.d.ts +2 -2
  18. package/cjs/charts/Funnel3dChart.js +2 -2
  19. package/cjs/charts/Funnel3dChart.js.map +1 -1
  20. package/cjs/charts/FunnelChart.d.ts +1 -1
  21. package/cjs/charts/GaugeChart.d.ts +1 -1
  22. package/cjs/charts/HeatmapChart.d.ts +1 -1
  23. package/cjs/charts/Histogram3dChart.d.ts +2 -2
  24. package/cjs/charts/Histogram3dChart.js +2 -2
  25. package/cjs/charts/Histogram3dChart.js.map +1 -1
  26. package/cjs/charts/HistogramChart.d.ts +1 -1
  27. package/cjs/charts/LineChart.d.ts +1 -1
  28. package/cjs/charts/LinearProgressChart.d.ts +1 -1
  29. package/cjs/charts/LiquidChart.d.ts +1 -1
  30. package/cjs/charts/MapChart.d.ts +1 -1
  31. package/cjs/charts/MosaicChart.d.ts +1 -1
  32. package/cjs/charts/PictogramChart.d.ts +1 -1
  33. package/cjs/charts/Pie3dChart.d.ts +2 -2
  34. package/cjs/charts/Pie3dChart.js +2 -2
  35. package/cjs/charts/Pie3dChart.js.map +1 -1
  36. package/cjs/charts/PieChart.d.ts +1 -1
  37. package/cjs/charts/RadarChart.d.ts +1 -1
  38. package/cjs/charts/RangeAreaChart.d.ts +1 -1
  39. package/cjs/charts/RangeColumn3dChart.d.ts +2 -2
  40. package/cjs/charts/RangeColumn3dChart.js +2 -2
  41. package/cjs/charts/RangeColumn3dChart.js.map +1 -1
  42. package/cjs/charts/RangeColumnChart.d.ts +1 -1
  43. package/cjs/charts/RoseChart.d.ts +1 -1
  44. package/cjs/charts/SankeyChart.d.ts +1 -1
  45. package/cjs/charts/ScatterChart.d.ts +1 -1
  46. package/cjs/charts/SequenceChart.d.ts +1 -1
  47. package/cjs/charts/SunburstChart.d.ts +1 -1
  48. package/cjs/charts/TreemapChart.d.ts +1 -1
  49. package/cjs/charts/TreemapChart.js +2 -2
  50. package/cjs/charts/TreemapChart.js.map +1 -1
  51. package/cjs/charts/VennChart.d.ts +1 -1
  52. package/cjs/charts/WaterfallChart.d.ts +1 -1
  53. package/cjs/charts/WordCloud3dChart.d.ts +2 -2
  54. package/cjs/charts/WordCloud3dChart.js +2 -2
  55. package/cjs/charts/WordCloud3dChart.js.map +1 -1
  56. package/cjs/charts/WordCloudChart.d.ts +1 -1
  57. package/cjs/charts/index.d.ts +1 -0
  58. package/cjs/charts/index.js +2 -1
  59. package/cjs/charts/index.js.map +1 -1
  60. package/cjs/components/BaseComponent.js +1 -1
  61. package/cjs/components/BaseComponent.js.map +1 -1
  62. package/cjs/containers/withContainer.d.ts +1 -1
  63. package/cjs/containers/withContainer.js +1 -1
  64. package/cjs/containers/withContainer.js.map +1 -1
  65. package/cjs/context/chart.d.ts +3 -1
  66. package/cjs/context/chart.js +5 -4
  67. package/cjs/context/chart.js.map +1 -1
  68. package/cjs/context/stage.d.ts +5 -1
  69. package/cjs/context/stage.js +17 -6
  70. package/cjs/context/stage.js.map +1 -1
  71. package/cjs/index.d.ts +3 -2
  72. package/cjs/index.js +1 -1
  73. package/cjs/index.js.map +1 -1
  74. package/cjs/series/Bar3d.d.ts +2 -2
  75. package/cjs/series/Bar3d.js +2 -2
  76. package/cjs/series/Bar3d.js.map +1 -1
  77. package/cjs/series/Funnel3d.d.ts +2 -2
  78. package/cjs/series/Funnel3d.js +2 -2
  79. package/cjs/series/Funnel3d.js.map +1 -1
  80. package/cjs/series/Pie3d.d.ts +2 -2
  81. package/cjs/series/Pie3d.js +2 -2
  82. package/cjs/series/Pie3d.js.map +1 -1
  83. package/cjs/series/RangeColumn3d.d.ts +2 -2
  84. package/cjs/series/RangeColumn3d.js +2 -2
  85. package/cjs/series/RangeColumn3d.js.map +1 -1
  86. package/cjs/series/WordCloud3d.d.ts +2 -2
  87. package/cjs/series/WordCloud3d.js +2 -2
  88. package/cjs/series/WordCloud3d.js.map +1 -1
  89. package/esm/VChart.d.ts +1 -1
  90. package/esm/VChartSimple.d.ts +1 -1
  91. package/esm/charts/AreaChart.d.ts +1 -1
  92. package/esm/charts/Bar3dChart.d.ts +2 -2
  93. package/esm/charts/Bar3dChart.js +3 -1
  94. package/esm/charts/Bar3dChart.js.map +1 -1
  95. package/esm/charts/BarChart.d.ts +1 -1
  96. package/esm/charts/BaseChart.d.ts +1 -2
  97. package/esm/charts/BaseChart.js +14 -17
  98. package/esm/charts/BaseChart.js.map +1 -1
  99. package/esm/charts/BoxPlotChart.d.ts +1 -1
  100. package/esm/charts/CirclePackingChart.d.ts +1 -1
  101. package/esm/charts/CircularProgressChart.d.ts +1 -1
  102. package/esm/charts/CommonChart.d.ts +1 -1
  103. package/esm/charts/CorrelationChart.d.ts +1 -1
  104. package/esm/charts/Funnel3dChart.d.ts +2 -2
  105. package/esm/charts/Funnel3dChart.js +3 -1
  106. package/esm/charts/Funnel3dChart.js.map +1 -1
  107. package/esm/charts/FunnelChart.d.ts +1 -1
  108. package/esm/charts/GaugeChart.d.ts +1 -1
  109. package/esm/charts/HeatmapChart.d.ts +1 -1
  110. package/esm/charts/Histogram3dChart.d.ts +2 -2
  111. package/esm/charts/Histogram3dChart.js +3 -1
  112. package/esm/charts/Histogram3dChart.js.map +1 -1
  113. package/esm/charts/HistogramChart.d.ts +1 -1
  114. package/esm/charts/LineChart.d.ts +1 -1
  115. package/esm/charts/LinearProgressChart.d.ts +1 -1
  116. package/esm/charts/LiquidChart.d.ts +1 -1
  117. package/esm/charts/MapChart.d.ts +1 -1
  118. package/esm/charts/MosaicChart.d.ts +1 -1
  119. package/esm/charts/PictogramChart.d.ts +1 -1
  120. package/esm/charts/Pie3dChart.d.ts +2 -2
  121. package/esm/charts/Pie3dChart.js +3 -1
  122. package/esm/charts/Pie3dChart.js.map +1 -1
  123. package/esm/charts/PieChart.d.ts +1 -1
  124. package/esm/charts/RadarChart.d.ts +1 -1
  125. package/esm/charts/RangeAreaChart.d.ts +1 -1
  126. package/esm/charts/RangeColumn3dChart.d.ts +2 -2
  127. package/esm/charts/RangeColumn3dChart.js +3 -1
  128. package/esm/charts/RangeColumn3dChart.js.map +1 -1
  129. package/esm/charts/RangeColumnChart.d.ts +1 -1
  130. package/esm/charts/RoseChart.d.ts +1 -1
  131. package/esm/charts/SankeyChart.d.ts +1 -1
  132. package/esm/charts/ScatterChart.d.ts +1 -1
  133. package/esm/charts/SequenceChart.d.ts +1 -1
  134. package/esm/charts/SunburstChart.d.ts +1 -1
  135. package/esm/charts/TreemapChart.d.ts +1 -1
  136. package/esm/charts/TreemapChart.js +1 -3
  137. package/esm/charts/TreemapChart.js.map +1 -1
  138. package/esm/charts/VennChart.d.ts +1 -1
  139. package/esm/charts/WaterfallChart.d.ts +1 -1
  140. package/esm/charts/WordCloud3dChart.d.ts +2 -2
  141. package/esm/charts/WordCloud3dChart.js +3 -1
  142. package/esm/charts/WordCloud3dChart.js.map +1 -1
  143. package/esm/charts/WordCloudChart.d.ts +1 -1
  144. package/esm/charts/index.d.ts +1 -0
  145. package/esm/charts/index.js +2 -0
  146. package/esm/charts/index.js.map +1 -1
  147. package/esm/components/BaseComponent.js +1 -1
  148. package/esm/components/BaseComponent.js.map +1 -1
  149. package/esm/containers/withContainer.d.ts +1 -1
  150. package/esm/containers/withContainer.js +1 -1
  151. package/esm/containers/withContainer.js.map +1 -1
  152. package/esm/context/chart.d.ts +3 -1
  153. package/esm/context/chart.js +5 -4
  154. package/esm/context/chart.js.map +1 -1
  155. package/esm/context/stage.d.ts +5 -1
  156. package/esm/context/stage.js +18 -5
  157. package/esm/context/stage.js.map +1 -1
  158. package/esm/index.d.ts +3 -2
  159. package/esm/index.js +1 -1
  160. package/esm/index.js.map +1 -1
  161. package/esm/series/Bar3d.d.ts +2 -2
  162. package/esm/series/Bar3d.js +1 -1
  163. package/esm/series/Bar3d.js.map +1 -1
  164. package/esm/series/Funnel3d.d.ts +2 -2
  165. package/esm/series/Funnel3d.js +1 -1
  166. package/esm/series/Funnel3d.js.map +1 -1
  167. package/esm/series/Pie3d.d.ts +2 -2
  168. package/esm/series/Pie3d.js +1 -1
  169. package/esm/series/Pie3d.js.map +1 -1
  170. package/esm/series/RangeColumn3d.d.ts +2 -2
  171. package/esm/series/RangeColumn3d.js +1 -1
  172. package/esm/series/RangeColumn3d.js.map +1 -1
  173. package/esm/series/WordCloud3d.d.ts +2 -2
  174. package/esm/series/WordCloud3d.js +1 -1
  175. package/esm/series/WordCloud3d.js.map +1 -1
  176. package/package.json +8 -8
  177. package/cjs/context/view.d.ts +0 -5
  178. package/cjs/context/view.js +0 -24
  179. package/cjs/context/view.js.map +0 -1
  180. package/esm/context/view.d.ts +0 -5
  181. package/esm/context/view.js +0 -16
  182. package/esm/context/view.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RangeColumn3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAqF;AACrF,qDAAkD;AAElD,2CAA0C;AAM7B,QAAA,kBAAkB,GAAG,IAAA,uBAAW,EAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,mCAA0B,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CAC1D,CAAC","file":"RangeColumn3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IRangeColumn3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRangeColumn3dChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface RangeColumn3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRangeColumn3dChartSpec>, 'type'> {}\n\nexport const RangeColumn3dChart = createChart<\n React.PropsWithChildren<RangeColumn3dChartProps> & { type?: 'rangeColumn3d' }\n>(\n 'RangeColumn3dChart',\n {\n type: 'rangeColumn3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRangeColumn3dChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RangeColumn3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AACzD,qDAAkD;AAElD,2CAA0C;AAC1C,iEAAwE;AAO3D,QAAA,kBAAkB,GAAG,IAAA,uBAAW,EAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,6CAA0B,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CAC1D,CAAC","file":"RangeColumn3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registerRangeColumn3dChart } from '@visactor/vchart-extension';\nimport type { IRangeColumn3dChartSpec } from '@visactor/vchart-extension';\n\nexport interface RangeColumn3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IRangeColumn3dChartSpec>, 'type'> {}\n\nexport const RangeColumn3dChart = createChart<\n React.PropsWithChildren<RangeColumn3dChartProps> & { type?: 'rangeColumn3d' }\n>(\n 'RangeColumn3dChart',\n {\n type: 'rangeColumn3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRangeColumn3dChart, registerLabel, ...registers]\n);\n"]}
@@ -7,4 +7,4 @@ export declare const RangeColumnChart: React.ForwardRefExoticComponent<RangeColu
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'rangeColumn';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const RoseChart: React.ForwardRefExoticComponent<RoseChartProps &
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'rose';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const SankeyChart: React.ForwardRefExoticComponent<SankeyChartPro
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'sankey';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const ScatterChart: React.ForwardRefExoticComponent<ScatterChartP
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'scatter';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const SequenceChart: React.ForwardRefExoticComponent<SequenceChar
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'sequence';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const SunburstChart: React.ForwardRefExoticComponent<SunburstChar
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'sunburst';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const TreemapChart: React.ForwardRefExoticComponent<TreemapChartP
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'treemap';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.TreemapChart = void 0;
6
6
 
7
- const vchart_1 = require("@visactor/vchart"), simple_1 = require("./registers/simple"), BaseChart_1 = require("./BaseChart"), vgrammar_core_1 = require("@visactor/vgrammar-core");
7
+ const vchart_1 = require("@visactor/vchart"), simple_1 = require("./registers/simple"), BaseChart_1 = require("./BaseChart");
8
8
 
9
9
  exports.TreemapChart = (0, BaseChart_1.createChart)("TreemapChart", {
10
10
  type: "treemap",
11
11
  vchartConstrouctor: vchart_1.VChart
12
- }, [ vchart_1.registerTreemapChart, vgrammar_core_1.registerLabel, ...simple_1.registers ]);
12
+ }, [ vchart_1.registerTreemapChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=TreemapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/TreemapChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAgE;AAChE,+CAA+C;AAE/C,2CAA0C;AAC1C,2DAAwD;AAM3C,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,6BAAoB,EAAE,6BAAa,EAAE,GAAG,kBAAS,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,6CAA+E;AAC/E,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,6BAAoB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACpD,CAAC","file":"TreemapChart.js","sourcesContent":["import type React from 'react';\nimport type { ITreemapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerTreemapChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\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"]}
@@ -7,4 +7,4 @@ export declare const VennChart: React.ForwardRefExoticComponent<VennChartProps &
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type: 'venn';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const WaterfallChart: React.ForwardRefExoticComponent<WaterfallCh
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'waterfall';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
- import type { IWordCloud3dChartSpec } from '@visactor/vchart';
3
2
  import type { BaseChartProps } from './BaseChart';
3
+ import type { IWordCloud3dChartSpec } from '@visactor/vchart-extension';
4
4
  export interface WordCloud3dChartProps extends Omit<BaseChartProps, 'container' | 'type' | 'data'>, Omit<Partial<IWordCloud3dChartSpec>, 'type'> {
5
5
  }
6
6
  export declare const WordCloud3dChart: React.ForwardRefExoticComponent<WordCloud3dChartProps & {
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'wordCloud3d';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.WordCloud3dChart = void 0;
6
6
 
7
- const vchart_1 = require("@visactor/vchart"), simple_1 = require("./registers/simple"), BaseChart_1 = require("./BaseChart");
7
+ const vchart_1 = require("@visactor/vchart"), simple_1 = require("./registers/simple"), BaseChart_1 = require("./BaseChart"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
9
  exports.WordCloud3dChart = (0, BaseChart_1.createChart)("WordCloud3dChart", {
10
10
  type: "wordCloud3d",
11
11
  vchartConstrouctor: vchart_1.VChart
12
- }, [ vchart_1.registerWordCloud3dChart, ...simple_1.registers ]);
12
+ }, [ vchart_extension_1.registerWordCloud3dChart, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=WordCloud3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/WordCloud3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAoE;AACpE,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,iCAAwB,EAAE,GAAG,kBAAS,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,6CAA0C;AAC1C,+CAA+C;AAE/C,2CAA0C;AAC1C,iEAAsE;AAOzD,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,2CAAwB,EAAE,GAAG,kBAAS,CAAC,CACzC,CAAC","file":"WordCloud3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registerWordCloud3dChart } from '@visactor/vchart-extension';\nimport type { IWordCloud3dChartSpec } from '@visactor/vchart-extension';\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"]}
@@ -7,4 +7,4 @@ export declare const WordCloudChart: React.ForwardRefExoticComponent<WordCloudCh
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'wordCloud';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -34,5 +34,6 @@ export * from './WordCloudChart';
34
34
  export * from './WordCloud3dChart';
35
35
  export * from './WordCloudChart';
36
36
  export * from './VennChart';
37
+ export * from './WaterfallChart';
37
38
  export type { ChartOptions } from './BaseChart';
38
39
  export type { IData, IChartSpec } from '@visactor/vchart';
@@ -34,5 +34,6 @@ __exportStar(require("./RoseChart"), exports), __exportStar(require("./SankeyCha
34
34
  __exportStar(require("./ScatterChart"), exports), __exportStar(require("./SequenceChart"), exports),
35
35
  __exportStar(require("./SunburstChart"), exports), __exportStar(require("./TreemapChart"), exports),
36
36
  __exportStar(require("./WordCloudChart"), exports), __exportStar(require("./WordCloud3dChart"), exports),
37
- __exportStar(require("./WordCloudChart"), exports), __exportStar(require("./VennChart"), exports);
37
+ __exportStar(require("./WordCloudChart"), exports), __exportStar(require("./VennChart"), exports),
38
+ __exportStar(require("./WaterfallChart"), exports);
38
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,iDAA+B;AAE/B,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,qDAAmC;AAEnC,gDAA8B;AAC9B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,qDAAmC;AACnC,mDAAiC;AAEjC,wDAAsC;AACtC,8CAA4B;AAC5B,gDAA8B;AAE9B,6CAA2B;AAC3B,gDAA8B;AAC9B,mDAAiC;AAEjC,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAE5B,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAEhC,iDAA+B;AAC/B,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,8CAA4B","file":"index.js","sourcesContent":["export * from './AreaChart';\nexport * from './BarChart';\nexport * from './Bar3dChart';\nexport * from './BoxPlotChart';\n\nexport * from './CirclePackingChart';\nexport * from './CircularProgressChart';\nexport * from './CommonChart';\nexport * from './CorrelationChart';\n\nexport * from './FunnelChart';\nexport * from './Funnel3dChart';\nexport * from './GaugeChart';\nexport * from './HeatmapChart';\nexport * from './Histogram3dChart';\nexport * from './HistogramChart';\n\nexport * from './LinearProgressChart';\nexport * from './LineChart';\nexport * from './LiquidChart';\n\nexport * from './MapChart';\nexport * from './MosaicChart';\nexport * from './PictogramChart';\n\nexport * from './PieChart';\nexport * from './Pie3dChart';\nexport * from './RadarChart';\nexport * from './RangeAreaChart';\nexport * from './RangeColumnChart';\nexport * from './RangeColumn3dChart';\nexport * from './RoseChart';\n\nexport * from './SankeyChart';\nexport * from './ScatterChart';\nexport * from './SequenceChart';\nexport * from './SunburstChart';\n\nexport * from './TreemapChart';\nexport * from './WordCloudChart';\nexport * from './WordCloud3dChart';\nexport * from './WordCloudChart';\nexport * from './VennChart';\n\nexport type { ChartOptions } from './BaseChart';\nexport type { IData, IChartSpec } from '@visactor/vchart';\n"]}
1
+ {"version":3,"sources":["../src/charts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,iDAA+B;AAE/B,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,qDAAmC;AAEnC,gDAA8B;AAC9B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,qDAAmC;AACnC,mDAAiC;AAEjC,wDAAsC;AACtC,8CAA4B;AAC5B,gDAA8B;AAE9B,6CAA2B;AAC3B,gDAA8B;AAC9B,mDAAiC;AAEjC,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAE5B,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAEhC,iDAA+B;AAC/B,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,8CAA4B;AAC5B,mDAAiC","file":"index.js","sourcesContent":["export * from './AreaChart';\nexport * from './BarChart';\nexport * from './Bar3dChart';\nexport * from './BoxPlotChart';\n\nexport * from './CirclePackingChart';\nexport * from './CircularProgressChart';\nexport * from './CommonChart';\nexport * from './CorrelationChart';\n\nexport * from './FunnelChart';\nexport * from './Funnel3dChart';\nexport * from './GaugeChart';\nexport * from './HeatmapChart';\nexport * from './Histogram3dChart';\nexport * from './HistogramChart';\n\nexport * from './LinearProgressChart';\nexport * from './LineChart';\nexport * from './LiquidChart';\n\nexport * from './MapChart';\nexport * from './MosaicChart';\nexport * from './PictogramChart';\n\nexport * from './PieChart';\nexport * from './Pie3dChart';\nexport * from './RadarChart';\nexport * from './RangeAreaChart';\nexport * from './RangeColumnChart';\nexport * from './RangeColumn3dChart';\nexport * from './RoseChart';\n\nexport * from './SankeyChart';\nexport * from './ScatterChart';\nexport * from './SequenceChart';\nexport * from './SunburstChart';\n\nexport * from './TreemapChart';\nexport * from './WordCloudChart';\nexport * from './WordCloud3dChart';\nexport * from './WordCloudChart';\nexport * from './VennChart';\nexport * from './WaterfallChart';\n\nexport type { ChartOptions } from './BaseChart';\nexport type { IData, IChartSpec } from '@visactor/vchart';\n"]}
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", {
35
35
 
36
36
  const react_1 = __importStar(require("react")), vutils_1 = require("@visactor/vutils"), chart_1 = __importDefault(require("../context/chart")), eventsUtils_1 = require("../eventsUtils"), vchart_1 = require("@visactor/vchart"), createComponent = (componentName, specName, supportedEvents, isSingle, registers) => {
37
37
  registers && registers.length && vchart_1.VChart.useRegisters(registers);
38
- const ignoreKeys = [ "updateId", "componentId" ], notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys, Comp = props => {
38
+ const ignoreKeys = [ "updateId", "componentId", "children" ], notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys, Comp = props => {
39
39
  const context = (0, react_1.useContext)(chart_1.default), eventsBinded = react_1.default.useRef(null), updateId = react_1.default.useRef(props.updateId);
40
40
  if (props.updateId !== updateId.current) {
41
41
  updateId.current = props.updateId;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/BaseComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AACrD,6CAA+C;AAE/C,6DAAgD;AAChD,gDAAmD;AACnD,6CAA0C;AAQnC,MAAM,eAAe,GAAG,CAC7B,aAAqB,EACrB,QAAgB,EAChB,eAA+C,EAC/C,QAAkB,EAClB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACjC,eAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KAChC;IAED,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAEnG,MAAM,IAAI,GAAgB,CAAC,KAAQ,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,eAAgB,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,eAAK,CAAC,MAAM,CAAI,IAAI,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAS,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,EAAE;YAEvC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC;YAGlC,MAAM,mBAAmB,GAAG,eAAe;gBACzC,CAAC,CAAC,IAAA,+BAAiB,EAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC;gBAChF,CAAC,CAAC,KAAK,CAAC;YACV,IAAI,mBAAmB,EAAE;gBACvB,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;aAC9B;SACF;QAED,IAAA,iBAAS,EAAC,GAAG,EAAE;YACb,OAAO,GAAG,EAAE;gBACV,IAAI,eAAe,EAAE;oBACnB,IAAA,+BAAiB,EAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;iBAC/E;YACH,CAAC,CAAC;QACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,IAAY,CAAC,SAAS,GAAG,CAAC,KAAsD,EAAE,EAAE;QACnF,MAAM,gBAAgB,GAAe,IAAA,oBAAW,EAAI,KAAK,EAAE,WAAW,CAAC,CAAC;QAExE,OAAO;YACL,IAAI,EAAE,gBAAgB;YACtB,QAAQ;YACR,QAAQ;SACT,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAtDW,QAAA,eAAe,mBAsD1B","file":"BaseComponent.js","sourcesContent":["import React, { useContext, useEffect } from 'react';\nimport { pickWithout } from '@visactor/vutils';\n\nimport RootChartContext from '../context/chart';\nimport { bindEventsToChart } from '../eventsUtils';\nimport { VChart } from '@visactor/vchart';\n\nexport interface BaseComponentProps {\n id?: string | number;\n}\n\ntype ComponentProps = BaseComponentProps & { updateId?: number; componentId?: number };\n\nexport const createComponent = <T extends ComponentProps>(\n componentName: string,\n specName: string,\n supportedEvents?: Record<string, string> | null,\n isSingle?: boolean,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length) {\n VChart.useRegisters(registers);\n }\n\n const ignoreKeys = ['updateId', 'componentId'];\n const notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys;\n\n const Comp: React.FC<T> = (props: T) => {\n const context = useContext(RootChartContext);\n const eventsBinded = React.useRef<T>(null);\n const updateId = React.useRef<number>(props.updateId);\n if (props.updateId !== updateId.current) {\n // update triggered by chart when chart is rendered\n updateId.current = props.updateId;\n\n // rebind events after chart render\n const hasPrevEventsBinded = supportedEvents\n ? bindEventsToChart(context.chart, props, eventsBinded.current, supportedEvents)\n : false;\n if (hasPrevEventsBinded) {\n eventsBinded.current = props;\n }\n }\n\n useEffect(() => {\n return () => {\n if (supportedEvents) {\n bindEventsToChart(context.chart, null, eventsBinded.current, supportedEvents);\n }\n };\n }, []);\n\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (props: T & { updateId?: number; componentId?: string }) => {\n const newComponentSpec: Partial<T> = pickWithout<T>(props, notSpecKeys);\n\n return {\n spec: newComponentSpec,\n specName,\n isSingle\n };\n };\n\n return Comp;\n};\n"]}
1
+ {"version":3,"sources":["../src/components/BaseComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AACrD,6CAA+C;AAE/C,6DAAgD;AAChD,gDAAmD;AACnD,6CAA0C;AAQnC,MAAM,eAAe,GAAG,CAC7B,aAAqB,EACrB,QAAgB,EAChB,eAA+C,EAC/C,QAAkB,EAClB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACjC,eAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KAChC;IAGD,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IAC3D,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAEnG,MAAM,IAAI,GAAgB,CAAC,KAAQ,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,eAAgB,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,eAAK,CAAC,MAAM,CAAI,IAAI,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAS,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,EAAE;YAEvC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC;YAGlC,MAAM,mBAAmB,GAAG,eAAe;gBACzC,CAAC,CAAC,IAAA,+BAAiB,EAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC;gBAChF,CAAC,CAAC,KAAK,CAAC;YACV,IAAI,mBAAmB,EAAE;gBACvB,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;aAC9B;SACF;QAED,IAAA,iBAAS,EAAC,GAAG,EAAE;YACb,OAAO,GAAG,EAAE;gBACV,IAAI,eAAe,EAAE;oBACnB,IAAA,+BAAiB,EAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;iBAC/E;YACH,CAAC,CAAC;QACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,IAAY,CAAC,SAAS,GAAG,CAAC,KAAsD,EAAE,EAAE;QACnF,MAAM,gBAAgB,GAAe,IAAA,oBAAW,EAAI,KAAK,EAAE,WAAW,CAAC,CAAC;QAExE,OAAO;YACL,IAAI,EAAE,gBAAgB;YACtB,QAAQ;YACR,QAAQ;SACT,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAvDW,QAAA,eAAe,mBAuD1B","file":"BaseComponent.js","sourcesContent":["import React, { useContext, useEffect } from 'react';\nimport { pickWithout } from '@visactor/vutils';\n\nimport RootChartContext from '../context/chart';\nimport { bindEventsToChart } from '../eventsUtils';\nimport { VChart } from '@visactor/vchart';\n\nexport interface BaseComponentProps {\n id?: string | number;\n}\n\ntype ComponentProps = BaseComponentProps & { updateId?: number; componentId?: number };\n\nexport const createComponent = <T extends ComponentProps>(\n componentName: string,\n specName: string,\n supportedEvents?: Record<string, string> | null,\n isSingle?: boolean,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length) {\n VChart.useRegisters(registers);\n }\n\n // tooltip component 不支持 children,其他组件暂时也都不支持\n const ignoreKeys = ['updateId', 'componentId', 'children'];\n const notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys;\n\n const Comp: React.FC<T> = (props: T) => {\n const context = useContext(RootChartContext);\n const eventsBinded = React.useRef<T>(null);\n const updateId = React.useRef<number>(props.updateId);\n if (props.updateId !== updateId.current) {\n // update triggered by chart when chart is rendered\n updateId.current = props.updateId;\n\n // rebind events after chart render\n const hasPrevEventsBinded = supportedEvents\n ? bindEventsToChart(context.chart, props, eventsBinded.current, supportedEvents)\n : false;\n if (hasPrevEventsBinded) {\n eventsBinded.current = props;\n }\n }\n\n useEffect(() => {\n return () => {\n if (supportedEvents) {\n bindEventsToChart(context.chart, null, eventsBinded.current, supportedEvents);\n }\n };\n }, []);\n\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (props: T & { updateId?: number; componentId?: string }) => {\n const newComponentSpec: Partial<T> = pickWithout<T>(props, notSpecKeys);\n\n return {\n spec: newComponentSpec,\n specName,\n isSingle\n };\n };\n\n return Comp;\n};\n"]}
@@ -5,4 +5,4 @@ export interface ContainerProps {
5
5
  width?: number | string;
6
6
  height?: number | string;
7
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>>;
8
+ export default function withContainer<P extends ContainerProps>(Comp: React.ComponentType<any>, name?: string, getProps?: (props: any) => any): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
@@ -41,7 +41,7 @@ const react_1 = __importStar(require("react"));
41
41
 
42
42
  function withContainer(Comp, name = "ChartContainer", getProps) {
43
43
  const Cls = react_1.default.forwardRef(((props, ref) => {
44
- const container = (0, react_1.useRef)(), [inited, setInited] = (0, react_1.useState)(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
44
+ const container = (0, react_1.useRef)(null), [inited, setInited] = (0, react_1.useState)(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
45
45
  return (0, react_1.useLayoutEffect)((() => {
46
46
  setInited(!0);
47
47
  }), []), react_1.default.createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiE;AASjE,SAAwB,aAAa,CACnC,IAAS,EACT,IAAI,GAAG,gBAAgB,EACvB,QAAoC;IAEpC,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAyB,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;QACrF,MAAM,SAAS,GAAG,IAAA,cAAM,GAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA/C,+BAAuC,CAAQ,CAAC;QAEtD,IAAA,uBAAe,EAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,uCACE,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,8BAAC,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,6DAAK,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;AAnCD,gCAmCC","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,+CAAiE;AASjE,SAAwB,aAAa,CACnC,IAA8B,EAC9B,IAAI,GAAG,gBAAgB,EACvB,QAA8B;IAE9B,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;QAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA/C,+BAAuC,CAAQ,CAAC;QAEtD,IAAA,uBAAe,EAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,uCACE,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,8BAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,IAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAI,CAC/F,CAAC,CAAC,CAAC,CACF,6DAAK,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;AAnCD,gCAmCC","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<P extends ContainerProps>(\n Comp: React.ComponentType<any>,\n name = 'ChartContainer',\n getProps?: (props: any) => any\n) {\n const Cls = React.forwardRef<any, P>((props, ref) => {\n const container = useRef<HTMLDivElement>(null);\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)} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
@@ -5,5 +5,7 @@ export interface ChartContextType {
5
5
  isChildrenUpdated?: boolean;
6
6
  }
7
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>>;
8
+ export declare function withChartInstance<T>(Component: React.ComponentType<T & {
9
+ chart?: IVChart;
10
+ }>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
9
11
  export default ChartContext;
@@ -13,11 +13,12 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const react_1 = __importDefault(require("react")), ChartContext = react_1.default.createContext(null);
14
14
 
15
15
  function withChartInstance(Component) {
16
- const Com = react_1.default.forwardRef(((props, ref) => react_1.default.createElement(ChartContext.Consumer, null, (ctx => react_1.default.createElement(Component, Object.assign({
17
- ref: ref,
16
+ const Com = react_1.default.forwardRef(((props, ref) => react_1.default.createElement(ChartContext.Consumer, null, (ctx => react_1.default.createElement(Component, Object.assign({}, props, {
18
17
  chart: ctx.chart
19
- }, props))))));
20
- return Com.displayName = Component.name, Com;
18
+ }, ref ? {
19
+ ref: ref
20
+ } : {}))))));
21
+ return Com.displayName = Component.displayName || Component.name, Com;
21
22
  }
22
23
 
23
24
  ChartContext.displayName = "ChartContext", exports.withChartInstance = withChartInstance,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/context/chart.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQ1B,MAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAmB,IAAI,CAAC,CAAC;AACjE,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,SAAgB,iBAAiB,CAAI,SAAiC;IACpE,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,CACL,8BAAC,YAAY,CAAC,QAAQ,QACnB,CAAC,GAAqB,EAAE,EAAE,CAAC,8BAAC,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;AAVD,8CAUC;AAED,kBAAe,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"]}
1
+ {"version":3,"sources":["../src/context/chart.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQ1B,MAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAmB,IAAI,CAAC,CAAC;AACjE,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,SAAgB,iBAAiB,CAAI,SAAuD;IAC1F,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAClD,OAAO,CACL,8BAAC,YAAY,CAAC,QAAQ,QACnB,CAAC,GAAqB,EAAE,EAAE,CAAC,CAG1B,8BAAC,SAAS,oBAAM,KAAW,IAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAI,CAC5E,CACqB,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,CAAC;IAC1D,OAAO,GAAG,CAAC;AACb,CAAC;AAdD,8CAcC;AAED,kBAAe,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: React.ComponentType<T & { chart?: IVChart }>) {\n const Com = React.forwardRef<any, T>((props, ref) => {\n return (\n <ChartContext.Consumer>\n {(ctx: ChartContextType) => (\n // Only pass ref if Component supports it (i.e., is a forwardRef component)\n // Otherwise, omit ref to avoid type errors\n <Component {...(props as T)} chart={ctx.chart} {...(ref ? { ref } : {})} />\n )}\n </ChartContext.Consumer>\n );\n });\n Com.displayName = Component.displayName || Component.name;\n return Com;\n}\n\nexport default ChartContext;\n"]}
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { IStage } from '@visactor/vrender-core';
3
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>>;
4
+ export declare function withStage<T>(Component: React.ComponentType<T & {
5
+ stage: IStage;
6
+ }>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T & {
7
+ stage?: IStage;
8
+ }> & React.RefAttributes<any>>;
5
9
  export default StageContext;
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var __importDefault = this && this.__importDefault || function(mod) {
3
+ var __rest = this && this.__rest || function(s, e) {
4
+ var t = {};
5
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
6
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
7
+ var i = 0;
8
+ 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]]);
9
+ }
10
+ return t;
11
+ }, __importDefault = this && this.__importDefault || function(mod) {
4
12
  return mod && mod.__esModule ? mod : {
5
13
  default: mod
6
14
  };
@@ -13,11 +21,14 @@ Object.defineProperty(exports, "__esModule", {
13
21
  const react_1 = __importDefault(require("react")), StageContext = react_1.default.createContext(null);
14
22
 
15
23
  function withStage(Component) {
16
- const Com = react_1.default.forwardRef(((props, ref) => react_1.default.createElement(StageContext.Consumer, null, (ctx => react_1.default.createElement(Component, Object.assign({
17
- ref: ref,
18
- stage: ctx
19
- }, props))))));
20
- return Com.displayName = Component.name, Com;
24
+ const Com = react_1.default.forwardRef(((props, ref) => react_1.default.createElement(StageContext.Consumer, null, (ctx => {
25
+ const _a = props, {stage: stage} = _a, restProps = __rest(_a, [ "stage" ]);
26
+ return react_1.default.createElement(Component, Object.assign({}, restProps, {
27
+ stage: ctx,
28
+ ref: ref
29
+ }));
30
+ }))));
31
+ return Com.displayName = Component.displayName || Component.name, Com;
21
32
  }
22
33
 
23
34
  StageContext.displayName = "StageContext", exports.withStage = withStage, exports.default = StageContext;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/context/stage.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,MAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAS,IAAI,CAAC,CAAC;AACvD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,SAAgB,SAAS,CAAI,SAAiC;IAC5D,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,8BAAC,YAAY,CAAC,QAAQ,QAAE,GAAG,CAAC,EAAE,CAAC,8BAAC,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;AAND,8BAMC;AAED,kBAAe,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"]}
1
+ {"version":3,"sources":["../src/context/stage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAG1B,MAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAS,IAAI,CAAC,CAAC;AACvD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,SAAgB,SAAS,CAAI,SAAqD;IAChF,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAA8B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACvE,OAAO,CACL,8BAAC,YAAY,CAAC,QAAQ,QACnB,GAAG,CAAC,EAAE;YAEL,MAAM,KAA0B,KAA2B,EAArD,EAAE,KAAK,OAA8C,EAAzC,SAAS,cAArB,SAAuB,CAA8B,CAAC;YAC5D,OAAO,8BAAC,SAAS,oBAAM,SAAe,IAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACnE,CAAC,CACqB,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,CAAC;IAC1D,OAAO,GAAG,CAAC;AACb,CAAC;AAdD,8BAcC;AAED,kBAAe,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: React.ComponentType<T & { stage: IStage }>) {\n const Com = React.forwardRef<any, T & { stage?: IStage }>((props, ref) => {\n return (\n <StageContext.Consumer>\n {ctx => {\n // Omit 'stage' from props to avoid prop type conflicts\n const { stage, ...restProps } = props as { stage?: IStage };\n return <Component {...(restProps as T)} stage={ctx} ref={ref} />;\n }}\n </StageContext.Consumer>\n );\n });\n Com.displayName = Component.displayName || Component.name;\n return Com;\n}\n\nexport default StageContext;\n"]}
package/cjs/index.d.ts CHANGED
@@ -4,5 +4,6 @@ export * from './components';
4
4
  export * from './VChart';
5
5
  export * from './VChartSimple';
6
6
  export { VChart as VChartCore } from '@visactor/vchart';
7
- export declare const version = "2.0.0-alpha.0";
8
- 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';
7
+ export declare const version = "2.0.0-alpha.1";
8
+ export type { IAreaChartSpec, IBarChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
9
+ export type { IBar3dChartSpec, IFunnel3dChartSpec, IHistogram3dChartSpec, IPie3dChartSpec, IRangeColumn3dChartSpec, IWordCloud3dChartSpec } from '@visactor/vchart-extension';
package/cjs/index.js CHANGED
@@ -28,5 +28,5 @@ Object.defineProperty(exports, "VChartCore", {
28
28
  get: function() {
29
29
  return vchart_1.VChart;
30
30
  }
31
- }), exports.version = "2.0.0-alpha.0";
31
+ }), exports.version = "2.0.0-alpha.1";
32
32
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAwD;AAA/C,oGAAA,MAAM,OAAc;AAGhB,QAAA,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"2.0.0-alpha.0\";\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,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAwD;AAA/C,oGAAA,MAAM,OAAc;AAGhB,QAAA,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"2.0.0-alpha.1\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n\nexport type {\n IBar3dChartSpec,\n IFunnel3dChartSpec,\n IHistogram3dChartSpec,\n IPie3dChartSpec,\n IRangeColumn3dChartSpec,\n IWordCloud3dChartSpec\n} from '@visactor/vchart-extension';\n"]}
@@ -1,5 +1,5 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IBar3dSeriesSpec } from '@visactor/vchart';
1
+ import type { BaseSeriesProps } from './BaseSeries';
2
+ import type { IBar3dSeriesSpec } from '@visactor/vchart-extension';
3
3
  export type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;
4
4
  export declare const Bar3d: import("react").FC<BaseSeriesProps & Omit<IBar3dSeriesSpec, "type"> & {
5
5
  updateId?: number;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Bar3d = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
- exports.Bar3d = (0, BaseSeries_1.createSeries)("Bar3d", [ "bar" ], "bar3d", [ vchart_1.registerBar3dSeries ]);
9
+ exports.Bar3d = (0, BaseSeries_1.createSeries)("Bar3d", [ "bar" ], "bar3d", [ vchart_extension_1.registerBar3dSeries ]);
10
10
  //# sourceMappingURL=Bar3d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Bar3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,4BAAmB,CAAC,CAAC,CAAC","file":"Bar3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IBar3dSeriesSpec } from '@visactor/vchart';\nimport { registerBar3dSeries } from '@visactor/vchart';\n\nexport type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;\n\nexport const Bar3d = createSeries<Bar3dProps>('Bar3d', ['bar'], 'bar3d', [registerBar3dSeries]);\n"]}
1
+ {"version":3,"sources":["../src/series/Bar3d.tsx"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iEAAiE;AAIpD,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,sCAAmB,CAAC,CAAC,CAAC","file":"Bar3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IBar3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerBar3dSeries } from '@visactor/vchart-extension';\n\nexport type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;\n\nexport const Bar3d = createSeries<Bar3dProps>('Bar3d', ['bar'], 'bar3d', [registerBar3dSeries]);\n"]}
@@ -1,5 +1,5 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IFunnel3dSeriesSpec } from '@visactor/vchart';
1
+ import type { BaseSeriesProps } from './BaseSeries';
2
+ import type { IFunnel3dSeriesSpec } from '@visactor/vchart-extension';
3
3
  export type Funnel3dProps = BaseSeriesProps & Omit<IFunnel3dSeriesSpec, 'type'>;
4
4
  export declare const Funnel3d: import("react").FC<BaseSeriesProps & Omit<IFunnel3dSeriesSpec, "type"> & {
5
5
  updateId?: number;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Funnel3d = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
- exports.Funnel3d = (0, BaseSeries_1.createSeries)("Funnel3d", [ "funnel" ], "funnel3d", [ vchart_1.registerFunnel3dSeries ]);
9
+ exports.Funnel3d = (0, BaseSeries_1.createSeries)("Funnel3d", [ "funnel" ], "funnel3d", [ vchart_extension_1.registerFunnel3dSeries ]);
10
10
  //# sourceMappingURL=Funnel3d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Funnel3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA0D;AAI7C,QAAA,QAAQ,GAAG,IAAA,yBAAY,EAAgB,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,+BAAsB,CAAC,CAAC,CAAC","file":"Funnel3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IFunnel3dSeriesSpec } from '@visactor/vchart';\nimport { registerFunnel3dSeries } from '@visactor/vchart';\n\nexport type Funnel3dProps = BaseSeriesProps & Omit<IFunnel3dSeriesSpec, 'type'>;\n\nexport const Funnel3d = createSeries<Funnel3dProps>('Funnel3d', ['funnel'], 'funnel3d', [registerFunnel3dSeries]);\n"]}
1
+ {"version":3,"sources":["../src/series/Funnel3d.tsx"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iEAAoE;AAIvD,QAAA,QAAQ,GAAG,IAAA,yBAAY,EAAgB,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,yCAAsB,CAAC,CAAC,CAAC","file":"Funnel3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IFunnel3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerFunnel3dSeries } from '@visactor/vchart-extension';\n\nexport type Funnel3dProps = BaseSeriesProps & Omit<IFunnel3dSeriesSpec, 'type'>;\n\nexport const Funnel3d = createSeries<Funnel3dProps>('Funnel3d', ['funnel'], 'funnel3d', [registerFunnel3dSeries]);\n"]}
@@ -1,5 +1,5 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IPie3dSeriesSpec } from '@visactor/vchart';
1
+ import type { BaseSeriesProps } from './BaseSeries';
2
+ import type { IPie3dSeriesSpec } from '@visactor/vchart-extension';
3
3
  export type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;
4
4
  export declare const Pie3d: import("react").FC<BaseSeriesProps & Omit<IPie3dSeriesSpec, "type"> & {
5
5
  updateId?: number;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.Pie3d = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
- exports.Pie3d = (0, BaseSeries_1.createSeries)("Pie3d", [ "pie" ], "pie3d", [ vchart_1.registerPie3dSeries ]);
9
+ exports.Pie3d = (0, BaseSeries_1.createSeries)("Pie3d", [ "pie" ], "pie3d", [ vchart_extension_1.registerPie3dSeries ]);
10
10
  //# sourceMappingURL=Pie3d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/Pie3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,4BAAmB,CAAC,CAAC,CAAC","file":"Pie3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IPie3dSeriesSpec } from '@visactor/vchart';\nimport { registerPie3dSeries } from '@visactor/vchart';\n\nexport type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;\n\nexport const Pie3d = createSeries<Pie3dProps>('Pie3d', ['pie'], 'pie3d', [registerPie3dSeries]);\n"]}
1
+ {"version":3,"sources":["../src/series/Pie3d.tsx"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iEAAiE;AAIpD,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,sCAAmB,CAAC,CAAC,CAAC","file":"Pie3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IPie3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerPie3dSeries } from '@visactor/vchart-extension';\n\nexport type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;\n\nexport const Pie3d = createSeries<Pie3dProps>('Pie3d', ['pie'], 'pie3d', [registerPie3dSeries]);\n"]}
@@ -1,5 +1,5 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IRangeColumn3dSeriesSpec } from '@visactor/vchart';
1
+ import type { BaseSeriesProps } from './BaseSeries';
2
+ import type { IRangeColumn3dSeriesSpec } from '@visactor/vchart-extension';
3
3
  export type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;
4
4
  export declare const RangeColumn3d: import("react").FC<BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, "type"> & {
5
5
  updateId?: number;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.RangeColumn3d = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
- exports.RangeColumn3d = (0, BaseSeries_1.createSeries)("RangeColumn3d", [ "rangeColumn" ], "rangeColumn3d", [ vchart_1.registerRangeColumn3dSeries ]);
9
+ exports.RangeColumn3d = (0, BaseSeries_1.createSeries)("RangeColumn3d", [ "rangeColumn" ], "rangeColumn3d", [ vchart_extension_1.registerRangeColumn3dSeries ]);
10
10
  //# sourceMappingURL=RangeColumn3d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/RangeColumn3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA+D;AAIlD,QAAA,aAAa,GAAG,IAAA,yBAAY,EAAqB,eAAe,EAAE,CAAC,aAAa,CAAC,EAAE,eAAe,EAAE;IAC/G,oCAA2B;CAC5B,CAAC,CAAC","file":"RangeColumn3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IRangeColumn3dSeriesSpec } from '@visactor/vchart';\nimport { registerRangeColumn3dSeries } from '@visactor/vchart';\n\nexport type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;\n\nexport const RangeColumn3d = createSeries<RangeColumn3dProps>('RangeColumn3d', ['rangeColumn'], 'rangeColumn3d', [\n registerRangeColumn3dSeries\n]);\n"]}
1
+ {"version":3,"sources":["../src/series/RangeColumn3d.tsx"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iEAAyE;AAI5D,QAAA,aAAa,GAAG,IAAA,yBAAY,EAAqB,eAAe,EAAE,CAAC,aAAa,CAAC,EAAE,eAAe,EAAE;IAC/G,8CAA2B;CAC5B,CAAC,CAAC","file":"RangeColumn3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IRangeColumn3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerRangeColumn3dSeries } from '@visactor/vchart-extension';\n\nexport type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;\n\nexport const RangeColumn3d = createSeries<RangeColumn3dProps>('RangeColumn3d', ['rangeColumn'], 'rangeColumn3d', [\n registerRangeColumn3dSeries\n]);\n"]}
@@ -1,5 +1,5 @@
1
- import { BaseSeriesProps } from './BaseSeries';
2
- import type { IWordCloud3dSeriesSpec } from '@visactor/vchart';
1
+ import type { BaseSeriesProps } from './BaseSeries';
2
+ import type { IWordCloud3dSeriesSpec } from '@visactor/vchart-extension';
3
3
  export type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;
4
4
  export declare const WordCloud3d: import("react").FC<BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, "type"> & {
5
5
  updateId?: number;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.WordCloud3d = void 0;
6
6
 
7
- const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
7
+ const BaseSeries_1 = require("./BaseSeries"), vchart_extension_1 = require("@visactor/vchart-extension");
8
8
 
9
- exports.WordCloud3d = (0, BaseSeries_1.createSeries)("WordCloud3d", [ "wordCloud" ], "wordCloud3d", [ vchart_1.registerWordCloud3dSeries ]);
9
+ exports.WordCloud3d = (0, BaseSeries_1.createSeries)("WordCloud3d", [ "wordCloud" ], "wordCloud3d", [ vchart_extension_1.registerWordCloud3dSeries ]);
10
10
  //# sourceMappingURL=WordCloud3d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/WordCloud3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA6D;AAIhD,QAAA,WAAW,GAAG,IAAA,yBAAY,EAAmB,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,aAAa,EAAE;IACrG,kCAAyB;CAC1B,CAAC,CAAC","file":"WordCloud3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IWordCloud3dSeriesSpec } from '@visactor/vchart';\nimport { registerWordCloud3dSeries } from '@visactor/vchart';\n\nexport type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;\n\nexport const WordCloud3d = createSeries<WordCloud3dProps>('WordCloud3d', ['wordCloud'], 'wordCloud3d', [\n registerWordCloud3dSeries\n]);\n"]}
1
+ {"version":3,"sources":["../src/series/WordCloud3d.tsx"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iEAAuE;AAI1D,QAAA,WAAW,GAAG,IAAA,yBAAY,EAAmB,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,aAAa,EAAE;IACrG,4CAAyB;CAC1B,CAAC,CAAC","file":"WordCloud3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IWordCloud3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerWordCloud3dSeries } from '@visactor/vchart-extension';\n\nexport type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;\n\nexport const WordCloud3d = createSeries<WordCloud3dProps>('WordCloud3d', ['wordCloud'], 'wordCloud3d', [\n registerWordCloud3dSeries\n]);\n"]}
package/esm/VChart.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { BaseChartProps } from './charts/BaseChart';
2
2
  export type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;
3
- export declare const VChart: import("react").ForwardRefExoticComponent<VChartProps & import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
3
+ export declare const VChart: import("react").ForwardRefExoticComponent<VChartProps & import("react").RefAttributes<any>>;
@@ -3,4 +3,4 @@ import { BaseChartProps } from './charts/BaseChart';
3
3
  export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;
4
4
  export declare const VChartSimple: import("react").ForwardRefExoticComponent<VChartSimpleProps & {
5
5
  vchartConstrouctor: IVChartConstructor;
6
- } & import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
6
+ } & import("react").RefAttributes<any>>;
@@ -7,4 +7,4 @@ export declare const AreaChart: React.ForwardRefExoticComponent<AreaChartProps &
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'area';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { IBar3dChartSpec } from '@visactor/vchart';
2
+ import type { IBar3dChartSpec } from '@visactor/vchart-extension';
3
3
  import type { BaseChartProps } from './BaseChart';
4
4
  export interface Bar3dChartProps extends Omit<BaseChartProps, 'container' | 'type' | 'data'>, Omit<Partial<IBar3dChartSpec>, 'type'> {
5
5
  }
@@ -7,4 +7,4 @@ export declare const Bar3dChart: React.ForwardRefExoticComponent<Bar3dChartProps
7
7
  children?: React.ReactNode;
8
8
  } & {
9
9
  type?: 'bar3d';
10
- } & import("../containers/withContainer").ContainerProps & React.RefAttributes<any>>;
10
+ } & React.RefAttributes<any>>;
@@ -1,4 +1,6 @@
1
- import { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
1
+ import { VChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
+
3
+ import { registerBar3dChart } from "@visactor/vchart-extension";
2
4
 
3
5
  import { createChart } from "./BaseChart";
4
6
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Bar3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CACtE,CAAC","file":"Bar3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IBar3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBar3dChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface Bar3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBar3dChartSpec>, 'type'> {\n //\n}\n\nexport const Bar3dChart = createChart<React.PropsWithChildren<Bar3dChartProps> & { type?: 'bar3d' }>(\n 'Bar3dChart',\n {\n type: 'bar3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBar3dChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Bar3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CACtE,CAAC","file":"Bar3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { registerBar3dChart } from '@visactor/vchart-extension';\nimport type { IBar3dChartSpec } from '@visactor/vchart-extension';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface Bar3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBar3dChartSpec>, 'type'> {\n //\n}\n\nexport const Bar3dChart = createChart<React.PropsWithChildren<Bar3dChartProps> & { type?: 'bar3d' }>(\n 'Bar3dChart',\n {\n type: 'bar3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBar3dChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}