@visactor/vchart-types 1.8.0-alpha.0 → 1.8.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 (279) hide show
  1. package/package.json +3 -3
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/utils.d.ts +2 -2
  4. package/types/chart/area/area-transformer.d.ts +6 -0
  5. package/types/chart/area/area.d.ts +6 -4
  6. package/types/chart/area/index.d.ts +1 -0
  7. package/types/chart/bar/3d/bar-3d-transformer.d.ts +6 -0
  8. package/types/chart/bar/3d/bar-3d.d.ts +14 -0
  9. package/types/chart/bar/3d/index.d.ts +2 -0
  10. package/types/chart/bar/bar-transformer.d.ts +6 -0
  11. package/types/chart/bar/bar.d.ts +7 -4
  12. package/types/chart/bar/index.d.ts +2 -1
  13. package/types/chart/base/base-chart-transformer.d.ts +21 -0
  14. package/types/chart/base/base-chart.d.ts +148 -0
  15. package/types/chart/base/index.d.ts +2 -0
  16. package/types/chart/box-plot/box-plot-transformer.d.ts +6 -0
  17. package/types/chart/box-plot/box-plot.d.ts +6 -4
  18. package/types/chart/box-plot/index.d.ts +1 -0
  19. package/types/chart/cartesian/cartesian-transformer.d.ts +8 -0
  20. package/types/chart/cartesian/index.d.ts +1 -1
  21. package/types/chart/circle-packing/circle-packing-transformer.d.ts +7 -0
  22. package/types/chart/circle-packing/circle-packing.d.ts +6 -5
  23. package/types/chart/circle-packing/index.d.ts +1 -0
  24. package/types/chart/common/common-transformer.d.ts +7 -0
  25. package/types/chart/common/common.d.ts +7 -4
  26. package/types/chart/common/index.d.ts +1 -0
  27. package/types/chart/correlation/correlation-transformer.d.ts +6 -0
  28. package/types/chart/correlation/correlation.d.ts +6 -4
  29. package/types/chart/correlation/index.d.ts +1 -0
  30. package/types/chart/funnel/3d/funnel-3d.d.ts +14 -0
  31. package/types/chart/funnel/3d/index.d.ts +1 -0
  32. package/types/chart/funnel/funnel-transformer.d.ts +8 -0
  33. package/types/chart/funnel/funnel.d.ts +7 -2
  34. package/types/chart/funnel/index.d.ts +2 -1
  35. package/types/chart/funnel/interface.d.ts +1 -1
  36. package/types/chart/gauge/gauge-transformer.d.ts +9 -0
  37. package/types/chart/gauge/gauge.d.ts +8 -6
  38. package/types/chart/gauge/index.d.ts +1 -0
  39. package/types/chart/gauge/interface.d.ts +2 -2
  40. package/types/chart/heatmap/heatmap-transformer.d.ts +5 -0
  41. package/types/chart/heatmap/heatmap.d.ts +7 -3
  42. package/types/chart/heatmap/index.d.ts +1 -0
  43. package/types/chart/histogram/3d/histogram-3d.d.ts +14 -0
  44. package/types/chart/histogram/3d/index.d.ts +1 -0
  45. package/types/chart/histogram/base/base.d.ts +8 -0
  46. package/types/chart/histogram/base/histogram-base-transformer.d.ts +6 -0
  47. package/types/chart/histogram/base/index.d.ts +2 -0
  48. package/types/chart/histogram/histogram-transformer.d.ts +5 -0
  49. package/types/chart/histogram/histogram.d.ts +7 -3
  50. package/types/chart/histogram/index.d.ts +2 -1
  51. package/types/chart/index.d.ts +2 -4
  52. package/types/chart/interface/chart.d.ts +20 -7
  53. package/types/chart/interface/common.d.ts +17 -1
  54. package/types/chart/line/index.d.ts +1 -0
  55. package/types/chart/line/interface.d.ts +1 -1
  56. package/types/chart/line/line-transformer.d.ts +6 -0
  57. package/types/chart/line/line.d.ts +6 -4
  58. package/types/chart/map/index.d.ts +1 -0
  59. package/types/chart/map/map-transformer.d.ts +8 -0
  60. package/types/chart/map/map.d.ts +6 -6
  61. package/types/chart/pie/3d/index.d.ts +1 -0
  62. package/types/chart/pie/3d/pie-3d.d.ts +17 -0
  63. package/types/chart/pie/base/base.d.ts +8 -0
  64. package/types/chart/pie/base/index.d.ts +2 -0
  65. package/types/chart/pie/base/pie-transformer.d.ts +7 -0
  66. package/types/chart/pie/index.d.ts +2 -1
  67. package/types/chart/pie/pie.d.ts +7 -2
  68. package/types/chart/polar/index.d.ts +1 -1
  69. package/types/chart/polar/polar-transformer.d.ts +9 -0
  70. package/types/chart/polar/progress-like/index.d.ts +1 -0
  71. package/types/chart/polar/progress-like/progress-like-transformer.d.ts +8 -0
  72. package/types/chart/polar/rose-like/index.d.ts +1 -0
  73. package/types/chart/polar/rose-like/rose-like-transformer.d.ts +7 -0
  74. package/types/chart/progress/circular/circular-progress-transformer.d.ts +7 -0
  75. package/types/chart/progress/circular/circular.d.ts +8 -4
  76. package/types/chart/progress/circular/index.d.ts +1 -0
  77. package/types/chart/progress/circular/interface.d.ts +1 -1
  78. package/types/chart/progress/linear/index.d.ts +1 -0
  79. package/types/chart/progress/linear/interface.d.ts +1 -1
  80. package/types/chart/progress/linear/linear-progress-transformer.d.ts +7 -0
  81. package/types/chart/progress/linear/linear.d.ts +6 -5
  82. package/types/chart/radar/index.d.ts +1 -0
  83. package/types/chart/radar/radar-transformer.d.ts +6 -0
  84. package/types/chart/radar/radar.d.ts +8 -4
  85. package/types/chart/range-area/index.d.ts +1 -0
  86. package/types/chart/range-area/range-area-transformer.d.ts +6 -0
  87. package/types/chart/range-area/range-area.d.ts +7 -4
  88. package/types/chart/range-column/3d/index.d.ts +2 -0
  89. package/types/chart/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  90. package/types/chart/range-column/3d/range-column-3d.d.ts +13 -0
  91. package/types/chart/range-column/index.d.ts +2 -1
  92. package/types/chart/range-column/range-column-transformer.d.ts +6 -0
  93. package/types/chart/range-column/range-column.d.ts +7 -4
  94. package/types/chart/rose/index.d.ts +1 -0
  95. package/types/chart/rose/rose-transformer.d.ts +6 -0
  96. package/types/chart/rose/rose.d.ts +8 -4
  97. package/types/chart/sankey/index.d.ts +1 -0
  98. package/types/chart/sankey/sankey-transformer.d.ts +6 -0
  99. package/types/chart/sankey/sankey.d.ts +6 -4
  100. package/types/chart/scatter/index.d.ts +1 -0
  101. package/types/chart/scatter/scatter-transformer.d.ts +5 -0
  102. package/types/chart/scatter/scatter.d.ts +6 -3
  103. package/types/chart/sequence/index.d.ts +1 -0
  104. package/types/chart/sequence/sequence-transformer.d.ts +7 -0
  105. package/types/chart/sequence/sequence.d.ts +9 -7
  106. package/types/chart/sunburst/index.d.ts +1 -0
  107. package/types/chart/sunburst/sunburst-transformer.d.ts +7 -0
  108. package/types/chart/sunburst/sunburst.d.ts +6 -5
  109. package/types/chart/treemap/index.d.ts +1 -0
  110. package/types/chart/treemap/treemap-transformer.d.ts +7 -0
  111. package/types/chart/treemap/treemap.d.ts +7 -4
  112. package/types/chart/util.d.ts +3 -3
  113. package/types/chart/waterfall/index.d.ts +1 -0
  114. package/types/chart/waterfall/waterfall-transformer.d.ts +7 -0
  115. package/types/chart/waterfall/waterfall.d.ts +6 -3
  116. package/types/chart/word-cloud/3d/index.d.ts +2 -0
  117. package/types/chart/word-cloud/3d/word-cloud-3d-transformer.d.ts +6 -0
  118. package/types/chart/word-cloud/3d/word-cloud-3d.d.ts +15 -0
  119. package/types/chart/word-cloud/base/base.d.ts +9 -0
  120. package/types/chart/word-cloud/base/index.d.ts +2 -0
  121. package/types/chart/word-cloud/base/word-cloud-base-transformer.d.ts +5 -0
  122. package/types/chart/word-cloud/index.d.ts +2 -1
  123. package/types/chart/word-cloud/word-cloud-transformer.d.ts +5 -0
  124. package/types/chart/word-cloud/word-cloud.d.ts +6 -3
  125. package/types/compile/mark/compilable-mark.d.ts +0 -5
  126. package/types/compile/mark/interface.d.ts +1 -4
  127. package/types/component/axis/base-axis.d.ts +3 -4
  128. package/types/component/axis/cartesian/axis.d.ts +6 -7
  129. package/types/component/axis/cartesian/band-axis.d.ts +1 -0
  130. package/types/component/axis/cartesian/linear-axis.d.ts +1 -0
  131. package/types/component/axis/cartesian/log-axis.d.ts +1 -0
  132. package/types/component/axis/cartesian/symlog-axis.d.ts +1 -0
  133. package/types/component/axis/cartesian/time-axis.d.ts +1 -0
  134. package/types/component/axis/cartesian/util/common.d.ts +4 -0
  135. package/types/component/axis/interface/common.d.ts +1 -0
  136. package/types/component/axis/polar/axis.d.ts +7 -7
  137. package/types/component/axis/polar/band-axis.d.ts +1 -0
  138. package/types/component/axis/polar/interface/common.d.ts +0 -1
  139. package/types/component/axis/polar/linear-axis.d.ts +1 -0
  140. package/types/component/axis/polar/util/common.d.ts +5 -0
  141. package/types/component/axis/polar/util/index.d.ts +1 -0
  142. package/types/component/axis/util.d.ts +4 -3
  143. package/types/component/base/base-component-transformer.d.ts +10 -0
  144. package/types/component/base/base-component.d.ts +10 -7
  145. package/types/component/base/index.d.ts +1 -0
  146. package/types/component/base/util.d.ts +2 -2
  147. package/types/component/brush/brush.d.ts +7 -5
  148. package/types/component/crosshair/base.d.ts +5 -4
  149. package/types/component/crosshair/cartesian.d.ts +3 -2
  150. package/types/component/crosshair/polar.d.ts +3 -2
  151. package/types/component/crosshair/util.d.ts +3 -4
  152. package/types/component/custom-mark/custom-mark.d.ts +7 -5
  153. package/types/component/data-zoom/data-filter-base-component.d.ts +2 -2
  154. package/types/component/data-zoom/data-zoom/data-zoom-transformer.d.ts +9 -0
  155. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +8 -2
  156. package/types/component/data-zoom/data-zoom/index.d.ts +1 -0
  157. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +5 -1
  158. package/types/component/data-zoom/util.d.ts +2 -2
  159. package/types/component/geo/geo-coordinate.d.ts +4 -4
  160. package/types/component/index.d.ts +1 -1
  161. package/types/component/indicator/indicator.d.ts +5 -4
  162. package/types/component/interface/common.d.ts +6 -4
  163. package/types/component/interface/type.d.ts +8 -0
  164. package/types/component/label/base-label.d.ts +2 -2
  165. package/types/component/label/index.d.ts +2 -0
  166. package/types/component/label/interface.d.ts +2 -2
  167. package/types/component/label/label-transformer.d.ts +8 -0
  168. package/types/component/label/label.d.ts +13 -5
  169. package/types/component/label/total-label.d.ts +28 -0
  170. package/types/component/label/util.d.ts +1 -0
  171. package/types/component/legend/base-legend.d.ts +3 -1
  172. package/types/component/legend/continuous/legend.d.ts +4 -6
  173. package/types/component/legend/discrete/legend.d.ts +4 -7
  174. package/types/component/map-label/component.d.ts +5 -2
  175. package/types/component/marker/mark-area/mark-area.d.ts +6 -4
  176. package/types/component/marker/mark-line/mark-line.d.ts +6 -4
  177. package/types/component/marker/mark-point/mark-point.d.ts +6 -4
  178. package/types/component/player/player.d.ts +4 -4
  179. package/types/component/title/title.d.ts +9 -6
  180. package/types/component/tooltip/index.d.ts +1 -0
  181. package/types/component/tooltip/tooltip-transformer.d.ts +8 -0
  182. package/types/component/tooltip/tooltip.d.ts +10 -8
  183. package/types/component/util.d.ts +2 -2
  184. package/types/constant/event.d.ts +1 -0
  185. package/types/constant/polar.d.ts +0 -10
  186. package/types/core/factory.d.ts +12 -3
  187. package/types/core/index.d.ts +1 -0
  188. package/types/core/interface.d.ts +17 -11
  189. package/types/core/vchart.d.ts +30 -7
  190. package/types/mark/arc-3d.d.ts +1 -0
  191. package/types/model/base-model-transformer.d.ts +24 -0
  192. package/types/model/base-model.d.ts +9 -12
  193. package/types/model/index.d.ts +3 -0
  194. package/types/model/interface.d.ts +31 -4
  195. package/types/plugin/base/base-plugin-service.d.ts +13 -0
  196. package/types/plugin/base/base-plugin.d.ts +9 -0
  197. package/types/plugin/base/interface.d.ts +22 -0
  198. package/types/plugin/chart/index.d.ts +2 -0
  199. package/types/plugin/chart/interface.d.ts +22 -2
  200. package/types/plugin/chart/media-query/index.d.ts +2 -0
  201. package/types/plugin/chart/media-query/interface/common.d.ts +28 -0
  202. package/types/plugin/chart/media-query/interface/index.d.ts +2 -0
  203. package/types/plugin/chart/media-query/interface/spec.d.ts +25 -0
  204. package/types/plugin/chart/media-query/media-query.d.ts +28 -0
  205. package/types/plugin/chart/media-query/util/action.d.ts +3 -0
  206. package/types/plugin/chart/media-query/util/filter.d.ts +4 -0
  207. package/types/plugin/chart/media-query/util/index.d.ts +2 -0
  208. package/types/plugin/chart/media-query/util/query.d.ts +3 -0
  209. package/types/plugin/chart/plugin-service.d.ts +12 -0
  210. package/types/plugin/chart/register.d.ts +2 -0
  211. package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +5 -3
  212. package/types/plugin/components/interface.d.ts +15 -25
  213. package/types/plugin/components/plugin-service.d.ts +2 -10
  214. package/types/plugin/index.d.ts +1 -0
  215. package/types/region/index.d.ts +3 -0
  216. package/types/region/interface.d.ts +10 -2
  217. package/types/region/region-transformer.d.ts +8 -0
  218. package/types/region/region.d.ts +7 -4
  219. package/types/series/area/area-transformer.d.ts +5 -0
  220. package/types/series/area/area.d.ts +5 -3
  221. package/types/series/bar/bar-transformer.d.ts +5 -0
  222. package/types/series/bar/bar.d.ts +5 -3
  223. package/types/series/base/base-series-transformer.d.ts +18 -0
  224. package/types/series/base/base-series.d.ts +7 -8
  225. package/types/series/base/index.d.ts +2 -0
  226. package/types/series/box-plot/box-plot.d.ts +2 -3
  227. package/types/series/box-plot/interface.d.ts +1 -2
  228. package/types/series/cartesian/cartesian.d.ts +1 -1
  229. package/types/series/circle-packing/interface.d.ts +1 -2
  230. package/types/series/correlation/correlation-transformer.d.ts +5 -0
  231. package/types/series/correlation/correlation.d.ts +5 -4
  232. package/types/series/dot/dot.d.ts +2 -3
  233. package/types/series/funnel/3d/funnel-3d-transformer.d.ts +6 -0
  234. package/types/series/funnel/3d/funnel-3d.d.ts +22 -0
  235. package/types/series/funnel/3d/index.d.ts +2 -0
  236. package/types/series/funnel/funnel-transformer.d.ts +5 -0
  237. package/types/series/funnel/funnel.d.ts +5 -3
  238. package/types/series/gauge/animation.d.ts +7 -0
  239. package/types/series/gauge/gauge-pointer.d.ts +2 -3
  240. package/types/series/gauge/gauge-transformer.d.ts +5 -0
  241. package/types/series/gauge/gauge.d.ts +4 -3
  242. package/types/series/geo/interface.d.ts +1 -1
  243. package/types/series/heatmap/heatmap-transformer.d.ts +5 -0
  244. package/types/series/heatmap/heatmap.d.ts +4 -3
  245. package/types/series/index.d.ts +3 -3
  246. package/types/series/interface/common.d.ts +11 -6
  247. package/types/series/interface/series.d.ts +2 -3
  248. package/types/series/line/line.d.ts +5 -3
  249. package/types/series/link/link.d.ts +2 -3
  250. package/types/series/map/map-transformer.d.ts +5 -0
  251. package/types/series/map/map.d.ts +5 -3
  252. package/types/series/mixin/line-mixin-transformer.d.ts +5 -0
  253. package/types/series/mixin/line-mixin.d.ts +1 -2
  254. package/types/series/pie/3d/index.d.ts +2 -0
  255. package/types/series/pie/3d/pie-3d-transformer.d.ts +5 -0
  256. package/types/series/pie/3d/pie-3d.d.ts +20 -0
  257. package/types/series/pie/interface.d.ts +3 -0
  258. package/types/series/pie/pie-transformer.d.ts +9 -0
  259. package/types/series/pie/pie.d.ts +6 -13
  260. package/types/series/polar/index.d.ts +3 -0
  261. package/types/series/polar/polar.d.ts +0 -2
  262. package/types/series/polar/progress-like/animation.d.ts +1 -1
  263. package/types/series/progress/circular/circular.d.ts +2 -3
  264. package/types/series/progress/linear/linear.d.ts +1 -3
  265. package/types/series/radar/radar.d.ts +5 -3
  266. package/types/series/range-column/3d/index.d.ts +2 -0
  267. package/types/series/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  268. package/types/series/range-column/3d/range-column-3d.d.ts +15 -0
  269. package/types/series/range-column/range-column-transformer.d.ts +5 -0
  270. package/types/series/range-column/range-column.d.ts +2 -0
  271. package/types/series/rose/rose-transformer.d.ts +5 -0
  272. package/types/series/rose/rose.d.ts +4 -3
  273. package/types/series/scatter/scatter-transformer.d.ts +5 -0
  274. package/types/series/scatter/scatter.d.ts +5 -3
  275. package/types/series/sunburst/sunburst.d.ts +1 -1
  276. package/types/series/waterfall/waterfall-transformer.d.ts +5 -0
  277. package/types/series/waterfall/waterfall.d.ts +4 -3
  278. package/types/typings/spec/common.d.ts +2 -0
  279. package/types/util/color.d.ts +1 -3
@@ -0,0 +1,5 @@
1
+ import { BaseHistogramChartSpecTransformer } from './base';
2
+ import type { IHistogramChartSpec } from './interface';
3
+ export declare class HistogramChartSpecTransformer<T extends IHistogramChartSpec = IHistogramChartSpec> extends BaseHistogramChartSpecTransformer<T> {
4
+ transformSpec(spec: T): void;
5
+ }
@@ -1,9 +1,13 @@
1
- import { BaseHistogramChart } from './base';
2
- export declare class HistogramChart extends BaseHistogramChart {
1
+ import { BaseHistogramChart } from './base/base';
2
+ import type { IHistogramChartSpec } from './interface';
3
+ import { HistogramChartSpecTransformer } from './histogram-transformer';
4
+ export declare class HistogramChart<T extends IHistogramChartSpec = IHistogramChartSpec> extends BaseHistogramChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof HistogramChartSpecTransformer;
9
+ readonly transformerConstructor: typeof HistogramChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- transformSpec(spec: any): void;
8
12
  }
9
13
  export declare const registerHistogramChart: () => void;
@@ -1,3 +1,4 @@
1
1
  export * from './histogram';
2
- export * from './histogram-3d';
2
+ export * from './3d';
3
3
  export * from './interface';
4
+ export * from './histogram-transformer';
@@ -50,11 +50,9 @@ import type { ICorrelationChartSpec } from './correlation';
50
50
  import { CorrelationChart, registerCorrelationChart } from './correlation';
51
51
  import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';
52
52
  import { WordCloudChart, WordCloud3dChart, registerWordCloudChart, registerWordCloud3dChart } from './word-cloud';
53
- import { BaseChart } from './base-chart';
53
+ import { BaseChart } from './base/base-chart';
54
54
  import type { ICartesianChartSpec } from './cartesian';
55
- import { CartesianChart } from './cartesian';
56
55
  import type { IPolarChartSpec } from './polar';
57
- import { PolarChart, RoseLikeChart, ProgressLikeChart } from './polar';
58
- export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, CorrelationChart, WordCloudChart, WordCloud3dChart, TreemapChart, BaseChart, PolarChart, ProgressLikeChart, RoseLikeChart, CartesianChart };
56
+ export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, CorrelationChart, WordCloudChart, WordCloud3dChart, TreemapChart, BaseChart };
59
57
  export { registerLineChart, registerAreaChart, registerBarChart, registerBar3dChart, registerBoxplotChart, registerCirclePackingChart, registerCircularProgressChart, registerCommonChart, registerFunnelChart, registerFunnel3dChart, registerGaugeChart, registerHeatmapChart, registerHistogramChart, registerHistogram3dChart, registerLinearProgressChart, registerMapChart, registerPie3dChart, registerPieChart, registerRadarChart, registerRangeAreaChart, registerRangeColumn3dChart, registerRangeColumnChart, registerRoseChart, registerSankeyChart, registerScatterChart, registerSequenceChart, registerSunburstChart, registerTreemapChart, registerWaterfallChart, registerWordCloud3dChart, registerWordCloudChart, registerCorrelationChart };
60
58
  export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec };
@@ -2,12 +2,12 @@ import type { IEvent } from '../../event/interface';
2
2
  import type { LayoutCallBack } from '../../layout/interface';
3
3
  import type { IView } from '@visactor/vgrammar-core';
4
4
  import type { IParserOptions } from '@visactor/vdataset/es/parser';
5
- import type { IComponent } from '../../component/interface';
5
+ import type { IComponent, IComponentConstructor } from '../../component/interface';
6
6
  import type { IMark } from '../../mark/interface';
7
- import type { IModel, IUpdateSpecResult } from '../../model/interface';
8
- import type { IRegion } from '../../region/interface';
9
- import type { ISeries } from '../../series/interface';
10
- import type { IChartEvaluateOption, IChartLayoutOption, IChartOption, IChartRenderOption, ILayoutParams } from './common';
7
+ import type { IModel, IModelConstructor, IModelSpecInfo, IUpdateSpecResult } from '../../model/interface';
8
+ import type { IRegion, IRegionConstructor } from '../../region/interface';
9
+ import type { ISeries, ISeriesConstructor } from '../../series/interface';
10
+ import type { IChartEvaluateOption, IChartLayoutOption, IChartOption, IChartRenderOption, IChartSpecInfo, IChartSpecTransformerOption, ILayoutParams } from './common';
11
11
  import type { IBoundsLike, IPadding } from '@visactor/vutils';
12
12
  import type { ICompilable } from '../../compile/interface';
13
13
  import type { IRegionQuerier, MaybeArray, Datum, IMarkStateSpec, StringOrNumber, IShowTooltipOption, IDataValues, ILayoutRect, IData } from '../../typings';
@@ -27,6 +27,7 @@ export interface IChart extends ICompilable {
27
27
  padding: IPadding;
28
28
  readonly type: string;
29
29
  readonly chartData: IChartData;
30
+ readonly transformerConstructor: new (option: IChartSpecTransformerOption) => IChartSpecTransformer;
30
31
  getSpec: () => any;
31
32
  setSpec: (s: any) => void;
32
33
  reDataFlow: () => void;
@@ -42,13 +43,12 @@ export interface IChart extends ICompilable {
42
43
  updateFullData: (data: IDataValues | IDataValues[]) => void;
43
44
  updateGlobalScaleDomain: () => void;
44
45
  created: () => void;
45
- transformSpec: (spec: any) => void;
46
46
  init: () => void;
47
47
  onLayoutStart: (ctx: IChartLayoutOption) => void;
48
48
  onLayoutEnd: (ctx: IChartLayoutOption) => void;
49
49
  onEvaluateEnd: (ctx: IChartEvaluateOption) => void;
50
50
  onRender: (ctx: IChartRenderOption) => void;
51
- onResize: (width: number, height: number) => void;
51
+ onResize: (width: number, height: number, reRender: boolean) => void;
52
52
  onLayout: (view: IView) => void;
53
53
  getAllSeries: () => ISeries[];
54
54
  getRegionsInIndex: (index?: number[]) => IRegion[];
@@ -83,9 +83,22 @@ export interface IChart extends ICompilable {
83
83
  getSeriesData: (id: StringOrNumber | undefined, index: number | undefined) => DataView | undefined;
84
84
  setDimensionIndex: (value: StringOrNumber, opt: DimensionIndexOption) => void;
85
85
  }
86
+ export interface IChartSpecTransformer {
87
+ readonly type: string;
88
+ readonly seriesType: string;
89
+ initChartSpec: (spec: any) => IChartSpecInfo;
90
+ transformSpec: (spec: any) => void;
91
+ transformModelSpec: (spec: any) => IChartSpecInfo;
92
+ createSpecInfo: (chartSpec: any, transform?: (constructor: IModelConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => void) => IChartSpecInfo;
93
+ forEachRegionInSpec: <K>(spec: any, callbackfn: (constructor: IRegionConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo) => K[];
94
+ forEachSeriesInSpec: <K>(spec: any, callbackfn: (constructor: ISeriesConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo) => K[];
95
+ forEachComponentInSpec: <K>(spec: any, callbackfn: (constructor: IComponentConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo) => K[];
96
+ }
86
97
  export interface IChartConstructor {
87
98
  readonly type: string;
99
+ readonly seriesType?: string;
88
100
  readonly series?: string | string[];
89
101
  readonly view: string;
102
+ readonly transformerConstructor: new (option: IChartSpecTransformerOption) => IChartSpecTransformer;
90
103
  new (spec: any, options: IChartOption): IChart;
91
104
  }
@@ -1,8 +1,11 @@
1
1
  import type { LayoutCallBack } from '../../layout/interface';
2
2
  import type { IRenderOption } from '../../compile/interface';
3
- import type { IModelOption } from '../../model/interface';
3
+ import type { IModelOption, IModelSpecInfo } from '../../model/interface';
4
4
  import type { IView } from '@visactor/vgrammar-core';
5
5
  import type { IBoundsLike } from '@visactor/vutils';
6
+ import type { ITheme } from '../../theme';
7
+ import type { ISeriesSpecInfo } from '../../series';
8
+ import type { IRegionSpecInfo } from '../../region';
6
9
  export interface ILayoutParams {
7
10
  srView?: IView;
8
11
  group?: any;
@@ -18,6 +21,19 @@ export interface IChartOption extends Omit<IModelOption, 'getChartViewRect' | 'g
18
21
  viewBox?: IBoundsLike;
19
22
  layout?: LayoutCallBack;
20
23
  }
24
+ export interface IChartSpecTransformerOption {
25
+ type: string;
26
+ seriesType?: string;
27
+ getTheme: () => ITheme;
28
+ }
29
+ export interface IChartSpecInfo {
30
+ region?: IRegionSpecInfo[];
31
+ series?: ISeriesSpecInfo[];
32
+ axes?: IModelSpecInfo | IModelSpecInfo[];
33
+ legends?: IModelSpecInfo | IModelSpecInfo[];
34
+ crosshair?: IModelSpecInfo | IModelSpecInfo[];
35
+ [key: string]: IModelSpecInfo | IModelSpecInfo[];
36
+ }
21
37
  export interface IChartCreatedOption {
22
38
  }
23
39
  export interface IChartInitOption {
@@ -1,2 +1,3 @@
1
1
  export * from './line';
2
2
  export * from './interface';
3
+ export * from './line-transformer';
@@ -1,6 +1,6 @@
1
1
  import type { ICartesianChartSpec } from '../cartesian/interface';
2
2
  import type { ILineSeriesSpec } from '../../series/line/interface';
3
- import type { IChartExtendsSeriesSpec } from '../..';
3
+ import type { IChartExtendsSeriesSpec } from '../../typings';
4
4
  export interface ILineChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<ILineSeriesSpec> {
5
5
  type: 'line';
6
6
  series?: ILineSeriesSpec[];
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { ILineChartSpec } from './interface';
3
+ export declare class LineChartSpecTransformer<T extends ILineChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,12 +1,14 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
1
  import type { ILineChartSpec } from './interface';
3
- export declare class LineChart extends CartesianChart {
2
+ import { LineChartSpecTransformer } from './line-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class LineChart<T extends ILineChartSpec> extends BaseChart<T> {
4
5
  static readonly type: string;
6
+ static readonly seriesType: string;
5
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof LineChartSpecTransformer;
9
+ readonly transformerConstructor: typeof LineChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
12
  protected _canStack: boolean;
9
- protected _getDefaultSeriesSpec(spec: ILineChartSpec): any;
10
- transformSpec(spec: any): void;
11
13
  }
12
14
  export declare const registerLineChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './map';
2
2
  export * from './interface';
3
+ export * from './map-transformer';
@@ -0,0 +1,8 @@
1
+ import type { IMapSeriesSpec } from '../../series';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { IMapChartSpec } from './interface';
4
+ export declare class MapChartSpecTransformer<T extends IMapChartSpec = IMapChartSpec> extends BaseChartSpecTransformer<T> {
5
+ protected _isValidSeries(type: string): boolean;
6
+ protected _getDefaultSeriesSpec(spec: IMapChartSpec): IMapSeriesSpec;
7
+ transformSpec(spec: T): void;
8
+ }
@@ -1,13 +1,13 @@
1
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
2
2
  import type { IMapChartSpec } from './interface';
3
- import type { IMapSeriesSpec } from '../../series/map/interface';
4
- export declare class MapChart extends BaseChart {
3
+ import { MapChartSpecTransformer } from './map-transformer';
4
+ export declare class MapChart<T extends IMapChartSpec = IMapChartSpec> extends BaseChart<T> {
5
5
  static readonly type: string;
6
+ static readonly seriesType: string;
6
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof MapChartSpecTransformer;
9
+ readonly transformerConstructor: typeof MapChartSpecTransformer;
7
10
  readonly type: string;
8
11
  readonly seriesType: string;
9
- protected _getDefaultSeriesSpec(spec: IMapChartSpec): IMapSeriesSpec;
10
- protected isValidSeries(type: string): boolean;
11
- transformSpec(spec: IMapChartSpec): void;
12
12
  }
13
13
  export declare const registerMapChart: () => void;
@@ -0,0 +1 @@
1
+ export * from './pie-3d';
@@ -0,0 +1,17 @@
1
+ import { BasePieChart } from '../base/base';
2
+ import type { IPie3dChartSpec } from '../interface';
3
+ import type { AdaptiveSpec } from '../../../typings';
4
+ import { BasePieChartSpecTransformer } from '../base';
5
+ export declare class Pie3dChartSpecTransformer<T extends IPie3dChartSpec = IPie3dChartSpec> extends BasePieChartSpecTransformer<AdaptiveSpec<T, 'type'>> {
6
+ transformSpec(spec: any): void;
7
+ }
8
+ export declare class Pie3dChart<T extends IPie3dChartSpec = IPie3dChartSpec> extends BasePieChart<AdaptiveSpec<T, 'type'>> {
9
+ static readonly type: string;
10
+ static readonly seriesType: string;
11
+ static readonly view: string;
12
+ static readonly transformerConstructor: typeof Pie3dChartSpecTransformer;
13
+ readonly transformerConstructor: typeof Pie3dChartSpecTransformer;
14
+ readonly type: string;
15
+ readonly seriesType: string;
16
+ }
17
+ export declare const registerPie3dChart: () => void;
@@ -0,0 +1,8 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import { BaseChart } from '../../base';
3
+ import type { IPieChartSpec } from '../interface';
4
+ import { BasePieChartSpecTransformer } from './pie-transformer';
5
+ export declare class BasePieChart<T extends IPieChartSpec> extends BaseChart<AdaptiveSpec<T, 'axes'>> {
6
+ static readonly transformerConstructor: typeof BasePieChartSpecTransformer;
7
+ readonly transformerConstructor: typeof BasePieChartSpecTransformer;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './base';
2
+ export * from './pie-transformer';
@@ -0,0 +1,7 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import { PolarChartSpecTransformer } from '../../polar';
3
+ import type { IPieChartSpec } from '../interface';
4
+ export declare class BasePieChartSpecTransformer<T extends IPieChartSpec> extends PolarChartSpecTransformer<AdaptiveSpec<T, 'axes'>> {
5
+ protected needAxes(): boolean;
6
+ protected _getDefaultSeriesSpec(spec: any): any;
7
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './pie';
2
- export * from './pie-3d';
2
+ export * from './3d';
3
+ export * from './base';
3
4
  export * from './interface';
@@ -1,7 +1,12 @@
1
- import { BasePieChart } from './base';
2
- export declare class PieChart extends BasePieChart {
1
+ import { BasePieChart } from './base/base';
2
+ import type { IPieChartSpec } from './interface';
3
+ import { BasePieChartSpecTransformer } from './base';
4
+ export declare class PieChart<T extends IPieChartSpec = IPieChartSpec> extends BasePieChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof BasePieChartSpecTransformer;
9
+ readonly transformerConstructor: typeof BasePieChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
12
  }
@@ -1,4 +1,4 @@
1
- export * from './polar';
2
1
  export * from './progress-like';
3
2
  export * from './rose-like';
4
3
  export * from './interface';
4
+ export * from './polar-transformer';
@@ -0,0 +1,9 @@
1
+ import type { IIndicatorSpec } from '../../component';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { IPolarChartSpec } from './interface';
4
+ export declare class PolarChartSpecTransformer<T extends IPolarChartSpec> extends BaseChartSpecTransformer<T> {
5
+ protected _isValidSeries(type: string): boolean;
6
+ protected getIndicatorSpec(spec: any): IIndicatorSpec[];
7
+ protected _getDefaultSeriesSpec(spec: any): any;
8
+ transformSpec(spec: T): void;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './progress-like-transformer';
@@ -0,0 +1,8 @@
1
+ import type { IPolarAxisSpec } from '../../../component';
2
+ import type { IPolarChartSpec } from '../interface';
3
+ import { PolarChartSpecTransformer } from '../polar-transformer';
4
+ export declare class ProgressLikeChartSpecTransformer<T extends IPolarChartSpec> extends PolarChartSpecTransformer<T> {
5
+ protected needAxes(): boolean;
6
+ protected _getDefaultSeriesSpec(spec: any): any;
7
+ protected _transformProgressAxisSpec(spec: T, angleAxisDefaultSpec: IPolarAxisSpec, radiusAxisDefaultSpec: IPolarAxisSpec, angleAxisAppendSpec?: Partial<IPolarAxisSpec>, radiusAxisAppendSpec?: Partial<IPolarAxisSpec>): void;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './rose-like-transformer';
@@ -0,0 +1,7 @@
1
+ import type { IPolarChartSpec } from '../interface';
2
+ import { PolarChartSpecTransformer } from '../polar-transformer';
3
+ export declare class RoseLikeChartSpecTransformer<T extends IPolarChartSpec> extends PolarChartSpecTransformer<T> {
4
+ protected needAxes(): boolean;
5
+ protected _getDefaultSeriesSpec(spec: any): any;
6
+ transformSpec(spec: T): void;
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import { ProgressLikeChartSpecTransformer } from '../../polar';
3
+ import type { ICircularProgressChartSpec } from './interface';
4
+ export declare class CircularProgressChartSpecTransformer<T extends ICircularProgressChartSpec = ICircularProgressChartSpec> extends ProgressLikeChartSpecTransformer<AdaptiveSpec<T, 'axes'>> {
5
+ protected _getDefaultSeriesSpec(spec: T): any;
6
+ transformSpec(spec: AdaptiveSpec<T, 'axes'>): void;
7
+ }
@@ -1,11 +1,15 @@
1
- import { ProgressLikeChart } from '../../polar/progress-like';
2
- export declare class CircularProgressChart extends ProgressLikeChart {
1
+ import type { ICircularProgressChartSpec } from './interface';
2
+ import { CircularProgressChartSpecTransformer } from './circular-progress-transformer';
3
+ import type { AdaptiveSpec } from '../../../typings';
4
+ import { BaseChart } from '../../base';
5
+ export declare class CircularProgressChart<T extends ICircularProgressChartSpec = ICircularProgressChartSpec> extends BaseChart<AdaptiveSpec<T, 'axes'>> {
3
6
  static readonly type: string;
7
+ static readonly seriesType: string;
4
8
  static readonly view: string;
9
+ static readonly transformerConstructor: typeof CircularProgressChartSpecTransformer;
10
+ readonly transformerConstructor: typeof CircularProgressChartSpecTransformer;
5
11
  readonly type: string;
6
12
  readonly seriesType: string;
7
13
  protected _canStack: boolean;
8
- protected _getDefaultSeriesSpec(spec: any): any;
9
- transformSpec(spec: any): void;
10
14
  }
11
15
  export declare const registerCircularProgressChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './circular';
2
2
  export * from './interface';
3
+ export * from './circular-progress-transformer';
@@ -1,4 +1,4 @@
1
- import type { IChartExtendsSeriesSpec } from '../../..';
1
+ import type { IChartExtendsSeriesSpec } from '../../../typings';
2
2
  import type { ICircularProgressSeriesSpec } from '../../../series/progress/circular/interface';
3
3
  import type { IProgressChartSpec } from '../interface';
4
4
  export interface ICircularProgressChartSpec extends IProgressChartSpec, IChartExtendsSeriesSpec<ICircularProgressSeriesSpec> {
@@ -1,2 +1,3 @@
1
1
  export * from './linear';
2
2
  export * from './interface';
3
+ export * from './linear-progress-transformer';
@@ -1,7 +1,7 @@
1
1
  import type { IProgressChartSpec } from '../interface';
2
2
  import type { ICartesianAxisSpec } from '../../../component/axis/cartesian/interface';
3
3
  import type { ILinearProgressSeriesSpec } from '../../../series/progress/linear/interface';
4
- import type { IChartExtendsSeriesSpec } from '../../..';
4
+ import type { IChartExtendsSeriesSpec } from '../../../typings';
5
5
  export interface ILinearProgressChartSpec extends IProgressChartSpec, IChartExtendsSeriesSpec<ILinearProgressSeriesSpec> {
6
6
  type: 'linearProgress';
7
7
  axes?: ICartesianAxisSpec[];
@@ -0,0 +1,7 @@
1
+ import { CartesianChartSpecTransformer } from '../../cartesian';
2
+ import type { ILinearProgressChartSpec } from './interface';
3
+ export declare class LinearProgressChartSpecTransformer<T extends ILinearProgressChartSpec = ILinearProgressChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected needAxes(): boolean;
5
+ protected _getDefaultSeriesSpec(spec: T): ILinearProgressChartSpec;
6
+ transformSpec(spec: T): void;
7
+ }
@@ -1,13 +1,14 @@
1
- import { CartesianChart } from '../../cartesian/cartesian';
2
1
  import type { ILinearProgressChartSpec } from './interface';
3
- export declare class LinearProgressChart extends CartesianChart {
2
+ import { LinearProgressChartSpecTransformer } from './linear-progress-transformer';
3
+ import { BaseChart } from '../../base';
4
+ export declare class LinearProgressChart<T extends ILinearProgressChartSpec = ILinearProgressChartSpec> extends BaseChart<T> {
4
5
  static readonly type: string;
6
+ static readonly seriesType: string;
5
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof LinearProgressChartSpecTransformer;
9
+ readonly transformerConstructor: typeof LinearProgressChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
12
  protected _canStack: boolean;
9
- protected needAxes(): boolean;
10
- protected _getDefaultSeriesSpec(spec: ILinearProgressChartSpec): ILinearProgressChartSpec;
11
- transformSpec(spec: ILinearProgressChartSpec): void;
12
13
  }
13
14
  export declare const registerLinearProgressChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './radar';
2
2
  export * from './interface';
3
+ export * from './radar-transformer';
@@ -0,0 +1,6 @@
1
+ import { RoseLikeChartSpecTransformer } from '../polar';
2
+ import type { IRoseChartSpec } from '../rose';
3
+ export declare class RadarChartSpecTransformer<T extends IRoseChartSpec = IRoseChartSpec> extends RoseLikeChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: any): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,10 +1,14 @@
1
- import { RoseLikeChart } from '../polar/rose-like';
2
- export declare class RadarChart extends RoseLikeChart {
1
+ import type { IRoseChartSpec } from '../rose';
2
+ import { RadarChartSpecTransformer } from './radar-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class RadarChart<T extends IRoseChartSpec = IRoseChartSpec> extends BaseChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof RadarChartSpecTransformer;
9
+ readonly transformerConstructor: typeof RadarChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- transformSpec(spec: any): void;
12
+ protected _canStack: boolean;
9
13
  }
10
14
  export declare const registerRadarChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './range-area';
2
2
  export * from './interface';
3
+ export * from './range-area-transformer';
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IRangeAreaChartSpec } from './interface';
3
+ export declare class RangeAreaChartSpecTransformer<T extends IRangeAreaChartSpec = IRangeAreaChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,10 +1,13 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
- export declare class RangeAreaChart extends CartesianChart {
1
+ import type { IRangeAreaChartSpec } from './interface';
2
+ import { RangeAreaChartSpecTransformer } from './range-area-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class RangeAreaChart<T extends IRangeAreaChartSpec = IRangeAreaChartSpec> extends BaseChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof RangeAreaChartSpecTransformer;
9
+ readonly transformerConstructor: typeof RangeAreaChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- transformSpec(spec: any): void;
9
12
  }
10
13
  export declare const registerRangeAreaChart: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './range-column-3d';
2
+ export * from './range-column-3d-transformer';
@@ -0,0 +1,5 @@
1
+ import { CartesianChartSpecTransformer } from '../../cartesian';
2
+ import type { IRangeColumn3dChartSpec } from '../interface';
3
+ export declare class RangeColumn3dChartSpecTransformer<T extends IRangeColumn3dChartSpec = IRangeColumn3dChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: any): any;
5
+ }
@@ -0,0 +1,13 @@
1
+ import type { IRangeColumn3dChartSpec } from '../interface';
2
+ import { RangeColumn3dChartSpecTransformer } from './range-column-3d-transformer';
3
+ import { BaseChart } from '../../base';
4
+ export declare class RangeColumn3dChart<T extends IRangeColumn3dChartSpec = IRangeColumn3dChartSpec> extends BaseChart<T> {
5
+ static readonly type: string;
6
+ static readonly seriesType: string;
7
+ static readonly view: string;
8
+ static readonly transformerConstructor: typeof RangeColumn3dChartSpecTransformer;
9
+ readonly transformerConstructor: typeof RangeColumn3dChartSpecTransformer;
10
+ readonly type: string;
11
+ readonly seriesType: string;
12
+ }
13
+ export declare const registerRangeColumn3dChart: () => void;
@@ -1,3 +1,4 @@
1
1
  export * from './range-column';
2
- export * from './range-column-3d';
2
+ export * from './3d';
3
3
  export * from './interface';
4
+ export * from './range-column-transformer';
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IRangeColumnChartSpec } from './interface';
3
+ export declare class RangeColumnChartSpecTransformer<T extends IRangeColumnChartSpec = IRangeColumnChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,10 +1,13 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
- export declare class RangeColumnChart extends CartesianChart {
1
+ import type { IRangeColumnChartSpec } from './interface';
2
+ import { RangeColumnChartSpecTransformer } from './range-column-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class RangeColumnChart<T extends IRangeColumnChartSpec = IRangeColumnChartSpec> extends BaseChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof RangeColumnChartSpecTransformer;
9
+ readonly transformerConstructor: typeof RangeColumnChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- transformSpec(spec: any): void;
9
12
  }
10
13
  export declare const registerRangeColumnChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './rose';
2
2
  export * from './interface';
3
+ export * from './rose-transformer';
@@ -0,0 +1,6 @@
1
+ import { RoseLikeChartSpecTransformer } from '../polar';
2
+ import type { IRoseChartSpec } from './interface';
3
+ export declare class RoseChartSpecTransformer<T extends IRoseChartSpec = IRoseChartSpec> extends RoseLikeChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,10 +1,14 @@
1
- import { RoseLikeChart } from '../polar/rose-like';
2
- export declare class RoseChart extends RoseLikeChart {
1
+ import type { IRoseChartSpec } from './interface';
2
+ import { RoseChartSpecTransformer } from './rose-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class RoseChart<T extends IRoseChartSpec = IRoseChartSpec> extends BaseChart<T> {
3
5
  static readonly type: string;
6
+ static readonly seriesType: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof RoseChartSpecTransformer;
9
+ readonly transformerConstructor: typeof RoseChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- transformSpec(spec: any): void;
12
+ protected _canStack: boolean;
9
13
  }
10
14
  export declare const registerRoseChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './sankey';
2
2
  export * from './interface';
3
+ export * from './sankey-transformer';
@@ -0,0 +1,6 @@
1
+ import { BaseChartSpecTransformer } from '../base';
2
+ import type { ISankeyChartSpec } from './interface';
3
+ export declare class SankeyChartSpecTransformer<T extends ISankeyChartSpec = ISankeyChartSpec> extends BaseChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }