@visactor/vchart-types 1.13.11 → 1.13.13-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.
- package/package.json +1 -1
- 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/brush.d.ts +1 -1
- package/types/component/crosshair/base.d.ts +1 -0
- package/types/component/crosshair/interface/common.d.ts +3 -1
- package/types/component/crosshair/interface/spec.d.ts +1 -0
- package/types/model/base-model.d.ts +1 -0
- package/types/model/interface.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[];
|
|
@@ -38,7 +38,6 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
38
38
|
[elementKey: string]: IElement;
|
|
39
39
|
};
|
|
40
40
|
private _cacheInteractiveRangeAttrs;
|
|
41
|
-
private _needDisablePickable;
|
|
42
41
|
private _releatedAxes;
|
|
43
42
|
private _regionAxisMap;
|
|
44
43
|
private _axisDataZoomMap;
|
|
@@ -80,6 +79,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
80
79
|
private _reconfigLinkedItem;
|
|
81
80
|
private _isBrushContainItem;
|
|
82
81
|
protected _initMarkBrushState(componentIndex: number, stateName: string): void;
|
|
82
|
+
private _setRegionMarkPickable;
|
|
83
83
|
private _stateClamp;
|
|
84
84
|
private _setAxisAndDataZoom;
|
|
85
85
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
@@ -54,6 +54,7 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
|
|
|
54
54
|
private _registerEvent;
|
|
55
55
|
private _eventOff;
|
|
56
56
|
updateLayoutAttribute(): void;
|
|
57
|
+
onBeforeRender(): void;
|
|
57
58
|
protected calculateTriggerPoint(params: any): {
|
|
58
59
|
x: number;
|
|
59
60
|
y: number;
|
|
@@ -2,7 +2,7 @@ import type { Dict } from '@visactor/vutils';
|
|
|
2
2
|
import type { IPadding, StringOrNumber } from '../../../typings';
|
|
3
3
|
import type { IAxis } from '../../axis/interface';
|
|
4
4
|
import type { LineCrosshair, RectCrosshair, Tag } from '@visactor/vrender-components';
|
|
5
|
-
import type { IGroup, IRichTextGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
5
|
+
import type { IGroup, IRichTextGraphicAttribute, IText, ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
6
6
|
export type AxisCurrentValueMap = Map<number, {
|
|
7
7
|
datum: StringOrNumber;
|
|
8
8
|
axis: IAxis;
|
|
@@ -31,6 +31,7 @@ export interface IHair {
|
|
|
31
31
|
padding?: IPadding | number | number[];
|
|
32
32
|
panel?: Dict<any>;
|
|
33
33
|
zIndex?: number;
|
|
34
|
+
syncAxisLabelAngle?: boolean;
|
|
34
35
|
};
|
|
35
36
|
smooth?: boolean;
|
|
36
37
|
}
|
|
@@ -56,6 +57,7 @@ export interface ICrosshairInfo {
|
|
|
56
57
|
visible: boolean;
|
|
57
58
|
_isCache?: boolean;
|
|
58
59
|
axis: IAxis;
|
|
60
|
+
axisLabel?: IText;
|
|
59
61
|
sides?: number;
|
|
60
62
|
}
|
|
61
63
|
export interface CrossHairStateItem {
|
|
@@ -65,6 +65,7 @@ export interface ICrosshairLabelSpec {
|
|
|
65
65
|
formatter?: string | string[];
|
|
66
66
|
style?: Partial<ITextMarkSpec>;
|
|
67
67
|
labelBackground?: ICrosshairLabelBackgroundSpec;
|
|
68
|
+
syncAxisLabelAngle?: boolean;
|
|
68
69
|
}
|
|
69
70
|
export interface ICrosshairLabelBackgroundSpec {
|
|
70
71
|
visible?: boolean;
|
|
@@ -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;
|