@visactor/vchart-types 1.15.5-alpha.8 → 2.0.0-alpha.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 (197) hide show
  1. package/package.json +3 -3
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/animate-manager.d.ts +2 -4
  4. package/types/animation/interface.d.ts +86 -2
  5. package/types/animation/spec.d.ts +27 -3
  6. package/types/animation/utils.d.ts +3 -4
  7. package/types/chart/base/base-chart.d.ts +10 -7
  8. package/types/chart/funnel/util.d.ts +2 -0
  9. package/types/chart/interface/chart.d.ts +3 -4
  10. package/types/chart/interface/common.d.ts +2 -9
  11. package/types/chart/sankey/sankey.d.ts +1 -1
  12. package/types/compile/compilable-base.d.ts +1 -1
  13. package/types/compile/compiler.d.ts +35 -25
  14. package/types/compile/data/compilable-data.d.ts +7 -7
  15. package/types/compile/data/interface.d.ts +4 -1
  16. package/types/compile/grammar-item.d.ts +7 -13
  17. package/types/compile/interface/compilable-item.d.ts +22 -28
  18. package/types/compile/interface/compiler.d.ts +13 -4
  19. package/types/compile/mark/index.d.ts +0 -1
  20. package/types/compile/mark/interface.d.ts +42 -33
  21. package/types/compile/mark/mark-state-manager.d.ts +11 -13
  22. package/types/compile/mark/util.d.ts +1 -1
  23. package/types/compile/state-manager.d.ts +11 -0
  24. package/types/compile/util.d.ts +14 -0
  25. package/types/component/axis/base-axis.d.ts +5 -3
  26. package/types/component/axis/cartesian/axis.d.ts +1 -1
  27. package/types/component/axis/cartesian/time-axis.d.ts +1 -0
  28. package/types/component/axis/interface/common.d.ts +8 -0
  29. package/types/component/base/base-component.d.ts +1 -2
  30. package/types/component/brush/brush.d.ts +12 -10
  31. package/types/component/crosshair/base.d.ts +25 -36
  32. package/types/component/crosshair/cartesian.d.ts +5 -28
  33. package/types/component/crosshair/interface/common.d.ts +67 -2
  34. package/types/component/crosshair/interface/index.d.ts +0 -2
  35. package/types/component/crosshair/interface/spec.d.ts +8 -4
  36. package/types/component/crosshair/polar.d.ts +6 -22
  37. package/types/component/crosshair/utils/cartesian.d.ts +5 -26
  38. package/types/component/crosshair/utils/polar.d.ts +18 -11
  39. package/types/component/data-zoom/data-filter-base-component.d.ts +4 -4
  40. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
  41. package/types/component/data-zoom/interface.d.ts +11 -0
  42. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +1 -2
  43. package/types/component/geo/geo-coordinate.d.ts +2 -2
  44. package/types/component/geo/interface.d.ts +1 -1
  45. package/types/component/label/base-label.d.ts +5 -0
  46. package/types/component/label/interface.d.ts +4 -3
  47. package/types/component/label/label.d.ts +5 -3
  48. package/types/component/label/util.d.ts +9 -10
  49. package/types/component/legend/util.d.ts +3 -3
  50. package/types/component/marker/base-marker.d.ts +1 -1
  51. package/types/component/tooltip/processor/interface.d.ts +1 -1
  52. package/types/component/tooltip/processor/util.d.ts +1 -1
  53. package/types/component/tooltip/tooltip.d.ts +3 -3
  54. package/types/constant/data.d.ts +1 -0
  55. package/types/constant/event.d.ts +53 -2
  56. package/types/core/factory.d.ts +28 -3
  57. package/types/core/index.d.ts +2 -1
  58. package/types/core/interface.d.ts +13 -4
  59. package/types/core/vchart.d.ts +6 -6
  60. package/types/data/transforms/treemap.d.ts +5 -6
  61. package/types/data/transforms/venn.d.ts +10 -0
  62. package/types/data/transforms/waterfall.d.ts +1 -0
  63. package/types/event/events/base.d.ts +1 -2
  64. package/types/event/index.d.ts +1 -0
  65. package/types/event/interface.d.ts +6 -9
  66. package/types/index-harmony-simple.d.ts +2 -1
  67. package/types/index.d.ts +0 -1
  68. package/types/interaction/config.d.ts +13 -0
  69. package/types/interaction/index.d.ts +9 -1
  70. package/types/interaction/interaction.d.ts +17 -25
  71. package/types/interaction/interface/common.d.ts +22 -0
  72. package/types/interaction/interface/spec.d.ts +53 -0
  73. package/types/interaction/interface/trigger.d.ts +87 -0
  74. package/types/interaction/triggers/base.d.ts +28 -0
  75. package/types/interaction/triggers/dimension-hover.d.ts +22 -0
  76. package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
  77. package/types/interaction/triggers/element-active.d.ts +20 -0
  78. package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +13 -0
  79. package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
  80. package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
  81. package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
  82. package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
  83. package/types/interaction/triggers/element-highlight.d.ts +25 -0
  84. package/types/interaction/triggers/element-select-by-graphic-name.d.ts +8 -0
  85. package/types/interaction/triggers/element-select.d.ts +24 -0
  86. package/types/interaction/triggers/enum.d.ts +8 -0
  87. package/types/interaction/triggers/util.d.ts +12 -0
  88. package/types/interaction/zoom/zoomable.d.ts +1 -0
  89. package/types/layout/interface.d.ts +2 -2
  90. package/types/layout/layout-item.d.ts +2 -3
  91. package/types/mark/arc.d.ts +2 -2
  92. package/types/mark/area.d.ts +2 -0
  93. package/types/mark/base/base-line.d.ts +16 -2
  94. package/types/mark/base/base-mark.d.ts +131 -13
  95. package/types/mark/box-plot.d.ts +11 -5
  96. package/types/mark/cell.d.ts +5 -2
  97. package/types/mark/component.d.ts +11 -3
  98. package/types/mark/glyph.d.ts +29 -0
  99. package/types/mark/group.d.ts +10 -6
  100. package/types/mark/index.d.ts +3 -1
  101. package/types/mark/interface/common.d.ts +61 -9
  102. package/types/mark/interface/enum.d.ts +6 -0
  103. package/types/mark/interface/index.d.ts +1 -0
  104. package/types/mark/interface/mark.d.ts +18 -1
  105. package/types/mark/interface/type.d.ts +1 -0
  106. package/types/mark/label.d.ts +4 -3
  107. package/types/mark/link-path.d.ts +35 -5
  108. package/types/mark/liquid.d.ts +47 -5
  109. package/types/mark/ripple.d.ts +39 -4
  110. package/types/mark/rule.d.ts +3 -0
  111. package/types/mark/symbol.d.ts +4 -4
  112. package/types/mark/text.d.ts +4 -2
  113. package/types/mark/transform/data-sampling.d.ts +10 -0
  114. package/types/mark/transform/filter.d.ts +1 -0
  115. package/types/mark/transform/map.d.ts +1 -0
  116. package/types/mark/transform/symbol-overlap.d.ts +14 -0
  117. package/types/mark/utils/common.d.ts +4 -0
  118. package/types/mark/utils/glyph.d.ts +2 -0
  119. package/types/mark/utils/index.d.ts +2 -0
  120. package/types/mark/utils/line.d.ts +3 -0
  121. package/types/model/base-model.d.ts +8 -8
  122. package/types/model/interface.d.ts +4 -8
  123. package/types/model/layout-model.d.ts +2 -2
  124. package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
  125. package/types/plugin/components/tooltip-handler/utils/position.d.ts +2 -4
  126. package/types/plugin/other.d.ts +3 -3
  127. package/types/region/interface.d.ts +0 -2
  128. package/types/region/region.d.ts +3 -9
  129. package/types/series/area/animation.d.ts +1 -1
  130. package/types/series/area/area.d.ts +1 -1
  131. package/types/series/bar/animation.d.ts +1 -1
  132. package/types/series/bar/bar.d.ts +3 -3
  133. package/types/series/base/base-series.d.ts +26 -42
  134. package/types/series/base/tooltip-helper.d.ts +1 -2
  135. package/types/series/box-plot/box-plot.d.ts +3 -3
  136. package/types/series/cartesian/cartesian.d.ts +1 -1
  137. package/types/series/circle-packing/animation.d.ts +1 -1
  138. package/types/series/circle-packing/circle-packing.d.ts +1 -1
  139. package/types/series/correlation/animation.d.ts +1 -1
  140. package/types/series/correlation/correlation.d.ts +3 -4
  141. package/types/series/dot/dot.d.ts +2 -2
  142. package/types/series/funnel/funnel.d.ts +3 -2
  143. package/types/series/funnel/tooltip-helper.d.ts +1 -1
  144. package/types/series/gauge/animation.d.ts +1 -1
  145. package/types/series/gauge/gauge-pointer.d.ts +4 -1
  146. package/types/series/gauge/gauge.d.ts +2 -2
  147. package/types/series/geo/geo.d.ts +2 -2
  148. package/types/series/heatmap/animation.d.ts +1 -1
  149. package/types/series/heatmap/heatmap.d.ts +4 -1
  150. package/types/series/interface/common.d.ts +1 -4
  151. package/types/series/interface/series.d.ts +6 -1
  152. package/types/series/line/animation.d.ts +1 -1
  153. package/types/series/line/line.d.ts +1 -1
  154. package/types/series/link/link.d.ts +5 -2
  155. package/types/series/liquid/animation.d.ts +1 -1
  156. package/types/series/liquid/liquid.d.ts +4 -1
  157. package/types/series/map/interface.d.ts +10 -0
  158. package/types/series/mixin/line-mixin.d.ts +5 -5
  159. package/types/series/pictogram/pictogram.d.ts +15 -19
  160. package/types/series/pie/animation/animation.d.ts +4 -3
  161. package/types/series/pie/animation/centerOffset.d.ts +1 -1
  162. package/types/series/pie/interface.d.ts +2 -2
  163. package/types/series/pie/pie.d.ts +8 -6
  164. package/types/series/polar/progress-like/animation.d.ts +1 -1
  165. package/types/series/polar/progress-like/progress-like.d.ts +1 -2
  166. package/types/series/progress/circular/circular.d.ts +4 -1
  167. package/types/series/progress/linear/animation.d.ts +1 -1
  168. package/types/series/progress/linear/linear.d.ts +4 -1
  169. package/types/series/radar/animation.d.ts +11 -9
  170. package/types/series/radar/radar.d.ts +2 -2
  171. package/types/series/range-column/animation.d.ts +1 -1
  172. package/types/series/rose/animation.d.ts +1 -1
  173. package/types/series/sankey/animation.d.ts +1 -1
  174. package/types/series/sankey/sankey.d.ts +11 -12
  175. package/types/series/sankey/tooltip-helper.d.ts +1 -1
  176. package/types/series/scatter/animation.d.ts +1 -1
  177. package/types/series/sunburst/animation/enter.d.ts +1 -1
  178. package/types/series/sunburst/animation/exit.d.ts +1 -1
  179. package/types/series/sunburst/animation/preset.d.ts +1 -1
  180. package/types/series/sunburst/animation/utils.d.ts +2 -2
  181. package/types/series/sunburst/sunburst.d.ts +1 -1
  182. package/types/series/treemap/animation.d.ts +1 -1
  183. package/types/series/treemap/treemap.d.ts +1 -2
  184. package/types/series/venn/animation.d.ts +1 -1
  185. package/types/series/venn/venn.d.ts +2 -1
  186. package/types/series/waterfall/animation.d.ts +1 -1
  187. package/types/series/waterfall/waterfall.d.ts +2 -2
  188. package/types/series/word-cloud/animation.d.ts +1 -1
  189. package/types/series/word-cloud/base.d.ts +1 -1
  190. package/types/series/word-cloud/interface.d.ts +1 -1
  191. package/types/typings/common.d.ts +13 -0
  192. package/types/typings/spec/common.d.ts +37 -36
  193. package/types/typings/visual.d.ts +9 -2
  194. package/types/util/array.d.ts +1 -0
  195. package/types/util/index.d.ts +1 -0
  196. package/types/util/mark.d.ts +5 -0
  197. package/types/util/math.d.ts +1 -1
@@ -7,14 +7,16 @@ import { BaseModel } from '../../model/base-model';
7
7
  import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo, ISeriesSpecInfo, ISeriesStackDataLeaf, ISeriesStackDataMeta, ISeriesSeriesInfo } from '../interface';
8
8
  import type { IModelEvaluateOption, IModelRenderOption, IUpdateSpecResult } from '../../model/interface';
9
9
  import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
10
- import type { IBaseInteractionSpec, IHoverSpec, ISelectSpec } from '../../interaction/interface';
11
- import { SeriesData } from './series-data';
10
+ import type { IHoverSpec, ISelectSpec } from '../../interaction/interface/spec';
12
11
  import type { ISeriesMarkAttributeContext } from '../../compile/mark';
13
12
  import { STATE_VALUE_ENUM } from '../../compile/mark';
14
13
  import { BaseSeriesSpecTransformer } from './base-series-transformer';
15
- import type { EventType } from '@visactor/vgrammar-core';
16
14
  import type { ILabelSpec } from '../../component/label/interface';
17
15
  import type { StatisticOperations } from '../../data/transforms/interface';
16
+ import type { GraphicEventType } from '@visactor/vrender-core';
17
+ import type { ICompilableData } from '../../compile/data';
18
+ import type { IBaseTriggerOptions } from '../../interaction/interface/trigger';
19
+ import { TRIGGER_TYPE_ENUM } from '../../interaction/triggers/enum';
18
20
  export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
19
21
  readonly specKey: string;
20
22
  readonly type: string;
@@ -49,7 +51,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
49
51
  protected _viewDataMap: Map<number, DataView>;
50
52
  protected _viewDataFilter: DataView;
51
53
  getViewDataFilter(): DataView;
52
- protected _data: SeriesData;
54
+ protected _data: ICompilableData;
53
55
  getViewData(): DataView;
54
56
  getViewDataProductId(): string;
55
57
  protected _viewDataStatistics: DataView;
@@ -125,55 +127,37 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
125
127
  private _getExtensionMarkNamePrefix;
126
128
  protected _initExtensionMark(options: {
127
129
  hasAnimation: boolean;
128
- depend?: IMark[];
129
130
  }): void;
130
131
  private _createExtensionMark;
131
132
  protected _updateExtensionMarkSpec(): void;
132
133
  getStackData(): ISeriesStackData;
133
- protected _parseSelectorOfInteraction(interactionSpec: IBaseInteractionSpec, marks: IMark[]): string[];
134
- protected _parseDefaultInteractionConfig(mainMarks?: IMark[]): ({
135
- seriesId: number;
136
- regionId: number;
137
- selector: string[];
138
- type: string;
139
- trigger: EventType;
140
- triggerOff: EventType;
141
- blurState: STATE_VALUE_ENUM;
142
- highlightState: STATE_VALUE_ENUM;
143
- } | {
144
- type: string;
145
- seriesId: number;
146
- regionId: number;
147
- selector: string[];
148
- trigger: EventType;
149
- triggerOff: EventType;
150
- reverseState: STATE_VALUE_ENUM;
151
- state: STATE_VALUE_ENUM;
152
- isMultiple: boolean;
153
- })[];
154
- protected _defaultHoverConfig(selector: string[], finalHoverSpec: IHoverSpec): {
155
- seriesId: number;
156
- regionId: number;
157
- selector: string[];
158
- type: string;
159
- trigger: EventType;
160
- triggerOff: EventType;
134
+ protected _parseDefaultInteractionConfig(mainMarks?: IMark[]): {
135
+ trigger: Partial<IBaseTriggerOptions>;
136
+ marks: IMark[];
137
+ }[];
138
+ protected _defaultHoverConfig(finalHoverSpec: IHoverSpec): {
139
+ type: TRIGGER_TYPE_ENUM;
140
+ trigger: GraphicEventType;
141
+ triggerOff: GraphicEventType;
161
142
  blurState: STATE_VALUE_ENUM;
162
143
  highlightState: STATE_VALUE_ENUM;
163
144
  };
164
- protected _defaultSelectConfig(selector: string[], finalSelectSpec: ISelectSpec): {
165
- type: string;
166
- seriesId: number;
167
- regionId: number;
168
- selector: string[];
169
- trigger: EventType;
170
- triggerOff: EventType;
145
+ protected _defaultSelectConfig(finalSelectSpec: ISelectSpec): {
146
+ type: TRIGGER_TYPE_ENUM;
147
+ trigger: GraphicEventType;
148
+ triggerOff: GraphicEventType;
171
149
  reverseState: STATE_VALUE_ENUM;
172
150
  state: STATE_VALUE_ENUM;
173
151
  isMultiple: boolean;
174
152
  };
175
- protected _parseInteractionConfig(mainMarks?: IMark[]): void;
176
- initInteraction(): void;
153
+ protected _parseInteractionConfig(mainMarks?: IMark[]): {
154
+ trigger: Partial<IBaseTriggerOptions>;
155
+ marks: IMark[];
156
+ }[];
157
+ getInteractionTriggers(): {
158
+ trigger: Partial<IBaseTriggerOptions>;
159
+ marks: IMark[];
160
+ }[];
177
161
  initAnimation(): void;
178
162
  initMarkState(): void;
179
163
  initSeriesStyleState(): void;
@@ -1,7 +1,6 @@
1
1
  import type { ISeriesTooltipSpec, ITooltipSpec, TooltipHandlerParams } from '../../component/tooltip/interface';
2
- import type { ITooltipActual, ITooltipLineActual, ITooltipLinePattern, ITooltipPattern, MaybeArray, ShapeType, TooltipActiveType, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../typings';
2
+ import type { Datum, ITooltipActual, ITooltipLineActual, ITooltipLinePattern, ITooltipPattern, MaybeArray, ShapeType, TooltipActiveType, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../typings';
3
3
  import type { ISeries, ISeriesTooltipHelper } from '../interface';
4
- import type { Datum } from '@visactor/vgrammar-core';
5
4
  import type { IMark } from '../../mark/interface/common';
6
5
  interface ISeriesCacheInfo {
7
6
  seriesFields: string[];
@@ -4,8 +4,8 @@ import { CartesianSeries } from '../cartesian/cartesian';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
6
6
  import type { IBoxPlotSeriesSpec } from './interface';
7
- import { SeriesData } from '../base/series-data';
8
7
  import type { IMark } from '../../mark/interface';
8
+ import type { ICompilableData } from '../../compile/data';
9
9
  export declare const DEFAULT_FILL_COLOR = "#FFF";
10
10
  export declare const DEFAULT_STROKE_COLOR = "#000";
11
11
  export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec> extends CartesianSeries<T> {
@@ -36,7 +36,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
36
36
  protected _shaftFillOpacity: number;
37
37
  protected _outliersStyle: IOutlierMarkSpec;
38
38
  getOutliersStyle(): IOutlierMarkSpec;
39
- protected _outlierDataView: SeriesData;
39
+ protected _outlierDataView: ICompilableData;
40
40
  private _autoBoxWidth;
41
41
  setAttrFromSpec(): void;
42
42
  private _boxPlotMark?;
@@ -48,7 +48,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
48
48
  compileData(): void;
49
49
  init(option: IModelInitOption): void;
50
50
  private _getMarkWidth;
51
- onLayoutEnd(ctx: any): void;
51
+ onLayoutEnd(): void;
52
52
  private _initAnimationSpec;
53
53
  initAnimation(): void;
54
54
  protected initTooltip(): void;
@@ -31,7 +31,7 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
31
31
  protected _specXField: string[];
32
32
  protected _specYField: string[];
33
33
  protected _direction: DirectionType;
34
- get direction(): "vertical" | "horizontal";
34
+ get direction(): "horizontal" | "vertical";
35
35
  protected _scaleX: IBaseScale;
36
36
  get scaleX(): IBaseScale;
37
37
  setScaleX(s: IBaseScale): void;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { CirclePackingAppearPreset } from './interface';
3
3
  export declare const circlePackingPresetAnimation: (preset: CirclePackingAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const registerCirclePackingAnimation: () => void;
@@ -38,7 +38,7 @@ export declare class CirclePackingSeries<T extends ICirclePackingSeriesSpec = IC
38
38
  protected initTooltip(): void;
39
39
  initAnimation(): void;
40
40
  initEvent(): void;
41
- onLayoutEnd(ctx: any): void;
41
+ onLayoutEnd(): void;
42
42
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
43
43
  getActiveMarks(): IMark[];
44
44
  getMarkData(datum: Datum): any;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { CorrelationAppearPreset, ICorrelationAnimationParams } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const correlationPresetAnimation: (_params: ICorrelationAnimationParams, preset: CorrelationAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const registerCorrelationAnimation: () => void;
@@ -2,17 +2,17 @@ import { PolarSeries } from '../polar/polar';
2
2
  import type { ICorrelationSeriesSpec } from './interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
4
  import type { SeriesMarkMap } from '../interface';
5
- import { SeriesData } from '../base/series-data';
6
5
  import type { AdaptiveSpec } from '../../typings';
7
6
  import type { ILabelMark, IMark } from '../../mark/interface';
8
7
  import { CorrelationSeriesSpecTransformer } from './correlation-transformer';
8
+ import { type ICompilableData } from '../../compile/data';
9
9
  export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorrelationSeriesSpec> extends PolarSeries<AdaptiveSpec<T, 'outerRadius' | 'innerRadius'>> {
10
10
  static readonly type: string;
11
11
  type: SeriesTypeEnum;
12
12
  static readonly mark: SeriesMarkMap;
13
13
  static readonly transformerConstructor: any;
14
14
  readonly transformerConstructor: typeof CorrelationSeriesSpecTransformer;
15
- protected _centerSeriesData: SeriesData;
15
+ protected _centerSeriesData: ICompilableData;
16
16
  private _nodePointMark;
17
17
  private _ripplePointMark;
18
18
  private _centerPointMark;
@@ -32,7 +32,6 @@ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorre
32
32
  protected _sizeRange?: ICorrelationSeriesSpec['sizeRange'];
33
33
  getSizeRange(): number[];
34
34
  setSizeRange(range: number[]): void;
35
- protected _viewDataTransform: SeriesData;
36
35
  setAttrFromSpec(): void;
37
36
  protected initData(): void;
38
37
  compileData(): void;
@@ -51,6 +50,6 @@ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorre
51
50
  getActiveMarks(): IMark[];
52
51
  getDimensionField(): string[];
53
52
  getMeasureField(): string[];
54
- onLayoutEnd(ctx: any): void;
53
+ onLayoutEnd(): void;
55
54
  }
56
55
  export declare const registerCorrelationSeries: () => void;
@@ -49,7 +49,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
49
49
  dataToGridBackgroundPositionY1(datum: Datum): number;
50
50
  dataToOpacity(datum: Datum): number;
51
51
  dataToGridBackgroundOpacity(datum: Datum): VisualType<number>;
52
- onLayoutEnd(ctx: any): void;
52
+ onLayoutEnd(): void;
53
53
  getDefaultColorDomain(): any;
54
54
  getColorAttribute(): {
55
55
  scale: any;
@@ -63,7 +63,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
63
63
  protected initTooltip(): void;
64
64
  onEvaluateEnd(ctx: IModelEvaluateOption): void;
65
65
  protected onMarkTreePositionUpdate(marks: IMark[]): void;
66
- getDotData(): import("../../compile/mark").IMarkData;
66
+ getDotData(): import("../../compile/data").ICompilableData;
67
67
  protected _getDataIdKey(): any;
68
68
  getStackValueField(): string;
69
69
  getActiveMarks(): IMark[];
@@ -6,8 +6,8 @@ import { BaseSeries } from '../base/base-series';
6
6
  import type { ILabelMark, IMark, IPolygonMark, IRuleMark, ITextMark } from '../../mark/interface';
7
7
  import { MarkTypeEnum } from '../../mark/interface/type';
8
8
  import type { IFunnelSeriesSpec } from './interface';
9
- import { SeriesData } from '../base/series-data';
10
9
  import { FunnelSeriesSpecTransformer } from './funnel-transformer';
10
+ import type { ICompilableData } from '../../compile/data';
11
11
  export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec> extends BaseSeries<T> implements IFunnelSeries {
12
12
  static readonly type: string;
13
13
  type: SeriesTypeEnum;
@@ -24,7 +24,7 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
24
24
  protected _valueField: string;
25
25
  getValueField(): string;
26
26
  setValueField(f: string): string;
27
- protected _viewDataTransform: SeriesData;
27
+ protected _viewDataTransform: ICompilableData;
28
28
  protected _funnelAlign: 'left' | 'center' | 'right' | 'top' | 'bottom';
29
29
  protected _funnelOrient: IOrientType;
30
30
  protected _shape: 'rect' | 'trapezoid';
@@ -39,6 +39,7 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
39
39
  protected _minLabelLineWidth: number;
40
40
  setAttrFromSpec(): void;
41
41
  initData(): void;
42
+ compile(): void;
42
43
  compileData(): void;
43
44
  getStatisticFields(): {
44
45
  key: string;
@@ -1,7 +1,7 @@
1
1
  import type { ISeriesTooltipHelper } from '../interface';
2
2
  import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
3
  import type { TooltipHandlerParams } from '../../component/tooltip/interface';
4
- import type { Datum } from '@visactor/vgrammar-core';
4
+ import type { Datum } from '../../typings/common';
5
5
  export declare class FunnelSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
6
6
  dimensionTooltipTitleCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
7
7
  markTooltipValueCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  export type ProgressLikeAppearPreset = 'grow' | 'fadeIn';
3
3
  export interface IProgressLikeAnimationParams {
4
4
  startAngle?: number;
@@ -32,7 +32,10 @@ export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGau
32
32
  };
33
33
  private initPinBackgroundMarkStyle;
34
34
  private initPinMarkStyle;
35
- initInteraction(): void;
35
+ getInteractionTriggers(): {
36
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
37
+ marks: IMark[];
38
+ }[];
36
39
  initAnimation(): void;
37
40
  getDefaultShapeType(): string;
38
41
  getActiveMarks(): IMark[];
@@ -2,9 +2,9 @@ import type { SeriesMarkMap } from '../interface';
2
2
  import { SeriesTypeEnum } from '../interface/type';
3
3
  import type { IGaugeSeriesSpec } from './interface';
4
4
  import { ProgressLikeSeries } from '../polar/progress-like/progress-like';
5
- import type { Datum } from '@visactor/vgrammar-core';
6
5
  import type { IMark } from '../../mark/interface';
7
6
  import { GaugeSeriesSpecTransformer } from './gauge-transformer';
7
+ import type { Datum } from '../../typings/common';
8
8
  export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec> extends ProgressLikeSeries<T> {
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
@@ -20,7 +20,7 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
20
20
  initMarkStyle(): void;
21
21
  private initSegmentMarkStyle;
22
22
  protected generateRadiusStyle(spec: any): any;
23
- initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
23
+ initMarkStyleWithSpec(mark?: IMark, spec?: any): void;
24
24
  protected initTooltip(): void;
25
25
  private initTrackMarkStyle;
26
26
  protected _getAngleValueStartWithoutMask(datum: Datum): number;
@@ -3,14 +3,14 @@ import type { IPoint } from '../../typings';
3
3
  import type { IGeoSeries } from '../interface';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
5
  import { BaseSeries } from '../base/base-series';
6
- import type { SeriesData } from '../base/series-data';
7
6
  import type { DataView } from '@visactor/vdataset';
8
7
  import type { IGeoSeriesSpec } from './interface';
9
8
  import type { IMark } from '../../mark/interface';
9
+ import type { ICompilableData } from '../../compile/data';
10
10
  export declare abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpec> extends BaseSeries<T> implements IGeoSeries {
11
11
  type: SeriesTypeEnum;
12
12
  readonly coordinate = "geo";
13
- protected _mapViewData: SeriesData;
13
+ protected _mapViewData: ICompilableData;
14
14
  getMapViewData(): DataView;
15
15
  protected _mapViewDataStatistics: DataView;
16
16
  _nameField: string;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { HeatmapAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare function heatmapPresetAnimation(preset: HeatmapAppearPreset | boolean): IAnimationTypeConfig;
4
4
  export declare const registerHeatmapAnimation: () => void;
@@ -27,7 +27,10 @@ export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeries
27
27
  scale: any;
28
28
  field: any;
29
29
  };
30
- initInteraction(): void;
30
+ getInteractionTriggers(): {
31
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
32
+ marks: IMark[];
33
+ }[];
31
34
  initAnimation(): void;
32
35
  protected getCellSize(axisHelper: IAxisHelper): number;
33
36
  protected initTooltip(): void;
@@ -1,10 +1,9 @@
1
1
  import type { DataView } from '@visactor/vdataset';
2
- import type { IGrammarItem } from '../../compile/interface';
3
2
  import type { IBaseModelSpecTransformerResult, IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
4
3
  import type { IRegion } from '../../region/interface';
5
4
  import type { RenderMode } from '../../typings/spec/common';
6
5
  import type { ISeries } from './series';
7
- import type { IGroupMark, IMarkOption } from '../../mark/interface';
6
+ import type { IMarkOption } from '../../mark/interface';
8
7
  import type { ISeriesSpec, StringOrNumber } from '../../typings';
9
8
  import type { TransformedLabelSpec } from '../../component/label/interface';
10
9
  import type { SeriesMarkNameEnum, SeriesTypeEnum } from './type';
@@ -55,9 +54,7 @@ export interface ISeriesMarkInitOption extends Partial<IMarkOption> {
55
54
  themeSpec?: any;
56
55
  markSpec?: any;
57
56
  skipBeforeLayouted?: boolean;
58
- parent?: IGroupMark | false;
59
57
  isSeriesMark?: boolean;
60
- depend?: IGrammarItem | IGrammarItem[];
61
58
  key?: string | ((datum: any) => string);
62
59
  groupKey?: string;
63
60
  dataView?: DataView | false;
@@ -15,13 +15,14 @@ import type { IGeoCoordinateHelper } from '../../component/geo/interface';
15
15
  import type { ILabelSpec, ILabelInfo } from '../../component/label/interface';
16
16
  import type { StatisticOperations } from '../../data/transforms/interface';
17
17
  import type { ILegend } from '../../component/legend/interface';
18
+ import type { IBaseTriggerOptions } from '../../interaction/interface/trigger';
18
19
  export interface ISeries extends IModel {
19
20
  readonly type: string;
20
21
  readonly name?: string;
21
22
  tooltipHelper: ISeriesTooltipHelper;
22
23
  getSpec: () => any;
23
24
  readonly coordinate: CoordinateType;
24
- onLayoutEnd: (ctx: any) => void;
25
+ onLayoutEnd: () => void;
25
26
  getRawData: () => DataView | undefined;
26
27
  getViewDataFilter: () => DataView | undefined;
27
28
  getViewData: () => DataView | undefined;
@@ -104,6 +105,10 @@ export interface ISeries extends IModel {
104
105
  getSeriesFieldValue: (datum: Datum, seriesField?: string) => any;
105
106
  legendSelectedFilter?: (component: ILegend, selectedKeys: StringOrNumber[]) => StringOrNumber[];
106
107
  parseLabelStyle?: (labelStyle: any, labelSpec: any, labelMark?: ILabelMark) => any;
108
+ getInteractionTriggers?: () => {
109
+ trigger: Partial<IBaseTriggerOptions>;
110
+ marks: IMark[];
111
+ }[];
107
112
  }
108
113
  export interface ICartesianSeries extends ISeries {
109
114
  readonly coordinate: 'cartesian';
@@ -1,3 +1,3 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { ILineAnimationParams, LineAppearPreset } from './interface';
3
3
  export declare function linePresetAnimation(params: ILineAnimationParams, preset: LineAppearPreset): IAnimationTypeConfig;
@@ -20,7 +20,7 @@ export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> ext
20
20
  protected initTooltip(): void;
21
21
  initMarkStyle(): void;
22
22
  initAnimation(): void;
23
- onLayoutEnd(ctx: any): void;
23
+ onLayoutEnd(): void;
24
24
  getSeriesStyle(datum: Datum): (attribute: string) => unknown;
25
25
  getDefaultShapeType(): string;
26
26
  getActiveMarks(): IMark[];
@@ -44,10 +44,13 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
44
44
  scale: any;
45
45
  field: string;
46
46
  };
47
- initInteraction(): void;
47
+ getInteractionTriggers(): {
48
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
49
+ marks: IMark[];
50
+ }[];
48
51
  protected initTooltip(): void;
49
52
  protected onMarkTreePositionUpdate(marks: IMark[]): void;
50
- getDotInfoData(): import("../../compile/mark").IMarkData;
53
+ getDotInfoData(): import("../../compile/data").ICompilableData;
51
54
  getActiveMarks(): IMark[];
52
55
  }
53
56
  export declare const registerLinkSeries: () => void;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { ILiquidAnimationParams, LiquidAppearPreset } from './interface';
3
3
  export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
4
4
  export declare function liquidGroupPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
@@ -41,7 +41,10 @@ export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpe
41
41
  private _initLiquidBackgroundMarkStyle;
42
42
  private _initLiquidMarkStyle;
43
43
  protected initTooltip(): void;
44
- initInteraction(): void;
44
+ getInteractionTriggers(): {
45
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
46
+ marks: IMark[];
47
+ }[];
45
48
  initAnimation(): void;
46
49
  protected initEvent(): void;
47
50
  dataToPosition(data: Datum): IPoint;
@@ -26,4 +26,14 @@ export interface IMapSeriesTheme {
26
26
  }>;
27
27
  area?: Partial<IMarkTheme<Omit<IPathMarkSpec, 'smoothScale'>>>;
28
28
  }
29
+ export interface GeometryData {
30
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon' | 'GeometryCollection';
31
+ coordinates?: [number, number] | [number, number][] | [number, number][][] | [number, number][][][];
32
+ arcs?: number[][];
33
+ }
34
+ export interface FeatureData {
35
+ type: 'Feature';
36
+ geometry: GeometryData;
37
+ properties?: Record<string, any>;
38
+ }
29
39
  export {};
@@ -1,12 +1,12 @@
1
1
  import type { ISeriesOption } from '../interface/common';
2
2
  import type { ISeries } from '../interface/series';
3
- import type { ICompileMarkConfig, IMark, IMarkProgressiveConfig, ILabelMark, ILineMark, ISymbolMark, ITextMark } from '../../mark/interface';
3
+ import type { ICompileMarkConfig, IMark, ILabelMark, ILineMark, ISymbolMark, ITextMark } from '../../mark/interface';
4
4
  import type { DirectionType, IInvalidType, InterpolateType, Maybe, Datum, ILayoutRect } from '../../typings';
5
5
  import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
6
6
  import type { DimensionEventParams } from '../../event/events/dimension';
7
7
  import type { IRegion } from '../../region/interface';
8
- import type { SeriesData } from '../base/series-data';
9
8
  import type { ILineLikeSeriesTheme } from './interface';
9
+ import type { ICompilableData } from '../../compile/data';
10
10
  export interface LineLikeSeriesMixin extends ISeries {
11
11
  _spec: any;
12
12
  _option: ISeriesOption;
@@ -16,7 +16,7 @@ export interface LineLikeSeriesMixin extends ISeries {
16
16
  _invalidType: IInvalidType;
17
17
  _region: IRegion;
18
18
  _direction: DirectionType;
19
- _data: SeriesData;
19
+ _data: ICompilableData;
20
20
  _lineMark: ILineMark;
21
21
  _symbolMark: ISymbolMark;
22
22
  _symbolActiveMark: ISymbolMark;
@@ -33,11 +33,11 @@ export declare class LineLikeSeriesMixin {
33
33
  addSamplingCompile(): void;
34
34
  addOverlapCompile(): void;
35
35
  reCompileSampling(): void;
36
- initLineMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ILineMark;
36
+ initLineMark(isSeriesMark?: boolean): ILineMark;
37
37
  initLineMarkStyle(direction?: DirectionType, areaCurveType?: InterpolateType): ILineMark;
38
38
  protected _getEventElement(params: DimensionEventParams, reverse?: boolean): Datum[];
39
39
  protected _dimensionTrigger(params: DimensionEventParams): void;
40
- initSymbolMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ISymbolMark;
40
+ initSymbolMark(isSeriesMark?: boolean): ISymbolMark;
41
41
  initSymbolMarkStyle(): ISymbolMark;
42
42
  private _initSymbolMark;
43
43
  private _initSymbolActiveMarkAlone;
@@ -8,12 +8,12 @@ import type { GroupMark } from '../../mark';
8
8
  import { PictogramSeriesSpecTransformer } from './pictogram-transformer';
9
9
  import type { IMatrix } from '@visactor/vutils';
10
10
  import type { Datum } from '../../typings';
11
- import type { Group } from '@visactor/vrender-core';
12
- import type { IHoverSpec, ISelectSpec } from '../../interaction/interface';
11
+ import type { GraphicEventType, IGroup } from '@visactor/vrender-core';
12
+ import type { IHoverSpec, ISelectSpec } from '../../interaction/interface/spec';
13
13
  import { STATE_VALUE_ENUM } from '../../compile/mark';
14
- import type { EventType } from '@visactor/vgrammar-core';
15
14
  import type { IMark } from '../../mark/interface';
16
15
  import type { IPoint } from '../../typings/coordinate';
16
+ import { TRIGGER_TYPE_ENUM } from '../../interaction/triggers/enum';
17
17
  export interface SVGParsedElementExtend extends SVGParsedElement {
18
18
  _finalAttributes: Record<string, any>;
19
19
  _uniqueId: string;
@@ -27,28 +27,23 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
27
27
  protected _pictogramMark: GroupMark;
28
28
  protected _parsedSvgResult: SVGParserResult;
29
29
  private _labelMark;
30
+ private _idToMark;
30
31
  setAttrFromSpec(): void;
31
32
  getDatumCenter(datum: SVGParsedElementExtend): [number, number];
32
33
  getDatumName(datum: SVGParsedElementExtend): string;
33
34
  getMarksWithoutRoot(): IMark[];
34
35
  protected _buildMarkAttributeContext(): void;
35
- protected _defaultHoverConfig(selector: string[], finalHoverSpec: IHoverSpec): {
36
- seriesId: number;
37
- regionId: number;
38
- selector: string[];
39
- type: string;
40
- trigger: EventType;
41
- triggerOff: EventType;
36
+ protected _defaultHoverConfig(finalHoverSpec: IHoverSpec): {
37
+ type: TRIGGER_TYPE_ENUM;
38
+ trigger: GraphicEventType;
39
+ triggerOff: GraphicEventType;
42
40
  blurState: STATE_VALUE_ENUM;
43
41
  highlightState: STATE_VALUE_ENUM;
44
42
  };
45
- protected _defaultSelectConfig(selector: string[], finalSelectSpec: ISelectSpec): {
46
- type: string;
47
- seriesId: number;
48
- regionId: number;
49
- selector: string[];
50
- trigger: EventType;
51
- triggerOff: EventType;
43
+ protected _defaultSelectConfig(finalSelectSpec: ISelectSpec): {
44
+ type: TRIGGER_TYPE_ENUM;
45
+ trigger: GraphicEventType;
46
+ triggerOff: GraphicEventType;
52
47
  reverseState: STATE_VALUE_ENUM;
53
48
  state: STATE_VALUE_ENUM;
54
49
  isMultiple: boolean;
@@ -62,10 +57,10 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
62
57
  dataToPosition(datum: Datum, global?: boolean): IPoint;
63
58
  coordToPosition(point: IPoint): IPoint | undefined;
64
59
  getRootMatrix(): IMatrix;
65
- getPictogramRootGraphic(): Group;
60
+ getPictogramRootGraphic(): IGroup;
66
61
  initData(): void;
67
62
  mapViewDataUpdate(): void;
68
- onLayoutEnd(ctx: any): void;
63
+ onLayoutEnd(): void;
69
64
  updateSVGSize(): void;
70
65
  protected initEvent(): void;
71
66
  handleZoom(e: ZoomEventParam): void;
@@ -74,5 +69,6 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
74
69
  getMeasureField(): string[];
75
70
  getDimensionField(): string[];
76
71
  protected _getSeriesInfo(field: string, keys: string[]): ISeriesSeriesInfo[];
72
+ release(): void;
77
73
  }
78
74
  export declare const registerPictogramSeries: () => void;
@@ -1,8 +1,9 @@
1
- import type { IElement, IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
2
2
  import { AnimationStateEnum } from '../../../animation/interface';
3
3
  import type { Datum } from '../../../typings';
4
4
  import type { IPieAnimationParams, PieAppearPreset } from '../interface';
5
- export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, element: IElement, params: AnimationStateEnum) => {
5
+ import type { IGraphic } from '@visactor/vrender-core';
6
+ export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, element: IGraphic, params: AnimationStateEnum) => {
6
7
  overall: number;
7
8
  } | {
8
9
  overall: boolean;
@@ -14,7 +15,7 @@ export declare const Appear_FadeIn: {
14
15
  export declare const pieEnter: (params: IPieAnimationParams) => IAnimationTypeConfig;
15
16
  export declare const pieExit: (params: IPieAnimationParams) => IAnimationTypeConfig;
16
17
  export declare const pieDisappear: (params: IPieAnimationParams) => IAnimationTypeConfig;
17
- export declare function piePresetAnimation(params: IPieAnimationParams, preset: PieAppearPreset | boolean): IAnimationTypeConfig | {
18
+ export declare function piePresetAnimation(params: IPieAnimationParams, preset: PieAppearPreset | boolean): import("../../../animation/interface").CommonAnimationConfigItem | {
18
19
  type: string;
19
20
  };
20
21
  export declare const registerPieAnimation: () => void;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTimeline, IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IArcMark } from '../../../mark/interface';
2
+ import type { IAnimationTimeline, IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare function centerOffsetConfig(mark: IArcMark, originalConfig: IAnimationTypeConfig): IAnimationTimeline;
@@ -8,11 +8,11 @@ import type { ICustomPath2D, ILineGraphicAttribute, ITextGraphicAttribute } from
8
8
  import type { ILayoutRect, IPercent } from '../../typings/layout';
9
9
  import type { IPointLike } from '@visactor/vutils';
10
10
  import type { AnimationStateEnum } from '../../animation/interface';
11
- import type { IElement } from '@visactor/vgrammar-core';
12
11
  import type { Datum } from '../../typings/common';
12
+ import type { IMarkGraphic } from '../../mark/interface';
13
13
  export interface IPieAnimationParams {
14
14
  growField?: 'angle' | 'radius';
15
- growFrom: (datum: Datum, element: IElement, state: AnimationStateEnum) => number;
15
+ growFrom: (datum: Datum, g: IMarkGraphic, state: AnimationStateEnum) => number;
16
16
  }
17
17
  export type PieAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
18
18
  export type PieMarks = 'pie' | 'label' | 'labelLine';