@visactor/vchart-types 1.7.0-alpha.0 → 1.7.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 +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base-chart.d.ts +9 -12
- package/types/chart/interface/chart.d.ts +2 -4
- package/types/chart/sequence/sequence.d.ts +1 -1
- package/types/compile/compiler.d.ts +2 -2
- package/types/compile/mark/compilable-mark.d.ts +10 -6
- package/types/compile/mark/interface.d.ts +6 -4
- package/types/compile/mark/util.d.ts +1 -3
- package/types/component/axis/base-axis.d.ts +1 -4
- package/types/component/axis/cartesian/axis.d.ts +3 -13
- package/types/component/axis/cartesian/band-axis.d.ts +0 -7
- package/types/component/axis/cartesian/interface/common.d.ts +0 -6
- package/types/component/axis/interface/common.d.ts +0 -1
- package/types/component/axis/mixin/band-axis-mixin.d.ts +0 -1
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +0 -1
- package/types/component/brush/brush.d.ts +1 -2
- package/types/component/crosshair/base.d.ts +2 -2
- package/types/component/custom-mark/custom-mark.d.ts +2 -2
- package/types/component/data-zoom/data-filter-base-component.d.ts +3 -1
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +3 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +5 -1
- package/types/component/data-zoom/scroll-bar/interface.d.ts +5 -1
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -0
- package/types/component/data-zoom/util.d.ts +4 -0
- package/types/component/geo/geo-coordinate.d.ts +2 -2
- package/types/component/index.d.ts +3 -2
- package/types/component/indicator/indicator.d.ts +2 -2
- package/types/component/interface/theme.d.ts +2 -1
- package/types/component/label/base-label.d.ts +1 -2
- package/types/component/label/interface.d.ts +4 -0
- package/types/component/label/label.d.ts +4 -6
- package/types/component/label/totalLabel.d.ts +0 -2
- package/types/component/label/util.d.ts +9 -2
- package/types/component/legend/util.d.ts +1 -1
- package/types/component/map-label/component.d.ts +2 -2
- package/types/component/marker/base-marker.d.ts +7 -2
- package/types/component/marker/interface.d.ts +14 -3
- package/types/component/marker/mark-area/interface/spec.d.ts +1 -1
- package/types/component/marker/mark-line/interface/spec.d.ts +3 -4
- package/types/component/marker/mark-line/util.d.ts +3 -3
- package/types/component/marker/mark-point/interface/spec.d.ts +5 -4
- package/types/component/marker/mark-point/interface/theme.d.ts +5 -5
- package/types/component/marker/utils.d.ts +3 -4
- package/types/component/tooltip/handler/utils/attribute.d.ts +3 -3
- package/types/component/tooltip/interface/spec.d.ts +1 -1
- package/types/component/tooltip/interface/theme.d.ts +10 -11
- package/types/component/tooltip/tooltip.d.ts +2 -2
- package/types/component/util.d.ts +1 -3
- package/types/core/expression-function.d.ts +12 -0
- package/types/core/index.d.ts +1 -0
- package/types/core/interface.d.ts +5 -0
- package/types/core/vchart.d.ts +9 -1
- package/types/data/transforms/aggregation.d.ts +4 -3
- package/types/data/transforms/sankey.d.ts +3 -6
- package/types/event/events/dimension/base.d.ts +1 -0
- package/types/event/interface.d.ts +1 -1
- package/types/index-wx-simple.d.ts +4 -0
- package/types/interaction/config.d.ts +2 -2
- package/types/mark/base/base-mark.d.ts +2 -2
- package/types/model/base-model.d.ts +0 -2
- package/types/model/interface.d.ts +3 -9
- package/types/model/layout-model.d.ts +6 -4
- package/types/series/area/area.d.ts +1 -1
- package/types/series/area/interface.d.ts +4 -0
- package/types/series/base/base-series.d.ts +4 -0
- package/types/series/cartesian/cartesian.d.ts +3 -0
- package/types/series/gauge/gauge.d.ts +0 -1
- package/types/series/index.d.ts +2 -2
- package/types/series/interface/common.d.ts +2 -2
- package/types/series/interface/series.d.ts +1 -0
- package/types/series/interface/type.d.ts +3 -1
- package/types/series/line/interface.d.ts +4 -0
- package/types/series/line/line.d.ts +1 -1
- package/types/series/mixin/line-mixin.d.ts +3 -1
- package/types/series/rose/rose.d.ts +2 -1
- package/types/series/sankey/sankey.d.ts +6 -1
- package/types/series/word-cloud/base.d.ts +1 -0
- package/types/theme/builtin/common/component/tooltip.d.ts +2 -1
- package/types/theme/builtin/index.d.ts +2 -4
- package/types/theme/color-scheme/builtin/interface.d.ts +16 -7
- package/types/theme/theme-manager.d.ts +1 -1
- package/types/typings/spec/common.d.ts +1 -2
- package/types/typings/visual.d.ts +1 -1
- package/types/util/spec/common.d.ts +1 -1
- package/types/util/spec/preprocess.d.ts +1 -1
- package/types/util/spec/transform.d.ts +2 -0
- package/types/vchart-simple.d.ts +1 -0
|
@@ -6,6 +6,7 @@ import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mix
|
|
|
6
6
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
7
7
|
import type { AreaAppearPreset } from './animation';
|
|
8
8
|
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
|
+
import type { ILabelSpec } from '../../component';
|
|
9
10
|
export interface IAreaSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<string, AreaAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
10
11
|
type: 'area';
|
|
11
12
|
xField: string | string[];
|
|
@@ -14,6 +15,9 @@ export interface IAreaSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<st
|
|
|
14
15
|
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
15
16
|
[SeriesMarkNameEnum.area]?: IMarkSpec<IAreaMarkSpec>;
|
|
16
17
|
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
18
|
+
[SeriesMarkNameEnum.areaLabel]?: Omit<ILabelSpec, 'position'> & {
|
|
19
|
+
position?: 'start' | 'end';
|
|
20
|
+
};
|
|
17
21
|
seriesMark?: 'point' | 'line' | 'area';
|
|
18
22
|
activePoint?: boolean;
|
|
19
23
|
}
|
|
@@ -12,6 +12,9 @@ import type { StatisticOperations } from '../../data/transforms/dimension-statis
|
|
|
12
12
|
import { SeriesData } from './series-data';
|
|
13
13
|
import type { IGroupMark } from '../../mark/group';
|
|
14
14
|
import type { ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
15
|
+
import type { ILabelSpec } from '../../component';
|
|
16
|
+
import type { ILabelMark } from '../../mark/label';
|
|
17
|
+
import type { TransformedLabelSpec } from '../../component/label';
|
|
15
18
|
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
16
19
|
readonly specKey: string;
|
|
17
20
|
readonly type: string;
|
|
@@ -192,4 +195,5 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
192
195
|
getMarkInfoList(): import("../../model/interface").IModelMarkInfo[];
|
|
193
196
|
protected _getInvalidConnectType(): "none" | "zero" | "connect";
|
|
194
197
|
protected _getInvalidDefined: (datum: Datum) => boolean;
|
|
198
|
+
protected _preprocessLabelSpec(spec: ILabelSpec, styleHandler?: (mark: ILabelMark) => void, hasAnimation?: boolean): TransformedLabelSpec;
|
|
195
199
|
}
|
|
@@ -76,7 +76,9 @@ 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 _positionXEncoder?: (datum: Datum) => number;
|
|
79
80
|
dataToPositionX(datum: Datum): number;
|
|
81
|
+
protected _positionYEncoder?: (datum: Datum) => number;
|
|
80
82
|
dataToPositionY(datum: Datum): number;
|
|
81
83
|
dataToPositionZ(datum: Datum): number;
|
|
82
84
|
dataToPositionX1(datum: Datum): number;
|
|
@@ -92,4 +94,5 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
92
94
|
viewDataUpdate(d: DataView): void;
|
|
93
95
|
_sortDataInAxisDomain(): void;
|
|
94
96
|
protected _getInvalidDefined: (datum: Datum) => boolean;
|
|
97
|
+
reInit(theme?: any, lastSpec?: any): void;
|
|
95
98
|
}
|
|
@@ -25,7 +25,6 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
|
|
|
25
25
|
protected _getAngleValueEndWithoutMask(datum: Datum): number;
|
|
26
26
|
protected _getAngleValueStartWithoutPadAngle(datum: Datum): number;
|
|
27
27
|
protected _getAngleValueEndWithoutPadAngle(datum: Datum): number;
|
|
28
|
-
protected _preprocessLabelSpec(): import("../..").ILabelSpec;
|
|
29
28
|
initAnimation(): void;
|
|
30
29
|
getDefaultShapeType(): string;
|
|
31
30
|
getActiveMarks(): IMark[];
|
package/types/series/index.d.ts
CHANGED
|
@@ -63,8 +63,8 @@ import type { IProgressLikeSeriesSpec } from './polar/progress-like';
|
|
|
63
63
|
import { ProgressLikeSeries } from './polar/progress-like';
|
|
64
64
|
import type { IRoseLikeSeriesSpec } from './polar/rose-like';
|
|
65
65
|
import { RoseLikeSeries } from './polar/rose-like';
|
|
66
|
-
import type { ISeries } from './interface';
|
|
66
|
+
import type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries } from './interface';
|
|
67
67
|
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries };
|
|
68
68
|
export { registerAreaSeries, registerBar3dSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnel3dSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPie3dSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumn3dSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloud3dSeries, registerWordCloudSeries };
|
|
69
|
-
export type { ISeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec };
|
|
69
|
+
export type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec };
|
|
70
70
|
export * from './interface';
|
|
@@ -7,7 +7,7 @@ import type { RenderMode } from '../../typings/spec/common';
|
|
|
7
7
|
import type { ISeries } from './series';
|
|
8
8
|
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
9
|
import type { StringOrNumber } from '../../typings';
|
|
10
|
-
import type {
|
|
10
|
+
import type { TransformedLabelSpec } from '../../component/label';
|
|
11
11
|
import type { SeriesMarkNameEnum } from './type';
|
|
12
12
|
export interface ISeriesSeriesInfo {
|
|
13
13
|
key: string;
|
|
@@ -64,7 +64,7 @@ export interface ISeriesMarkInitOption {
|
|
|
64
64
|
dataProductId?: string;
|
|
65
65
|
seriesId?: number;
|
|
66
66
|
progressive?: IMarkProgressiveConfig;
|
|
67
|
-
label?:
|
|
67
|
+
label?: TransformedLabelSpec;
|
|
68
68
|
support3d?: boolean;
|
|
69
69
|
}
|
|
70
70
|
export interface ISeriesMarkInfo extends IModelMarkInfo {
|
|
@@ -94,6 +94,7 @@ export interface ISeries extends IModel {
|
|
|
94
94
|
getTrigger: () => ITrigger;
|
|
95
95
|
getDefaultShapeType: () => string;
|
|
96
96
|
initLabelMarkStyle?: (labelMark: ILabelMark) => void;
|
|
97
|
+
getGroupFields: () => string[];
|
|
97
98
|
}
|
|
98
99
|
export interface ICartesianSeries extends ISeries {
|
|
99
100
|
readonly coordinate: 'cartesian';
|
|
@@ -86,6 +86,8 @@ export declare enum SeriesMarkNameEnum {
|
|
|
86
86
|
ripplePoint = "ripplePoint",
|
|
87
87
|
centerPoint = "centerPoint",
|
|
88
88
|
centerLabel = "centerLabel",
|
|
89
|
-
barBackground = "barBackground"
|
|
89
|
+
barBackground = "barBackground",
|
|
90
|
+
lineLabel = "lineLabel",
|
|
91
|
+
areaLabel = "areaLabel"
|
|
90
92
|
}
|
|
91
93
|
export declare const seriesMarkNameSet: Set<string>;
|
|
@@ -6,6 +6,7 @@ import type { LineAppearPreset } from './animation';
|
|
|
6
6
|
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mixin';
|
|
7
7
|
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
8
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
+
import type { ILabelSpec } from '../../component';
|
|
9
10
|
type LineMarks = 'point' | 'line';
|
|
10
11
|
export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<LineMarks, LineAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
11
12
|
type: 'line';
|
|
@@ -14,6 +15,9 @@ export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Li
|
|
|
14
15
|
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
15
16
|
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
16
17
|
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
18
|
+
[SeriesMarkNameEnum.lineLabel]?: Omit<ILabelSpec, 'position'> & {
|
|
19
|
+
position: 'start' | 'end';
|
|
20
|
+
};
|
|
17
21
|
seriesMark?: 'line' | 'point';
|
|
18
22
|
activePoint?: boolean;
|
|
19
23
|
}
|
|
@@ -2,7 +2,7 @@ import { CartesianSeries } from '../cartesian/cartesian';
|
|
|
2
2
|
import type { SeriesMarkMap } from '../interface';
|
|
3
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
4
4
|
import { LineLikeSeriesMixin } from '../mixin/line-mixin';
|
|
5
|
-
import {
|
|
5
|
+
import type { Datum, Maybe } from '../../typings';
|
|
6
6
|
import type { ILineSeriesSpec, ILineSeriesTheme } from './interface';
|
|
7
7
|
import type { IMark } from '../../mark/interface';
|
|
8
8
|
export interface LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling'>, CartesianSeries<T> {
|
|
@@ -7,7 +7,7 @@ import type { ISymbolMark } from '../../mark/symbol';
|
|
|
7
7
|
import type { ITextMark } from '../../mark/text';
|
|
8
8
|
import type { DirectionType, IInvalidType, InterpolateType, ILineMarkSpec, ISymbolMarkSpec, Maybe, Datum, IMarkTheme, ILayoutRect } from '../../typings';
|
|
9
9
|
import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
|
|
10
|
-
import type { ILabelSpec } from '../../component/label';
|
|
10
|
+
import type { ILabelSpec, TransformedLabelSpec } from '../../component/label';
|
|
11
11
|
import { type DimensionEventParams } from '../../event/events/dimension';
|
|
12
12
|
import type { ILabelMark } from '../../mark/label';
|
|
13
13
|
import type { Functional } from '@visactor/vrender-components';
|
|
@@ -45,6 +45,7 @@ export interface LineLikeSeriesMixin extends ISeries {
|
|
|
45
45
|
_getInvalidDefined: () => boolean;
|
|
46
46
|
_getInvalidConnectType: () => IInvalidType;
|
|
47
47
|
getLayoutRect: () => ILayoutRect;
|
|
48
|
+
_preprocessLabelSpec: (label: ILabelSpec, styleHandler?: (mark: ILabelMark) => void, hasAnimation?: boolean) => TransformedLabelSpec;
|
|
48
49
|
}
|
|
49
50
|
export declare class LineLikeSeriesMixin {
|
|
50
51
|
addSamplingCompile(): void;
|
|
@@ -57,5 +58,6 @@ export declare class LineLikeSeriesMixin {
|
|
|
57
58
|
initSymbolMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ISymbolMark;
|
|
58
59
|
initSymbolMarkStyle(): ISymbolMark;
|
|
59
60
|
initLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
61
|
+
initLineLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
60
62
|
encodeDefined(mark: IMark, attr: string): void;
|
|
61
63
|
}
|
|
@@ -5,6 +5,7 @@ import type { IRoseSeriesSpec, IRoseSeriesTheme } from './interface';
|
|
|
5
5
|
import { RoseLikeSeries } from '../polar/rose-like';
|
|
6
6
|
import type { ITextMark } from '../../mark/text';
|
|
7
7
|
import type { IMark } from '../../mark/interface';
|
|
8
|
+
import type { ILabelMark } from '../../mark/label';
|
|
8
9
|
export declare const DefaultBandWidth = 0.5;
|
|
9
10
|
export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> extends RoseLikeSeries<T> {
|
|
10
11
|
static readonly type: string;
|
|
@@ -20,7 +21,7 @@ export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> ext
|
|
|
20
21
|
private getRoseAngle;
|
|
21
22
|
private initRoseMarkStyle;
|
|
22
23
|
protected initTooltip(): void;
|
|
23
|
-
initLabelMarkStyle(textMark:
|
|
24
|
+
initLabelMarkStyle(textMark: ILabelMark): void;
|
|
24
25
|
initAnimation(): void;
|
|
25
26
|
getDefaultShapeType(): string;
|
|
26
27
|
getActiveMarks(): IMark[];
|
|
@@ -53,7 +53,12 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
53
53
|
extractNamesFromTree(tree: any, categoryName: string): Set<unknown>;
|
|
54
54
|
getDimensionField(): string[];
|
|
55
55
|
getMeasureField(): string[];
|
|
56
|
-
|
|
56
|
+
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
57
|
+
values?: any[];
|
|
58
|
+
min?: number;
|
|
59
|
+
max?: number;
|
|
60
|
+
};
|
|
61
|
+
private _collectByField;
|
|
57
62
|
onLayoutEnd(ctx: any): void;
|
|
58
63
|
getDefaultShapeType(): string;
|
|
59
64
|
protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
|
|
@@ -32,6 +32,7 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
32
32
|
protected _wordCloudConfig?: WordCloudConfigType;
|
|
33
33
|
protected _wordCloudShapeConfig?: WordCloudShapeConfigType;
|
|
34
34
|
protected _padding?: IPadding;
|
|
35
|
+
protected _defaultFontFamily: string;
|
|
35
36
|
setAttrFromSpec(): void;
|
|
36
37
|
protected _wordMark: ITextMark;
|
|
37
38
|
protected _fillingWordMark: ITextMark;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
export * from './light';
|
|
2
|
+
export * from './dark';
|
|
2
3
|
export * from './common/legacy';
|
|
3
|
-
import type { IChartLevelTheme } from '../../core/interface';
|
|
4
4
|
import type { ITheme } from '../interface';
|
|
5
5
|
export declare const builtinThemes: Record<string, ITheme>;
|
|
6
|
-
export declare const getDefaultThemeName: (type?: ITheme['type']) => string;
|
|
7
6
|
export declare const defaultThemeName: string;
|
|
8
7
|
export declare const themes: Map<string, ITheme>;
|
|
9
8
|
export declare const hasThemeMerged: Map<string, boolean>;
|
|
10
9
|
export declare const registerTheme: (name: string, theme: Partial<ITheme>) => void;
|
|
11
|
-
export declare const getTheme: (name
|
|
10
|
+
export declare const getTheme: (name?: string, transformed?: boolean) => ITheme;
|
|
12
11
|
export declare const removeTheme: (name: string) => boolean;
|
|
13
12
|
export declare const themeExist: (name: any) => boolean;
|
|
14
13
|
export declare const getMergedTheme: (theme: Partial<ITheme>) => ITheme;
|
|
15
|
-
export declare const defaultChartLevelTheme: IChartLevelTheme;
|
|
@@ -3,19 +3,28 @@ export type BuiltinColorPalette = IColorSchemeStruct['palette'] & {
|
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
borderColor: string;
|
|
5
5
|
shadowColor: string;
|
|
6
|
+
hoverBackgroundColor: string;
|
|
7
|
+
sliderRailColor: string;
|
|
8
|
+
sliderHandleColor: string;
|
|
9
|
+
sliderTrackColor: string;
|
|
10
|
+
popupBackgroundColor: string;
|
|
6
11
|
primaryFontColor: string;
|
|
7
12
|
secondaryFontColor: string;
|
|
8
|
-
|
|
13
|
+
tertiaryFontColor: string;
|
|
14
|
+
axisLabelFontColor: string;
|
|
9
15
|
disableFontColor: string;
|
|
10
|
-
|
|
16
|
+
axisMarkerFontColor: string;
|
|
11
17
|
axisGridColor: string;
|
|
12
18
|
axisDomainColor: string;
|
|
13
|
-
|
|
14
|
-
dataZoomHandlerFillColor: string;
|
|
15
|
-
dataZoomBackgroundColor: string;
|
|
19
|
+
dataZoomHandleStrokeColor: string;
|
|
16
20
|
dataZoomChartColor: string;
|
|
17
|
-
|
|
21
|
+
playerControllerColor: string;
|
|
18
22
|
scrollBarSliderColor: string;
|
|
19
|
-
|
|
23
|
+
axisMarkerBackgroundColor: string;
|
|
20
24
|
markLabelBackgroundColor: string;
|
|
25
|
+
markLineStrokeColor: string;
|
|
26
|
+
dangerColor: string;
|
|
27
|
+
warningColor: string;
|
|
28
|
+
successColor: string;
|
|
29
|
+
infoColor: string;
|
|
21
30
|
};
|
|
@@ -3,7 +3,7 @@ export declare class ThemeManager {
|
|
|
3
3
|
static readonly themes: Map<string, ITheme>;
|
|
4
4
|
private static _currentThemeName;
|
|
5
5
|
static registerTheme(name: string, theme: Partial<ITheme>): void;
|
|
6
|
-
static getTheme(name: string): ITheme;
|
|
6
|
+
static getTheme(name: string, transformed?: boolean): ITheme;
|
|
7
7
|
static removeTheme(name: string): boolean;
|
|
8
8
|
static themeExist(name: any): boolean;
|
|
9
9
|
static getDefaultTheme(): ITheme;
|
|
@@ -22,7 +22,6 @@ import type { ITitleSpec } from '../../component/title/interface';
|
|
|
22
22
|
import type { IBrushSpec } from '../../component/brush';
|
|
23
23
|
import type { ITotalLabelSpec } from '../../component/label';
|
|
24
24
|
import type { ILegendSpec } from '../../component/legend';
|
|
25
|
-
import type { IColorKey } from '../../theme/color-scheme/interface';
|
|
26
25
|
import type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';
|
|
27
26
|
export type IChartPadding = ILayoutOrientPadding | number;
|
|
28
27
|
export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
@@ -56,7 +55,7 @@ export interface IChartSpec {
|
|
|
56
55
|
height?: number;
|
|
57
56
|
autoFit?: boolean;
|
|
58
57
|
padding?: ILayoutPaddingSpec;
|
|
59
|
-
color?: string[] | Omit<IVisualSpecScale<unknown, string
|
|
58
|
+
color?: string[] | Omit<IVisualSpecScale<unknown, string>, 'id'>;
|
|
60
59
|
series?: ISeriesSpec[];
|
|
61
60
|
seriesStyle?: ISeriesStyle;
|
|
62
61
|
animationThreshold?: number;
|
|
@@ -55,7 +55,7 @@ export interface ICommonSpec {
|
|
|
55
55
|
x?: number;
|
|
56
56
|
y?: number;
|
|
57
57
|
z?: number;
|
|
58
|
-
stroke?: string | IGradient |
|
|
58
|
+
stroke?: string | IGradient | false | (number | boolean)[] | IColorKey;
|
|
59
59
|
strokeOpacity?: number;
|
|
60
60
|
opacity?: number;
|
|
61
61
|
lineWidth?: number;
|
|
@@ -2,4 +2,4 @@ import { DataView } from '@visactor/vdataset';
|
|
|
2
2
|
import { type ITheme } from '../../theme';
|
|
3
3
|
export declare function isDataView(obj: any): obj is DataView;
|
|
4
4
|
export declare function isHTMLElement(obj: any): obj is Element;
|
|
5
|
-
export declare function getThemeObject(theme?: string | ITheme): ITheme;
|
|
5
|
+
export declare function getThemeObject(theme?: string | ITheme, transformed?: boolean): ITheme;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
|
|
2
2
|
import type { ISeriesSpec } from '../../typings';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function preprocessTheme(obj: any, colorScheme?: IThemeColorScheme, seriesSpec?: ISeriesSpec): any;
|
package/types/vchart-simple.d.ts
CHANGED