@visactor/vchart-types 1.13.7-alpha.0 → 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 (189) 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 +2 -2
  32. package/types/component/custom-mark/custom-mark.d.ts +0 -1
  33. package/types/component/data-zoom/data-filter-base-component.d.ts +2 -2
  34. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
  35. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +1 -1
  36. package/types/component/geo/geo-coordinate.d.ts +2 -2
  37. package/types/component/geo/interface.d.ts +1 -1
  38. package/types/component/label/base-label.d.ts +5 -0
  39. package/types/component/label/interface.d.ts +2 -3
  40. package/types/component/label/label.d.ts +3 -3
  41. package/types/component/label/util.d.ts +9 -10
  42. package/types/component/legend/util.d.ts +3 -3
  43. package/types/component/marker/base-marker.d.ts +1 -1
  44. package/types/component/tooltip/processor/interface.d.ts +1 -1
  45. package/types/component/tooltip/processor/util.d.ts +1 -1
  46. package/types/component/tooltip/tooltip.d.ts +2 -3
  47. package/types/constant/data.d.ts +1 -0
  48. package/types/constant/event.d.ts +53 -2
  49. package/types/core/factory.d.ts +28 -3
  50. package/types/core/index.d.ts +1 -0
  51. package/types/core/interface.d.ts +13 -4
  52. package/types/core/vchart.d.ts +6 -6
  53. package/types/data/transforms/treemap.d.ts +5 -6
  54. package/types/data/transforms/venn.d.ts +10 -0
  55. package/types/event/events/base.d.ts +1 -2
  56. package/types/event/interface.d.ts +6 -9
  57. package/types/index-harmony-simple.d.ts +2 -1
  58. package/types/index.d.ts +0 -3
  59. package/types/interaction/config.d.ts +13 -0
  60. package/types/interaction/index.d.ts +9 -1
  61. package/types/interaction/interaction.d.ts +17 -25
  62. package/types/interaction/interface/common.d.ts +22 -0
  63. package/types/interaction/interface/spec.d.ts +53 -0
  64. package/types/interaction/interface/trigger.d.ts +87 -0
  65. package/types/interaction/triggers/base.d.ts +28 -0
  66. package/types/interaction/triggers/dimension-hover.d.ts +22 -0
  67. package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
  68. package/types/interaction/triggers/element-active.d.ts +20 -0
  69. package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +13 -0
  70. package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
  71. package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
  72. package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
  73. package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
  74. package/types/interaction/triggers/element-highlight.d.ts +25 -0
  75. package/types/interaction/triggers/element-select-by-graphic-name.d.ts +8 -0
  76. package/types/interaction/triggers/element-select.d.ts +24 -0
  77. package/types/interaction/triggers/enum.d.ts +8 -0
  78. package/types/interaction/triggers/util.d.ts +12 -0
  79. package/types/layout/interface.d.ts +2 -2
  80. package/types/layout/layout-item.d.ts +2 -3
  81. package/types/mark/arc.d.ts +2 -2
  82. package/types/mark/area.d.ts +2 -0
  83. package/types/mark/base/base-line.d.ts +16 -2
  84. package/types/mark/base/base-mark.d.ts +131 -13
  85. package/types/mark/box-plot.d.ts +11 -5
  86. package/types/mark/cell.d.ts +5 -2
  87. package/types/mark/component.d.ts +11 -3
  88. package/types/mark/glyph.d.ts +29 -0
  89. package/types/mark/group.d.ts +10 -6
  90. package/types/mark/index.d.ts +3 -1
  91. package/types/mark/interface/common.d.ts +61 -9
  92. package/types/mark/interface/enum.d.ts +6 -0
  93. package/types/mark/interface/index.d.ts +1 -0
  94. package/types/mark/interface/mark.d.ts +18 -1
  95. package/types/mark/interface/type.d.ts +1 -0
  96. package/types/mark/label.d.ts +4 -3
  97. package/types/mark/link-path.d.ts +35 -5
  98. package/types/mark/liquid.d.ts +47 -5
  99. package/types/mark/ripple.d.ts +39 -4
  100. package/types/mark/rule.d.ts +3 -0
  101. package/types/mark/symbol.d.ts +4 -4
  102. package/types/mark/text.d.ts +4 -2
  103. package/types/mark/transform/data-sampling.d.ts +10 -0
  104. package/types/mark/transform/filter.d.ts +1 -0
  105. package/types/mark/transform/map.d.ts +1 -0
  106. package/types/mark/transform/symbol-overlap.d.ts +14 -0
  107. package/types/mark/utils/common.d.ts +4 -0
  108. package/types/mark/utils/glyph.d.ts +2 -0
  109. package/types/mark/utils/index.d.ts +2 -0
  110. package/types/mark/utils/line.d.ts +3 -0
  111. package/types/model/base-model.d.ts +8 -8
  112. package/types/model/interface.d.ts +4 -8
  113. package/types/model/layout-model.d.ts +2 -2
  114. package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
  115. package/types/plugin/other.d.ts +3 -3
  116. package/types/region/interface.d.ts +0 -2
  117. package/types/region/region.d.ts +3 -9
  118. package/types/series/area/animation.d.ts +1 -1
  119. package/types/series/area/area.d.ts +1 -1
  120. package/types/series/bar/animation.d.ts +1 -1
  121. package/types/series/bar/bar.d.ts +3 -3
  122. package/types/series/base/base-series.d.ts +26 -42
  123. package/types/series/base/tooltip-helper.d.ts +1 -2
  124. package/types/series/box-plot/box-plot.d.ts +3 -3
  125. package/types/series/cartesian/cartesian.d.ts +1 -1
  126. package/types/series/circle-packing/animation.d.ts +1 -1
  127. package/types/series/circle-packing/circle-packing.d.ts +1 -1
  128. package/types/series/correlation/animation.d.ts +1 -1
  129. package/types/series/correlation/correlation.d.ts +3 -4
  130. package/types/series/dot/dot.d.ts +2 -2
  131. package/types/series/funnel/funnel.d.ts +3 -2
  132. package/types/series/funnel/interface.d.ts +0 -1
  133. package/types/series/funnel/tooltip-helper.d.ts +2 -4
  134. package/types/series/gauge/animation.d.ts +1 -1
  135. package/types/series/gauge/gauge-pointer.d.ts +4 -1
  136. package/types/series/gauge/gauge.d.ts +2 -2
  137. package/types/series/geo/geo.d.ts +2 -2
  138. package/types/series/heatmap/animation.d.ts +1 -1
  139. package/types/series/heatmap/heatmap.d.ts +4 -1
  140. package/types/series/interface/common.d.ts +1 -4
  141. package/types/series/interface/series.d.ts +6 -1
  142. package/types/series/line/animation.d.ts +1 -1
  143. package/types/series/line/line.d.ts +1 -1
  144. package/types/series/link/link.d.ts +5 -2
  145. package/types/series/liquid/animation.d.ts +1 -1
  146. package/types/series/liquid/liquid.d.ts +4 -1
  147. package/types/series/map/interface.d.ts +10 -0
  148. package/types/series/mixin/line-mixin.d.ts +5 -5
  149. package/types/series/pictogram/pictogram.d.ts +13 -19
  150. package/types/series/pie/animation/animation.d.ts +4 -3
  151. package/types/series/pie/animation/centerOffset.d.ts +1 -1
  152. package/types/series/pie/interface.d.ts +2 -2
  153. package/types/series/pie/pie.d.ts +8 -6
  154. package/types/series/polar/progress-like/animation.d.ts +1 -1
  155. package/types/series/polar/progress-like/progress-like.d.ts +1 -2
  156. package/types/series/progress/circular/circular.d.ts +4 -1
  157. package/types/series/progress/linear/animation.d.ts +1 -1
  158. package/types/series/progress/linear/linear.d.ts +4 -1
  159. package/types/series/radar/animation.d.ts +11 -9
  160. package/types/series/radar/radar.d.ts +2 -2
  161. package/types/series/range-column/animation.d.ts +1 -1
  162. package/types/series/rose/animation.d.ts +1 -1
  163. package/types/series/sankey/animation.d.ts +1 -1
  164. package/types/series/sankey/sankey.d.ts +11 -12
  165. package/types/series/sankey/tooltip-helper.d.ts +1 -1
  166. package/types/series/scatter/animation.d.ts +1 -1
  167. package/types/series/sunburst/animation/enter.d.ts +1 -1
  168. package/types/series/sunburst/animation/exit.d.ts +1 -1
  169. package/types/series/sunburst/animation/preset.d.ts +1 -1
  170. package/types/series/sunburst/animation/utils.d.ts +2 -2
  171. package/types/series/sunburst/sunburst.d.ts +1 -1
  172. package/types/series/treemap/animation.d.ts +1 -1
  173. package/types/series/treemap/treemap.d.ts +1 -2
  174. package/types/series/venn/animation.d.ts +1 -1
  175. package/types/series/venn/venn.d.ts +2 -1
  176. package/types/series/waterfall/animation.d.ts +1 -1
  177. package/types/series/waterfall/waterfall.d.ts +2 -3
  178. package/types/series/word-cloud/animation.d.ts +1 -1
  179. package/types/series/word-cloud/base.d.ts +1 -1
  180. package/types/series/word-cloud/interface.d.ts +1 -1
  181. package/types/typings/common.d.ts +13 -0
  182. package/types/typings/spec/common.d.ts +37 -36
  183. package/types/typings/visual.d.ts +2 -2
  184. package/types/util/array.d.ts +1 -0
  185. package/types/util/index.d.ts +1 -0
  186. package/types/util/mark.d.ts +5 -0
  187. package/types/util/math.d.ts +1 -1
  188. package/types/util/scale.d.ts +0 -1
  189. package/types/vrender-tools.d.ts +0 -1
@@ -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;
@@ -33,23 +33,17 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
33
33
  getDatumName(datum: SVGParsedElementExtend): string;
34
34
  getMarksWithoutRoot(): IMark[];
35
35
  protected _buildMarkAttributeContext(): void;
36
- protected _defaultHoverConfig(selector: string[], finalHoverSpec: IHoverSpec): {
37
- seriesId: number;
38
- regionId: number;
39
- selector: string[];
40
- type: string;
41
- trigger: EventType;
42
- triggerOff: EventType;
36
+ protected _defaultHoverConfig(finalHoverSpec: IHoverSpec): {
37
+ type: TRIGGER_TYPE_ENUM;
38
+ trigger: GraphicEventType;
39
+ triggerOff: GraphicEventType;
43
40
  blurState: STATE_VALUE_ENUM;
44
41
  highlightState: STATE_VALUE_ENUM;
45
42
  };
46
- protected _defaultSelectConfig(selector: string[], finalSelectSpec: ISelectSpec): {
47
- type: string;
48
- seriesId: number;
49
- regionId: number;
50
- selector: string[];
51
- trigger: EventType;
52
- triggerOff: EventType;
43
+ protected _defaultSelectConfig(finalSelectSpec: ISelectSpec): {
44
+ type: TRIGGER_TYPE_ENUM;
45
+ trigger: GraphicEventType;
46
+ triggerOff: GraphicEventType;
53
47
  reverseState: STATE_VALUE_ENUM;
54
48
  state: STATE_VALUE_ENUM;
55
49
  isMultiple: boolean;
@@ -63,10 +57,10 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
63
57
  dataToPosition(datum: Datum, global?: boolean): IPoint;
64
58
  coordToPosition(point: IPoint): IPoint | undefined;
65
59
  getRootMatrix(): IMatrix;
66
- getPictogramRootGraphic(): Group;
60
+ getPictogramRootGraphic(): IGroup;
67
61
  initData(): void;
68
62
  mapViewDataUpdate(): void;
69
- onLayoutEnd(ctx: any): void;
63
+ onLayoutEnd(): void;
70
64
  updateSVGSize(): void;
71
65
  protected initEvent(): void;
72
66
  handleZoom(e: ZoomEventParam): 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';
@@ -1,20 +1,19 @@
1
1
  import type { IPoint, Datum, StateValueType } from '../../typings';
2
- import type { IModelLayoutOption } from '../../model/interface';
3
2
  import { PolarSeries } from '../polar/polar';
4
3
  import type { IArcMark, IMark, IPathMark, ITextMark } from '../../mark/interface';
5
4
  import { MarkTypeEnum } from '../../mark/interface/type';
6
5
  import type { IArcSeries, SeriesMarkMap } from '../interface';
7
6
  import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
8
7
  import type { IBasePieSeriesSpec, IPieSeriesSpec } from './interface';
9
- import { SeriesData } from '../base/series-data';
10
8
  import { PieSeriesSpecTransformer } from './pie-transformer';
9
+ import type { ICompilableData } from '../../compile/data';
11
10
  export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSeries<T> implements IArcSeries {
12
11
  static readonly transformerConstructor: any;
13
12
  readonly transformerConstructor: typeof PieSeriesSpecTransformer;
14
13
  protected _pieMarkName: SeriesMarkNameEnum;
15
14
  protected _pieMarkType: MarkTypeEnum;
16
15
  static readonly mark: SeriesMarkMap;
17
- protected _viewDataLabel: SeriesData;
16
+ protected _viewDataLabel: ICompilableData;
18
17
  getCenter: () => IPoint;
19
18
  protected _centerOffset: number;
20
19
  protected _cornerRadius: number;
@@ -37,14 +36,17 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
37
36
  private endAngleScale;
38
37
  protected _computeLayoutRadius(): number;
39
38
  initMarkStyle(): void;
40
- initInteraction(): void;
39
+ getInteractionTriggers(): {
40
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
41
+ marks: IMark[];
42
+ }[];
41
43
  protected initTooltip(): void;
42
- initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
44
+ initMarkStyleWithSpec(mark?: IMark, spec?: any): void;
43
45
  initLabelMarkStyle(textMark: ITextMark): void;
44
46
  afterInitMark(): void;
45
47
  initEvent(): void;
46
48
  initGroups(): void;
47
- onLayoutEnd(ctx: IModelLayoutOption): void;
49
+ onLayoutEnd(): void;
48
50
  getDimensionField(): string[];
49
51
  getMeasureField(): string[];
50
52
  private viewDataLabelUpdate;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
2
2
  import type { IProgressLikeAnimationParams, ProgressLikeAppearPreset } from './interface';
3
3
  export declare function progressLikePresetAnimation(params: IProgressLikeAnimationParams, preset: ProgressLikeAppearPreset): IAnimationTypeConfig;
4
4
  export declare const registerProgressLikeAnimation: () => void;
@@ -1,6 +1,5 @@
1
- import type { Datum } from '@visactor/vgrammar-core';
2
1
  import type { IGroupMark, IMarkStyle } from '../../../mark/interface';
3
- import type { ConvertToMarkStyleSpec, ICommonSpec } from '../../../typings';
2
+ import type { ConvertToMarkStyleSpec, Datum, ICommonSpec } from '../../../typings';
4
3
  import { PolarSeries } from '../polar';
5
4
  import type { IContinuousTickData, IProgressLikeSeriesSpec } from './interface';
6
5
  import type { IPolarAxis } from '../../../component/axis';
@@ -19,7 +19,10 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
19
19
  initMarkStyle(): void;
20
20
  private _initProgressMark;
21
21
  private _initProgressMarkStyle;
22
- initInteraction(): void;
22
+ getInteractionTriggers(): {
23
+ trigger: Partial<import("../../../interaction/interface/trigger").IBaseTriggerOptions>;
24
+ marks: IMark[];
25
+ }[];
23
26
  protected initTooltip(): void;
24
27
  private _initTrackMark;
25
28
  private _initTrackMarkStyle;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ILinearProgressAnimationParams, LinearProgressAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare const linearProgressDisappear: (params: ILinearProgressAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const Appear_FadeIn: IAnimationTypeConfig;
5
5
  export declare function linearProgressPresetAnimation(params: ILinearProgressAnimationParams, preset: LinearProgressAppearPreset | boolean): IAnimationTypeConfig;
@@ -16,7 +16,10 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
16
16
  private _defaultProgressCustomShape;
17
17
  private _initTrackMark;
18
18
  private _initTrackMarkStyle;
19
- initInteraction(): void;
19
+ getInteractionTriggers(): {
20
+ trigger: Partial<import("../../../interaction/interface/trigger").IBaseTriggerOptions>;
21
+ marks: IMark[];
22
+ }[];
20
23
  initAnimation(): void;
21
24
  protected initTooltip(): void;
22
25
  getActiveMarks(): IMark[];
@@ -1,5 +1,7 @@
1
- import type { Datum, IAnimationTypeConfig, IElement } from '@visactor/vgrammar-core';
1
+ import type { IGraphic } from '@visactor/vrender-core';
2
2
  import type { IRadarAnimationParams, RadarAppearPreset } from './interface';
3
+ import type { IAnimationTypeConfig } from '../../animation/interface';
4
+ import type { Datum } from '../../typings/common';
3
5
  export declare const radarFadeAnimation: (animationType: 'in' | 'out') => {
4
6
  type: string;
5
7
  };
@@ -16,21 +18,21 @@ export declare const radarSymbolMoveAnimation: (params: IRadarAnimationParams, a
16
18
  channel: {
17
19
  x: {
18
20
  from: () => number;
19
- to: (datum: Datum, element: IElement) => any;
21
+ to: (datum: Datum, element: IGraphic) => any;
20
22
  };
21
23
  y: {
22
24
  from: () => number;
23
- to: (datum: Datum, element: IElement) => any;
25
+ to: (datum: Datum, element: IGraphic) => any;
24
26
  };
25
27
  };
26
28
  } | {
27
29
  channel: {
28
30
  x: {
29
- from: (datum: Datum, element: IElement) => any;
31
+ from: (datum: Datum, element: IGraphic) => any;
30
32
  to: () => number;
31
33
  };
32
34
  y: {
33
- from: (datum: Datum, element: IElement) => any;
35
+ from: (datum: Datum, element: IGraphic) => any;
34
36
  to: () => number;
35
37
  };
36
38
  };
@@ -41,21 +43,21 @@ export declare function radarSymbolPresetAnimation(params: IRadarAnimationParams
41
43
  channel: {
42
44
  x: {
43
45
  from: () => number;
44
- to: (datum: any, element: IElement) => any;
46
+ to: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
45
47
  };
46
48
  y: {
47
49
  from: () => number;
48
- to: (datum: any, element: IElement) => any;
50
+ to: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
49
51
  };
50
52
  };
51
53
  } | {
52
54
  channel: {
53
55
  x: {
54
- from: (datum: any, element: IElement) => any;
56
+ from: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
55
57
  to: () => number;
56
58
  };
57
59
  y: {
58
- from: (datum: any, element: IElement) => any;
60
+ from: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
59
61
  to: () => number;
60
62
  };
61
63
  };
@@ -1,5 +1,5 @@
1
1
  import { LineLikeSeriesMixin } from '../mixin/line-mixin';
2
- import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
2
+ import type { IMark } from '../../mark/interface';
3
3
  import type { Datum } from '../../typings';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
@@ -20,7 +20,7 @@ export declare class RadarSeries<T extends IRadarSeriesSpec = IRadarSeriesSpec>
20
20
  compile(): void;
21
21
  initMark(): void;
22
22
  initMarkStyle(): void;
23
- initAreaMark(progressive: IMarkProgressiveConfig, isSeriesMark: boolean): void;
23
+ initAreaMark(isSeriesMark: boolean): void;
24
24
  initAreaMarkStyle(): void;
25
25
  protected initTooltip(): void;
26
26
  initAnimation(): void;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { IRangeColumnAnimationParams, RangeColumnAppearPreset } from './interface';
3
3
  export declare const rangeColumnGrowIn: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const rangeColumnGrowOut: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IRoseAnimationParams, RoseAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const Appear_Grow: (params: IRoseAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const Appear_FadeIn: IAnimationTypeConfig;
5
5
  export declare const roseEnter: (params: IRoseAnimationParams) => IAnimationTypeConfig;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ISankeyAnimationParams, SankeyAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const sankeyGrowIn: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
4
4
  export declare const sankeyGrowOut: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
5
5
  export declare const sankeyNodePresetAnimation: (params: ISankeyAnimationParams, preset: SankeyAppearPreset) => IAnimationTypeConfig;
@@ -2,11 +2,10 @@ import { CartesianSeries } from '../cartesian/cartesian';
2
2
  import type { SeriesMarkMap } from '../interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
4
  import type { Datum, StringOrNumber } from '../../typings';
5
- import { SeriesData } from '../base/series-data';
5
+ import { DataView } from '@visactor/vdataset';
6
6
  import type { ISankeySeriesSpec } from './interface';
7
7
  import type { ExtendEventParam } from '../../event/interface';
8
- import type { IElement, IGlyphElement, IMark as IVgrammarMark } from '@visactor/vgrammar-core';
9
- import type { IMark, ITextMark } from '../../mark/interface';
8
+ import type { IMark, IMarkGraphic, ITextMark } from '../../mark/interface';
10
9
  import { SankeySeriesSpecTransformer } from './sankey-transformer';
11
10
  import type { ILabelSpec } from '../../component';
12
11
  export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
@@ -19,14 +18,14 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
19
18
  private _linkMark;
20
19
  private _nodeLayoutZIndex;
21
20
  private _labelLayoutZIndex;
22
- protected _nodesSeriesData?: SeriesData;
23
- protected _linksSeriesData?: SeriesData;
21
+ protected _nodesSeriesData?: DataView;
22
+ protected _linksSeriesData?: DataView;
24
23
  private _viewBox;
25
24
  protected _categoryField: string;
26
25
  private _colorScale;
27
26
  private _nodeList;
28
27
  private _needClear;
29
- get direction(): "vertical" | "horizontal";
28
+ get direction(): "horizontal" | "vertical";
30
29
  getCategoryField(): string;
31
30
  setCategoryField(f: string): string;
32
31
  protected _valueField: string;
@@ -54,11 +53,11 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
54
53
  private linksSeriesDataUpdate;
55
54
  protected _handleEmphasisElement: (params: ExtendEventParam) => void;
56
55
  protected _handleClearEmpty: () => void;
57
- protected _handleNodeAdjacencyClick: (element: IElement) => void;
58
- protected _handleLinkAdjacencyClick: (element: IGlyphElement) => void;
59
- protected _handleNodeRelatedClick: (element: IElement) => void;
60
- protected _handleLinkRelatedClick: (element: IGlyphElement) => void;
61
- protected _highLightElements(vGrammarElements: IVgrammarMark['elements'], highlightNodes: string[]): void;
56
+ protected _handleNodeAdjacencyClick: (graphic: IMarkGraphic) => void;
57
+ protected _handleLinkAdjacencyClick: (graphic: IMarkGraphic) => void;
58
+ protected _handleNodeRelatedClick: (graphic: IMarkGraphic) => void;
59
+ protected _handleLinkRelatedClick: (graphic: IMarkGraphic) => void;
60
+ protected _highLightElements(graphics: IMarkGraphic[], highlightNodes: string[]): void;
62
61
  protected initTooltip(): void;
63
62
  _setNodeOrdinalColorScale(): void;
64
63
  getNodeList(): any;
@@ -73,7 +72,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
73
72
  max?: number;
74
73
  };
75
74
  private _collectByField;
76
- onLayoutEnd(ctx: any): void;
75
+ onLayoutEnd(): void;
77
76
  getDefaultShapeType(): string;
78
77
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
79
78
  getActiveMarks(): IMark[];
@@ -1,6 +1,6 @@
1
1
  import type { ISeriesTooltipHelper } from '../interface';
2
2
  import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
- import type { Datum } from '@visactor/vgrammar-core';
3
+ import type { Datum } from '../../typings/common';
4
4
  export declare class SankeySeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
5
5
  protected _getDimensionData: (datum: any) => any;
6
6
  markTooltipValueCallback: (datum: Datum) => string | undefined;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IScatterAnimationParams, ScatterAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const scatterPresetAnimation: (_params: IScatterAnimationParams, preset: ScatterAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const registerScatterAnimation: () => void;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ISunburstAnimationParams } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare const sunburstEnter: (params: ISunburstAnimationParams) => IAnimationTypeConfig;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ISunburstAnimationParams } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare const sunburstExit: (params: ISunburstAnimationParams) => IAnimationTypeConfig;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
2
2
  import type { ISunburstAnimationParams, SunburstAppearPreset } from './interface';
3
3
  export declare const sunburstPresetAnimation: (_params: ISunburstAnimationParams, preset: SunburstAppearPreset) => IAnimationTypeConfig;
@@ -1,3 +1,3 @@
1
- import type { IElement } from '@visactor/vgrammar-core';
1
+ import type { IMarkGraphic } from '../../../mark/interface/common';
2
2
  export declare const computeRatio: (angle: number, range: [number, number]) => number;
3
- export declare const getInnerMostElements: (element: IElement) => IElement[];
3
+ export declare const getInnerMostElements: (graphics: IMarkGraphic[]) => IMarkGraphic[];
@@ -48,7 +48,7 @@ export declare class SunburstSeries extends PolarSeries<any> {
48
48
  protected initTooltip(): void;
49
49
  initAnimation(): void;
50
50
  initEvent(): void;
51
- onLayoutEnd(ctx: any): void;
51
+ onLayoutEnd(): void;
52
52
  private _computeRadius;
53
53
  private _computeLevel;
54
54
  getGroupFields(): string[];
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { TreemapAppearPreset } from './interface';
3
3
  export declare const treemapPresetAnimation: (preset: TreemapAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const registerTreemapAnimation: () => void;
@@ -30,7 +30,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
30
30
  private _enableAnimationHook;
31
31
  setAttrFromSpec(): void;
32
32
  initData(): void;
33
- compile(): void;
34
33
  protected _runTreemapTransform(render?: boolean): void;
35
34
  protected _addDataIndexAndKey(): void;
36
35
  getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
@@ -59,7 +58,7 @@ export declare class TreemapSeries extends CartesianSeries<any> {
59
58
  handleZoom(event: ZoomEventParam): void;
60
59
  getDimensionField(): string[];
61
60
  getMeasureField(): string[];
62
- onLayoutEnd(ctx: any): void;
61
+ onLayoutEnd(): void;
63
62
  protected enableMarkAnimation(): void;
64
63
  protected disableMarkAnimation(): void;
65
64
  getDefaultShapeType(): string;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { VennAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const vennCirclePresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const vennOverlapPresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
5
5
  export declare const registerVennAnimation: () => void;
@@ -24,6 +24,7 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
24
24
  getValueField(): string;
25
25
  setValueField(f: string): string;
26
26
  setAttrFromSpec(): void;
27
+ initData(): void;
27
28
  compile(): void;
28
29
  protected _runVennTransform(render?: boolean): void;
29
30
  initMark(): void;
@@ -35,7 +36,7 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
35
36
  protected initTooltip(): void;
36
37
  getDimensionField(): string[];
37
38
  getMeasureField(): string[];
38
- onLayoutEnd(ctx: any): void;
39
+ onLayoutEnd(): void;
39
40
  getDefaultShapeType(): string;
40
41
  getActiveMarks(): IMark[];
41
42
  getStatisticFields(): {
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IBarAnimationParams } from '../bar/interface';
3
2
  import type { WaterfallAppearPreset } from './interface';
3
+ import type { IAnimationTypeConfig } from '../../animation/interface';
4
4
  export declare function waterfallPresetAnimation(params: IBarAnimationParams, preset: WaterfallAppearPreset): IAnimationTypeConfig;
5
5
  export declare const registerWaterfallAnimation: () => void;
@@ -3,11 +3,11 @@ import type { IWaterfallSeriesSpec } from './interface';
3
3
  import type { SeriesMarkMap } from '../interface';
4
4
  import { SeriesTypeEnum } from '../interface/type';
5
5
  import type { ITransformOptions, DataView } from '@visactor/vdataset';
6
- import { SeriesData } from '../base/series-data';
7
6
  import type { IModelEvaluateOption } from '../../model/interface';
8
7
  import type { Datum } from '../../typings';
9
8
  import type { ILabelMark, IRuleMark, ITextMark } from '../../mark/interface';
10
9
  import type { ILabelInfo } from '../../component/label/interface';
10
+ import { type ICompilableData } from '../../compile/data';
11
11
  export declare const DefaultBandWidth = 6;
12
12
  export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
13
13
  static readonly type: string;
@@ -15,7 +15,7 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
15
15
  static readonly mark: SeriesMarkMap;
16
16
  static readonly transformerConstructor: any;
17
17
  readonly transformerConstructor: any;
18
- protected _totalData?: SeriesData;
18
+ protected _totalData?: ICompilableData;
19
19
  getTotalData(): any;
20
20
  protected _spec: T;
21
21
  protected _leaderLineMark: IRuleMark;
@@ -45,6 +45,5 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
45
45
  totalPositionX(datum: Datum, field: string, pos?: number): number;
46
46
  totalPositionY(datum: Datum, field: string, pos?: number): number;
47
47
  initMarkStyle(): void;
48
- protected isVisibleLeaderLine(datum: Datum): boolean;
49
48
  }
50
49
  export declare const registerWaterfallSeries: () => void;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IWordcloud3dAnimationParams, IWordcloudAnimationParams, WordcloudAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const WordCloud3dAnimation: (params: IWordcloud3dAnimationParams | (() => any)) => IAnimationTypeConfig;
4
4
  export declare const WordCloudScaleInAnimation: (params: IWordcloudAnimationParams) => IAnimationTypeConfig;
5
5
  export declare function wordcloudPresetAnimation(params: IWordcloudAnimationParams, preset: WordcloudAppearPreset | boolean): IAnimationTypeConfig;
@@ -60,7 +60,7 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
60
60
  getGroupFields(): string[];
61
61
  getStackGroupFields(): string[];
62
62
  getStackValueField(): string;
63
- onLayoutEnd(ctx: any): void;
63
+ onLayoutEnd(): void;
64
64
  getActiveMarks(): IMark[];
65
65
  reInit(): void;
66
66
  }
@@ -3,7 +3,7 @@ import type { IAnimationSpec, IMarkAnimateSpec, IStateAnimateSpec } from '../../
3
3
  import type { SeriesMarkNameEnum } from '../interface/type';
4
4
  import type { shapes } from '@visactor/vgrammar-wordcloud';
5
5
  import type { GeometricMaskShape, TextShapeMask } from '@visactor/vgrammar-util';
6
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
6
+ import type { IAnimationTypeConfig } from '../../animation/interface';
7
7
  export interface IWordcloud3dAnimationParams {
8
8
  radius: number;
9
9
  depth_3d: number;
@@ -5,3 +5,16 @@ export type StringOrNumber = string | number;
5
5
  export type MaybeArray<T> = T | Array<T>;
6
6
  export type Maybe<T> = T | undefined | null;
7
7
  export type Quadrant = 1 | 2 | 3 | 4;
8
+ export type ValueOf<T, K extends keyof T = keyof T> = T[K];
9
+ export type DiffResult<Prev, Next> = {
10
+ enter: {
11
+ next: Next;
12
+ }[];
13
+ update: {
14
+ prev: Prev;
15
+ next: Next;
16
+ }[];
17
+ exit: {
18
+ prev: Prev;
19
+ }[];
20
+ };