@visactor/vchart-types 1.15.5-alpha.8 → 2.0.0-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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/animate-manager.d.ts +2 -4
- package/types/animation/interface.d.ts +86 -2
- package/types/animation/spec.d.ts +27 -3
- package/types/animation/utils.d.ts +3 -4
- package/types/chart/base/base-chart.d.ts +10 -7
- package/types/chart/funnel/util.d.ts +2 -0
- package/types/chart/interface/chart.d.ts +3 -4
- package/types/chart/interface/common.d.ts +2 -9
- package/types/chart/sankey/sankey.d.ts +1 -1
- package/types/compile/compilable-base.d.ts +1 -1
- package/types/compile/compiler.d.ts +35 -25
- package/types/compile/data/compilable-data.d.ts +7 -7
- package/types/compile/data/interface.d.ts +4 -1
- package/types/compile/grammar-item.d.ts +7 -13
- package/types/compile/interface/compilable-item.d.ts +22 -28
- package/types/compile/interface/compiler.d.ts +13 -4
- package/types/compile/mark/index.d.ts +0 -1
- package/types/compile/mark/interface.d.ts +42 -33
- package/types/compile/mark/mark-state-manager.d.ts +11 -13
- package/types/compile/mark/util.d.ts +1 -1
- package/types/compile/state-manager.d.ts +11 -0
- package/types/compile/util.d.ts +14 -0
- package/types/component/axis/base-axis.d.ts +5 -3
- package/types/component/axis/cartesian/axis.d.ts +1 -1
- package/types/component/axis/cartesian/time-axis.d.ts +1 -0
- package/types/component/axis/interface/common.d.ts +8 -0
- package/types/component/base/base-component.d.ts +1 -2
- package/types/component/brush/brush.d.ts +12 -10
- package/types/component/crosshair/base.d.ts +25 -36
- package/types/component/crosshair/cartesian.d.ts +5 -28
- package/types/component/crosshair/interface/common.d.ts +67 -2
- package/types/component/crosshair/interface/index.d.ts +0 -2
- package/types/component/crosshair/interface/spec.d.ts +8 -4
- package/types/component/crosshair/polar.d.ts +6 -22
- package/types/component/crosshair/utils/cartesian.d.ts +5 -26
- package/types/component/crosshair/utils/polar.d.ts +18 -11
- package/types/component/data-zoom/data-filter-base-component.d.ts +4 -4
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
- package/types/component/data-zoom/interface.d.ts +11 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +1 -2
- package/types/component/geo/geo-coordinate.d.ts +2 -2
- package/types/component/geo/interface.d.ts +1 -1
- package/types/component/label/base-label.d.ts +5 -0
- package/types/component/label/interface.d.ts +4 -3
- package/types/component/label/label.d.ts +5 -3
- package/types/component/label/util.d.ts +9 -10
- package/types/component/legend/util.d.ts +3 -3
- package/types/component/marker/base-marker.d.ts +1 -1
- package/types/component/tooltip/processor/interface.d.ts +1 -1
- package/types/component/tooltip/processor/util.d.ts +1 -1
- package/types/component/tooltip/tooltip.d.ts +3 -3
- package/types/constant/data.d.ts +1 -0
- package/types/constant/event.d.ts +53 -2
- package/types/core/factory.d.ts +28 -3
- package/types/core/index.d.ts +2 -1
- package/types/core/interface.d.ts +13 -4
- package/types/core/vchart.d.ts +6 -6
- package/types/data/transforms/treemap.d.ts +5 -6
- package/types/data/transforms/venn.d.ts +10 -0
- package/types/data/transforms/waterfall.d.ts +1 -0
- package/types/event/events/base.d.ts +1 -2
- package/types/event/index.d.ts +1 -0
- package/types/event/interface.d.ts +6 -9
- package/types/index-harmony-simple.d.ts +2 -1
- package/types/index.d.ts +0 -1
- package/types/interaction/config.d.ts +13 -0
- package/types/interaction/index.d.ts +9 -1
- package/types/interaction/interaction.d.ts +17 -25
- package/types/interaction/interface/common.d.ts +22 -0
- package/types/interaction/interface/spec.d.ts +53 -0
- package/types/interaction/interface/trigger.d.ts +87 -0
- package/types/interaction/triggers/base.d.ts +28 -0
- package/types/interaction/triggers/dimension-hover.d.ts +22 -0
- package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
- package/types/interaction/triggers/element-active.d.ts +20 -0
- package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +13 -0
- package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
- package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
- package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
- package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
- package/types/interaction/triggers/element-highlight.d.ts +25 -0
- package/types/interaction/triggers/element-select-by-graphic-name.d.ts +8 -0
- package/types/interaction/triggers/element-select.d.ts +24 -0
- package/types/interaction/triggers/enum.d.ts +8 -0
- package/types/interaction/triggers/util.d.ts +12 -0
- package/types/interaction/zoom/zoomable.d.ts +1 -0
- package/types/layout/interface.d.ts +2 -2
- package/types/layout/layout-item.d.ts +2 -3
- package/types/mark/arc.d.ts +2 -2
- package/types/mark/area.d.ts +2 -0
- package/types/mark/base/base-line.d.ts +16 -2
- package/types/mark/base/base-mark.d.ts +131 -13
- package/types/mark/box-plot.d.ts +11 -5
- package/types/mark/cell.d.ts +5 -2
- package/types/mark/component.d.ts +11 -3
- package/types/mark/glyph.d.ts +29 -0
- package/types/mark/group.d.ts +10 -6
- package/types/mark/index.d.ts +3 -1
- package/types/mark/interface/common.d.ts +61 -9
- package/types/mark/interface/enum.d.ts +6 -0
- package/types/mark/interface/index.d.ts +1 -0
- package/types/mark/interface/mark.d.ts +18 -1
- package/types/mark/interface/type.d.ts +1 -0
- package/types/mark/label.d.ts +4 -3
- package/types/mark/link-path.d.ts +35 -5
- package/types/mark/liquid.d.ts +47 -5
- package/types/mark/ripple.d.ts +39 -4
- package/types/mark/rule.d.ts +3 -0
- package/types/mark/symbol.d.ts +4 -4
- package/types/mark/text.d.ts +4 -2
- package/types/mark/transform/data-sampling.d.ts +10 -0
- package/types/mark/transform/filter.d.ts +1 -0
- package/types/mark/transform/map.d.ts +1 -0
- package/types/mark/transform/symbol-overlap.d.ts +14 -0
- package/types/mark/utils/common.d.ts +4 -0
- package/types/mark/utils/glyph.d.ts +2 -0
- package/types/mark/utils/index.d.ts +2 -0
- package/types/mark/utils/line.d.ts +3 -0
- package/types/model/base-model.d.ts +8 -8
- package/types/model/interface.d.ts +4 -8
- package/types/model/layout-model.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +2 -4
- package/types/plugin/other.d.ts +3 -3
- package/types/region/interface.d.ts +0 -2
- package/types/region/region.d.ts +3 -9
- package/types/series/area/animation.d.ts +1 -1
- package/types/series/area/area.d.ts +1 -1
- package/types/series/bar/animation.d.ts +1 -1
- package/types/series/bar/bar.d.ts +3 -3
- package/types/series/base/base-series.d.ts +26 -42
- package/types/series/base/tooltip-helper.d.ts +1 -2
- package/types/series/box-plot/box-plot.d.ts +3 -3
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/circle-packing/animation.d.ts +1 -1
- package/types/series/circle-packing/circle-packing.d.ts +1 -1
- package/types/series/correlation/animation.d.ts +1 -1
- package/types/series/correlation/correlation.d.ts +3 -4
- package/types/series/dot/dot.d.ts +2 -2
- package/types/series/funnel/funnel.d.ts +3 -2
- package/types/series/funnel/tooltip-helper.d.ts +1 -1
- package/types/series/gauge/animation.d.ts +1 -1
- package/types/series/gauge/gauge-pointer.d.ts +4 -1
- package/types/series/gauge/gauge.d.ts +2 -2
- package/types/series/geo/geo.d.ts +2 -2
- package/types/series/heatmap/animation.d.ts +1 -1
- package/types/series/heatmap/heatmap.d.ts +4 -1
- package/types/series/interface/common.d.ts +1 -4
- package/types/series/interface/series.d.ts +6 -1
- package/types/series/line/animation.d.ts +1 -1
- package/types/series/line/line.d.ts +1 -1
- package/types/series/link/link.d.ts +5 -2
- package/types/series/liquid/animation.d.ts +1 -1
- package/types/series/liquid/liquid.d.ts +4 -1
- package/types/series/map/interface.d.ts +10 -0
- package/types/series/mixin/line-mixin.d.ts +5 -5
- package/types/series/pictogram/pictogram.d.ts +15 -19
- package/types/series/pie/animation/animation.d.ts +4 -3
- package/types/series/pie/animation/centerOffset.d.ts +1 -1
- package/types/series/pie/interface.d.ts +2 -2
- package/types/series/pie/pie.d.ts +8 -6
- package/types/series/polar/progress-like/animation.d.ts +1 -1
- package/types/series/polar/progress-like/progress-like.d.ts +1 -2
- package/types/series/progress/circular/circular.d.ts +4 -1
- package/types/series/progress/linear/animation.d.ts +1 -1
- package/types/series/progress/linear/linear.d.ts +4 -1
- package/types/series/radar/animation.d.ts +11 -9
- package/types/series/radar/radar.d.ts +2 -2
- package/types/series/range-column/animation.d.ts +1 -1
- package/types/series/rose/animation.d.ts +1 -1
- package/types/series/sankey/animation.d.ts +1 -1
- package/types/series/sankey/sankey.d.ts +11 -12
- package/types/series/sankey/tooltip-helper.d.ts +1 -1
- package/types/series/scatter/animation.d.ts +1 -1
- package/types/series/sunburst/animation/enter.d.ts +1 -1
- package/types/series/sunburst/animation/exit.d.ts +1 -1
- package/types/series/sunburst/animation/preset.d.ts +1 -1
- package/types/series/sunburst/animation/utils.d.ts +2 -2
- package/types/series/sunburst/sunburst.d.ts +1 -1
- package/types/series/treemap/animation.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +1 -2
- package/types/series/venn/animation.d.ts +1 -1
- package/types/series/venn/venn.d.ts +2 -1
- package/types/series/waterfall/animation.d.ts +1 -1
- package/types/series/waterfall/waterfall.d.ts +2 -2
- package/types/series/word-cloud/animation.d.ts +1 -1
- package/types/series/word-cloud/base.d.ts +1 -1
- package/types/series/word-cloud/interface.d.ts +1 -1
- package/types/typings/common.d.ts +13 -0
- package/types/typings/spec/common.d.ts +37 -36
- package/types/typings/visual.d.ts +9 -2
- package/types/util/array.d.ts +1 -0
- package/types/util/index.d.ts +1 -0
- package/types/util/mark.d.ts +5 -0
- package/types/util/math.d.ts +1 -1
|
@@ -1,40 +1,24 @@
|
|
|
1
1
|
import type { IComponentOption } from '../interface';
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IPolarCrosshairSpec } from './interface';
|
|
4
|
-
import type {
|
|
4
|
+
import type { IPolarAxis } from '../axis/polar/interface';
|
|
5
|
+
import type { IPoint, StringOrNumber, TooltipActiveType, TooltipData } from '../../typings';
|
|
5
6
|
import { BaseCrossHair } from './base';
|
|
6
7
|
import type { Maybe } from '@visactor/vutils';
|
|
7
|
-
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
8
|
import type { IModelSpecInfo } from '../../model/interface';
|
|
9
|
+
import type { IAxis } from '../axis';
|
|
9
10
|
export declare class PolarCrossHair<T extends IPolarCrosshairSpec = IPolarCrosshairSpec> extends BaseCrossHair<T> {
|
|
10
11
|
static specKey: string;
|
|
11
12
|
static type: ComponentTypeEnum;
|
|
12
13
|
type: ComponentTypeEnum;
|
|
13
14
|
name: string;
|
|
14
|
-
private _currValueAngle;
|
|
15
|
-
private _currValueRadius;
|
|
16
|
-
private _angleHair;
|
|
17
|
-
private _radiusHair;
|
|
18
|
-
private _cacheAngleCrossHairInfo;
|
|
19
|
-
private _cacheRadiusCrossHairInfo;
|
|
20
|
-
private _radiusCrosshair;
|
|
21
|
-
private _radiusLabelCrosshair;
|
|
22
|
-
private _angleCrosshair;
|
|
23
|
-
private _angleLabelCrosshair;
|
|
24
15
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
25
16
|
constructor(spec: T, options: IComponentOption);
|
|
26
|
-
|
|
27
|
-
private _defaultCrosshair;
|
|
28
|
-
hide(): void;
|
|
17
|
+
setAxisValue(datum: StringOrNumber, axis: IAxis): void;
|
|
29
18
|
private _findAllAxisContains;
|
|
30
|
-
|
|
31
|
-
private _getValueByAxis;
|
|
19
|
+
protected _getDatumAtPoint(axis: IPolarAxis, point: IPoint): any;
|
|
32
20
|
protected _layoutCrosshair(relativeX: number, relativeY: number, tooltipData?: TooltipData, activeType?: TooltipActiveType): void;
|
|
33
21
|
layoutByValue(tag?: number): void;
|
|
34
|
-
private
|
|
35
|
-
private _layoutRadius;
|
|
36
|
-
protected _parseFieldInfo(): void;
|
|
37
|
-
private _updateCrosshairLabel;
|
|
38
|
-
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
22
|
+
private _layoutByField;
|
|
39
23
|
}
|
|
40
24
|
export declare const registerPolarCrossHair: () => void;
|
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
import type { ICartesianSeries } from '../../../series';
|
|
2
2
|
import type { ILayoutPoint } from '../../../typings';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
x: ICrosshairInfoX;
|
|
7
|
-
y: ICrosshairInfoY;
|
|
8
|
-
offsetWidth: number;
|
|
9
|
-
offsetHeight: number;
|
|
10
|
-
bandWidth: number;
|
|
11
|
-
bandHeight: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const layoutVerticalCrosshair: (xHair: IHair, crosshairInfo: ICrosshairInfoX, bandWidth: number, offsetWidth: number) => {
|
|
14
|
-
visible: boolean;
|
|
15
|
-
start: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
};
|
|
19
|
-
end: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const layoutHorizontalCrosshair: (yHair: IHair, crosshairInfo: ICrosshairInfoY, bandHeight: number, offsetHeight: number) => {
|
|
3
|
+
import type { CrossHairStateByField, CrossHairStateItem } from '../interface';
|
|
4
|
+
export declare const layoutByValue: (stateByField: CrossHairStateByField, series: ICartesianSeries, layoutStartPoint: ILayoutPoint, enableRemain?: boolean) => CrossHairStateByField;
|
|
5
|
+
export declare const layoutCrosshair: (stateItem: CrossHairStateItem) => {
|
|
25
6
|
visible: boolean;
|
|
26
7
|
start: {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
8
|
+
[x: string]: number;
|
|
29
9
|
};
|
|
30
10
|
end: {
|
|
31
|
-
x: number;
|
|
32
|
-
y: number;
|
|
11
|
+
[x: string]: number;
|
|
33
12
|
};
|
|
34
13
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { IPolarSeries } from '../../../series';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
export declare const layoutByValue: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import type { CrossHairStateByField, CrossHairStateItem } from '../interface';
|
|
3
|
+
import type { ILayoutPoint } from '../../../typings/layout';
|
|
4
|
+
export declare const layoutByValue: (stateByField: CrossHairStateByField, series: IPolarSeries, enableRemain?: boolean) => void;
|
|
5
|
+
export declare const layoutCrosshair: (stateItem: CrossHairStateItem, layoutStartPoint: ILayoutPoint, smooth?: boolean) => {
|
|
6
|
+
center: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
10
|
innerRadius: number;
|
|
11
11
|
radius: number;
|
|
12
12
|
startAngle: number;
|
|
13
13
|
endAngle: number;
|
|
14
14
|
start?: undefined;
|
|
15
15
|
end?: undefined;
|
|
16
|
+
sides?: undefined;
|
|
16
17
|
} | {
|
|
17
18
|
start: {
|
|
18
19
|
x: number;
|
|
@@ -27,11 +28,17 @@ export declare const layoutAngleCrosshair: (angleHair: IHair, crosshairInfo: IPo
|
|
|
27
28
|
radius?: undefined;
|
|
28
29
|
startAngle?: undefined;
|
|
29
30
|
endAngle?: undefined;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
center:
|
|
31
|
+
sides?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
center: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
33
37
|
startAngle: number;
|
|
34
38
|
endAngle: number;
|
|
35
39
|
radius: number;
|
|
36
40
|
sides: number;
|
|
41
|
+
innerRadius?: undefined;
|
|
42
|
+
start?: undefined;
|
|
43
|
+
end?: undefined;
|
|
37
44
|
};
|
|
@@ -79,7 +79,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
79
79
|
protected _initEvent(): void;
|
|
80
80
|
protected _initData(): void;
|
|
81
81
|
setAttrFromSpec(): void;
|
|
82
|
-
|
|
82
|
+
statePointToData(state: number): any;
|
|
83
83
|
dataToStatePoint(data: number | string): number;
|
|
84
84
|
protected _modeCheck(statePoint: 'start' | 'end', mode: string): any;
|
|
85
85
|
protected _setStateFromSpec(): void;
|
|
@@ -105,7 +105,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
105
105
|
zoomDelta: number;
|
|
106
106
|
zoomX?: number;
|
|
107
107
|
zoomY?: number;
|
|
108
|
-
}) => void;
|
|
108
|
+
}, e?: BaseEventParams['event']) => void;
|
|
109
109
|
protected _handleChartScroll: (params: {
|
|
110
110
|
scrollX: number;
|
|
111
111
|
scrollY: number;
|
|
@@ -115,8 +115,8 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
115
115
|
protected _initCommonEvent(): void;
|
|
116
116
|
updateLayoutAttribute(): void;
|
|
117
117
|
protected _autoVisible(isShown: boolean): void;
|
|
118
|
-
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect
|
|
119
|
-
onLayoutEnd(
|
|
118
|
+
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect): void;
|
|
119
|
+
onLayoutEnd(): void;
|
|
120
120
|
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
121
121
|
hide(): void;
|
|
122
122
|
show(): void;
|
|
@@ -28,7 +28,7 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
|
|
|
28
28
|
constructor(spec: T, options: IComponentOption);
|
|
29
29
|
created(): void;
|
|
30
30
|
setAttrFromSpec(): void;
|
|
31
|
-
onLayoutEnd(
|
|
31
|
+
onLayoutEnd(): void;
|
|
32
32
|
protected _initValueScale(): void;
|
|
33
33
|
protected _updateScaleRange(): void;
|
|
34
34
|
protected _computeDomainOfValueScale(): unknown[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseEventParams } from '../../event/interface';
|
|
1
2
|
import type { IOrientType } from '../../typings';
|
|
2
3
|
import type { IDelayType } from '../../typings/event';
|
|
3
4
|
import type { IComponentSpec } from '../base/interface';
|
|
@@ -35,12 +36,22 @@ export interface IDataFilterComponentSpec extends Omit<IComponentSpec, 'width' |
|
|
|
35
36
|
}
|
|
36
37
|
export interface IRoamDragSpec extends IRoamSpec {
|
|
37
38
|
reverse?: boolean;
|
|
39
|
+
filter?: (delta: [number, number], e?: BaseEventParams['event']) => boolean;
|
|
38
40
|
}
|
|
39
41
|
export interface IRoamScrollSpec extends IRoamSpec {
|
|
40
42
|
reverse?: boolean;
|
|
43
|
+
filter?: (params: {
|
|
44
|
+
scrollX: number;
|
|
45
|
+
scrollY: number;
|
|
46
|
+
}, e?: BaseEventParams['event']) => boolean;
|
|
41
47
|
}
|
|
42
48
|
export interface IRoamZoomSpec extends IRoamSpec {
|
|
43
49
|
focus?: boolean;
|
|
50
|
+
filter?: (params: {
|
|
51
|
+
zoomDelta: number;
|
|
52
|
+
zoomX?: number;
|
|
53
|
+
zoomY?: number;
|
|
54
|
+
}, e?: BaseEventParams['event']) => boolean;
|
|
44
55
|
}
|
|
45
56
|
export interface IRoamSpec {
|
|
46
57
|
enable?: boolean;
|
|
@@ -18,7 +18,7 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
|
|
|
18
18
|
protected _component: ScrollBarComponent;
|
|
19
19
|
constructor(spec: T, options: IComponentOption);
|
|
20
20
|
setAttrFromSpec(): void;
|
|
21
|
-
onLayoutEnd(
|
|
21
|
+
onLayoutEnd(): void;
|
|
22
22
|
protected _updateScaleRange(): void;
|
|
23
23
|
protected _computeWidth(): number;
|
|
24
24
|
protected _computeHeight(): number;
|
|
@@ -26,7 +26,6 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
|
|
|
26
26
|
protected _createOrUpdateComponent(): void;
|
|
27
27
|
protected _handleChange(start: number, end: number, updateComponent?: boolean): void;
|
|
28
28
|
protected _handleDataCollectionChange(): void;
|
|
29
|
-
protected _initCommonEvent(): void;
|
|
30
29
|
protected _getComponentAttrs(): Partial<ScrollBarAttributes>;
|
|
31
30
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
32
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IPoint } from '../../typings/coordinate';
|
|
2
2
|
import { Projection } from './projection';
|
|
3
|
-
import type { IEffect,
|
|
3
|
+
import type { IEffect, IModelRenderOption, IModelSpecInfo } from '../../model/interface';
|
|
4
4
|
import { ComponentTypeEnum } from '../interface/type';
|
|
5
5
|
import { BaseComponent } from '../base/base-component';
|
|
6
6
|
import type { IGeoRegionSpec, IRegion } from '../../region/interface';
|
|
@@ -42,7 +42,7 @@ export declare class GeoCoordinate extends BaseComponent<IGeoRegionSpec> impleme
|
|
|
42
42
|
initEvent(): void;
|
|
43
43
|
initProjection(): void;
|
|
44
44
|
coordinateHelper(): void;
|
|
45
|
-
onLayoutEnd(
|
|
45
|
+
onLayoutEnd(): void;
|
|
46
46
|
onRender(ctx: IModelRenderOption): void;
|
|
47
47
|
changeRegions(regions: IRegion[]): void;
|
|
48
48
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IPoint } from '../../typings/coordinate';
|
|
2
|
-
import type { ProjectionType } from '@visactor/vgrammar-core';
|
|
3
2
|
import type { IComponent } from '../interface';
|
|
3
|
+
export type ProjectionType = 'albers' | 'albersUsa' | 'azimuthalEqualArea' | 'azimuthalEquidistant' | 'conicConformal' | 'conicEqualArea' | 'conicEquidistant' | 'equalEarth' | 'equirectangular' | 'gnomonic' | 'identity' | 'mercator' | 'naturalEarth1' | 'orthographic' | 'stereographic' | 'transverseMercator';
|
|
4
4
|
export interface IProjectionSpec {
|
|
5
5
|
name: string;
|
|
6
6
|
type: ProjectionType;
|
|
@@ -5,6 +5,9 @@ import type { IRegion } from '../../region/interface';
|
|
|
5
5
|
import type { IModelRenderOption } from '../../model/interface';
|
|
6
6
|
import type { ILabelSpec } from './interface';
|
|
7
7
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
|
+
import type { IComponentMark } from '../../mark/interface/mark';
|
|
9
|
+
import type { ICompilableMark } from '../../compile/mark/interface';
|
|
10
|
+
import type { IMark } from '../../mark/interface/common';
|
|
8
11
|
export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<T> {
|
|
9
12
|
static type: ComponentTypeEnum;
|
|
10
13
|
type: ComponentTypeEnum;
|
|
@@ -29,6 +32,8 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
|
|
|
29
32
|
reSize: boolean;
|
|
30
33
|
reCompile: boolean;
|
|
31
34
|
};
|
|
35
|
+
_getDataLabelType(baseMark: ICompilableMark, type?: string): string;
|
|
36
|
+
_setTransformOfComponent(labelComponent: IComponentMark, baseMark: IMark | IMark[]): void;
|
|
32
37
|
onRender(ctx: IModelRenderOption): void;
|
|
33
38
|
changeRegions(regions: IRegion[]): void;
|
|
34
39
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { BaseLabelAttrs } from '@visactor/vrender-components';
|
|
2
2
|
import type { ConvertToMarkStyleSpec, Datum, IComposedTextMarkSpec, IFormatMethod, ITextMarkSpec } from '../../typings';
|
|
3
3
|
import type { IComponentSpec } from '../base/interface';
|
|
4
|
-
import type { ILabelMark } from '../../mark/interface';
|
|
4
|
+
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
5
5
|
import type { ISeries } from '../../series/interface';
|
|
6
|
-
import type { ICompilableMark } from '../../compile/mark/interface';
|
|
7
6
|
import type { IRegion } from '../../region/interface';
|
|
8
7
|
export interface ILabelInfo {
|
|
9
|
-
baseMark:
|
|
8
|
+
baseMark: IMark;
|
|
10
9
|
labelMark: ILabelMark;
|
|
11
10
|
series: ISeries;
|
|
12
11
|
labelSpec: TransformedLabelSpec;
|
|
@@ -34,9 +33,11 @@ export interface ILabelSpec extends IComponentSpec, ILabelAnimationSpec {
|
|
|
34
33
|
dataFilter?: BaseLabelAttrs['dataFilter'];
|
|
35
34
|
customLayoutFunc?: BaseLabelAttrs['customLayoutFunc'];
|
|
36
35
|
customOverlapFunc?: BaseLabelAttrs['customOverlapFunc'];
|
|
36
|
+
onAfterOverlapping?: BaseLabelAttrs['onAfterOverlapping'];
|
|
37
37
|
labelLayout?: 'series' | 'region';
|
|
38
38
|
support3d?: boolean;
|
|
39
39
|
syncState?: boolean;
|
|
40
|
+
showRelatedMarkTooltip?: boolean;
|
|
40
41
|
}
|
|
41
42
|
export type ILabelAnimationSpec = Pick<BaseLabelAttrs, 'animation' | 'animationEnter' | 'animationUpdate' | 'animationExit'>;
|
|
42
43
|
export type IMultiLabelSpec<T extends Omit<ILabelSpec, 'position'>> = T | T[];
|
|
@@ -2,14 +2,15 @@ import type { IComponentOption } from '../interface';
|
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import type { IModelInitOption, IModelSpecInfo } from '../../model/interface';
|
|
5
|
-
import type {
|
|
6
|
-
import
|
|
5
|
+
import type { IMark } from '../../mark/interface';
|
|
6
|
+
import { type IComponentMark } from '../../mark/interface';
|
|
7
7
|
import { BaseLabelComponent } from './base-label';
|
|
8
8
|
import type { Maybe } from '@visactor/vutils';
|
|
9
9
|
import type { ILabelInfo } from './interface';
|
|
10
10
|
import type { IChartSpecInfo } from '../../chart/interface';
|
|
11
11
|
import type { IChartSpec } from '../../typings';
|
|
12
12
|
import { LabelSpecTransformer } from './label-transformer';
|
|
13
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
13
14
|
export declare class Label<T extends IChartSpec = any> extends BaseLabelComponent<T> {
|
|
14
15
|
static type: ComponentTypeEnum;
|
|
15
16
|
type: ComponentTypeEnum;
|
|
@@ -33,8 +34,9 @@ export declare class Label<T extends IChartSpec = any> extends BaseLabelComponen
|
|
|
33
34
|
updateLayoutAttribute(): void;
|
|
34
35
|
protected _updateMultiLabelAttribute(labelInfo: ILabelInfo[], labelComponent: IComponentMark): void;
|
|
35
36
|
protected _updateSingleLabelAttribute(labelInfo: ILabelInfo, labelComponent: IComponentMark): void;
|
|
36
|
-
protected _updateLabelComponentAttribute(
|
|
37
|
+
protected _updateLabelComponentAttribute(labelComponent: IComponentMark, baseMark: IMark | IMark[], labelInfos: ILabelInfo[]): void;
|
|
37
38
|
compileMarks(): void;
|
|
38
39
|
getVRenderComponents(): any[];
|
|
40
|
+
getLabelInfoByTextGraphic(text: IGraphic): ILabelInfo;
|
|
39
41
|
}
|
|
40
42
|
export declare const registerLabel: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WaterfallSeries } from './../../series/waterfall/waterfall';
|
|
2
2
|
import type { Datum } from '../../typings/common';
|
|
3
|
-
import type { LabelItem, Strategy } from '@visactor/vrender-components';
|
|
3
|
+
import type { LabelItem, OverlapAttrs, Strategy } from '@visactor/vrender-components';
|
|
4
4
|
import type { ILabelInfo, ILabelSpec } from './interface';
|
|
5
5
|
export declare const labelRuleMap: {
|
|
6
6
|
rect: typeof barLabel;
|
|
@@ -17,20 +17,14 @@ export declare const labelRuleMap: {
|
|
|
17
17
|
venn: typeof vennLabel;
|
|
18
18
|
};
|
|
19
19
|
export declare function defaultLabelConfig(rule: string, labelInfo: ILabelInfo): any;
|
|
20
|
-
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']):
|
|
20
|
+
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): Partial<import("../../typings").IComposedTextMarkSpec>;
|
|
21
21
|
export declare function symbolLabel(labelInfo: ILabelInfo): {
|
|
22
22
|
position: string | ((datum: Datum) => any);
|
|
23
|
-
overlap: boolean |
|
|
24
|
-
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
25
|
-
avoidBaseMark: boolean;
|
|
26
|
-
};
|
|
23
|
+
overlap: boolean | OverlapAttrs;
|
|
27
24
|
};
|
|
28
25
|
export declare function lineDataLabel(labelInfo: ILabelInfo): {
|
|
29
26
|
position: string | ((datum: Datum) => any);
|
|
30
|
-
overlap: boolean |
|
|
31
|
-
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
32
|
-
avoidBaseMark: boolean;
|
|
33
|
-
};
|
|
27
|
+
overlap: boolean | OverlapAttrs;
|
|
34
28
|
};
|
|
35
29
|
export declare function barLabel(labelInfo: ILabelInfo): {
|
|
36
30
|
position: (data: any) => string;
|
|
@@ -42,6 +36,7 @@ export declare function barLabel(labelInfo: ILabelInfo): {
|
|
|
42
36
|
export declare function pointLabel(labelInfo: ILabelInfo): {
|
|
43
37
|
position: string;
|
|
44
38
|
overlap: boolean | {
|
|
39
|
+
clampForce: boolean;
|
|
45
40
|
avoidBaseMark: boolean;
|
|
46
41
|
};
|
|
47
42
|
};
|
|
@@ -69,6 +64,10 @@ export declare function vennLabel(labelInfo: ILabelInfo): {
|
|
|
69
64
|
export declare function LineLabel(labelInfo: ILabelInfo): {
|
|
70
65
|
position: string;
|
|
71
66
|
data: any;
|
|
67
|
+
overlap: {
|
|
68
|
+
avoidBaseMark: boolean;
|
|
69
|
+
clampForce: boolean;
|
|
70
|
+
};
|
|
72
71
|
};
|
|
73
72
|
export declare function sankeyLabel(labelInfo: ILabelInfo): {
|
|
74
73
|
position: import("@visactor/vrender-components").Functional<string>;
|
|
@@ -13,7 +13,7 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
13
13
|
};
|
|
14
14
|
background?: {
|
|
15
15
|
visible?: boolean;
|
|
16
|
-
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "
|
|
16
|
+
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "visible" | "width" | "height">;
|
|
17
17
|
};
|
|
18
18
|
text?: string | number | string[] | number[] | {
|
|
19
19
|
type?: "text";
|
|
@@ -32,10 +32,10 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
32
32
|
element: any;
|
|
33
33
|
} & import("@visactor/vrender-core").SimpleDomStyleOptions & import("@visactor/vrender-core").CommonDomOptions;
|
|
34
34
|
};
|
|
35
|
+
visible?: boolean;
|
|
36
|
+
align?: "start" | "end" | "center";
|
|
35
37
|
padding?: import("@visactor/vrender-components").Padding;
|
|
36
38
|
maxWidth?: number;
|
|
37
39
|
minWidth?: number;
|
|
38
|
-
visible?: boolean;
|
|
39
40
|
space?: number;
|
|
40
|
-
align?: "start" | "end" | "center";
|
|
41
41
|
};
|
|
@@ -59,7 +59,7 @@ export declare abstract class BaseMarker<T extends IMarkerSpec> extends BaseComp
|
|
|
59
59
|
clear(): void;
|
|
60
60
|
private _getFirstSeries;
|
|
61
61
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
62
|
-
onLayoutStart(layoutRect: IRect, chartViewRect: ILayoutRect
|
|
62
|
+
onLayoutStart(layoutRect: IRect, chartViewRect: ILayoutRect): void;
|
|
63
63
|
_compareSpec(spec: T, prevSpec: T): {
|
|
64
64
|
change: boolean;
|
|
65
65
|
reMake: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
1
|
import type { IMark } from '../../../mark/interface';
|
|
3
2
|
import type { ISeries } from '../../../series/interface';
|
|
4
3
|
import type { IDimensionInfo } from '../../../event/events/dimension/interface';
|
|
4
|
+
import type { Datum } from '../../../typings/common';
|
|
5
5
|
export type DimensionTooltipInfo = IDimensionInfo[];
|
|
6
6
|
export type MarkTooltipInfo<T = Datum> = {
|
|
7
7
|
datum: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Maybe } from '@visactor/vutils';
|
|
2
2
|
import type { DimensionTooltipInfo, MarkTooltipInfo, TooltipInfo } from './interface';
|
|
3
|
-
export declare const isMarkInfo: (info: Maybe<TooltipInfo>) => info is MarkTooltipInfo<
|
|
3
|
+
export declare const isMarkInfo: (info: Maybe<TooltipInfo>) => info is MarkTooltipInfo<import("../../../typings").Datum>;
|
|
4
4
|
export declare const isDimensionInfo: (info: Maybe<TooltipInfo>) => info is DimensionTooltipInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentTypeEnum } from '../interface/type';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IModelRenderOption } from '../../model/interface';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import { BaseComponent } from '../base/base-component';
|
|
5
5
|
import type { BaseEventParams, EventCallback, EventQuery, EventType } from '../../event/interface';
|
|
@@ -26,6 +26,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
|
|
|
26
26
|
private _needInitEventOfTooltip?;
|
|
27
27
|
private _enterable;
|
|
28
28
|
private _isReleased;
|
|
29
|
+
private _isEnterTooltip;
|
|
29
30
|
protected _spec: ITooltipSpec;
|
|
30
31
|
tooltipHandler?: ITooltipHandler;
|
|
31
32
|
processor: ITooltipActiveTypeAsKeys<MarkTooltipProcessor, DimensionTooltipProcessor, GroupTooltipProcessor>;
|
|
@@ -43,8 +44,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
|
|
|
43
44
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
44
45
|
protected _registerEvent(): void;
|
|
45
46
|
protected _releaseEvent(): void;
|
|
46
|
-
|
|
47
|
-
onLayoutEnd(ctx: IModelLayoutOption): void;
|
|
47
|
+
onLayoutEnd(): void;
|
|
48
48
|
onRender(ctx: IModelRenderOption): void;
|
|
49
49
|
created(): void;
|
|
50
50
|
release(): void;
|
package/types/constant/data.d.ts
CHANGED
|
@@ -1,4 +1,54 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare enum HOOK_EVENT {
|
|
2
|
+
BEFORE_EVALUATE_DATA = "beforeEvaluateData",
|
|
3
|
+
AFTER_EVALUATE_DATA = "afterEvaluateData",
|
|
4
|
+
BEFORE_EVALUATE_SCALE = "beforeEvaluateScale",
|
|
5
|
+
AFTER_EVALUATE_SCALE = "afterEvaluateScale",
|
|
6
|
+
BEFORE_PARSE_VIEW = "beforeParseView",
|
|
7
|
+
AFTER_PARSE_VIEW = "afterParseView",
|
|
8
|
+
BEFORE_TRANSFORM = "beforeTransform",
|
|
9
|
+
AFTER_TRANSFORM = "afterTransform",
|
|
10
|
+
BEFORE_CREATE_VRENDER_STAGE = "beforeCreateVRenderStage",
|
|
11
|
+
AFTER_CREATE_VRENDER_STAGE = "afterCreateVRenderStage",
|
|
12
|
+
BEFORE_CREATE_VRENDER_LAYER = "beforeCreateVRenderLayer",
|
|
13
|
+
AFTER_CREATE_VRENDER_LAYER = "afterCreateVRenderLayer",
|
|
14
|
+
BEFORE_STAGE_RESIZE = "beforeStageResize",
|
|
15
|
+
AFTER_STAGE_RESIZE = "afterStageResize",
|
|
16
|
+
BEFORE_VRENDER_DRAW = "beforeVRenderDraw",
|
|
17
|
+
AFTER_VRENDER_DRAW = "afterVRenderDraw",
|
|
18
|
+
BEFORE_MARK_JOIN = "beforeMarkJoin",
|
|
19
|
+
AFTER_MARK_JOIN = "afterMarkJoin",
|
|
20
|
+
BEFORE_MARK_UPDATE = "beforeMarkUpdate",
|
|
21
|
+
AFTER_MARK_UPDATE = "afterMarkUpdate",
|
|
22
|
+
BEFORE_MARK_STATE = "beforeMarkState",
|
|
23
|
+
AFTER_MARK_STATE = "afterMarkState",
|
|
24
|
+
BEFORE_MARK_ENCODE = "beforeMarkEncode",
|
|
25
|
+
AFTER_MARK_ENCODE = "afterMarkEncode",
|
|
26
|
+
BEFORE_DO_LAYOUT = "beforeDoLayout",
|
|
27
|
+
AFTER_DO_LAYOUT = "afterDoLayout",
|
|
28
|
+
BEFORE_MARK_LAYOUT_END = "beforeMarkLayoutEnd",
|
|
29
|
+
AFTER_MARK_LAYOUT_END = "afterMarkLayoutEnd",
|
|
30
|
+
BEFORE_DO_RENDER = "beforeDoRender",
|
|
31
|
+
AFTER_DO_RENDER = "afterDoRender",
|
|
32
|
+
BEFORE_MARK_RENDER_END = "beforeMarkRenderEnd",
|
|
33
|
+
AFTER_MARK_RENDER_END = "afterMarkRenderEnd",
|
|
34
|
+
BEFORE_CREATE_VRENDER_MARK = "beforeCreateVRenderMark",
|
|
35
|
+
AFTER_CREATE_VRENDER_MARK = "afterCreateVRenderMark",
|
|
36
|
+
BEFORE_ADD_VRENDER_MARK = "beforeAddVRenderMark",
|
|
37
|
+
AFTER_ADD_VRENDER_MARK = "afterAddVRenderMark",
|
|
38
|
+
AFTER_VRENDER_NEXT_RENDER = "afterVRenderNextRender",
|
|
39
|
+
BEFORE_ELEMENT_UPDATE_DATA = "beforeElementUpdateData",
|
|
40
|
+
AFTER_ELEMENT_UPDATE_DATA = "afterElementUpdateData",
|
|
41
|
+
BEFORE_ELEMENT_STATE = "beforeElementState",
|
|
42
|
+
AFTER_ELEMENT_STATE = "afterElementState",
|
|
43
|
+
BEFORE_ELEMENT_ENCODE = "beforeElementEncode",
|
|
44
|
+
AFTER_ELEMENT_ENCODE = "afterElementEncode",
|
|
45
|
+
ANIMATION_START = "animationStart",
|
|
46
|
+
ANIMATION_END = "animationEnd",
|
|
47
|
+
ELEMENT_ANIMATION_START = "elementAnimationStart",
|
|
48
|
+
ELEMENT_ANIMATION_END = "elementAnimationEnd",
|
|
49
|
+
ALL_ANIMATION_START = "allAnimationStart",
|
|
50
|
+
ALL_ANIMATION_END = "allAnimationEnd"
|
|
51
|
+
}
|
|
2
52
|
export declare const BASE_EVENTS: string[];
|
|
3
53
|
export declare enum ChartEvent {
|
|
4
54
|
initialized = "initialized",
|
|
@@ -43,7 +93,8 @@ export declare enum ChartEvent {
|
|
|
43
93
|
tooltipRelease = "tooltipRelease",
|
|
44
94
|
afterResize = "afterResize",
|
|
45
95
|
afterRender = "afterRender",
|
|
46
|
-
afterLayout = "afterLayout"
|
|
96
|
+
afterLayout = "afterLayout",
|
|
97
|
+
afterMarkLayoutEnd = "afterMarkLayoutEnd"
|
|
47
98
|
}
|
|
48
99
|
export declare enum Event_Source_Type {
|
|
49
100
|
chart = "chart",
|
package/types/core/factory.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import type { IChartConstructor, IChartOption, IChart, IChartSpecTransformerOption, IChartSpecTransformer } from '../chart/interface';
|
|
2
2
|
import type { ISeriesConstructor, ISeriesMarkInfo, ISeriesOption, SeriesMarkNameEnum } from '../series/interface';
|
|
3
3
|
import type { IComponentConstructor } from '../component/interface';
|
|
4
|
-
import type { IMarkOption, MarkConstructor } from '../mark/interface';
|
|
4
|
+
import type { IMarkDataTransform, IMarkOption, MarkConstructor } from '../mark/interface';
|
|
5
5
|
import type { IRegion, IRegionConstructor } from '../region/interface';
|
|
6
6
|
import type { IBaseModelSpecTransformer, IBaseModelSpecTransformerOption, IModelOption } from '../model/interface';
|
|
7
7
|
import type { Transform, Parser } from '@visactor/vdataset';
|
|
8
8
|
import type { ILayoutConstructor } from '../layout/interface';
|
|
9
|
-
import type { MarkAnimationSpec } from '@visactor/vgrammar-core';
|
|
10
9
|
import type { IChartPluginConstructor } from '../plugin/chart/interface';
|
|
11
10
|
import type { IComponentPluginConstructor } from '../plugin/components/interface';
|
|
11
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
12
|
+
import type { IStageEventPlugin, VRenderComponentOptions } from './interface';
|
|
13
|
+
import type { MarkAnimationSpec } from '../animation/interface';
|
|
14
|
+
import type { IBaseTriggerOptions, ITriggerConstructor } from '../interaction/interface/trigger';
|
|
12
15
|
export declare class Factory {
|
|
13
16
|
private static _charts;
|
|
14
17
|
private static _series;
|
|
15
18
|
private static _components;
|
|
19
|
+
private static _graphicComponents;
|
|
16
20
|
private static _marks;
|
|
17
21
|
private static _regions;
|
|
18
22
|
private static _animations;
|
|
@@ -31,10 +35,23 @@ export declare class Factory {
|
|
|
31
35
|
};
|
|
32
36
|
static registerChart(key: string, chart: IChartConstructor): void;
|
|
33
37
|
static registerSeries(key: string, series: ISeriesConstructor): void;
|
|
34
|
-
static registerComponent(key: string, cmp: IComponentConstructor, alwaysCheck?: boolean): void;
|
|
38
|
+
static registerComponent(key: string, cmp: IComponentConstructor, alwaysCheck?: boolean, createOrder?: number): void;
|
|
39
|
+
static registerGraphicComponent(key: string, creator: (attrs: any, options?: VRenderComponentOptions) => IGraphic): void;
|
|
40
|
+
static createGraphicComponent(componentType: string, attrs: any, options?: VRenderComponentOptions): IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>;
|
|
35
41
|
static registerMark(key: string, mark: MarkConstructor): void;
|
|
36
42
|
static registerRegion(key: string, region: IRegionConstructor): void;
|
|
37
43
|
static registerTransform(key: string, transform: Transform): void;
|
|
44
|
+
private static _grammarTransforms;
|
|
45
|
+
static registerGrammarTransform(type: string, transform: {
|
|
46
|
+
canProgressive?: boolean;
|
|
47
|
+
transform: IMarkDataTransform;
|
|
48
|
+
isGraphic?: boolean;
|
|
49
|
+
}): void;
|
|
50
|
+
static getGrammarTransform(type: string): {
|
|
51
|
+
canProgressive?: boolean;
|
|
52
|
+
transform: IMarkDataTransform<any, any, any>;
|
|
53
|
+
isGraphic?: boolean;
|
|
54
|
+
};
|
|
38
55
|
static registerLayout(key: string, layout: ILayoutConstructor): void;
|
|
39
56
|
static registerAnimation(key: string, animation: (params?: any, preset?: any) => MarkAnimationSpec): void;
|
|
40
57
|
static registerImplement(key: string, implement: (...args: any) => void): void;
|
|
@@ -50,6 +67,7 @@ export declare class Factory {
|
|
|
50
67
|
static getComponents(): {
|
|
51
68
|
cmp: IComponentConstructor;
|
|
52
69
|
alwaysCheck?: boolean;
|
|
70
|
+
createOrder: number;
|
|
53
71
|
}[];
|
|
54
72
|
static getComponentInKey(name: string): IComponentConstructor;
|
|
55
73
|
static getLayout(): ILayoutConstructor[];
|
|
@@ -65,4 +83,11 @@ export declare class Factory {
|
|
|
65
83
|
static getComponentPluginInType(type: string): IComponentPluginConstructor;
|
|
66
84
|
static registerFormatter(func: typeof Factory['_formatter']): void;
|
|
67
85
|
static getFormatter(): (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;
|
|
86
|
+
private static _stageEventPlugins;
|
|
87
|
+
static registerStageEventPlugin: (type: string, Plugin: IStageEventPlugin<any>) => void;
|
|
88
|
+
static getStageEventPlugin: (type: string) => IStageEventPlugin<any>;
|
|
89
|
+
private static _interactionTriggers;
|
|
90
|
+
static registerInteractionTrigger: (interactionType: string, interaction: ITriggerConstructor) => void;
|
|
91
|
+
static createInteractionTrigger(interactionType: string, options?: IBaseTriggerOptions): import("../interaction/interface/trigger").ITrigger<IBaseTriggerOptions>;
|
|
92
|
+
static hasInteractionTrigger(interactionType: string): boolean;
|
|
68
93
|
}
|
package/types/core/index.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ export * from '../typings/spec/common';
|
|
|
9
9
|
export * from '../event/interface';
|
|
10
10
|
export * from '../theme/interface';
|
|
11
11
|
export * from './interface';
|
|
12
|
+
export type { IMarkGraphic, IGraphicContext } from '../mark/interface/';
|
|
12
13
|
export * from '../constant/base';
|
|
13
14
|
export * from '../constant/data';
|
|
14
15
|
export * from '../typings/spec/index';
|
|
15
16
|
export * from '../typings/tooltip';
|
|
16
17
|
export * from '../theme/index';
|
|
17
|
-
export { vglobal } from '@visactor/vrender-core';
|
|
18
|
+
export { vglobal, createGroup, createRichText, createText, createArc, createArea, createRect, createLine, createSymbol } from '@visactor/vrender-core';
|