@visactor/vchart-types 1.9.0-alpha.0 → 1.9.0-alpha.1
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/utils.d.ts +1 -1
- package/types/chart/base/base-chart-transformer.d.ts +1 -0
- package/types/chart/base/base-chart.d.ts +1 -0
- package/types/chart/base/util.d.ts +7 -0
- package/types/chart/index.d.ts +5 -3
- package/types/chart/interface/chart.d.ts +1 -0
- package/types/chart/interface/common.d.ts +2 -4
- package/types/chart/interface/type.d.ts +2 -1
- package/types/chart/liquid/index.d.ts +2 -0
- package/types/chart/liquid/interface.d.ts +7 -0
- package/types/chart/liquid/liquid-transformer.d.ts +6 -0
- package/types/chart/liquid/liquid.d.ts +13 -0
- package/types/chart/util.d.ts +4 -1
- package/types/compile/compiler.d.ts +16 -5
- package/types/compile/data/compilable-data.d.ts +1 -1
- package/types/compile/data/interface.d.ts +1 -1
- package/types/compile/interface/compiler.d.ts +1 -0
- package/types/compile/mark/compilable-mark.d.ts +4 -2
- package/types/compile/mark/interface.d.ts +3 -2
- package/types/compile/mark/mark-state-manager.d.ts +2 -2
- package/types/compile/signal/state-manager.d.ts +1 -1
- package/types/component/axis/base-axis.d.ts +10 -10
- package/types/component/axis/cartesian/axis.d.ts +5 -4
- package/types/component/axis/cartesian/band-axis.d.ts +1 -0
- package/types/component/axis/cartesian/interface/common.d.ts +3 -5
- package/types/component/axis/cartesian/interface/spec.d.ts +1 -0
- package/types/component/axis/interface/common.d.ts +10 -0
- package/types/component/axis/interface/spec.d.ts +4 -7
- package/types/component/axis/mixin/band-axis-mixin.d.ts +19 -2
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +9 -1
- package/types/component/axis/polar/axis.d.ts +8 -4
- package/types/component/axis/polar/band-axis.d.ts +1 -0
- package/types/component/axis/util.d.ts +6 -0
- package/types/component/base/base-component.d.ts +0 -5
- package/types/component/brush/brush.d.ts +2 -1
- package/types/component/crosshair/base.d.ts +10 -2
- package/types/component/crosshair/cartesian.d.ts +5 -0
- package/types/component/crosshair/config.d.ts +1 -2
- package/types/component/crosshair/interface/spec.d.ts +2 -1
- package/types/component/data-zoom/data-filter-base-component.d.ts +1 -1
- package/types/component/geo/geo-coordinate.d.ts +1 -0
- package/types/component/indicator/indicator.d.ts +2 -0
- package/types/component/indicator/interface.d.ts +1 -0
- package/types/component/interface/common.d.ts +1 -0
- package/types/component/interface/theme.d.ts +1 -0
- package/types/component/label/base-label.d.ts +0 -3
- package/types/component/label/interface.d.ts +1 -0
- package/types/component/label/util.d.ts +6 -0
- package/types/component/legend/base-legend.d.ts +1 -1
- package/types/component/legend/discrete/legend.d.ts +1 -0
- package/types/component/legend/util.d.ts +1 -1
- package/types/component/marker/interface.d.ts +3 -4
- package/types/component/marker/mark-point/interface/theme.d.ts +1 -0
- package/types/component/marker/utils.d.ts +2 -1
- package/types/core/factory.d.ts +5 -0
- package/types/core/index.d.ts +1 -0
- package/types/core/interface.d.ts +4 -1
- package/types/core/vchart.d.ts +9 -5
- package/types/event/events/dimension/util/cartesian.d.ts +1 -1
- package/types/interaction/interface.d.ts +24 -2
- package/types/interaction/trigger.d.ts +1 -0
- package/types/interaction/zoom/zoomable.d.ts +2 -0
- package/types/layout/base-layout.d.ts +46 -2
- package/types/layout/interface.d.ts +3 -0
- package/types/layout/layout-item.d.ts +2 -1
- package/types/layout/layout3d/index.d.ts +1 -8
- package/types/mark/interface/type.d.ts +1 -0
- package/types/mark/liquid.d.ts +13 -0
- package/types/model/base-model-transformer.d.ts +2 -1
- package/types/model/base-model.d.ts +1 -2
- package/types/model/interface.d.ts +3 -2
- package/types/plugin/chart/media-query/interface/common.d.ts +0 -4
- package/types/plugin/chart/media-query/interface/index.d.ts +1 -1
- package/types/plugin/chart/media-query/media-query.d.ts +3 -1
- package/types/plugin/chart/media-query/util/action.d.ts +2 -2
- package/types/plugin/chart/media-query/util/filter.d.ts +3 -3
- package/types/plugin/components/axis-sync/axis-sync.d.ts +13 -0
- package/types/plugin/components/axis-sync/index.d.ts +1 -0
- package/types/plugin/components/axis-sync/tick-align-transform.d.ts +7 -0
- package/types/plugin/components/axis-sync/zero-align-transform.d.ts +15 -0
- package/types/plugin/components/index.d.ts +1 -1
- package/types/plugin/components/register.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +65 -0
- package/types/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +22 -0
- package/types/plugin/components/tooltip-handler/canvas/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/constants.d.ts +17 -0
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +28 -0
- package/types/plugin/components/tooltip-handler/dom/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/interface.d.ts +57 -0
- package/types/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +25 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-model.d.ts +15 -0
- package/types/plugin/components/tooltip-handler/dom/model/interface.d.ts +9 -0
- package/types/plugin/components/tooltip-handler/dom/model/shape-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/style-constants.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/dom/model/text-model.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/dom/model/title-model.d.ts +15 -0
- package/types/plugin/components/tooltip-handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/plugin/components/tooltip-handler/dom/util.d.ts +6 -0
- package/types/plugin/components/tooltip-handler/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/utils/common.d.ts +19 -0
- package/types/plugin/components/tooltip-handler/utils/compose.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/get-spec.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/utils/index.d.ts +6 -0
- package/types/plugin/components/tooltip-handler/utils/pattern.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +7 -0
- package/types/region/interface.d.ts +0 -3
- package/types/series/area/area-transformer.d.ts +2 -0
- package/types/series/area/area.d.ts +0 -1
- package/types/series/bar/bar.d.ts +16 -3
- package/types/series/bar/interface.d.ts +5 -2
- package/types/series/base/base-series.d.ts +34 -6
- package/types/series/base/constant.d.ts +4 -0
- package/types/series/cartesian/cartesian.d.ts +6 -0
- package/types/series/gauge/gauge-pointer.d.ts +1 -0
- package/types/series/heatmap/heatmap.d.ts +1 -0
- package/types/series/interface/common.d.ts +1 -1
- package/types/series/interface/series.d.ts +2 -3
- package/types/series/interface/theme.d.ts +2 -0
- package/types/series/interface/type.d.ts +6 -2
- package/types/series/link/link.d.ts +1 -0
- package/types/series/liquid/animation.d.ts +14 -0
- package/types/series/liquid/constant.d.ts +2 -0
- package/types/series/liquid/interface.d.ts +35 -0
- package/types/series/liquid/liquid.d.ts +50 -0
- package/types/series/liquid/tooltip-helper.d.ts +9 -0
- package/types/series/liquid/util.d.ts +2 -0
- package/types/series/mixin/line-mixin.d.ts +2 -2
- package/types/series/pie/pie.d.ts +1 -0
- package/types/series/polar/polar.d.ts +2 -0
- package/types/series/progress/circular/circular.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +1 -0
- package/types/series/range-column/range-column.d.ts +5 -1
- package/types/series/treemap/treemap-transform.d.ts +6 -0
- package/types/series/treemap/treemap.d.ts +6 -3
- package/types/series/word-cloud/base.d.ts +7 -7
- package/types/series/word-cloud/interface.d.ts +1 -1
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
- package/types/theme/builtin/common/series/liquid.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +1 -0
- package/types/typings/layout.d.ts +2 -1
- package/types/typings/spec/common.d.ts +5 -2
- package/types/typings/spec/index.d.ts +1 -0
- package/types/typings/spec/media-query.d.ts +28 -0
- package/types/typings/tooltip/line.d.ts +4 -0
- package/types/typings/visual.d.ts +6 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TooltipFixedPosition } from '../../../../typings/tooltip/position';
|
|
2
|
+
export declare const getActualTooltipPositionValue: (position: number | ((event: MouseEvent) => number), event: MouseEvent) => number;
|
|
3
|
+
export type TooltipHorizontalPositionType = 'left' | 'right' | 'middle';
|
|
4
|
+
export type TooltipVerticalPositionType = 'top' | 'bottom' | 'middle';
|
|
5
|
+
export declare const positionType: Record<TooltipFixedPosition, [TooltipHorizontalPositionType, TooltipVerticalPositionType]>;
|
|
6
|
+
export declare const getHorizontalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipHorizontalPositionType) => TooltipHorizontalPositionType;
|
|
7
|
+
export declare const getVerticalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipVerticalPositionType) => TooltipVerticalPositionType;
|
|
@@ -63,7 +63,4 @@ export interface IGeoRegionSpec extends IRegionSpec {
|
|
|
63
63
|
export interface IRegionSpecInfo<T extends IRegionSpec = IRegionSpec> extends IModelSpecInfo {
|
|
64
64
|
type: 'region';
|
|
65
65
|
spec: T;
|
|
66
|
-
seriesIndexes?: number[];
|
|
67
|
-
markLabel?: IModelSpecInfo;
|
|
68
|
-
geoCoordinate?: IModelSpecInfo;
|
|
69
66
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { IChartSpecInfo } from '../../chart/interface';
|
|
1
2
|
import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
|
|
2
3
|
import type { IAreaSeriesSpec, IAreaSeriesTheme } from './interface';
|
|
3
4
|
export declare class AreaSeriesSpecTransformer<T extends IAreaSeriesSpec = IAreaSeriesSpec, K extends IAreaSeriesTheme = IAreaSeriesTheme> extends LineLikeSeriesSpecTransformer<T, K> {
|
|
4
5
|
protected _transformLabelSpec(spec: T): void;
|
|
6
|
+
protected _transformSpecAfterMergingTheme(spec: T, chartSpec: any, chartSpecInfo?: IChartSpecInfo): void;
|
|
5
7
|
}
|
|
@@ -19,7 +19,6 @@ export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> ext
|
|
|
19
19
|
protected _areaMark: IAreaMark;
|
|
20
20
|
protected _supportStack: boolean;
|
|
21
21
|
protected _sortDataByAxis: boolean;
|
|
22
|
-
setAttrFromSpec(): void;
|
|
23
22
|
initMark(): void;
|
|
24
23
|
initMarkStyle(): void;
|
|
25
24
|
initAnimation(): void;
|
|
@@ -36,12 +36,25 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
|
|
|
36
36
|
private _shouldDoPreCalculate;
|
|
37
37
|
private _calculateStackRectPosition;
|
|
38
38
|
private _calculateRectPosition;
|
|
39
|
+
protected _dataToPosX(datum: Datum): number;
|
|
40
|
+
protected _dataToPosX1(datum: Datum): number;
|
|
41
|
+
protected _dataToPosY(datum: Datum): number;
|
|
42
|
+
protected _dataToPosY1(datum: Datum): number;
|
|
39
43
|
initBandRectMarkStyle(): void;
|
|
40
|
-
protected
|
|
44
|
+
protected _initBandBarBackgroundMarkStyle(): void;
|
|
41
45
|
initLinearRectMarkStyle(): void;
|
|
46
|
+
protected _initLinearBarBackgroundMarkStyle(): void;
|
|
42
47
|
initAnimation(): void;
|
|
43
|
-
protected _getBarWidth(axisHelper: IAxisHelper): number;
|
|
44
|
-
protected _getPosition(direction: DirectionType, datum: Datum): number;
|
|
48
|
+
protected _getBarWidth(axisHelper: IAxisHelper, scaleDepth?: number): number;
|
|
49
|
+
protected _getPosition(direction: DirectionType, datum: Datum, scaleDepth?: number, mark?: SeriesMarkNameEnum): number;
|
|
50
|
+
protected _barBackgroundPositionXEncoder?: (datum: Datum) => number;
|
|
51
|
+
protected _getBarBackgroundPositionXEncoder: () => (datum: Datum) => number;
|
|
52
|
+
protected _setBarBackgroundPositionXEncoder: (encoder: (datum: Datum) => number) => void;
|
|
53
|
+
dataToBarBackgroundPositionX(datum: Datum, scaleDepth?: number): number;
|
|
54
|
+
protected _barBackgroundPositionYEncoder?: (datum: Datum) => number;
|
|
55
|
+
protected _getBarBackgroundPositionYEncoder: () => (datum: Datum) => number;
|
|
56
|
+
protected _setBarBackgroundPositionYEncoder: (encoder: (datum: Datum) => number) => void;
|
|
57
|
+
dataToBarBackgroundPositionY(datum: Datum, scaleDepth?: number): number;
|
|
45
58
|
onLayoutEnd(ctx: any): void;
|
|
46
59
|
compile(): void;
|
|
47
60
|
getDefaultShapeType(): string;
|
|
@@ -13,7 +13,7 @@ export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Bar
|
|
|
13
13
|
xField?: string | string[];
|
|
14
14
|
yField?: string | string[];
|
|
15
15
|
[SeriesMarkNameEnum.bar]?: IMarkSpec<IRectMarkSpec>;
|
|
16
|
-
[SeriesMarkNameEnum.barBackground]?: IMarkSpec<IRectMarkSpec
|
|
16
|
+
[SeriesMarkNameEnum.barBackground]?: IMarkSpec<IRectMarkSpec> & IBarBackgroundSpec;
|
|
17
17
|
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position'> & {
|
|
18
18
|
position?: Functional<'outside' | 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'inside-top' | 'inside-bottom' | 'inside-right' | 'inside-left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
|
|
19
19
|
};
|
|
@@ -23,9 +23,12 @@ export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Bar
|
|
|
23
23
|
barGapInGroup?: number | string | (number | string)[];
|
|
24
24
|
barMinHeight?: number;
|
|
25
25
|
}
|
|
26
|
+
export interface IBarBackgroundSpec {
|
|
27
|
+
fieldLevel?: number;
|
|
28
|
+
}
|
|
26
29
|
export interface IBarSeriesTheme extends ICartesianSeriesTheme {
|
|
27
30
|
[SeriesMarkNameEnum.bar]?: Partial<IMarkTheme<IRectMarkSpec>>;
|
|
28
|
-
[SeriesMarkNameEnum.barBackground]?:
|
|
31
|
+
[SeriesMarkNameEnum.barBackground]?: Partial<IMarkTheme<IRectMarkSpec>> & IBarBackgroundSpec;
|
|
29
32
|
barWidth?: number;
|
|
30
33
|
barMinWidth?: number;
|
|
31
34
|
barMaxWidth?: number;
|
|
@@ -7,12 +7,12 @@ import { BaseModel } from '../../model/base-model';
|
|
|
7
7
|
import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo, ISeriesSpecInfo } from '../interface';
|
|
8
8
|
import type { IModelEvaluateOption, IModelRenderOption } from '../../model/interface';
|
|
9
9
|
import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
|
|
10
|
-
import type { ITrigger } from '../../interaction/interface';
|
|
11
10
|
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
12
11
|
import { SeriesData } from './series-data';
|
|
13
12
|
import type { IGroupMark } from '../../mark/group';
|
|
14
|
-
import type
|
|
13
|
+
import { STATE_VALUE_ENUM, type ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
15
14
|
import { BaseSeriesSpecTransformer } from './base-series-transformer';
|
|
15
|
+
import type { EventType } from '@visactor/vgrammar-core';
|
|
16
16
|
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
17
17
|
readonly specKey: string;
|
|
18
18
|
readonly type: string;
|
|
@@ -23,8 +23,6 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
23
23
|
static readonly transformerConstructor: typeof BaseSeriesSpecTransformer;
|
|
24
24
|
readonly transformerConstructor: any;
|
|
25
25
|
getSpecInfo: () => ISeriesSpecInfo;
|
|
26
|
-
protected _trigger: ITrigger;
|
|
27
|
-
getTrigger(): ITrigger;
|
|
28
26
|
protected _option: ISeriesOption;
|
|
29
27
|
readonly coordinate: CoordinateType;
|
|
30
28
|
protected _region: IRegion;
|
|
@@ -76,6 +74,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
76
74
|
getInvalidType(): IInvalidType;
|
|
77
75
|
setInvalidType(t: IInvalidType): void;
|
|
78
76
|
protected _markAttributeContext: ISeriesMarkAttributeContext;
|
|
77
|
+
getMarkAttributeContext(): ISeriesMarkAttributeContext;
|
|
79
78
|
constructor(spec: T, options: ISeriesOption);
|
|
80
79
|
created(): void;
|
|
81
80
|
protected _buildMarkAttributeContext(): void;
|
|
@@ -122,11 +121,39 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
122
121
|
setValueFieldToStackOffsetSilhouette(): void;
|
|
123
122
|
abstract getActiveMarks(): IMark[];
|
|
124
123
|
initRootMark(): void;
|
|
125
|
-
protected _initExtensionMark(
|
|
124
|
+
protected _initExtensionMark(options: {
|
|
125
|
+
hasAnimation: boolean;
|
|
126
|
+
}): void;
|
|
126
127
|
private _createExtensionMark;
|
|
127
128
|
protected _updateExtensionMarkSpec(lastSpec?: any): void;
|
|
128
129
|
getStackData(): ISeriesStackData;
|
|
129
|
-
|
|
130
|
+
protected _parseDefaultInteractionConfig(mainMarks?: IMark[]): ({
|
|
131
|
+
seriesId: number;
|
|
132
|
+
regionId: number;
|
|
133
|
+
selector: string[];
|
|
134
|
+
type: string;
|
|
135
|
+
trigger: EventType;
|
|
136
|
+
resetTrigger: EventType;
|
|
137
|
+
blurState: STATE_VALUE_ENUM;
|
|
138
|
+
highlightState: STATE_VALUE_ENUM;
|
|
139
|
+
reverseState?: undefined;
|
|
140
|
+
state?: undefined;
|
|
141
|
+
isMultiple?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
type: string;
|
|
144
|
+
seriesId: number;
|
|
145
|
+
regionId: number;
|
|
146
|
+
selector: string[];
|
|
147
|
+
trigger: EventType;
|
|
148
|
+
resetTrigger: EventType;
|
|
149
|
+
reverseState: STATE_VALUE_ENUM;
|
|
150
|
+
state: STATE_VALUE_ENUM;
|
|
151
|
+
isMultiple: boolean;
|
|
152
|
+
blurState?: undefined;
|
|
153
|
+
highlightState?: undefined;
|
|
154
|
+
})[];
|
|
155
|
+
protected _parseInteractionConfig(mainMarks?: IMark[]): void;
|
|
156
|
+
initInteraction(): void;
|
|
130
157
|
initAnimation(): void;
|
|
131
158
|
initMarkState(): void;
|
|
132
159
|
initSeriesStyleState(): void;
|
|
@@ -195,4 +222,5 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
195
222
|
getMarkInfoList(): import("../../model/interface").IModelMarkInfo[];
|
|
196
223
|
protected _getInvalidConnectType(): "none" | "zero" | "connect";
|
|
197
224
|
protected _getInvalidDefined: (datum: Datum) => boolean;
|
|
225
|
+
protected _getRelatedComponentSpecInfo(specKey: string): import("../../model/interface").IModelSpecInfo<any>[];
|
|
198
226
|
}
|
|
@@ -76,9 +76,14 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
76
76
|
protected _axisPosition(helper: IAxisHelper, value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
77
77
|
valueToPositionX(value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
78
78
|
valueToPositionY(value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
79
|
+
protected _dataToPosition(datum: Datum, axisHelper: IAxisHelper, field: string[], scaleDepth: number | undefined, getEncoder: () => (datum: Datum) => number, setEncoder: (encoder: (datum: Datum) => number) => void): number;
|
|
79
80
|
protected _positionXEncoder?: (datum: Datum) => number;
|
|
81
|
+
protected _getPositionXEncoder: () => (datum: Datum) => number;
|
|
82
|
+
protected _setPositionXEncoder: (encoder: (datum: Datum) => number) => void;
|
|
80
83
|
dataToPositionX(datum: Datum): number;
|
|
81
84
|
protected _positionYEncoder?: (datum: Datum) => number;
|
|
85
|
+
protected _getPositionYEncoder: () => (datum: Datum) => number;
|
|
86
|
+
protected _setPositionYEncoder: (encoder: (datum: Datum) => number) => void;
|
|
82
87
|
dataToPositionY(datum: Datum): number;
|
|
83
88
|
dataToPositionZ(datum: Datum): number;
|
|
84
89
|
dataToPositionX1(datum: Datum): number;
|
|
@@ -90,6 +95,7 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
90
95
|
getRegionRectRight(): number;
|
|
91
96
|
afterInitMark(): void;
|
|
92
97
|
getDimensionField(): string[];
|
|
98
|
+
getDimensionContinuousField(): string[];
|
|
93
99
|
getMeasureField(): string[];
|
|
94
100
|
viewDataUpdate(d: DataView): void;
|
|
95
101
|
_sortDataInAxisDomain(): void;
|
|
@@ -30,6 +30,7 @@ export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGau
|
|
|
30
30
|
};
|
|
31
31
|
private initPinBackgroundMarkStyle;
|
|
32
32
|
private initPinMarkStyle;
|
|
33
|
+
initInteraction(): void;
|
|
33
34
|
initAnimation(): void;
|
|
34
35
|
getDefaultShapeType(): string;
|
|
35
36
|
getActiveMarks(): IMark[];
|
|
@@ -29,6 +29,7 @@ export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeries
|
|
|
29
29
|
scale: any;
|
|
30
30
|
field: any;
|
|
31
31
|
};
|
|
32
|
+
initInteraction(): void;
|
|
32
33
|
initAnimation(): void;
|
|
33
34
|
protected getCellSize(axisHelper: IAxisHelper): number;
|
|
34
35
|
protected initTooltip(): void;
|
|
@@ -67,6 +67,7 @@ export interface ISeriesMarkInitOption {
|
|
|
67
67
|
progressive?: IMarkProgressiveConfig;
|
|
68
68
|
support3d?: boolean;
|
|
69
69
|
customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
|
|
70
|
+
stateSort?: (stateA: string, stateB: string) => number;
|
|
70
71
|
}
|
|
71
72
|
export interface ISeriesMarkInfo extends IModelMarkInfo {
|
|
72
73
|
name: SeriesMarkNameEnum | string;
|
|
@@ -76,5 +77,4 @@ export interface ISeriesSpecInfo<T extends ISeriesSpec = ISeriesSpec> extends IM
|
|
|
76
77
|
type: string | SeriesTypeEnum;
|
|
77
78
|
spec: T;
|
|
78
79
|
markLabelSpec?: Partial<Record<SeriesMarkNameEnum, TransformedLabelSpec[]>>;
|
|
79
|
-
totalLabel?: IModelSpecInfo;
|
|
80
80
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ITrigger } from '../../interaction/interface';
|
|
2
1
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
3
2
|
import type { IModel } from '../../model/interface';
|
|
4
3
|
import type { DataSet, DataView, ITransformOptions } from '@visactor/vdataset';
|
|
@@ -11,7 +10,7 @@ import type { IPolarAxisHelper } from '../../component/axis/polar/interface';
|
|
|
11
10
|
import type { ISeriesSeriesInfo, ISeriesSpecInfo, ISeriesStackData } from './common';
|
|
12
11
|
import type { ISeriesTooltipHelper } from './tooltip-helper';
|
|
13
12
|
import type { IInvalidType, Datum, DirectionType, IGroup, StringOrNumber } from '../../typings';
|
|
14
|
-
import type { StateValueType } from '../../compile/mark';
|
|
13
|
+
import type { ISeriesMarkAttributeContext, StateValueType } from '../../compile/mark';
|
|
15
14
|
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
16
15
|
import type { IGroupMark } from '../../mark/group';
|
|
17
16
|
import type { IGeoCoordinateHelper } from '../../component/geo/interface';
|
|
@@ -90,11 +89,11 @@ export interface ISeries extends IModel {
|
|
|
90
89
|
};
|
|
91
90
|
getDefaultColorDomain: () => any[];
|
|
92
91
|
getInvalidType: () => IInvalidType;
|
|
93
|
-
getTrigger: () => ITrigger;
|
|
94
92
|
getDefaultShapeType: () => string;
|
|
95
93
|
initLabelMarkStyle?: (labelMark: ILabelMark) => void;
|
|
96
94
|
getGroupFields: () => string[];
|
|
97
95
|
getSpecInfo: () => ISeriesSpecInfo;
|
|
96
|
+
getMarkAttributeContext: () => ISeriesMarkAttributeContext;
|
|
98
97
|
}
|
|
99
98
|
export interface ICartesianSeries extends ISeries {
|
|
100
99
|
readonly coordinate: 'cartesian';
|
|
@@ -25,6 +25,7 @@ import type { ICorrelationSeriesTheme } from '../correlation/interface';
|
|
|
25
25
|
import { SeriesTypeEnum } from './type';
|
|
26
26
|
import type { SeriesMarkMap } from './common';
|
|
27
27
|
import type { IRangeAreaSeriesTheme } from '../range-area/interface';
|
|
28
|
+
import type { ILiquidSeriesTheme } from '../liquid/interface';
|
|
28
29
|
export interface ISeriesTheme {
|
|
29
30
|
[SeriesTypeEnum.bar]?: IBarSeriesTheme;
|
|
30
31
|
[SeriesTypeForThemeEnum.bar_vertical]?: IBarSeriesTheme;
|
|
@@ -76,6 +77,7 @@ export interface ISeriesTheme {
|
|
|
76
77
|
[SeriesTypeEnum.circlePacking]?: ICirclePackingSeriesTheme;
|
|
77
78
|
[SeriesTypeEnum.heatmap]?: IHeatmapSeriesTheme;
|
|
78
79
|
[SeriesTypeEnum.correlation]?: ICorrelationSeriesTheme;
|
|
80
|
+
[SeriesTypeEnum.liquid]?: ILiquidSeriesTheme;
|
|
79
81
|
}
|
|
80
82
|
export declare enum SeriesTypeForThemeEnum {
|
|
81
83
|
area_horizontal = "area_horizontal",
|
|
@@ -31,7 +31,8 @@ export declare enum SeriesTypeEnum {
|
|
|
31
31
|
circlePacking = "circlePacking",
|
|
32
32
|
waterfall = "waterfall",
|
|
33
33
|
heatmap = "heatmap",
|
|
34
|
-
correlation = "correlation"
|
|
34
|
+
correlation = "correlation",
|
|
35
|
+
liquid = "liquid"
|
|
35
36
|
}
|
|
36
37
|
export declare enum SeriesMarkNameEnum {
|
|
37
38
|
label = "label",
|
|
@@ -88,6 +89,9 @@ export declare enum SeriesMarkNameEnum {
|
|
|
88
89
|
centerLabel = "centerLabel",
|
|
89
90
|
barBackground = "barBackground",
|
|
90
91
|
lineLabel = "lineLabel",
|
|
91
|
-
areaLabel = "areaLabel"
|
|
92
|
+
areaLabel = "areaLabel",
|
|
93
|
+
liquid = "liquid",
|
|
94
|
+
liquidBackground = "liquidBackground",
|
|
95
|
+
liquidOutline = "liquidOutline"
|
|
92
96
|
}
|
|
93
97
|
export declare const seriesMarkNameSet: Set<string>;
|
|
@@ -44,6 +44,7 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
44
44
|
scale: any;
|
|
45
45
|
field: string;
|
|
46
46
|
};
|
|
47
|
+
initInteraction(): void;
|
|
47
48
|
protected initTooltip(): void;
|
|
48
49
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
49
50
|
getDotInfoData(): import("../../compile/mark/mark-data").MarkData;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export interface ILiquidAnimationParams {
|
|
3
|
+
height: {
|
|
4
|
+
from: () => number | number;
|
|
5
|
+
to: () => number | number;
|
|
6
|
+
};
|
|
7
|
+
y: {
|
|
8
|
+
from: () => number | number;
|
|
9
|
+
to: () => number | number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';
|
|
13
|
+
export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
14
|
+
export declare const registerLiquidAnimation: () => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
2
|
+
import type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';
|
|
3
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { LiquidAppearPreset } from './animation';
|
|
6
|
+
import type { SymbolType } from '@visactor/vrender-core';
|
|
7
|
+
import type { ISymbolMark } from '../../mark/symbol';
|
|
8
|
+
type LiquidMarks = 'liquid';
|
|
9
|
+
export type LiquidShapeType = SymbolType | 'drop';
|
|
10
|
+
export type ILiquidPadding = {
|
|
11
|
+
left?: number;
|
|
12
|
+
right?: number;
|
|
13
|
+
top?: number;
|
|
14
|
+
bottom?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ILiquidPaddingSpec = ILiquidPadding | number | number[];
|
|
17
|
+
export interface ILiquidSeriesSpec extends IAnimationSpec<LiquidMarks, LiquidAppearPreset> {
|
|
18
|
+
type: 'liquid';
|
|
19
|
+
valueField?: string;
|
|
20
|
+
maskShape?: LiquidShapeType;
|
|
21
|
+
outlineMargin?: ILiquidPaddingSpec;
|
|
22
|
+
outlinePadding?: ILiquidPaddingSpec;
|
|
23
|
+
indicatorSmartInvert?: boolean;
|
|
24
|
+
[SeriesMarkNameEnum.liquid]?: IMarkSpec<ILiquidMarkSpec>;
|
|
25
|
+
[SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
|
|
26
|
+
[SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ISymbolMark>;
|
|
27
|
+
}
|
|
28
|
+
export interface ILiquidSeriesTheme {
|
|
29
|
+
outlineMargin?: ILiquidPaddingSpec;
|
|
30
|
+
outlinePadding?: ILiquidPaddingSpec;
|
|
31
|
+
[SeriesMarkNameEnum.liquid]?: Partial<IMarkTheme<ILiquidMarkSpec>>;
|
|
32
|
+
[SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
|
|
33
|
+
[SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ILiquidOutlineSpec>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SeriesMarkMap } from '../interface';
|
|
2
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
3
|
+
import type { Datum, ILiquidMarkSpec, IPoint } from '../../typings';
|
|
4
|
+
import type { ILiquidSeriesSpec } from './interface';
|
|
5
|
+
import type { IMark, IMarkRaw } from '../../mark/interface';
|
|
6
|
+
import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
|
|
7
|
+
import { BaseSeries } from '../base';
|
|
8
|
+
import type { DataView } from '@visactor/vdataset';
|
|
9
|
+
export type ILiquidMark = IMarkRaw<ILiquidMarkSpec>;
|
|
10
|
+
export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> extends BaseSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
15
|
+
readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
16
|
+
private _liquidMark?;
|
|
17
|
+
private _liquidBackgroundMark?;
|
|
18
|
+
private _liquidOutlineMark?;
|
|
19
|
+
private _paddingSpec?;
|
|
20
|
+
private _marginSpec?;
|
|
21
|
+
private _heightRatio?;
|
|
22
|
+
protected _valueField?: string;
|
|
23
|
+
setValueField(field: string): void;
|
|
24
|
+
getValueField(): string;
|
|
25
|
+
setAttrFromSpec(): void;
|
|
26
|
+
rawDataUpdate(d: DataView): void;
|
|
27
|
+
initMark(): void;
|
|
28
|
+
initMarkStyle(): void;
|
|
29
|
+
private _initLiquidOutlineMark;
|
|
30
|
+
private _initLiquidBackgroundMark;
|
|
31
|
+
private _initLiquidMark;
|
|
32
|
+
private _getPosAndSizeFormRegion;
|
|
33
|
+
private _initLiquidOutlineMarkStyle;
|
|
34
|
+
private _initLiquidBackgroundMarkStyle;
|
|
35
|
+
private _initLiquidMarkStyle;
|
|
36
|
+
protected initTooltip(): void;
|
|
37
|
+
initInteraction(): void;
|
|
38
|
+
initAnimation(): void;
|
|
39
|
+
protected initEvent(): void;
|
|
40
|
+
dataToPosition(data: Datum): IPoint;
|
|
41
|
+
dataToPositionX(data: Datum): number;
|
|
42
|
+
dataToPositionY(data: Datum): number;
|
|
43
|
+
valueToPosition(value1: any, value2?: any): IPoint;
|
|
44
|
+
getStatisticFields(): any[];
|
|
45
|
+
getGroupFields(): string[];
|
|
46
|
+
getStackGroupFields(): string[];
|
|
47
|
+
getStackValueField(): string;
|
|
48
|
+
getActiveMarks(): IMark[];
|
|
49
|
+
}
|
|
50
|
+
export declare const registerLiquidSeries: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
import type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
+
export declare class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
6
|
+
getContentKey: () => (datum: any) => string;
|
|
7
|
+
getContentValue: () => (datum: any) => any;
|
|
8
|
+
getLiquidFillColor: (datum: Datum) => any;
|
|
9
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ISeriesOption } from '../interface/common';
|
|
2
|
-
import type { ITrigger } from '../../interaction/interface';
|
|
3
2
|
import type { ISeries } from '../interface/series';
|
|
4
3
|
import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
5
4
|
import type { ILineMark } from '../../mark/line';
|
|
@@ -28,7 +27,6 @@ export interface LineLikeSeriesMixin extends ISeries {
|
|
|
28
27
|
_option: ISeriesOption;
|
|
29
28
|
_seriesField: string;
|
|
30
29
|
_theme: Maybe<ILineLikeSeriesTheme>;
|
|
31
|
-
_trigger: ITrigger;
|
|
32
30
|
_tooltipHelper: ISeriesTooltipHelper;
|
|
33
31
|
_invalidType: IInvalidType;
|
|
34
32
|
_region: IRegion;
|
|
@@ -56,6 +54,8 @@ export declare class LineLikeSeriesMixin {
|
|
|
56
54
|
protected _dimensionTrigger(params: DimensionEventParams): void;
|
|
57
55
|
initSymbolMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ISymbolMark;
|
|
58
56
|
initSymbolMarkStyle(): ISymbolMark;
|
|
57
|
+
private _initSymbolMark;
|
|
58
|
+
private _initSymbolActiveMarkAlone;
|
|
59
59
|
initLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
60
60
|
initLineLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
61
61
|
encodeDefined(mark: IMark, attr: string): void;
|
|
@@ -35,6 +35,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
35
35
|
private startAngleScale;
|
|
36
36
|
private endAngleScale;
|
|
37
37
|
initMarkStyle(): void;
|
|
38
|
+
initInteraction(): void;
|
|
38
39
|
protected initTooltip(): void;
|
|
39
40
|
initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
|
|
40
41
|
initLabelMarkStyle(textMark: ITextMark): void;
|
|
@@ -17,6 +17,8 @@ export declare abstract class PolarSeries<T extends IPolarSeriesSpec = IPolarSer
|
|
|
17
17
|
protected _radiusField: string[];
|
|
18
18
|
getRadiusField(): string[];
|
|
19
19
|
setRadiusField(f: string | string[]): string[];
|
|
20
|
+
protected _specAngleField: string[];
|
|
21
|
+
protected _specRadiusField: string[];
|
|
20
22
|
protected _innerRadiusField: string[];
|
|
21
23
|
get innerRadiusField(): string[];
|
|
22
24
|
setInnerRadiusField(f: string | string[]): string[];
|
|
@@ -16,6 +16,7 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
|
|
|
16
16
|
initMarkStyle(): void;
|
|
17
17
|
private _initProgressMark;
|
|
18
18
|
private _initProgressMarkStyle;
|
|
19
|
+
initInteraction(): void;
|
|
19
20
|
protected initTooltip(): void;
|
|
20
21
|
private _initTrackMark;
|
|
21
22
|
private _initTrackMarkStyle;
|
|
@@ -18,6 +18,7 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
|
|
|
18
18
|
private _initTrackMarkStyle;
|
|
19
19
|
private _initProgressGroupMark;
|
|
20
20
|
private _initProgressGroupMarkStyle;
|
|
21
|
+
initInteraction(): void;
|
|
21
22
|
initAnimation(): void;
|
|
22
23
|
protected initTooltip(): void;
|
|
23
24
|
getActiveMarks(): IMark[];
|
|
@@ -3,6 +3,7 @@ import { MarkTypeEnum } from '../../mark/interface/type';
|
|
|
3
3
|
import type { SeriesMarkMap } from '../interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
5
|
import { type ITextMark } from '../../mark/text';
|
|
6
|
+
import type { Datum } from '../../typings';
|
|
6
7
|
import type { IRangeColumnSeriesSpec } from './interface';
|
|
7
8
|
export declare const DefaultBandWidth = 6;
|
|
8
9
|
export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec> extends BarSeries<any> {
|
|
@@ -21,7 +22,10 @@ export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRange
|
|
|
21
22
|
initMark(): void;
|
|
22
23
|
initMarkStyle(): void;
|
|
23
24
|
initLabelMarkStyle(labelMark: ITextMark): void;
|
|
24
|
-
|
|
25
|
+
protected _dataToPosX(datum: Datum): number;
|
|
26
|
+
protected _dataToPosX1(datum: Datum): number;
|
|
27
|
+
protected _dataToPosY(datum: Datum): number;
|
|
28
|
+
protected _dataToPosY1(datum: Datum): number;
|
|
25
29
|
initAnimation(): void;
|
|
26
30
|
protected initTooltip(): void;
|
|
27
31
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ISeriesSpec } from '../../typings';
|
|
2
|
+
import { BaseSeriesSpecTransformer } from '../base';
|
|
3
|
+
import type { ITreemapSeriesSpec, ITreemapSeriesTheme } from './interface';
|
|
4
|
+
export declare class TreemapSeriesSpecTransformer<T extends ISeriesSpec = Omit<ITreemapSeriesSpec, 'data'>, K extends ITreemapSeriesTheme = ITreemapSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
5
|
+
protected _transformLabelSpec(spec: T): void;
|
|
6
|
+
}
|
|
@@ -5,10 +5,14 @@ import { SeriesTypeEnum } from '../interface/type';
|
|
|
5
5
|
import type { ITreemapSeriesSpec } from './interface';
|
|
6
6
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
7
7
|
import { DataView } from '@visactor/vdataset';
|
|
8
|
+
import type { ILabelMark } from '../../mark/label';
|
|
9
|
+
import { TreemapSeriesSpecTransformer } from './treemap-transform';
|
|
8
10
|
export declare class TreemapSeries extends CartesianSeries<any> {
|
|
9
11
|
static readonly type: string;
|
|
10
12
|
type: SeriesTypeEnum;
|
|
11
13
|
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly transformerConstructor: typeof TreemapSeriesSpecTransformer;
|
|
15
|
+
readonly transformerConstructor: typeof TreemapSeriesSpecTransformer;
|
|
12
16
|
private _leafMark;
|
|
13
17
|
private _nonLeafMark;
|
|
14
18
|
private _labelMark;
|
|
@@ -23,7 +27,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
23
27
|
private _maxDepth;
|
|
24
28
|
private _matrix;
|
|
25
29
|
private _viewBox;
|
|
26
|
-
private _clickEnable;
|
|
27
30
|
private _enableAnimationHook;
|
|
28
31
|
setAttrFromSpec(): void;
|
|
29
32
|
initData(): void;
|
|
@@ -38,8 +41,8 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
38
41
|
initMarkStyle(): void;
|
|
39
42
|
protected _initLeafMarkStyle(): void;
|
|
40
43
|
protected _initNonLeafMarkStyle(): void;
|
|
41
|
-
|
|
42
|
-
protected
|
|
44
|
+
initLabelMarkStyle(labelMark: ILabelMark): void;
|
|
45
|
+
protected initNonLeafLabelMarkStyle(labelMark: ILabelMark): void;
|
|
43
46
|
initAnimation(): void;
|
|
44
47
|
protected initEvent(): void;
|
|
45
48
|
protected _getDataIdKey(): string;
|
|
@@ -22,8 +22,8 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
22
22
|
protected _rotateAngles?: number[];
|
|
23
23
|
protected _fontWeightRange?: [number, number];
|
|
24
24
|
protected _textField?: string;
|
|
25
|
-
protected _fontSizeRange?: [number, number];
|
|
26
|
-
setFontSizeRange(fontSizeRange: [number, number]): void;
|
|
25
|
+
protected _fontSizeRange?: [number, number] | 'auto';
|
|
26
|
+
setFontSizeRange(fontSizeRange: [number, number] | 'auto'): void;
|
|
27
27
|
protected _maskShape?: string | WordCloudShapeType;
|
|
28
28
|
protected _isWordCloudShape: boolean;
|
|
29
29
|
protected _keepAspect?: boolean;
|
|
@@ -34,18 +34,17 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
34
34
|
protected _wordCloudShapeConfig?: WordCloudShapeConfigType;
|
|
35
35
|
protected _padding?: IPadding;
|
|
36
36
|
protected _defaultFontFamily: string;
|
|
37
|
+
protected _keyWordColorCallback: (datum: Datum) => string;
|
|
38
|
+
protected _fillingColorCallback: (datum: Datum) => string;
|
|
37
39
|
setAttrFromSpec(): void;
|
|
38
40
|
protected _wordMark: ITextMark;
|
|
39
|
-
protected _fillingWordMark: ITextMark;
|
|
40
41
|
initMark(): void;
|
|
41
42
|
initMarkStyle(): void;
|
|
42
43
|
protected initTooltip(): void;
|
|
43
44
|
initAnimation(): void;
|
|
44
45
|
protected getWordOrdinalColorScale(field: string, isFillingWord: boolean): any;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
field: string;
|
|
48
|
-
};
|
|
46
|
+
protected initColorCallback(field: string, isFillingWord: boolean): (datum: Datum) => any;
|
|
47
|
+
getWordColor: (datum: Datum) => string;
|
|
49
48
|
compile(): void;
|
|
50
49
|
protected _wordCloudTransformOption(): Object;
|
|
51
50
|
protected _wordCloudShapeTransformOption(): Object;
|
|
@@ -63,4 +62,5 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
63
62
|
getStackValueField(): string;
|
|
64
63
|
onLayoutEnd(ctx: any): void;
|
|
65
64
|
getActiveMarks(): IMark[];
|
|
65
|
+
reInit(): void;
|
|
66
66
|
}
|
|
@@ -72,7 +72,7 @@ export interface IWordCloudSeriesBaseSpec extends ISeriesSpec, IAnimationSpec<st
|
|
|
72
72
|
colorList?: string[];
|
|
73
73
|
rotateAngles?: number[];
|
|
74
74
|
fontWeightRange?: [number, number];
|
|
75
|
-
fontSizeRange?: [number, number];
|
|
75
|
+
fontSizeRange?: [number, number] | 'auto';
|
|
76
76
|
maskShape?: string | WordCloudShapeType;
|
|
77
77
|
keepAspect?: boolean;
|
|
78
78
|
random?: boolean;
|
|
@@ -13,7 +13,7 @@ export type IPercentOffset = {
|
|
|
13
13
|
offset?: number;
|
|
14
14
|
};
|
|
15
15
|
export type ILayoutPercent = IPercent | number;
|
|
16
|
-
export type ILayoutType = 'region-relative' | 'region' | 'normal' | 'absolute' | 'normal-inline';
|
|
16
|
+
export type ILayoutType = 'region-relative' | 'region-relative-overlap' | 'region' | 'normal' | 'absolute' | 'normal-inline';
|
|
17
17
|
export type ILayoutOrientPadding = {
|
|
18
18
|
left?: ILayoutNumber;
|
|
19
19
|
right?: ILayoutNumber;
|
|
@@ -21,3 +21,4 @@ export type ILayoutOrientPadding = {
|
|
|
21
21
|
bottom?: ILayoutNumber;
|
|
22
22
|
};
|
|
23
23
|
export type ILayoutPaddingSpec = ILayoutOrientPadding | ILayoutNumber | ILayoutNumber[];
|
|
24
|
+
export type ILayoutAlignSelf = 'start' | 'end' | 'middle';
|