@visactor/vchart-types 1.12.4-alpha.0 → 1.12.4-alpha.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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart.d.ts +2 -0
- package/types/chart/chart-meta/data.d.ts +1 -2
- package/types/chart/gauge/interface.d.ts +1 -1
- package/types/chart/interface/chart.d.ts +1 -0
- package/types/chart/mosaic/mosaic.d.ts +0 -1
- package/types/chart/pie/interface.d.ts +2 -2
- package/types/chart/polar/interface.d.ts +2 -0
- package/types/chart/treemap/interface.d.ts +1 -1
- package/types/chart/venn/interface.d.ts +2 -2
- package/types/compile/interface/compiler.d.ts +15 -0
- package/types/compile/mark/compilable-mark.d.ts +7 -39
- package/types/compile/mark/interface.d.ts +5 -25
- package/types/component/axis/base-axis.d.ts +2 -2
- package/types/component/axis/cartesian/axis.d.ts +2 -0
- package/types/component/axis/cartesian/interface/common.d.ts +1 -0
- package/types/component/axis/interface/spec.d.ts +1 -0
- package/types/component/axis/mixin/util/break-data.d.ts +1 -1
- package/types/component/axis/polar/axis.d.ts +1 -1
- package/types/component/axis/polar/interface/spec.d.ts +3 -1
- package/types/component/axis/util.d.ts +3 -0
- package/types/component/custom-mark/custom-mark.d.ts +1 -4
- package/types/component/data-zoom/data-filter-base-component.d.ts +3 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +0 -3
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +0 -3
- package/types/component/geo/geo-coordinate.d.ts +7 -0
- package/types/component/interface/common.d.ts +1 -1
- package/types/component/interface/index.d.ts +0 -1
- package/types/component/label/base-label.d.ts +1 -2
- package/types/component/label/interface.d.ts +2 -2
- package/types/component/label/label.d.ts +0 -1
- package/types/component/label/total-label.d.ts +1 -1
- package/types/component/label/util.d.ts +5 -5
- package/types/component/legend/util.d.ts +2 -2
- package/types/component/marker/base-marker.d.ts +4 -1
- package/types/component/marker/interface.d.ts +9 -2
- package/types/component/marker/utils.d.ts +4 -4
- package/types/component/player/player.d.ts +1 -3
- package/types/component/title/interface/spec.d.ts +3 -3
- package/types/component/title/interface/theme.d.ts +1 -1
- package/types/component/tooltip/constant.d.ts +5 -4
- package/types/component/tooltip/interface/common.d.ts +1 -1
- package/types/component/tooltip/interface/spec.d.ts +23 -3
- package/types/component/tooltip/interface/theme.d.ts +2 -2
- package/types/component/tooltip/processor/base.d.ts +4 -6
- package/types/component/tooltip/tooltip.d.ts +13 -6
- package/types/component/tooltip/utils/common.d.ts +6 -4
- package/types/component/tooltip/utils/get-spec.d.ts +4 -4
- package/types/component/tooltip/utils/get-value.d.ts +1 -2
- package/types/component/tooltip/utils/index.d.ts +0 -1
- package/types/component/util.d.ts +3 -0
- package/types/constant/layout.d.ts +1 -0
- package/types/core/vchart.d.ts +2 -1
- package/types/data/initialize.d.ts +1 -2
- package/types/data/transforms/pie.d.ts +3 -0
- package/types/interaction/interaction.d.ts +2 -0
- package/types/interaction/interface.d.ts +2 -0
- package/types/mark/interface/common.d.ts +10 -0
- package/types/model/base-model.d.ts +2 -2
- package/types/model/interface.d.ts +14 -0
- package/types/model/tooltip-helper.d.ts +8 -6
- package/types/plugin/chart/media-query/media-query.d.ts +1 -0
- package/types/plugin/chart/plugin-service.d.ts +2 -0
- package/types/plugin/components/axis-sync/zero-align-transform.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +1 -16
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +1 -2
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +3 -5
- package/types/region/interface.d.ts +3 -1
- package/types/series/area/area.d.ts +2 -0
- package/types/series/bar/bar.d.ts +4 -4
- package/types/series/bar/interface.d.ts +5 -1
- package/types/series/base/base-series.d.ts +8 -7
- package/types/series/base/tooltip-helper.d.ts +30 -6
- package/types/series/box-plot/box-plot.d.ts +1 -0
- package/types/series/box-plot/tooltip-helper.d.ts +2 -2
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/correlation/correlation.d.ts +1 -0
- package/types/series/dot/dot.d.ts +0 -1
- package/types/series/dot/tooltip-helper.d.ts +8 -2
- package/types/series/funnel/funnel.d.ts +2 -0
- package/types/series/funnel/interface.d.ts +3 -1
- package/types/series/gauge/interface.d.ts +1 -1
- package/types/series/gauge/pointer-tooltip-helper.d.ts +6 -0
- package/types/series/heatmap/tooltip-helper.d.ts +2 -3
- package/types/series/interface/common.d.ts +1 -9
- package/types/series/interface/tooltip-helper.d.ts +5 -4
- package/types/series/link/tooltip-helper.d.ts +5 -2
- package/types/series/liquid/tooltip-helper.d.ts +4 -5
- package/types/series/map/map.d.ts +1 -0
- package/types/series/mixin/line-mixin.d.ts +2 -2
- package/types/series/pie/interface.d.ts +3 -3
- package/types/series/pie/pie.d.ts +1 -0
- package/types/series/polar/animation.d.ts +9 -11
- package/types/series/progress/linear/tooltip-helper.d.ts +2 -3
- package/types/series/radar/animation.d.ts +0 -3
- package/types/series/range-area/tooltip-helper.d.ts +1 -3
- package/types/series/range-column/tooltip-helper.d.ts +1 -2
- package/types/series/sankey/interface.d.ts +1 -0
- package/types/series/sankey/sankey.d.ts +2 -2
- package/types/series/sankey/tooltip-helper.d.ts +3 -3
- package/types/series/waterfall/waterfall.d.ts +1 -0
- package/types/typings/spec/common.d.ts +10 -5
- package/types/typings/tooltip/position.d.ts +1 -0
- package/types/typings/tooltip/shape.d.ts +0 -1
- package/types/typings/tooltip/tooltip.d.ts +7 -0
- package/types/util/array.d.ts +1 -1
- package/types/util/math.d.ts +1 -0
- package/types/util/scale.d.ts +1 -1
|
@@ -110,6 +110,7 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
110
110
|
updateGlobalScaleDomain(): void;
|
|
111
111
|
updateGlobalScale(result: IUpdateSpecResult): void;
|
|
112
112
|
updateGlobalScaleTheme(): void;
|
|
113
|
+
private _getSpecKeys;
|
|
113
114
|
updateSpec(spec: T): {
|
|
114
115
|
change: boolean;
|
|
115
116
|
reMake: boolean;
|
|
@@ -140,6 +141,7 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
140
141
|
setSelected(datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
141
142
|
setHovered(datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
142
143
|
clearState(state: string): void;
|
|
144
|
+
clearAllStates(): void;
|
|
143
145
|
clearSelected(): void;
|
|
144
146
|
clearHovered(): void;
|
|
145
147
|
private _initEvent;
|
|
@@ -5,9 +5,8 @@ import type { StringOrNumber } from '../../typings';
|
|
|
5
5
|
export declare class ChartData {
|
|
6
6
|
protected _dataArr: DataView[];
|
|
7
7
|
get dataList(): DataView[];
|
|
8
|
-
protected _onError: (...args: any[]) => void;
|
|
9
8
|
protected _dataSet: DataSet;
|
|
10
|
-
constructor(dataSet: DataSet
|
|
9
|
+
constructor(dataSet: DataSet);
|
|
11
10
|
parseData(dataSpec: IData): void;
|
|
12
11
|
updateData(dataSpec: IData, fullUp?: boolean, forceMerge?: boolean): boolean;
|
|
13
12
|
private _dataValueForEach;
|
|
@@ -3,7 +3,7 @@ import type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from '../../series/gau
|
|
|
3
3
|
import type { ILinearAxisSpec } from '../../component/axis/interface';
|
|
4
4
|
import type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';
|
|
5
5
|
import type { IPolarChartSpec } from '../polar';
|
|
6
|
-
export interface IGaugeChartSpec extends Omit<IPolarChartSpec, 'axes'>, Omit<IGaugePointerSeriesSpec, 'data' | 'type' | 'morph'> {
|
|
6
|
+
export interface IGaugeChartSpec extends Omit<IPolarChartSpec, 'axes'>, Omit<IGaugePointerSeriesSpec, 'data' | 'type' | 'morph' | 'tooltip'> {
|
|
7
7
|
type: 'gauge';
|
|
8
8
|
gauge?: Omit<IGaugeSeriesSpec, 'data'> | Omit<ICircularProgressSeriesSpec, 'data'>;
|
|
9
9
|
axes?: (IPolarAxisSpec | ILinearAxisSpec)[];
|
|
@@ -84,6 +84,7 @@ export interface IChart extends ICompilable {
|
|
|
84
84
|
setSelected: (datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
|
|
85
85
|
setHovered: (datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
|
|
86
86
|
clearState: (state: string) => void;
|
|
87
|
+
clearAllStates: () => void;
|
|
87
88
|
clearSelected: () => void;
|
|
88
89
|
clearHovered: () => void;
|
|
89
90
|
updateViewBox: (viewBox: IBoundsLike, reLayout: boolean) => void;
|
|
@@ -12,7 +12,6 @@ export declare class MosaicChart<T extends IMosaicChartSpec = IMosaicChartSpec>
|
|
|
12
12
|
readonly type: string;
|
|
13
13
|
readonly seriesType: string;
|
|
14
14
|
protected _stack: Stack;
|
|
15
|
-
afterCompile(): void;
|
|
16
15
|
protected _beforeInit(): void;
|
|
17
16
|
protected _initStack(): void;
|
|
18
17
|
handleAfterStackRegion: (region: IRegion, stackValueGroup: {
|
|
@@ -3,9 +3,9 @@ import type { IIndicatorSpec } from '../../component/indicator/interface';
|
|
|
3
3
|
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
4
4
|
export interface IPieChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IPieSeriesSpec> {
|
|
5
5
|
type: 'pie';
|
|
6
|
-
indicator?: IIndicatorSpec;
|
|
6
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
7
7
|
}
|
|
8
8
|
export interface IPie3dChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IPie3dSeriesSpec> {
|
|
9
9
|
type: 'pie3d';
|
|
10
|
-
indicator?: IIndicatorSpec;
|
|
10
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
11
11
|
}
|
|
@@ -2,8 +2,10 @@ import type { IPointLike } from '@visactor/vutils';
|
|
|
2
2
|
import type { IPolarAxisSpec } from '../../component/axis/polar/interface';
|
|
3
3
|
import type { IPolarCrosshairSpec } from '../../component/crosshair/interface';
|
|
4
4
|
import type { IChartSpec, ILayoutRect } from '../../typings';
|
|
5
|
+
import type { IIndicatorSpec } from '../../component';
|
|
5
6
|
export interface IPolarChartSpec extends IChartSpec {
|
|
6
7
|
axes?: IPolarAxisSpec[];
|
|
7
8
|
crosshair?: IPolarCrosshairSpec | IPolarCrosshairSpec[];
|
|
8
9
|
layoutRadius?: 'auto' | number | ((layoutRect: ILayoutRect, center: IPointLike) => number);
|
|
10
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
9
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ITreemapSeriesSpec } from '../../series/treemap/interface';
|
|
2
2
|
import type { IChartSpec } from '../../typings/spec/common';
|
|
3
|
-
export interface ITreemapChartSpec extends Omit<IChartSpec, 'data' | 'series'>, ITreemapSeriesSpec {
|
|
3
|
+
export interface ITreemapChartSpec extends Omit<IChartSpec, 'data' | 'series'>, Omit<ITreemapSeriesSpec, 'tooltip'> {
|
|
4
4
|
type: 'treemap';
|
|
5
5
|
series?: ITreemapSeriesSpec[];
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IVennSeriesSpec } from '../../series/venn/interface';
|
|
2
|
-
import type { IChartSpec } from '../../typings/spec/common';
|
|
3
|
-
export interface IVennChartSpec extends
|
|
2
|
+
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface IVennChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IVennSeriesSpec> {
|
|
4
4
|
type: 'venn';
|
|
5
5
|
series?: IVennSeriesSpec[];
|
|
6
6
|
}
|
|
@@ -12,12 +12,27 @@ export type IOptimizeType = {
|
|
|
12
12
|
skipRenderWithOutRange?: boolean;
|
|
13
13
|
disableCheckGraphicWidthOutRange?: boolean;
|
|
14
14
|
};
|
|
15
|
+
export interface GestureConfig {
|
|
16
|
+
press?: {
|
|
17
|
+
time?: number;
|
|
18
|
+
threshold?: number;
|
|
19
|
+
};
|
|
20
|
+
swipe?: {
|
|
21
|
+
threshold?: number;
|
|
22
|
+
velocity?: number;
|
|
23
|
+
};
|
|
24
|
+
tap?: {
|
|
25
|
+
interval?: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
15
28
|
export interface IRenderOption {
|
|
16
29
|
mode?: RenderMode;
|
|
30
|
+
gestureConfig?: GestureConfig;
|
|
17
31
|
modeParams?: {
|
|
18
32
|
tooltipCanvasId?: StringOrNumber;
|
|
19
33
|
[key: string]: any;
|
|
20
34
|
} | unknown;
|
|
35
|
+
autoRefreshDpr?: boolean;
|
|
21
36
|
dpr?: number;
|
|
22
37
|
interactive?: boolean;
|
|
23
38
|
viewBox?: IBoundsLike;
|
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
import type { IElement, IGroupMark, IMark, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
1
|
+
import type { IElement, IGroupMark, IMark, IMarkConfig, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
2
2
|
import type { DataView } from '@visactor/vdataset';
|
|
3
3
|
import { GrammarItem } from '../grammar-item';
|
|
4
4
|
import type { Maybe, Datum, StringOrNumber } from '../../typings';
|
|
5
|
-
import type {
|
|
5
|
+
import type { IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
6
6
|
import type { IModel } from '../../model/interface';
|
|
7
7
|
import { MarkStateManager } from './mark-state-manager';
|
|
8
|
-
import type { ICompilableMark, IMarkDataInitOption, ICompilableMarkOption, StateValueType, IMarkCompileOption, IAttributeOpt
|
|
8
|
+
import type { ICompilableMark, IMarkDataInitOption, ICompilableMarkOption, StateValueType, IMarkCompileOption, IAttributeOpt } from './interface';
|
|
9
9
|
import { MarkData } from './mark-data';
|
|
10
10
|
import { GrammarType } from '../interface/compilable-item';
|
|
11
11
|
import type { IEvent } from '../../event/interface';
|
|
12
|
-
import type { ICustomPath2D } from '@visactor/vrender-core';
|
|
13
12
|
export declare abstract class CompilableMark extends GrammarItem implements ICompilableMark {
|
|
14
13
|
readonly grammarType = GrammarType.mark;
|
|
15
14
|
readonly type: MarkType;
|
|
16
15
|
readonly name: string;
|
|
17
16
|
readonly key: ICompilableMark['key'];
|
|
18
|
-
protected
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
protected _support3d?: boolean;
|
|
22
|
-
getSupport3d(): boolean;
|
|
23
|
-
setSupport3d(support3d: boolean): void;
|
|
24
|
-
protected _facet?: string;
|
|
25
|
-
getFacet(): string;
|
|
26
|
-
setFacet(facet: string): void;
|
|
27
|
-
protected _interactive: boolean;
|
|
28
|
-
getInteractive(): boolean;
|
|
29
|
-
setInteractive(interactive: boolean): void;
|
|
30
|
-
protected _zIndex: number;
|
|
31
|
-
getZIndex(): number;
|
|
32
|
-
setZIndex(zIndex: number): void;
|
|
17
|
+
protected _markConfig: IMarkConfig;
|
|
18
|
+
getMarkConfig(): IMarkConfig;
|
|
19
|
+
setMarkConfig(config: IMarkConfig): void;
|
|
33
20
|
protected _visible: boolean;
|
|
34
21
|
getVisible(): boolean;
|
|
35
22
|
setVisible(visible: boolean): void;
|
|
@@ -56,28 +43,9 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
56
43
|
private _skipBeforeLayouted;
|
|
57
44
|
setSkipBeforeLayouted(skip: boolean): void;
|
|
58
45
|
getSkipBeforeLayouted(): boolean;
|
|
59
|
-
protected _morph: boolean;
|
|
60
|
-
getMorph(): boolean;
|
|
61
|
-
setMorph(morph: boolean): void;
|
|
62
|
-
protected _morphKey?: string;
|
|
63
|
-
getMorphKey(): string;
|
|
64
|
-
setMorphKey(morphKey: string): void;
|
|
65
|
-
protected _morphElementKey?: string;
|
|
66
|
-
getMorphElementKey(): string;
|
|
67
|
-
setMorphElementKey(key: string): void;
|
|
68
46
|
protected _groupKey?: string;
|
|
69
47
|
getGroupKey(): string;
|
|
70
48
|
setGroupKey(groupKey: string): void;
|
|
71
|
-
protected _progressiveConfig: IMarkProgressiveConfig;
|
|
72
|
-
getProgressiveConfig(): IMarkProgressiveConfig;
|
|
73
|
-
setProgressiveConfig(config: IMarkProgressiveConfig): void;
|
|
74
|
-
protected _setCustomizedShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
|
|
75
|
-
setCustomizedShapeCallback(callback: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D): void;
|
|
76
|
-
protected _enableSegments: boolean;
|
|
77
|
-
setEnableSegments(enable: boolean): void;
|
|
78
|
-
protected _clip: MarkClip;
|
|
79
|
-
getClip(): MarkClip;
|
|
80
|
-
setClip(clip: MarkClip): void;
|
|
81
49
|
protected _stateSort?: (stateA: string, stateB: string) => number;
|
|
82
50
|
setStateSortCallback(stateSort: (stateA: string, stateB: string) => number): void;
|
|
83
51
|
protected _option: ICompilableMarkOption;
|
|
@@ -101,7 +69,7 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
101
69
|
compileEncode(): void;
|
|
102
70
|
compileState(): void;
|
|
103
71
|
compileAnimation(): void;
|
|
104
|
-
compileContext(): void;
|
|
72
|
+
compileContext(extraContext?: any): void;
|
|
105
73
|
compileSignal(): void;
|
|
106
74
|
protected _computeAttribute(key: string, state: StateValueType): (datum: Datum, opt: IAttributeOpt) => any;
|
|
107
75
|
protected compileCommonAttributeCallback(key: string, state: string): MarkFunctionCallback<any>;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
2
2
|
import type { IModel } from '../../model/interface';
|
|
3
3
|
import type { GrammarItemCompileOption, GrammarItemInitOption } from '../interface';
|
|
4
4
|
import type { IGrammarItem } from '../interface';
|
|
5
5
|
import type { MarkStateManager } from './mark-state-manager';
|
|
6
6
|
import type { DataView } from '@visactor/vdataset';
|
|
7
|
-
import type { IAnimate, IAnimateArranger, IElement, IGroupMark, IMark, MarkAnimationSpec, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
7
|
+
import type { IAnimate, IAnimateArranger, IElement, IGroupMark, IMark, IMarkConfig, MarkAnimationSpec, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
8
8
|
import type { Maybe, Datum, StringOrNumber } from '../../typings';
|
|
9
9
|
import type { MarkData } from './mark-data';
|
|
10
10
|
import type { IRegion } from '../../region/interface';
|
|
11
|
-
import type { ICustomPath2D, IGraphic } from '@visactor/vrender-core';
|
|
12
11
|
export interface ICompilableMarkOption extends GrammarItemInitOption {
|
|
13
12
|
key?: string | ((datum: Datum) => string);
|
|
14
13
|
groupKey?: string;
|
|
15
14
|
skipBeforeLayouted?: boolean;
|
|
16
|
-
support3d?: boolean;
|
|
17
15
|
mode?: '2d' | '3d';
|
|
18
|
-
skipTheme?: boolean;
|
|
19
16
|
noSeparateStyle?: boolean;
|
|
20
17
|
}
|
|
21
18
|
export interface ICompilableMark extends IGrammarItem {
|
|
@@ -28,8 +25,6 @@ export interface ICompilableMark extends IGrammarItem {
|
|
|
28
25
|
setData: (d: MarkData) => void;
|
|
29
26
|
getDataView: () => DataView | undefined;
|
|
30
27
|
setDataView: (d?: DataView, productId?: string) => void;
|
|
31
|
-
getFacet: () => string | undefined;
|
|
32
|
-
setFacet: (facet: string) => void;
|
|
33
28
|
state: MarkStateManager;
|
|
34
29
|
readonly stateStyle: IMarkStateStyle<any>;
|
|
35
30
|
hasState: (state: string) => boolean;
|
|
@@ -40,38 +35,23 @@ export interface ICompilableMark extends IGrammarItem {
|
|
|
40
35
|
updateLayoutState: (noRender?: boolean, recursion?: boolean) => void;
|
|
41
36
|
updateMarkState: (key: string) => void;
|
|
42
37
|
setTransform: (transform: TransformSpec[] | Nil) => void;
|
|
43
|
-
getInteractive: () => boolean;
|
|
44
|
-
setInteractive: (interactive: boolean) => void;
|
|
45
38
|
setAnimationConfig: (config: Partial<MarkAnimationSpec>) => void;
|
|
46
39
|
getAnimationConfig: () => Partial<MarkAnimationSpec>;
|
|
47
|
-
getZIndex: () => number;
|
|
48
|
-
setZIndex: (zIndex: number) => void;
|
|
49
40
|
getVisible: () => boolean;
|
|
50
41
|
setVisible: (visible: boolean) => void;
|
|
51
|
-
getMorph: () => boolean;
|
|
52
|
-
setMorph: (morph: boolean) => void;
|
|
53
|
-
getProgressiveConfig: () => IMarkProgressiveConfig;
|
|
54
|
-
setProgressiveConfig: (config: IMarkProgressiveConfig) => void;
|
|
55
|
-
getMorphKey: () => string | undefined;
|
|
56
|
-
setMorphKey: (morphKey: string) => void;
|
|
57
|
-
getMorphElementKey: () => string | undefined;
|
|
58
|
-
setMorphElementKey: (morphKey: string) => void;
|
|
59
42
|
getGroupKey: () => string | undefined;
|
|
60
43
|
setGroupKey: (groupKey: string) => void;
|
|
61
44
|
getUserId: () => StringOrNumber | undefined;
|
|
62
45
|
setUserId: (id: StringOrNumber) => void;
|
|
63
|
-
getSupport3d: () => boolean | undefined;
|
|
64
|
-
setSupport3d: (support3d: boolean) => void;
|
|
65
|
-
getClip: () => MarkClip | undefined;
|
|
66
|
-
setClip: (clip: MarkClip) => void;
|
|
67
46
|
compile: (option?: IMarkCompileOption) => void;
|
|
68
47
|
getProduct: () => Maybe<IMark>;
|
|
69
48
|
getProductElements: () => Maybe<IMark['elements']>;
|
|
70
49
|
getMarks: () => ICompilableMark[];
|
|
71
50
|
setSkipBeforeLayouted: (skip: boolean) => void;
|
|
72
51
|
getSkipBeforeLayouted: () => boolean;
|
|
73
|
-
setCustomizedShapeCallback: (callback: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D) => void;
|
|
74
52
|
setStateSortCallback: (stateSort: (stateA: string, stateB: string) => number) => void;
|
|
53
|
+
getMarkConfig: () => IMarkConfig;
|
|
54
|
+
setMarkConfig: (config: IMarkConfig) => void;
|
|
75
55
|
runAnimationByState: (animationState?: string) => IAnimateArranger;
|
|
76
56
|
stopAnimationByState: (animationState?: string) => IAnimate;
|
|
77
57
|
pauseAnimationByState: (animationState: string) => IAnimate;
|
|
@@ -83,6 +63,7 @@ export interface IMarkDataInitOption extends ICompilableMarkOption {
|
|
|
83
63
|
export interface IMarkCompileOption extends GrammarItemCompileOption {
|
|
84
64
|
group?: string | IGroupMark;
|
|
85
65
|
ignoreChildren?: boolean;
|
|
66
|
+
context?: any;
|
|
86
67
|
}
|
|
87
68
|
export interface IStateInfo {
|
|
88
69
|
stateValue: StateValue;
|
|
@@ -150,4 +131,3 @@ export interface ISeriesMarkAttributeContext extends IModelMarkAttributeContext
|
|
|
150
131
|
seriesColor: (seriesValue?: string | number) => string;
|
|
151
132
|
getRegion: () => IRegion;
|
|
152
133
|
}
|
|
153
|
-
export type MarkClip = false | IGraphic[] | ((elements: IElement[]) => IGraphic[]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ITickDataOpt } from '@visactor/vrender-components';
|
|
2
2
|
import type { IBaseScale } from '@visactor/vscale';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
4
4
|
import type { IOrientType, IPolarOrientType, StringOrNumber, CoordinateType } from '../../typings';
|
|
5
5
|
import { BaseComponent } from '../base/base-component';
|
|
6
6
|
import { CompilableData } from '../../compile/data';
|
|
@@ -42,6 +42,7 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
42
42
|
protected abstract collectSeriesField(depth: number, series: ISeries): string | string[];
|
|
43
43
|
abstract transformScaleDomain(): void;
|
|
44
44
|
protected abstract updateScaleRange(): boolean;
|
|
45
|
+
protected abstract getDefaultInteractive(): boolean;
|
|
45
46
|
protected _dataFieldText: string;
|
|
46
47
|
protected _axisMark: IComponentMark;
|
|
47
48
|
protected _gridMark: IComponentMark;
|
|
@@ -77,7 +78,6 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
77
78
|
reSize: boolean;
|
|
78
79
|
reCompile: boolean;
|
|
79
80
|
};
|
|
80
|
-
protected _delegateAxisContainerEvent(component: IGroup): void;
|
|
81
81
|
protected _getAxisAttributes(): any;
|
|
82
82
|
protected _getGridAttributes(): {
|
|
83
83
|
alternateColor: any;
|
|
@@ -35,6 +35,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
35
35
|
};
|
|
36
36
|
protected _orient: IOrientType;
|
|
37
37
|
getOrient(): IOrientType;
|
|
38
|
+
protected getDefaultInteractive(): boolean;
|
|
38
39
|
protected _autoIndentOnce: boolean;
|
|
39
40
|
protected _hasAutoIndent: boolean;
|
|
40
41
|
set autoIndentOnce(v: boolean);
|
|
@@ -107,4 +108,5 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
107
108
|
onDataUpdate(): void;
|
|
108
109
|
private _appendAxisUnit;
|
|
109
110
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
111
|
+
private _getLabelOverflowLimit;
|
|
110
112
|
}
|
|
@@ -17,6 +17,7 @@ export type ICartesianTitle = ITitle & {
|
|
|
17
17
|
export type ICartesianLabel = ILabel & {
|
|
18
18
|
flush?: boolean;
|
|
19
19
|
lastVisible?: boolean | null;
|
|
20
|
+
firstVisible?: boolean | null;
|
|
20
21
|
containerAlign?: 'left' | 'right' | 'center' | 'top' | 'bottom' | 'middle';
|
|
21
22
|
} & AxisLabelOverlap;
|
|
22
23
|
export interface ILinearAxis extends IAxis {
|
|
@@ -17,6 +17,7 @@ export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center
|
|
|
17
17
|
}
|
|
18
18
|
export type ILinearAxisBreakSpec = Omit<AxisBreakProps, 'rawRange'> & {
|
|
19
19
|
gap?: number | string;
|
|
20
|
+
scopeType?: 'count' | 'length';
|
|
20
21
|
};
|
|
21
22
|
export interface ILinearAxisSpec {
|
|
22
23
|
min?: number;
|
|
@@ -34,6 +34,7 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
34
34
|
get endAngle(): number;
|
|
35
35
|
protected _orient: IPolarOrientType;
|
|
36
36
|
getOrient(): IPolarOrientType;
|
|
37
|
+
protected getDefaultInteractive(): boolean;
|
|
37
38
|
protected _groupScales: IBaseScale[];
|
|
38
39
|
getGroupScales(): IBaseScale[];
|
|
39
40
|
private _axisStyle;
|
|
@@ -47,7 +48,6 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
47
48
|
onRender(ctx: any): void;
|
|
48
49
|
changeRegions(): void;
|
|
49
50
|
protected _tickTransformOption(): IPolarTickDataOpt;
|
|
50
|
-
afterCompile(): void;
|
|
51
51
|
protected updateScaleRange(): boolean;
|
|
52
52
|
protected collectSeriesField(depth: number, series: IPolarSeries): string | string[];
|
|
53
53
|
protected abstract computeDomain(data: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { IPointLike } from '@visactor/vutils';
|
|
2
|
+
import type { AxisLabelOverlap } from '@visactor/vrender-components';
|
|
2
3
|
import type { ILayoutRect, IPolarOrientType } from '../../../../typings';
|
|
3
4
|
import type { IBandAxisSpec, IDomainLine, ILinearAxisSpec, ITitle, ILabel, ICommonAxisSpec } from '../../interface';
|
|
4
5
|
import type { IPolarGrid } from './common';
|
|
5
6
|
export type IPolarAxisSpec = IPolarLinearAxisSpec | IPolarBandAxisSpec;
|
|
7
|
+
export type IPolarAxisLabel = ILabel & Pick<AxisLabelOverlap, 'autoHide' | 'autoHideMethod' | 'autoHideSeparation' | 'autoLimit' | 'limitEllipsis' | 'layoutFunc' | 'autoWrap'>;
|
|
6
8
|
export type IPolarAxisCommonSpec = Omit<ICommonAxisSpec, 'center'> & {
|
|
7
9
|
layoutRadius?: 'auto' | number | ((layoutRect: ILayoutRect, center: IPointLike) => number);
|
|
8
10
|
inside?: boolean;
|
|
@@ -11,7 +13,7 @@ export type IPolarAxisCommonSpec = Omit<ICommonAxisSpec, 'center'> & {
|
|
|
11
13
|
radius?: number;
|
|
12
14
|
subGrid?: IPolarGrid;
|
|
13
15
|
domainLine?: IDomainLine;
|
|
14
|
-
label?:
|
|
16
|
+
label?: IPolarAxisLabel;
|
|
15
17
|
title?: ITitle;
|
|
16
18
|
innerRadius?: number;
|
|
17
19
|
outerRadius?: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { IOrientType, IPolarOrientType } from '../../typings';
|
|
2
2
|
import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface';
|
|
3
3
|
import type { ITheme } from '../../theme';
|
|
4
|
+
import type { IAxisHelper } from './cartesian';
|
|
5
|
+
import type { IPolarAxisHelper } from './polar';
|
|
4
6
|
export declare const DEFAULT_TITLE_STYLE: {
|
|
5
7
|
left: {
|
|
6
8
|
textAlign: string;
|
|
@@ -33,3 +35,4 @@ export declare function getAxisItem(value: any, normalizedValue: number): {
|
|
|
33
35
|
value: number;
|
|
34
36
|
rawValue: any;
|
|
35
37
|
};
|
|
38
|
+
export declare function shouldUpdateAxis(preHelper: IAxisHelper | IPolarAxisHelper, curHelper: IAxisHelper | IPolarAxisHelper, forceUpdate: boolean): boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { BaseComponent } from '../base/base-component';
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
|
-
import type { IModelRenderOption
|
|
4
|
+
import type { IModelRenderOption } from '../../model/interface';
|
|
5
5
|
import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec, ILayoutRect } from '../../typings';
|
|
6
|
-
import type { Maybe } from '@visactor/vutils';
|
|
7
6
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
7
|
import type { IModelMarkAttributeContext } from '../../compile/mark/interface';
|
|
9
8
|
export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMarkType>> {
|
|
@@ -15,7 +14,6 @@ export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMark
|
|
|
15
14
|
layoutZIndex: number;
|
|
16
15
|
layoutLevel: number;
|
|
17
16
|
protected _spec: ICustomMarkSpec<Exclude<EnableMarkType, 'group'>> | ICustomMarkGroupSpec;
|
|
18
|
-
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
19
17
|
created(): void;
|
|
20
18
|
protected _markAttributeContext: IModelMarkAttributeContext;
|
|
21
19
|
getMarkAttributeContext(): IModelMarkAttributeContext;
|
|
@@ -33,7 +31,6 @@ export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMark
|
|
|
33
31
|
changeRegions(regions: IRegion[]): void;
|
|
34
32
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
35
33
|
onRender(ctx: IModelRenderOption): void;
|
|
36
|
-
afterCompile(): void;
|
|
37
34
|
private _getMarkAttributeContext;
|
|
38
35
|
private _getLayoutRect;
|
|
39
36
|
getBoundsInRect(rect: ILayoutRect): {
|
|
@@ -36,6 +36,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
36
36
|
protected _maxSpan: number;
|
|
37
37
|
protected _spanCache: number;
|
|
38
38
|
protected _shouldChange: boolean;
|
|
39
|
+
protected _domainCache: any;
|
|
39
40
|
protected _field: string | undefined;
|
|
40
41
|
protected _stateField: string;
|
|
41
42
|
protected _valueField?: string;
|
|
@@ -113,7 +114,9 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
113
114
|
protected _handleChartMove: (value: number, rate: number) => boolean;
|
|
114
115
|
protected _initCommonEvent(): void;
|
|
115
116
|
updateLayoutAttribute(): void;
|
|
117
|
+
protected _autoVisible(isShown: boolean): void;
|
|
116
118
|
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
|
|
119
|
+
onLayoutEnd(ctx: any): void;
|
|
117
120
|
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
118
121
|
hide(): void;
|
|
119
122
|
show(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Maybe } from '@visactor/vutils';
|
|
2
1
|
import type { IComponentOption } from '../../interface';
|
|
3
2
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
4
3
|
import { DataFilterBaseComponent } from '../data-filter-base-component';
|
|
@@ -7,7 +6,6 @@ import type { IRectGraphicAttribute, ISymbolGraphicAttribute, IGraphic } from '@
|
|
|
7
6
|
import type { Datum, ILayoutType } from '../../../typings';
|
|
8
7
|
import type { ILinearScale, IBaseScale } from '@visactor/vscale';
|
|
9
8
|
import type { IDataZoomSpec } from './interface';
|
|
10
|
-
import type { IModelSpecInfo } from '../../../model/interface';
|
|
11
9
|
import { DataZoomSpecTransformer } from './data-zoom-transformer';
|
|
12
10
|
export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends DataFilterBaseComponent<T> {
|
|
13
11
|
static type: ComponentTypeEnum;
|
|
@@ -27,7 +25,6 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
|
|
|
27
25
|
protected _startHandlerSize: number;
|
|
28
26
|
protected _endHandlerSize: number;
|
|
29
27
|
protected _isReverseCache: boolean;
|
|
30
|
-
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
31
28
|
constructor(spec: T, options: IComponentOption);
|
|
32
29
|
created(): void;
|
|
33
30
|
setAttrFromSpec(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Maybe } from '@visactor/vutils';
|
|
2
1
|
import type { IComponentOption } from '../../interface';
|
|
3
2
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
4
3
|
import { DataFilterBaseComponent } from '../data-filter-base-component';
|
|
@@ -7,7 +6,6 @@ import { ScrollBar as ScrollBarComponent } from '@visactor/vrender-components';
|
|
|
7
6
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
7
|
import type { IScrollBarSpec } from './interface';
|
|
9
8
|
import type { ILayoutType } from '../../../typings/layout';
|
|
10
|
-
import type { IModelSpecInfo } from '../../../model/interface';
|
|
11
9
|
export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extends DataFilterBaseComponent<T> {
|
|
12
10
|
static type: ComponentTypeEnum;
|
|
13
11
|
type: ComponentTypeEnum;
|
|
@@ -18,7 +16,6 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
|
|
|
18
16
|
layoutLevel: number;
|
|
19
17
|
layoutType: ILayoutType;
|
|
20
18
|
protected _component: ScrollBarComponent;
|
|
21
|
-
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
22
19
|
constructor(spec: T, options: IComponentOption);
|
|
23
20
|
setAttrFromSpec(): void;
|
|
24
21
|
onLayoutEnd(ctx: any): void;
|
|
@@ -56,6 +56,13 @@ export declare class GeoCoordinate extends BaseComponent<IGeoRegionSpec> impleme
|
|
|
56
56
|
invert(point: [number, number]): any;
|
|
57
57
|
private evaluateProjection;
|
|
58
58
|
protected _initCenterCache(): void;
|
|
59
|
+
_compareSpec(spec: IGeoRegionSpec, prevSpec: IGeoRegionSpec): {
|
|
60
|
+
change: boolean;
|
|
61
|
+
reMake: boolean;
|
|
62
|
+
reRender: boolean;
|
|
63
|
+
reSize: boolean;
|
|
64
|
+
reCompile: boolean;
|
|
65
|
+
};
|
|
59
66
|
release(): void;
|
|
60
67
|
}
|
|
61
68
|
export declare const registerGeoCoordinate: () => void;
|
|
@@ -33,7 +33,7 @@ export interface IComponent extends ILayoutModel {
|
|
|
33
33
|
export interface IComponentConstructor extends IModelConstructor {
|
|
34
34
|
type: string;
|
|
35
35
|
specKey?: string;
|
|
36
|
-
getSpecInfo
|
|
36
|
+
getSpecInfo?: (chartSpec: any, chartSpecInfo?: IChartSpecInfo) => Maybe<IModelSpecInfo[]>;
|
|
37
37
|
createComponent: (specInfo: IModelSpecInfo, options: IComponentOption) => IComponent;
|
|
38
38
|
new (spec: any, options: IComponentOption): IComponent;
|
|
39
39
|
}
|
|
@@ -4,7 +4,7 @@ import { ComponentTypeEnum } from '../interface/type';
|
|
|
4
4
|
import type { IRegion } from '../../region/interface';
|
|
5
5
|
import type { IModelRenderOption } from '../../model/interface';
|
|
6
6
|
import type { ILabelSpec } from './interface';
|
|
7
|
-
import type { IGraphic
|
|
7
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
8
|
export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<T> {
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
@@ -32,5 +32,4 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
|
|
|
32
32
|
onRender(ctx: IModelRenderOption): void;
|
|
33
33
|
changeRegions(regions: IRegion[]): void;
|
|
34
34
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
35
|
-
protected _delegateLabelEvent(component: IGroup): void;
|
|
36
35
|
}
|
|
@@ -6,7 +6,7 @@ import type { ISeries } from '../../series';
|
|
|
6
6
|
export interface ILabelFormatMethodContext {
|
|
7
7
|
series?: ISeries;
|
|
8
8
|
}
|
|
9
|
-
export interface ILabelSpec extends IComponentSpec {
|
|
9
|
+
export interface ILabelSpec extends IComponentSpec, ILabelAnimationSpec {
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
interactive?: boolean;
|
|
12
12
|
textType?: 'text' | 'rich';
|
|
@@ -18,7 +18,6 @@ export interface ILabelSpec extends IComponentSpec {
|
|
|
18
18
|
state?: LabelStateStyle<Partial<IComposedTextMarkSpec>>;
|
|
19
19
|
overlap?: BaseLabelAttrs['overlap'];
|
|
20
20
|
smartInvert?: BaseLabelAttrs['smartInvert'];
|
|
21
|
-
animation?: BaseLabelAttrs['animation'];
|
|
22
21
|
stackDataFilterType?: 'min' | 'max';
|
|
23
22
|
dataFilter?: BaseLabelAttrs['dataFilter'];
|
|
24
23
|
customLayoutFunc?: BaseLabelAttrs['customLayoutFunc'];
|
|
@@ -27,6 +26,7 @@ export interface ILabelSpec extends IComponentSpec {
|
|
|
27
26
|
support3d?: boolean;
|
|
28
27
|
syncState?: boolean;
|
|
29
28
|
}
|
|
29
|
+
export type ILabelAnimationSpec = Pick<BaseLabelAttrs, 'animation' | 'animationEnter' | 'animationUpdate' | 'animationExit'>;
|
|
30
30
|
export type IMultiLabelSpec<T extends Omit<ILabelSpec, 'position'>> = T | T[];
|
|
31
31
|
type LabelStateStyle<T> = {
|
|
32
32
|
hover?: T;
|
|
@@ -40,7 +40,6 @@ export declare class Label<T extends IChartSpec = any> extends BaseLabelComponen
|
|
|
40
40
|
init(option: IModelInitOption): void;
|
|
41
41
|
reInit(spec?: T): void;
|
|
42
42
|
initEvent(): void;
|
|
43
|
-
afterCompile(): void;
|
|
44
43
|
protected _initTextMark(): void;
|
|
45
44
|
protected _initLabelComponent(): void;
|
|
46
45
|
protected _initTextMarkStyle(): void;
|
|
@@ -16,10 +16,10 @@ export declare class TotalLabel extends BaseLabelComponent {
|
|
|
16
16
|
private _baseMark?;
|
|
17
17
|
static getSpecInfo(chartSpec: any, chartSpecInfo?: IChartSpecInfo): Maybe<IModelSpecInfo[]>;
|
|
18
18
|
init(option: IModelInitOption): void;
|
|
19
|
+
reInit(spec?: any): void;
|
|
19
20
|
protected _initTextMark(): void;
|
|
20
21
|
_initTextMarkStyle(): void;
|
|
21
22
|
protected _initLabelComponent(): void;
|
|
22
|
-
afterCompile(): void;
|
|
23
23
|
updateLayoutAttribute(): void;
|
|
24
24
|
compileMarks(): void;
|
|
25
25
|
getVRenderComponents(): any[];
|
|
@@ -22,21 +22,21 @@ export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, forma
|
|
|
22
22
|
export declare function symbolLabel(labelInfo: ILabelInfo): {
|
|
23
23
|
position: string | ((datum: Datum) => any);
|
|
24
24
|
overlap: boolean | {
|
|
25
|
-
strategy: Strategy[];
|
|
25
|
+
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
26
26
|
avoidBaseMark: boolean;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
export declare function lineDataLabel(labelInfo: ILabelInfo): {
|
|
30
30
|
position: string | ((datum: Datum) => any);
|
|
31
31
|
overlap: boolean | {
|
|
32
|
-
strategy: Strategy[];
|
|
32
|
+
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
33
33
|
avoidBaseMark: boolean;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
export declare function barLabel(labelInfo: ILabelInfo): {
|
|
37
|
-
position:
|
|
37
|
+
position: (data: any) => string;
|
|
38
38
|
overlap: boolean | {
|
|
39
|
-
strategy: Strategy[];
|
|
39
|
+
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
40
40
|
};
|
|
41
41
|
smartInvert: boolean;
|
|
42
42
|
};
|
|
@@ -74,7 +74,7 @@ export declare function LineLabel(labelInfo: ILabelInfo): {
|
|
|
74
74
|
export declare function sankeyLabel(labelInfo: ILabelInfo): {
|
|
75
75
|
position: import("@visactor/vrender-components").Functional<string>;
|
|
76
76
|
overlap: boolean | {
|
|
77
|
-
strategy: Strategy[];
|
|
77
|
+
strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
|
|
78
78
|
};
|
|
79
79
|
smartInvert: boolean;
|
|
80
80
|
offset: number;
|