@visactor/vchart-types 1.8.0-alpha.0 → 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 (277) hide show
  1. package/package.json +1 -1
  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/gauge-pointer.d.ts +2 -3
  239. package/types/series/gauge/gauge-transformer.d.ts +5 -0
  240. package/types/series/gauge/gauge.d.ts +4 -3
  241. package/types/series/geo/interface.d.ts +1 -1
  242. package/types/series/heatmap/heatmap-transformer.d.ts +5 -0
  243. package/types/series/heatmap/heatmap.d.ts +4 -3
  244. package/types/series/index.d.ts +3 -3
  245. package/types/series/interface/common.d.ts +11 -6
  246. package/types/series/interface/series.d.ts +2 -3
  247. package/types/series/line/line.d.ts +5 -3
  248. package/types/series/link/link.d.ts +2 -3
  249. package/types/series/map/map-transformer.d.ts +5 -0
  250. package/types/series/map/map.d.ts +5 -3
  251. package/types/series/mixin/line-mixin-transformer.d.ts +5 -0
  252. package/types/series/mixin/line-mixin.d.ts +1 -2
  253. package/types/series/pie/3d/index.d.ts +2 -0
  254. package/types/series/pie/3d/pie-3d-transformer.d.ts +5 -0
  255. package/types/series/pie/3d/pie-3d.d.ts +20 -0
  256. package/types/series/pie/interface.d.ts +3 -0
  257. package/types/series/pie/pie-transformer.d.ts +9 -0
  258. package/types/series/pie/pie.d.ts +6 -13
  259. package/types/series/polar/index.d.ts +3 -0
  260. package/types/series/polar/polar.d.ts +0 -2
  261. package/types/series/progress/circular/circular.d.ts +2 -3
  262. package/types/series/progress/linear/linear.d.ts +1 -3
  263. package/types/series/radar/radar.d.ts +5 -3
  264. package/types/series/range-column/3d/index.d.ts +2 -0
  265. package/types/series/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  266. package/types/series/range-column/3d/range-column-3d.d.ts +15 -0
  267. package/types/series/range-column/range-column-transformer.d.ts +5 -0
  268. package/types/series/range-column/range-column.d.ts +2 -0
  269. package/types/series/rose/rose-transformer.d.ts +5 -0
  270. package/types/series/rose/rose.d.ts +4 -3
  271. package/types/series/scatter/scatter-transformer.d.ts +5 -0
  272. package/types/series/scatter/scatter.d.ts +5 -3
  273. package/types/series/sunburst/sunburst.d.ts +1 -1
  274. package/types/series/waterfall/waterfall-transformer.d.ts +5 -0
  275. package/types/series/waterfall/waterfall.d.ts +4 -3
  276. package/types/typings/spec/common.d.ts +2 -0
  277. package/types/util/color.d.ts +1 -3
@@ -1,11 +1,13 @@
1
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
2
2
  import type { ISankeyChartSpec } from './interface';
3
- export declare class SankeyChart extends BaseChart {
3
+ import { SankeyChartSpecTransformer } from './sankey-transformer';
4
+ export declare class SankeyChart<T extends ISankeyChartSpec = ISankeyChartSpec> 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 SankeyChartSpecTransformer;
9
+ readonly transformerConstructor: typeof SankeyChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
- protected getDefaultSeriesSpec(spec: ISankeyChartSpec): any;
9
- transformSpec(spec: any): void;
10
12
  }
11
13
  export declare const registerSankeyChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './scatter';
2
2
  export * from './interface';
3
+ export * from './scatter-transformer';
@@ -0,0 +1,5 @@
1
+ import { CartesianChartSpecTransformer } from '../cartesian';
2
+ import type { IScatterChartSpec } from './interface';
3
+ export declare class ScatterChartSpecTransformer<T extends IScatterChartSpec = IScatterChartSpec> extends CartesianChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: IScatterChartSpec): any;
5
+ }
@@ -1,11 +1,14 @@
1
- import { CartesianChart } from '../cartesian/cartesian';
2
1
  import type { IScatterChartSpec } from './interface';
3
- export declare class ScatterChart extends CartesianChart {
2
+ import { ScatterChartSpecTransformer } from './scatter-transformer';
3
+ import { BaseChart } from '../base';
4
+ export declare class ScatterChart<T extends IScatterChartSpec = IScatterChartSpec> 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 ScatterChartSpecTransformer;
9
+ readonly transformerConstructor: typeof ScatterChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
12
  protected _canStack: boolean;
9
- protected _getDefaultSeriesSpec(spec: IScatterChartSpec): any;
10
13
  }
11
14
  export declare const registerScatterChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './sequence';
2
2
  export * from './interface';
3
+ export * from './sequence-transformer';
@@ -0,0 +1,7 @@
1
+ import { BaseChartSpecTransformer } from '../base';
2
+ import type { ISequenceChartSpec } from './interface';
3
+ export declare class SequenceChartSpecTransformer<T extends ISequenceChartSpec = ISequenceChartSpec> extends BaseChartSpecTransformer<T> {
4
+ private _getSeriesDataLength;
5
+ addAttrToComponentSpec(componentSpec: any, attr: string, value: any): any;
6
+ transformSpec(spec: T): void;
7
+ }
@@ -1,12 +1,14 @@
1
- import { BaseChart } from '../base-chart';
2
- import type { ISequenceChartSpec, ISequenceSeriesSpec } from './interface';
3
- export declare class SequenceChart extends BaseChart {
1
+ import { BaseChart } from '../base/base-chart';
2
+ import type { ISequenceChartSpec } from './interface';
3
+ import type { ISeriesConstructor } from '../../series/interface';
4
+ import type { IModelSpecInfo } from '../../model/interface';
5
+ import { SequenceChartSpecTransformer } from './sequence-transformer';
6
+ export declare class SequenceChart<T extends ISequenceChartSpec = ISequenceChartSpec> extends BaseChart<T> {
4
7
  static readonly type: string;
5
8
  static readonly view: string;
9
+ static readonly transformerConstructor: typeof SequenceChartSpecTransformer;
10
+ readonly transformerConstructor: typeof SequenceChartSpecTransformer;
6
11
  readonly type: string;
7
- transformSpec(spec: ISequenceChartSpec): void;
8
- protected _createSeries(seriesSpec: ISequenceSeriesSpec[]): void;
9
- addAttrToComponentSpec(componentSpec: any, attr: string, value: any): any;
10
- private _getSeriesDataLength;
12
+ protected _createSeries(constructor: ISeriesConstructor, specInfo: IModelSpecInfo): void;
11
13
  }
12
14
  export declare const registerSequenceChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './interface';
2
2
  export * from './sunburst';
3
+ export * from './sunburst-transformer';
@@ -0,0 +1,7 @@
1
+ import { BaseChartSpecTransformer } from '../base';
2
+ import type { ISunburstChartSpec } from './interface';
3
+ import type { ISunburstSeriesSpec } from '../../series';
4
+ export declare class SunburstChartSpecTransformer<T extends ISunburstChartSpec = ISunburstChartSpec> extends BaseChartSpecTransformer<T> {
5
+ protected _getDefaultSeriesSpec(spec: T): ISunburstSeriesSpec;
6
+ transformSpec(spec: T): void;
7
+ }
@@ -1,12 +1,13 @@
1
- import type { ISunburstSeriesSpec } from '../../series/sunburst/interface';
2
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
3
2
  import type { ISunburstChartSpec } from './interface';
4
- export declare class SunburstChart extends BaseChart {
3
+ import { SunburstChartSpecTransformer } from './sunburst-transformer';
4
+ export declare class SunburstChart<T extends ISunburstChartSpec = ISunburstChartSpec> 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 SunburstChartSpecTransformer;
9
+ readonly transformerConstructor: typeof SunburstChartSpecTransformer;
7
10
  readonly type: string;
8
11
  readonly seriesType: string;
9
- protected getDefaultSeriesSpec(spec: ISunburstChartSpec): ISunburstSeriesSpec;
10
- transformSpec(spec: ISunburstChartSpec): void;
11
12
  }
12
13
  export declare const registerSunburstChart: () => void;
@@ -1,2 +1,3 @@
1
1
  export * from './interface';
2
2
  export * from './treemap';
3
+ export * from './treemap-transformer';
@@ -0,0 +1,7 @@
1
+ import type { AdaptiveSpec } from '../../typings';
2
+ import { BaseChartSpecTransformer } from '../base';
3
+ import type { ITreemapChartSpec } from './interface';
4
+ export declare class TreemapChartSpecTransformer<T extends ITreemapChartSpec = ITreemapChartSpec> extends BaseChartSpecTransformer<AdaptiveSpec<T, 'data' | 'series'>> {
5
+ protected _getDefaultSeriesSpec(spec: T): any;
6
+ transformSpec(spec: any): void;
7
+ }
@@ -1,11 +1,14 @@
1
- import { BaseChart } from '../base-chart';
1
+ import { BaseChart } from '../base/base-chart';
2
2
  import type { ITreemapChartSpec } from './interface';
3
- export declare class TreemapChart extends BaseChart {
3
+ import type { AdaptiveSpec } from '../../typings';
4
+ import { TreemapChartSpecTransformer } from './treemap-transformer';
5
+ export declare class TreemapChart<T extends ITreemapChartSpec = ITreemapChartSpec> extends BaseChart<AdaptiveSpec<T, 'data' | 'series'>> {
4
6
  static readonly type: string;
7
+ static readonly seriesType: string;
5
8
  static readonly view: string;
9
+ static readonly transformerConstructor: typeof TreemapChartSpecTransformer;
10
+ readonly transformerConstructor: typeof TreemapChartSpecTransformer;
6
11
  readonly type: string;
7
12
  readonly seriesType: string;
8
- protected getDefaultSeriesSpec(spec: ITreemapChartSpec): any;
9
- transformSpec(spec: any): void;
10
13
  }
11
14
  export declare const registerTreemapChart: () => void;
@@ -4,13 +4,13 @@ import type { IChartOption } from './interface/common';
4
4
  import type { IUpdateSpecResult } from '../model/interface';
5
5
  export declare function setDefaultCrosshairForCartesianChart(spec: ICartesianChartSpec): void;
6
6
  export declare function calculateChartSize(spec: {
7
- width: number;
8
- height: number;
7
+ width?: number;
8
+ height?: number;
9
9
  }, option: Pick<IChartOption, 'canvas' | 'container' | 'mode' | 'modeParams'>): {
10
10
  width: number;
11
11
  height: number;
12
12
  };
13
- export declare function mergeUpdateResult(resultA: IUpdateSpecResult, resultB: IUpdateSpecResult): IUpdateSpecResult;
13
+ export declare function mergeUpdateResult(target: IUpdateSpecResult, ...sources: IUpdateSpecResult[]): IUpdateSpecResult;
14
14
  export declare function getTrimPaddingConfig(chartType: string, spec: IChartSpec): {
15
15
  paddingInner: number;
16
16
  paddingOuter: number;
@@ -1,2 +1,3 @@
1
1
  export * from './waterfall';
2
2
  export * from './interface';
3
+ export * from './waterfall-transformer';
@@ -0,0 +1,7 @@
1
+ import type { AdaptiveSpec } from '../../typings';
2
+ import { BarChartSpecTransformer } from '../bar';
3
+ import type { IWaterfallChartSpec } from './interface';
4
+ export declare class WaterfallChartSpecTransformer<T extends IWaterfallChartSpec = IWaterfallChartSpec> extends BarChartSpecTransformer<AdaptiveSpec<T, 'type' | 'series' | 'label'>> {
5
+ transformSpec(spec: AdaptiveSpec<T, 'type' | 'series' | 'label'>): void;
6
+ protected _getDefaultSeriesSpec(spec: AdaptiveSpec<T, 'type' | 'series' | 'label'>): any;
7
+ }
@@ -1,11 +1,14 @@
1
1
  import { BarChart } from '../bar';
2
2
  import type { IWaterfallChartSpec } from './interface';
3
- export declare class WaterfallChart extends BarChart {
3
+ import type { AdaptiveSpec } from '../../typings';
4
+ import { WaterfallChartSpecTransformer } from './waterfall-transformer';
5
+ export declare class WaterfallChart<T extends IWaterfallChartSpec = IWaterfallChartSpec> extends BarChart<AdaptiveSpec<T, 'type' | 'series' | 'label'>> {
4
6
  static readonly type: string;
7
+ static readonly seriesType: string;
5
8
  static readonly view: string;
9
+ static readonly transformerConstructor: typeof WaterfallChartSpecTransformer;
10
+ readonly transformerConstructor: typeof WaterfallChartSpecTransformer;
6
11
  readonly type: string;
7
12
  readonly seriesType: string;
8
- transformSpec(spec: IWaterfallChartSpec): void;
9
- protected _getDefaultSeriesSpec(spec: IWaterfallChartSpec): any;
10
13
  }
11
14
  export declare const registerWaterfallChart: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './word-cloud-3d';
2
+ export * from './word-cloud-3d-transformer';
@@ -0,0 +1,6 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import { BaseWordCloudChartSpecTransformer } from '../base/word-cloud-base-transformer';
3
+ import type { IWordCloud3dChartSpec } from '../interface';
4
+ export declare class WordCloud3dChartSpecTransformer<T extends IWordCloud3dChartSpec = IWordCloud3dChartSpec> extends BaseWordCloudChartSpecTransformer<AdaptiveSpec<T, 'type' | 'series'>> {
5
+ protected _getDefaultSeriesSpec(spec: IWordCloud3dChartSpec): any;
6
+ }
@@ -0,0 +1,15 @@
1
+ import type { IWordCloud3dChartSpec } from '../interface';
2
+ import { BaseWordCloudChart } from '../base/base';
3
+ import type { AdaptiveSpec } from '../../../typings';
4
+ import { WordCloud3dChartSpecTransformer } from './word-cloud-3d-transformer';
5
+ export declare class WordCloud3dChart<T extends IWordCloud3dChartSpec = IWordCloud3dChartSpec> extends BaseWordCloudChart<AdaptiveSpec<T, 'type' | 'series'>> {
6
+ static readonly type: string;
7
+ static readonly seriesType: string;
8
+ static readonly view: string;
9
+ static readonly transformerConstructor: typeof WordCloud3dChartSpecTransformer;
10
+ readonly transformerConstructor: typeof WordCloud3dChartSpecTransformer;
11
+ readonly type: string;
12
+ readonly seriesType: string;
13
+ }
14
+ export declare const registerWordCloud3dChart: () => void;
15
+ export declare const registerWordCloudShape3dChart: () => void;
@@ -0,0 +1,9 @@
1
+ import { BaseChart } from '../../base/base-chart';
2
+ import type { IWordCloudChartSpec } from '../interface';
3
+ import { BaseWordCloudChartSpecTransformer } from './word-cloud-base-transformer';
4
+ export declare class BaseWordCloudChart<T extends IWordCloudChartSpec> extends BaseChart<T> {
5
+ static readonly transformerConstructor: typeof BaseWordCloudChartSpecTransformer;
6
+ readonly transformerConstructor: typeof BaseWordCloudChartSpecTransformer;
7
+ readonly type: string;
8
+ readonly seriesType: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './base';
2
+ export * from './word-cloud-base-transformer';
@@ -0,0 +1,5 @@
1
+ import { BaseChartSpecTransformer } from '../../base';
2
+ import type { IWordCloudChartSpec } from '../interface';
3
+ export declare class BaseWordCloudChartSpecTransformer<T extends IWordCloudChartSpec> extends BaseChartSpecTransformer<T> {
4
+ transformSpec(spec: T): void;
5
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './word-cloud';
2
- export * from './word-cloud-3d';
2
+ export * from './3d';
3
3
  export * from './interface';
4
+ export * from './word-cloud-transformer';
@@ -0,0 +1,5 @@
1
+ import { BaseWordCloudChartSpecTransformer } from './base';
2
+ import type { IWordCloudChartSpec } from './interface';
3
+ export declare class WordCloudChartSpecTransformer<T extends IWordCloudChartSpec = IWordCloudChartSpec> extends BaseWordCloudChartSpecTransformer<T> {
4
+ protected _getDefaultSeriesSpec(spec: IWordCloudChartSpec): any;
5
+ }
@@ -1,11 +1,14 @@
1
1
  import type { IWordCloudChartSpec } from './interface';
2
- import { BaseWordCloudChart } from './base';
3
- export declare class WordCloudChart extends BaseWordCloudChart {
2
+ import { BaseWordCloudChart } from './base/base';
3
+ import { WordCloudChartSpecTransformer } from './word-cloud-transformer';
4
+ export declare class WordCloudChart<T extends IWordCloudChartSpec = IWordCloudChartSpec> extends BaseWordCloudChart<T> {
4
5
  static readonly type: string;
6
+ static readonly seriesType: string;
5
7
  static readonly view: string;
8
+ static readonly transformerConstructor: typeof WordCloudChartSpecTransformer;
9
+ readonly transformerConstructor: typeof WordCloudChartSpecTransformer;
6
10
  readonly type: string;
7
11
  readonly seriesType: string;
8
- protected _getDefaultSeriesSpec(spec: IWordCloudChartSpec): any;
9
12
  }
10
13
  export declare const registerWordCloudChart: () => void;
11
14
  export declare const registerWordCloudShapeChart: () => void;
@@ -9,7 +9,6 @@ import type { ICompilableMark, IMarkDataInitOption, ICompilableMarkOption, State
9
9
  import { MarkData } from './mark-data';
10
10
  import { GrammarType } from '../interface/compilable-item';
11
11
  import type { IEvent } from '../../event/interface';
12
- import type { TransformedLabelSpec } from '../../component/label';
13
12
  import type { ICustomPath2D } from '@visactor/vrender-core';
14
13
  export declare abstract class CompilableMark extends GrammarItem implements ICompilableMark {
15
14
  readonly grammarType = GrammarType.mark;
@@ -69,10 +68,6 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
69
68
  protected _groupKey?: string;
70
69
  getGroupKey(): string;
71
70
  setGroupKey(groupKey: string): void;
72
- protected _label?: TransformedLabelSpec[];
73
- getLabelSpec(): TransformedLabelSpec[];
74
- setLabelSpec(label: TransformedLabelSpec | TransformedLabelSpec[]): void;
75
- addLabelSpec(label: TransformedLabelSpec, head?: boolean): void;
76
71
  protected _progressiveConfig: IMarkProgressiveConfig;
77
72
  getProgressiveConfig(): IMarkProgressiveConfig;
78
73
  setProgressiveConfig(config: IMarkProgressiveConfig): void;
@@ -7,7 +7,6 @@ import type { DataView } from '@visactor/vdataset';
7
7
  import type { IAnimate, IAnimateArranger, IElement, IGroupMark, IMark, MarkAnimationSpec, Nil, TransformSpec } from '@visactor/vgrammar-core';
8
8
  import type { Maybe, Datum, StringOrNumber } from '../../typings';
9
9
  import type { MarkData } from './mark-data';
10
- import type { TransformedLabelSpec } from '../../component/label';
11
10
  import type { IRegion } from '../../region/interface';
12
11
  import type { ICustomPath2D } from '@visactor/vrender-core';
13
12
  export interface ICompilableMarkOption extends GrammarItemInitOption {
@@ -31,9 +30,6 @@ export interface ICompilableMark extends IGrammarItem {
31
30
  setDataView: (d?: DataView, productId?: string) => void;
32
31
  getFacet: () => string | undefined;
33
32
  setFacet: (facet: string) => void;
34
- getLabelSpec: () => TransformedLabelSpec[];
35
- setLabelSpec: (label: TransformedLabelSpec | TransformedLabelSpec[]) => void;
36
- addLabelSpec: (label: TransformedLabelSpec, head?: boolean) => void;
37
33
  state: MarkStateManager;
38
34
  readonly stateStyle: IMarkStateStyle<any>;
39
35
  hasState: (state: string) => boolean;
@@ -65,6 +61,7 @@ export interface ICompilableMark extends IGrammarItem {
65
61
  getUserId: () => StringOrNumber | undefined;
66
62
  setUserId: (id: StringOrNumber) => void;
67
63
  getSupport3d: () => boolean | undefined;
64
+ setSupport3d: (support3d: boolean) => void;
68
65
  compile: (option?: IMarkCompileOption) => void;
69
66
  getProduct: () => Maybe<IMark>;
70
67
  getMarks: () => ICompilableMark[];
@@ -4,8 +4,6 @@ import type { IGroup, IGraphic } from '@visactor/vrender-core';
4
4
  import type { AxisItem } from '@visactor/vrender-components';
5
5
  import type { IOrientType, IPolarOrientType, StringOrNumber, CoordinateType } from '../../typings';
6
6
  import { BaseComponent } from '../base/base-component';
7
- import type { IPolarAxisCommonTheme } from './polar/interface';
8
- import type { ICartesianAxisCommonTheme } from './cartesian/interface';
9
7
  import type { CompilableData } from '../../compile/data';
10
8
  import type { IAxis, ICommonAxisSpec, ITick } from './interface';
11
9
  import type { IComponentOption } from '../interface';
@@ -21,7 +19,6 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
21
19
  getScale(): IBaseScale;
22
20
  protected _scales: IBaseScale[];
23
21
  getScales(): IBaseScale[];
24
- protected _theme: ICartesianAxisCommonTheme | IPolarAxisCommonTheme;
25
22
  protected _tickData: CompilableData;
26
23
  getTickData(): CompilableData;
27
24
  protected _seriesUserId?: StringOrNumber[];
@@ -30,6 +27,8 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
30
27
  protected _regionIndex?: number[];
31
28
  protected _visible: boolean;
32
29
  get visible(): boolean;
30
+ protected _inverse: boolean;
31
+ getInverse(): boolean;
33
32
  protected _tick: ITick | undefined;
34
33
  protected abstract computeDomain(data: {
35
34
  min: number;
@@ -64,7 +63,7 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
64
63
  protected updateScaleDomain(): void;
65
64
  protected computeData(updateType?: 'domain' | 'range' | 'force'): void;
66
65
  protected initScales(): void;
67
- _compareSpec(): {
66
+ _compareSpec(spec: T, prevSpec: T): {
68
67
  change: boolean;
69
68
  reMake: boolean;
70
69
  reRender: boolean;
@@ -1,8 +1,8 @@
1
- import type { IBoundsLike } from '@visactor/vutils';
2
- import type { IEffect, IModelInitOption } from '../../../model/interface';
1
+ import type { IBoundsLike, Maybe } from '@visactor/vutils';
2
+ import type { IEffect, IModelInitOption, IModelSpecInfo } from '../../../model/interface';
3
3
  import type { ICartesianSeries } from '../../../series/interface';
4
4
  import type { IRegion } from '../../../region/interface';
5
- import type { ICartesianAxisCommonSpec, IAxisHelper, ICartesianAxisCommonTheme } from './interface';
5
+ import type { ICartesianAxisCommonSpec, IAxisHelper } from './interface';
6
6
  import type { IOrientType } from '../../../typings/space';
7
7
  import type { IBaseScale } from '@visactor/vscale';
8
8
  import type { StringOrNumber } from '../../../typings/common';
@@ -19,6 +19,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
19
19
  static type: ComponentTypeEnum;
20
20
  type: ComponentTypeEnum;
21
21
  name: string;
22
+ static specKey: string;
22
23
  protected readonly _defaultBandPosition = 0.5;
23
24
  protected readonly _defaultBandInnerPadding = 0.1;
24
25
  protected readonly _defaultBandOuterPadding = 0.3;
@@ -39,7 +40,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
39
40
  set autoIndentOnce(v: boolean);
40
41
  protected _scales: IBaseScale[];
41
42
  getScales(): IBaseScale[];
42
- protected _theme: ICartesianAxisCommonTheme;
43
43
  protected _tick: ITick | undefined;
44
44
  private _axisStyle;
45
45
  private _latestBounds;
@@ -51,8 +51,8 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
51
51
  _lastComputeOutBounds: IBoundsLike;
52
52
  };
53
53
  constructor(spec: T, options: IComponentOption);
54
- static createAxis(spec: any, options: IComponentOption, isHorizontal?: boolean): IAxis;
55
- static createComponent(spec: any, options: IComponentOption): IAxis | IAxis[];
54
+ static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
55
+ static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IAxis;
56
56
  initLayout(): void;
57
57
  setLayout3dBox(box3d: {
58
58
  width: number;
@@ -100,7 +100,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
100
100
  protected _layoutCacheProcessing(rect: ILayoutRect): ILayoutRect;
101
101
  _clearLayoutCache(): void;
102
102
  onDataUpdate(): void;
103
- protected _transformSpec(): void;
104
103
  private _appendAxisUnit;
105
104
  protected _getNeedClearVRenderComponents(): IGraphic[];
106
105
  }
@@ -9,6 +9,7 @@ export interface CartesianBandAxis<T extends ICartesianBandAxisSpec = ICartesian
9
9
  export declare class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICartesianBandAxisSpec> extends CartesianAxis<T> {
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
+ static specKey: string;
12
13
  protected _scale: BandScale;
13
14
  protected _scales: BandScale[];
14
15
  protected computeDomain(data: {
@@ -9,6 +9,7 @@ export interface CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICarte
9
9
  export declare class CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICartesianLinearAxisSpec> extends CartesianAxis<T> {
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
+ static specKey: string;
12
13
  protected _zero: boolean;
13
14
  protected _nice: boolean;
14
15
  protected _extend: {
@@ -8,6 +8,7 @@ export interface CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesianLo
8
8
  export declare class CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesianLogAxisSpec> extends CartesianLinearAxis<T> {
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
+ static specKey: string;
11
12
  protected _zero: boolean;
12
13
  protected _scale: LogScale;
13
14
  protected _scales: LogScale[];
@@ -8,6 +8,7 @@ export interface CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = ICarte
8
8
  export declare class CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = ICartesianSymlogAxisSpec> extends CartesianLinearAxis<T> {
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
+ static specKey: string;
11
12
  protected _zero: boolean;
12
13
  protected _scale: SymlogScale;
13
14
  protected _scales: SymlogScale[];
@@ -9,6 +9,7 @@ export interface CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICartesian
9
9
  export declare class CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICartesianTimeAxisSpec> extends CartesianLinearAxis<T> {
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
+ static specKey: string;
12
13
  protected _layerTickData: CompilableData;
13
14
  protected _zero: boolean;
14
15
  effect: IEffect;
@@ -9,3 +9,7 @@ export declare function getOrient(spec: ICartesianAxisCommonSpec, whiteList?: st
9
9
  export declare function getDirectionByOrient(orient: IOrientType): Direction;
10
10
  export declare function isOrientInSameDirection(orient1: IOrientType, orient2: IOrientType): boolean;
11
11
  export declare function transformInverse(spec: ICartesianAxisCommonSpec, isHorizontal: boolean): boolean;
12
+ export declare function getCartesianAxisInfo(spec: ICartesianAxisCommonSpec, isHorizontal?: boolean): {
13
+ axisType: import("../..").AxisType;
14
+ componentName: string;
15
+ };
@@ -14,6 +14,7 @@ export interface IAxis extends IComponent {
14
14
  getScale: () => IBaseScale;
15
15
  getScales: () => IBaseScale[];
16
16
  getOrient: () => ICartesianAxisSpec['orient'] | IPolarOrientType;
17
+ getInverse: () => boolean;
17
18
  visible: boolean;
18
19
  directionStr?: 'l2r' | 'r2l' | 't2b' | 'b2t';
19
20
  }
@@ -1,17 +1,19 @@
1
1
  import type { IBaseScale } from '@visactor/vscale';
2
- import type { IPolarAxis, IPolarAxisCommonSpec, IPolarAxisCommonTheme } from './interface';
2
+ import type { IPolarAxis, IPolarAxisCommonSpec } from './interface';
3
3
  import type { IComponentOption } from '../../interface';
4
4
  import { ComponentTypeEnum } from '../../interface/type';
5
5
  import type { IPolarTickDataOpt, CoordinateType } from '@visactor/vutils-extension';
6
6
  import type { IPolarSeries } from '../../../series/interface';
7
7
  import type { IPoint, IPolarOrientType, IPolarPoint, StringOrNumber, ILayoutType } from '../../../typings';
8
- import type { IEffect } from '../../../model/interface';
8
+ import type { Maybe } from '@visactor/vutils';
9
+ import type { IEffect, IModelSpecInfo } from '../../../model/interface';
9
10
  import { AxisComponent } from '../base-axis';
10
11
  import type { ITick } from '../interface';
11
12
  export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarAxisCommonSpec> extends AxisComponent<T> implements IPolarAxis {
12
13
  static type: ComponentTypeEnum;
13
14
  type: ComponentTypeEnum;
14
15
  name: string;
16
+ static specKey: string;
15
17
  protected readonly _defaultBandPosition = 0;
16
18
  protected readonly _defaultBandInnerPadding = 0;
17
19
  protected readonly _defaultBandOuterPadding = 0;
@@ -24,17 +26,14 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
24
26
  get startAngle(): number;
25
27
  protected _endAngle: number;
26
28
  get endAngle(): number;
27
- protected _theme: IPolarAxisCommonTheme;
28
29
  protected _orient: IPolarOrientType;
29
30
  getOrient(): IPolarOrientType;
30
31
  protected _groupScales: IBaseScale[];
31
32
  getGroupScales(): IBaseScale[];
32
- protected _refAngleAxis: IPolarAxis;
33
- setRefAngleAxis(axes: IPolarAxis): this;
34
33
  private _axisStyle;
35
34
  private _gridStyle;
36
- static createAxis(spec: any, options: IComponentOption): IPolarAxis;
37
- static createComponent(spec: any, options: IComponentOption): IPolarAxis | IPolarAxis[];
35
+ static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
36
+ static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IPolarAxis;
38
37
  effect: IEffect;
39
38
  setAttrFromSpec(): void;
40
39
  _transformLayoutPosition: (pos: Partial<IPoint>) => Partial<IPoint>;
@@ -77,6 +76,7 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
77
76
  updateLayoutAttribute(): void;
78
77
  private _layoutAngleAxis;
79
78
  private _layoutRadiusAxis;
79
+ protected _getRelatedAngleAxis(): IPolarAxis | undefined;
80
80
  private computeLayoutOuterRadius;
81
81
  private computeLayoutInnerRadius;
82
82
  private getRefLayoutRect;
@@ -9,6 +9,7 @@ export interface PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxisSpec
9
9
  export declare class PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxisSpec> extends PolarAxis<T> {
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
+ static specKey: string;
12
13
  protected _scale: BandScale;
13
14
  protected _scales: BandScale[];
14
15
  protected computeDomain(data: {
@@ -20,7 +20,6 @@ export interface IPolarAxis extends IAxis {
20
20
  endAngle: number;
21
21
  getOrient: () => IPolarOrientType;
22
22
  getScale: () => IBaseScale;
23
- setRefAngleAxis: (axes: IPolarAxis) => this;
24
23
  tickValues: () => number[];
25
24
  getCenter: () => IPoint;
26
25
  getOuterRadius: () => number;
@@ -8,6 +8,7 @@ export interface PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAx
8
8
  export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends PolarAxis<T> {
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
+ static specKey: string;
11
12
  protected _zero: boolean;
12
13
  protected _nice: boolean;
13
14
  protected _scale: LinearScale;
@@ -0,0 +1,5 @@
1
+ import type { IPolarAxisCommonSpec } from '../interface';
2
+ export declare const getPolarAxisInfo: (spec: IPolarAxisCommonSpec) => {
3
+ axisType: import("../..").AxisType;
4
+ componentName: string;
5
+ };
@@ -0,0 +1 @@
1
+ export * from './common';
@@ -1,6 +1,6 @@
1
1
  import type { IOrientType, IPolarOrientType } from '../../typings';
2
2
  import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface';
3
- import type { IModelOption } from '../../model/interface';
3
+ import type { ITheme } from '../../theme';
4
4
  export declare const DEFAULT_TITLE_STYLE: {
5
5
  left: {
6
6
  textAlign: string;
@@ -24,5 +24,6 @@ export declare function getLinearAxisSpecDomain(axisSpec: ILinearAxisSpec, defau
24
24
  };
25
25
  export declare function isValidCartesianAxis(spec: any): boolean;
26
26
  export declare function isValidPolarAxis(spec: any): boolean;
27
- export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, option: Partial<IModelOption>) => any;
28
- export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, option: Partial<IModelOption>) => any;
27
+ export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, chartTheme: ITheme) => any;
28
+ export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, chartTheme: ITheme) => any;
29
+ export declare const isDiscreteAxis: (axisType: AxisType) => boolean;
@@ -0,0 +1,10 @@
1
+ import { BaseModelSpecTransformer } from '../../model';
2
+ import type { IComponentSpec } from './interface';
3
+ export declare class BaseComponentSpecTransformer<T extends IComponentSpec = IComponentSpec, K = any> extends BaseModelSpecTransformer<T, K> {
4
+ getTheme(spec: T, chartSpec: any): K;
5
+ protected _mergeThemeToSpec(spec: T, chartSpec: any): {
6
+ spec: T;
7
+ theme: K;
8
+ };
9
+ protected _adjustPadding(spec: T): void;
10
+ }