@visactor/vchart-types 2.0.0-alpha.1 → 2.0.0-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.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/utils.d.ts +2 -2
- package/types/component/player/player.d.ts +1 -1
- package/types/mark/base/base-mark.d.ts +1 -1
- package/types/mark/component.d.ts +0 -1
- package/types/mark/interface/common.d.ts +1 -0
- package/types/mark/interface/mark.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -0
- package/types/series/bar/bar.d.ts +1 -0
- package/types/series/mosaic/interface.d.ts +1 -0
- package/types/series/mosaic/mosaic.d.ts +2 -0
- package/types/typings/tooltip/handler.d.ts +1 -0
|
@@ -9,9 +9,9 @@ export declare function animationConfig<Preset extends string>(defaultConfig?: M
|
|
|
9
9
|
dataIndex: (datum: any, params: any) => number;
|
|
10
10
|
dataCount: () => number;
|
|
11
11
|
}): MarkAnimationSpec;
|
|
12
|
-
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "
|
|
12
|
+
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "disappear" | "enter" | "exit", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
13
13
|
export declare function shouldMarkDoMorph(spec: ISeriesSpec & IAnimationSpec<string, string>, markName: string): boolean;
|
|
14
14
|
export declare function isTimeLineAnimation(animationConfig: IAnimationConfig): boolean;
|
|
15
15
|
export declare function isChannelAnimation(animationConfig: IAnimationConfig): boolean;
|
|
16
|
-
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "
|
|
16
|
+
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "disappear" | "enter" | "exit", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
17
17
|
export declare function isAnimationEnabledForSeries(series: ISeries): boolean;
|
|
@@ -9,7 +9,7 @@ import { BaseComponent } from '../base/base-component';
|
|
|
9
9
|
export declare class Player extends BaseComponent<IPlayer> implements IComponent {
|
|
10
10
|
layoutZIndex: number;
|
|
11
11
|
layoutLevel: number;
|
|
12
|
-
static readonly
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
13
|
player: import("./interface").IPlayerTheme;
|
|
14
14
|
};
|
|
15
15
|
static specKey: string;
|
|
@@ -157,7 +157,7 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
157
157
|
protected _updateAttrsOfGroup(): void;
|
|
158
158
|
protected _runBeforeTransform(data: Datum[]): Datum[];
|
|
159
159
|
protected _runEncoderTransform(data: Datum[], isProgressive: boolean): Datum[];
|
|
160
|
-
|
|
160
|
+
renderInner(): void;
|
|
161
161
|
render(): void;
|
|
162
162
|
updateMarkState(key: string): void;
|
|
163
163
|
clearExitGraphics(): void;
|
|
@@ -17,7 +17,6 @@ export declare class ComponentMark extends BaseMark<ICommonSpec> implements ICom
|
|
|
17
17
|
protected _attributesTransform: (attrs: any) => any;
|
|
18
18
|
setAttributeTransform(t: (attrs: any) => any): void;
|
|
19
19
|
renderInner(): void;
|
|
20
|
-
render(): void;
|
|
21
20
|
release(): void;
|
|
22
21
|
}
|
|
23
22
|
export declare const registerComponentMark: () => void;
|
|
@@ -81,6 +81,7 @@ export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
|
|
|
81
81
|
setPostProcess: <U extends keyof T, A>(key: U, postProcessFunc: IAttrConfig<A, T>['postProcess'], state?: StateValueType) => void;
|
|
82
82
|
updateMarkState: (key: string) => void;
|
|
83
83
|
render: () => void;
|
|
84
|
+
renderInner: () => void;
|
|
84
85
|
getGraphics: () => IMarkGraphic[];
|
|
85
86
|
reuse: (mark: IMark) => void;
|
|
86
87
|
prepareMorph: (mark: IMark) => void;
|
|
@@ -4,7 +4,6 @@ import type { IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICellMarkSpec, ICom
|
|
|
4
4
|
import type { IMark, IMarkRaw } from './common';
|
|
5
5
|
import type { MarkType } from './type';
|
|
6
6
|
export interface IComponentMark extends IMarkRaw<ICommonSpec> {
|
|
7
|
-
renderInner: () => void;
|
|
8
7
|
getComponent: () => IGraphic;
|
|
9
8
|
clearComponent: () => void;
|
|
10
9
|
setAttributeTransform: (t: (attrs: any) => any) => any;
|
|
@@ -24,6 +24,7 @@ export declare class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
24
24
|
protected _cacheCustomTooltipPosition: ILayoutPoint;
|
|
25
25
|
getVisibility(): boolean;
|
|
26
26
|
setVisibility(_value: boolean): void;
|
|
27
|
+
getRootDom(): HTMLElement;
|
|
27
28
|
constructor();
|
|
28
29
|
onAdd(service: IComponentPluginService<any>): void;
|
|
29
30
|
initEl(): void;
|
|
@@ -62,6 +62,7 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
|
|
|
62
62
|
protected _setBarBackgroundPositionYEncoder: (encoder: (datum: Datum) => number) => void;
|
|
63
63
|
dataToBarBackgroundPositionY(datum: Datum, scaleDepth?: number): number;
|
|
64
64
|
onLayoutEnd(): void;
|
|
65
|
+
onDataUpdate(): void;
|
|
65
66
|
compile(): void;
|
|
66
67
|
getDefaultShapeType(): string;
|
|
67
68
|
getActiveMarks(): IMark[];
|
|
@@ -12,5 +12,6 @@ export interface IMosaicSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'label'
|
|
|
12
12
|
};
|
|
13
13
|
position?: Functional<'outside' | 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'inside-top' | 'inside-bottom' | 'inside-right' | 'inside-left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
|
|
14
14
|
}>;
|
|
15
|
+
bandWidthField?: string;
|
|
15
16
|
}
|
|
16
17
|
export type IMosaicSeriesTheme = IBarSeriesTheme;
|
|
@@ -9,6 +9,8 @@ export declare class MosaicSeries<T extends IMosaicSeriesSpec = IMosaicSeriesSpe
|
|
|
9
9
|
static readonly builtInTheme: Record<string, IBarSeriesTheme>;
|
|
10
10
|
static readonly transformerConstructor: any;
|
|
11
11
|
readonly transformerConstructor: any;
|
|
12
|
+
private _bandWidthField?;
|
|
13
|
+
get bandWidthField(): string;
|
|
12
14
|
getStack(): boolean;
|
|
13
15
|
getPercent(): boolean;
|
|
14
16
|
getGroupFields(): string[];
|
|
@@ -3,6 +3,7 @@ import type { IDimensionData, IDimensionInfo } from '../../event/events/dimensio
|
|
|
3
3
|
export interface ITooltipHandler extends ITooltipHandlerSpec {
|
|
4
4
|
getTooltipContainer?: () => any;
|
|
5
5
|
reInit?: () => any;
|
|
6
|
+
getRootDom?: () => any;
|
|
6
7
|
}
|
|
7
8
|
export type TooltipData = IDimensionInfo[] | IDimensionData[];
|
|
8
9
|
export type TooltipActiveType = 'mark' | 'dimension' | 'group';
|