@visactor/vchart-types 1.6.4 → 1.6.6
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-chart.d.ts +1 -1
- package/types/compile/compiler.d.ts +2 -2
- package/types/component/legend/base-legend.d.ts +1 -1
- package/types/component/legend/continuous/legend.d.ts +1 -1
- package/types/event/events/dimension/base.d.ts +1 -0
- package/types/interaction/config.d.ts +2 -2
|
@@ -82,7 +82,7 @@ export declare class BaseChart extends CompilableBase implements IChart {
|
|
|
82
82
|
onLayoutStart(option: IChartLayoutOption): void;
|
|
83
83
|
onLayoutEnd(option: IChartLayoutOption): void;
|
|
84
84
|
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
85
|
-
getLayoutElements(): (
|
|
85
|
+
getLayoutElements(): (IComponent | IRegion | ISeries)[];
|
|
86
86
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
87
87
|
getAllRegions: () => IRegion[];
|
|
88
88
|
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
@@ -38,7 +38,7 @@ export declare class Compiler {
|
|
|
38
38
|
clear(ctx: {
|
|
39
39
|
chart: IChart;
|
|
40
40
|
vChart: VChart;
|
|
41
|
-
}): void;
|
|
41
|
+
}, removeGraphicItems?: boolean): void;
|
|
42
42
|
renderAsync(morphConfig?: IMorphConfig): Promise<any>;
|
|
43
43
|
renderSync(morphConfig?: IMorphConfig): void;
|
|
44
44
|
updateViewBox(viewBox: IBoundsLike, reRender?: boolean): void;
|
|
@@ -50,7 +50,7 @@ export declare class Compiler {
|
|
|
50
50
|
removeEventListener(source: EventSourceType, type: string, callback: (params: CompilerListenerParameters) => void): void;
|
|
51
51
|
protected releaseEvent(): void;
|
|
52
52
|
release(): void;
|
|
53
|
-
releaseGrammar(): void;
|
|
53
|
+
releaseGrammar(removeGraphicItems?: boolean): void;
|
|
54
54
|
protected _releaseModel(): void;
|
|
55
55
|
addGrammarItem(grammarItem: IGrammarItem): void;
|
|
56
56
|
removeGrammarItem(grammarItem: IGrammarItem, reserveVGrammarModel?: boolean): void;
|
|
@@ -16,7 +16,7 @@ export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends Ba
|
|
|
16
16
|
protected _visible: boolean;
|
|
17
17
|
get visible(): boolean;
|
|
18
18
|
protected _position: 'start' | 'middle' | 'end';
|
|
19
|
-
get position(): "
|
|
19
|
+
get position(): "middle" | "start" | "end";
|
|
20
20
|
get layoutOrient(): IOrientType;
|
|
21
21
|
set layoutOrient(v: IOrientType);
|
|
22
22
|
protected _legendData: CompilableData;
|
|
@@ -12,7 +12,7 @@ export declare class ContinuousLegend<T extends IColorLegendSpec | ISizeLegendSp
|
|
|
12
12
|
protected _theme: IColorLegendTheme;
|
|
13
13
|
private _field;
|
|
14
14
|
private _legendType;
|
|
15
|
-
static createComponent(spec: any, options: IComponentOption): ILegend[]
|
|
15
|
+
static createComponent(spec: any, options: IComponentOption): ContinuousLegend<any> | ILegend[];
|
|
16
16
|
constructor(spec: T, options: IComponentOption);
|
|
17
17
|
setAttrFromSpec(): void;
|
|
18
18
|
init(option: IModelInitOption): void;
|
|
@@ -10,6 +10,7 @@ export declare class DimensionEvent implements IComposedEvent {
|
|
|
10
10
|
protected _callback: (params: BaseEventParams) => void;
|
|
11
11
|
protected _chart: Maybe<IChart>;
|
|
12
12
|
constructor(eventDispatcher: IEventDispatcher, mode: RenderMode);
|
|
13
|
+
private get chart();
|
|
13
14
|
register<Evt extends string>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
|
|
14
15
|
unregister(): void;
|
|
15
16
|
protected getTargetDimensionInfo(x: number, y: number): IDimensionInfo[] | null;
|
|
@@ -3,7 +3,7 @@ export declare function getDefaultInteractionConfigByMode(mode: RenderMode): {
|
|
|
3
3
|
hover: {
|
|
4
4
|
enable: boolean;
|
|
5
5
|
trigger: string;
|
|
6
|
-
triggerOff: string
|
|
6
|
+
triggerOff: string;
|
|
7
7
|
};
|
|
8
8
|
select: {
|
|
9
9
|
enable: boolean;
|
|
@@ -13,7 +13,7 @@ export declare function getDefaultInteractionConfigByMode(mode: RenderMode): {
|
|
|
13
13
|
hover: {
|
|
14
14
|
enable: boolean;
|
|
15
15
|
trigger: string[];
|
|
16
|
-
triggerOff: string
|
|
16
|
+
triggerOff: string;
|
|
17
17
|
};
|
|
18
18
|
select: {
|
|
19
19
|
enable: boolean;
|