@visactor/react-vchart 2.0.0-alpha.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) 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 +4 -3
  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/BaseTooltip.d.ts +13 -0
  83. package/cjs/components/tooltip/BaseTooltip.js +36 -0
  84. package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
  85. package/cjs/components/tooltip/CanvasTooltip.d.ts +1 -1
  86. package/cjs/components/tooltip/CanvasTooltip.js +2 -2
  87. package/cjs/components/tooltip/CanvasTooltip.js.map +1 -1
  88. package/cjs/components/tooltip/Tooltip.d.ts +1 -1
  89. package/cjs/components/tooltip/Tooltip.js +2 -2
  90. package/cjs/components/tooltip/Tooltip.js.map +1 -1
  91. package/cjs/components/tooltip/util.d.ts +2 -2
  92. package/cjs/components/tooltip/util.js +3 -7
  93. package/cjs/components/tooltip/util.js.map +1 -1
  94. package/cjs/containers/withContainer.d.ts +1 -0
  95. package/cjs/containers/withContainer.js +4 -3
  96. package/cjs/containers/withContainer.js.map +1 -1
  97. package/cjs/index.d.ts +1 -1
  98. package/cjs/index.js +1 -1
  99. package/cjs/index.js.map +1 -1
  100. package/esm/VChart.js +1 -1
  101. package/esm/VChart.js.map +1 -1
  102. package/esm/VChartSimple.d.ts +2 -2
  103. package/esm/VChartSimple.js.map +1 -1
  104. package/esm/charts/AreaChart.js +1 -1
  105. package/esm/charts/AreaChart.js.map +1 -1
  106. package/esm/charts/Bar3dChart.js +1 -1
  107. package/esm/charts/Bar3dChart.js.map +1 -1
  108. package/esm/charts/BarChart.js +1 -1
  109. package/esm/charts/BarChart.js.map +1 -1
  110. package/esm/charts/BaseChart.d.ts +1 -0
  111. package/esm/charts/BaseChart.js +4 -3
  112. package/esm/charts/BaseChart.js.map +1 -1
  113. package/esm/charts/BoxPlotChart.js +1 -1
  114. package/esm/charts/BoxPlotChart.js.map +1 -1
  115. package/esm/charts/CirclePackingChart.js +1 -1
  116. package/esm/charts/CirclePackingChart.js.map +1 -1
  117. package/esm/charts/CircularProgressChart.js +1 -1
  118. package/esm/charts/CircularProgressChart.js.map +1 -1
  119. package/esm/charts/CommonChart.js +1 -1
  120. package/esm/charts/CommonChart.js.map +1 -1
  121. package/esm/charts/CorrelationChart.js +1 -1
  122. package/esm/charts/CorrelationChart.js.map +1 -1
  123. package/esm/charts/Funnel3dChart.js +1 -1
  124. package/esm/charts/Funnel3dChart.js.map +1 -1
  125. package/esm/charts/FunnelChart.js +1 -1
  126. package/esm/charts/FunnelChart.js.map +1 -1
  127. package/esm/charts/GaugeChart.js +1 -1
  128. package/esm/charts/GaugeChart.js.map +1 -1
  129. package/esm/charts/HeatmapChart.js +1 -1
  130. package/esm/charts/HeatmapChart.js.map +1 -1
  131. package/esm/charts/Histogram3dChart.js +1 -1
  132. package/esm/charts/Histogram3dChart.js.map +1 -1
  133. package/esm/charts/HistogramChart.js +1 -1
  134. package/esm/charts/HistogramChart.js.map +1 -1
  135. package/esm/charts/LineChart.js +1 -1
  136. package/esm/charts/LineChart.js.map +1 -1
  137. package/esm/charts/LinearProgressChart.js +1 -1
  138. package/esm/charts/LinearProgressChart.js.map +1 -1
  139. package/esm/charts/LiquidChart.js +1 -1
  140. package/esm/charts/LiquidChart.js.map +1 -1
  141. package/esm/charts/MapChart.js +1 -1
  142. package/esm/charts/MapChart.js.map +1 -1
  143. package/esm/charts/MosaicChart.js +1 -1
  144. package/esm/charts/MosaicChart.js.map +1 -1
  145. package/esm/charts/PictogramChart.js +1 -1
  146. package/esm/charts/PictogramChart.js.map +1 -1
  147. package/esm/charts/Pie3dChart.js +1 -1
  148. package/esm/charts/Pie3dChart.js.map +1 -1
  149. package/esm/charts/PieChart.js +1 -1
  150. package/esm/charts/PieChart.js.map +1 -1
  151. package/esm/charts/RadarChart.js +1 -1
  152. package/esm/charts/RadarChart.js.map +1 -1
  153. package/esm/charts/RangeAreaChart.js +1 -1
  154. package/esm/charts/RangeAreaChart.js.map +1 -1
  155. package/esm/charts/RangeColumn3dChart.js +1 -1
  156. package/esm/charts/RangeColumn3dChart.js.map +1 -1
  157. package/esm/charts/RangeColumnChart.js +1 -1
  158. package/esm/charts/RangeColumnChart.js.map +1 -1
  159. package/esm/charts/RoseChart.js +1 -1
  160. package/esm/charts/RoseChart.js.map +1 -1
  161. package/esm/charts/SankeyChart.js +1 -1
  162. package/esm/charts/SankeyChart.js.map +1 -1
  163. package/esm/charts/ScatterChart.js +1 -1
  164. package/esm/charts/ScatterChart.js.map +1 -1
  165. package/esm/charts/SequenceChart.js +1 -1
  166. package/esm/charts/SequenceChart.js.map +1 -1
  167. package/esm/charts/SunburstChart.js +1 -1
  168. package/esm/charts/SunburstChart.js.map +1 -1
  169. package/esm/charts/TreemapChart.js +1 -1
  170. package/esm/charts/TreemapChart.js.map +1 -1
  171. package/esm/charts/VennChart.js +1 -1
  172. package/esm/charts/VennChart.js.map +1 -1
  173. package/esm/charts/WaterfallChart.js +1 -1
  174. package/esm/charts/WaterfallChart.js.map +1 -1
  175. package/esm/charts/WordCloud3dChart.js +1 -1
  176. package/esm/charts/WordCloud3dChart.js.map +1 -1
  177. package/esm/charts/WordCloudChart.js +1 -1
  178. package/esm/charts/WordCloudChart.js.map +1 -1
  179. package/esm/components/MarkArea.js +2 -1
  180. package/esm/components/ScrollBar.js +1 -2
  181. package/esm/components/tooltip/BaseTooltip.d.ts +13 -0
  182. package/esm/components/tooltip/BaseTooltip.js +27 -0
  183. package/esm/components/tooltip/BaseTooltip.js.map +1 -0
  184. package/esm/components/tooltip/CanvasTooltip.d.ts +1 -1
  185. package/esm/components/tooltip/CanvasTooltip.js +2 -2
  186. package/esm/components/tooltip/CanvasTooltip.js.map +1 -1
  187. package/esm/components/tooltip/Tooltip.d.ts +1 -1
  188. package/esm/components/tooltip/Tooltip.js +2 -2
  189. package/esm/components/tooltip/Tooltip.js.map +1 -1
  190. package/esm/components/tooltip/util.d.ts +2 -2
  191. package/esm/components/tooltip/util.js +2 -7
  192. package/esm/components/tooltip/util.js.map +1 -1
  193. package/esm/containers/withContainer.d.ts +1 -0
  194. package/esm/containers/withContainer.js +4 -3
  195. package/esm/containers/withContainer.js.map +1 -1
  196. package/esm/index.d.ts +1 -1
  197. package/esm/index.js +1 -1
  198. package/esm/index.js.map +1 -1
  199. package/package.json +5 -5
package/cjs/VChart.js CHANGED
@@ -13,5 +13,5 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const BaseChart_1 = require("./charts/BaseChart"), vchart_1 = __importDefault(require("@visactor/vchart"));
14
14
 
15
15
  exports.VChart = (0, BaseChart_1.createChart)("VChart", {
16
- vchartConstrouctor: vchart_1.default
16
+ vchartConstructor: vchart_1.default
17
17
  });
package/cjs/VChart.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/VChart.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAiE;AACjE,8DAAyD;AAG5C,QAAA,MAAM,GAAG,IAAA,uBAAW,EAAc,QAAQ,EAAE;IACvD,kBAAkB,EAAE,gBAAU;CAC/B,CAAC,CAAC","file":"VChart.js","sourcesContent":["import { BaseChartProps, createChart } from './charts/BaseChart';\nimport { default as VChartCore } from '@visactor/vchart';\nexport type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;\n\nexport const VChart = createChart<VChartProps>('VChart', {\n vchartConstrouctor: VChartCore\n});\n"]}
1
+ {"version":3,"sources":["../src/VChart.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAiE;AACjE,8DAAyD;AAG5C,QAAA,MAAM,GAAG,IAAA,uBAAW,EAAc,QAAQ,EAAE;IACvD,iBAAiB,EAAE,gBAAU;CAC9B,CAAC,CAAC","file":"VChart.js","sourcesContent":["import { BaseChartProps, createChart } from './charts/BaseChart';\nimport { default as VChartCore } from '@visactor/vchart';\nexport type VChartProps = Omit<BaseChartProps, 'container' | 'width' | 'height' | 'type'>;\n\nexport const VChart = createChart<VChartProps>('VChart', {\n vchartConstructor: VChartCore\n});\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { IVChartConstructor } from '@visactor/vchart';
2
2
  import { BaseChartProps } from './charts/BaseChart';
3
- export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;
3
+ export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstructor'>;
4
4
  export declare const VChartSimple: import("react").ForwardRefExoticComponent<VChartSimpleProps & {
5
- vchartConstrouctor: IVChartConstructor;
5
+ vchartConstructor: IVChartConstructor;
6
6
  } & import("react").RefAttributes<any>>;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/VChartSimple.tsx"],"names":[],"mappings":";;;AACA,kDAAiE;AAIpD,QAAA,YAAY,GAAG,IAAA,uBAAW,EAAiE,cAAc,CAAC,CAAC","file":"VChartSimple.js","sourcesContent":["import type { IVChartConstructor } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './charts/BaseChart';\n\nexport type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;\n\nexport const VChartSimple = createChart<VChartSimpleProps & { vchartConstrouctor: IVChartConstructor }>('VChartSimple');\n"]}
1
+ {"version":3,"sources":["../src/VChartSimple.tsx"],"names":[],"mappings":";;;AACA,kDAAiE;AAIpD,QAAA,YAAY,GAAG,IAAA,uBAAW,EAAgE,cAAc,CAAC,CAAC","file":"VChartSimple.js","sourcesContent":["import type { IVChartConstructor } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './charts/BaseChart';\n\nexport type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstructor'>;\n\nexport const VChartSimple = createChart<VChartSimpleProps & { vchartConstructor: IVChartConstructor }>('VChartSimple');\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.AreaChart = (0, BaseChart_1.createChart)("AreaChart", {
10
10
  type: "area",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerAreaChart, vchart_1.registerLabel, vchart_1.registerTotalLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=AreaChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/AreaChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAgG;AAEhG,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,SAAS,GAAG,IAAA,uBAAW,EAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,0BAAiB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACrE,CAAC","file":"AreaChart.js","sourcesContent":["import type React from 'react';\nimport type { IAreaChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerAreaChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IAreaChartSpec>, 'type'> {}\n\nexport const AreaChart = createChart<React.PropsWithChildren<AreaChartProps> & { type?: 'area' }>(\n 'AreaChart',\n {\n type: 'area',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerAreaChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/AreaChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAgG;AAEhG,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,SAAS,GAAG,IAAA,uBAAW,EAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,0BAAiB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACrE,CAAC","file":"AreaChart.js","sourcesContent":["import type React from 'react';\nimport type { IAreaChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerAreaChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IAreaChartSpec>, 'type'> {}\n\nexport const AreaChart = createChart<React.PropsWithChildren<AreaChartProps> & { type?: 'area' }>(\n 'AreaChart',\n {\n type: 'area',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerAreaChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), vchart_extension_1 = require("@vis
8
8
 
9
9
  exports.Bar3dChart = (0, BaseChart_1.createChart)("Bar3dChart", {
10
10
  type: "bar3d",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_extension_1.registerBar3dChart, vchart_1.registerLabel, vchart_1.registerTotalLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=Bar3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Bar3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA6E;AAC7E,iEAAgE;AAGhE,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,qCAAkB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,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"]}
1
+ {"version":3,"sources":["../src/charts/Bar3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA6E;AAC7E,iEAAgE;AAGhE,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,qCAAkB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,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 vchartConstructor: VChart as IVChartConstructor\n },\n [registerBar3dChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.BarChart = (0, BaseChart_1.createChart)("BarChart", {
10
10
  type: "bar",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerBarChart, vchart_1.registerLabel, vchart_1.registerTotalLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=BarChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BarChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+F;AAE/F,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,QAAQ,GAAG,IAAA,uBAAW,EACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,yBAAgB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACpE,CAAC","file":"BarChart.js","sourcesContent":["import type React from 'react';\nimport type { IBarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBarChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBarChartSpec>, 'type'> {\n //\n}\n\nexport const BarChart = createChart<React.PropsWithChildren<BarChartProps> & { type?: 'bar' }>(\n 'BarChart',\n {\n type: 'bar',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBarChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/BarChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+F;AAE/F,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,QAAQ,GAAG,IAAA,uBAAW,EACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,yBAAgB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACpE,CAAC","file":"BarChart.js","sourcesContent":["import type React from 'react';\nimport type { IBarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBarChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBarChartSpec>, 'type'> {\n //\n}\n\nexport const BarChart = createChart<React.PropsWithChildren<BarChartProps> & { type?: 'bar' }>(\n 'BarChart',\n {\n type: 'bar',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerBarChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
@@ -4,6 +4,7 @@ import type { EventsProps, LegendEventProps, ScrollBarEventProps, BrushEventProp
4
4
  import type { IReactTooltipProps } from '../components/tooltip/interface';
5
5
  export type ChartOptions = Omit<IInitOption, 'dom'>;
6
6
  export interface BaseChartProps extends EventsProps, LegendEventProps, ScrollBarEventProps, BrushEventProps, DataZoomEventProps, PlayerEventProps, DimensionEventProps, HierarchyEventProps, ChartLifeCycleEventProps, IReactTooltipProps {
7
+ vchartConstructor?: IVChartConstructor;
7
8
  vchartConstrouctor?: IVChartConstructor;
8
9
  type?: string;
9
10
  container?: HTMLDivElement;
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "__esModule", {
33
33
  value: !0
34
34
  }), exports.createChart = void 0;
35
35
 
36
- const react_1 = __importStar(require("react")), withContainer_1 = __importDefault(require("../containers/withContainer")), chart_1 = __importDefault(require("../context/chart")), vutils_1 = require("@visactor/vutils"), util_1 = require("../util"), constants_1 = require("../constants"), eventsUtils_1 = require("../eventsUtils"), util_2 = require("../components/tooltip/util"), notSpecKeys = [ ...constants_1.REACT_PRIVATE_PROPS, ...eventsUtils_1.CHART_EVENTS_KEYS, "vchartConstrouctor", "useSyncRender", "skipFunctionDiff", "onError", "onReady", "spec", "container", "options", "morphConfig" ], defaultMorphConfig = {
36
+ const react_1 = __importStar(require("react")), withContainer_1 = __importDefault(require("../containers/withContainer")), chart_1 = __importDefault(require("../context/chart")), vutils_1 = require("@visactor/vutils"), util_1 = require("../util"), constants_1 = require("../constants"), eventsUtils_1 = require("../eventsUtils"), util_2 = require("../components/tooltip/util"), notSpecKeys = [ ...constants_1.REACT_PRIVATE_PROPS, ...eventsUtils_1.CHART_EVENTS_KEYS, "vchartConstructor", "vchartConstrouctor", "useSyncRender", "skipFunctionDiff", "onError", "onReady", "spec", "container", "options", "morphConfig" ], defaultMorphConfig = {
37
37
  morph: !1,
38
38
  enableExitAnimation: !1
39
39
  }, getComponentId = (child, index) => `${child && child.type && (child.type.displayName || child.type.name)}-${index}`, parseSpecFromChildren = props => {
@@ -76,7 +76,8 @@ const react_1 = __importStar(require("react")), withContainer_1 = __importDefaul
76
76
  const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);
77
77
  if (!(null === (_a = chartContext.current) || void 0 === _a ? void 0 : _a.chart)) return hasSpec || (specFromChildren.current = newSpecFromChildren),
78
78
  (props => {
79
- const cs = new props.vchartConstrouctor(parseSpec(props), Object.assign(Object.assign({}, props.options), {
79
+ var _a;
80
+ const cs = new (null !== (_a = props.vchartConstructor) && void 0 !== _a ? _a : props.vchartConstrouctor)(parseSpec(props), Object.assign(Object.assign({}, props.options), {
80
81
  onError: props.onError,
81
82
  autoFit: !0,
82
83
  dom: props.container
@@ -117,7 +118,7 @@ const react_1 = __importStar(require("react")), withContainer_1 = __importDefaul
117
118
  }));
118
119
  })), tooltipNode);
119
120
  })), createChart = (componentName, defaultProps, registers) => {
120
- registers && registers.length && defaultProps.vchartConstrouctor && defaultProps.vchartConstrouctor.useRegisters(registers);
121
+ registers && registers.length && defaultProps.vchartConstructor && defaultProps.vchartConstructor.useRegisters(registers);
121
122
  const Com = (0, withContainer_1.default)(BaseChart, componentName, (props => defaultProps ? Object.assign(props, defaultProps) : props));
122
123
  return Com.displayName = componentName, Com;
123
124
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BaseChart.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,+CAAgF;AAEhF,gFAAwD;AAExD,6DAAgD;AAChD,6CAAwE;AACxE,kCAAkC;AAClC,4CAAmD;AAYnD,gDAAoF;AAEpF,qDAA+D;AAqD/D,MAAM,WAAW,GAAG;IAClB,GAAG,+BAAmB;IACtB,GAAG,+BAAiB;IACpB,oBAAoB;IACpB,eAAe;IACf,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,MAAM;IACN,WAAW;IACX,SAAS;IACT,aAAa;CACd,CAAC;AACF,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,KAAK;IACZ,mBAAmB,EAAE,KAAK;CAC3B,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,KAAa,EAAE,EAAE;IAC/D,MAAM,aAAa,GAAG,KAAK,IAAK,KAAa,CAAC,IAAI,IAAI,CAAE,KAAa,CAAC,IAAI,CAAC,WAAW,IAAK,KAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpH,OAAO,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAE,EAAE;IAC7C,MAAM,gBAAgB,GAAsD,EAAE,CAAC;IAE/E,IAAA,cAAO,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC3C,MAAM,SA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AAC;YAE7C,OAAO,CACL,8BAAC,eAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,OAAO,IACzB,eAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;gBACtF,QAAQ,EAAE,QAAQ;gBAClB,WAAW,EAAE,OAAO;aACrB,CAAC,CACa,CAClB,CAAC;QACJ,CAAC,CAAC;QACD,WAAW,CACc,CAC7B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEI,MAAM,WAAW,GAAG,CACzB,aAAqB,EACrB,YAAyB,EACzB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE;QACpE,YAAY,CAAC,kBAAkB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KACzD;IAED,MAAM,GAAG,GAAG,IAAA,uBAAa,EAAI,SAAgB,EAAE,aAAa,EAAE,CAAC,KAAQ,EAAE,EAAE;QACzE,IAAI,YAAY,EAAE;YAChB,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SAC3C;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB","file":"BaseChart.js","sourcesContent":["import type {\n IVChart,\n IData,\n IInitOption,\n ISpec,\n IVChartConstructor,\n IHierarchyData,\n IVChartRenderOption\n} from '@visactor/vchart';\nimport type { ReactNode } from 'react';\nimport React, { useState, useEffect, useRef, useImperativeHandle } from 'react';\nimport type { ContainerProps } from '../containers/withContainer';\nimport withContainer from '../containers/withContainer';\nimport type { ChartContextType } from '../context/chart';\nimport RootChartContext from '../context/chart';\nimport { isEqual, isNil, isValid, pickWithout } from '@visactor/vutils';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport type {\n EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps\n} from '../eventsUtils';\nimport { bindEventsToChart, CHART_EVENTS_KEYS, CHART_EVENTS } from '../eventsUtils';\nimport type { IReactTooltipProps } from '../components/tooltip/interface';\nimport { initCustomTooltip } from '../components/tooltip/util';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps\n extends EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps,\n IReactTooltipProps {\n vchartConstrouctor?: IVChartConstructor;\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: ISpec;\n /** 数据 */\n data?: IData | IHierarchyData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n /** skip function diff when component update */\n skipFunctionDiff?: boolean;\n /**\n * add `morphConfig` for chart\n * @since 1.12.7\n */\n morphConfig?: IVChartRenderOption['morphConfig'];\n /** 图表渲染完成事件 */\n onReady?: (instance: IVChart, isInitial: boolean) => void;\n /** throw error when chart run into an error */\n onError?: (err: Error) => void;\n /**\n * use sync render\n *\n * @since 1.8.3\n * @deprecated 1.9.0\n **/\n useSyncRender?: boolean;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [\n ...REACT_PRIVATE_PROPS,\n ...CHART_EVENTS_KEYS,\n 'vchartConstrouctor',\n 'useSyncRender',\n 'skipFunctionDiff',\n 'onError',\n 'onReady',\n 'spec',\n 'container',\n 'options',\n 'morphConfig'\n];\nconst defaultMorphConfig = {\n morph: false,\n enableExitAnimation: false\n};\n\nconst getComponentId = (child: React.ReactNode, index: number) => {\n const componentName = child && (child as any).type && ((child as any).type.displayName || (child as any).type.name);\n return `${componentName}-${index}`;\n};\n\nconst parseSpecFromChildren = (props: Props) => {\n const specFromChildren: Omit<ISpec, 'type' | 'data' | 'width' | 'height'> = {};\n\n toArray(props.children).map((child, index) => {\n const parseSpec = child && (child as any).type && (child as any).type.parseSpec;\n\n if (parseSpec && (child as any).props) {\n const childProps = isNil((child as any).props.componentId)\n ? {\n ...(child as any).props,\n componentId: getComponentId(child, index)\n }\n : (child as any).props;\n\n const specResult = parseSpec(childProps);\n\n if (specResult.isSingle) {\n (specFromChildren as any)[specResult.specName] = specResult.spec;\n } else {\n if (!(specFromChildren as any)[specResult.specName]) {\n (specFromChildren as any)[specResult.specName] = [];\n }\n\n (specFromChildren as any)[specResult.specName].push(specResult.spec);\n }\n }\n });\n\n return specFromChildren;\n};\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({});\n useImperativeHandle(ref, () => chartContext.current?.chart);\n const hasSpec = !!props.spec;\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const specFromChildren = useRef<Omit<ISpec, 'type' | 'data' | 'width' | 'height'>>(null);\n const eventsBinded = React.useRef<BaseChartProps>(null);\n const skipFunctionDiff = !!props.skipFunctionDiff;\n const [tooltipNode, setTooltipNode] = useState<ReactNode>(null);\n\n const parseSpec = (props: Props) => {\n let spec: ISpec;\n\n if (hasSpec && props.spec) {\n spec = props.spec;\n\n if (isValid(props.data)) {\n spec = {\n ...props.spec,\n data: props.data\n } as ISpec;\n }\n } else {\n spec = {\n ...prevSpec.current,\n ...specFromChildren.current\n } as ISpec;\n }\n\n const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);\n if (tooltipSpec) {\n spec.tooltip = tooltipSpec;\n }\n return spec;\n };\n\n const createChart = (props: Props) => {\n const cs = new props.vchartConstrouctor(parseSpec(props), {\n ...props.options,\n onError: props.onError,\n autoFit: true,\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n isUnmount.current = false;\n };\n\n const handleChartRender = (rebindEvent?: boolean) => {\n // rebind events after render\n if (!isUnmount.current) {\n if (!chartContext.current || !chartContext.current.chart) {\n return;\n }\n\n if (rebindEvent) {\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n }\n\n setUpdateId(updateId + 1);\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n }\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n // event should bind before render when the chart has not been rendered\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n chartContext.current.chart.renderSync({\n reuse: false\n });\n handleChartRender();\n }\n };\n\n useEffect(() => {\n const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);\n\n if (!chartContext.current?.chart) {\n if (!hasSpec) {\n specFromChildren.current = newSpecFromChildren;\n }\n\n createChart(props);\n renderChart();\n eventsBinded.current = props;\n return;\n }\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec, { skipFunction: skipFunctionDiff })) {\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, props.morphConfig ?? defaultMorphConfig);\n handleChartRender(true);\n eventsBinded.current = props;\n } else if (eventsBinded.current.data !== props.data) {\n chartContext.current.chart.updateFullDataSync(props.data as any);\n handleChartRender(true);\n eventsBinded.current = props;\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (\n !isEqual(newSpec, prevSpec.current, { skipFunction: skipFunctionDiff }) ||\n !isEqual(newSpecFromChildren, specFromChildren.current, { skipFunction: skipFunctionDiff })\n ) {\n prevSpec.current = newSpec;\n specFromChildren.current = newSpecFromChildren;\n\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, props.morphConfig ?? defaultMorphConfig);\n handleChartRender(true);\n eventsBinded.current = props;\n }\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current && chartContext.current.chart) {\n chartContext.current.chart.release();\n chartContext.current.chart = null;\n }\n }\n eventsBinded.current = null;\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n {toArray(props.children).map((child, index) => {\n if (typeof child === 'string') {\n return null;\n }\n\n const childId = getComponentId(child, index);\n\n return (\n <React.Fragment key={childId}>\n {React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n updateId: updateId,\n componentId: childId\n })}\n </React.Fragment>\n );\n })}\n {tooltipNode}\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(\n componentName: string,\n defaultProps?: Partial<T>,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length && defaultProps.vchartConstrouctor) {\n defaultProps.vchartConstrouctor.useRegisters(registers);\n }\n\n const Com = withContainer<T>(BaseChart as any, componentName, (props: T) => {\n if (defaultProps) {\n return Object.assign(props, defaultProps);\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
1
+ {"version":3,"sources":["../src/charts/BaseChart.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,+CAAgF;AAEhF,gFAAwD;AAExD,6DAAgD;AAChD,6CAAwE;AACxE,kCAAkC;AAClC,4CAAmD;AAYnD,gDAAoF;AAEpF,qDAA+D;AAuD/D,MAAM,WAAW,GAAG;IAClB,GAAG,+BAAmB;IACtB,GAAG,+BAAiB;IACpB,mBAAmB;IACnB,oBAAoB;IACpB,eAAe;IACf,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,MAAM;IACN,WAAW;IACX,SAAS;IACT,aAAa;CACd,CAAC;AACF,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,KAAK;IACZ,mBAAmB,EAAE,KAAK;CAC3B,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,KAAa,EAAE,EAAE;IAC/D,MAAM,aAAa,GAAG,KAAK,IAAK,KAAa,CAAC,IAAI,IAAI,CAA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AiBtB","file":"BaseChart.js","sourcesContent":["import type {\n IVChart,\n IData,\n IInitOption,\n ISpec,\n IVChartConstructor,\n IHierarchyData,\n IVChartRenderOption\n} from '@visactor/vchart';\nimport type { ReactNode } from 'react';\nimport React, { useState, useEffect, useRef, useImperativeHandle } from 'react';\nimport type { ContainerProps } from '../containers/withContainer';\nimport withContainer from '../containers/withContainer';\nimport type { ChartContextType } from '../context/chart';\nimport RootChartContext from '../context/chart';\nimport { isEqual, isNil, isValid, pickWithout } from '@visactor/vutils';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport type {\n EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps\n} from '../eventsUtils';\nimport { bindEventsToChart, CHART_EVENTS_KEYS, CHART_EVENTS } from '../eventsUtils';\nimport type { IReactTooltipProps } from '../components/tooltip/interface';\nimport { initCustomTooltip } from '../components/tooltip/util';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps\n extends EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps,\n IReactTooltipProps {\n vchartConstructor?: IVChartConstructor;\n /** @deprecated 请使用 vchartConstructor */\n vchartConstrouctor?: IVChartConstructor;\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: ISpec;\n /** 数据 */\n data?: IData | IHierarchyData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n /** skip function diff when component update */\n skipFunctionDiff?: boolean;\n /**\n * add `morphConfig` for chart\n * @since 1.12.7\n */\n morphConfig?: IVChartRenderOption['morphConfig'];\n /** 图表渲染完成事件 */\n onReady?: (instance: IVChart, isInitial: boolean) => void;\n /** throw error when chart run into an error */\n onError?: (err: Error) => void;\n /**\n * use sync render\n *\n * @since 1.8.3\n * @deprecated 1.9.0\n **/\n useSyncRender?: boolean;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [\n ...REACT_PRIVATE_PROPS,\n ...CHART_EVENTS_KEYS,\n 'vchartConstructor',\n 'vchartConstrouctor',\n 'useSyncRender',\n 'skipFunctionDiff',\n 'onError',\n 'onReady',\n 'spec',\n 'container',\n 'options',\n 'morphConfig'\n];\nconst defaultMorphConfig = {\n morph: false,\n enableExitAnimation: false\n};\n\nconst getComponentId = (child: React.ReactNode, index: number) => {\n const componentName = child && (child as any).type && ((child as any).type.displayName || (child as any).type.name);\n return `${componentName}-${index}`;\n};\n\nconst parseSpecFromChildren = (props: Props) => {\n const specFromChildren: Omit<ISpec, 'type' | 'data' | 'width' | 'height'> = {};\n\n toArray(props.children).map((child, index) => {\n const parseSpec = child && (child as any).type && (child as any).type.parseSpec;\n\n if (parseSpec && (child as any).props) {\n const childProps = isNil((child as any).props.componentId)\n ? {\n ...(child as any).props,\n componentId: getComponentId(child, index)\n }\n : (child as any).props;\n\n const specResult = parseSpec(childProps);\n\n if (specResult.isSingle) {\n (specFromChildren as any)[specResult.specName] = specResult.spec;\n } else {\n if (!(specFromChildren as any)[specResult.specName]) {\n (specFromChildren as any)[specResult.specName] = [];\n }\n\n (specFromChildren as any)[specResult.specName].push(specResult.spec);\n }\n }\n });\n\n return specFromChildren;\n};\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({});\n useImperativeHandle(ref, () => chartContext.current?.chart);\n const hasSpec = !!props.spec;\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const specFromChildren = useRef<Omit<ISpec, 'type' | 'data' | 'width' | 'height'>>(null);\n const eventsBinded = React.useRef<BaseChartProps>(null);\n const skipFunctionDiff = !!props.skipFunctionDiff;\n const [tooltipNode, setTooltipNode] = useState<ReactNode>(null);\n\n const parseSpec = (props: Props) => {\n let spec: ISpec;\n\n if (hasSpec && props.spec) {\n spec = props.spec;\n\n if (isValid(props.data)) {\n spec = {\n ...props.spec,\n data: props.data\n } as ISpec;\n }\n } else {\n spec = {\n ...prevSpec.current,\n ...specFromChildren.current\n } as ISpec;\n }\n\n const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);\n if (tooltipSpec) {\n spec.tooltip = tooltipSpec;\n }\n return spec;\n };\n\n const createChart = (props: Props) => {\n const cs = new (props.vchartConstructor ?? (props as any).vchartConstrouctor)(parseSpec(props), {\n ...props.options,\n onError: props.onError,\n autoFit: true,\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n isUnmount.current = false;\n };\n\n const handleChartRender = (rebindEvent?: boolean) => {\n // rebind events after render\n if (!isUnmount.current) {\n if (!chartContext.current || !chartContext.current.chart) {\n return;\n }\n\n if (rebindEvent) {\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n }\n\n setUpdateId(updateId + 1);\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n }\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n // event should bind before render when the chart has not been rendered\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n chartContext.current.chart.renderSync({\n reuse: false\n });\n handleChartRender();\n }\n };\n\n useEffect(() => {\n const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);\n\n if (!chartContext.current?.chart) {\n if (!hasSpec) {\n specFromChildren.current = newSpecFromChildren;\n }\n\n createChart(props);\n renderChart();\n eventsBinded.current = props;\n return;\n }\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec, { skipFunction: skipFunctionDiff })) {\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, props.morphConfig ?? defaultMorphConfig);\n handleChartRender(true);\n eventsBinded.current = props;\n } else if (eventsBinded.current.data !== props.data) {\n chartContext.current.chart.updateFullDataSync(props.data as any);\n handleChartRender(true);\n eventsBinded.current = props;\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (\n !isEqual(newSpec, prevSpec.current, { skipFunction: skipFunctionDiff }) ||\n !isEqual(newSpecFromChildren, specFromChildren.current, { skipFunction: skipFunctionDiff })\n ) {\n prevSpec.current = newSpec;\n specFromChildren.current = newSpecFromChildren;\n\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, props.morphConfig ?? defaultMorphConfig);\n handleChartRender(true);\n eventsBinded.current = props;\n }\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current && chartContext.current.chart) {\n chartContext.current.chart.release();\n chartContext.current.chart = null;\n }\n }\n eventsBinded.current = null;\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n {toArray(props.children).map((child, index) => {\n if (typeof child === 'string') {\n return null;\n }\n\n const childId = getComponentId(child, index);\n\n return (\n <React.Fragment key={childId}>\n {React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n updateId: updateId,\n componentId: childId\n })}\n </React.Fragment>\n );\n })}\n {tooltipNode}\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(\n componentName: string,\n defaultProps?: Partial<T>,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length && defaultProps.vchartConstructor) {\n defaultProps.vchartConstructor.useRegisters(registers);\n }\n\n const Com = withContainer<T>(BaseChart as any, componentName, (props: T) => {\n if (defaultProps) {\n return Object.assign(props, defaultProps);\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.BoxPlotChart = (0, BaseChart_1.createChart)("BoxPlotChart", {
10
10
  type: "boxPlot",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerBoxplotChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=BoxPlotChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BoxPlotChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+E;AAE/E,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,6BAAoB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACpD,CAAC","file":"BoxPlotChart.js","sourcesContent":["import type React from 'react';\nimport type { IBoxPlotChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBoxplotChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBoxPlotChartSpec>, 'type'> {}\n\nexport const BoxPlotChart = createChart<React.PropsWithChildren<BoxPlotChartProps> & { type?: 'boxPlot' }>(\n 'BoxPlotChart',\n {\n type: 'boxPlot',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBoxplotChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/BoxPlotChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+E;AAE/E,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,6BAAoB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACpD,CAAC","file":"BoxPlotChart.js","sourcesContent":["import type React from 'react';\nimport type { IBoxPlotChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBoxplotChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IBoxPlotChartSpec>, 'type'> {}\n\nexport const BoxPlotChart = createChart<React.PropsWithChildren<BoxPlotChartProps> & { type?: 'boxPlot' }>(\n 'BoxPlotChart',\n {\n type: 'boxPlot',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerBoxplotChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.CirclePackingChart = (0, BaseChart_1.createChart)("CirclePackingChart", {
10
10
  type: "circlePacking",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerCirclePackingChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=CirclePackingChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CirclePackingChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAqF;AAErF,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,kBAAkB,GAAG,IAAA,uBAAW,EAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,mCAA0B,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CAC1D,CAAC","file":"CirclePackingChart.js","sourcesContent":["import type React from 'react';\nimport type { ICirclePackingChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCirclePackingChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface CirclePackingChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICirclePackingChartSpec>, 'type'> {}\n\nexport const CirclePackingChart = createChart<\n React.PropsWithChildren<CirclePackingChartProps> & { type?: 'circlePacking' }\n>(\n 'CirclePackingChart',\n {\n type: 'circlePacking',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCirclePackingChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CirclePackingChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAqF;AAErF,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,kBAAkB,GAAG,IAAA,uBAAW,EAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,mCAA0B,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CAC1D,CAAC","file":"CirclePackingChart.js","sourcesContent":["import type React from 'react';\nimport type { ICirclePackingChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCirclePackingChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface CirclePackingChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICirclePackingChartSpec>, 'type'> {}\n\nexport const CirclePackingChart = createChart<\n React.PropsWithChildren<CirclePackingChartProps> & { type?: 'circlePacking' }\n>(\n 'CirclePackingChart',\n {\n type: 'circlePacking',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerCirclePackingChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.CircularProgressChart = (0, BaseChart_1.createChart)("CircularProgressChart", {
10
10
  type: "circularProgress",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerCircularProgressChart, vchart_1.registerLabel, vchart_1.registerIndicator, ...polar_1.registers ]);
13
13
  //# sourceMappingURL=CircularProgressChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CircularProgressChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA2G;AAE3G,2CAA0C;AAC1C,6CAA8C;AAMjC,QAAA,qBAAqB,GAAG,IAAA,uBAAW,EAG9C,uBAAuB,EACvB;IACE,IAAI,EAAE,kBAAkB;IACxB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,sCAA6B,EAAE,sBAAa,EAAE,0BAAiB,EAAE,GAAG,iBAAS,CAAC,CAChF,CAAC","file":"CircularProgressChart.js","sourcesContent":["import type React from 'react';\nimport type { ICircularProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCircularProgressChart, registerLabel, registerIndicator } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/polar';\n\nexport interface CircularProgressChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICircularProgressChartSpec>, 'type'> {}\n\nexport const CircularProgressChart = createChart<\n React.PropsWithChildren<CircularProgressChartProps> & { type?: 'circularProgress' }\n>(\n 'CircularProgressChart',\n {\n type: 'circularProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCircularProgressChart, registerLabel, registerIndicator, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CircularProgressChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA2G;AAE3G,2CAA0C;AAC1C,6CAA8C;AAMjC,QAAA,qBAAqB,GAAG,IAAA,uBAAW,EAG9C,uBAAuB,EACvB;IACE,IAAI,EAAE,kBAAkB;IACxB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,sCAA6B,EAAE,sBAAa,EAAE,0BAAiB,EAAE,GAAG,iBAAS,CAAC,CAChF,CAAC","file":"CircularProgressChart.js","sourcesContent":["import type React from 'react';\nimport type { ICircularProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCircularProgressChart, registerLabel, registerIndicator } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/polar';\n\nexport interface CircularProgressChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICircularProgressChartSpec>, 'type'> {}\n\nexport const CircularProgressChart = createChart<\n React.PropsWithChildren<CircularProgressChartProps> & { type?: 'circularProgress' }\n>(\n 'CircularProgressChart',\n {\n type: 'circularProgress',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerCircularProgressChart, registerLabel, registerIndicator, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.CommonChart = (0, BaseChart_1.createChart)("CommonChart", {
10
10
  type: "common",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerCommonChart, vchart_1.registerCartesianLinearAxis, vchart_1.registerCartesianBandAxis, vchart_1.registerCartesianTimeAxis, vchart_1.registerCartesianLogAxis, vchart_1.registerCartesianCrossHair, vchart_1.registerLabel, vchart_1.registerTotalLabel, vchart_1.registerAreaSeries, vchart_1.registerBarSeries, vchart_1.registerLineSeries, vchart_1.registerScatterSeries, vchart_1.registerPieSeries ]);
13
13
  //# sourceMappingURL=CommonChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CommonChart.tsx"],"names":[],"mappings":";;;AAEA,6CAe0B;AAE1B,2CAA0C;AAM7B,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,eAA4B;CACjD,EACD;IACE,4BAAmB;IACnB,oCAA2B;IAC3B,kCAAyB;IACzB,kCAAyB;IACzB,iCAAwB;IACxB,mCAA0B;IAE1B,sBAAa;IACb,2BAAkB;IAElB,2BAAkB;IAClB,0BAAiB;IACjB,2BAAkB;IAClB,8BAAqB;IACrB,0BAAiB;CAClB,CACF,CAAC","file":"CommonChart.js","sourcesContent":["import type React from 'react';\nimport type { ICommonChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerCommonChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel,\n registerTotalLabel,\n registerAreaSeries,\n registerBarSeries,\n registerLineSeries,\n registerScatterSeries,\n registerPieSeries\n} from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface CommonChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<ICommonChartSpec>, 'type'> {}\n\nexport const CommonChart = createChart<React.PropsWithChildren<CommonChartProps> & { type?: 'common' }>(\n 'CommonChart',\n {\n type: 'common',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerCommonChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n\n registerLabel,\n registerTotalLabel,\n\n registerAreaSeries,\n registerBarSeries,\n registerLineSeries,\n registerScatterSeries,\n registerPieSeries\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CommonChart.tsx"],"names":[],"mappings":";;;AAEA,6CAe0B;AAE1B,2CAA0C;AAM7B,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,iBAAiB,EAAE,eAA4B;CAChD,EACD;IACE,4BAAmB;IACnB,oCAA2B;IAC3B,kCAAyB;IACzB,kCAAyB;IACzB,iCAAwB;IACxB,mCAA0B;IAE1B,sBAAa;IACb,2BAAkB;IAElB,2BAAkB;IAClB,0BAAiB;IACjB,2BAAkB;IAClB,8BAAqB;IACrB,0BAAiB;CAClB,CACF,CAAC","file":"CommonChart.js","sourcesContent":["import type React from 'react';\nimport type { ICommonChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerCommonChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel,\n registerTotalLabel,\n registerAreaSeries,\n registerBarSeries,\n registerLineSeries,\n registerScatterSeries,\n registerPieSeries\n} from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface CommonChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<Partial<ICommonChartSpec>, 'type'> {}\n\nexport const CommonChart = createChart<React.PropsWithChildren<CommonChartProps> & { type?: 'common' }>(\n 'CommonChart',\n {\n type: 'common',\n vchartConstructor: VChart as IVChartConstructor\n },\n [\n registerCommonChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n\n registerLabel,\n registerTotalLabel,\n\n registerAreaSeries,\n registerBarSeries,\n registerLineSeries,\n registerScatterSeries,\n registerPieSeries\n ]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.CorrelationChart = (0, BaseChart_1.createChart)("CorrelationChart", {
10
10
  type: "correlation",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerCorrelationChart, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=CorrelationChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CorrelationChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAoE;AAEpE,2CAA0C;AAC1C,+CAA+C;AAMlC,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":"CorrelationChart.js","sourcesContent":["import type React from 'react';\nimport type { ICorrelationChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCorrelationChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface CorrelationChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICorrelationChartSpec>, 'type'> {}\n\nexport const CorrelationChart = createChart<React.PropsWithChildren<CorrelationChartProps> & { type?: 'correlation' }>(\n 'CorrelationChart',\n {\n type: 'correlation',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCorrelationChart, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CorrelationChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAoE;AAEpE,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,iCAAwB,EAAE,GAAG,kBAAS,CAAC,CACzC,CAAC","file":"CorrelationChart.js","sourcesContent":["import type React from 'react';\nimport type { ICorrelationChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCorrelationChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface CorrelationChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ICorrelationChartSpec>, 'type'> {}\n\nexport const CorrelationChart = createChart<React.PropsWithChildren<CorrelationChartProps> & { type?: 'correlation' }>(\n 'CorrelationChart',\n {\n type: 'correlation',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerCorrelationChart, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.Funnel3dChart = (0, BaseChart_1.createChart)("Funnel3dChart", {
10
10
  type: "funnel3d",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_extension_1.registerFunnel3dChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=Funnel3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Funnel3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,2CAA0C;AAC1C,+CAA+C;AAE/C,iEAAmE;AAMtD,QAAA,aAAa,GAAG,IAAA,uBAAW,EACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,wCAAqB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACrD,CAAC","file":"Funnel3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\nimport type { IFunnel3dChartSpec } from '@visactor/vchart-extension';\nimport { registerFunnel3dChart } from '@visactor/vchart-extension';\n\nexport interface Funnel3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IFunnel3dChartSpec>, 'type'> {}\n\nexport const Funnel3dChart = createChart<React.PropsWithChildren<Funnel3dChartProps> & { type?: 'funnel3d' }>(\n 'Funnel3dChart',\n {\n type: 'funnel3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnel3dChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Funnel3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,2CAA0C;AAC1C,+CAA+C;AAE/C,iEAAmE;AAMtD,QAAA,aAAa,GAAG,IAAA,uBAAW,EACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,wCAAqB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACrD,CAAC","file":"Funnel3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\nimport type { IFunnel3dChartSpec } from '@visactor/vchart-extension';\nimport { registerFunnel3dChart } from '@visactor/vchart-extension';\n\nexport interface Funnel3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IFunnel3dChartSpec>, 'type'> {}\n\nexport const Funnel3dChart = createChart<React.PropsWithChildren<Funnel3dChartProps> & { type?: 'funnel3d' }>(\n 'Funnel3dChart',\n {\n type: 'funnel3d',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerFunnel3dChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.FunnelChart = (0, BaseChart_1.createChart)("FunnelChart", {
10
10
  type: "funnel",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerFunnelChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=FunnelChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/FunnelChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA8E;AAE9E,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,4BAAmB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACnD,CAAC","file":"FunnelChart.js","sourcesContent":["import type React from 'react';\nimport type { IFunnelChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnelChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface FunnelChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IFunnelChartSpec>, 'type'> {}\n\nexport const FunnelChart = createChart<React.PropsWithChildren<FunnelChartProps> & { type?: 'funnel' }>(\n 'FunnelChart',\n {\n type: 'funnel',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnelChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/FunnelChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA8E;AAE9E,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,4BAAmB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACnD,CAAC","file":"FunnelChart.js","sourcesContent":["import type React from 'react';\nimport type { IFunnelChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnelChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface FunnelChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IFunnelChartSpec>, 'type'> {}\n\nexport const FunnelChart = createChart<React.PropsWithChildren<FunnelChartProps> & { type?: 'funnel' }>(\n 'FunnelChart',\n {\n type: 'funnel',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerFunnelChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.GaugeChart = (0, BaseChart_1.createChart)("GaugeChart", {
10
10
  type: "gauge",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerGaugeChart, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=GaugeChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/GaugeChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA8D;AAE9D,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,2BAAkB,EAAE,GAAG,kBAAS,CAAC,CACnC,CAAC","file":"GaugeChart.js","sourcesContent":["import type React from 'react';\nimport type { IGaugeChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerGaugeChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface GaugeChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IGaugeChartSpec>, 'type'> {}\n\nexport const GaugeChart = createChart<React.PropsWithChildren<GaugeChartProps> & { type?: 'gauge' }>(\n 'GaugeChart',\n {\n type: 'gauge',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerGaugeChart, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/GaugeChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA8D;AAE9D,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,2BAAkB,EAAE,GAAG,kBAAS,CAAC,CACnC,CAAC","file":"GaugeChart.js","sourcesContent":["import type React from 'react';\nimport type { IGaugeChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerGaugeChart } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface GaugeChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IGaugeChartSpec>, 'type'> {}\n\nexport const GaugeChart = createChart<React.PropsWithChildren<GaugeChartProps> & { type?: 'gauge' }>(\n 'GaugeChart',\n {\n type: 'gauge',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerGaugeChart, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.HeatmapChart = (0, BaseChart_1.createChart)("HeatmapChart", {
10
10
  type: "heatmap",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerHeatmapChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=HeatmapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/HeatmapChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+E;AAE/E,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,6BAAoB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACpD,CAAC","file":"HeatmapChart.js","sourcesContent":["import type React from 'react';\nimport type { IHeatmapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHeatmapChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface HeatmapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHeatmapChartSpec>, 'type'> {\n //\n}\n\nexport const HeatmapChart = createChart<React.PropsWithChildren<HeatmapChartProps> & { type?: 'heatmap' }>(\n 'HeatmapChart',\n {\n type: 'heatmap',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHeatmapChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/HeatmapChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA+E;AAE/E,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,YAAY,GAAG,IAAA,uBAAW,EACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,6BAAoB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACpD,CAAC","file":"HeatmapChart.js","sourcesContent":["import type React from 'react';\nimport type { IHeatmapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHeatmapChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface HeatmapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHeatmapChartSpec>, 'type'> {\n //\n}\n\nexport const HeatmapChart = createChart<React.PropsWithChildren<HeatmapChartProps> & { type?: 'heatmap' }>(\n 'HeatmapChart',\n {\n type: 'heatmap',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerHeatmapChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.Histogram3dChart = (0, BaseChart_1.createChart)("Histogram3dChart", {
10
10
  type: "histogram3d",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_extension_1.registerHistogram3dChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=Histogram3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Histogram3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,2CAA0C;AAC1C,qDAAkD;AAElD,iEAAsE;AAMzD,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,2CAAwB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACxD,CAAC","file":"Histogram3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\nimport type { IHistogram3dChartSpec } from '@visactor/vchart-extension';\nimport { registerHistogram3dChart } from '@visactor/vchart-extension';\n\nexport interface Histogram3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHistogram3dChartSpec>, 'type'> {}\n\nexport const Histogram3dChart = createChart<React.PropsWithChildren<Histogram3dChartProps> & { type?: 'histogram3d' }>(\n 'Histogram3dChart',\n {\n type: 'histogram3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHistogram3dChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Histogram3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,2CAA0C;AAC1C,qDAAkD;AAElD,iEAAsE;AAMzD,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,2CAAwB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACxD,CAAC","file":"Histogram3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\nimport type { IHistogram3dChartSpec } from '@visactor/vchart-extension';\nimport { registerHistogram3dChart } from '@visactor/vchart-extension';\n\nexport interface Histogram3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHistogram3dChartSpec>, 'type'> {}\n\nexport const Histogram3dChart = createChart<React.PropsWithChildren<Histogram3dChartProps> & { type?: 'histogram3d' }>(\n 'Histogram3dChart',\n {\n type: 'histogram3d',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerHistogram3dChart, registerLabel, ...registers]\n);\n"]}
@@ -8,5 +8,5 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.HistogramChart = (0, BaseChart_1.createChart)("HistogramChart", {
10
10
  type: "histogram",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerHistogramChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/HistogramChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAiF;AAEjF,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,cAAc,GAAG,IAAA,uBAAW,EACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,+BAAsB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACtD,CAAC","file":"HistogramChart.js","sourcesContent":["import type React from 'react';\nimport type { IHistogramChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHistogramChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface HistogramChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHistogramChartSpec>, 'type'> {}\n\nexport const HistogramChart = createChart<React.PropsWithChildren<HistogramChartProps> & { type?: 'histogram' }>(\n 'HistogramChart',\n {\n type: 'histogram',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHistogramChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/HistogramChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAiF;AAEjF,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,cAAc,GAAG,IAAA,uBAAW,EACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,+BAAsB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACtD,CAAC","file":"HistogramChart.js","sourcesContent":["import type React from 'react';\nimport type { IHistogramChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHistogramChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface HistogramChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IHistogramChartSpec>, 'type'> {}\n\nexport const HistogramChart = createChart<React.PropsWithChildren<HistogramChartProps> & { type?: 'histogram' }>(\n 'HistogramChart',\n {\n type: 'histogram',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerHistogramChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.LineChart = (0, BaseChart_1.createChart)("LineChart", {
10
10
  type: "line",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerLineChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=LineChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LineChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA4E;AAE5E,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,SAAS,GAAG,IAAA,uBAAW,EAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,0BAAiB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACjD,CAAC","file":"LineChart.js","sourcesContent":["import type React from 'react';\nimport type { ILineChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLineChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface LineChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILineChartSpec>, 'type'> {}\n\nexport const LineChart = createChart<React.PropsWithChildren<LineChartProps> & { type?: 'line' }>(\n 'LineChart',\n {\n type: 'line',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLineChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LineChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA4E;AAE5E,2CAA0C;AAC1C,qDAAkD;AAMrC,QAAA,SAAS,GAAG,IAAA,uBAAW,EAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,0BAAiB,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CACjD,CAAC","file":"LineChart.js","sourcesContent":["import type React from 'react';\nimport type { ILineChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLineChart, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface LineChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILineChartSpec>, 'type'> {}\n\nexport const LineChart = createChart<React.PropsWithChildren<LineChartProps> & { type?: 'line' }>(\n 'LineChart',\n {\n type: 'line',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerLineChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), cartesian_1 = require("./registers
8
8
 
9
9
  exports.LinearProgressChart = (0, BaseChart_1.createChart)("LinearProgressChart", {
10
10
  type: "linearProgress",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerLinearProgressChart, vchart_1.registerLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=LinearProgressChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LinearProgressChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAsF;AACtF,qDAAkD;AAElD,2CAA0C;AAM7B,QAAA,mBAAmB,GAAG,IAAA,uBAAW,EAG5C,qBAAqB,EACrB;IACE,IAAI,EAAE,gBAAgB;IACtB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,oCAA2B,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CAC3D,CAAC","file":"LinearProgressChart.js","sourcesContent":["import type React from 'react';\nimport type { ILinearProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLinearProgressChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface LinearProgressChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILinearProgressChartSpec>, 'type'> {}\n\nexport const LinearProgressChart = createChart<\n React.PropsWithChildren<LinearProgressChartProps> & { type?: 'linearProgress' }\n>(\n 'LinearProgressChart',\n {\n type: 'linearProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLinearProgressChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LinearProgressChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAsF;AACtF,qDAAkD;AAElD,2CAA0C;AAM7B,QAAA,mBAAmB,GAAG,IAAA,uBAAW,EAG5C,qBAAqB,EACrB;IACE,IAAI,EAAE,gBAAgB;IACtB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,oCAA2B,EAAE,sBAAa,EAAE,GAAG,qBAAS,CAAC,CAC3D,CAAC","file":"LinearProgressChart.js","sourcesContent":["import type React from 'react';\nimport type { ILinearProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLinearProgressChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/cartesian';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface LinearProgressChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILinearProgressChartSpec>, 'type'> {}\n\nexport const LinearProgressChart = createChart<\n React.PropsWithChildren<LinearProgressChartProps> & { type?: 'linearProgress' }\n>(\n 'LinearProgressChart',\n {\n type: 'linearProgress',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerLinearProgressChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.LiquidChart = (0, BaseChart_1.createChart)("LiquidChart", {
10
10
  type: "liquid",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerLiquidChart, vchart_1.registerIndicator, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=LiquidChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LiquidChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAkF;AAElF,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,4BAAmB,EAAE,0BAAiB,EAAE,GAAG,kBAAS,CAAC,CACvD,CAAC","file":"LiquidChart.js","sourcesContent":["import type React from 'react';\nimport type { ILiquidChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLiquidChart, registerIndicator } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface LiquidChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILiquidChartSpec>, 'type'> {}\n\nexport const LiquidChart = createChart<React.PropsWithChildren<LiquidChartProps> & { type?: 'liquid' }>(\n 'LiquidChart',\n {\n type: 'liquid',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLiquidChart, registerIndicator, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LiquidChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAkF;AAElF,2CAA0C;AAC1C,+CAA+C;AAMlC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,4BAAmB,EAAE,0BAAiB,EAAE,GAAG,kBAAS,CAAC,CACvD,CAAC","file":"LiquidChart.js","sourcesContent":["import type React from 'react';\nimport type { ILiquidChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLiquidChart, registerIndicator } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\n\nexport interface LiquidChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<ILiquidChartSpec>, 'type'> {}\n\nexport const LiquidChart = createChart<React.PropsWithChildren<LiquidChartProps> & { type?: 'liquid' }>(\n 'LiquidChart',\n {\n type: 'liquid',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerLiquidChart, registerIndicator, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), simple_1 = require("./registers/si
8
8
 
9
9
  exports.MapChart = (0, BaseChart_1.createChart)("MapChart", {
10
10
  type: "map",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerMapChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=MapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/MapChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA2E;AAC3E,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,QAAQ,GAAG,IAAA,uBAAW,EACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,yBAAgB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CAChD,CAAC","file":"MapChart.js","sourcesContent":["import type React from 'react';\nimport type { IMapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMapChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface MapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IMapChartSpec>, 'type'> {}\n\nexport const MapChart = createChart<React.PropsWithChildren<MapChartProps> & { type?: 'map' }>(\n 'MapChart',\n {\n type: 'map',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerMapChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/MapChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA2E;AAC3E,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,QAAQ,GAAG,IAAA,uBAAW,EACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,yBAAgB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CAChD,CAAC","file":"MapChart.js","sourcesContent":["import type React from 'react';\nimport type { IMapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMapChart, registerLabel } from '@visactor/vchart';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface MapChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IMapChartSpec>, 'type'> {}\n\nexport const MapChart = createChart<React.PropsWithChildren<MapChartProps> & { type?: 'map' }>(\n 'MapChart',\n {\n type: 'map',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerMapChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.MosaicChart = (0, BaseChart_1.createChart)("MosaicChart", {
10
10
  type: "mosaic",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerMosaicChart, vchart_1.registerLabel, vchart_1.registerTotalLabel, ...cartesian_1.registers ]);
13
13
  //# sourceMappingURL=MosaicChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/MosaicChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAkG;AAElG,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,4BAAmB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACvE,CAAC","file":"MosaicChart.js","sourcesContent":["import type React from 'react';\nimport type { IMosaicChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMosaicChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface MosaicChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IMosaicChartSpec>, 'type'> {\n //\n}\n\nexport const MosaicChart = createChart<React.PropsWithChildren<MosaicChartProps> & { type?: 'mosaic' }>(\n 'MosaicChart',\n {\n type: 'mosaic',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerMosaicChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/MosaicChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAkG;AAElG,2CAA0C;AAC1C,qDAAkD;AAQrC,QAAA,WAAW,GAAG,IAAA,uBAAW,EACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,4BAAmB,EAAE,sBAAa,EAAE,2BAAkB,EAAE,GAAG,qBAAS,CAAC,CACvE,CAAC","file":"MosaicChart.js","sourcesContent":["import type React from 'react';\nimport type { IMosaicChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMosaicChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/cartesian';\n\nexport interface MosaicChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IMosaicChartSpec>, 'type'> {\n //\n}\n\nexport const MosaicChart = createChart<React.PropsWithChildren<MosaicChartProps> & { type?: 'mosaic' }>(\n 'MosaicChart',\n {\n type: 'mosaic',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerMosaicChart, registerLabel, registerTotalLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), vchart_extension_1 = require("@vis
8
8
 
9
9
  exports.PictogramChart = (0, BaseChart_1.createChart)("PictogramChart", {
10
10
  type: "pictogram",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_extension_1.registerPictogramChart, vchart_1.registerLabel, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=PictogramChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/PictogramChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,iEAAoE;AACpE,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,cAAc,GAAG,IAAA,uBAAW,EACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,yCAAsB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACtD,CAAC","file":"PictogramChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { IPictogramChartSpec } from '@visactor/vchart-extension';\nimport { registerPictogramChart } from '@visactor/vchart-extension';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface PictogramChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IPictogramChartSpec>, 'type'> {}\n\nexport const PictogramChart = createChart<React.PropsWithChildren<PictogramChartProps> & { type?: 'pictogram' }>(\n 'PictogramChart',\n {\n type: 'pictogram',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPictogramChart, registerLabel, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/PictogramChart.tsx"],"names":[],"mappings":";;;AAEA,6CAAyD;AAEzD,iEAAoE;AACpE,+CAA+C;AAE/C,2CAA0C;AAM7B,QAAA,cAAc,GAAG,IAAA,uBAAW,EACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,yCAAsB,EAAE,sBAAa,EAAE,GAAG,kBAAS,CAAC,CACtD,CAAC","file":"PictogramChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLabel } from '@visactor/vchart';\nimport type { IPictogramChartSpec } from '@visactor/vchart-extension';\nimport { registerPictogramChart } from '@visactor/vchart-extension';\nimport { registers } from './registers/simple';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\n\nexport interface PictogramChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IPictogramChartSpec>, 'type'> {}\n\nexport const PictogramChart = createChart<React.PropsWithChildren<PictogramChartProps> & { type?: 'pictogram' }>(\n 'PictogramChart',\n {\n type: 'pictogram',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerPictogramChart, registerLabel, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.Pie3dChart = (0, BaseChart_1.createChart)("Pie3dChart", {
10
10
  type: "pie3d",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_extension_1.registerPie3dChart, vchart_1.registerLabel, vchart_1.registerIndicator, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=Pie3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Pie3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA4E;AAE5E,2CAA0C;AAC1C,+CAA+C;AAC/C,iEAAgE;AAOnD,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,eAA4B;CACjD,EACD,CAAC,qCAAkB,EAAE,sBAAa,EAAE,0BAAiB,EAAE,GAAG,kBAAS,CAAC,CACrE,CAAC","file":"Pie3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerIndicator, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\nimport { registerPie3dChart } from '@visactor/vchart-extension';\nimport type { IPie3dChartSpec } from '@visactor/vchart-extension';\n\nexport interface Pie3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IPie3dChartSpec>, 'type'> {}\n\nexport const Pie3dChart = createChart<React.PropsWithChildren<Pie3dChartProps> & { type?: 'pie3d' }>(\n 'Pie3dChart',\n {\n type: 'pie3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPie3dChart, registerLabel, registerIndicator, ...registers]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Pie3dChart.tsx"],"names":[],"mappings":";;;AAEA,6CAA4E;AAE5E,2CAA0C;AAC1C,+CAA+C;AAC/C,iEAAgE;AAOnD,QAAA,UAAU,GAAG,IAAA,uBAAW,EACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,iBAAiB,EAAE,eAA4B;CAChD,EACD,CAAC,qCAAkB,EAAE,sBAAa,EAAE,0BAAiB,EAAE,GAAG,kBAAS,CAAC,CACrE,CAAC","file":"Pie3dChart.js","sourcesContent":["import type React from 'react';\nimport type { IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerIndicator, registerLabel } from '@visactor/vchart';\nimport type { BaseChartProps } from './BaseChart';\nimport { createChart } from './BaseChart';\nimport { registers } from './registers/simple';\nimport { registerPie3dChart } from '@visactor/vchart-extension';\nimport type { IPie3dChartSpec } from '@visactor/vchart-extension';\n\nexport interface Pie3dChartProps\n extends Omit<BaseChartProps, 'container' | 'type' | 'data'>,\n Omit<Partial<IPie3dChartSpec>, 'type'> {}\n\nexport const Pie3dChart = createChart<React.PropsWithChildren<Pie3dChartProps> & { type?: 'pie3d' }>(\n 'Pie3dChart',\n {\n type: 'pie3d',\n vchartConstructor: VChart as IVChartConstructor\n },\n [registerPie3dChart, registerLabel, registerIndicator, ...registers]\n);\n"]}
@@ -8,6 +8,6 @@ const vchart_1 = require("@visactor/vchart"), BaseChart_1 = require("./BaseChart
8
8
 
9
9
  exports.PieChart = (0, BaseChart_1.createChart)("PieChart", {
10
10
  type: "pie",
11
- vchartConstrouctor: vchart_1.VChart
11
+ vchartConstructor: vchart_1.VChart
12
12
  }, [ vchart_1.registerPieChart, vchart_1.registerLabel, vchart_1.registerIndicator, ...simple_1.registers ]);
13
13
  //# sourceMappingURL=PieChart.js.map