@visactor/vchart-types 2.0.2 → 2.0.3-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 +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart.d.ts +0 -1
- package/types/chart/interface/chart.d.ts +0 -1
- package/types/compile/compiler.d.ts +0 -1
- package/types/compile/interface/compilable-item.d.ts +0 -1
- package/types/compile/interface/compiler.d.ts +0 -5
- package/types/component/axis/cartesian/band-axis.d.ts +0 -8
- package/types/component/axis/mixin/band-axis-mixin.d.ts +0 -2
- package/types/component/brush/interface.d.ts +0 -1
- package/types/component/crosshair/base.d.ts +1 -1
- package/types/component/data-zoom/data-filter-base-component.d.ts +1 -0
- package/types/component/data-zoom/interface.d.ts +3 -0
- package/types/component/data-zoom/util.d.ts +1 -0
- package/types/core/vchart.d.ts +0 -1
- package/types/mark/base/base-mark.d.ts +2 -6
- package/types/mark/group.d.ts +2 -3
- package/types/mark/interface/common.d.ts +2 -5
- package/types/model/base-model.d.ts +1 -5
- package/types/model/interface.d.ts +1 -4
- package/types/series/dot/dot.d.ts +1 -0
- package/types/series/dot/interface.d.ts +1 -0
- package/types/series/interface/type.d.ts +3 -0
- package/types/series/link/interface.d.ts +10 -1
- package/types/series/link/link.d.ts +3 -1
- package/types/util/mark.d.ts +0 -1
|
@@ -83,7 +83,6 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
83
83
|
onLayoutStart(): void;
|
|
84
84
|
onLayoutEnd(): void;
|
|
85
85
|
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
86
|
-
onBeforeRender(): void;
|
|
87
86
|
getLayoutElements(): ILayoutItem[];
|
|
88
87
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
89
88
|
getAllRegions: () => IRegion[];
|
|
@@ -55,7 +55,6 @@ export interface IChart extends ICompilable {
|
|
|
55
55
|
onEvaluateEnd: (ctx: IChartEvaluateOption) => void;
|
|
56
56
|
onResize: (width: number, height: number, reRender: boolean) => void;
|
|
57
57
|
onLayout: () => void;
|
|
58
|
-
onBeforeRender: () => void;
|
|
59
58
|
reInit: () => void;
|
|
60
59
|
getAllSeries: () => ISeries[];
|
|
61
60
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
@@ -34,7 +34,6 @@ export declare class Compiler implements ICompiler {
|
|
|
34
34
|
private _layoutState?;
|
|
35
35
|
private _compileChart;
|
|
36
36
|
constructor(container: IRenderContainer, option: IRenderOption);
|
|
37
|
-
getChart(): IChart;
|
|
38
37
|
getCanvas(): HTMLCanvasElement | undefined;
|
|
39
38
|
_gestureController?: Gesture;
|
|
40
39
|
getStage(): IStage | undefined;
|
|
@@ -45,11 +45,6 @@ export interface IRenderOption {
|
|
|
45
45
|
layer?: ILayer;
|
|
46
46
|
beforeRender?: IStageParams['beforeRender'];
|
|
47
47
|
afterRender?: IStageParams['afterRender'];
|
|
48
|
-
renderHooks?: {
|
|
49
|
-
afterClearScreen?: IStageParams['afterClearScreen'];
|
|
50
|
-
afterClearRect?: IStageParams['afterClearRect'];
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
};
|
|
53
48
|
background?: IColor;
|
|
54
49
|
logLevel?: number;
|
|
55
50
|
onError?: (...args: any[]) => void;
|
|
@@ -43,13 +43,5 @@ export declare class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICarte
|
|
|
43
43
|
maxBandSize: number;
|
|
44
44
|
minBandSize: number;
|
|
45
45
|
};
|
|
46
|
-
_compareSpec(spec: T, prevSpec: T): {
|
|
47
|
-
change: boolean;
|
|
48
|
-
reMake: boolean;
|
|
49
|
-
reRender: boolean;
|
|
50
|
-
reSize: boolean;
|
|
51
|
-
reCompile: boolean;
|
|
52
|
-
};
|
|
53
|
-
reInit(spec?: T): void;
|
|
54
46
|
}
|
|
55
47
|
export declare const registerCartesianBandAxis: () => void;
|
|
@@ -33,12 +33,10 @@ export interface BandAxisMixin {
|
|
|
33
33
|
_forceLayout: () => void;
|
|
34
34
|
_getNormalizedValue: (values: any[], length: number) => number;
|
|
35
35
|
_onTickDataChange: (compilableData: CompilableData) => void;
|
|
36
|
-
registerTicksTransform: () => string;
|
|
37
36
|
}
|
|
38
37
|
export declare class BandAxisMixin {
|
|
39
38
|
private _tickDataMap;
|
|
40
39
|
protected _initData(): void;
|
|
41
|
-
protected _updateData(): void;
|
|
42
40
|
protected _rawDomainIndex: {
|
|
43
41
|
[key: string | number | symbol]: number;
|
|
44
42
|
}[];
|
|
@@ -33,7 +33,6 @@ export interface IBrushTheme {
|
|
|
33
33
|
export interface IBrushSpec extends IBrushTheme, IBrushDataBindSpec {
|
|
34
34
|
id?: string;
|
|
35
35
|
visible?: boolean;
|
|
36
|
-
updateElementsState?: boolean;
|
|
37
36
|
}
|
|
38
37
|
export type IBrushType = 'x' | 'y' | 'rect' | 'polygon';
|
|
39
38
|
export type IBrushMode = 'single' | 'multiple';
|
|
@@ -51,7 +51,7 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
|
|
|
51
51
|
protected _initEvent(): void;
|
|
52
52
|
private _registerEvent;
|
|
53
53
|
private _eventOff;
|
|
54
|
-
|
|
54
|
+
updateLayoutAttribute(): void;
|
|
55
55
|
protected calculateTriggerPoint(params: any): {
|
|
56
56
|
x: number;
|
|
57
57
|
y: number;
|
|
@@ -22,6 +22,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
22
22
|
protected _dataUpdating: boolean;
|
|
23
23
|
protected _stateScale: IBaseScale;
|
|
24
24
|
protected _relatedAxisComponent: IComponent;
|
|
25
|
+
protected _linkedAxisComponent: IComponent;
|
|
25
26
|
protected _originalStateFields: Record<number, string | number>;
|
|
26
27
|
protected _seriesUserId?: StringOrNumber[];
|
|
27
28
|
protected _seriesIndex?: number[];
|
|
@@ -11,6 +11,8 @@ export interface IDataFilterComponentSpec extends Omit<IComponentSpec, 'width' |
|
|
|
11
11
|
field?: string;
|
|
12
12
|
axisId?: string;
|
|
13
13
|
axisIndex?: number;
|
|
14
|
+
linkedAxisId?: string;
|
|
15
|
+
linkedAxisIndex?: number;
|
|
14
16
|
regionIndex?: number | number[];
|
|
15
17
|
start?: number;
|
|
16
18
|
end?: number;
|
|
@@ -37,6 +39,7 @@ export interface IDataFilterComponentSpec extends Omit<IComponentSpec, 'width' |
|
|
|
37
39
|
export interface IRoamDragSpec extends IRoamSpec {
|
|
38
40
|
reverse?: boolean;
|
|
39
41
|
filter?: (delta: [number, number], e?: BaseEventParams['event']) => boolean;
|
|
42
|
+
autoVisible?: boolean;
|
|
40
43
|
}
|
|
41
44
|
export interface IRoamScrollSpec extends IRoamSpec {
|
|
42
45
|
reverse?: boolean;
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -179,7 +179,6 @@ export declare class VChart implements IVChart {
|
|
|
179
179
|
getScale(scaleId: string): import("@visactor/vscale").IBaseScale;
|
|
180
180
|
setDimensionIndex(value: StringOrNumber, opt?: DimensionIndexOption): void;
|
|
181
181
|
stopAnimation(): void;
|
|
182
|
-
reRunNormalAnimation(): void;
|
|
183
182
|
pauseAnimation(): void;
|
|
184
183
|
resumeAnimation(): void;
|
|
185
184
|
convertDatumToPosition(datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean, checkInViewData?: boolean): IPoint | null;
|
|
@@ -44,9 +44,6 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
44
44
|
protected _animationConfig: Partial<MarkAnimationSpec>;
|
|
45
45
|
getAnimationConfig(): Partial<MarkAnimationSpec>;
|
|
46
46
|
setAnimationConfig(config: Partial<MarkAnimationSpec>): void;
|
|
47
|
-
protected _disabledAnimationStates?: string[];
|
|
48
|
-
disableAnimationByState(state: string | string[]): void;
|
|
49
|
-
enableAnimationByState(state: string | string[]): void;
|
|
50
47
|
private _skipBeforeLayouted;
|
|
51
48
|
setSkipBeforeLayouted(skip: boolean): void;
|
|
52
49
|
protected _groupKey?: string;
|
|
@@ -126,7 +123,6 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
126
123
|
protected _attrsByGroup?: Record<string, T>;
|
|
127
124
|
protected _getDataByKey(data: Datum[]): GroupedData<Datum>;
|
|
128
125
|
protected _getCommonContext(): {
|
|
129
|
-
compiler: import("../../compile/interface").ICompiler;
|
|
130
126
|
markType: MarkTypeEnum;
|
|
131
127
|
markId: number;
|
|
132
128
|
modelId: number;
|
|
@@ -142,7 +138,6 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
142
138
|
protected createAnimationStateList(type: string, animationConfig: Partial<MarkAnimationSpec>): any;
|
|
143
139
|
protected tryRunMorphing(graphics: IMarkGraphic[]): boolean;
|
|
144
140
|
protected _runStateAnimation(graphics: IMarkGraphic[]): void;
|
|
145
|
-
protected _setAnimationState(g: IMarkGraphic): void;
|
|
146
141
|
protected _runJoin(data: Datum[]): void;
|
|
147
142
|
_runEncoderOfGraphic(styles: Record<string, (datum: Datum) => any>, g: IMarkGraphic, attrs?: any): any;
|
|
148
143
|
_runGroupEncoder(groupStyles: Record<string, (datum: Datum) => any>): any;
|
|
@@ -184,7 +179,8 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
184
179
|
protected _runProgressiveApplyGraphic(graphics: IMarkGraphic[]): void;
|
|
185
180
|
protected _runProgressiveStep(): void;
|
|
186
181
|
renderProgressive(): void;
|
|
187
|
-
|
|
182
|
+
updateAnimationState(callback: (graphic: IMarkGraphic) => AnimationStateValues): void;
|
|
183
|
+
hasAnimationByState(state: keyof MarkAnimationSpec): boolean;
|
|
188
184
|
hasAnimation(): boolean;
|
|
189
185
|
runAnimation(): void;
|
|
190
186
|
}
|
package/types/mark/group.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Maybe } from '../typings';
|
|
2
2
|
import type { IGroupMarkSpec } from '../typings/visual';
|
|
3
3
|
import { BaseMark } from './base/base-mark';
|
|
4
|
-
import {
|
|
4
|
+
import type { AnimationStateValues, IGroupMark, IMark, IMarkGraphic, MarkType } from './interface';
|
|
5
5
|
import { MarkTypeEnum } from './interface/type';
|
|
6
6
|
import { type IMarkCompileOption } from '../compile/mark';
|
|
7
7
|
import type { IGroup, IGroupGraphicAttribute } from '@visactor/vrender-core';
|
|
@@ -10,7 +10,6 @@ export declare class GroupMark extends BaseMark<IGroupMarkSpec> implements IGrou
|
|
|
10
10
|
readonly type = MarkTypeEnum.group;
|
|
11
11
|
protected _marks: IMark[];
|
|
12
12
|
getMarks(): IMark[];
|
|
13
|
-
protected _diffState: DiffState;
|
|
14
13
|
protected _product: Maybe<IGroup>;
|
|
15
14
|
getProduct: () => Maybe<IGroup>;
|
|
16
15
|
protected isMarkExist(mark: IMark): boolean;
|
|
@@ -24,8 +23,8 @@ export declare class GroupMark extends BaseMark<IGroupMarkSpec> implements IGrou
|
|
|
24
23
|
protected _getAttrsFromConfig(attrs?: IGroupGraphicAttribute): IGroupGraphicAttribute;
|
|
25
24
|
getGraphics(): IMarkGraphic[];
|
|
26
25
|
renderInner(): void;
|
|
27
|
-
clearExitGraphics(): void;
|
|
28
26
|
render(): void;
|
|
27
|
+
updateAnimationState(callback: (g: IMarkGraphic) => AnimationStateValues): void;
|
|
29
28
|
release(): void;
|
|
30
29
|
}
|
|
31
30
|
export declare const registerGroupMark: () => void;
|
|
@@ -8,7 +8,6 @@ import type { Datum, StringOrNumber } from '../../typings';
|
|
|
8
8
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
9
9
|
import type { IGroupMark } from './mark';
|
|
10
10
|
import type { IAnimationConfig } from '../../animation/interface';
|
|
11
|
-
import type { ICompiler } from '../../compile/interface';
|
|
12
11
|
export interface VisualScaleType {
|
|
13
12
|
scale: IBaseScale;
|
|
14
13
|
field: StringOrNumber;
|
|
@@ -36,9 +35,8 @@ export type IMarkStyle<T extends ICommonSpec> = {
|
|
|
36
35
|
[key in keyof T]: MarkInputStyle<T[key]>;
|
|
37
36
|
};
|
|
38
37
|
export type DiffStateValues = 'update' | 'enter' | 'exit';
|
|
39
|
-
export type AnimationStateValues = 'appear' | 'enter' | 'update' | 'exit' | 'disappear'
|
|
38
|
+
export type AnimationStateValues = 'appear' | 'enter' | 'update' | 'exit' | 'disappear';
|
|
40
39
|
export interface IGraphicContext {
|
|
41
|
-
compiler: ICompiler;
|
|
42
40
|
markType: MarkTypeEnum;
|
|
43
41
|
markId: number;
|
|
44
42
|
modelId: number;
|
|
@@ -94,10 +92,9 @@ export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
|
|
|
94
92
|
restartProgressive: () => void;
|
|
95
93
|
renderProgressive: () => void;
|
|
96
94
|
canAnimateAfterProgressive: () => boolean;
|
|
95
|
+
updateAnimationState: (callback: (graphic: IMarkGraphic) => AnimationStateValues) => void;
|
|
97
96
|
runAnimation: () => void;
|
|
98
97
|
needClear?: boolean;
|
|
99
|
-
disableAnimationByState: (state: string | string[]) => void;
|
|
100
|
-
enableAnimationByState: (state: string | string[]) => void;
|
|
101
98
|
}
|
|
102
99
|
export type IMark = IMarkRaw<ICommonSpec>;
|
|
103
100
|
export interface ICompileMarkConfig extends IMarkConfig {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IEvent } from '../event/interface';
|
|
2
2
|
import type { IEffect, IModel, IModelInitOption, IModelOption, IModelEvaluateOption, IModelSpec, IModelMarkInfo, IModelSpecInfo } from './interface';
|
|
3
3
|
import type { CoordinateType } from '../typings/coordinate';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ICompileMarkConfig, IMark, IMarkOption, IMarkRaw, IMarkStyle } from '../mark/interface';
|
|
5
5
|
import type { Datum, StateValueType, ConvertToMarkStyleSpec, ICommonSpec, StringOrNumber, IRect, ILayoutRect } from '../typings';
|
|
6
6
|
import { MarkSet } from '../mark/mark-set';
|
|
7
7
|
import type { ILayoutItem } from '../layout/interface';
|
|
@@ -45,7 +45,6 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
|
|
|
45
45
|
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect): void;
|
|
46
46
|
onLayoutEnd(): void;
|
|
47
47
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
48
|
-
onBeforeRender(): void;
|
|
49
48
|
onDataUpdate(): void;
|
|
50
49
|
beforeRelease(): void;
|
|
51
50
|
clear(): void;
|
|
@@ -78,7 +77,4 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
|
|
|
78
77
|
getColorScheme(): any;
|
|
79
78
|
getSpecInfo(): IModelSpecInfo<any>;
|
|
80
79
|
getSpecIndex(): number;
|
|
81
|
-
private _aniamtionStateCallback;
|
|
82
|
-
updateAnimateStateCallback(callback: (graphic: IMarkGraphic) => AnimationStateValues): void;
|
|
83
|
-
getAnimationStateCallback(): (graphic: IMarkGraphic) => AnimationStateValues;
|
|
84
80
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
2
|
import type { DataSet, DataView } from '@visactor/vdataset';
|
|
3
3
|
import type { IEvent, IEventDispatcher } from '../event/interface';
|
|
4
|
-
import type {
|
|
4
|
+
import type { IMark, IMarkRaw, IMarkStyle, MarkTypeEnum } from '../mark/interface';
|
|
5
5
|
import type { RenderMode } from '../typings/spec/common';
|
|
6
6
|
import type { StringOrNumber } from '../typings/common';
|
|
7
7
|
import type { IGroupMarkSpec, ConvertToMarkStyleSpec, ICommonSpec } from '../typings/visual';
|
|
@@ -76,7 +76,6 @@ export interface IModel extends ICompilable {
|
|
|
76
76
|
beforeRelease: () => void;
|
|
77
77
|
onEvaluateEnd: (ctx: IModelEvaluateOption) => void;
|
|
78
78
|
onDataUpdate: () => void;
|
|
79
|
-
onBeforeRender: () => void;
|
|
80
79
|
updateSpec: (spec: any, totalSpec?: any) => IUpdateSpecResult;
|
|
81
80
|
getSpec?: () => any;
|
|
82
81
|
getSpecIndex: () => number;
|
|
@@ -87,8 +86,6 @@ export interface IModel extends ICompilable {
|
|
|
87
86
|
setMarkStyle: <T extends ICommonSpec>(mark?: IMarkRaw<T>, style?: Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>, state?: StateValueType, level?: number) => void;
|
|
88
87
|
initMarkStyleWithSpec: (mark?: IMark, spec?: any) => void;
|
|
89
88
|
getSpecInfo: () => IModelSpecInfo;
|
|
90
|
-
updateAnimateStateCallback: (callback: (graphic: IMarkGraphic) => AnimationStateValues) => void;
|
|
91
|
-
getAnimationStateCallback: () => (graphic: IMarkGraphic) => AnimationStateValues;
|
|
92
89
|
}
|
|
93
90
|
export interface ILayoutModel extends IModel {
|
|
94
91
|
getLayoutStartPoint: () => IPoint;
|
|
@@ -32,6 +32,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
|
|
|
32
32
|
protected _gridBackground?: IFillMarkSpec;
|
|
33
33
|
setGridBackground(gridBackground: IFillMarkSpec): void;
|
|
34
34
|
initData(): void;
|
|
35
|
+
protected _statisticViewData(): void;
|
|
35
36
|
getStatisticFields(): {
|
|
36
37
|
key: string;
|
|
37
38
|
operations: Array<'max' | 'min' | 'values'>;
|
|
@@ -23,6 +23,7 @@ export interface IDotSeriesSpec extends ICartesianSeriesSpec {
|
|
|
23
23
|
subTitleField?: string;
|
|
24
24
|
highLightSeriesGroup?: string;
|
|
25
25
|
name: string;
|
|
26
|
+
linearMode?: boolean;
|
|
26
27
|
[SeriesMarkNameEnum.dot]?: IMarkSpec<ISymbolMarkSpec>;
|
|
27
28
|
[SeriesMarkNameEnum.title]?: ISequenceLabel;
|
|
28
29
|
[SeriesMarkNameEnum.symbol]?: IMarkSpec<ISymbolMarkSpec>;
|
|
@@ -8,6 +8,7 @@ export declare enum SeriesTypeEnum {
|
|
|
8
8
|
dot = "dot",
|
|
9
9
|
geo = "geo",
|
|
10
10
|
link = "link",
|
|
11
|
+
curveLink = "curveLink",
|
|
11
12
|
map = "map",
|
|
12
13
|
pie = "pie",
|
|
13
14
|
radar = "radar",
|
|
@@ -61,6 +62,8 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
61
62
|
cell = "cell",
|
|
62
63
|
cellBackground = "cellBackground",
|
|
63
64
|
link = "link",
|
|
65
|
+
curveLink = "curveLink",
|
|
66
|
+
imageLabel = "imageLabel",
|
|
64
67
|
arrow = "arrow",
|
|
65
68
|
pie = "pie",
|
|
66
69
|
labelLine = "labelLine",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
-
import type { ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
3
|
+
import type { IImageMarkSpec, ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
5
|
import type { DataView } from '@visactor/vdataset';
|
|
6
6
|
import type { IDotSeriesSpec } from '../dot/interface';
|
|
@@ -10,7 +10,11 @@ export interface ILinkSeriesSpec extends ICartesianSeriesSpec, ILinkSeriesSpecFr
|
|
|
10
10
|
toField: string;
|
|
11
11
|
dotSeriesIndex: number;
|
|
12
12
|
dotTypeField?: string;
|
|
13
|
+
linkType?: LinkType;
|
|
14
|
+
imageLabelField?: string;
|
|
15
|
+
allowExtend?: boolean;
|
|
13
16
|
[SeriesMarkNameEnum.link]?: IMarkSpec<ILineMarkSpec>;
|
|
17
|
+
[SeriesMarkNameEnum.imageLabel]?: IMarkSpec<IImageMarkSpec>;
|
|
14
18
|
}
|
|
15
19
|
type ILinkSeriesSpecFromDot = {
|
|
16
20
|
dataDot?: DataView;
|
|
@@ -21,5 +25,10 @@ type ILinkSeriesSpecFromDot = {
|
|
|
21
25
|
export interface ILinkSeriesTheme extends ICartesianSeriesTheme {
|
|
22
26
|
[SeriesMarkNameEnum.link]?: Partial<IMarkTheme<ILineMarkSpec>>;
|
|
23
27
|
[SeriesMarkNameEnum.arrow]?: Partial<IMarkTheme<ISymbolMarkSpec>>;
|
|
28
|
+
[SeriesMarkNameEnum.imageLabel]?: Partial<IMarkTheme<IImageMarkSpec>>;
|
|
29
|
+
}
|
|
30
|
+
export declare enum LinkType {
|
|
31
|
+
line = "line",
|
|
32
|
+
curve = "curve"
|
|
24
33
|
}
|
|
25
34
|
export {};
|
|
@@ -3,7 +3,7 @@ import type { Datum } from '../../typings';
|
|
|
3
3
|
import type { IMark } from '../../mark/interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
5
|
import type { IDotSeriesSpec } from '../dot/interface';
|
|
6
|
-
import type
|
|
6
|
+
import { type ILinkSeriesSpec } from './interface';
|
|
7
7
|
import type { SeriesMarkMap } from '../interface';
|
|
8
8
|
export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> extends CartesianSeries<T> {
|
|
9
9
|
static readonly type: string;
|
|
@@ -12,6 +12,7 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
12
12
|
static readonly builtInTheme: {
|
|
13
13
|
link: import("./interface").ILinkSeriesTheme;
|
|
14
14
|
};
|
|
15
|
+
private _curveLinkCountMap;
|
|
15
16
|
protected _fromField?: string;
|
|
16
17
|
getFromField(): string;
|
|
17
18
|
setFromField(field: string): void;
|
|
@@ -31,6 +32,7 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
31
32
|
private _containerMark;
|
|
32
33
|
private _linkMark;
|
|
33
34
|
private _arrowMark;
|
|
35
|
+
private _imageLabelMark;
|
|
34
36
|
initMark(): void;
|
|
35
37
|
initMarkStyle(): void;
|
|
36
38
|
afterInitMark(): void;
|
package/types/util/mark.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ import type { IMarkGraphic } from '../mark/interface/common';
|
|
|
3
3
|
export declare const isCollectionMark: (type: string) => boolean;
|
|
4
4
|
export declare const getDatumOfGraphic: (g: IMarkGraphic) => import("..").Datum;
|
|
5
5
|
export declare const findMarkGraphic: (rootGroup: IGraphic, target: IGraphic) => IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>;
|
|
6
|
-
export declare const getDiffAttributesOfGraphic: (g: IMarkGraphic, newAttrs: any) => Record<string, any>;
|