@visactor/vchart-types 1.7.5 → 1.8.0-beta.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 (304) hide show
  1. package/package.json +1 -1
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/config.d.ts +5 -1
  4. package/types/animation/utils.d.ts +2 -2
  5. package/types/chart/area/area-transformer.d.ts +6 -0
  6. package/types/chart/area/area.d.ts +6 -4
  7. package/types/chart/area/index.d.ts +1 -0
  8. package/types/chart/bar/3d/bar-3d-transformer.d.ts +6 -0
  9. package/types/chart/bar/3d/bar-3d.d.ts +14 -0
  10. package/types/chart/bar/3d/index.d.ts +2 -0
  11. package/types/chart/bar/bar-transformer.d.ts +6 -0
  12. package/types/chart/bar/bar.d.ts +7 -4
  13. package/types/chart/bar/index.d.ts +2 -1
  14. package/types/chart/base/base-chart-transformer.d.ts +21 -0
  15. package/types/chart/base/base-chart.d.ts +148 -0
  16. package/types/chart/base/index.d.ts +2 -0
  17. package/types/chart/box-plot/box-plot-transformer.d.ts +6 -0
  18. package/types/chart/box-plot/box-plot.d.ts +6 -4
  19. package/types/chart/box-plot/index.d.ts +1 -0
  20. package/types/chart/cartesian/cartesian-transformer.d.ts +8 -0
  21. package/types/chart/cartesian/index.d.ts +1 -1
  22. package/types/chart/circle-packing/circle-packing-transformer.d.ts +7 -0
  23. package/types/chart/circle-packing/circle-packing.d.ts +6 -5
  24. package/types/chart/circle-packing/index.d.ts +1 -0
  25. package/types/chart/common/common-transformer.d.ts +7 -0
  26. package/types/chart/common/common.d.ts +7 -4
  27. package/types/chart/common/index.d.ts +1 -0
  28. package/types/chart/correlation/correlation-transformer.d.ts +6 -0
  29. package/types/chart/correlation/correlation.d.ts +6 -4
  30. package/types/chart/correlation/index.d.ts +1 -0
  31. package/types/chart/funnel/3d/funnel-3d.d.ts +14 -0
  32. package/types/chart/funnel/3d/index.d.ts +1 -0
  33. package/types/chart/funnel/funnel-transformer.d.ts +8 -0
  34. package/types/chart/funnel/funnel.d.ts +7 -2
  35. package/types/chart/funnel/index.d.ts +2 -1
  36. package/types/chart/funnel/interface.d.ts +1 -1
  37. package/types/chart/gauge/gauge-transformer.d.ts +9 -0
  38. package/types/chart/gauge/gauge.d.ts +8 -6
  39. package/types/chart/gauge/index.d.ts +1 -0
  40. package/types/chart/gauge/interface.d.ts +2 -2
  41. package/types/chart/heatmap/heatmap-transformer.d.ts +5 -0
  42. package/types/chart/heatmap/heatmap.d.ts +7 -3
  43. package/types/chart/heatmap/index.d.ts +1 -0
  44. package/types/chart/histogram/3d/histogram-3d.d.ts +14 -0
  45. package/types/chart/histogram/3d/index.d.ts +1 -0
  46. package/types/chart/histogram/base/base.d.ts +8 -0
  47. package/types/chart/histogram/base/histogram-base-transformer.d.ts +6 -0
  48. package/types/chart/histogram/base/index.d.ts +2 -0
  49. package/types/chart/histogram/histogram-transformer.d.ts +5 -0
  50. package/types/chart/histogram/histogram.d.ts +7 -3
  51. package/types/chart/histogram/index.d.ts +2 -1
  52. package/types/chart/index.d.ts +2 -4
  53. package/types/chart/interface/chart.d.ts +20 -7
  54. package/types/chart/interface/common.d.ts +17 -1
  55. package/types/chart/line/index.d.ts +1 -0
  56. package/types/chart/line/interface.d.ts +1 -1
  57. package/types/chart/line/line-transformer.d.ts +6 -0
  58. package/types/chart/line/line.d.ts +6 -4
  59. package/types/chart/map/index.d.ts +1 -0
  60. package/types/chart/map/map-transformer.d.ts +8 -0
  61. package/types/chart/map/map.d.ts +6 -6
  62. package/types/chart/pie/3d/index.d.ts +1 -0
  63. package/types/chart/pie/3d/pie-3d.d.ts +17 -0
  64. package/types/chart/pie/base/base.d.ts +8 -0
  65. package/types/chart/pie/base/index.d.ts +2 -0
  66. package/types/chart/pie/base/pie-transformer.d.ts +7 -0
  67. package/types/chart/pie/index.d.ts +2 -1
  68. package/types/chart/pie/pie.d.ts +7 -2
  69. package/types/chart/polar/index.d.ts +1 -1
  70. package/types/chart/polar/polar-transformer.d.ts +9 -0
  71. package/types/chart/polar/progress-like/index.d.ts +1 -0
  72. package/types/chart/polar/progress-like/progress-like-transformer.d.ts +8 -0
  73. package/types/chart/polar/rose-like/index.d.ts +1 -0
  74. package/types/chart/polar/rose-like/rose-like-transformer.d.ts +7 -0
  75. package/types/chart/progress/circular/circular-progress-transformer.d.ts +7 -0
  76. package/types/chart/progress/circular/circular.d.ts +8 -4
  77. package/types/chart/progress/circular/index.d.ts +1 -0
  78. package/types/chart/progress/circular/interface.d.ts +1 -1
  79. package/types/chart/progress/linear/index.d.ts +1 -0
  80. package/types/chart/progress/linear/interface.d.ts +1 -1
  81. package/types/chart/progress/linear/linear-progress-transformer.d.ts +7 -0
  82. package/types/chart/progress/linear/linear.d.ts +6 -5
  83. package/types/chart/radar/index.d.ts +1 -0
  84. package/types/chart/radar/radar-transformer.d.ts +6 -0
  85. package/types/chart/radar/radar.d.ts +8 -4
  86. package/types/chart/range-area/index.d.ts +1 -0
  87. package/types/chart/range-area/range-area-transformer.d.ts +6 -0
  88. package/types/chart/range-area/range-area.d.ts +7 -4
  89. package/types/chart/range-column/3d/index.d.ts +2 -0
  90. package/types/chart/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  91. package/types/chart/range-column/3d/range-column-3d.d.ts +13 -0
  92. package/types/chart/range-column/index.d.ts +2 -1
  93. package/types/chart/range-column/range-column-transformer.d.ts +6 -0
  94. package/types/chart/range-column/range-column.d.ts +7 -4
  95. package/types/chart/rose/index.d.ts +1 -0
  96. package/types/chart/rose/rose-transformer.d.ts +6 -0
  97. package/types/chart/rose/rose.d.ts +8 -4
  98. package/types/chart/sankey/index.d.ts +1 -0
  99. package/types/chart/sankey/sankey-transformer.d.ts +6 -0
  100. package/types/chart/sankey/sankey.d.ts +6 -4
  101. package/types/chart/scatter/index.d.ts +1 -0
  102. package/types/chart/scatter/scatter-transformer.d.ts +5 -0
  103. package/types/chart/scatter/scatter.d.ts +6 -3
  104. package/types/chart/sequence/index.d.ts +1 -0
  105. package/types/chart/sequence/sequence-transformer.d.ts +7 -0
  106. package/types/chart/sequence/sequence.d.ts +9 -7
  107. package/types/chart/sunburst/index.d.ts +1 -0
  108. package/types/chart/sunburst/sunburst-transformer.d.ts +7 -0
  109. package/types/chart/sunburst/sunburst.d.ts +6 -5
  110. package/types/chart/treemap/index.d.ts +1 -0
  111. package/types/chart/treemap/treemap-transformer.d.ts +7 -0
  112. package/types/chart/treemap/treemap.d.ts +7 -4
  113. package/types/chart/util.d.ts +3 -3
  114. package/types/chart/waterfall/index.d.ts +1 -0
  115. package/types/chart/waterfall/waterfall-transformer.d.ts +7 -0
  116. package/types/chart/waterfall/waterfall.d.ts +6 -3
  117. package/types/chart/word-cloud/3d/index.d.ts +2 -0
  118. package/types/chart/word-cloud/3d/word-cloud-3d-transformer.d.ts +6 -0
  119. package/types/chart/word-cloud/3d/word-cloud-3d.d.ts +15 -0
  120. package/types/chart/word-cloud/base/base.d.ts +9 -0
  121. package/types/chart/word-cloud/base/index.d.ts +2 -0
  122. package/types/chart/word-cloud/base/word-cloud-base-transformer.d.ts +5 -0
  123. package/types/chart/word-cloud/index.d.ts +2 -1
  124. package/types/chart/word-cloud/word-cloud-transformer.d.ts +5 -0
  125. package/types/chart/word-cloud/word-cloud.d.ts +6 -3
  126. package/types/compile/interface/compiler.d.ts +5 -0
  127. package/types/compile/mark/compilable-mark.d.ts +0 -5
  128. package/types/compile/mark/interface.d.ts +1 -4
  129. package/types/component/axis/base-axis.d.ts +27 -4
  130. package/types/component/axis/cartesian/axis.d.ts +6 -7
  131. package/types/component/axis/cartesian/band-axis.d.ts +1 -0
  132. package/types/component/axis/cartesian/linear-axis.d.ts +1 -0
  133. package/types/component/axis/cartesian/log-axis.d.ts +1 -0
  134. package/types/component/axis/cartesian/symlog-axis.d.ts +1 -0
  135. package/types/component/axis/cartesian/time-axis.d.ts +1 -0
  136. package/types/component/axis/cartesian/util/common.d.ts +4 -0
  137. package/types/component/axis/interface/common.d.ts +1 -0
  138. package/types/component/axis/polar/axis.d.ts +7 -7
  139. package/types/component/axis/polar/band-axis.d.ts +1 -0
  140. package/types/component/axis/polar/interface/common.d.ts +0 -1
  141. package/types/component/axis/polar/linear-axis.d.ts +1 -0
  142. package/types/component/axis/polar/util/common.d.ts +5 -0
  143. package/types/component/axis/polar/util/index.d.ts +1 -0
  144. package/types/component/axis/util.d.ts +4 -3
  145. package/types/component/base/base-component-transformer.d.ts +10 -0
  146. package/types/component/base/base-component.d.ts +10 -6
  147. package/types/component/base/index.d.ts +1 -0
  148. package/types/component/base/util.d.ts +2 -2
  149. package/types/component/brush/brush.d.ts +9 -5
  150. package/types/component/crosshair/base.d.ts +5 -4
  151. package/types/component/crosshair/cartesian.d.ts +3 -2
  152. package/types/component/crosshair/polar.d.ts +3 -2
  153. package/types/component/crosshair/util.d.ts +3 -4
  154. package/types/component/custom-mark/custom-mark.d.ts +7 -5
  155. package/types/component/data-zoom/data-filter-base-component.d.ts +3 -3
  156. package/types/component/data-zoom/data-zoom/data-zoom-transformer.d.ts +9 -0
  157. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +12 -2
  158. package/types/component/data-zoom/data-zoom/index.d.ts +1 -0
  159. package/types/component/data-zoom/data-zoom/interface.d.ts +2 -2
  160. package/types/component/data-zoom/interface.d.ts +1 -1
  161. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +5 -1
  162. package/types/component/data-zoom/util.d.ts +2 -2
  163. package/types/component/geo/geo-coordinate.d.ts +4 -7
  164. package/types/component/index.d.ts +1 -1
  165. package/types/component/indicator/indicator.d.ts +5 -4
  166. package/types/component/interface/common.d.ts +6 -4
  167. package/types/component/interface/type.d.ts +8 -0
  168. package/types/component/label/base-label.d.ts +2 -2
  169. package/types/component/label/index.d.ts +2 -0
  170. package/types/component/label/interface.d.ts +2 -2
  171. package/types/component/label/label-transformer.d.ts +8 -0
  172. package/types/component/label/label.d.ts +13 -5
  173. package/types/component/label/total-label.d.ts +28 -0
  174. package/types/component/label/util.d.ts +1 -0
  175. package/types/component/legend/base-legend.d.ts +3 -1
  176. package/types/component/legend/continuous/legend.d.ts +4 -6
  177. package/types/component/legend/discrete/legend.d.ts +4 -7
  178. package/types/component/legend/util.d.ts +1 -1
  179. package/types/component/map-label/component.d.ts +5 -2
  180. package/types/component/marker/mark-area/mark-area.d.ts +6 -4
  181. package/types/component/marker/mark-line/mark-line.d.ts +6 -4
  182. package/types/component/marker/mark-point/mark-point.d.ts +6 -4
  183. package/types/component/player/player.d.ts +4 -4
  184. package/types/component/title/title.d.ts +9 -6
  185. package/types/component/tooltip/index.d.ts +1 -0
  186. package/types/component/tooltip/tooltip-transformer.d.ts +8 -0
  187. package/types/component/tooltip/tooltip.d.ts +10 -8
  188. package/types/component/util.d.ts +2 -2
  189. package/types/constant/event.d.ts +1 -0
  190. package/types/constant/polar.d.ts +0 -10
  191. package/types/core/factory.d.ts +12 -3
  192. package/types/core/index.d.ts +1 -0
  193. package/types/core/interface.d.ts +17 -11
  194. package/types/core/vchart.d.ts +30 -7
  195. package/types/mark/arc-3d.d.ts +2 -0
  196. package/types/mark/arc.d.ts +1 -0
  197. package/types/mark/area.d.ts +1 -0
  198. package/types/mark/box-plot.d.ts +1 -0
  199. package/types/mark/cell.d.ts +1 -0
  200. package/types/mark/component.d.ts +1 -0
  201. package/types/mark/group.d.ts +2 -1
  202. package/types/mark/image.d.ts +1 -0
  203. package/types/mark/label.d.ts +1 -0
  204. package/types/mark/line.d.ts +1 -0
  205. package/types/mark/link-path.d.ts +1 -0
  206. package/types/mark/path.d.ts +1 -0
  207. package/types/mark/polygon/polygon.d.ts +1 -0
  208. package/types/mark/polygon/pyramid-3d.d.ts +1 -0
  209. package/types/mark/progress-arc.d.ts +1 -0
  210. package/types/mark/rect-3d.d.ts +1 -0
  211. package/types/mark/rect.d.ts +1 -0
  212. package/types/mark/ripple.d.ts +1 -0
  213. package/types/mark/rule.d.ts +1 -0
  214. package/types/mark/symbol.d.ts +1 -0
  215. package/types/mark/text.d.ts +1 -0
  216. package/types/model/base-model-transformer.d.ts +24 -0
  217. package/types/model/base-model.d.ts +9 -14
  218. package/types/model/index.d.ts +3 -0
  219. package/types/model/interface.d.ts +31 -4
  220. package/types/plugin/base/base-plugin-service.d.ts +13 -0
  221. package/types/plugin/base/base-plugin.d.ts +9 -0
  222. package/types/plugin/base/interface.d.ts +22 -0
  223. package/types/plugin/chart/index.d.ts +2 -0
  224. package/types/plugin/chart/interface.d.ts +22 -2
  225. package/types/plugin/chart/media-query/index.d.ts +2 -0
  226. package/types/plugin/chart/media-query/interface/common.d.ts +28 -0
  227. package/types/plugin/chart/media-query/interface/index.d.ts +2 -0
  228. package/types/plugin/chart/media-query/interface/spec.d.ts +25 -0
  229. package/types/plugin/chart/media-query/media-query.d.ts +28 -0
  230. package/types/plugin/chart/media-query/util/action.d.ts +3 -0
  231. package/types/plugin/chart/media-query/util/filter.d.ts +4 -0
  232. package/types/plugin/chart/media-query/util/index.d.ts +2 -0
  233. package/types/plugin/chart/media-query/util/query.d.ts +3 -0
  234. package/types/plugin/chart/plugin-service.d.ts +12 -0
  235. package/types/plugin/chart/register.d.ts +2 -0
  236. package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +5 -3
  237. package/types/plugin/components/interface.d.ts +15 -25
  238. package/types/plugin/components/plugin-service.d.ts +2 -10
  239. package/types/plugin/index.d.ts +1 -0
  240. package/types/region/index.d.ts +3 -0
  241. package/types/region/interface.d.ts +10 -2
  242. package/types/region/region-transformer.d.ts +8 -0
  243. package/types/region/region.d.ts +7 -4
  244. package/types/series/area/area-transformer.d.ts +5 -0
  245. package/types/series/area/area.d.ts +5 -3
  246. package/types/series/bar/bar-transformer.d.ts +5 -0
  247. package/types/series/bar/bar.d.ts +5 -3
  248. package/types/series/base/base-series-transformer.d.ts +18 -0
  249. package/types/series/base/base-series.d.ts +7 -8
  250. package/types/series/base/index.d.ts +2 -0
  251. package/types/series/box-plot/box-plot.d.ts +2 -3
  252. package/types/series/box-plot/interface.d.ts +1 -2
  253. package/types/series/cartesian/cartesian.d.ts +1 -1
  254. package/types/series/circle-packing/interface.d.ts +1 -2
  255. package/types/series/correlation/correlation-transformer.d.ts +5 -0
  256. package/types/series/correlation/correlation.d.ts +5 -4
  257. package/types/series/dot/dot.d.ts +2 -3
  258. package/types/series/funnel/3d/funnel-3d-transformer.d.ts +6 -0
  259. package/types/series/funnel/3d/funnel-3d.d.ts +22 -0
  260. package/types/series/funnel/3d/index.d.ts +2 -0
  261. package/types/series/funnel/funnel-transformer.d.ts +5 -0
  262. package/types/series/funnel/funnel.d.ts +5 -3
  263. package/types/series/gauge/gauge-pointer.d.ts +2 -3
  264. package/types/series/gauge/gauge-transformer.d.ts +5 -0
  265. package/types/series/gauge/gauge.d.ts +4 -3
  266. package/types/series/geo/interface.d.ts +1 -1
  267. package/types/series/heatmap/heatmap-transformer.d.ts +5 -0
  268. package/types/series/heatmap/heatmap.d.ts +5 -4
  269. package/types/series/index.d.ts +3 -3
  270. package/types/series/interface/common.d.ts +11 -6
  271. package/types/series/interface/series.d.ts +2 -3
  272. package/types/series/line/line.d.ts +5 -3
  273. package/types/series/link/link.d.ts +2 -3
  274. package/types/series/map/map-transformer.d.ts +5 -0
  275. package/types/series/map/map.d.ts +8 -3
  276. package/types/series/mixin/line-mixin-transformer.d.ts +5 -0
  277. package/types/series/mixin/line-mixin.d.ts +1 -2
  278. package/types/series/pie/3d/index.d.ts +2 -0
  279. package/types/series/pie/3d/pie-3d-transformer.d.ts +5 -0
  280. package/types/series/pie/3d/pie-3d.d.ts +20 -0
  281. package/types/series/pie/interface.d.ts +3 -0
  282. package/types/series/pie/pie-transformer.d.ts +9 -0
  283. package/types/series/pie/pie.d.ts +6 -13
  284. package/types/series/polar/index.d.ts +3 -0
  285. package/types/series/polar/polar.d.ts +0 -1
  286. package/types/series/progress/circular/circular.d.ts +2 -3
  287. package/types/series/progress/linear/linear.d.ts +1 -3
  288. package/types/series/radar/radar.d.ts +5 -3
  289. package/types/series/range-column/3d/index.d.ts +2 -0
  290. package/types/series/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  291. package/types/series/range-column/3d/range-column-3d.d.ts +15 -0
  292. package/types/series/range-column/range-column-transformer.d.ts +5 -0
  293. package/types/series/range-column/range-column.d.ts +2 -0
  294. package/types/series/rose/rose-transformer.d.ts +5 -0
  295. package/types/series/rose/rose.d.ts +4 -3
  296. package/types/series/scatter/scatter-transformer.d.ts +5 -0
  297. package/types/series/scatter/scatter.d.ts +5 -3
  298. package/types/series/sunburst/sunburst.d.ts +1 -1
  299. package/types/series/waterfall/waterfall-transformer.d.ts +5 -0
  300. package/types/series/waterfall/waterfall.d.ts +4 -3
  301. package/types/theme/builtin/index.d.ts +0 -1
  302. package/types/typings/spec/common.d.ts +2 -0
  303. package/types/util/color.d.ts +1 -3
  304. package/types/util/space.d.ts +1 -3
@@ -53,4 +53,8 @@ export declare const registerScaleInOutAnimation: () => void;
53
53
  export declare const registerFadeInOutAnimation: () => void;
54
54
  export declare const registerCartesianGroupClipAnimation: () => void;
55
55
  export declare const registerLineAnimation: () => void;
56
- export declare const registerVGrammarAnimation: () => void;
56
+ export declare const registerVGrammarCommonAnimation: () => void;
57
+ export declare const registerVGrammarRectAnimation: () => void;
58
+ export declare const registerVGrammarArcAnimation: () => void;
59
+ export declare const registerVGrammarLineOrAreaAnimation: () => void;
60
+ export declare const registerVGrammarPolygonAnimation: () => void;
@@ -10,9 +10,9 @@ export declare function animationConfig<Preset extends string>(defaultConfig?: M
10
10
  dataIndex: (datum: any) => number;
11
11
  dataCount: () => number;
12
12
  }): MarkAnimationSpec;
13
- export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<string>>>;
13
+ export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "exit" | "update" | "appear" | "enter" | "disappear", boolean | IAnimationConfig | IStateAnimateSpec<string> | IAnimationConfig[]>>;
14
14
  export declare function shouldMarkDoMorph(spec: ISeriesSpec & IAnimationSpec<string, string>, markName: string): boolean;
15
15
  export declare function isTimeLineAnimation(animationConfig: IAnimationConfig): boolean;
16
16
  export declare function isChannelAnimation(animationConfig: IAnimationConfig): boolean;
17
- export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
17
+ export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "exit" | "update" | "appear" | "enter" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
18
18
  export declare function isAnimationEnabledForSeries(series: ISeries): boolean;
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IAreaChartSpec } from './interface';
3
+ export declare class AreaChartSpecTransformer<T extends IAreaChartSpec = IAreaChartSpec> 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 { IAreaChartSpec } from './interface';
3
- export declare class AreaChart extends CartesianChart {
2
+ import { AreaChartSpecTransformer } from './area-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class AreaChart<T extends IAreaChartSpec = IAreaChartSpec> 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 AreaChartSpecTransformer;
9
+ readonly transformerConstructor: typeof AreaChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
12
  protected _canStack: boolean;
9
- protected _getDefaultSeriesSpec(spec: IAreaChartSpec): any;
10
- transformSpec(spec: any): void;
11
13
  }
12
14
  export declare const registerAreaChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './area';
2
2
  export * from './interface';
3
+ export * from './area-transformer';
@@ -0,0 +1,6 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import type { IBar3dChartSpec } from '../interface';
3
+ import { BarChartSpecTransformer } from '../bar-transformer';
4
+ export declare class Bar3dChartSpecTransformer<T extends IBar3dChartSpec = IBar3dChartSpec> extends BarChartSpecTransformer<AdaptiveSpec<T, 'type' | 'series'>> {
5
+ protected _getDefaultSeriesSpec(spec: AdaptiveSpec<T, 'type' | 'series'>): any;
6
+ }
@@ -0,0 +1,14 @@
1
+ import type { IBar3dChartSpec } from '../interface';
2
+ import { BarChart } from '../bar';
3
+ import type { AdaptiveSpec } from '../../../typings';
4
+ import { Bar3dChartSpecTransformer } from './bar-3d-transformer';
5
+ export declare class Bar3dChart<T extends IBar3dChartSpec = IBar3dChartSpec> extends BarChart<AdaptiveSpec<T, 'type' | 'series'>> {
6
+ static readonly type: string;
7
+ static readonly seriesType: string;
8
+ static readonly view: string;
9
+ static readonly transformerConstructor: typeof Bar3dChartSpecTransformer;
10
+ readonly transformerConstructor: typeof Bar3dChartSpecTransformer;
11
+ readonly type: string;
12
+ readonly seriesType: string;
13
+ }
14
+ export declare const registerBar3dChart: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './bar-3d';
2
+ export * from './bar-3d-transformer';
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IBarChartSpec } from './interface';
3
+ export declare class BarChartSpecTransformer<T extends IBarChartSpec = IBarChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,11 +1,14 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
- export declare class BarChart extends CartesianChart {
1
+ import type { IBarChartSpec } from './interface';
2
+ import { BarChartSpecTransformer } from './bar-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class BarChart<T extends IBarChartSpec = IBarChartSpec> 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 BarChartSpecTransformer;
9
+ readonly transformerConstructor: typeof BarChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
12
  protected _canStack: boolean;
8
- protected _getDefaultSeriesSpec(spec: any): any;
9
- transformSpec(spec: any): void;
10
13
  }
11
14
  export declare const registerBarChart: () => void;
@@ -1,3 +1,4 @@
1
1
  export * from './bar';
2
- export * from './bar-3d';
2
+ export * from './3d';
3
3
  export * from './interface';
4
+ export * from './bar-transformer';
@@ -0,0 +1,21 @@
1
+ import type { IChartSpec } from '../../typings';
2
+ import type { IChartSpecInfo, IChartSpecTransformer, IChartSpecTransformerOption } from '../interface';
3
+ import type { IModelConstructor, IModelSpecInfo } from '../../model/interface';
4
+ import type { IRegionConstructor } from '../../region/interface';
5
+ import type { ISeriesConstructor } from '../../series';
6
+ import type { IComponentConstructor } from '../../component/interface/common';
7
+ export declare class BaseChartSpecTransformer<T extends IChartSpec> implements IChartSpecTransformer {
8
+ readonly type: string;
9
+ readonly seriesType: string;
10
+ protected _option: IChartSpecTransformerOption;
11
+ constructor(option: IChartSpecTransformerOption);
12
+ initChartSpec(chartSpec: T): IChartSpecInfo;
13
+ transformSpec(chartSpec: T): void;
14
+ transformModelSpec(chartSpec: T): IChartSpecInfo;
15
+ createSpecInfo(chartSpec: T, transform?: (constructor: IModelConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => void): IChartSpecInfo;
16
+ protected _isValidSeries(seriesType: string): boolean;
17
+ protected _getDefaultSeriesSpec(chartSpec: any): any;
18
+ forEachRegionInSpec<K>(chartSpec: T, callbackfn: (constructor: IRegionConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo): K[];
19
+ forEachSeriesInSpec<K>(chartSpec: T, callbackfn: (constructor: ISeriesConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo): K[];
20
+ forEachComponentInSpec<K>(chartSpec: T, callbackfn: (constructor: IComponentConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo): K[];
21
+ }
@@ -0,0 +1,148 @@
1
+ import type { IRegionConstructor } from '../../region/interface';
2
+ import { ChartData } from '../chart-meta/data';
3
+ import type { Datum, IMarkStateSpec, IRegionQuerier, MaybeArray, IPadding, IRect, StringOrNumber, IChartSpec, IDataValues, ILayoutRect, ILayoutOrientPadding } from '../../typings';
4
+ import type { ILayoutItem, LayoutCallBack } from '../../layout/interface';
5
+ import type { ILayoutModelState, IModel, IModelOption, IModelSpecInfo, IUpdateSpecResult } from '../../model/interface';
6
+ import type { IChart, IChartLayoutOption, IChartRenderOption, IChartOption, IChartEvaluateOption, ILayoutParams, DimensionIndexOption, IChartSpecTransformerOption, IChartSpecTransformer } from '../interface';
7
+ import type { ISeries, ISeriesConstructor } from '../../series/interface';
8
+ import type { IRegion } from '../../region/interface';
9
+ import type { IComponent, IComponentConstructor } from '../../component/interface';
10
+ import { type IMark } from '../../mark/interface';
11
+ import type { IEvent } from '../../event/interface';
12
+ import type { DataView } from '@visactor/vdataset';
13
+ import type { DataSet } from '@visactor/vdataset/es/data-set';
14
+ import { Stack } from '../stack';
15
+ import type { IParserOptions } from '@visactor/vdataset/es/parser';
16
+ import type { IBoundsLike } from '@visactor/vutils';
17
+ import type { IRunningConfig as IMorphConfig, IView } from '@visactor/vgrammar-core';
18
+ import { CompilableBase } from '../../compile/compilable-base';
19
+ import type { IGlobalScale } from '../../scale/interface';
20
+ import type { IRectMark } from '../../mark/rect';
21
+ export declare class BaseChart<T extends IChartSpec> extends CompilableBase implements IChart {
22
+ readonly type: string;
23
+ readonly seriesType: string;
24
+ readonly transformerConstructor: new (option: IChartSpecTransformerOption) => IChartSpecTransformer;
25
+ readonly id: number;
26
+ protected _transformer: IChartSpecTransformer;
27
+ protected _spec: T;
28
+ getSpec(): T;
29
+ setSpec(s: T): void;
30
+ getOption(): IChartOption;
31
+ protected _regions: IRegion[];
32
+ protected _series: ISeries[];
33
+ protected _components: IComponent[];
34
+ protected _layoutFunc: LayoutCallBack;
35
+ protected _layoutRect: IRect;
36
+ getLayoutRect(): IRect;
37
+ protected _viewRect: ILayoutRect;
38
+ getViewRect(): ILayoutRect;
39
+ protected _viewBox: IBoundsLike;
40
+ protected _layoutTag: boolean;
41
+ getLayoutTag(): boolean;
42
+ setLayoutTag(tag: boolean, morphConfig?: IMorphConfig, reLayout?: boolean): boolean;
43
+ protected _modelOption: IModelOption;
44
+ protected _globalScale: IGlobalScale;
45
+ protected _idMap: Map<number, IModel | IMark>;
46
+ protected _event: IEvent;
47
+ getEvent(): IEvent;
48
+ protected _dataSet: DataSet;
49
+ protected _chartData: ChartData;
50
+ get chartData(): ChartData;
51
+ protected _option: IChartOption;
52
+ readonly state: ILayoutModelState;
53
+ protected _stack: Stack;
54
+ protected _canStack: boolean;
55
+ padding: IPadding;
56
+ protected _paddingSpec: ILayoutOrientPadding;
57
+ protected _canvasRect: ILayoutRect;
58
+ protected _backgroundMark: IRectMark;
59
+ constructor(spec: T, option: IChartOption);
60
+ created(): void;
61
+ init(): void;
62
+ reDataFlow(): void;
63
+ onResize(width: number, height: number, reRender?: boolean): void;
64
+ updateViewBox(viewBox: IBoundsLike, reLayout: boolean): void;
65
+ private _createBackground;
66
+ protected _createRegion(constructor: IRegionConstructor, specInfo: IModelSpecInfo): void;
67
+ protected _createSeries(constructor: ISeriesConstructor, specInfo: IModelSpecInfo): void;
68
+ getAllSeries: () => ISeries[];
69
+ getSeriesById(id: number): ISeries | undefined;
70
+ protected _createComponent(constructor: IComponentConstructor, specInfo: IModelSpecInfo): void;
71
+ getAllComponents(): IComponent[];
72
+ getAllModels(): IModel[];
73
+ getModelInFilter(filter: string | {
74
+ type: string;
75
+ index: number;
76
+ } | ((model: IModel) => boolean)): IModel;
77
+ private _createLayout;
78
+ setLayout(layout: LayoutCallBack): void;
79
+ private _initLayoutFunc;
80
+ layout(params: ILayoutParams): void;
81
+ onLayoutStart(option: IChartLayoutOption): void;
82
+ onLayoutEnd(option: IChartLayoutOption): void;
83
+ onEvaluateEnd(option: IChartEvaluateOption): void;
84
+ getLayoutElements(): ILayoutItem[];
85
+ getRegionsInIndex: (index?: number[]) => IRegion[];
86
+ getAllRegions: () => IRegion[];
87
+ getRegionsInIds: (ids: number[]) => IRegion[];
88
+ getRegionsInQuerier: (region?: MaybeArray<IRegionQuerier>) => IRegion[];
89
+ getRegionsInUserId: (userId: StringOrNumber) => IRegion | undefined;
90
+ getRegionsInUserIdOrIndex: (user_ids?: StringOrNumber[], index?: number[]) => IRegion[];
91
+ getComponents: () => IComponent[];
92
+ getSeriesInIndex: (index?: number[]) => ISeries[];
93
+ getSeriesInIds: (ids?: number[]) => ISeries[];
94
+ getSeriesInUserId: (userId: StringOrNumber) => ISeries | undefined;
95
+ getSeriesInUserIdOrIndex: (user_ids?: StringOrNumber[], index?: number[]) => ISeries[];
96
+ getComponentByIndex: (key: string, index: number) => IComponent;
97
+ getComponentsByKey: (key: string) => IComponent[];
98
+ getComponentByUserId: (userId: StringOrNumber) => IComponent;
99
+ getModelById(id: number): IModel | undefined;
100
+ getModelByUserId(userId: StringOrNumber): IModel | undefined;
101
+ getAllMarks(): IMark[];
102
+ getMarkById(id: number): IMark | undefined;
103
+ updateData(id: StringOrNumber, data: unknown, updateGlobalScale?: boolean, options?: IParserOptions): void;
104
+ updateFullData(data: IDataValues | IDataValues[], updateGlobalScale?: boolean): void;
105
+ onRender(option: IChartRenderOption): void;
106
+ setCanvasRect(width: number, height: number): void;
107
+ getCanvasRect(): Omit<IRect, 'x' | 'y'>;
108
+ getSeriesData(id: StringOrNumber | undefined, index: number | undefined): DataView | undefined;
109
+ private _transformSpecScale;
110
+ private _createGlobalScale;
111
+ updateGlobalScaleDomain(): void;
112
+ updateGlobalScale(result: IUpdateSpecResult): void;
113
+ updateGlobalScaleTheme(): void;
114
+ updateSpec(spec: T): {
115
+ change: boolean;
116
+ reMake: boolean;
117
+ reRender: boolean;
118
+ reSize: boolean;
119
+ reCompile: boolean;
120
+ };
121
+ updateChartConfig(result: IUpdateSpecResult, oldSpec: IChartSpec): void;
122
+ updateDataSpec(result: IUpdateSpecResult): void;
123
+ updateRegionSpec(result: IUpdateSpecResult): void;
124
+ updateComponentSpec(result: IUpdateSpecResult): void;
125
+ updateSeriesSpec(result: IUpdateSpecResult): void;
126
+ getCanvas(): HTMLCanvasElement;
127
+ private _updateLayoutRect;
128
+ setCurrentTheme(): void;
129
+ clear(): void;
130
+ compile(): void;
131
+ afterCompile(): void;
132
+ compileLayout(): void;
133
+ compileBackground(): void;
134
+ compileRegions(): void;
135
+ compileSeries(): void;
136
+ compileComponents(): void;
137
+ release(): void;
138
+ onLayout(srView: IView): void;
139
+ updateState(state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean): void;
140
+ setSelected(datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
141
+ setHovered(datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
142
+ private _initEvent;
143
+ protected _enableMarkAnimation(states: string | string[]): void;
144
+ protected _disableMarkAnimation(states: string | string[]): void;
145
+ protected _setStateInDatum(stateKey: string, checkReverse: boolean, datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
146
+ setDimensionIndex(value: StringOrNumber, opt: DimensionIndexOption): void;
147
+ getColorScheme(): import("../..").IThemeColorScheme;
148
+ }
@@ -0,0 +1,2 @@
1
+ export * from './base-chart';
2
+ export * from './base-chart-transformer';
@@ -0,0 +1,6 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IBoxPlotChartSpec } from './interface';
3
+ export declare class BoxPlotChartSpecTransformer<T extends IBoxPlotChartSpec = IBoxPlotChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,11 +1,13 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
1
  import type { IBoxPlotChartSpec } from './interface';
3
- export declare class BoxPlotChart extends CartesianChart {
2
+ import { BoxPlotChartSpecTransformer } from './box-plot-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class BoxPlotChart<T extends IBoxPlotChartSpec = IBoxPlotChartSpec> 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 BoxPlotChartSpecTransformer;
9
+ readonly transformerConstructor: typeof BoxPlotChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
- protected _getDefaultSeriesSpec(spec: IBoxPlotChartSpec): any;
9
- transformSpec(spec: IBoxPlotChartSpec): void;
10
12
  }
11
13
  export declare const registerBoxplotChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './box-plot';
2
2
  export * from './interface';
3
+ export * from './box-plot-transformer';
@@ -0,0 +1,8 @@
1
+ import { BaseChartSpecTransformer } from '../base';
2
+ import type { ICartesianChartSpec } from './interface';
3
+ export declare class CartesianChartSpecTransformer<T extends ICartesianChartSpec> extends BaseChartSpecTransformer<T> {
4
+ protected needAxes(): boolean;
5
+ protected _isValidSeries(type: string): boolean;
6
+ protected _getDefaultSeriesSpec(spec: any): any;
7
+ transformSpec(spec: T): void;
8
+ }
@@ -1,2 +1,2 @@
1
- export * from './cartesian';
2
1
  export * from './interface';
2
+ export * from './cartesian-transformer';
@@ -0,0 +1,7 @@
1
+ import type { ICirclePackingSeriesSpec } from '../../series/circle-packing/interface';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { ICirclePackingChartSpec } from './interface';
4
+ export declare class CirclePackingChartSpecTransformer<T extends ICirclePackingChartSpec = ICirclePackingChartSpec> extends BaseChartSpecTransformer<T> {
5
+ protected _getDefaultSeriesSpec(spec: ICirclePackingChartSpec): ICirclePackingSeriesSpec;
6
+ transformSpec(spec: T): void;
7
+ }
@@ -1,12 +1,13 @@
1
- import type { ICirclePackingSeriesSpec } from '../../series/circle-packing/interface';
2
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
3
2
  import type { ICirclePackingChartSpec } from './interface';
4
- export declare class CirclePackingChart extends BaseChart {
3
+ import { CirclePackingChartSpecTransformer } from './circle-packing-transformer';
4
+ export declare class CirclePackingChart<T extends ICirclePackingChartSpec = ICirclePackingChartSpec> 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 CirclePackingChartSpecTransformer;
9
+ readonly transformerConstructor: typeof CirclePackingChartSpecTransformer;
7
10
  readonly type: string;
8
11
  readonly seriesType: string;
9
- protected getDefaultSeriesSpec(spec: ICirclePackingChartSpec): ICirclePackingSeriesSpec;
10
- transformSpec(spec: ICirclePackingChartSpec): void;
11
12
  }
12
13
  export declare const registerCirclePackingChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './interface';
2
2
  export * from './circle-packing';
3
+ export * from './circle-packing-transformer';
@@ -0,0 +1,7 @@
1
+ import type { AdaptiveSpec } from '../../typings';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { ICommonChartSpec } from './interface';
4
+ export declare class CommonChartSpecTransformer<T extends ICommonChartSpec = ICommonChartSpec> extends BaseChartSpecTransformer<AdaptiveSpec<T, 'series'>> {
5
+ protected _getDefaultSeriesSpec(spec: AdaptiveSpec<T, 'series'>): any;
6
+ transformSpec(spec: AdaptiveSpec<T, 'series'>): void;
7
+ }
@@ -1,10 +1,13 @@
1
- import { BaseChart } from '../base-chart';
2
- export declare class CommonChart extends BaseChart {
1
+ import { BaseChart } from '../base/base-chart';
2
+ import type { ICommonChartSpec } from './interface';
3
+ import type { AdaptiveSpec } from '../../typings';
4
+ import { CommonChartSpecTransformer } from './common-transformer';
5
+ export declare class CommonChart<T extends ICommonChartSpec = ICommonChartSpec> extends BaseChart<AdaptiveSpec<T, 'series'>> {
3
6
  static readonly type: string;
4
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof CommonChartSpecTransformer;
9
+ readonly transformerConstructor: typeof CommonChartSpecTransformer;
5
10
  readonly type: string;
6
11
  protected _canStack: boolean;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- transformSpec(spec: any): void;
9
12
  }
10
13
  export declare const registerCommonChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './interface';
2
2
  export * from './common';
3
+ export * from './common-transformer';
@@ -0,0 +1,6 @@
1
+ import { BaseChartSpecTransformer } from '../base';
2
+ import type { ICorrelationChartSpec } from './interface';
3
+ export declare class CorrelationChartSpecTransformer<T extends ICorrelationChartSpec = ICorrelationChartSpec> extends BaseChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ transformSpec(spec: T): void;
6
+ }
@@ -1,11 +1,13 @@
1
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
2
2
  import type { ICorrelationChartSpec } from './interface';
3
- export declare class CorrelationChart extends BaseChart {
3
+ import { CorrelationChartSpecTransformer } from './correlation-transformer';
4
+ export declare class CorrelationChart<T extends ICorrelationChartSpec = ICorrelationChartSpec> 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 CorrelationChartSpecTransformer;
9
+ readonly transformerConstructor: typeof CorrelationChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
- protected _getDefaultSeriesSpec(spec: ICorrelationChartSpec): any;
9
- transformSpec(spec: ICorrelationChartSpec): void;
10
12
  }
11
13
  export declare const registerCorrelationChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './correlation';
2
2
  export * from './interface';
3
+ export * from './correlation-transformer';
@@ -0,0 +1,14 @@
1
+ import type { IFunnel3dChartSpec } from '../interface';
2
+ import type { AdaptiveSpec } from '../../../typings';
3
+ import { FunnelChartSpecTransformer } from '../funnel-transformer';
4
+ import { BaseChart } from '../../base';
5
+ export declare class Funnel3dChart<T extends IFunnel3dChartSpec = IFunnel3dChartSpec> extends BaseChart<AdaptiveSpec<T, 'type'>> {
6
+ static readonly type: string;
7
+ static readonly seriesType: string;
8
+ static readonly view: string;
9
+ static readonly transformerConstructor: typeof FunnelChartSpecTransformer;
10
+ readonly transformerConstructor: typeof FunnelChartSpecTransformer;
11
+ readonly type: string;
12
+ readonly seriesType: string;
13
+ }
14
+ export declare const registerFunnel3dChart: () => void;
@@ -0,0 +1 @@
1
+ export * from './funnel-3d';
@@ -0,0 +1,8 @@
1
+ import type { IFunnelSeriesSpec } from '../../series';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { IFunnelChartSpec } from './interface';
4
+ export declare class FunnelChartSpecTransformer<T extends IFunnelChartSpec> extends BaseChartSpecTransformer<T> {
5
+ protected needAxes(): boolean;
6
+ protected _getDefaultSeriesSpec(spec: T): IFunnelSeriesSpec;
7
+ transformSpec(spec: T): void;
8
+ }
@@ -1,7 +1,12 @@
1
- import { BaseFunnelChart } from './base';
2
- export declare class FunnelChart extends BaseFunnelChart {
1
+ import type { IFunnelChartSpec } from './interface';
2
+ import { FunnelChartSpecTransformer } from './funnel-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class FunnelChart<T extends IFunnelChartSpec = IFunnelChartSpec> 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 FunnelChartSpecTransformer;
9
+ readonly transformerConstructor: typeof FunnelChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
12
  }
@@ -1,3 +1,4 @@
1
1
  export * from './funnel';
2
- export * from './funnel-3d';
2
+ export * from './3d';
3
3
  export * from './interface';
4
+ export * from './funnel-transformer';
@@ -1,4 +1,4 @@
1
- import type { IChartExtendsSeriesSpec } from '../..';
1
+ import type { IChartExtendsSeriesSpec } from '../../typings';
2
2
  import type { IFunnelSeriesSpec, IFunnel3dSeriesSpec } from '../../series/funnel/interface';
3
3
  import type { IChartSpec } from '../../typings/spec';
4
4
  export interface IFunnelChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IFunnelSeriesSpec> {
@@ -0,0 +1,9 @@
1
+ import type { AdaptiveSpec } from '../../typings';
2
+ import { ProgressLikeChartSpecTransformer } from '../polar';
3
+ import type { IGaugeChartSpec } from './interface';
4
+ export declare class GaugeChartSpecTransformer<T extends IGaugeChartSpec = IGaugeChartSpec> extends ProgressLikeChartSpecTransformer<AdaptiveSpec<T, 'axes'>> {
5
+ protected _getDefaultSeriesSpec(spec: T): any;
6
+ protected _getDefaultCircularProgressSeriesSpec(spec: T): any;
7
+ transformSpec(spec: AdaptiveSpec<T, 'axes'>): void;
8
+ protected _transformGaugeAxisSpec(spec: AdaptiveSpec<T, 'axes'>): void;
9
+ }
@@ -1,12 +1,14 @@
1
- import { ProgressLikeChart } from '../polar/progress-like';
2
- export declare class GaugeChart extends ProgressLikeChart {
1
+ import type { IGaugeChartSpec } from './interface';
2
+ import { GaugeChartSpecTransformer } from './gauge-transformer';
3
+ import type { AdaptiveSpec } from '../../typings';
4
+ import { BaseChart } from '../base';
5
+ export declare class GaugeChart<T extends IGaugeChartSpec = IGaugeChartSpec> 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 GaugeChartSpecTransformer;
10
+ readonly transformerConstructor: typeof GaugeChartSpecTransformer;
5
11
  readonly type: string;
6
12
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
- protected _getDefaultCircularProgressSeriesSpec(spec: any): any;
9
- transformSpec(spec: any): void;
10
- protected _transformGaugeAxisSpec(spec: any): void;
11
13
  }
12
14
  export declare const registerGaugeChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './interface';
2
2
  export * from './gauge';
3
+ export * from './gauge-transformer';
@@ -1,9 +1,9 @@
1
- import type { IChartSpec } from '../../typings/spec/common';
2
1
  import type { IPolarAxisSpec } from '../../component/axis/polar/interface';
3
2
  import type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from '../../series/gauge';
4
3
  import type { ILinearAxisSpec } from '../../component/axis/interface';
5
4
  import type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';
6
- export interface IGaugeChartSpec extends IChartSpec, Omit<IGaugePointerSeriesSpec, 'data' | 'type' | 'morph'> {
5
+ import type { IPolarChartSpec } from '../polar';
6
+ export interface IGaugeChartSpec extends Omit<IPolarChartSpec, 'axes'>, Omit<IGaugePointerSeriesSpec, 'data' | 'type' | 'morph'> {
7
7
  type: 'gauge';
8
8
  gauge?: Omit<IGaugeSeriesSpec, 'data'> | Omit<ICircularProgressSeriesSpec, 'data'>;
9
9
  axes?: (IPolarAxisSpec | ILinearAxisSpec)[];
@@ -0,0 +1,5 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IHeatmapChartSpec } from './interface';
3
+ export declare class HeatmapChartSpecTransformer<T extends IHeatmapChartSpec = IHeatmapChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: T): any;
5
+ }
@@ -1,9 +1,13 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
- export declare class HeatmapChart extends CartesianChart {
1
+ import type { IHeatmapChartSpec } from './interface';
2
+ import { HeatmapChartSpecTransformer } from './heatmap-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class HeatmapChart<T extends IHeatmapChartSpec = IHeatmapChartSpec> 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 HeatmapChartSpecTransformer;
9
+ readonly transformerConstructor: typeof HeatmapChartSpecTransformer;
5
10
  readonly type: string;
6
11
  readonly seriesType: string;
7
- protected _getDefaultSeriesSpec(spec: any): any;
8
12
  }
9
13
  export declare const registerHeatmapChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './heatmap';
2
2
  export * from './interface';
3
+ export * from './heatmap-transformer';
@@ -0,0 +1,14 @@
1
+ import { BaseHistogramChart } from '../base/base';
2
+ import type { IHistogram3dChartSpec } from '../interface';
3
+ import type { AdaptiveSpec } from '../../../typings';
4
+ import { HistogramChartSpecTransformer } from '../histogram-transformer';
5
+ export declare class Histogram3dChart<T extends IHistogram3dChartSpec> extends BaseHistogramChart<AdaptiveSpec<T, 'type'>> {
6
+ static readonly type: string;
7
+ static readonly seriesType: string;
8
+ static readonly view: string;
9
+ static readonly transformerConstructor: typeof HistogramChartSpecTransformer;
10
+ readonly transformerConstructor: typeof HistogramChartSpecTransformer;
11
+ readonly type: string;
12
+ readonly seriesType: string;
13
+ }
14
+ export declare const registerHistogram3dChart: () => void;
@@ -0,0 +1 @@
1
+ export * from './histogram-3d';
@@ -0,0 +1,8 @@
1
+ import { BaseChart } from '../../base';
2
+ import type { IHistogramChartSpec } from '../interface';
3
+ import { BaseHistogramChartSpecTransformer } from './histogram-base-transformer';
4
+ export declare class BaseHistogramChart<T extends IHistogramChartSpec> extends BaseChart<T> {
5
+ static readonly transformerConstructor: typeof BaseHistogramChartSpecTransformer;
6
+ readonly transformerConstructor: typeof BaseHistogramChartSpecTransformer;
7
+ protected _canStack: boolean;
8
+ }