@visactor/vchart-types 1.13.12 → 1.13.13-alpha.1
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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart.d.ts +1 -0
- package/types/chart/interface/chart.d.ts +1 -0
- package/types/component/brush/interface.d.ts +1 -0
- package/types/component/crosshair/base.d.ts +1 -1
- package/types/core/index.d.ts +1 -0
- package/types/model/base-model.d.ts +1 -0
- package/types/model/interface.d.ts +1 -0
- package/types/series/dot/dot.d.ts +1 -1
- package/types/series/link/link.d.ts +1 -1
- package/types/series/sankey/sankey.d.ts +1 -0
|
@@ -77,6 +77,7 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
77
77
|
onLayoutStart(option: IChartLayoutOption): void;
|
|
78
78
|
onLayoutEnd(option: IChartLayoutOption): void;
|
|
79
79
|
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
80
|
+
onBeforeRender(view: IView): void;
|
|
80
81
|
getLayoutElements(): ILayoutItem[];
|
|
81
82
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
82
83
|
getAllRegions: () => IRegion[];
|
|
@@ -54,6 +54,7 @@ export interface IChart extends ICompilable {
|
|
|
54
54
|
onRender: (ctx: IChartRenderOption) => void;
|
|
55
55
|
onResize: (width: number, height: number, reRender: boolean) => void;
|
|
56
56
|
onLayout: (view: IView) => void;
|
|
57
|
+
onBeforeRender: (view: IView) => void;
|
|
57
58
|
reInit: () => void;
|
|
58
59
|
getAllSeries: () => ISeries[];
|
|
59
60
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
@@ -33,6 +33,7 @@ export interface IBrushTheme {
|
|
|
33
33
|
export interface IBrushSpec extends IBrushTheme, IBrushDataBindSpec {
|
|
34
34
|
id?: string;
|
|
35
35
|
visible?: boolean;
|
|
36
|
+
updateElementsState?: boolean;
|
|
36
37
|
}
|
|
37
38
|
export type IBrushType = 'x' | 'y' | 'rect' | 'polygon';
|
|
38
39
|
export type IBrushMode = 'single' | 'multiple';
|
|
@@ -53,7 +53,7 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
|
|
|
53
53
|
protected _initEvent(): void;
|
|
54
54
|
private _registerEvent;
|
|
55
55
|
private _eventOff;
|
|
56
|
-
|
|
56
|
+
onBeforeRender(): void;
|
|
57
57
|
protected calculateTriggerPoint(params: any): {
|
|
58
58
|
x: number;
|
|
59
59
|
y: number;
|
package/types/core/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { IRegion } from '../region/interface';
|
|
|
8
8
|
export * from '../typings/spec/common';
|
|
9
9
|
export * from '../event/interface';
|
|
10
10
|
export * from '../theme/interface';
|
|
11
|
+
export * from '../compile/mark/interface';
|
|
11
12
|
export * from './interface';
|
|
12
13
|
export * from '../constant/base';
|
|
13
14
|
export * from '../constant/data';
|
|
@@ -46,6 +46,7 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
|
|
|
46
46
|
onLayoutEnd(ctx: any): void;
|
|
47
47
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
48
48
|
abstract onRender(ctx: IModelRenderOption): void;
|
|
49
|
+
onBeforeRender(): void;
|
|
49
50
|
onDataUpdate(): void;
|
|
50
51
|
beforeRelease(): void;
|
|
51
52
|
clear(): void;
|
|
@@ -80,6 +80,7 @@ export interface IModel extends ICompilable {
|
|
|
80
80
|
onEvaluateEnd: (ctx: IModelEvaluateOption) => void;
|
|
81
81
|
onRender: (ctx: IModelRenderOption) => void;
|
|
82
82
|
onDataUpdate: () => void;
|
|
83
|
+
onBeforeRender: () => void;
|
|
83
84
|
updateSpec: (spec: any, totalSpec?: any) => IUpdateSpecResult;
|
|
84
85
|
getSpec?: () => any;
|
|
85
86
|
getSpecIndex: () => number;
|
|
@@ -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("
|
|
66
|
+
getDotData(): import("../..").IMarkData;
|
|
67
67
|
protected _getDataIdKey(): any;
|
|
68
68
|
getStackValueField(): string;
|
|
69
69
|
getActiveMarks(): IMark[];
|
|
@@ -47,7 +47,7 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
47
47
|
initInteraction(): void;
|
|
48
48
|
protected initTooltip(): void;
|
|
49
49
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
50
|
-
getDotInfoData(): import("
|
|
50
|
+
getDotInfoData(): import("../..").IMarkData;
|
|
51
51
|
getActiveMarks(): IMark[];
|
|
52
52
|
}
|
|
53
53
|
export declare const registerLinkSeries: () => void;
|
|
@@ -50,6 +50,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
50
50
|
private _createText;
|
|
51
51
|
initAnimation(): void;
|
|
52
52
|
protected initEvent(): void;
|
|
53
|
+
protected _initEmphasisEvent(): void;
|
|
53
54
|
private nodesSeriesDataUpdate;
|
|
54
55
|
private linksSeriesDataUpdate;
|
|
55
56
|
protected _handleEmphasisElement: (params: ExtendEventParam) => void;
|