@univerjs-pro/engine-chart 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/chart-3d/adapters/appearance.d.ts +4 -0
- package/lib/types/chart-3d/adapters/axes.d.ts +21 -0
- package/lib/types/chart-3d/adapters/category-axis.d.ts +4 -0
- package/lib/types/chart-3d/adapters/echarts-adapter.d.ts +10 -0
- package/lib/types/chart-3d/adapters/echarts-time-scale.d.ts +9 -0
- package/lib/types/chart-3d/adapters/element-events.d.ts +3 -0
- package/lib/types/chart-3d/adapters/export-image.d.ts +2 -0
- package/lib/types/chart-3d/adapters/input-adapter.d.ts +11 -0
- package/lib/types/chart-3d/adapters/lighting.d.ts +4 -0
- package/lib/types/chart-3d/adapters/line-style.d.ts +2 -0
- package/lib/types/chart-3d/adapters/pie-labels.d.ts +7 -0
- package/lib/types/chart-3d/adapters/projection-data-label.d.ts +59 -0
- package/lib/types/chart-3d/adapters/projection-frame-image.d.ts +16 -0
- package/lib/types/chart-3d/adapters/render-input.d.ts +3 -0
- package/lib/types/chart-3d/adapters/render-instance.d.ts +32 -0
- package/lib/types/chart-3d/adapters/transform.d.ts +3 -0
- package/lib/types/chart-3d/adapters/types.d.ts +38 -0
- package/lib/types/chart-3d/adapters/webgl-renderer.d.ts +20 -0
- package/lib/types/chart-3d/chart-3d-extension.d.ts +6 -0
- package/lib/types/chart-3d/core/geometry.d.ts +39 -0
- package/lib/types/chart-3d/core/policy.d.ts +31 -0
- package/lib/types/chart-3d/core/projection.d.ts +23 -0
- package/lib/types/chart-3d/core/scene.d.ts +57 -0
- package/lib/types/chart-3d/core/types.d.ts +74 -0
- package/lib/types/chart-3d/index.d.ts +1 -0
- package/lib/types/chart-3d/view-defaults.d.ts +3 -0
- package/lib/types/chart-3d/webgl/draw-data.d.ts +6 -0
- package/lib/types/chart-3d/webgl/draw-queue.d.ts +10 -0
- package/lib/types/chart-3d/webgl/gradient.d.ts +3 -0
- package/lib/types/chart-3d/webgl/line-segments.d.ts +8 -0
- package/lib/types/chart-3d/webgl/program.d.ts +16 -0
- package/lib/types/chart-3d/webgl/renderer.d.ts +19 -0
- package/lib/types/chart-3d/webgl/stroke.d.ts +13 -0
- package/lib/types/chart-3d/webgl/types.d.ts +71 -0
- package/lib/types/chart-builder/chart-types.d.ts +22 -4
- package/lib/types/chart-builder/configuration/chart-config-group.d.ts +2 -0
- package/lib/types/chart-builder/configuration/three-d.d.ts +7 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +8 -0
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +119 -7
- package/lib/types/config/config.d.ts +1 -1
- package/lib/types/enum.d.ts +13 -0
- package/lib/types/facade/builders/f-area-three-d-chart-builder.d.ts +6 -0
- package/lib/types/facade/builders/f-column-three-d-chart-builder.d.ts +6 -0
- package/lib/types/facade/builders/f-line-three-d-chart-builder.d.ts +6 -0
- package/lib/types/facade/builders/f-pie-three-d-chart-builder.d.ts +15 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +15 -0
- package/lib/types/facade/create-chart-builder.d.ts +2 -1
- package/lib/types/facade/f-axis-chart-builder.d.ts +42 -7
- package/lib/types/facade/f-axis-three-d-chart-builder.d.ts +37 -0
- package/lib/types/facade/f-three-d-chart-builder.d.ts +30 -0
- package/lib/types/index.d.ts +13 -70
- package/lib/types/locale/en-US.d.ts +7 -0
- package/lib/types/models/chart-model/chart-model.d.ts +359 -22
- package/lib/types/models/chart-render/axes/axis-placement.d.ts +2 -0
- package/lib/types/models/chart-render/axes/chart-axis-scale.d.ts +14 -0
- package/lib/types/models/chart-render/axes/log-axis-data.d.ts +4 -0
- package/lib/types/models/chart-render/axes/log-axis-ticks.d.ts +5 -0
- package/lib/types/models/chart-render/axes/log-bar-layout.d.ts +3 -0
- package/lib/types/models/chart-render/axes/value-axis-scale.d.ts +13 -0
- package/lib/types/models/chart-render/converter/calendar-date-axis.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/empty-style-operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/legend-style.operator.d.ts +11 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/log-axis-scale.d.ts +7 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/series-fill-pattern.d.ts +15 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/tools.d.ts +3 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/watermark.operator.d.ts +2 -0
- package/lib/types/models/chart-render/echart-render-model/base-chart-render-instance.d.ts +1 -1
- package/lib/types/models/chart-render/echart-render-model/chart-dimension-render-instance.d.ts +28 -0
- package/lib/types/models/chart-render/echart-render-model/dom-chart-instance.d.ts +1 -0
- package/lib/types/models/chart-render/echart-render-model/echart-render-engine.d.ts +7 -1
- package/lib/types/models/chart-render/echart-render-model/echart-render-model.d.ts +23 -10
- package/lib/types/models/chart-render/echart-render-model/echarts-render-hooks.d.ts +7 -0
- package/lib/types/models/chart-render/echart-render-model/index.d.ts +0 -1
- package/lib/types/models/chart-render/format/chart-label-content.d.ts +3 -0
- package/lib/types/models/common/chart-locale-texts.d.ts +7 -0
- package/lib/types/models/common/constants/default-chart-style.d.ts +5 -4
- package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +3 -1
- package/lib/types/types.d.ts +57 -16
- package/lib/types/util.d.ts +1 -1
- package/lib/types/{models/chart-render/converter/converters/word-cloud-converter.d.ts → wordcloud/adapters/chart-spec-adapter.d.ts} +1 -1
- package/lib/types/{wordcloud-chart/adapters/echarts/install.d.ts → wordcloud/adapters/echarts-adapter.d.ts} +3 -3
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/chart-view.d.ts +2 -2
- package/lib/types/{wordcloud-chart → wordcloud}/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud/echarts-api.d.ts +3 -0
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/echarts-options.d.ts +1 -1
- package/lib/types/wordcloud/index.d.ts +16 -0
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/layout-register.d.ts +2 -2
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/layout.d.ts +2 -2
- package/lib/types/wordcloud/register-word-cloud-rendering.d.ts +4 -0
- package/lib/types/wordcloud/render-resources.d.ts +2 -0
- package/lib/types/{word-cloud-resource → wordcloud/resources}/word-cloud-shape-resource.d.ts +1 -1
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/runtime-cache.d.ts +4 -1
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/series-model.d.ts +2 -2
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/text-measurer.d.ts +1 -1
- package/lib/types/wordcloud/word-cloud-extension.d.ts +16 -0
- package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/words.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
- /package/lib/types/{wordcloud-chart → wordcloud}/canvas.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/bitset-board.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/engine.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/failure-cache.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/footprint.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/glyph-shape-engine.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/collision/grid.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/candidates.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/font-scale.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/layout-config.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/layout.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/phases.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/place-word.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/placement-stats.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/placement-types.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/placement-word-manager.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/rotation.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/runtime-mask.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/search-plan.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/word-prepare.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/layout/word-shrink.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/random/seed.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/shape/built-in-shapes.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/shape/shape-mask.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/shape/shape-profile.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/shape/sprite-shape.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/text/formatter.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/text/measure.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/text/normalize.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/text/sprite.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/core/types/layout.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/defaults.d.ts +0 -0
- /package/lib/types/{wordcloud-chart/adapters/echarts → wordcloud}/render-config.d.ts +0 -0
- /package/lib/types/{word-cloud-resource → wordcloud/resources}/word-cloud-resource-config.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/types.d.ts +0 -0
- /package/lib/types/{wordcloud-chart → wordcloud}/word-cloud-render-config.d.ts +0 -0
|
@@ -19,6 +19,59 @@ export declare function resolveChartDescriptionMetadata(description: IChartDescr
|
|
|
19
19
|
export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pending: ChartPendingConfig, dataSet: IUniverDataSet): {
|
|
20
20
|
chartType: ChartTypeBits;
|
|
21
21
|
style: {
|
|
22
|
+
threeD?: {
|
|
23
|
+
view?: {
|
|
24
|
+
rotX?: number | undefined;
|
|
25
|
+
rotY?: number | undefined;
|
|
26
|
+
rightAngleAxes?: boolean | undefined;
|
|
27
|
+
perspective?: number | undefined;
|
|
28
|
+
heightPercent?: number | undefined;
|
|
29
|
+
depthPercent?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
grouping?: "standard" | "clustered" | undefined;
|
|
32
|
+
gapDepth?: number | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
depthAxis?: {
|
|
35
|
+
label?: {
|
|
36
|
+
eastAsiaFontFamily?: string | undefined;
|
|
37
|
+
bold?: boolean | undefined;
|
|
38
|
+
italic?: boolean | undefined;
|
|
39
|
+
fontSize?: number | undefined;
|
|
40
|
+
color?: string | undefined;
|
|
41
|
+
visible?: boolean | undefined;
|
|
42
|
+
rotate?: number | undefined;
|
|
43
|
+
family?: string | undefined;
|
|
44
|
+
backgroundColor?: (ChartColor | import("../../types").IChartLabelPattern) | undefined;
|
|
45
|
+
strikethrough?: boolean | undefined;
|
|
46
|
+
underline?: boolean | undefined;
|
|
47
|
+
padAngle?: boolean | undefined;
|
|
48
|
+
axisTitleAlign?: import("../..").AxisAlignEnum | undefined;
|
|
49
|
+
showMaxLabel?: boolean | undefined;
|
|
50
|
+
showMinLabel?: boolean | undefined;
|
|
51
|
+
autoRotate?: boolean | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
reverse?: boolean | undefined;
|
|
54
|
+
tick?: {
|
|
55
|
+
visible?: boolean | undefined;
|
|
56
|
+
lineWidth?: number | undefined;
|
|
57
|
+
lineColor?: string | undefined;
|
|
58
|
+
length?: number | undefined;
|
|
59
|
+
position?: import("../..").PieLabelPosition | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
gridLine?: {
|
|
62
|
+
visible?: boolean | undefined;
|
|
63
|
+
color?: string | undefined;
|
|
64
|
+
width?: number | undefined;
|
|
65
|
+
dashType?: import("../..").ChartBorderDashType | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
lineVisible?: boolean | undefined;
|
|
68
|
+
lineStyle?: {
|
|
69
|
+
visible?: boolean | undefined;
|
|
70
|
+
color?: string | undefined;
|
|
71
|
+
width?: number | undefined;
|
|
72
|
+
dashType?: import("../..").ChartBorderDashType | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
} | undefined;
|
|
22
75
|
width?: number | undefined;
|
|
23
76
|
height?: number | undefined;
|
|
24
77
|
theme?: string | undefined;
|
|
@@ -41,6 +94,29 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
41
94
|
} | undefined;
|
|
42
95
|
automaticLayout?: "powerpoint" | undefined;
|
|
43
96
|
titles?: {
|
|
97
|
+
depthAxisTitle?: {
|
|
98
|
+
manualLayout?: {
|
|
99
|
+
left?: number | undefined;
|
|
100
|
+
top?: number | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
eastAsiaFontFamily?: string | undefined;
|
|
103
|
+
bold?: boolean | undefined;
|
|
104
|
+
italic?: boolean | undefined;
|
|
105
|
+
fontSize?: number | undefined;
|
|
106
|
+
color?: string | undefined;
|
|
107
|
+
rotate?: number | undefined;
|
|
108
|
+
family?: string | undefined;
|
|
109
|
+
backgroundColor?: (ChartColor | import("../../types").IChartLabelPattern) | undefined;
|
|
110
|
+
content?: string | undefined;
|
|
111
|
+
align?: import("../..").LabelAlignEnum | undefined;
|
|
112
|
+
strikethrough?: boolean | undefined;
|
|
113
|
+
underline?: boolean | undefined;
|
|
114
|
+
padAngle?: boolean | undefined;
|
|
115
|
+
axisTitleAlign?: import("../..").AxisAlignEnum | undefined;
|
|
116
|
+
showMaxLabel?: boolean | undefined;
|
|
117
|
+
showMinLabel?: boolean | undefined;
|
|
118
|
+
autoRotate?: boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
44
120
|
title?: {
|
|
45
121
|
manualLayout?: {
|
|
46
122
|
left?: number | undefined;
|
|
@@ -190,6 +266,8 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
190
266
|
} | undefined;
|
|
191
267
|
} | undefined;
|
|
192
268
|
xAxis?: {
|
|
269
|
+
scaleType?: "linear" | "log" | undefined;
|
|
270
|
+
logBase?: number | undefined;
|
|
193
271
|
visible?: boolean | undefined;
|
|
194
272
|
crossing?: "autoZero" | "min" | "max" | number | undefined;
|
|
195
273
|
tickLabelPosition?: "nextTo" | "low" | "high" | "none" | undefined;
|
|
@@ -241,6 +319,8 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
241
319
|
format?: string | undefined;
|
|
242
320
|
} | undefined;
|
|
243
321
|
yAxis?: {
|
|
322
|
+
scaleType?: "linear" | "log" | undefined;
|
|
323
|
+
logBase?: number | undefined;
|
|
244
324
|
visible?: boolean | undefined;
|
|
245
325
|
crossing?: "autoZero" | "min" | "max" | number | undefined;
|
|
246
326
|
tickLabelPosition?: "nextTo" | "low" | "high" | "none" | undefined;
|
|
@@ -312,7 +392,10 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
312
392
|
} | undefined;
|
|
313
393
|
min?: number | null | undefined;
|
|
314
394
|
visible?: boolean | undefined;
|
|
395
|
+
scaleType?: "linear" | "log" | undefined;
|
|
396
|
+
logBase?: number | undefined;
|
|
315
397
|
max?: number | null | undefined;
|
|
398
|
+
format?: string | undefined;
|
|
316
399
|
tick?: {
|
|
317
400
|
visible?: boolean | undefined;
|
|
318
401
|
lineWidth?: number | undefined;
|
|
@@ -320,15 +403,12 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
320
403
|
length?: number | undefined;
|
|
321
404
|
position?: import("../..").PieLabelPosition | undefined;
|
|
322
405
|
} | undefined;
|
|
323
|
-
format?: string | undefined;
|
|
324
406
|
gridLine?: {
|
|
325
407
|
visible?: boolean | undefined;
|
|
326
408
|
color?: string | undefined;
|
|
327
409
|
width?: number | undefined;
|
|
328
410
|
dashType?: import("../..").ChartBorderDashType | undefined;
|
|
329
411
|
} | undefined;
|
|
330
|
-
crossing?: "autoZero" | "min" | "max" | number | undefined;
|
|
331
|
-
tickLabelPosition?: "nextTo" | "low" | "high" | "none" | undefined;
|
|
332
412
|
lineVisible?: boolean | undefined;
|
|
333
413
|
lineStyle?: {
|
|
334
414
|
visible?: boolean | undefined;
|
|
@@ -336,6 +416,8 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
336
416
|
width?: number | undefined;
|
|
337
417
|
dashType?: import("../..").ChartBorderDashType | undefined;
|
|
338
418
|
} | undefined;
|
|
419
|
+
crossing?: "autoZero" | "min" | "max" | number | undefined;
|
|
420
|
+
tickLabelPosition?: "nextTo" | "low" | "high" | "none" | undefined;
|
|
339
421
|
majorUnit?: number | undefined;
|
|
340
422
|
autoScale?: "office" | undefined;
|
|
341
423
|
baseTimeUnit?: "days" | "months" | "years" | undefined;
|
|
@@ -391,6 +473,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
391
473
|
rightYAxis?: boolean | undefined;
|
|
392
474
|
smooth?: boolean | undefined;
|
|
393
475
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
476
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
394
477
|
fillOpacity?: number | undefined;
|
|
395
478
|
border?: {
|
|
396
479
|
visible?: boolean | undefined;
|
|
@@ -486,6 +569,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
486
569
|
offset?: [number, number] | undefined;
|
|
487
570
|
} | undefined;
|
|
488
571
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
572
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
489
573
|
fillOpacity?: number | undefined;
|
|
490
574
|
size?: number | undefined;
|
|
491
575
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -501,6 +585,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
501
585
|
rightYAxis?: boolean | undefined;
|
|
502
586
|
smooth?: boolean | undefined;
|
|
503
587
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
588
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
504
589
|
fillOpacity?: number | undefined;
|
|
505
590
|
border?: {
|
|
506
591
|
visible?: boolean | undefined;
|
|
@@ -596,6 +681,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
596
681
|
offset?: [number, number] | undefined;
|
|
597
682
|
} | undefined;
|
|
598
683
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
684
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
599
685
|
fillOpacity?: number | undefined;
|
|
600
686
|
size?: number | undefined;
|
|
601
687
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -611,6 +697,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
611
697
|
rightYAxis?: boolean | undefined;
|
|
612
698
|
smooth?: boolean | undefined;
|
|
613
699
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
700
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
614
701
|
fillOpacity?: number | undefined;
|
|
615
702
|
border?: {
|
|
616
703
|
visible?: boolean | undefined;
|
|
@@ -706,6 +793,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
706
793
|
offset?: [number, number] | undefined;
|
|
707
794
|
} | undefined;
|
|
708
795
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
796
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
709
797
|
fillOpacity?: number | undefined;
|
|
710
798
|
size?: number | undefined;
|
|
711
799
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -724,6 +812,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
724
812
|
dashType?: import("../..").ChartBorderDashType | undefined;
|
|
725
813
|
} | undefined;
|
|
726
814
|
fillOpacity?: number | undefined;
|
|
815
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
727
816
|
scatterLine?: import("../..").ScatterLineType | undefined;
|
|
728
817
|
rightYAxis?: boolean | undefined;
|
|
729
818
|
} | undefined;
|
|
@@ -734,6 +823,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
734
823
|
rightYAxis?: boolean | undefined;
|
|
735
824
|
smooth?: boolean | undefined;
|
|
736
825
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
826
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
737
827
|
fillOpacity?: number | undefined;
|
|
738
828
|
border?: {
|
|
739
829
|
visible?: boolean | undefined;
|
|
@@ -829,6 +919,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
829
919
|
offset?: [number, number] | undefined;
|
|
830
920
|
} | undefined;
|
|
831
921
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
922
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
832
923
|
fillOpacity?: number | undefined;
|
|
833
924
|
size?: number | undefined;
|
|
834
925
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -842,6 +933,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
842
933
|
rightYAxis?: boolean | undefined;
|
|
843
934
|
smooth?: boolean | undefined;
|
|
844
935
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
936
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
845
937
|
fillOpacity?: number | undefined;
|
|
846
938
|
border?: {
|
|
847
939
|
visible?: boolean | undefined;
|
|
@@ -937,6 +1029,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
937
1029
|
offset?: [number, number] | undefined;
|
|
938
1030
|
} | undefined;
|
|
939
1031
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1032
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
940
1033
|
fillOpacity?: number | undefined;
|
|
941
1034
|
size?: number | undefined;
|
|
942
1035
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -952,6 +1045,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
952
1045
|
rightYAxis?: boolean | undefined;
|
|
953
1046
|
smooth?: boolean | undefined;
|
|
954
1047
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1048
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
955
1049
|
fillOpacity?: number | undefined;
|
|
956
1050
|
border?: {
|
|
957
1051
|
visible?: boolean | undefined;
|
|
@@ -1047,6 +1141,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1047
1141
|
offset?: [number, number] | undefined;
|
|
1048
1142
|
} | undefined;
|
|
1049
1143
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1144
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1050
1145
|
fillOpacity?: number | undefined;
|
|
1051
1146
|
size?: number | undefined;
|
|
1052
1147
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1062,6 +1157,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1062
1157
|
rightYAxis?: boolean | undefined;
|
|
1063
1158
|
smooth?: boolean | undefined;
|
|
1064
1159
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1160
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1065
1161
|
fillOpacity?: number | undefined;
|
|
1066
1162
|
border?: {
|
|
1067
1163
|
visible?: boolean | undefined;
|
|
@@ -1157,6 +1253,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1157
1253
|
offset?: [number, number] | undefined;
|
|
1158
1254
|
} | undefined;
|
|
1159
1255
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1256
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1160
1257
|
fillOpacity?: number | undefined;
|
|
1161
1258
|
size?: number | undefined;
|
|
1162
1259
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1172,10 +1269,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1172
1269
|
bar?: {
|
|
1173
1270
|
gapWidth?: number | undefined;
|
|
1174
1271
|
overlap?: number | undefined;
|
|
1175
|
-
is3D?: boolean | undefined;
|
|
1176
1272
|
shape?: import("../..").BarShape | undefined;
|
|
1177
|
-
rotX?: number | undefined;
|
|
1178
|
-
rotY?: number | undefined;
|
|
1179
1273
|
} | undefined;
|
|
1180
1274
|
bubble?: {
|
|
1181
1275
|
scale?: number | undefined;
|
|
@@ -1216,6 +1310,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1216
1310
|
aggregate?: {
|
|
1217
1311
|
label?: string | undefined;
|
|
1218
1312
|
style?: {
|
|
1313
|
+
explosion?: number | undefined;
|
|
1219
1314
|
color?: ChartColor | undefined;
|
|
1220
1315
|
fillOpacity?: number | undefined;
|
|
1221
1316
|
} | undefined;
|
|
@@ -1250,7 +1345,6 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1250
1345
|
} | undefined;
|
|
1251
1346
|
borderColor?: string | undefined;
|
|
1252
1347
|
hasPaddingAngle?: boolean | undefined;
|
|
1253
|
-
is3D?: boolean | undefined;
|
|
1254
1348
|
isHalfPie?: boolean | undefined;
|
|
1255
1349
|
rosePie?: boolean | undefined;
|
|
1256
1350
|
showLabelLine?: boolean | undefined;
|
|
@@ -1263,7 +1357,9 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1263
1357
|
sliceStyles?: {
|
|
1264
1358
|
[x: number]: {
|
|
1265
1359
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1360
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1266
1361
|
fillOpacity?: number | undefined;
|
|
1362
|
+
explosion?: number | undefined;
|
|
1267
1363
|
} | undefined;
|
|
1268
1364
|
} | undefined;
|
|
1269
1365
|
} | undefined;
|
|
@@ -1322,6 +1418,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1322
1418
|
rightYAxis?: boolean | undefined;
|
|
1323
1419
|
smooth?: boolean | undefined;
|
|
1324
1420
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1421
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1325
1422
|
fillOpacity?: number | undefined;
|
|
1326
1423
|
border?: {
|
|
1327
1424
|
visible?: boolean | undefined;
|
|
@@ -1417,6 +1514,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1417
1514
|
offset?: [number, number] | undefined;
|
|
1418
1515
|
} | undefined;
|
|
1419
1516
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1517
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1420
1518
|
fillOpacity?: number | undefined;
|
|
1421
1519
|
size?: number | undefined;
|
|
1422
1520
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1430,6 +1528,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1430
1528
|
rightYAxis?: boolean | undefined;
|
|
1431
1529
|
smooth?: boolean | undefined;
|
|
1432
1530
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1531
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1433
1532
|
fillOpacity?: number | undefined;
|
|
1434
1533
|
border?: {
|
|
1435
1534
|
visible?: boolean | undefined;
|
|
@@ -1525,6 +1624,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1525
1624
|
offset?: [number, number] | undefined;
|
|
1526
1625
|
} | undefined;
|
|
1527
1626
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1627
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1528
1628
|
fillOpacity?: number | undefined;
|
|
1529
1629
|
size?: number | undefined;
|
|
1530
1630
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1540,6 +1640,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1540
1640
|
rightYAxis?: boolean | undefined;
|
|
1541
1641
|
smooth?: boolean | undefined;
|
|
1542
1642
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1643
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1543
1644
|
fillOpacity?: number | undefined;
|
|
1544
1645
|
border?: {
|
|
1545
1646
|
visible?: boolean | undefined;
|
|
@@ -1635,6 +1736,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1635
1736
|
offset?: [number, number] | undefined;
|
|
1636
1737
|
} | undefined;
|
|
1637
1738
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1739
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1638
1740
|
fillOpacity?: number | undefined;
|
|
1639
1741
|
size?: number | undefined;
|
|
1640
1742
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1650,6 +1752,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1650
1752
|
rightYAxis?: boolean | undefined;
|
|
1651
1753
|
smooth?: boolean | undefined;
|
|
1652
1754
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1755
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1653
1756
|
fillOpacity?: number | undefined;
|
|
1654
1757
|
border?: {
|
|
1655
1758
|
visible?: boolean | undefined;
|
|
@@ -1745,6 +1848,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1745
1848
|
offset?: [number, number] | undefined;
|
|
1746
1849
|
} | undefined;
|
|
1747
1850
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1851
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1748
1852
|
fillOpacity?: number | undefined;
|
|
1749
1853
|
size?: number | undefined;
|
|
1750
1854
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1762,6 +1866,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1762
1866
|
rightYAxis?: boolean | undefined;
|
|
1763
1867
|
smooth?: boolean | undefined;
|
|
1764
1868
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1869
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1765
1870
|
fillOpacity?: number | undefined;
|
|
1766
1871
|
border?: {
|
|
1767
1872
|
visible?: boolean | undefined;
|
|
@@ -1857,6 +1962,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1857
1962
|
offset?: [number, number] | undefined;
|
|
1858
1963
|
} | undefined;
|
|
1859
1964
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1965
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1860
1966
|
fillOpacity?: number | undefined;
|
|
1861
1967
|
size?: number | undefined;
|
|
1862
1968
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1870,6 +1976,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1870
1976
|
rightYAxis?: boolean | undefined;
|
|
1871
1977
|
smooth?: boolean | undefined;
|
|
1872
1978
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
1979
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1873
1980
|
fillOpacity?: number | undefined;
|
|
1874
1981
|
border?: {
|
|
1875
1982
|
visible?: boolean | undefined;
|
|
@@ -1965,6 +2072,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1965
2072
|
offset?: [number, number] | undefined;
|
|
1966
2073
|
} | undefined;
|
|
1967
2074
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
2075
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1968
2076
|
fillOpacity?: number | undefined;
|
|
1969
2077
|
size?: number | undefined;
|
|
1970
2078
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1980,6 +2088,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
1980
2088
|
rightYAxis?: boolean | undefined;
|
|
1981
2089
|
smooth?: boolean | undefined;
|
|
1982
2090
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
2091
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
1983
2092
|
fillOpacity?: number | undefined;
|
|
1984
2093
|
border?: {
|
|
1985
2094
|
visible?: boolean | undefined;
|
|
@@ -2075,6 +2184,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
2075
2184
|
offset?: [number, number] | undefined;
|
|
2076
2185
|
} | undefined;
|
|
2077
2186
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
2187
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
2078
2188
|
fillOpacity?: number | undefined;
|
|
2079
2189
|
size?: number | undefined;
|
|
2080
2190
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -2090,6 +2200,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
2090
2200
|
rightYAxis?: boolean | undefined;
|
|
2091
2201
|
smooth?: boolean | undefined;
|
|
2092
2202
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
2203
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
2093
2204
|
fillOpacity?: number | undefined;
|
|
2094
2205
|
border?: {
|
|
2095
2206
|
visible?: boolean | undefined;
|
|
@@ -2185,6 +2296,7 @@ export declare function mergeChartModelConfigPatch(chartModel: ChartModel, pendi
|
|
|
2185
2296
|
offset?: [number, number] | undefined;
|
|
2186
2297
|
} | undefined;
|
|
2187
2298
|
color?: import("@univerjs/core").Nullable<ChartColor>;
|
|
2299
|
+
fillPattern?: (import("../../types").IChartSeriesFillPattern | null) | undefined;
|
|
2188
2300
|
fillOpacity?: number | undefined;
|
|
2189
2301
|
size?: number | undefined;
|
|
2190
2302
|
shape?: import("../..").LinePointShape | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IWordCloudRenderConfig } from '../wordcloud
|
|
1
|
+
import type { IWordCloudRenderConfig } from '../wordcloud';
|
|
2
2
|
export declare const ENGINE_CHART_PLUGIN_CONFIG_KEY = "engine-chart.config";
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
4
|
export interface IUniverChartConfig {
|
package/lib/types/enum.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare enum ChartAttributeBits {
|
|
2
|
+
/** Persisted chart dimension; the underlying chart, direction and stacking bits remain unchanged. */
|
|
3
|
+
ThreeD = 134217728,
|
|
2
4
|
Stack = 1073741824,
|
|
3
5
|
PercentStack = 1610612736,
|
|
4
6
|
Horizontal = 268435456
|
|
@@ -55,6 +57,17 @@ export declare enum ChartTypeBits {
|
|
|
55
57
|
* Percent stacked area chart
|
|
56
58
|
*/
|
|
57
59
|
AreaPercentStacked = 1610612752,
|
|
60
|
+
Line3D = 134217730,
|
|
61
|
+
Column3D = 134217732,
|
|
62
|
+
ColumnStacked3D = 1207959556,
|
|
63
|
+
ColumnPercentStacked3D = 1744830468,
|
|
64
|
+
Bar3D = 402653188,
|
|
65
|
+
BarStacked3D = 1476395012,
|
|
66
|
+
BarPercentStacked3D = 2013265924,
|
|
67
|
+
Pie3D = 134217736,
|
|
68
|
+
Area3D = 134217744,
|
|
69
|
+
AreaStacked3D = 1207959568,
|
|
70
|
+
AreaPercentStacked3D = 1744830480,
|
|
58
71
|
/** Radar chart */
|
|
59
72
|
Radar = 32,
|
|
60
73
|
/** Scatter chart */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AreaLineStyle, IChartInfo } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FAxisThreeDChartBuilder } from '../f-axis-three-d-chart-builder';
|
|
3
|
+
export declare class FAreaThreeDChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FAxisThreeDChartBuilder<TSource, TDataSource, TInfo> {
|
|
4
|
+
setAreaLineStyle(value: AreaLineStyle): this;
|
|
5
|
+
clearAreaLineStyle(): this;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IChartBarSpec, IChartInfo } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FAxisThreeDChartBuilder } from '../f-axis-three-d-chart-builder';
|
|
3
|
+
export declare class FColumnThreeDChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FAxisThreeDChartBuilder<TSource, TDataSource, TInfo> {
|
|
4
|
+
setBar(value: IChartBarSpec): this;
|
|
5
|
+
clearBar(): this;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IChartInfo, IChartSeriesBorderSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FAxisThreeDChartBuilder } from '../f-axis-three-d-chart-builder';
|
|
3
|
+
export declare class FLineThreeDChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FAxisThreeDChartBuilder<TSource, TDataSource, TInfo> {
|
|
4
|
+
setLineStyle(value: IChartSeriesBorderSpec): this;
|
|
5
|
+
clearLineStyle(): this;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DeepNullish, IChartInfo, IChartPieLabelSpec, IChartSliceStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FThreeDChartBuilder } from '../f-three-d-chart-builder';
|
|
3
|
+
/** Solid 3D pie; hole, half-pie and rose geometry are intentionally unavailable. */
|
|
4
|
+
export declare class FPieThreeDChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FThreeDChartBuilder<TSource, TDataSource, TInfo> {
|
|
5
|
+
setExplosion(value: number): this;
|
|
6
|
+
resetExplosion(): this;
|
|
7
|
+
setSliceStyle(index: number, value: IChartSliceStyleSpec): this;
|
|
8
|
+
clearSliceStyle(index: number): this;
|
|
9
|
+
setPieLabel(value: DeepNullish<IChartPieLabelSpec>): this;
|
|
10
|
+
clearPieLabel(): this;
|
|
11
|
+
setSliceBorderColor(value: string): this;
|
|
12
|
+
clearSliceBorderColor(): this;
|
|
13
|
+
setLabelLineVisible(value: boolean): this;
|
|
14
|
+
resetLabelLineVisible(): this;
|
|
15
|
+
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { ChartTypeString, IChartInfo, IChartSeriesPatch, IChartSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { FAreaChartBuilder } from './builders/f-area-chart-builder';
|
|
3
|
+
import type { FAreaThreeDChartBuilder } from './builders/f-area-three-d-chart-builder';
|
|
3
4
|
import type { FBoxplotChartBuilder } from './builders/f-boxplot-chart-builder';
|
|
4
5
|
import type { FBubbleChartBuilder } from './builders/f-bubble-chart-builder';
|
|
5
6
|
import type { FCandlestickChartBuilder } from './builders/f-candlestick-chart-builder';
|
|
6
7
|
import type { FChordChartBuilder } from './builders/f-chord-chart-builder';
|
|
8
|
+
import type { FColumnThreeDChartBuilder } from './builders/f-column-three-d-chart-builder';
|
|
7
9
|
import type { FCombinationChartBuilder } from './builders/f-combination-chart-builder';
|
|
8
10
|
import type { FFunnelChartBuilder } from './builders/f-funnel-chart-builder';
|
|
9
11
|
import type { FGaugeChartBuilder } from './builders/f-gauge-chart-builder';
|
|
10
12
|
import type { FHeatmapChartBuilder } from './builders/f-heatmap-chart-builder';
|
|
11
13
|
import type { FHistogramChartBuilder } from './builders/f-histogram-chart-builder';
|
|
12
14
|
import type { FLineChartBuilder } from './builders/f-line-chart-builder';
|
|
15
|
+
import type { FLineThreeDChartBuilder } from './builders/f-line-three-d-chart-builder';
|
|
13
16
|
import type { FParetoChartBuilder } from './builders/f-pareto-chart-builder';
|
|
14
17
|
import type { FPieChartBuilder } from './builders/f-pie-chart-builder';
|
|
18
|
+
import type { FPieThreeDChartBuilder } from './builders/f-pie-three-d-chart-builder';
|
|
15
19
|
import type { FRadarChartBuilder } from './builders/f-radar-chart-builder';
|
|
16
20
|
import type { FRelationChartBuilder } from './builders/f-relation-chart-builder';
|
|
17
21
|
import type { FScatterChartBuilder } from './builders/f-scatter-chart-builder';
|
|
@@ -23,6 +27,17 @@ import type { FCartesianChartBuilder } from './f-cartesian-chart-builder';
|
|
|
23
27
|
import type { FChartBuilderBase } from './f-chart-builder-base';
|
|
24
28
|
/** Maps each canonical Chart type to its type-specific Facade Builder. */
|
|
25
29
|
export interface IChartBuilderTypeMap<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> {
|
|
30
|
+
[ChartTypeString.Line3D]: FLineThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
31
|
+
[ChartTypeString.Column3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
32
|
+
[ChartTypeString.ColumnStacked3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
33
|
+
[ChartTypeString.ColumnPercentStacked3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
34
|
+
[ChartTypeString.Bar3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
35
|
+
[ChartTypeString.BarStacked3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
36
|
+
[ChartTypeString.BarPercentStacked3D]: FColumnThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
37
|
+
[ChartTypeString.Pie3D]: FPieThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
38
|
+
[ChartTypeString.Area3D]: FAreaThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
39
|
+
[ChartTypeString.AreaStacked3D]: FAreaThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
40
|
+
[ChartTypeString.AreaPercentStacked3D]: FAreaThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
26
41
|
[ChartTypeString.Line]: FLineChartBuilder<TSource, TDataSource, TInfo>;
|
|
27
42
|
[ChartTypeString.Column]: FCartesianChartBuilder<Omit<IChartSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo>;
|
|
28
43
|
[ChartTypeString.ColumnStacked]: FCartesianChartBuilder<Omit<IChartSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IChartDescription, IChartInfo } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { Injector } from '@univerjs/core';
|
|
3
3
|
import type { IChartBuilderTypeMap } from './chart-builder-type-map';
|
|
4
4
|
import type { HostComposedChartBuilder } from './chart-host-builder-types';
|
|
5
|
+
import { ChartTypeString } from '@univerjs-pro/engine-chart';
|
|
5
6
|
/** Host extension hooks used to add placement and ownership methods to a Chart Builder. */
|
|
6
7
|
export interface IChartBuilderExtensionContext<TInfo extends IChartInfo<TDataSource>, TDataSource> {
|
|
7
8
|
/** Returns a cloned host-specific information field from the detached draft. */
|
|
@@ -48,7 +48,9 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
48
48
|
*/
|
|
49
49
|
clearMarkLines(): this;
|
|
50
50
|
/**
|
|
51
|
-
* Sets the
|
|
51
|
+
* Sets the X axis configuration and returns this detached builder for chaining.
|
|
52
|
+
* On a supported Bar chart, `{ scaleType: 'log', logBase: 2.5 }` selects its numeric scale.
|
|
53
|
+
* Unsupported axis configurations are retained and reported by chart diagnostics.
|
|
52
54
|
*
|
|
53
55
|
* This method executes synchronously.
|
|
54
56
|
*
|
|
@@ -56,7 +58,13 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
56
58
|
* @returns This builder for chaining.
|
|
57
59
|
* @example
|
|
58
60
|
* ```ts
|
|
59
|
-
*
|
|
61
|
+
* // Bar charts use the X axis as their numeric axis.
|
|
62
|
+
* const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
63
|
+
* const chartInfo = sheet.newChart(univerAPI.Enum.ChartTypeString.Bar)
|
|
64
|
+
* .setSource('A1:B8')
|
|
65
|
+
* .setXAxis({ scaleType: 'log', logBase: 10 })
|
|
66
|
+
* .build();
|
|
67
|
+
* await sheet.insertChart(chartInfo);
|
|
60
68
|
* ```
|
|
61
69
|
*/
|
|
62
70
|
setXAxis(value: IChartAxisSpec): this;
|
|
@@ -74,7 +82,12 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
74
82
|
*/
|
|
75
83
|
clearXAxis(target?: ChartAxisTarget): this;
|
|
76
84
|
/**
|
|
77
|
-
* Sets the
|
|
85
|
+
* Sets the Y axis configuration and returns this detached builder for chaining.
|
|
86
|
+
* Supported numeric axes accept `{ scaleType: 'log', logBase: 2.5 }`.
|
|
87
|
+
* Missing base defaults to 10 when first enabled. Finite out-of-range values are retained
|
|
88
|
+
* for compatibility and render with base 10 plus diagnostics. Normal input uses 2–1000.
|
|
89
|
+
* Apply an existing-chart draft with `await chart.update(builder.build())`.
|
|
90
|
+
* Explicit `scaleType: 'linear'` removes the base; unrelated patches preserve it.
|
|
78
91
|
*
|
|
79
92
|
* This method executes synchronously.
|
|
80
93
|
*
|
|
@@ -82,12 +95,27 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
82
95
|
* @returns This builder for chaining.
|
|
83
96
|
* @example
|
|
84
97
|
* ```ts
|
|
85
|
-
*
|
|
98
|
+
* // Update an existing Line chart; Area and Column use the same Y-axis settings.
|
|
99
|
+
* const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
100
|
+
* const chart = sheet.getCharts()[0];
|
|
101
|
+
* const builder = chart.toBuilder(univerAPI.Enum.ChartTypeString.Line)
|
|
102
|
+
* .setYAxis({ scaleType: 'log', logBase: 2.5 });
|
|
103
|
+
* await chart.update(builder.build());
|
|
104
|
+
*
|
|
105
|
+
* // Change only the base of the logarithmic axis.
|
|
106
|
+
* await chart.update(chart.toBuilder(univerAPI.Enum.ChartTypeString.Line)
|
|
107
|
+
* .setYAxis({ logBase: 2 }).build());
|
|
108
|
+
*
|
|
109
|
+
* // Restore linear scaling and remove the logarithm base.
|
|
110
|
+
* await chart.update(chart.toBuilder(univerAPI.Enum.ChartTypeString.Line)
|
|
111
|
+
* .setYAxis({ scaleType: 'linear' }).build());
|
|
86
112
|
* ```
|
|
87
113
|
*/
|
|
88
114
|
setYAxis(value: IChartAxisSpec): this;
|
|
89
115
|
/**
|
|
90
|
-
* Clears the
|
|
116
|
+
* Clears the Y axis configuration and returns this builder for chaining.
|
|
117
|
+
* Clearing an entire logarithmic axis writes explicit linear intent so imported raw
|
|
118
|
+
* chart data cannot restore the old logarithmic scale. Clearing a field keeps the scale.
|
|
91
119
|
*
|
|
92
120
|
* This method executes synchronously.
|
|
93
121
|
*
|
|
@@ -100,7 +128,8 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
100
128
|
*/
|
|
101
129
|
clearYAxis(target?: ChartAxisTarget): this;
|
|
102
130
|
/**
|
|
103
|
-
* Sets the
|
|
131
|
+
* Sets the existing secondary Y axis configuration and returns this builder for chaining.
|
|
132
|
+
* Logarithmic settings follow `setYAxis`; this does not create a secondary Bar axis.
|
|
104
133
|
*
|
|
105
134
|
* This method executes synchronously.
|
|
106
135
|
*
|
|
@@ -108,7 +137,13 @@ export declare abstract class FAxisChartBuilder<TSource = never[], TDataSource =
|
|
|
108
137
|
* @returns This builder for chaining.
|
|
109
138
|
* @example
|
|
110
139
|
* ```ts
|
|
111
|
-
*
|
|
140
|
+
* // The existing Line chart already has a series assigned to its secondary axis.
|
|
141
|
+
* const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
142
|
+
* const chart = sheet.getCharts()[0];
|
|
143
|
+
* const builder = chart.toBuilder(univerAPI.Enum.ChartTypeString.Line)
|
|
144
|
+
* .setYAxis({ scaleType: 'linear' })
|
|
145
|
+
* .setRightYAxis({ scaleType: 'log', logBase: 2 });
|
|
146
|
+
* await chart.update(builder.build());
|
|
112
147
|
* ```
|
|
113
148
|
*/
|
|
114
149
|
setRightYAxis(value: IChartAxisSpec): this;
|