@visactor/vchart-types 2.0.1-alpha.1 → 2.0.1-alpha.3

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.
@@ -179,6 +179,7 @@ export declare class VChart implements IVChart {
179
179
  getScale(scaleId: string): import("@visactor/vscale").IBaseScale;
180
180
  setDimensionIndex(value: StringOrNumber, opt?: DimensionIndexOption): void;
181
181
  stopAnimation(): void;
182
+ reRunNormalAnimation(): void;
182
183
  pauseAnimation(): void;
183
184
  resumeAnimation(): void;
184
185
  convertDatumToPosition(datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean, checkInViewData?: boolean): IPoint | null;
@@ -180,8 +180,6 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
180
180
  protected _runProgressiveApplyGraphic(graphics: IMarkGraphic[]): void;
181
181
  protected _runProgressiveStep(): void;
182
182
  renderProgressive(): void;
183
- protected _aniamtionStateCallback: (g: IMarkGraphic) => AnimationStateValues;
184
- updateAnimationState(callback: (graphic: IMarkGraphic) => AnimationStateValues): void;
185
183
  hasAnimationByState(state: AnimationStateValues): boolean;
186
184
  hasAnimation(): boolean;
187
185
  runAnimation(): void;
@@ -1,7 +1,7 @@
1
1
  import type { Maybe } from '../typings';
2
2
  import type { IGroupMarkSpec } from '../typings/visual';
3
3
  import { BaseMark } from './base/base-mark';
4
- import { type AnimationStateValues, type IGroupMark, type IMark, type IMarkGraphic, type MarkType } from './interface';
4
+ import { DiffState, type IGroupMark, type IMark, type IMarkGraphic, type MarkType } from './interface';
5
5
  import { MarkTypeEnum } from './interface/type';
6
6
  import { type IMarkCompileOption } from '../compile/mark';
7
7
  import type { IGroup, IGroupGraphicAttribute } from '@visactor/vrender-core';
@@ -10,6 +10,7 @@ export declare class GroupMark extends BaseMark<IGroupMarkSpec> implements IGrou
10
10
  readonly type = MarkTypeEnum.group;
11
11
  protected _marks: IMark[];
12
12
  getMarks(): IMark[];
13
+ protected _diffState: DiffState;
13
14
  protected _product: Maybe<IGroup>;
14
15
  getProduct: () => Maybe<IGroup>;
15
16
  protected isMarkExist(mark: IMark): boolean;
@@ -23,8 +24,8 @@ export declare class GroupMark extends BaseMark<IGroupMarkSpec> implements IGrou
23
24
  protected _getAttrsFromConfig(attrs?: IGroupGraphicAttribute): IGroupGraphicAttribute;
24
25
  getGraphics(): IMarkGraphic[];
25
26
  renderInner(): void;
27
+ clearExitGraphics(): void;
26
28
  render(): void;
27
- updateAnimationState(callback: (g: IMarkGraphic) => AnimationStateValues): void;
28
29
  release(): void;
29
30
  }
30
31
  export declare const registerGroupMark: () => void;
@@ -92,7 +92,6 @@ export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
92
92
  restartProgressive: () => void;
93
93
  renderProgressive: () => void;
94
94
  canAnimateAfterProgressive: () => boolean;
95
- updateAnimationState: (callback: (graphic: IMarkGraphic) => AnimationStateValues) => void;
96
95
  runAnimation: () => void;
97
96
  needClear?: boolean;
98
97
  }
@@ -1,7 +1,7 @@
1
1
  import type { IEvent } from '../event/interface';
2
2
  import type { IEffect, IModel, IModelInitOption, IModelOption, IModelEvaluateOption, IModelSpec, IModelMarkInfo, IModelSpecInfo } from './interface';
3
3
  import type { CoordinateType } from '../typings/coordinate';
4
- import type { ICompileMarkConfig, IMark, IMarkOption, IMarkRaw, IMarkStyle } from '../mark/interface';
4
+ import type { AnimationStateValues, ICompileMarkConfig, IMark, IMarkGraphic, IMarkOption, IMarkRaw, IMarkStyle } from '../mark/interface';
5
5
  import type { Datum, StateValueType, ConvertToMarkStyleSpec, ICommonSpec, StringOrNumber, IRect, ILayoutRect } from '../typings';
6
6
  import { MarkSet } from '../mark/mark-set';
7
7
  import type { ILayoutItem } from '../layout/interface';
@@ -78,4 +78,7 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
78
78
  getColorScheme(): any;
79
79
  getSpecInfo(): IModelSpecInfo<any>;
80
80
  getSpecIndex(): number;
81
+ private _aniamtionStateCallback;
82
+ updateAnimateStateCallback(callback: (graphic: IMarkGraphic) => AnimationStateValues): void;
83
+ getAnimationStateCallback(): (graphic: IMarkGraphic) => AnimationStateValues;
81
84
  }
@@ -1,7 +1,7 @@
1
1
  import type { IBoundsLike } from '@visactor/vutils';
2
2
  import type { DataSet, DataView } from '@visactor/vdataset';
3
3
  import type { IEvent, IEventDispatcher } from '../event/interface';
4
- import type { IMark, IMarkRaw, IMarkStyle, MarkTypeEnum } from '../mark/interface';
4
+ import type { AnimationStateValues, IMark, IMarkGraphic, IMarkRaw, IMarkStyle, MarkTypeEnum } from '../mark/interface';
5
5
  import type { RenderMode } from '../typings/spec/common';
6
6
  import type { StringOrNumber } from '../typings/common';
7
7
  import type { IGroupMarkSpec, ConvertToMarkStyleSpec, ICommonSpec } from '../typings/visual';
@@ -87,6 +87,8 @@ export interface IModel extends ICompilable {
87
87
  setMarkStyle: <T extends ICommonSpec>(mark?: IMarkRaw<T>, style?: Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>, state?: StateValueType, level?: number) => void;
88
88
  initMarkStyleWithSpec: (mark?: IMark, spec?: any) => void;
89
89
  getSpecInfo: () => IModelSpecInfo;
90
+ updateAnimateStateCallback: (callback: (graphic: IMarkGraphic) => AnimationStateValues) => void;
91
+ getAnimationStateCallback: () => (graphic: IMarkGraphic) => AnimationStateValues;
90
92
  }
91
93
  export interface ILayoutModel extends IModel {
92
94
  getLayoutStartPoint: () => IPoint;