@visactor/vchart-types 2.0.4-alpha.7 → 2.0.4-alpha.8
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/component/data-zoom/data-filter-base-component.d.ts +0 -2
- package/types/component/data-zoom/interface.d.ts +0 -1
- package/types/constant/event.d.ts +1 -2
- package/types/core/factory.d.ts +0 -4
- package/types/core/interface.d.ts +0 -2
- package/types/core/vchart.d.ts +1 -3
- package/types/event/event-dispatcher.d.ts +1 -0
- package/types/model/interface.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -1
- package/types/typings/spec/common.d.ts +0 -1
- package/types/plugin/vchart/index.d.ts +0 -2
- package/types/plugin/vchart/interface.d.ts +0 -16
- package/types/plugin/vchart/plugin-service.d.ts +0 -9
- package/types/plugin/vchart/register.d.ts +0 -2
- package/types/plugin/vchart/rotate/index.d.ts +0 -1
- package/types/plugin/vchart/rotate/rotate.d.ts +0 -18
|
@@ -15,7 +15,6 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
15
15
|
protected _component: AbstractComponent;
|
|
16
16
|
protected _orient: IOrientType;
|
|
17
17
|
protected _isHorizontal: boolean;
|
|
18
|
-
protected _throttledHide: () => void;
|
|
19
18
|
protected _auto?: boolean;
|
|
20
19
|
protected _fixedBandSize?: number;
|
|
21
20
|
protected _cacheRect?: ILayoutRect;
|
|
@@ -124,5 +123,4 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
124
123
|
};
|
|
125
124
|
protected _autoUpdate(rect?: ILayoutRect): boolean;
|
|
126
125
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
127
|
-
clear(): void;
|
|
128
126
|
}
|
|
@@ -37,7 +37,6 @@ export interface IDataFilterComponentSpec extends Omit<IComponentSpec, 'width' |
|
|
|
37
37
|
export interface IRoamDragSpec extends IRoamSpec {
|
|
38
38
|
reverse?: boolean;
|
|
39
39
|
filter?: (delta: [number, number], e?: BaseEventParams['event']) => boolean;
|
|
40
|
-
autoVisible?: boolean;
|
|
41
40
|
}
|
|
42
41
|
export interface IRoamScrollSpec extends IRoamSpec {
|
|
43
42
|
reverse?: boolean;
|
|
@@ -95,8 +95,7 @@ export declare enum ChartEvent {
|
|
|
95
95
|
afterResize = "afterResize",
|
|
96
96
|
afterRender = "afterRender",
|
|
97
97
|
afterLayout = "afterLayout",
|
|
98
|
-
afterMarkLayoutEnd = "afterMarkLayoutEnd"
|
|
99
|
-
afterWordcloudShapeDraw = "afterWordcloudShapeDraw"
|
|
98
|
+
afterMarkLayoutEnd = "afterMarkLayoutEnd"
|
|
100
99
|
}
|
|
101
100
|
export declare enum Event_Source_Type {
|
|
102
101
|
chart = "chart",
|
package/types/core/factory.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import type { IBaseTriggerOptions, ITriggerConstructor } from '../interaction/in
|
|
|
15
15
|
import type { IComposedEventConstructor } from '../index-harmony-simple';
|
|
16
16
|
import type { ITooltipProcessorConstructor } from '../component/tooltip/processor/interface';
|
|
17
17
|
import type { ITooltip } from '../component';
|
|
18
|
-
import type { IVChartPluginConstructor } from '../plugin/vchart';
|
|
19
18
|
export declare class Factory {
|
|
20
19
|
private static _charts;
|
|
21
20
|
private static _series;
|
|
@@ -26,7 +25,6 @@ export declare class Factory {
|
|
|
26
25
|
private static _animations;
|
|
27
26
|
private static _implements;
|
|
28
27
|
private static _chartPlugin;
|
|
29
|
-
private static _vChartPlugin;
|
|
30
28
|
private static _componentPlugin;
|
|
31
29
|
private static _formatter;
|
|
32
30
|
static transforms: {
|
|
@@ -53,7 +51,6 @@ export declare class Factory {
|
|
|
53
51
|
static registerAnimation(key: string, animation: (params?: any, preset?: any) => MarkAnimationSpec): void;
|
|
54
52
|
static registerImplement(key: string, implement: (...args: any) => void): void;
|
|
55
53
|
static registerChartPlugin(key: string, plugin: IChartPluginConstructor): void;
|
|
56
|
-
static registerVChartPlugin(key: string, plugin: IVChartPluginConstructor): void;
|
|
57
54
|
static registerComponentPlugin(key: string, plugin: IComponentPluginConstructor): void;
|
|
58
55
|
static createChart(chartType: string, spec: any, options: IChartOption): IChart | null;
|
|
59
56
|
static getChart(chartType: string): IChartConstructor;
|
|
@@ -80,7 +77,6 @@ export declare class Factory {
|
|
|
80
77
|
static getSeriesBuiltInTheme(themeKey: string): Record<string, any>;
|
|
81
78
|
static getComponentBuiltInTheme(themeKey: string): Record<string, any>;
|
|
82
79
|
static getChartPlugins(): IChartPluginConstructor[];
|
|
83
|
-
static getVChartPlugins(): IVChartPluginConstructor[];
|
|
84
80
|
static getComponentPlugins(): IComponentPluginConstructor[];
|
|
85
81
|
static getComponentPluginInType(type: string): IComponentPluginConstructor;
|
|
86
82
|
static registerFormatter(func: typeof Factory['_formatter']): void;
|
|
@@ -114,8 +114,6 @@ export interface IVChart {
|
|
|
114
114
|
setRuntimeSpec: (spec: any) => void;
|
|
115
115
|
getSpec: () => any;
|
|
116
116
|
getCurrentSize: () => IContainerSize;
|
|
117
|
-
rotate90WithTransform?: (rotateDom: HTMLElement) => void;
|
|
118
|
-
cancelTransform?: (rotateDom: HTMLElement) => void;
|
|
119
117
|
}
|
|
120
118
|
export interface IGlobalConfig {
|
|
121
119
|
uniqueTooltip?: boolean;
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { RenderModeEnum } from '../typings/spec/common';
|
|
|
5
5
|
import type { ISeriesConstructor } from '../series/interface';
|
|
6
6
|
import { type DimensionIndexOption, type IChart, type IChartConstructor, type IChartOption, type IChartSpecInfo } from '../chart/interface';
|
|
7
7
|
import type { IComponentConstructor } from '../component/interface';
|
|
8
|
-
import type { EventCallback, EventQuery, EventType, ExtendEventParam
|
|
8
|
+
import type { EventCallback, EventQuery, EventType, ExtendEventParam } from '../event/interface';
|
|
9
9
|
import type { IParserOptions, Transform } from '@visactor/vdataset';
|
|
10
10
|
import { DataSet, DataView } from '@visactor/vdataset';
|
|
11
11
|
import type { IStage } from '@visactor/vrender-core';
|
|
@@ -59,7 +59,6 @@ export declare class VChart implements IVChart {
|
|
|
59
59
|
private _chartSpecTransformer;
|
|
60
60
|
private _compiler;
|
|
61
61
|
private _event;
|
|
62
|
-
get event(): IEvent;
|
|
63
62
|
private _userEvents;
|
|
64
63
|
private _eventDispatcher;
|
|
65
64
|
private _dataSet;
|
|
@@ -78,7 +77,6 @@ export declare class VChart implements IVChart {
|
|
|
78
77
|
private _context;
|
|
79
78
|
private _isReleased;
|
|
80
79
|
private _chartPlugin?;
|
|
81
|
-
private _vChartPlugin?;
|
|
82
80
|
private _onResize?;
|
|
83
81
|
constructor(spec: ISpec, options: IInitOption);
|
|
84
82
|
private _setNewSpec;
|
|
@@ -123,7 +123,6 @@ export interface IModelOption extends ICompilableInitOption {
|
|
|
123
123
|
getDimensionInfo?: (chart: IChart | undefined, pos: ILayoutPoint, isTooltip?: boolean) => IDimensionInfo[] | null;
|
|
124
124
|
getDimensionInfoByValue?: (axis: IAxis, value: any) => IDimensionInfo | null;
|
|
125
125
|
getRectByDimensionData?: (dimensionData: IDimensionData, layoutStartPoint: ILayoutPoint) => any;
|
|
126
|
-
dispatchEvent?: (key: string, params?: any) => void;
|
|
127
126
|
}
|
|
128
127
|
export interface IModelSpecInfo<T extends Record<string, unknown> = any> {
|
|
129
128
|
type: string | ComponentTypeEnum | SeriesTypeEnum;
|
|
@@ -38,6 +38,6 @@ export declare class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
38
38
|
protected _getParentElement(spec: ITooltipSpec): HTMLElement;
|
|
39
39
|
isTooltipShown(): boolean;
|
|
40
40
|
reInit(): void;
|
|
41
|
-
protected _updatePosition({ x, y }: ITooltipPositionActual
|
|
41
|
+
protected _updatePosition({ x, y }: ITooltipPositionActual): void;
|
|
42
42
|
}
|
|
43
43
|
export declare const registerDomTooltipHandler: () => void;
|
|
@@ -255,7 +255,6 @@ export interface IPerformanceHook {
|
|
|
255
255
|
beforeDoRender?: (vchart?: IVChart) => void;
|
|
256
256
|
beforeVRenderDraw?: (vchart?: IVChart) => void;
|
|
257
257
|
afterVRenderDraw?: (vchart?: IVChart) => void;
|
|
258
|
-
afterWordcloudShapeDraw?: (vchart?: IVChart) => void;
|
|
259
258
|
}
|
|
260
259
|
export type IBuildinMarkSpec = {
|
|
261
260
|
group: IGroupMarkSpec;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IVChart } from '../../core/interface';
|
|
2
|
-
import type { IBasePlugin, IBasePluginService, MaybePromise } from '../base/interface';
|
|
3
|
-
export interface IVChartPlugin<T extends IVChartPluginService = any> extends IBasePlugin<T> {
|
|
4
|
-
specKey?: string;
|
|
5
|
-
onInit?: (service: T) => MaybePromise<void>;
|
|
6
|
-
}
|
|
7
|
-
export interface IVChartPluginConstructor {
|
|
8
|
-
readonly pluginType: 'vchart';
|
|
9
|
-
readonly specKey?: string;
|
|
10
|
-
readonly type: string;
|
|
11
|
-
new (): IVChartPlugin;
|
|
12
|
-
}
|
|
13
|
-
export interface IVChartPluginService<T extends IVChartPlugin = any> extends IBasePluginService<T> {
|
|
14
|
-
globalInstance: IVChart;
|
|
15
|
-
onInit?: () => MaybePromise<void>;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IVChartPlugin, IVChartPluginService } from './interface';
|
|
2
|
-
import type { IVChart } from '../../core';
|
|
3
|
-
import { BasePluginService } from '../base/base-plugin-service';
|
|
4
|
-
export declare class VChartPluginService<T extends IVChartPlugin = IVChartPlugin> extends BasePluginService<T> implements IVChartPluginService<T> {
|
|
5
|
-
globalInstance: IVChart;
|
|
6
|
-
constructor(globalInstance: IVChart);
|
|
7
|
-
onInit(): void;
|
|
8
|
-
releaseAll(): void;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './rotate';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BasePlugin } from '../../base/base-plugin';
|
|
2
|
-
import type { IVChartPlugin, IVChartPluginService } from '../interface';
|
|
3
|
-
export declare class RotatePlugin extends BasePlugin implements IVChartPlugin {
|
|
4
|
-
static readonly pluginType: 'vchart';
|
|
5
|
-
static readonly specKey = "rotate";
|
|
6
|
-
static readonly type: string;
|
|
7
|
-
readonly type: string;
|
|
8
|
-
private rotateDegree;
|
|
9
|
-
private matrix;
|
|
10
|
-
private vglobal_mapToCanvasPoint;
|
|
11
|
-
private _vchart;
|
|
12
|
-
constructor();
|
|
13
|
-
onInit(service: IVChartPluginService): void;
|
|
14
|
-
rotate90WithTransform: (rotateDom: HTMLElement) => void;
|
|
15
|
-
cancelTransform: (rotateDom: HTMLElement) => void;
|
|
16
|
-
release(): void;
|
|
17
|
-
}
|
|
18
|
-
export declare const registerRotatePlugin: () => void;
|