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

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.
@@ -34,6 +34,7 @@ export declare class Compiler implements ICompiler {
34
34
  private _layoutState?;
35
35
  private _compileChart;
36
36
  constructor(container: IRenderContainer, option: IRenderOption);
37
+ getChart(): IChart;
37
38
  getCanvas(): HTMLCanvasElement | undefined;
38
39
  _gestureController?: Gesture;
39
40
  getStage(): IStage | undefined;
@@ -54,6 +54,7 @@ export interface ICompiler {
54
54
  updateLayoutTag: () => void;
55
55
  getLayoutState: () => LayoutState;
56
56
  getRootGroup: () => IGroup;
57
+ getChart: () => IChart;
57
58
  }
58
59
  export interface ICompilable {
59
60
  getCompiler: () => ICompiler;
@@ -43,5 +43,13 @@ export declare class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICarte
43
43
  maxBandSize: number;
44
44
  minBandSize: number;
45
45
  };
46
+ _compareSpec(spec: T, prevSpec: T): {
47
+ change: boolean;
48
+ reMake: boolean;
49
+ reRender: boolean;
50
+ reSize: boolean;
51
+ reCompile: boolean;
52
+ };
53
+ reInit(spec?: T): void;
46
54
  }
47
55
  export declare const registerCartesianBandAxis: () => void;
@@ -33,10 +33,12 @@ export interface BandAxisMixin {
33
33
  _forceLayout: () => void;
34
34
  _getNormalizedValue: (values: any[], length: number) => number;
35
35
  _onTickDataChange: (compilableData: CompilableData) => void;
36
+ registerTicksTransform: () => string;
36
37
  }
37
38
  export declare class BandAxisMixin {
38
39
  private _tickDataMap;
39
40
  protected _initData(): void;
41
+ protected _updateData(): void;
40
42
  protected _rawDomainIndex: {
41
43
  [key: string | number | symbol]: number;
42
44
  }[];
@@ -44,6 +44,9 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
44
44
  protected _animationConfig: Partial<MarkAnimationSpec>;
45
45
  getAnimationConfig(): Partial<MarkAnimationSpec>;
46
46
  setAnimationConfig(config: Partial<MarkAnimationSpec>): void;
47
+ protected _disabledAnimationStates?: string[];
48
+ disableAnimationByState(state: string | string[]): void;
49
+ enableAnimationByState(state: string | string[]): void;
47
50
  private _skipBeforeLayouted;
48
51
  setSkipBeforeLayouted(skip: boolean): void;
49
52
  protected _groupKey?: string;
@@ -123,6 +126,7 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
123
126
  protected _attrsByGroup?: Record<string, T>;
124
127
  protected _getDataByKey(data: Datum[]): GroupedData<Datum>;
125
128
  protected _getCommonContext(): {
129
+ compiler: import("../../compile/interface").ICompiler;
126
130
  markType: MarkTypeEnum;
127
131
  markId: number;
128
132
  modelId: number;
@@ -8,6 +8,7 @@ import type { Datum, StringOrNumber } from '../../typings';
8
8
  import type { IGraphic } from '@visactor/vrender-core';
9
9
  import type { IGroupMark } from './mark';
10
10
  import type { IAnimationConfig } from '../../animation/interface';
11
+ import type { ICompiler } from '../../compile/interface';
11
12
  export interface VisualScaleType {
12
13
  scale: IBaseScale;
13
14
  field: StringOrNumber;
@@ -37,6 +38,7 @@ export type IMarkStyle<T extends ICommonSpec> = {
37
38
  export type DiffStateValues = 'update' | 'enter' | 'exit';
38
39
  export type AnimationStateValues = 'appear' | 'enter' | 'update' | 'exit' | 'disappear' | 'none' | 'state';
39
40
  export interface IGraphicContext {
41
+ compiler: ICompiler;
40
42
  markType: MarkTypeEnum;
41
43
  markId: number;
42
44
  modelId: number;
@@ -94,6 +96,8 @@ export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
94
96
  canAnimateAfterProgressive: () => boolean;
95
97
  runAnimation: () => void;
96
98
  needClear?: boolean;
99
+ disableAnimationByState: (state: string | string[]) => void;
100
+ enableAnimationByState: (state: string | string[]) => void;
97
101
  }
98
102
  export type IMark = IMarkRaw<ICommonSpec>;
99
103
  export interface ICompileMarkConfig extends IMarkConfig {