@visactor/vchart-types 1.8.1 → 1.8.2
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/interface/common.d.ts +2 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
- package/types/component/legend/interface.d.ts +1 -0
- package/types/component/title/title.d.ts +1 -1
- package/types/core/vchart.d.ts +1 -1
- package/types/interaction/interaction.d.ts +2 -0
- package/types/interaction/interface.d.ts +1 -0
- package/types/interaction/zoom/zoomable.d.ts +1 -0
- package/types/model/interface.d.ts +1 -0
- package/types/region/region.d.ts +2 -0
- package/types/series/interface/series.d.ts +2 -0
- package/types/typings/spec/common.d.ts +1 -0
|
@@ -20,10 +20,12 @@ export interface IChartOption extends Omit<IModelOption, 'getChartViewRect' | 'g
|
|
|
20
20
|
modeParams?: IRenderOption['modeParams'];
|
|
21
21
|
viewBox?: IBoundsLike;
|
|
22
22
|
layout?: LayoutCallBack;
|
|
23
|
+
disableTriggerEvent?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface IChartSpecTransformerOption {
|
|
25
26
|
type: string;
|
|
26
27
|
seriesType?: string;
|
|
28
|
+
animation?: boolean;
|
|
27
29
|
getTheme: () => ITheme;
|
|
28
30
|
}
|
|
29
31
|
export interface IChartSpecInfo {
|
|
@@ -35,5 +35,6 @@ export type ILegendCommonSpec = {
|
|
|
35
35
|
padding?: IPadding | number | number[];
|
|
36
36
|
style?: Omit<NoVisibleMarkStyle<IRectMarkSpec>, 'visible' | 'width' | 'height'>;
|
|
37
37
|
};
|
|
38
|
+
interactive?: boolean;
|
|
38
39
|
} & Omit<IComponentSpec, 'orient'>;
|
|
39
40
|
export type ILegendSpec = IDiscreteLegendSpec | IColorLegendSpec | ISizeLegendSpec;
|
|
@@ -10,7 +10,7 @@ import type { Maybe } from '@visactor/vutils';
|
|
|
10
10
|
export declare class Title<T extends ITitleSpec = ITitleSpec> extends BaseComponent<T> implements ITitle {
|
|
11
11
|
static type: ComponentTypeEnum;
|
|
12
12
|
type: ComponentTypeEnum;
|
|
13
|
-
static specKey:
|
|
13
|
+
static specKey: ComponentTypeEnum;
|
|
14
14
|
specKey: string;
|
|
15
15
|
layoutType: ILayoutType;
|
|
16
16
|
layoutZIndex: number;
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export declare class VChart implements IVChart {
|
|
|
92
92
|
private _initDataSet;
|
|
93
93
|
updateCustomConfigAndRerender(updateSpecResult: IUpdateSpecResult | (() => IUpdateSpecResult), sync?: boolean, option?: IVChartRenderOption): IVChart | Promise<IVChart>;
|
|
94
94
|
protected _updateCustomConfigAndRecompile(updateSpecResult: IUpdateSpecResult, option?: IVChartRenderOption): boolean;
|
|
95
|
-
protected _reCompile(updateResult: IUpdateSpecResult): void;
|
|
95
|
+
protected _reCompile(updateResult: IUpdateSpecResult, morphConfig?: IMorphConfig): void;
|
|
96
96
|
protected _beforeRender(option?: IVChartRenderOption): boolean;
|
|
97
97
|
protected _afterRender(): boolean;
|
|
98
98
|
renderSync(morphConfig?: IMorphConfig): IVChart;
|
|
@@ -7,6 +7,8 @@ export declare class Interaction implements IInteraction {
|
|
|
7
7
|
private _stateMarks;
|
|
8
8
|
private _stateElements;
|
|
9
9
|
static markStateEnable(mark: IMark, state: string): boolean;
|
|
10
|
+
private _disableTriggerEvent;
|
|
11
|
+
setDisableActiveEffect(disable: boolean): void;
|
|
10
12
|
registerMark(state: StateValue, mark: IMark): void;
|
|
11
13
|
getStateMark(state: StateValue): IMark[] | null;
|
|
12
14
|
filterEventMark(params: BaseEventParams, state: StateValue): boolean;
|
|
@@ -15,6 +15,7 @@ export interface IInteraction {
|
|
|
15
15
|
exchangeEventElement: (stateValue: StateValue, elements: IElement) => void;
|
|
16
16
|
clearEventElement: (stateValue: StateValue, clearReverse: boolean) => void;
|
|
17
17
|
reverseEventElement: (stateValue: StateValue) => void;
|
|
18
|
+
setDisableActiveEffect: (disable: boolean) => void;
|
|
18
19
|
}
|
|
19
20
|
export interface ITrigger {
|
|
20
21
|
init: () => void;
|
|
@@ -113,6 +113,7 @@ export interface IModelOption extends ICompilableInitOption {
|
|
|
113
113
|
globalScale: IGlobalScale;
|
|
114
114
|
animation: boolean;
|
|
115
115
|
onError: (...args: any[]) => void;
|
|
116
|
+
disableTriggerEvent?: boolean;
|
|
116
117
|
}
|
|
117
118
|
export interface IModelSpecInfo<T extends Record<string, unknown> = any> {
|
|
118
119
|
type: string | ComponentTypeEnum | SeriesTypeEnum;
|
package/types/region/region.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutM
|
|
|
15
15
|
static readonly transformerConstructor: typeof RegionSpecTransformer;
|
|
16
16
|
readonly transformerConstructor: any;
|
|
17
17
|
readonly modelType: string;
|
|
18
|
+
static specKey: string;
|
|
19
|
+
specKey: string;
|
|
18
20
|
type: string;
|
|
19
21
|
protected _series: ISeries[];
|
|
20
22
|
layoutType: ILayoutType;
|
|
@@ -127,6 +127,8 @@ export interface ICartesianSeries extends ISeries {
|
|
|
127
127
|
dataToPositionX1: (datum: Datum) => number | null;
|
|
128
128
|
dataToPositionY1: (datum: Datum) => number | null;
|
|
129
129
|
valueToPosition: (value1: any, value2: any) => IPoint;
|
|
130
|
+
valueToPositionX: (value: StringOrNumber | StringOrNumber[], datum?: any) => any;
|
|
131
|
+
valueToPositionY: (value: StringOrNumber | StringOrNumber[], datum?: any) => any;
|
|
130
132
|
}
|
|
131
133
|
export interface IPolarSeries extends ISeries {
|
|
132
134
|
readonly coordinate: 'polar';
|
|
@@ -38,6 +38,7 @@ export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
|
38
38
|
poptip?: boolean;
|
|
39
39
|
onError?: (...args: any[]) => void;
|
|
40
40
|
theme?: string | ITheme;
|
|
41
|
+
disableTriggerEvent?: boolean;
|
|
41
42
|
}
|
|
42
43
|
export declare enum RenderModeEnum {
|
|
43
44
|
'desktop-browser' = "desktop-browser",
|