@univerjs-pro/engine-chart 1.0.0-alpha.3 → 1.0.0-alpha.5
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/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -1
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +13 -0
- package/lib/types/chart-builder/chart-builder.d.ts +35 -0
- package/lib/types/chart-builder/chart-description.d.ts +3 -0
- package/lib/types/chart-builder/chart-types.d.ts +459 -0
- package/lib/types/chart-builder/configuration/aggregation.d.ts +7 -0
- package/lib/types/chart-builder/configuration/appearance.d.ts +8 -0
- package/lib/types/chart-builder/configuration/area.d.ts +3 -0
- package/lib/types/chart-builder/configuration/axes.d.ts +26 -0
- package/lib/types/chart-builder/configuration/axis-pointer.d.ts +9 -0
- package/lib/types/chart-builder/configuration/bar.d.ts +3 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +25 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +40 -0
- package/lib/types/chart-builder/configuration/combination.d.ts +10 -0
- package/lib/types/chart-builder/configuration/funnel.d.ts +4 -0
- package/lib/types/chart-builder/configuration/heatmap.d.ts +9 -0
- package/lib/types/chart-builder/configuration/index.d.ts +29 -0
- package/lib/types/chart-builder/configuration/invalid-value.d.ts +3 -0
- package/lib/types/chart-builder/configuration/legend.d.ts +3 -0
- package/lib/types/chart-builder/configuration/line.d.ts +3 -0
- package/lib/types/chart-builder/configuration/mapping.d.ts +4 -0
- package/lib/types/chart-builder/configuration/mark-lines.d.ts +3 -0
- package/lib/types/chart-builder/configuration/palette.d.ts +4 -0
- package/lib/types/chart-builder/configuration/pareto.d.ts +7 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +23 -0
- package/lib/types/chart-builder/configuration/point-mapping.d.ts +5 -0
- package/lib/types/chart-builder/configuration/radar.d.ts +5 -0
- package/lib/types/chart-builder/configuration/relation.d.ts +14 -0
- package/lib/types/chart-builder/configuration/subtitle.d.ts +3 -0
- package/lib/types/chart-builder/configuration/theme.d.ts +4 -0
- package/lib/types/chart-builder/configuration/title.d.ts +3 -0
- package/lib/types/chart-builder/configuration/trendline.d.ts +12 -0
- package/lib/types/chart-builder/configuration/waterfall.d.ts +12 -0
- package/lib/types/chart-builder/configuration/word-cloud.d.ts +7 -0
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +24 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +115 -0
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +6 -0
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +11 -0
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +5 -0
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +19 -0
- package/lib/types/chart-builder/index.d.ts +12 -0
- package/lib/types/chart-builder/internal/deep-freeze.d.ts +1 -0
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +5 -0
- package/lib/types/chart-builder/internal/merge-description.d.ts +2 -0
- package/lib/types/enum.d.ts +28 -0
- package/lib/types/facade/builders/f-area-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-combination-chart-builder.d.ts +66 -0
- package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +61 -0
- package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +124 -0
- package/lib/types/facade/builders/f-line-chart-builder.d.ts +36 -0
- package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +112 -0
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +324 -0
- package/lib/types/facade/builders/f-radar-chart-builder.d.ts +62 -0
- package/lib/types/facade/builders/f-relation-chart-builder.d.ts +184 -0
- package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +226 -0
- package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +91 -0
- package/lib/types/facade/builders/index.d.ts +13 -0
- package/lib/types/facade/chart-builder-registry.d.ts +8 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +30 -0
- package/lib/types/facade/chart-host-builder-types.d.ts +21 -0
- package/lib/types/facade/f-axis-chart-builder.d.ts +245 -0
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +146 -0
- package/lib/types/facade/f-chart-base.d.ts +82 -0
- package/lib/types/facade/f-chart-builder-base.d.ts +331 -0
- package/lib/types/facade/f-charts-base.d.ts +74 -0
- package/lib/types/facade/f-enum.d.ts +75 -0
- package/lib/types/facade/index.d.ts +16 -0
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +12 -0
- package/lib/types/facade/internal/constants.d.ts +2 -0
- package/lib/types/facade/internal/host-builder-composer.d.ts +16 -0
- package/lib/types/facade/register-builders.d.ts +1 -0
- package/lib/types/index.d.ts +10 -54
- package/lib/types/models/chart-host-style.d.ts +6 -1
- package/lib/types/models/chart-model.d.ts +141 -18
- package/lib/types/models/chart-resource-serializer.d.ts +10 -0
- package/lib/types/models/chart-semantic-axes.d.ts +4 -0
- package/lib/types/models/constants/default-chart-style.d.ts +21 -1
- package/lib/types/models/mode-converter/converters/waterfall-layout.d.ts +34 -0
- package/lib/types/models/mode-converter/render-spec-operators/mark-line.operator.d.ts +3 -0
- package/lib/types/models/mode-converter/render-spec-operators/tools.d.ts +2 -3
- package/lib/types/source/chart-data-item.d.ts +3 -0
- package/lib/types/types.d.ts +61 -2
- package/lib/types/util.d.ts +1 -3
- package/lib/types/utils/compact.d.ts +4 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +14 -4
- package/lib/types/chart-model-api/chart-model-api.d.ts +0 -2
- package/lib/types/chart-model-api/chart-type-manifest.d.ts +0 -128
- package/lib/types/chart-model-api/chart-type-registry.d.ts +0 -56
- package/lib/types/chart-model-api/chart-type.d.ts +0 -7
- package/lib/types/chart-model-api/constants.d.ts +0 -99
- package/lib/types/chart-model-api/describe.d.ts +0 -3
- package/lib/types/chart-model-api/index.d.ts +0 -8
- package/lib/types/chart-model-api/patch-builder.d.ts +0 -9
- package/lib/types/chart-model-api/series-selector.d.ts +0 -3
- package/lib/types/chart-model-api/types.d.ts +0 -452
- package/lib/types/chart-model-api/utils.d.ts +0 -10
- package/lib/types/chart-model-api/validate.d.ts +0 -5
- package/lib/types/f-base-chart.d.ts +0 -25
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IUniverDataSet } from '../types';
|
|
2
|
+
import type { ChartPendingConfig, IChartDescription, IResolvedChartData } from './chart-types';
|
|
3
|
+
/** Host-owned persistence and rendering capabilities used by a chart builder. */
|
|
4
|
+
export interface IChartBuilderAdapter<THostDescription extends object = object> {
|
|
5
|
+
/** Reads the canonical host description, optionally evaluating pending config against an alternate data set without persisting either. */
|
|
6
|
+
describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & THostDescription;
|
|
7
|
+
/** Persists one pending semantic configuration patch. */
|
|
8
|
+
commit(config: ChartPendingConfig): void;
|
|
9
|
+
/** Materializes fresh engine semantic data for the effective pending state without mutating the host. */
|
|
10
|
+
resolveData(config: ChartPendingConfig): IResolvedChartData;
|
|
11
|
+
/** Renders the hosted chart as an image when rendering is available. */
|
|
12
|
+
exportImage(options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult | null>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DeepReadonly } from '@univerjs/core';
|
|
2
|
+
import type { IChartBuilderAdapter } from './chart-builder-adapter';
|
|
3
|
+
import type { ChartPendingConfig, IChartDescription, IResolvedChartData } from './chart-types';
|
|
4
|
+
import type { IChartConfigOperation } from './configuration/chart-config-operation';
|
|
5
|
+
import type { IUniverDataSet } from '../types';
|
|
6
|
+
import { ChartTypeString } from './chart-types';
|
|
7
|
+
/** Maintains an immutable chart baseline plus pending semantic configuration changes. */
|
|
8
|
+
export declare class ChartBuilder<THostDescription extends object = object> {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly adapter: IChartBuilderAdapter<THostDescription>;
|
|
11
|
+
protected _baseline: IChartDescription & THostDescription;
|
|
12
|
+
protected _pending: ChartPendingConfig;
|
|
13
|
+
/** Creates a builder for one chart identity and host adapter. */
|
|
14
|
+
constructor(id: string, baseline: IChartDescription & THostDescription, adapter: IChartBuilderAdapter<THostDescription>);
|
|
15
|
+
/** Returns the effective chart type after applying pending changes. */
|
|
16
|
+
get type(): ChartTypeString;
|
|
17
|
+
/** Changes the chart type and discards pending options that the new type cannot represent. */
|
|
18
|
+
setType(type: ChartTypeString): void;
|
|
19
|
+
/** Merges a semantic patch into the pending configuration. */
|
|
20
|
+
mergePending(patch: ChartPendingConfig): void;
|
|
21
|
+
/** Applies one typed configuration operation to the pending state. */
|
|
22
|
+
apply(operation: IChartConfigOperation): void;
|
|
23
|
+
/** Returns a frozen description composed from the baseline and pending state. */
|
|
24
|
+
describe(): DeepReadonly<IChartDescription & THostDescription>;
|
|
25
|
+
/** Materializes a fresh deeply read-only engine data result for this hosted builder. */
|
|
26
|
+
resolveData(): DeepReadonly<IResolvedChartData>;
|
|
27
|
+
/** Persists pending changes through the host adapter and refreshes the baseline. */
|
|
28
|
+
commit(): void;
|
|
29
|
+
protected refreshBaseline(): void;
|
|
30
|
+
/** Supplies host-owned pending data when `describe()` needs to refresh source metadata. */
|
|
31
|
+
protected getDescriptionDataSetOverride(): IUniverDataSet | undefined;
|
|
32
|
+
/** Adds host-owned pending fields before the public description is frozen. */
|
|
33
|
+
protected composeHostDescription(description: IChartDescription & THostDescription): IChartDescription & THostDescription;
|
|
34
|
+
private _discardIncompatiblePending;
|
|
35
|
+
}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import type { AreaLineStyle, BarShape, ChartAxisDimension, ChartBorderDashType, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartTrendlineType, ChartWaterfallPointRole, InvalidValueType, IRuntimeAxisPosition, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../enum';
|
|
2
|
+
import type { IChartData } from '../types';
|
|
3
|
+
export { ChartAxisDimension, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartWaterfallPointRole } from '../enum';
|
|
4
|
+
/** Canonical semantic chart type names exposed by the chart facade. */
|
|
5
|
+
export declare enum ChartTypeString {
|
|
6
|
+
Line = "line",
|
|
7
|
+
Column = "column",
|
|
8
|
+
ColumnStacked = "columnStacked",
|
|
9
|
+
ColumnPercentStacked = "columnPercentStacked",
|
|
10
|
+
Bar = "bar",
|
|
11
|
+
BarStacked = "barStacked",
|
|
12
|
+
BarPercentStacked = "barPercentStacked",
|
|
13
|
+
Pie = "pie",
|
|
14
|
+
Donut = "donut",
|
|
15
|
+
Area = "area",
|
|
16
|
+
AreaStacked = "areaStacked",
|
|
17
|
+
AreaPercentStacked = "areaPercentStacked",
|
|
18
|
+
Radar = "radar",
|
|
19
|
+
Scatter = "scatter",
|
|
20
|
+
Combination = "combination",
|
|
21
|
+
WordCloud = "wordCloud",
|
|
22
|
+
Funnel = "funnel",
|
|
23
|
+
Bubble = "bubble",
|
|
24
|
+
Relation = "relation",
|
|
25
|
+
Waterfall = "waterfall",
|
|
26
|
+
Pareto = "pareto",
|
|
27
|
+
Sankey = "sankey",
|
|
28
|
+
Heatmap = "heatmap",
|
|
29
|
+
Boxplot = "boxplot"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ChartSeriesTypeString {
|
|
32
|
+
Column = "column",
|
|
33
|
+
Line = "line",
|
|
34
|
+
Area = "area"
|
|
35
|
+
}
|
|
36
|
+
export declare enum ChartVisualMapType {
|
|
37
|
+
Continuous = "continuous",
|
|
38
|
+
Piecewise = "piecewise"
|
|
39
|
+
}
|
|
40
|
+
export declare enum ChartAxisTickPosition {
|
|
41
|
+
Inside = "inside",
|
|
42
|
+
Outside = "outside"
|
|
43
|
+
}
|
|
44
|
+
export declare enum ChartWordCloudShapeSource {
|
|
45
|
+
Shape = "shape",
|
|
46
|
+
MaskImage = "maskImage"
|
|
47
|
+
}
|
|
48
|
+
export declare enum ChartWaterfallStyleTarget {
|
|
49
|
+
Positive = "positive",
|
|
50
|
+
Negative = "negative",
|
|
51
|
+
Subtotal = "subtotal"
|
|
52
|
+
}
|
|
53
|
+
export declare const DEFAULT_CHART_TYPE = ChartTypeString.Line;
|
|
54
|
+
export declare const CARTESIAN_CHART_TYPES: ReadonlySet<ChartTypeString>;
|
|
55
|
+
export declare const AXIS_CHART_TYPES: ReadonlySet<ChartTypeString>;
|
|
56
|
+
export declare const AREA_CHART_TYPES: ReadonlySet<ChartTypeString>;
|
|
57
|
+
export interface IChartFontSpec {
|
|
58
|
+
color?: string;
|
|
59
|
+
fontSize?: number;
|
|
60
|
+
bold?: boolean;
|
|
61
|
+
italic?: boolean;
|
|
62
|
+
family?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface IChartTitleOptions extends IChartFontSpec {
|
|
65
|
+
text?: string;
|
|
66
|
+
visible?: boolean;
|
|
67
|
+
position?: TitlePositionEnum;
|
|
68
|
+
alignment?: LabelAlignEnum;
|
|
69
|
+
}
|
|
70
|
+
export type ChartTitleSpec = string | IChartTitleOptions;
|
|
71
|
+
export interface IChartSubtitleOptions extends IChartFontSpec {
|
|
72
|
+
text?: string;
|
|
73
|
+
alignment?: LabelAlignEnum;
|
|
74
|
+
}
|
|
75
|
+
export type ChartSubtitleSpec = string | IChartSubtitleOptions;
|
|
76
|
+
export interface IChartLegendOptions extends IChartFontSpec {
|
|
77
|
+
visible?: boolean;
|
|
78
|
+
position?: LegendPositionEnum;
|
|
79
|
+
selectMode?: SelectModeEnum;
|
|
80
|
+
wrap?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export type ChartLegendSpec = boolean | IChartLegendOptions;
|
|
83
|
+
export interface IChartAxisLabelSpec extends IChartFontSpec {
|
|
84
|
+
visible?: boolean;
|
|
85
|
+
rotate?: number;
|
|
86
|
+
}
|
|
87
|
+
export interface IChartAxisSpec {
|
|
88
|
+
title?: string;
|
|
89
|
+
min?: number | null;
|
|
90
|
+
max?: number | null;
|
|
91
|
+
reverse?: boolean;
|
|
92
|
+
line?: {
|
|
93
|
+
visible?: boolean;
|
|
94
|
+
color?: string;
|
|
95
|
+
width?: number;
|
|
96
|
+
};
|
|
97
|
+
tick?: {
|
|
98
|
+
visible?: boolean;
|
|
99
|
+
color?: string;
|
|
100
|
+
width?: number;
|
|
101
|
+
length?: number;
|
|
102
|
+
position?: ChartAxisTickPosition;
|
|
103
|
+
};
|
|
104
|
+
format?: string | null;
|
|
105
|
+
titleStyle?: IChartFontSpec;
|
|
106
|
+
label?: IChartAxisLabelSpec;
|
|
107
|
+
gridLine?: {
|
|
108
|
+
visible?: boolean;
|
|
109
|
+
color?: string;
|
|
110
|
+
width?: number;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export interface IChartAxesSpec {
|
|
114
|
+
x?: IChartAxisSpec;
|
|
115
|
+
y?: IChartAxisSpec;
|
|
116
|
+
rightY?: Omit<IChartAxisSpec, 'reverse'>;
|
|
117
|
+
}
|
|
118
|
+
/** Physical location resolved for one semantic axis. */
|
|
119
|
+
export interface IChartAxisBindingDescription {
|
|
120
|
+
/** Canvas dimension occupied by the axis. */
|
|
121
|
+
dimension: ChartAxisDimension;
|
|
122
|
+
/** Physical edge where the axis is drawn. */
|
|
123
|
+
position: IRuntimeAxisPosition;
|
|
124
|
+
}
|
|
125
|
+
/** Optional label appearance for a fixed-axis mark line. */
|
|
126
|
+
export interface IChartMarkLineLabelSpec {
|
|
127
|
+
/** Whether the label is visible. */
|
|
128
|
+
visible?: boolean;
|
|
129
|
+
/** Explicit label text; omission uses the formatted axis coordinate. */
|
|
130
|
+
text?: string;
|
|
131
|
+
/** Physical label placement along the line. */
|
|
132
|
+
position?: ChartMarkLineLabelPosition;
|
|
133
|
+
/** Label text color. */
|
|
134
|
+
color?: string;
|
|
135
|
+
/** Label font size in pixels. */
|
|
136
|
+
fontSize?: number;
|
|
137
|
+
/** Whether the label is bold. */
|
|
138
|
+
bold?: boolean;
|
|
139
|
+
}
|
|
140
|
+
interface IChartMarkLineStyleSpec {
|
|
141
|
+
label?: IChartMarkLineLabelSpec;
|
|
142
|
+
color?: string;
|
|
143
|
+
width?: number;
|
|
144
|
+
opacity?: number;
|
|
145
|
+
dashType?: ChartBorderDashType;
|
|
146
|
+
}
|
|
147
|
+
/** A fixed line addressed by semantic axis and an axis-appropriate coordinate. */
|
|
148
|
+
export type IChartMarkLineSpec = IChartMarkLineStyleSpec & ({
|
|
149
|
+
axis: ChartSemanticAxis.Category | ChartSemanticAxis.SecondaryCategory;
|
|
150
|
+
categoryIndex: number;
|
|
151
|
+
} | {
|
|
152
|
+
axis: ChartSemanticAxis.PrimaryValue | ChartSemanticAxis.SecondaryValue;
|
|
153
|
+
value: number;
|
|
154
|
+
});
|
|
155
|
+
export type ChartSeriesSelector = {
|
|
156
|
+
index: number;
|
|
157
|
+
} | {
|
|
158
|
+
name: string;
|
|
159
|
+
};
|
|
160
|
+
export interface IChartSeriesBorderSpec {
|
|
161
|
+
color?: string | null;
|
|
162
|
+
width?: number;
|
|
163
|
+
opacity?: number;
|
|
164
|
+
dashType?: ChartBorderDashType;
|
|
165
|
+
}
|
|
166
|
+
export interface IChartSeriesPointSpec {
|
|
167
|
+
shape?: LinePointShape;
|
|
168
|
+
size?: number;
|
|
169
|
+
color?: string | null;
|
|
170
|
+
}
|
|
171
|
+
export interface IChartSeriesLabelSpec extends IChartFontSpec {
|
|
172
|
+
visible?: boolean;
|
|
173
|
+
position?: SeriesLabelPosition;
|
|
174
|
+
contentType?: LabelContentType;
|
|
175
|
+
}
|
|
176
|
+
export interface IChartHeatmapLabelSpec extends IChartFontSpec {
|
|
177
|
+
visible?: boolean;
|
|
178
|
+
position?: SeriesLabelPosition;
|
|
179
|
+
}
|
|
180
|
+
export interface IChartSeriesStyleSpec {
|
|
181
|
+
color?: string;
|
|
182
|
+
fillOpacity?: number;
|
|
183
|
+
border?: IChartSeriesBorderSpec;
|
|
184
|
+
point?: IChartSeriesPointSpec;
|
|
185
|
+
rightAxis?: boolean;
|
|
186
|
+
label?: IChartSeriesLabelSpec;
|
|
187
|
+
}
|
|
188
|
+
export interface IChartSeriesPatch extends IChartSeriesStyleSpec {
|
|
189
|
+
selector: ChartSeriesSelector;
|
|
190
|
+
type?: ChartSeriesTypeString;
|
|
191
|
+
dataPoints?: Record<number, {
|
|
192
|
+
shape?: LinePointShape;
|
|
193
|
+
size?: number;
|
|
194
|
+
color?: string | null;
|
|
195
|
+
fillOpacity?: number;
|
|
196
|
+
}>;
|
|
197
|
+
waterfallStyles?: Partial<Record<ChartWaterfallStyleTarget, Omit<IChartSeriesPatch, 'selector' | 'waterfallStyles'>>>;
|
|
198
|
+
}
|
|
199
|
+
export interface IChartTrendlineSpec {
|
|
200
|
+
selector: ChartSeriesSelector;
|
|
201
|
+
type: ChartTrendlineType;
|
|
202
|
+
name?: string;
|
|
203
|
+
color?: string;
|
|
204
|
+
width?: number;
|
|
205
|
+
opacity?: number;
|
|
206
|
+
dashType?: ChartBorderDashType;
|
|
207
|
+
order?: number;
|
|
208
|
+
period?: number;
|
|
209
|
+
showFormula?: boolean;
|
|
210
|
+
showR2?: boolean;
|
|
211
|
+
formulaColor?: string;
|
|
212
|
+
r2Color?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface IChartHeatmapSpec {
|
|
215
|
+
visualMapType?: ChartVisualMapType;
|
|
216
|
+
min?: number;
|
|
217
|
+
max?: number;
|
|
218
|
+
/** Unit appended to the minimum and maximum visual-map labels. */
|
|
219
|
+
unit?: string;
|
|
220
|
+
/** Style for the value rendered inside each Heatmap cell. */
|
|
221
|
+
label?: IChartHeatmapLabelSpec;
|
|
222
|
+
}
|
|
223
|
+
export interface IChartWordCloudSpec {
|
|
224
|
+
shape?: WordCloudShapeEnum;
|
|
225
|
+
maskImageId?: string | null;
|
|
226
|
+
repeat?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export interface IChartWordCloudDescription {
|
|
229
|
+
shape?: WordCloudShapeEnum;
|
|
230
|
+
maskImageId?: string;
|
|
231
|
+
repeat?: boolean;
|
|
232
|
+
effectiveShapeSource: ChartWordCloudShapeSource;
|
|
233
|
+
}
|
|
234
|
+
export interface IChartAppearanceSpec {
|
|
235
|
+
background?: {
|
|
236
|
+
/** CSS background color. Use `'transparent'` for an explicit transparent chart and host background. */
|
|
237
|
+
color?: string | null;
|
|
238
|
+
gradient?: boolean;
|
|
239
|
+
};
|
|
240
|
+
border?: {
|
|
241
|
+
color?: string | null;
|
|
242
|
+
/** Persisted host-border width. Use `0` to hide the host border without changing host-owned stroke state. */
|
|
243
|
+
width?: number;
|
|
244
|
+
};
|
|
245
|
+
font?: {
|
|
246
|
+
color?: string;
|
|
247
|
+
size?: number;
|
|
248
|
+
family?: string;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export interface IChartScatterMappingSpec {
|
|
252
|
+
xIndex: number;
|
|
253
|
+
yIndex: number;
|
|
254
|
+
labelIndex?: number | null;
|
|
255
|
+
}
|
|
256
|
+
export interface IChartBubbleMappingSpec extends IChartScatterMappingSpec {
|
|
257
|
+
sizeIndex?: number | null;
|
|
258
|
+
seriesIndex?: number | null;
|
|
259
|
+
}
|
|
260
|
+
export interface IChartMappingSpec {
|
|
261
|
+
categoryIndex?: number | null;
|
|
262
|
+
seriesIndexes?: number[] | null;
|
|
263
|
+
useDateAxis?: boolean | null;
|
|
264
|
+
scatter?: IChartScatterMappingSpec | null;
|
|
265
|
+
bubble?: IChartBubbleMappingSpec | null;
|
|
266
|
+
}
|
|
267
|
+
export interface IChartAggregationSpec {
|
|
268
|
+
aggregate?: boolean | null;
|
|
269
|
+
topN?: number | null;
|
|
270
|
+
}
|
|
271
|
+
export interface IChartPieLabelSpec extends IChartFontSpec {
|
|
272
|
+
visible?: boolean;
|
|
273
|
+
position?: PieLabelPosition;
|
|
274
|
+
contentType?: LabelContentType;
|
|
275
|
+
}
|
|
276
|
+
export interface IChartPieSpec {
|
|
277
|
+
doughnutHole?: number | null;
|
|
278
|
+
explosion?: number;
|
|
279
|
+
borderColor?: string;
|
|
280
|
+
hasPaddingAngle?: boolean;
|
|
281
|
+
isHalfPie?: boolean;
|
|
282
|
+
rosePie?: boolean;
|
|
283
|
+
showLabelLine?: boolean;
|
|
284
|
+
valueScale?: number;
|
|
285
|
+
valueSuffix?: string;
|
|
286
|
+
digitalFixed?: number;
|
|
287
|
+
label?: IChartPieLabelSpec;
|
|
288
|
+
}
|
|
289
|
+
export interface IChartRadarSpec {
|
|
290
|
+
shape?: RadarShape;
|
|
291
|
+
fill?: boolean;
|
|
292
|
+
}
|
|
293
|
+
/** Supported Pareto bar-border appearance. */
|
|
294
|
+
export interface IChartParetoBorderStyleSpec {
|
|
295
|
+
color?: string;
|
|
296
|
+
width?: number;
|
|
297
|
+
opacity?: number;
|
|
298
|
+
dashType?: ChartBorderDashType;
|
|
299
|
+
}
|
|
300
|
+
/** Supported point appearance for the Pareto cumulative line. */
|
|
301
|
+
export interface IChartParetoPointStyleSpec {
|
|
302
|
+
shape?: LinePointShape;
|
|
303
|
+
size?: number;
|
|
304
|
+
color?: string;
|
|
305
|
+
}
|
|
306
|
+
interface IChartParetoLabelStyleBase extends Omit<IChartSeriesLabelSpec, 'contentType' | 'position'> {
|
|
307
|
+
contentType?: LabelContentType.Empty | LabelContentType.SeriesName | LabelContentType.CategoryName | LabelContentType.Value;
|
|
308
|
+
}
|
|
309
|
+
/** Pareto bar-label appearance. */
|
|
310
|
+
export interface IChartParetoBarLabelStyleSpec extends IChartParetoLabelStyleBase {
|
|
311
|
+
position?: SeriesLabelPosition;
|
|
312
|
+
}
|
|
313
|
+
/** Pareto cumulative-line label appearance. */
|
|
314
|
+
export interface IChartParetoLineLabelStyleSpec extends IChartParetoLabelStyleBase {
|
|
315
|
+
position?: Exclude<SeriesLabelPosition, SeriesLabelPosition.Outside>;
|
|
316
|
+
}
|
|
317
|
+
/** Supported appearance for the Pareto business bars. */
|
|
318
|
+
export interface IChartParetoBarStyleSpec {
|
|
319
|
+
color?: string;
|
|
320
|
+
opacity?: number;
|
|
321
|
+
border?: IChartParetoBorderStyleSpec;
|
|
322
|
+
label?: IChartParetoBarLabelStyleSpec;
|
|
323
|
+
}
|
|
324
|
+
/** Supported appearance for the derived Pareto cumulative line. */
|
|
325
|
+
export interface IChartParetoLineStyleSpec {
|
|
326
|
+
color?: string;
|
|
327
|
+
opacity?: number;
|
|
328
|
+
width?: number;
|
|
329
|
+
dashType?: ChartBorderDashType;
|
|
330
|
+
point?: IChartParetoPointStyleSpec;
|
|
331
|
+
label?: IChartParetoLineLabelStyleSpec;
|
|
332
|
+
}
|
|
333
|
+
/** Pareto semantic configuration exposed through the Facade. */
|
|
334
|
+
export interface IChartParetoSpec {
|
|
335
|
+
barStyle?: IChartParetoBarStyleSpec;
|
|
336
|
+
cumulativeLineStyle?: IChartParetoLineStyleSpec;
|
|
337
|
+
includeZeroValues?: boolean;
|
|
338
|
+
}
|
|
339
|
+
export interface IChartAxisPointerSpec {
|
|
340
|
+
indicatorLabelColor?: string;
|
|
341
|
+
indicatorLineType?: ChartBorderDashType;
|
|
342
|
+
indicatorLineColor?: string;
|
|
343
|
+
indicatorLabelTextColor?: string;
|
|
344
|
+
}
|
|
345
|
+
export interface IChartAreaSpec {
|
|
346
|
+
lineStyle?: AreaLineStyle | null;
|
|
347
|
+
}
|
|
348
|
+
export interface IChartBarSpec {
|
|
349
|
+
is3D?: boolean;
|
|
350
|
+
shape?: BarShape;
|
|
351
|
+
rotX?: number;
|
|
352
|
+
rotY?: number;
|
|
353
|
+
}
|
|
354
|
+
export interface IChartFunnelSpec {
|
|
355
|
+
gap?: number | null;
|
|
356
|
+
useAbsoluteValue?: boolean | null;
|
|
357
|
+
}
|
|
358
|
+
export interface IChartRelationForceSpec {
|
|
359
|
+
gravity?: number;
|
|
360
|
+
repulsion?: number;
|
|
361
|
+
edgeLength?: number;
|
|
362
|
+
}
|
|
363
|
+
export interface IChartRelationSpec {
|
|
364
|
+
layout?: RelationChartLayoutEnum | null;
|
|
365
|
+
useValueAsSymbolSize?: boolean | null;
|
|
366
|
+
emphasisEnabled?: boolean | null;
|
|
367
|
+
force?: IChartRelationForceSpec | null;
|
|
368
|
+
circularLabelRotation?: boolean | null;
|
|
369
|
+
nodeShape?: LinePointShape | null;
|
|
370
|
+
}
|
|
371
|
+
/** Waterfall semantic configuration exposed through the Facade. */
|
|
372
|
+
export interface IChartWaterfallSpec {
|
|
373
|
+
stackType?: WaterfallStackTypeEnum;
|
|
374
|
+
useSubtotal?: boolean;
|
|
375
|
+
pointRoles?: IChartWaterfallPointRoleSpec[];
|
|
376
|
+
connector?: boolean | IChartWaterfallConnectorStyleSpec;
|
|
377
|
+
styles?: Partial<Record<ChartWaterfallStyleTarget, Omit<IChartSeriesPatch, 'selector'>>>;
|
|
378
|
+
}
|
|
379
|
+
/** Public Waterfall series selector; numbers are stable source-series indexes. */
|
|
380
|
+
export type ChartWaterfallSeriesSelector = number | {
|
|
381
|
+
name: string;
|
|
382
|
+
};
|
|
383
|
+
/** Assigns a semantic role to one Waterfall source data point. */
|
|
384
|
+
export interface IChartWaterfallPointRoleSpec {
|
|
385
|
+
series: ChartWaterfallSeriesSelector;
|
|
386
|
+
dataPointIndex: number;
|
|
387
|
+
role: ChartWaterfallPointRole;
|
|
388
|
+
}
|
|
389
|
+
/** Optional appearance overrides for derived Waterfall connectors. */
|
|
390
|
+
export interface IChartWaterfallConnectorStyleSpec {
|
|
391
|
+
color?: string;
|
|
392
|
+
width?: number;
|
|
393
|
+
opacity?: number;
|
|
394
|
+
dashType?: ChartBorderDashType;
|
|
395
|
+
}
|
|
396
|
+
interface IChartSemanticConfig {
|
|
397
|
+
type?: ChartTypeString;
|
|
398
|
+
title?: ChartTitleSpec | null;
|
|
399
|
+
subtitle?: ChartSubtitleSpec | null;
|
|
400
|
+
trendlines?: IChartTrendlineSpec[] | null;
|
|
401
|
+
heatmap?: IChartHeatmapSpec | null;
|
|
402
|
+
invalidValueStrategy?: InvalidValueType | null;
|
|
403
|
+
legend?: ChartLegendSpec | null;
|
|
404
|
+
axes?: IChartAxesSpec | null;
|
|
405
|
+
allSeriesStyle?: IChartSeriesStyleSpec | null;
|
|
406
|
+
series?: IChartSeriesPatch[] | null;
|
|
407
|
+
wordCloud?: IChartWordCloudSpec | null;
|
|
408
|
+
appearance?: IChartAppearanceSpec | null;
|
|
409
|
+
mapping?: IChartMappingSpec | null;
|
|
410
|
+
aggregation?: IChartAggregationSpec | null;
|
|
411
|
+
pie?: IChartPieSpec | null;
|
|
412
|
+
radar?: IChartRadarSpec | null;
|
|
413
|
+
pareto?: IChartParetoSpec | null;
|
|
414
|
+
axisPointer?: IChartAxisPointerSpec | null;
|
|
415
|
+
area?: IChartAreaSpec | null;
|
|
416
|
+
bar?: IChartBarSpec | null;
|
|
417
|
+
funnel?: IChartFunnelSpec | null;
|
|
418
|
+
relation?: IChartRelationSpec | null;
|
|
419
|
+
waterfall?: IChartWaterfallSpec | null;
|
|
420
|
+
markLines?: IChartMarkLineSpec[] | null;
|
|
421
|
+
theme?: string | null;
|
|
422
|
+
/** Persisted absolute series colors. A non-empty value overrides theme colors. */
|
|
423
|
+
palette?: string[] | null;
|
|
424
|
+
}
|
|
425
|
+
/** Data-free metadata and semantic styling for one source series. */
|
|
426
|
+
export interface IChartSeriesDescription extends IChartSeriesStyleSpec {
|
|
427
|
+
name: string;
|
|
428
|
+
type?: ChartSeriesTypeString;
|
|
429
|
+
dataPoints?: IChartSeriesPatch['dataPoints'];
|
|
430
|
+
waterfallStyles?: IChartSeriesPatch['waterfallStyles'];
|
|
431
|
+
}
|
|
432
|
+
/** Data-free metadata for the configured category field. */
|
|
433
|
+
export interface IChartCategoryDescription {
|
|
434
|
+
name: string;
|
|
435
|
+
}
|
|
436
|
+
/** Materialized engine semantic data returned explicitly by hosted builders. */
|
|
437
|
+
export type IResolvedChartData = IChartData;
|
|
438
|
+
export interface IChartDescription extends Omit<IChartSemanticConfig, 'series'> {
|
|
439
|
+
id: string;
|
|
440
|
+
type: ChartTypeString;
|
|
441
|
+
/** Series metadata keyed by source field index; materialized values are available from `resolveData()`. */
|
|
442
|
+
series: Partial<Record<number, IChartSeriesDescription>>;
|
|
443
|
+
/** Category metadata only; materialized category values are available from `resolveData()`. */
|
|
444
|
+
category?: IChartCategoryDescription;
|
|
445
|
+
/**
|
|
446
|
+
* Resolved semantic-axis locations for axis charts. Non-axis charts omit this field.
|
|
447
|
+
* Use these bindings when choosing the semantic `axis` passed to `setMarkLines()`;
|
|
448
|
+
* for example, `description.axisBindings.category.position` identifies where the
|
|
449
|
+
* category axis is currently drawn. `secondaryValue` is omitted when absent.
|
|
450
|
+
*
|
|
451
|
+
* @example
|
|
452
|
+
* ```ts
|
|
453
|
+
* const description = builder.describe();
|
|
454
|
+
* const categoryAxis = description.axisBindings!.category!;
|
|
455
|
+
* console.log(categoryAxis.dimension, categoryAxis.position);
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
458
|
+
axisBindings?: Partial<Record<ChartSemanticAxis, IChartAxisBindingDescription>>;
|
|
459
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IChartAggregationSpec } from '../chart-types';
|
|
2
|
+
export declare enum ChartAggregationTarget {
|
|
3
|
+
Aggregate = "aggregate",
|
|
4
|
+
TopN = "topN"
|
|
5
|
+
}
|
|
6
|
+
export declare const setAggregation: (value: IChartAggregationSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const clearAggregation: (target?: ChartAggregationTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IChartAppearanceSpec } from '../chart-types';
|
|
2
|
+
export declare enum ChartAppearanceTarget {
|
|
3
|
+
Background = "background",
|
|
4
|
+
Border = "border",
|
|
5
|
+
Font = "font"
|
|
6
|
+
}
|
|
7
|
+
export declare const setAppearance: (value: IChartAppearanceSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const clearAppearance: (target?: ChartAppearanceTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AreaLineStyle } from '../../enum';
|
|
2
|
+
export declare const setAreaLineStyle: (value: AreaLineStyle) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearAreaLineStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IChartAxisSpec } from '../chart-types';
|
|
2
|
+
export declare enum ChartAxisTarget {
|
|
3
|
+
Min = "min",
|
|
4
|
+
Max = "max",
|
|
5
|
+
Reverse = "reverse",
|
|
6
|
+
Line = "line",
|
|
7
|
+
Tick = "tick",
|
|
8
|
+
Format = "format",
|
|
9
|
+
Label = "label",
|
|
10
|
+
GridLine = "gridLine"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ChartAxisName {
|
|
13
|
+
X = "x",
|
|
14
|
+
Y = "y",
|
|
15
|
+
RightY = "rightY"
|
|
16
|
+
}
|
|
17
|
+
export declare const setXAxis: (value: IChartAxisSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
18
|
+
export declare const clearXAxis: (target?: ChartAxisTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
19
|
+
export declare const setYAxis: (value: IChartAxisSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
20
|
+
export declare const clearYAxis: (target?: ChartAxisTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
21
|
+
export declare const setRightYAxis: (value: IChartAxisSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
22
|
+
export declare const clearRightYAxis: (target?: ChartAxisTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
|
+
export declare const setAxisTitle: (axis: ChartAxisName, value: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
24
|
+
export declare const clearAxisTitle: (axis: ChartAxisName) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const setUseDateAxis: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
26
|
+
export declare const resetUseDateAxis: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IChartAxisPointerSpec } from '../chart-types';
|
|
2
|
+
export declare enum ChartAxisPointerTarget {
|
|
3
|
+
IndicatorLabelColor = "indicatorLabelColor",
|
|
4
|
+
IndicatorLabelTextColor = "indicatorLabelTextColor",
|
|
5
|
+
IndicatorLineColor = "indicatorLineColor",
|
|
6
|
+
IndicatorLineType = "indicatorLineType"
|
|
7
|
+
}
|
|
8
|
+
export declare const setAxisPointer: (value: IChartAxisPointerSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const clearAxisPointer: (target?: ChartAxisPointerTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartPendingConfig, IChartSeriesStyleSpec } from '../chart-types';
|
|
2
|
+
export declare enum ChartAllSeriesStyleTarget {
|
|
3
|
+
Border = "border",
|
|
4
|
+
Color = "color",
|
|
5
|
+
FillOpacity = "fillOpacity",
|
|
6
|
+
Label = "label",
|
|
7
|
+
Point = "point",
|
|
8
|
+
RightAxis = "rightAxis"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ChartSeriesClearTarget {
|
|
11
|
+
Border = "border",
|
|
12
|
+
Color = "color",
|
|
13
|
+
DataPoints = "dataPoints",
|
|
14
|
+
FillOpacity = "fillOpacity",
|
|
15
|
+
Label = "label",
|
|
16
|
+
Point = "point",
|
|
17
|
+
RightAxis = "rightAxis"
|
|
18
|
+
}
|
|
19
|
+
export type ChartPublicSeriesSelector = number | {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const setSeries: (selector: ChartPublicSeriesSelector, patch: Omit<NonNullable<ChartPendingConfig["series"]>[number], "selector">) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
|
+
export declare const clearSeries: (selector: ChartPublicSeriesSelector, target?: ChartSeriesClearTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
24
|
+
export declare const setAllSeriesStyle: (style: IChartSeriesStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const clearAllSeriesStyle: (target?: ChartAllSeriesStyleTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ChartPendingConfig } from '../chart-types';
|
|
2
|
+
/** Top-level semantic groups accepted by the fluent chart builder. */
|
|
3
|
+
export declare enum ChartConfigGroup {
|
|
4
|
+
AllSeriesStyle = "allSeriesStyle",
|
|
5
|
+
Area = "area",
|
|
6
|
+
AxisPointer = "axisPointer",
|
|
7
|
+
Aggregation = "aggregation",
|
|
8
|
+
Appearance = "appearance",
|
|
9
|
+
Axes = "axes",
|
|
10
|
+
Bar = "bar",
|
|
11
|
+
Heatmap = "heatmap",
|
|
12
|
+
Funnel = "funnel",
|
|
13
|
+
InvalidValueStrategy = "invalidValueStrategy",
|
|
14
|
+
Legend = "legend",
|
|
15
|
+
Mapping = "mapping",
|
|
16
|
+
MarkLines = "markLines",
|
|
17
|
+
Palette = "palette",
|
|
18
|
+
Pareto = "pareto",
|
|
19
|
+
Pie = "pie",
|
|
20
|
+
Radar = "radar",
|
|
21
|
+
Relation = "relation",
|
|
22
|
+
Series = "series",
|
|
23
|
+
Subtitle = "subtitle",
|
|
24
|
+
Theme = "theme",
|
|
25
|
+
Title = "title",
|
|
26
|
+
Trendlines = "trendlines",
|
|
27
|
+
WordCloud = "wordCloud",
|
|
28
|
+
Waterfall = "waterfall"
|
|
29
|
+
}
|
|
30
|
+
export declare enum ChartConfigOperationMode {
|
|
31
|
+
Merge = "merge",
|
|
32
|
+
Replace = "replace"
|
|
33
|
+
}
|
|
34
|
+
export interface IChartConfigOperation {
|
|
35
|
+
readonly group: keyof ChartPendingConfig;
|
|
36
|
+
readonly mode: ChartConfigOperationMode;
|
|
37
|
+
readonly patch: ChartPendingConfig;
|
|
38
|
+
}
|
|
39
|
+
export declare function chartConfigOperation<K extends ChartConfigGroup>(group: K, value: ChartPendingConfig[K], mode?: ChartConfigOperationMode): IChartConfigOperation;
|
|
40
|
+
export declare function mergeChartPendingConfig(current: ChartPendingConfig, next: ChartPendingConfig): ChartPendingConfig;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartSeriesTypeString } from '../chart-types';
|
|
2
|
+
import type { ChartPublicSeriesSelector } from './cartesian-series';
|
|
3
|
+
export declare enum ChartSeriesAxis {
|
|
4
|
+
Left = "left",
|
|
5
|
+
Right = "right"
|
|
6
|
+
}
|
|
7
|
+
export declare const setCombinationSeriesType: (selector: ChartPublicSeriesSelector, value: ChartSeriesTypeString) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const resetCombinationSeriesType: (selector: ChartPublicSeriesSelector) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const setCombinationSeriesAxis: (selector: ChartPublicSeriesSelector, value: ChartSeriesAxis) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const resetCombinationSeriesAxis: (selector: ChartPublicSeriesSelector) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const setFunnelGap: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
2
|
+
export declare const resetFunnelGap: () => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const setUseAbsoluteValue: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const resetUseAbsoluteValue: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartVisualMapType, IChartHeatmapLabelSpec } from '../chart-types';
|
|
2
|
+
export declare const setVisualMapType: (value: ChartVisualMapType) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const resetVisualMapType: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setValueRange: (min: number, max: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const clearValueRange: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setCellLabel: (value: IChartHeatmapLabelSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const clearCellLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const setValueUnit: (value: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const clearValueUnit: () => import("./chart-config-operation").IChartConfigOperation;
|