@visactor/vchart-types 1.8.0-alpha.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/package.json +3 -3
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/utils.d.ts +2 -2
  4. package/types/chart/area/area-transformer.d.ts +6 -0
  5. package/types/chart/area/area.d.ts +6 -4
  6. package/types/chart/area/index.d.ts +1 -0
  7. package/types/chart/bar/3d/bar-3d-transformer.d.ts +6 -0
  8. package/types/chart/bar/3d/bar-3d.d.ts +14 -0
  9. package/types/chart/bar/3d/index.d.ts +2 -0
  10. package/types/chart/bar/bar-transformer.d.ts +6 -0
  11. package/types/chart/bar/bar.d.ts +7 -4
  12. package/types/chart/bar/index.d.ts +2 -1
  13. package/types/chart/base/base-chart-transformer.d.ts +21 -0
  14. package/types/chart/base/base-chart.d.ts +148 -0
  15. package/types/chart/base/index.d.ts +2 -0
  16. package/types/chart/box-plot/box-plot-transformer.d.ts +6 -0
  17. package/types/chart/box-plot/box-plot.d.ts +6 -4
  18. package/types/chart/box-plot/index.d.ts +1 -0
  19. package/types/chart/cartesian/cartesian-transformer.d.ts +8 -0
  20. package/types/chart/cartesian/index.d.ts +1 -1
  21. package/types/chart/circle-packing/circle-packing-transformer.d.ts +7 -0
  22. package/types/chart/circle-packing/circle-packing.d.ts +6 -5
  23. package/types/chart/circle-packing/index.d.ts +1 -0
  24. package/types/chart/common/common-transformer.d.ts +7 -0
  25. package/types/chart/common/common.d.ts +7 -4
  26. package/types/chart/common/index.d.ts +1 -0
  27. package/types/chart/correlation/correlation-transformer.d.ts +6 -0
  28. package/types/chart/correlation/correlation.d.ts +6 -4
  29. package/types/chart/correlation/index.d.ts +1 -0
  30. package/types/chart/funnel/3d/funnel-3d.d.ts +14 -0
  31. package/types/chart/funnel/3d/index.d.ts +1 -0
  32. package/types/chart/funnel/funnel-transformer.d.ts +8 -0
  33. package/types/chart/funnel/funnel.d.ts +7 -2
  34. package/types/chart/funnel/index.d.ts +2 -1
  35. package/types/chart/funnel/interface.d.ts +1 -1
  36. package/types/chart/gauge/gauge-transformer.d.ts +9 -0
  37. package/types/chart/gauge/gauge.d.ts +8 -6
  38. package/types/chart/gauge/index.d.ts +1 -0
  39. package/types/chart/gauge/interface.d.ts +2 -2
  40. package/types/chart/heatmap/heatmap-transformer.d.ts +5 -0
  41. package/types/chart/heatmap/heatmap.d.ts +7 -3
  42. package/types/chart/heatmap/index.d.ts +1 -0
  43. package/types/chart/histogram/3d/histogram-3d.d.ts +14 -0
  44. package/types/chart/histogram/3d/index.d.ts +1 -0
  45. package/types/chart/histogram/base/base.d.ts +8 -0
  46. package/types/chart/histogram/base/histogram-base-transformer.d.ts +6 -0
  47. package/types/chart/histogram/base/index.d.ts +2 -0
  48. package/types/chart/histogram/histogram-transformer.d.ts +5 -0
  49. package/types/chart/histogram/histogram.d.ts +7 -3
  50. package/types/chart/histogram/index.d.ts +2 -1
  51. package/types/chart/index.d.ts +2 -4
  52. package/types/chart/interface/chart.d.ts +20 -7
  53. package/types/chart/interface/common.d.ts +17 -1
  54. package/types/chart/line/index.d.ts +1 -0
  55. package/types/chart/line/interface.d.ts +1 -1
  56. package/types/chart/line/line-transformer.d.ts +6 -0
  57. package/types/chart/line/line.d.ts +6 -4
  58. package/types/chart/map/index.d.ts +1 -0
  59. package/types/chart/map/map-transformer.d.ts +8 -0
  60. package/types/chart/map/map.d.ts +6 -6
  61. package/types/chart/pie/3d/index.d.ts +1 -0
  62. package/types/chart/pie/3d/pie-3d.d.ts +17 -0
  63. package/types/chart/pie/base/base.d.ts +8 -0
  64. package/types/chart/pie/base/index.d.ts +2 -0
  65. package/types/chart/pie/base/pie-transformer.d.ts +7 -0
  66. package/types/chart/pie/index.d.ts +2 -1
  67. package/types/chart/pie/pie.d.ts +7 -2
  68. package/types/chart/polar/index.d.ts +1 -1
  69. package/types/chart/polar/polar-transformer.d.ts +9 -0
  70. package/types/chart/polar/progress-like/index.d.ts +1 -0
  71. package/types/chart/polar/progress-like/progress-like-transformer.d.ts +8 -0
  72. package/types/chart/polar/rose-like/index.d.ts +1 -0
  73. package/types/chart/polar/rose-like/rose-like-transformer.d.ts +7 -0
  74. package/types/chart/progress/circular/circular-progress-transformer.d.ts +7 -0
  75. package/types/chart/progress/circular/circular.d.ts +8 -4
  76. package/types/chart/progress/circular/index.d.ts +1 -0
  77. package/types/chart/progress/circular/interface.d.ts +1 -1
  78. package/types/chart/progress/linear/index.d.ts +1 -0
  79. package/types/chart/progress/linear/interface.d.ts +1 -1
  80. package/types/chart/progress/linear/linear-progress-transformer.d.ts +7 -0
  81. package/types/chart/progress/linear/linear.d.ts +6 -5
  82. package/types/chart/radar/index.d.ts +1 -0
  83. package/types/chart/radar/radar-transformer.d.ts +6 -0
  84. package/types/chart/radar/radar.d.ts +8 -4
  85. package/types/chart/range-area/index.d.ts +1 -0
  86. package/types/chart/range-area/range-area-transformer.d.ts +6 -0
  87. package/types/chart/range-area/range-area.d.ts +7 -4
  88. package/types/chart/range-column/3d/index.d.ts +2 -0
  89. package/types/chart/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  90. package/types/chart/range-column/3d/range-column-3d.d.ts +13 -0
  91. package/types/chart/range-column/index.d.ts +2 -1
  92. package/types/chart/range-column/range-column-transformer.d.ts +6 -0
  93. package/types/chart/range-column/range-column.d.ts +7 -4
  94. package/types/chart/rose/index.d.ts +1 -0
  95. package/types/chart/rose/rose-transformer.d.ts +6 -0
  96. package/types/chart/rose/rose.d.ts +8 -4
  97. package/types/chart/sankey/index.d.ts +1 -0
  98. package/types/chart/sankey/sankey-transformer.d.ts +6 -0
  99. package/types/chart/sankey/sankey.d.ts +6 -4
  100. package/types/chart/scatter/index.d.ts +1 -0
  101. package/types/chart/scatter/scatter-transformer.d.ts +5 -0
  102. package/types/chart/scatter/scatter.d.ts +6 -3
  103. package/types/chart/sequence/index.d.ts +1 -0
  104. package/types/chart/sequence/sequence-transformer.d.ts +7 -0
  105. package/types/chart/sequence/sequence.d.ts +9 -7
  106. package/types/chart/sunburst/index.d.ts +1 -0
  107. package/types/chart/sunburst/sunburst-transformer.d.ts +7 -0
  108. package/types/chart/sunburst/sunburst.d.ts +6 -5
  109. package/types/chart/treemap/index.d.ts +1 -0
  110. package/types/chart/treemap/treemap-transformer.d.ts +7 -0
  111. package/types/chart/treemap/treemap.d.ts +7 -4
  112. package/types/chart/util.d.ts +3 -3
  113. package/types/chart/waterfall/index.d.ts +1 -0
  114. package/types/chart/waterfall/waterfall-transformer.d.ts +7 -0
  115. package/types/chart/waterfall/waterfall.d.ts +6 -3
  116. package/types/chart/word-cloud/3d/index.d.ts +2 -0
  117. package/types/chart/word-cloud/3d/word-cloud-3d-transformer.d.ts +6 -0
  118. package/types/chart/word-cloud/3d/word-cloud-3d.d.ts +15 -0
  119. package/types/chart/word-cloud/base/base.d.ts +9 -0
  120. package/types/chart/word-cloud/base/index.d.ts +2 -0
  121. package/types/chart/word-cloud/base/word-cloud-base-transformer.d.ts +5 -0
  122. package/types/chart/word-cloud/index.d.ts +2 -1
  123. package/types/chart/word-cloud/word-cloud-transformer.d.ts +5 -0
  124. package/types/chart/word-cloud/word-cloud.d.ts +6 -3
  125. package/types/compile/mark/compilable-mark.d.ts +0 -5
  126. package/types/compile/mark/interface.d.ts +1 -4
  127. package/types/component/axis/base-axis.d.ts +3 -4
  128. package/types/component/axis/cartesian/axis.d.ts +6 -7
  129. package/types/component/axis/cartesian/band-axis.d.ts +1 -0
  130. package/types/component/axis/cartesian/linear-axis.d.ts +1 -0
  131. package/types/component/axis/cartesian/log-axis.d.ts +1 -0
  132. package/types/component/axis/cartesian/symlog-axis.d.ts +1 -0
  133. package/types/component/axis/cartesian/time-axis.d.ts +1 -0
  134. package/types/component/axis/cartesian/util/common.d.ts +4 -0
  135. package/types/component/axis/interface/common.d.ts +1 -0
  136. package/types/component/axis/polar/axis.d.ts +7 -7
  137. package/types/component/axis/polar/band-axis.d.ts +1 -0
  138. package/types/component/axis/polar/interface/common.d.ts +0 -1
  139. package/types/component/axis/polar/linear-axis.d.ts +1 -0
  140. package/types/component/axis/polar/util/common.d.ts +5 -0
  141. package/types/component/axis/polar/util/index.d.ts +1 -0
  142. package/types/component/axis/util.d.ts +4 -3
  143. package/types/component/base/base-component-transformer.d.ts +10 -0
  144. package/types/component/base/base-component.d.ts +10 -7
  145. package/types/component/base/index.d.ts +1 -0
  146. package/types/component/base/util.d.ts +2 -2
  147. package/types/component/brush/brush.d.ts +7 -5
  148. package/types/component/crosshair/base.d.ts +5 -4
  149. package/types/component/crosshair/cartesian.d.ts +3 -2
  150. package/types/component/crosshair/polar.d.ts +3 -2
  151. package/types/component/crosshair/util.d.ts +3 -4
  152. package/types/component/custom-mark/custom-mark.d.ts +7 -5
  153. package/types/component/data-zoom/data-filter-base-component.d.ts +2 -2
  154. package/types/component/data-zoom/data-zoom/data-zoom-transformer.d.ts +9 -0
  155. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +8 -2
  156. package/types/component/data-zoom/data-zoom/index.d.ts +1 -0
  157. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +5 -1
  158. package/types/component/data-zoom/util.d.ts +2 -2
  159. package/types/component/geo/geo-coordinate.d.ts +4 -4
  160. package/types/component/index.d.ts +1 -1
  161. package/types/component/indicator/indicator.d.ts +5 -4
  162. package/types/component/interface/common.d.ts +6 -4
  163. package/types/component/interface/type.d.ts +8 -0
  164. package/types/component/label/base-label.d.ts +2 -2
  165. package/types/component/label/index.d.ts +2 -0
  166. package/types/component/label/interface.d.ts +2 -2
  167. package/types/component/label/label-transformer.d.ts +8 -0
  168. package/types/component/label/label.d.ts +13 -5
  169. package/types/component/label/total-label.d.ts +28 -0
  170. package/types/component/label/util.d.ts +1 -0
  171. package/types/component/legend/base-legend.d.ts +3 -1
  172. package/types/component/legend/continuous/legend.d.ts +4 -6
  173. package/types/component/legend/discrete/legend.d.ts +4 -7
  174. package/types/component/map-label/component.d.ts +5 -2
  175. package/types/component/marker/mark-area/mark-area.d.ts +6 -4
  176. package/types/component/marker/mark-line/mark-line.d.ts +6 -4
  177. package/types/component/marker/mark-point/mark-point.d.ts +6 -4
  178. package/types/component/player/player.d.ts +4 -4
  179. package/types/component/title/title.d.ts +9 -6
  180. package/types/component/tooltip/index.d.ts +1 -0
  181. package/types/component/tooltip/tooltip-transformer.d.ts +8 -0
  182. package/types/component/tooltip/tooltip.d.ts +10 -8
  183. package/types/component/util.d.ts +2 -2
  184. package/types/constant/event.d.ts +1 -0
  185. package/types/constant/polar.d.ts +0 -10
  186. package/types/core/factory.d.ts +12 -3
  187. package/types/core/index.d.ts +1 -0
  188. package/types/core/interface.d.ts +17 -11
  189. package/types/core/vchart.d.ts +30 -7
  190. package/types/mark/arc-3d.d.ts +1 -0
  191. package/types/model/base-model-transformer.d.ts +24 -0
  192. package/types/model/base-model.d.ts +9 -12
  193. package/types/model/index.d.ts +3 -0
  194. package/types/model/interface.d.ts +31 -4
  195. package/types/plugin/base/base-plugin-service.d.ts +13 -0
  196. package/types/plugin/base/base-plugin.d.ts +9 -0
  197. package/types/plugin/base/interface.d.ts +22 -0
  198. package/types/plugin/chart/index.d.ts +2 -0
  199. package/types/plugin/chart/interface.d.ts +22 -2
  200. package/types/plugin/chart/media-query/index.d.ts +2 -0
  201. package/types/plugin/chart/media-query/interface/common.d.ts +28 -0
  202. package/types/plugin/chart/media-query/interface/index.d.ts +2 -0
  203. package/types/plugin/chart/media-query/interface/spec.d.ts +25 -0
  204. package/types/plugin/chart/media-query/media-query.d.ts +28 -0
  205. package/types/plugin/chart/media-query/util/action.d.ts +3 -0
  206. package/types/plugin/chart/media-query/util/filter.d.ts +4 -0
  207. package/types/plugin/chart/media-query/util/index.d.ts +2 -0
  208. package/types/plugin/chart/media-query/util/query.d.ts +3 -0
  209. package/types/plugin/chart/plugin-service.d.ts +12 -0
  210. package/types/plugin/chart/register.d.ts +2 -0
  211. package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +5 -3
  212. package/types/plugin/components/interface.d.ts +15 -25
  213. package/types/plugin/components/plugin-service.d.ts +2 -10
  214. package/types/plugin/index.d.ts +1 -0
  215. package/types/region/index.d.ts +3 -0
  216. package/types/region/interface.d.ts +10 -2
  217. package/types/region/region-transformer.d.ts +8 -0
  218. package/types/region/region.d.ts +7 -4
  219. package/types/series/area/area-transformer.d.ts +5 -0
  220. package/types/series/area/area.d.ts +5 -3
  221. package/types/series/bar/bar-transformer.d.ts +5 -0
  222. package/types/series/bar/bar.d.ts +5 -3
  223. package/types/series/base/base-series-transformer.d.ts +18 -0
  224. package/types/series/base/base-series.d.ts +7 -8
  225. package/types/series/base/index.d.ts +2 -0
  226. package/types/series/box-plot/box-plot.d.ts +2 -3
  227. package/types/series/box-plot/interface.d.ts +1 -2
  228. package/types/series/cartesian/cartesian.d.ts +1 -1
  229. package/types/series/circle-packing/interface.d.ts +1 -2
  230. package/types/series/correlation/correlation-transformer.d.ts +5 -0
  231. package/types/series/correlation/correlation.d.ts +5 -4
  232. package/types/series/dot/dot.d.ts +2 -3
  233. package/types/series/funnel/3d/funnel-3d-transformer.d.ts +6 -0
  234. package/types/series/funnel/3d/funnel-3d.d.ts +22 -0
  235. package/types/series/funnel/3d/index.d.ts +2 -0
  236. package/types/series/funnel/funnel-transformer.d.ts +5 -0
  237. package/types/series/funnel/funnel.d.ts +5 -3
  238. package/types/series/gauge/animation.d.ts +7 -0
  239. package/types/series/gauge/gauge-pointer.d.ts +2 -3
  240. package/types/series/gauge/gauge-transformer.d.ts +5 -0
  241. package/types/series/gauge/gauge.d.ts +4 -3
  242. package/types/series/geo/interface.d.ts +1 -1
  243. package/types/series/heatmap/heatmap-transformer.d.ts +5 -0
  244. package/types/series/heatmap/heatmap.d.ts +4 -3
  245. package/types/series/index.d.ts +3 -3
  246. package/types/series/interface/common.d.ts +11 -6
  247. package/types/series/interface/series.d.ts +2 -3
  248. package/types/series/line/line.d.ts +5 -3
  249. package/types/series/link/link.d.ts +2 -3
  250. package/types/series/map/map-transformer.d.ts +5 -0
  251. package/types/series/map/map.d.ts +5 -3
  252. package/types/series/mixin/line-mixin-transformer.d.ts +5 -0
  253. package/types/series/mixin/line-mixin.d.ts +1 -2
  254. package/types/series/pie/3d/index.d.ts +2 -0
  255. package/types/series/pie/3d/pie-3d-transformer.d.ts +5 -0
  256. package/types/series/pie/3d/pie-3d.d.ts +20 -0
  257. package/types/series/pie/interface.d.ts +3 -0
  258. package/types/series/pie/pie-transformer.d.ts +9 -0
  259. package/types/series/pie/pie.d.ts +6 -13
  260. package/types/series/polar/index.d.ts +3 -0
  261. package/types/series/polar/polar.d.ts +0 -2
  262. package/types/series/polar/progress-like/animation.d.ts +1 -1
  263. package/types/series/progress/circular/circular.d.ts +2 -3
  264. package/types/series/progress/linear/linear.d.ts +1 -3
  265. package/types/series/radar/radar.d.ts +5 -3
  266. package/types/series/range-column/3d/index.d.ts +2 -0
  267. package/types/series/range-column/3d/range-column-3d-transformer.d.ts +5 -0
  268. package/types/series/range-column/3d/range-column-3d.d.ts +15 -0
  269. package/types/series/range-column/range-column-transformer.d.ts +5 -0
  270. package/types/series/range-column/range-column.d.ts +2 -0
  271. package/types/series/rose/rose-transformer.d.ts +5 -0
  272. package/types/series/rose/rose.d.ts +4 -3
  273. package/types/series/scatter/scatter-transformer.d.ts +5 -0
  274. package/types/series/scatter/scatter.d.ts +5 -3
  275. package/types/series/sunburst/sunburst.d.ts +1 -1
  276. package/types/series/waterfall/waterfall-transformer.d.ts +5 -0
  277. package/types/series/waterfall/waterfall.d.ts +4 -3
  278. package/types/typings/spec/common.d.ts +2 -0
  279. package/types/util/color.d.ts +1 -3
@@ -4,7 +4,7 @@ import type { IRegion } from '../../region/interface';
4
4
  import type { IMark } from '../../mark/interface';
5
5
  import type { CoordinateType, IInvalidType, IPoint, DataKeyType, Datum, Maybe, ISeriesSpec, IGroup, ILayoutType, ILayoutPoint, ILayoutRect } from '../../typings';
6
6
  import { BaseModel } from '../../model/base-model';
7
- import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo } from '../interface';
7
+ import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo, ISeriesSpecInfo } from '../interface';
8
8
  import type { IModelEvaluateOption, IModelRenderOption } from '../../model/interface';
9
9
  import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
10
10
  import type { ITrigger } from '../../interaction/interface';
@@ -12,9 +12,7 @@ import type { StatisticOperations } from '../../data/transforms/dimension-statis
12
12
  import { SeriesData } from './series-data';
13
13
  import type { IGroupMark } from '../../mark/group';
14
14
  import type { ISeriesMarkAttributeContext } from '../../compile/mark';
15
- import type { ILabelSpec } from '../../component';
16
- import type { ILabelMark } from '../../mark/label';
17
- import type { TransformedLabelSpec } from '../../component/label';
15
+ import { BaseSeriesSpecTransformer } from './base-series-transformer';
18
16
  export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
19
17
  readonly specKey: string;
20
18
  readonly type: string;
@@ -22,6 +20,9 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
22
20
  readonly modelType: string;
23
21
  readonly name: string | undefined;
24
22
  static readonly mark: SeriesMarkMap;
23
+ static readonly transformerConstructor: typeof BaseSeriesSpecTransformer;
24
+ readonly transformerConstructor: any;
25
+ getSpecInfo: () => ISeriesSpecInfo;
25
26
  protected _trigger: ITrigger;
26
27
  getTrigger(): ITrigger;
27
28
  protected _option: ISeriesOption;
@@ -137,7 +138,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
137
138
  protected initEvent(): void;
138
139
  protected _releaseEvent(): void;
139
140
  protected initTooltip(): void;
140
- _compareSpec(ignoreCheckKeys?: {
141
+ _compareSpec(spec: T, prevSpec: T, ignoreCheckKeys?: {
141
142
  [key: string]: true;
142
143
  }): {
143
144
  change: boolean;
@@ -147,7 +148,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
147
148
  reCompile: boolean;
148
149
  };
149
150
  _updateSpecData(): void;
150
- reInit(theme?: any, lastSpec?: any): void;
151
+ reInit(spec?: T): void;
151
152
  onEvaluateEnd(ctx: IModelEvaluateOption): void;
152
153
  onRender(ctx: IModelRenderOption): void;
153
154
  release(): void;
@@ -181,7 +182,6 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
181
182
  getMeasureField(): string[];
182
183
  protected onMarkPositionUpdate(): void;
183
184
  protected onMarkTreePositionUpdate(marks: IMark[]): void;
184
- protected _getTheme(): any;
185
185
  protected _createMark<M extends IMark>(markInfo: ISeriesMarkInfo, option?: ISeriesMarkInitOption): NonNullable<M>;
186
186
  protected _getDataIdKey(): string | ((datum: Datum) => string);
187
187
  protected _getSeriesDataKey(datum: Datum): string;
@@ -195,5 +195,4 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
195
195
  getMarkInfoList(): import("../../model/interface").IModelMarkInfo[];
196
196
  protected _getInvalidConnectType(): "none" | "zero" | "connect";
197
197
  protected _getInvalidDefined: (datum: Datum) => boolean;
198
- protected _preprocessLabelSpec(spec: ILabelSpec, styleHandler?: (mark: ILabelMark) => void, hasAnimation?: boolean): TransformedLabelSpec;
199
198
  }
@@ -0,0 +1,2 @@
1
+ export * from './base-series';
2
+ export * from './base-series-transformer';
@@ -1,9 +1,9 @@
1
1
  import type { IModelEvaluateOption, IModelInitOption } from '../../model/interface';
2
- import type { BoxPlotShaftShape, IOutlierMarkSpec, Maybe } from '../../typings';
2
+ import type { BoxPlotShaftShape, IOutlierMarkSpec } from '../../typings';
3
3
  import { CartesianSeries } from '../cartesian/cartesian';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
6
- import type { IBoxPlotSeriesSpec, IBoxPlotSeriesTheme } from './interface';
6
+ import type { IBoxPlotSeriesSpec } from './interface';
7
7
  import { SeriesData } from '../base/series-data';
8
8
  import type { IMark } from '../../mark/interface';
9
9
  export declare const DEFAULT_FILL_COLOR = "#FFF";
@@ -12,7 +12,6 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
12
12
  static readonly type: string;
13
13
  type: SeriesTypeEnum;
14
14
  static readonly mark: SeriesMarkMap;
15
- protected _theme: Maybe<IBoxPlotSeriesTheme>;
16
15
  protected _minField: string;
17
16
  getMinField(): string;
18
17
  protected _maxField: string;
@@ -1,7 +1,6 @@
1
- import type { IMarkSpec, IMarkTheme } from '../..';
2
1
  import type { IAnimationSpec } from '../../animation/spec';
3
2
  import type { IMarkProgressiveConfig } from '../../mark/interface';
4
- import type { DirectionType, IBoxPlotMarkSpec, IOutlierMarkSpec } from '../../typings';
3
+ import type { DirectionType, IBoxPlotMarkSpec, IOutlierMarkSpec, IMarkSpec, IMarkTheme } from '../../typings';
5
4
  import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
6
5
  import type { SeriesMarkNameEnum } from '../interface/type';
7
6
  export interface IBoxPlotSeriesSpec extends Omit<ICartesianSeriesSpec, 'xField' | 'yField' | 'direction'>, IAnimationSpec<string, string>, IMarkProgressiveConfig {
@@ -94,5 +94,5 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
94
94
  viewDataUpdate(d: DataView): void;
95
95
  _sortDataInAxisDomain(): void;
96
96
  protected _getInvalidDefined: (datum: Datum) => boolean;
97
- reInit(theme?: any, lastSpec?: any): void;
97
+ reInit(spec: T): void;
98
98
  }
@@ -1,6 +1,5 @@
1
- import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../..';
2
1
  import type { IAnimationSpec } from '../../animation/spec';
3
- import type { IArcMarkSpec, ITextMarkSpec } from '../../typings';
2
+ import type { IArcMarkSpec, ITextMarkSpec, IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings';
4
3
  import type { SeriesMarkNameEnum } from '../interface/type';
5
4
  import type { IPolarSeriesTheme } from '../polar/interface';
6
5
  import type { CirclePackingAppearPreset, CirclePackingMark } from './animation';
@@ -0,0 +1,5 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { ICorrelationSeriesSpec, ICorrelationSeriesTheme } from './interface';
3
+ export declare class CorrelationSeriesSpecTransformer<T extends ICorrelationSeriesSpec = ICorrelationSeriesSpec, K extends ICorrelationSeriesTheme = ICorrelationSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -3,15 +3,16 @@ import type { ICorrelationSeriesSpec } from './interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesData } from '../base/series-data';
6
- import type { Maybe } from '../../typings';
7
- import type { ICorrelationSeriesTheme } from './interface';
6
+ import type { AdaptiveSpec } from '../../typings';
8
7
  import type { ILabelMark } from '../../mark/label';
9
8
  import type { IMark } from '../../mark/interface';
10
- export declare class CorrelationSeries extends PolarSeries<any> {
9
+ import { CorrelationSeriesSpecTransformer } from './correlation-transformer';
10
+ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorrelationSeriesSpec> extends PolarSeries<AdaptiveSpec<T, 'outerRadius' | 'innerRadius'>> {
11
11
  static readonly type: string;
12
12
  type: SeriesTypeEnum;
13
13
  static readonly mark: SeriesMarkMap;
14
- protected _theme: Maybe<ICorrelationSeriesTheme>;
14
+ static readonly transformerConstructor: any;
15
+ readonly transformerConstructor: typeof CorrelationSeriesSpecTransformer;
15
16
  protected _centerSeriesData: SeriesData;
16
17
  private _nodePointMark;
17
18
  private _ripplePointMark;
@@ -1,16 +1,15 @@
1
1
  import { CartesianSeries } from '../cartesian/cartesian';
2
- import type { Maybe, Datum } from '../../typings';
2
+ import type { Datum } from '../../typings';
3
3
  import type { IMark } from '../../mark/interface';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
5
  import type { IModelEvaluateOption } from '../../model/interface';
6
6
  import type { IFillMarkSpec, VisualType } from '../../typings/visual';
7
- import type { IDotSeriesSpec, IDotSeriesTheme } from './interface';
7
+ import type { IDotSeriesSpec } from './interface';
8
8
  import type { SeriesMarkMap } from '../interface';
9
9
  export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extends CartesianSeries<T> {
10
10
  static readonly type: string;
11
11
  type: SeriesTypeEnum;
12
12
  static readonly mark: SeriesMarkMap;
13
- protected _theme: Maybe<IDotSeriesTheme>;
14
13
  private _xDimensionStatisticsDomain;
15
14
  protected _seriesGroupField?: string;
16
15
  getSeriesGroupField(): string;
@@ -0,0 +1,6 @@
1
+ import type { AdaptiveSpec } from '../../../typings';
2
+ import type { IFunnel3dSeriesSpec, IFunnel3dSeriesTheme } from '../interface';
3
+ import { FunnelSeriesSpecTransformer } from '../funnel-transformer';
4
+ export declare class Funnel3dSeriesSpecTransformer<T extends IFunnel3dSeriesSpec = IFunnel3dSeriesSpec, K extends IFunnel3dSeriesTheme = IFunnel3dSeriesTheme> extends FunnelSeriesSpecTransformer<AdaptiveSpec<T, 'type'>, K> {
5
+ protected _transformLabelSpec(spec: AdaptiveSpec<T, 'type'>): void;
6
+ }
@@ -0,0 +1,22 @@
1
+ import { MarkTypeEnum } from '../../../mark/interface/type';
2
+ import type { SeriesMarkMap } from '../../interface';
3
+ import { SeriesTypeEnum, SeriesMarkNameEnum } from '../../interface/type';
4
+ import { FunnelSeries } from '../funnel';
5
+ import type { IFunnel3dSeriesSpec } from '../interface';
6
+ import type { AdaptiveSpec } from '../../../typings';
7
+ import type { ILabelMark } from '../../../mark/label';
8
+ export declare class Funnel3dSeries<T extends IFunnel3dSeriesSpec = IFunnel3dSeriesSpec> extends FunnelSeries<AdaptiveSpec<T, 'type'>> {
9
+ static readonly type: string;
10
+ type: SeriesTypeEnum;
11
+ protected _funnelMarkName: SeriesMarkNameEnum;
12
+ protected _funnelMarkType: MarkTypeEnum;
13
+ protected _transformMarkName: SeriesMarkNameEnum;
14
+ protected _transformMarkType: MarkTypeEnum;
15
+ static readonly mark: SeriesMarkMap;
16
+ static readonly transformerConstructor: any;
17
+ readonly transformerConstructor: any;
18
+ initMark(): void;
19
+ initMarkStyle(): void;
20
+ initLabelMarkStyle(labelMark?: ILabelMark): void;
21
+ }
22
+ export declare const registerFunnel3dSeries: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './funnel-3d';
2
+ export * from './funnel-3d-transformer';
@@ -0,0 +1,5 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { IFunnelSeriesSpec, IFunnelSeriesTheme } from './interface';
3
+ export declare class FunnelSeriesSpecTransformer<T extends IFunnelSeriesSpec = IFunnelSeriesSpec, K extends IFunnelSeriesTheme = IFunnelSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -1,16 +1,17 @@
1
1
  import type { IFunnelSeries, SeriesMarkMap } from '../interface';
2
2
  import { SeriesMarkNameEnum } from '../interface/type';
3
- import type { IOrientType, Maybe, Datum, StringOrNumber } from '../../typings';
3
+ import type { IOrientType, Datum, StringOrNumber } from '../../typings';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
5
  import type { IPolygonMark } from '../../mark/polygon/polygon';
6
6
  import { BaseSeries } from '../base/base-series';
7
7
  import type { IMark } from '../../mark/interface';
8
8
  import { MarkTypeEnum } from '../../mark/interface/type';
9
9
  import type { ITextMark } from '../../mark/text';
10
- import type { IFunnelSeriesSpec, IFunnelSeriesTheme } from './interface';
10
+ import type { IFunnelSeriesSpec } from './interface';
11
11
  import type { IRuleMark } from '../../mark/rule';
12
12
  import { SeriesData } from '../base/series-data';
13
13
  import type { ILabelMark } from '../../mark/label';
14
+ import { FunnelSeriesSpecTransformer } from './funnel-transformer';
14
15
  export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec> extends BaseSeries<T> implements IFunnelSeries {
15
16
  static readonly type: string;
16
17
  type: SeriesTypeEnum;
@@ -19,6 +20,8 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
19
20
  protected _transformMarkName: SeriesMarkNameEnum;
20
21
  protected _transformMarkType: MarkTypeEnum;
21
22
  static readonly mark: SeriesMarkMap;
23
+ static readonly transformerConstructor: any;
24
+ readonly transformerConstructor: typeof FunnelSeriesSpecTransformer;
22
25
  protected _categoryField: string;
23
26
  getCategoryField(): string;
24
27
  setCategoryField(f: string): string;
@@ -26,7 +29,6 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
26
29
  getValueField(): string;
27
30
  setValueField(f: string): string;
28
31
  protected _viewDataTransform: SeriesData;
29
- protected _theme: Maybe<IFunnelSeriesTheme>;
30
32
  protected _funnelAlign: 'left' | 'center' | 'right' | 'top' | 'bottom';
31
33
  protected _funnelOrient: IOrientType;
32
34
  protected _shape: 'rect' | 'trapezoid';
@@ -0,0 +1,7 @@
1
+ import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
+ export type ProgressLikeAppearPreset = 'grow' | 'fadeIn';
3
+ export interface IProgressLikeAnimationParams {
4
+ startAngle?: number;
5
+ }
6
+ export declare function gaugePointerPresetAnimation(params: IProgressLikeAnimationParams, preset: ProgressLikeAppearPreset): IAnimationTypeConfig;
7
+ export declare const registerGaugePointerAnimation: () => void;
@@ -2,14 +2,13 @@ import type { IMark } from '../../mark/interface';
2
2
  import { MarkTypeEnum } from '../../mark/interface/type';
3
3
  import type { SeriesMarkMap } from '../interface';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
- import type { IGaugePointerSeriesSpec, IGaugePointerSeriesTheme, PinMarkSpec, PointerMarkSpec } from './interface';
6
- import type { Datum, Maybe } from '../../typings';
5
+ import type { IGaugePointerSeriesSpec, PinMarkSpec, PointerMarkSpec } from './interface';
6
+ import type { Datum } from '../../typings';
7
7
  import { ProgressLikeSeries } from '../polar/progress-like';
8
8
  export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGaugePointerSeriesSpec> extends ProgressLikeSeries<T> {
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
11
11
  static readonly mark: SeriesMarkMap;
12
- protected _theme: Maybe<IGaugePointerSeriesTheme>;
13
12
  private _pinMark;
14
13
  private _pointerMark;
15
14
  private _pinBackgroundMark;
@@ -0,0 +1,5 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { IGaugeSeriesSpec, IGaugeSeriesTheme } from './interface';
3
+ export declare class GaugeSeriesSpecTransformer<T extends IGaugeSeriesSpec = IGaugeSeriesSpec, K extends IGaugeSeriesTheme = IGaugeSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -1,15 +1,16 @@
1
1
  import type { SeriesMarkMap } from '../interface';
2
2
  import { SeriesTypeEnum } from '../interface/type';
3
- import type { IGaugeSeriesSpec, IGaugeSeriesTheme } from './interface';
3
+ import type { IGaugeSeriesSpec } from './interface';
4
4
  import { ProgressLikeSeries } from '../polar/progress-like/progress-like';
5
5
  import type { Datum } from '@visactor/vgrammar-core';
6
- import type { Maybe } from '../../typings';
7
6
  import type { IMark } from '../../mark/interface';
7
+ import { GaugeSeriesSpecTransformer } from './gauge-transformer';
8
8
  export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec> extends ProgressLikeSeries<T> {
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
11
11
  static readonly mark: SeriesMarkMap;
12
- protected _theme: Maybe<IGaugeSeriesTheme>;
12
+ static readonly transformerConstructor: any;
13
+ readonly transformerConstructor: typeof GaugeSeriesSpecTransformer;
13
14
  private _segmentMark;
14
15
  private _trackMark;
15
16
  protected _stack: boolean;
@@ -1,4 +1,4 @@
1
- import type { ISeriesSpec } from '../..';
1
+ import type { ISeriesSpec } from '../../typings';
2
2
  export interface IGeoSeriesSpec extends ISeriesSpec {
3
3
  valueField?: string;
4
4
  }
@@ -0,0 +1,5 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { IHeatmapSeriesSpec, IHeatmapSeriesTheme } from './interface';
3
+ export declare class HeatmapSeriesSpecTransformer<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec, K extends IHeatmapSeriesTheme = IHeatmapSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -1,18 +1,19 @@
1
1
  import { CartesianSeries } from '../cartesian/cartesian';
2
- import type { Maybe } from '../../typings';
3
- import type { IHeatmapSeriesSpec, IHeatmapSeriesTheme } from './interface';
2
+ import type { IHeatmapSeriesSpec } from './interface';
4
3
  import type { IAxisHelper } from '../../component/axis/cartesian/interface';
5
4
  import { type ITextMark } from '../../mark/text';
6
5
  import type { SeriesMarkMap } from '../interface';
7
6
  import { SeriesTypeEnum } from '../interface/type';
8
7
  import type { ICellMark } from '../../mark/cell';
9
8
  import type { IMark } from '../../mark/interface';
9
+ import { HeatmapSeriesSpecTransformer } from './heatmap-transformer';
10
10
  export declare const DefaultBandWidth = 6;
11
11
  export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> extends CartesianSeries<T> {
12
12
  static readonly type: string;
13
13
  type: SeriesTypeEnum;
14
14
  static readonly mark: SeriesMarkMap;
15
- protected _theme: Maybe<IHeatmapSeriesTheme>;
15
+ static readonly transformerConstructor: any;
16
+ readonly transformerConstructor: typeof HeatmapSeriesSpecTransformer;
16
17
  protected _cellMark: ICellMark;
17
18
  protected _backgroundMark: ICellMark;
18
19
  protected _fieldValue: string[];
@@ -8,14 +8,14 @@ import { BarSeries, registerBarSeries } from './bar/bar';
8
8
  import { Bar3dSeries, registerBar3dSeries } from './bar/bar-3d';
9
9
  import type { IBar3dSeriesSpec, IBarSeriesSpec } from './bar/interface';
10
10
  import { RangeColumnSeries, registerRangeColumnSeries } from './range-column/range-column';
11
- import { RangeColumn3dSeries, registerRangeColumn3dSeries } from './range-column/range-column-3d';
11
+ import { RangeColumn3dSeries, registerRangeColumn3dSeries } from './range-column/3d/range-column-3d';
12
12
  import type { IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec } from './range-column/interface';
13
13
  import { RangeAreaSeries, registerRangeAreaSeries } from './range-area/range-area';
14
14
  import type { IRangeAreaSeriesSpec } from './range-area/interface';
15
15
  import { MapSeries, registerMapSeries } from './map/map';
16
16
  import type { IMapSeriesSpec } from './map/interface';
17
17
  import { PieSeries, registerPieSeries } from './pie/pie';
18
- import { Pie3dSeries, registerPie3dSeries } from './pie/pie-3d';
18
+ import { Pie3dSeries, registerPie3dSeries } from './pie/3d/pie-3d';
19
19
  import type { IPie3dSeriesSpec } from './pie/interface';
20
20
  import type { IPieSeriesSpec } from './pie/interface';
21
21
  import { ScatterSeries, registerScatterSeries } from './scatter/scatter';
@@ -38,7 +38,7 @@ import { WordCloudSeries, registerWordCloudSeries } from './word-cloud/word-clou
38
38
  import { WordCloud3dSeries, registerWordCloud3dSeries } from './word-cloud/word-cloud-3d';
39
39
  import type { IWordCloud3dSeriesSpec, IWordCloudSeriesSpec } from './word-cloud/interface';
40
40
  import { FunnelSeries, registerFunnelSeries } from './funnel/funnel';
41
- import { Funnel3dSeries, registerFunnel3dSeries } from './funnel/funnel-3d';
41
+ import { Funnel3dSeries, registerFunnel3dSeries } from './funnel/3d/funnel-3d';
42
42
  import type { IFunnel3dSeriesSpec, IFunnelSeriesSpec } from './funnel/interface';
43
43
  import { SunburstSeries, registerSunBurstSeries } from './sunburst/sunburst';
44
44
  import type { ISunburstSeriesSpec } from './sunburst/interface';
@@ -1,14 +1,14 @@
1
1
  import type { DataView } from '@visactor/vdataset';
2
2
  import type { IGrammarItem } from '../../compile/interface';
3
3
  import type { IGroupMark } from '../../mark/group';
4
- import type { IModelMarkInfo, IModelOption } from '../../model/interface';
4
+ import type { IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
5
5
  import type { IRegion } from '../../region/interface';
6
6
  import type { RenderMode } from '../../typings/spec/common';
7
7
  import type { ISeries } from './series';
8
8
  import type { IMarkProgressiveConfig } from '../../mark/interface';
9
- import type { StringOrNumber } from '../../typings';
9
+ import type { ISeriesSpec, StringOrNumber } from '../../typings';
10
10
  import type { TransformedLabelSpec } from '../../component/label';
11
- import type { SeriesMarkNameEnum } from './type';
11
+ import type { SeriesMarkNameEnum, SeriesTypeEnum } from './type';
12
12
  import type { ICustomPath2D } from '@visactor/vrender-core';
13
13
  export interface ISeriesSeriesInfo {
14
14
  key: string;
@@ -22,8 +22,8 @@ export interface ISeriesOption extends IModelOption {
22
22
  sourceDataList: DataView[];
23
23
  getSeriesData: (id: StringOrNumber | undefined, index: number | undefined) => DataView | undefined;
24
24
  }
25
- export interface ISeriesConstructor {
26
- type: string;
25
+ export interface ISeriesConstructor extends IModelConstructor {
26
+ readonly type: string;
27
27
  mark?: SeriesMarkMap;
28
28
  new (spec: any, options: ISeriesOption): ISeries;
29
29
  }
@@ -65,7 +65,6 @@ export interface ISeriesMarkInitOption {
65
65
  dataProductId?: string;
66
66
  seriesId?: number;
67
67
  progressive?: IMarkProgressiveConfig;
68
- label?: TransformedLabelSpec;
69
68
  support3d?: boolean;
70
69
  customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
71
70
  }
@@ -73,3 +72,9 @@ export interface ISeriesMarkInfo extends IModelMarkInfo {
73
72
  name: SeriesMarkNameEnum | string;
74
73
  }
75
74
  export type SeriesMarkMap = Partial<Record<SeriesMarkNameEnum, ISeriesMarkInfo>>;
75
+ export interface ISeriesSpecInfo<T extends ISeriesSpec = ISeriesSpec> extends IModelSpecInfo {
76
+ type: string | SeriesTypeEnum;
77
+ spec: T;
78
+ markLabelSpec?: Partial<Record<SeriesMarkNameEnum, TransformedLabelSpec[]>>;
79
+ totalLabel?: IModelSpecInfo;
80
+ }
@@ -8,13 +8,12 @@ import type { IRegion } from '../../region/interface';
8
8
  import type { IBaseScale } from '@visactor/vscale';
9
9
  import type { IAxisHelper } from '../../component/axis/cartesian/interface';
10
10
  import type { IPolarAxisHelper } from '../../component/axis/polar/interface';
11
- import type { ISeriesSeriesInfo, ISeriesStackData } from './common';
11
+ import type { ISeriesSeriesInfo, ISeriesSpecInfo, ISeriesStackData } from './common';
12
12
  import type { ISeriesTooltipHelper } from './tooltip-helper';
13
13
  import type { IInvalidType, Datum, DirectionType, IGroup, StringOrNumber } from '../../typings';
14
14
  import type { StateValueType } from '../../compile/mark';
15
15
  import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
16
16
  import type { IGroupMark } from '../../mark/group';
17
- import type { IArcLabelSpec } from '../pie/interface';
18
17
  import type { IGeoCoordinateHelper } from '../../component/geo/interface';
19
18
  import type { ILabelMark } from '../../mark/label';
20
19
  export interface ISeries extends IModel {
@@ -95,6 +94,7 @@ export interface ISeries extends IModel {
95
94
  getDefaultShapeType: () => string;
96
95
  initLabelMarkStyle?: (labelMark: ILabelMark) => void;
97
96
  getGroupFields: () => string[];
97
+ getSpecInfo: () => ISeriesSpecInfo;
98
98
  }
99
99
  export interface ICartesianSeries extends ISeries {
100
100
  readonly coordinate: 'cartesian';
@@ -168,7 +168,6 @@ export interface IArcSeries extends IPolarSeries {
168
168
  center: (() => IPoint) | IPoint;
169
169
  getRadius: (state?: StateValueType) => number;
170
170
  getInnerRadius: (state?: StateValueType) => number;
171
- getLabelConfig: () => IArcLabelSpec;
172
171
  computeRadius: (r: number, k?: number) => number;
173
172
  computeDatumRadius: (datum: any, state?: StateValueType) => number;
174
173
  }
@@ -2,16 +2,18 @@ import { CartesianSeries } from '../cartesian/cartesian';
2
2
  import type { SeriesMarkMap } from '../interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
4
  import { LineLikeSeriesMixin } from '../mixin/line-mixin';
5
- import type { Datum, Maybe } from '../../typings';
6
- import type { ILineSeriesSpec, ILineSeriesTheme } from './interface';
5
+ import type { Datum } from '../../typings';
6
+ import type { ILineSeriesSpec } from './interface';
7
7
  import type { IMark } from '../../mark/interface';
8
+ import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
8
9
  export interface LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling'>, CartesianSeries<T> {
9
10
  }
10
11
  export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends CartesianSeries<T> {
11
12
  static readonly type: string;
12
13
  type: SeriesTypeEnum;
13
14
  static readonly mark: SeriesMarkMap;
14
- protected _theme: Maybe<ILineSeriesTheme>;
15
+ static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
16
+ readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
15
17
  protected _sortDataByAxis: boolean;
16
18
  compile(): void;
17
19
  initMark(): void;
@@ -1,15 +1,14 @@
1
1
  import { CartesianSeries } from '../cartesian/cartesian';
2
- import type { Maybe, Datum } from '../../typings';
2
+ import type { Datum } from '../../typings';
3
3
  import type { IMark } from '../../mark/interface';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
5
  import type { IDotSeriesSpec } from '../dot/interface';
6
- import type { ILinkSeriesSpec, ILinkSeriesTheme } from './interface';
6
+ import type { ILinkSeriesSpec } from './interface';
7
7
  import type { SeriesMarkMap } from '../interface';
8
8
  export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> extends CartesianSeries<T> {
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
11
11
  static readonly mark: SeriesMarkMap;
12
- protected _theme: Maybe<ILinkSeriesTheme>;
13
12
  protected _fromField?: string;
14
13
  getFromField(): string;
15
14
  setFromField(field: string): void;
@@ -0,0 +1,5 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { IMapSeriesSpec, IMapSeriesTheme } from './interface';
3
+ export declare class MapSeriesSpecTransformer<T extends IMapSeriesSpec = IMapSeriesSpec, K extends IMapSeriesTheme = IMapSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -1,16 +1,19 @@
1
1
  import { DataView } from '@visactor/vdataset';
2
- import type { Maybe, StringOrNumber } from '../../typings';
2
+ import type { StringOrNumber } from '../../typings';
3
3
  import { GeoSeries } from '../geo/geo';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
6
- import type { IMapSeriesSpec, IMapSeriesTheme } from './interface';
6
+ import type { IMapSeriesSpec } from './interface';
7
7
  import type { PanEventParam, ZoomEventParam } from '../../event/interface';
8
8
  import type { ILabelMark } from '../../mark/label';
9
9
  import type { IMark } from '../../mark/interface';
10
+ import { MapSeriesSpecTransformer } from './map-transformer';
10
11
  export declare class MapSeries<T extends IMapSeriesSpec = IMapSeriesSpec> extends GeoSeries<T> {
11
12
  static readonly type: string;
12
13
  type: SeriesTypeEnum;
13
14
  static readonly mark: SeriesMarkMap;
15
+ static readonly transformerConstructor: any;
16
+ readonly transformerConstructor: typeof MapSeriesSpecTransformer;
14
17
  map: string;
15
18
  protected _nameMap: {
16
19
  [key: StringOrNumber]: StringOrNumber;
@@ -19,7 +22,6 @@ export declare class MapSeries<T extends IMapSeriesSpec = IMapSeriesSpec> extend
19
22
  [key: string]: StringOrNumber;
20
23
  [key: number]: StringOrNumber;
21
24
  };
22
- protected _theme: Maybe<IMapSeriesTheme>;
23
25
  private _areaCache;
24
26
  get areaPath(): Map<string, {
25
27
  shape: string;
@@ -0,0 +1,5 @@
1
+ import type { ISeriesSpec } from '../../typings';
2
+ import { BaseSeriesSpecTransformer } from '../base';
3
+ export declare class LineLikeSeriesSpecTransformer<T extends ISeriesSpec, K> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: any): void;
5
+ }
@@ -7,7 +7,7 @@ import type { ISymbolMark } from '../../mark/symbol';
7
7
  import type { ITextMark } from '../../mark/text';
8
8
  import type { DirectionType, IInvalidType, InterpolateType, ILineMarkSpec, ISymbolMarkSpec, Maybe, Datum, IMarkTheme, ILayoutRect } from '../../typings';
9
9
  import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
10
- import type { ILabelSpec, TransformedLabelSpec } from '../../component/label';
10
+ import type { ILabelSpec } from '../../component/label';
11
11
  import { type DimensionEventParams } from '../../event/events/dimension';
12
12
  import type { ILabelMark } from '../../mark/label';
13
13
  import type { Functional } from '@visactor/vrender-components';
@@ -45,7 +45,6 @@ export interface LineLikeSeriesMixin extends ISeries {
45
45
  _getInvalidDefined: () => boolean;
46
46
  _getInvalidConnectType: () => IInvalidType;
47
47
  getLayoutRect: () => ILayoutRect;
48
- _preprocessLabelSpec: (label: ILabelSpec, styleHandler?: (mark: ILabelMark) => void, hasAnimation?: boolean) => TransformedLabelSpec;
49
48
  }
50
49
  export declare class LineLikeSeriesMixin {
51
50
  addSamplingCompile(): void;
@@ -0,0 +1,2 @@
1
+ export * from './pie-3d';
2
+ export * from './pie-3d-transformer';
@@ -0,0 +1,5 @@
1
+ import type { IPie3dSeriesSpec, IPie3dSeriesTheme } from '../interface';
2
+ import { PieSeriesSpecTransformer } from '../pie-transformer';
3
+ export declare class Pie3dSeriesSpecTransformer<T extends IPie3dSeriesSpec = IPie3dSeriesSpec, K extends IPie3dSeriesTheme = IPie3dSeriesTheme> extends PieSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ }
@@ -0,0 +1,20 @@
1
+ import { MarkTypeEnum } from '../../../mark/interface/type';
2
+ import type { IArcSeries, SeriesMarkMap } from '../../interface';
3
+ import { SeriesMarkNameEnum, SeriesTypeEnum } from '../../interface/type';
4
+ import type { IPie3dSeriesSpec } from '../interface';
5
+ import { BasePieSeries } from '../pie';
6
+ import type { ITextMark } from '../../../mark/text';
7
+ export declare class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {
8
+ static readonly type: string;
9
+ type: SeriesTypeEnum;
10
+ protected _pieMarkName: SeriesMarkNameEnum;
11
+ protected _pieMarkType: MarkTypeEnum;
12
+ static readonly mark: SeriesMarkMap;
13
+ static readonly transformerConstructor: any;
14
+ readonly transformerConstructor: any;
15
+ protected _angle3d: number;
16
+ setAttrFromSpec(): void;
17
+ initMarkStyle(): void;
18
+ initLabelMarkStyle(textMark: ITextMark): void;
19
+ }
20
+ export declare const registerPie3dSeries: () => void;
@@ -6,6 +6,9 @@ import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';
6
6
  import type { PieAppearPreset } from './animation/animation';
7
7
  import type { ILabelSpec } from '../../component/label';
8
8
  export type PieMarks = 'pie' | 'label' | 'labelLine';
9
+ export type IBasePieSeriesSpec = Omit<IPieSeriesSpec, 'type'> & {
10
+ type: string;
11
+ };
9
12
  export interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {
10
13
  type: 'pie';
11
14
  categoryField: string;
@@ -0,0 +1,9 @@
1
+ import { BaseSeriesSpecTransformer } from '../base';
2
+ import type { IBasePieSeriesSpec, IPieSeriesTheme } from './interface';
3
+ export declare class PieSeriesSpecTransformer<T extends IBasePieSeriesSpec = IBasePieSeriesSpec, K extends IPieSeriesTheme = IPieSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
+ protected _transformLabelSpec(spec: T): void;
5
+ protected _mergeThemeToSpec(spec: T, chartSpec: any): {
6
+ spec: T;
7
+ theme: K;
8
+ };
9
+ }