@univerjs-pro/engine-chart 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +9 -3
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/chart-model-api/chart-model-api.d.ts +2 -0
- package/lib/types/chart-model-api/chart-type-manifest.d.ts +128 -0
- package/lib/types/chart-model-api/chart-type-registry.d.ts +56 -0
- package/lib/types/chart-model-api/chart-type.d.ts +7 -0
- package/lib/types/chart-model-api/constants.d.ts +99 -0
- package/lib/types/chart-model-api/describe.d.ts +3 -0
- package/lib/types/chart-model-api/index.d.ts +8 -0
- package/lib/types/chart-model-api/patch-builder.d.ts +9 -0
- package/lib/types/chart-model-api/series-selector.d.ts +3 -0
- package/lib/types/chart-model-api/types.d.ts +452 -0
- package/lib/types/chart-model-api/utils.d.ts +10 -0
- package/lib/types/chart-model-api/validate.d.ts +5 -0
- package/lib/types/enum.d.ts +8 -0
- package/lib/types/f-base-chart.d.ts +25 -0
- package/lib/types/index.d.ts +118 -15
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +6 -1
- package/lib/types/models/chart-data-operators/cartesian-point-data.d.ts +43 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +6 -6
- package/lib/types/models/chart-element-axis-id.d.ts +9 -0
- package/lib/types/models/chart-element-edit-overlay/chart-element-edit-overlay.d.ts +38 -0
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +4 -0
- package/lib/types/models/chart-element-edit-overlay/palette.d.ts +2 -0
- package/lib/types/models/chart-element-edit-overlay/resolve-chart-element-hit-layout.d.ts +16 -0
- package/lib/types/models/chart-element-edit-overlay/types.d.ts +20 -0
- package/lib/types/models/chart-host-style.d.ts +35 -0
- package/lib/types/models/chart-model.d.ts +40 -31
- package/lib/types/models/chart-render-input-resolver.d.ts +13 -0
- package/lib/types/models/chart-render-model-manager.service.d.ts +26 -0
- package/lib/types/models/constants/build-in-theme/index.d.ts +12 -12
- package/lib/types/models/constants/build-in-theme/univer-gradient1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient6.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer6.d.ts +1 -1
- package/lib/types/models/constants/default.d.ts +3 -1
- package/lib/types/models/echart-render-model.d.ts +37 -2
- package/lib/types/models/image-chart-host.d.ts +2 -1
- package/lib/types/models/mode-converter/mode-converter.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/legend-size.d.ts +2 -1
- package/lib/types/models/series-style/series-style-resolver.d.ts +9 -0
- package/lib/types/source/source-util.d.ts +1 -1
- package/lib/types/source/static-chart-source.d.ts +11 -3
- package/lib/types/types.d.ts +101 -37
- package/lib/types/util.d.ts +1 -1
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/install.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/footprint.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/glyph-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/grid.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/candidates.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout-config.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout.d.ts +1 -2
- package/lib/types/wordcloud-chart/core/layout/phases.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/place-word.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-stats.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-types.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-word-manager.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/runtime-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/word-prepare.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/shape/shape-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/index.d.ts +3 -2
- package/lib/types/wordcloud-chart/types.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
- package/lib/types/wordcloud-chart/core/collision/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/layout/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/shape/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/text/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/option.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/shape.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/word.d.ts +0 -1
- package/lib/types/wordcloud-chart/echarts.d.ts +0 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ChartTypeBits } from '../enum';
|
|
2
|
+
export declare enum ChartTypeCapabilityProfile {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Advanced = "advanced",
|
|
5
|
+
AdvancedStyle = "advancedStyle",
|
|
6
|
+
Pareto = "pareto"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ChartTypeDecoder {
|
|
9
|
+
Exact = "exact",
|
|
10
|
+
Pie = "pie",
|
|
11
|
+
Donut = "donut"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Exhaustive semantic chart-type identity declaration.
|
|
15
|
+
*
|
|
16
|
+
* Keep caller names, aliases, exact engine bits, readback discrimination, and
|
|
17
|
+
* capability profile selection together so lifecycle consumers cannot drift.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SEMANTIC_CHART_TYPE_DECLARATIONS: readonly [{
|
|
20
|
+
readonly name: "line";
|
|
21
|
+
readonly bits: ChartTypeBits.Line;
|
|
22
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "column";
|
|
25
|
+
readonly bits: ChartTypeBits.Column;
|
|
26
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "columnStacked";
|
|
29
|
+
readonly bits: ChartTypeBits.ColumnStacked;
|
|
30
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "columnPercentStacked";
|
|
33
|
+
readonly bits: ChartTypeBits.ColumnPercentStacked;
|
|
34
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "bar";
|
|
37
|
+
readonly bits: ChartTypeBits.Bar;
|
|
38
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "barStacked";
|
|
41
|
+
readonly bits: ChartTypeBits.BarStacked;
|
|
42
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "barPercentStacked";
|
|
45
|
+
readonly bits: ChartTypeBits.BarPercentStacked;
|
|
46
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "pie";
|
|
49
|
+
readonly bits: ChartTypeBits.Pie;
|
|
50
|
+
readonly decoder: ChartTypeDecoder.Pie;
|
|
51
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "donut";
|
|
54
|
+
readonly bits: ChartTypeBits.Pie;
|
|
55
|
+
readonly aliases: readonly ["doughnut"];
|
|
56
|
+
readonly decoder: ChartTypeDecoder.Donut;
|
|
57
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
58
|
+
readonly initialStyle: "donut";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "area";
|
|
61
|
+
readonly bits: ChartTypeBits.Area;
|
|
62
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "areaStacked";
|
|
65
|
+
readonly bits: ChartTypeBits.AreaStacked;
|
|
66
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "areaPercentStacked";
|
|
69
|
+
readonly bits: ChartTypeBits.AreaPercentStacked;
|
|
70
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "radar";
|
|
73
|
+
readonly bits: ChartTypeBits.Radar;
|
|
74
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "scatter";
|
|
77
|
+
readonly bits: ChartTypeBits.Scatter;
|
|
78
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "combination";
|
|
81
|
+
readonly bits: ChartTypeBits.Combination;
|
|
82
|
+
readonly aliases: readonly ["combo"];
|
|
83
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "wordCloud";
|
|
86
|
+
readonly bits: ChartTypeBits.WordCloud;
|
|
87
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Default;
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "funnel";
|
|
90
|
+
readonly bits: ChartTypeBits.Funnel;
|
|
91
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.AdvancedStyle;
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "bubble";
|
|
94
|
+
readonly bits: ChartTypeBits.Bubble;
|
|
95
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Advanced;
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "relation";
|
|
98
|
+
readonly bits: ChartTypeBits.Relation;
|
|
99
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.AdvancedStyle;
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "waterfall";
|
|
102
|
+
readonly bits: ChartTypeBits.Waterfall;
|
|
103
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.AdvancedStyle;
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "pareto";
|
|
106
|
+
readonly bits: ChartTypeBits.Pareto;
|
|
107
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Pareto;
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "sankey";
|
|
110
|
+
readonly bits: ChartTypeBits.Sankey;
|
|
111
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Advanced;
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "heatmap";
|
|
114
|
+
readonly bits: ChartTypeBits.Heatmap;
|
|
115
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Advanced;
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "boxplot";
|
|
118
|
+
readonly bits: ChartTypeBits.Boxplot;
|
|
119
|
+
readonly capabilityProfile: ChartTypeCapabilityProfile.Advanced;
|
|
120
|
+
}];
|
|
121
|
+
export type SemanticChartTypeDeclaration = typeof SEMANTIC_CHART_TYPE_DECLARATIONS[number];
|
|
122
|
+
export type ChartCanonicalTypeName = SemanticChartTypeDeclaration['name'];
|
|
123
|
+
type AliasOf<T> = T extends {
|
|
124
|
+
readonly aliases: readonly (infer TAlias extends string)[];
|
|
125
|
+
} ? TAlias : never;
|
|
126
|
+
export type ChartTypeAliasName = AliasOf<SemanticChartTypeDeclaration>;
|
|
127
|
+
export type ChartKnownTypeName = ChartCanonicalTypeName | ChartTypeAliasName;
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ChartStyle } from '../types';
|
|
2
|
+
import type { ChartCanonicalTypeName } from './chart-type-manifest';
|
|
3
|
+
import type { IChartModelTypeCapabilityRegistration } from './constants';
|
|
4
|
+
import type { ChartModelDiagnostic } from './types';
|
|
5
|
+
import { ChartTypeBits } from '../enum';
|
|
6
|
+
import { ChartTypeDecoder } from './chart-type-manifest';
|
|
7
|
+
type ChartTypeRegistryDeclaration = Readonly<{
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly bits: ChartTypeBits;
|
|
10
|
+
readonly aliases?: readonly string[];
|
|
11
|
+
readonly capabilities: IChartModelTypeCapabilityRegistration;
|
|
12
|
+
readonly initialStyle?: ChartStyle;
|
|
13
|
+
readonly decoder?: ChartTypeDecoder;
|
|
14
|
+
}>;
|
|
15
|
+
export type ChartTypeResolutionSuccess = Readonly<{
|
|
16
|
+
readonly ok: true;
|
|
17
|
+
readonly name: ChartCanonicalTypeName;
|
|
18
|
+
readonly bits: ChartTypeBits;
|
|
19
|
+
readonly capabilities: IChartModelTypeCapabilityRegistration;
|
|
20
|
+
readonly initialStyle?: ChartStyle;
|
|
21
|
+
}>;
|
|
22
|
+
export type ChartTypeResolutionFailure = Readonly<{
|
|
23
|
+
readonly ok: false;
|
|
24
|
+
readonly diagnostic: ChartModelDiagnostic;
|
|
25
|
+
}>;
|
|
26
|
+
export type ChartTypeResolution = ChartTypeResolutionSuccess | ChartTypeResolutionFailure;
|
|
27
|
+
export type ChartTypeIdentification = Readonly<{
|
|
28
|
+
readonly name: ChartCanonicalTypeName | typeof UNSUPPORTED_CHART_TYPE_NAME;
|
|
29
|
+
readonly capabilities?: IChartModelTypeCapabilityRegistration;
|
|
30
|
+
readonly rawType?: number;
|
|
31
|
+
}>;
|
|
32
|
+
export type ChartTypeCapabilityCatalog = Readonly<{
|
|
33
|
+
readonly chartTypes: readonly ChartCanonicalTypeName[];
|
|
34
|
+
readonly allowedValues: readonly string[];
|
|
35
|
+
readonly aliases: Readonly<Record<string, ChartCanonicalTypeName>>;
|
|
36
|
+
readonly capabilities: Readonly<Record<ChartCanonicalTypeName, IChartModelTypeCapabilityRegistration>>;
|
|
37
|
+
}>;
|
|
38
|
+
export type SemanticChartTypeRegistry = Readonly<{
|
|
39
|
+
resolve(input: unknown, path?: string): ChartTypeResolution;
|
|
40
|
+
identify(raw: {
|
|
41
|
+
bits: ChartTypeBits;
|
|
42
|
+
style?: ChartStyle;
|
|
43
|
+
}): ChartTypeIdentification;
|
|
44
|
+
catalog(): ChartTypeCapabilityCatalog;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const UNSUPPORTED_CHART_TYPE_NAME = "unsupported";
|
|
47
|
+
export declare const chartTypeRegistry: Readonly<{
|
|
48
|
+
resolve(input: unknown, path?: string): ChartTypeResolution;
|
|
49
|
+
identify(raw: {
|
|
50
|
+
bits: ChartTypeBits;
|
|
51
|
+
style?: ChartStyle;
|
|
52
|
+
}): ChartTypeIdentification;
|
|
53
|
+
catalog(): ChartTypeCapabilityCatalog;
|
|
54
|
+
}>;
|
|
55
|
+
export declare function createChartTypeRegistry(declarations: readonly ChartTypeRegistryDeclaration[]): SemanticChartTypeRegistry;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChartTypeBits } from '../enum';
|
|
2
|
+
import type { ChartStyle } from '../types';
|
|
3
|
+
import type { ChartKnownTypeName, ChartModelDiagnostic, ChartTypeName } from './types';
|
|
4
|
+
export declare function chartTypeNameToBits(type: unknown, diagnostics: ChartModelDiagnostic[], path?: string): ChartTypeBits | null;
|
|
5
|
+
export declare function chartTypeBitsToName(type: ChartTypeBits, style?: ChartStyle): ChartTypeName;
|
|
6
|
+
export declare function normalizeChartTypeName(type: ChartKnownTypeName): ChartKnownTypeName;
|
|
7
|
+
export declare function buildDonutStyle(type: ChartKnownTypeName | undefined): ChartStyle | undefined;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ChartLegendSpec, ChartSeriesPatch, ChartTitleSpec } from './types';
|
|
2
|
+
import { ChartTypeBits, LabelAlignEnum, LegendPositionEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum } from '../enum';
|
|
3
|
+
export declare enum ChartModelChangedGroup {
|
|
4
|
+
Type = "type",
|
|
5
|
+
Style = "style",
|
|
6
|
+
Data = "data"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ChartModelDiagnosticCode {
|
|
9
|
+
SeriesNotFound = "SERIES_NOT_FOUND",
|
|
10
|
+
AmbiguousSeriesSelector = "AMBIGUOUS_SERIES_SELECTOR",
|
|
11
|
+
UnknownChartType = "UNKNOWN_CHART_TYPE",
|
|
12
|
+
UnsupportedChartType = "UNSUPPORTED_CHART_TYPE",
|
|
13
|
+
InvalidColor = "INVALID_COLOR",
|
|
14
|
+
InvalidRange = "INVALID_RANGE",
|
|
15
|
+
InvalidSize = "INVALID_SIZE",
|
|
16
|
+
UnknownOption = "UNKNOWN_OPTION"
|
|
17
|
+
}
|
|
18
|
+
export declare enum ChartModelPatchGroup {
|
|
19
|
+
Type = "type",
|
|
20
|
+
Mapping = "mapping",
|
|
21
|
+
Aggregation = "aggregation",
|
|
22
|
+
Title = "title",
|
|
23
|
+
Legend = "legend",
|
|
24
|
+
Axes = "axes",
|
|
25
|
+
Series = "series",
|
|
26
|
+
Pie = "pie",
|
|
27
|
+
Radar = "radar",
|
|
28
|
+
Pareto = "pareto",
|
|
29
|
+
WordCloud = "wordCloud",
|
|
30
|
+
Appearance = "appearance",
|
|
31
|
+
AdvancedStyle = "advancedStyle",
|
|
32
|
+
Theme = "theme"
|
|
33
|
+
}
|
|
34
|
+
export declare enum ChartModelPatchSemantic {
|
|
35
|
+
NoChange = "noChange",
|
|
36
|
+
ClearWhereSupported = "clearWhereSupported",
|
|
37
|
+
SemanticMerge = "semanticMerge",
|
|
38
|
+
ReplaceUnlessSelectorMerge = "replaceUnlessSelectorMerge",
|
|
39
|
+
ValidationError = "validationError"
|
|
40
|
+
}
|
|
41
|
+
export declare const CHART_MODEL_API_CAPABILITIES_VERSION = "2026-07-10.v2";
|
|
42
|
+
export declare const CHART_MODEL_DEFAULT_DONUT_HOLE = 0.5;
|
|
43
|
+
export declare const CHART_MODEL_UNSUPPORTED_TYPE_SUGGESTION = "Use one of the supported chart types from chartModelApi.getCapabilities().";
|
|
44
|
+
export declare const CHART_MODEL_PATCH_SEMANTICS: Readonly<{
|
|
45
|
+
omitted: ChartModelPatchSemantic.NoChange;
|
|
46
|
+
undefined: ChartModelPatchSemantic.NoChange;
|
|
47
|
+
null: ChartModelPatchSemantic.ClearWhereSupported;
|
|
48
|
+
object: ChartModelPatchSemantic.SemanticMerge;
|
|
49
|
+
array: ChartModelPatchSemantic.ReplaceUnlessSelectorMerge;
|
|
50
|
+
unknownField: ChartModelPatchSemantic.ValidationError;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const CHART_MODEL_CREATE_SPEC_KEYS: Set<ChartModelPatchGroup>;
|
|
53
|
+
export declare const CHART_MODEL_UPDATE_PATCH_KEYS: Set<ChartModelPatchGroup>;
|
|
54
|
+
export declare const CHART_MODEL_WORD_CLOUD_KEYS: Set<string>;
|
|
55
|
+
export declare const CHART_MODEL_APPEARANCE_KEYS: Set<string>;
|
|
56
|
+
export declare const CHART_MODEL_APPEARANCE_BACKGROUND_KEYS: Set<string>;
|
|
57
|
+
export declare const CHART_MODEL_APPEARANCE_BORDER_KEYS: Set<string>;
|
|
58
|
+
export declare const CHART_MODEL_APPEARANCE_FONT_KEYS: Set<string>;
|
|
59
|
+
export declare const CHART_MODEL_MAPPING_KEYS: Set<string>;
|
|
60
|
+
export declare const CHART_MODEL_MAPPING_SCATTER_KEYS: Set<string>;
|
|
61
|
+
export declare const CHART_MODEL_MAPPING_BUBBLE_KEYS: Set<string>;
|
|
62
|
+
export declare const CHART_MODEL_AGGREGATION_KEYS: Set<string>;
|
|
63
|
+
export declare const CHART_MODEL_PIE_KEYS: Set<string>;
|
|
64
|
+
export declare const CHART_MODEL_PIE_LABEL_KEYS: Set<string>;
|
|
65
|
+
export declare const CHART_MODEL_RADAR_KEYS: Set<string>;
|
|
66
|
+
export declare const CHART_MODEL_PARETO_KEYS: Set<string>;
|
|
67
|
+
export declare const CHART_MODEL_ADVANCED_STYLE_KEYS: Set<string>;
|
|
68
|
+
export declare const CHART_MODEL_TITLE_KEYS: Set<string>;
|
|
69
|
+
export declare const CHART_MODEL_LEGEND_KEYS: Set<string>;
|
|
70
|
+
export declare const CHART_MODEL_AXES_KEYS: Set<string>;
|
|
71
|
+
export declare const CHART_MODEL_AXIS_KEYS: Set<string>;
|
|
72
|
+
export declare const CHART_MODEL_RIGHT_AXIS_KEYS: Set<string>;
|
|
73
|
+
export declare const CHART_MODEL_AXIS_LINE_KEYS: Set<string>;
|
|
74
|
+
export declare const CHART_MODEL_AXIS_TICK_KEYS: Set<string>;
|
|
75
|
+
export declare const CHART_MODEL_AXIS_TITLE_STYLE_KEYS: Set<string>;
|
|
76
|
+
export declare const CHART_MODEL_AXIS_LABEL_KEYS: Set<string>;
|
|
77
|
+
export declare const CHART_MODEL_AXIS_GRID_LINE_KEYS: Set<string>;
|
|
78
|
+
export declare const CHART_MODEL_SERIES_PATCH_KEYS: Set<string>;
|
|
79
|
+
export declare const CHART_MODEL_SERIES_SELECTOR_KEYS: Set<string>;
|
|
80
|
+
export declare const CHART_MODEL_SERIES_BORDER_KEYS: Set<string>;
|
|
81
|
+
export declare const CHART_MODEL_SERIES_POINT_KEYS: Set<string>;
|
|
82
|
+
export declare const CHART_MODEL_SERIES_LABEL_KEYS: Set<string>;
|
|
83
|
+
export declare const CHART_MODEL_SERIES_DATA_POINT_KEYS: Set<string>;
|
|
84
|
+
export declare const CHART_MODEL_DEFAULT_CREATE_GROUPS: readonly ChartModelPatchGroup[];
|
|
85
|
+
export declare const CHART_MODEL_DEFAULT_UPDATE_GROUPS: readonly ChartModelPatchGroup[];
|
|
86
|
+
export declare const CHART_MODEL_DEFAULT_STYLE_GROUPS: readonly ChartModelPatchGroup[];
|
|
87
|
+
export declare const CHART_MODEL_COMMON_SAFE_UPDATE_GROUPS: readonly ChartModelPatchGroup[];
|
|
88
|
+
export interface IChartModelTypeCapabilityRegistration {
|
|
89
|
+
createGroups: readonly ChartModelPatchGroup[];
|
|
90
|
+
updateGroups: readonly ChartModelPatchGroup[];
|
|
91
|
+
styleGroups: readonly ChartModelPatchGroup[];
|
|
92
|
+
}
|
|
93
|
+
export declare const CHART_MODEL_SERIES_TYPE_TO_BITS: Record<NonNullable<ChartSeriesPatch['type']>, ChartTypeBits>;
|
|
94
|
+
export declare const CHART_MODEL_TITLE_POSITION: Record<NonNullable<Exclude<ChartTitleSpec, string>['position']>, TitlePositionEnum>;
|
|
95
|
+
export declare const CHART_MODEL_LEGEND_POSITION: Record<NonNullable<Exclude<ChartLegendSpec, boolean>['position']>, LegendPositionEnum>;
|
|
96
|
+
export declare const CHART_MODEL_LEGEND_SELECT_MODE: Record<NonNullable<Exclude<ChartLegendSpec, boolean>['selectMode']>, SelectModeEnum>;
|
|
97
|
+
export declare const CHART_MODEL_TITLE_ALIGN: Record<NonNullable<Exclude<ChartTitleSpec, string>['alignment']>, LabelAlignEnum>;
|
|
98
|
+
export declare const CHART_MODEL_SERIES_LABEL_POSITION: Record<NonNullable<NonNullable<ChartSeriesPatch['label']>['position']>, SeriesLabelPosition>;
|
|
99
|
+
export declare const CHART_MODEL_CSS_COLOR_RE: RegExp;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { chartModelApi, } from './chart-model-api';
|
|
2
|
+
export { buildDonutStyle, chartTypeBitsToName, chartTypeNameToBits, } from './chart-type';
|
|
3
|
+
export { UNSUPPORTED_CHART_TYPE_NAME } from './chart-type-registry';
|
|
4
|
+
export { CHART_MODEL_API_CAPABILITIES_VERSION, CHART_MODEL_DEFAULT_DONUT_HOLE, CHART_MODEL_PATCH_SEMANTICS, CHART_MODEL_UNSUPPORTED_TYPE_SUGGESTION, ChartModelChangedGroup, ChartModelDiagnosticCode, ChartModelPatchGroup, ChartModelPatchSemantic, } from './constants';
|
|
5
|
+
export { buildChartModelConfigPatch, buildCreateChartModelConfigPatch } from './patch-builder';
|
|
6
|
+
export type { ChartAdvancedStylePatch, ChartAggregationSpec, ChartAppearanceSpec, ChartAxesSpec, ChartAxisSpec, ChartKnownTypeName, ChartLegendSpec, ChartMappingSpec, ChartModelApi, ChartModelCapabilities, ChartModelConfigPatch, ChartModelCreateSpec, ChartModelDescription, ChartModelDiagnostic, ChartModelInstanceCapabilities, ChartModelPatch, ChartModelPatchSemantics, ChartModelUpdateResult, ChartParetoSpec, ChartPieSpec, ChartRadarSpec, ChartSeriesDescription, ChartSeriesPatch, ChartSeriesSelector, ChartTitleSpec, ChartTypeName, ChartValidationResult, ChartWordCloudDescription, ChartWordCloudSpec, DeepPartial, DeepReadonly, } from './types';
|
|
7
|
+
export { createChartModelDiagnostic, hasChartModelDiagnosticError, } from './utils';
|
|
8
|
+
export { validateChartModelCreateSpec, validateChartModelPatch, } from './validate';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IChartContext, IChartDataSeries } from '../types';
|
|
2
|
+
import type { ChartModelConfigPatch, ChartModelCreateSpec, ChartModelDiagnostic, ChartModelPatch } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Create-time adapter helper. It converts a model-only create spec into the same
|
|
5
|
+
* config patch shape used by update(), appending diagnostics into the provided
|
|
6
|
+
* array so the sheet/slide adapter can combine model and host validation.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildCreateChartModelConfigPatch(spec: ChartModelCreateSpec, diagnostics: ChartModelDiagnostic[], series?: IChartDataSeries[], currentContext?: IChartContext): ChartModelConfigPatch;
|
|
9
|
+
export declare function buildChartModelConfigPatch(patch: ChartModelCreateSpec | ChartModelPatch, diagnostics: ChartModelDiagnostic[], series?: IChartDataSeries[], currentContext?: IChartContext): ChartModelConfigPatch;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IChartDataSeries } from '../types';
|
|
2
|
+
import type { ChartModelDiagnostic, ChartSeriesPatch } from './types';
|
|
3
|
+
export declare function resolveSeriesSelector(patch: ChartSeriesPatch, diagnostics: ChartModelDiagnostic[], path: string, series?: IChartDataSeries[]): number | null;
|