@univerjs-pro/engine-chart 1.0.0-alpha.3 → 1.0.0-alpha.4
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
|
@@ -144,13 +144,16 @@ export declare class ChartModel extends Disposable {
|
|
|
144
144
|
width?: number | undefined;
|
|
145
145
|
height?: number | undefined;
|
|
146
146
|
theme?: string | undefined;
|
|
147
|
+
palette?: string[] | undefined;
|
|
147
148
|
invalidValueType?: import("..").InvalidValueType | undefined;
|
|
148
149
|
gradientFill?: boolean | undefined;
|
|
149
150
|
backgroundColor?: import("@univerjs/core").Nullable<string>;
|
|
150
151
|
titleFontSize?: number | undefined;
|
|
151
152
|
fontSize?: number | undefined;
|
|
152
153
|
fontColor?: string | undefined;
|
|
154
|
+
fontFamily?: string | undefined;
|
|
153
155
|
borderColor?: import("@univerjs/core").Nullable<string>;
|
|
156
|
+
borderWidth?: number | undefined;
|
|
154
157
|
titles?: {
|
|
155
158
|
title?: {
|
|
156
159
|
bold?: boolean | undefined;
|
|
@@ -251,6 +254,7 @@ export declare class ChartModel extends Disposable {
|
|
|
251
254
|
showMinLabel?: boolean | undefined;
|
|
252
255
|
} | undefined;
|
|
253
256
|
selectMode?: import("..").SelectModeEnum | undefined;
|
|
257
|
+
wrap?: boolean | undefined;
|
|
254
258
|
} | undefined;
|
|
255
259
|
xAxis?: {
|
|
256
260
|
lineVisible?: boolean | undefined;
|
|
@@ -331,6 +335,7 @@ export declare class ChartModel extends Disposable {
|
|
|
331
335
|
format?: string | undefined;
|
|
332
336
|
} | undefined;
|
|
333
337
|
rightYAxis?: {
|
|
338
|
+
min?: number | null | undefined;
|
|
334
339
|
lineVisible?: boolean | undefined;
|
|
335
340
|
label?: {
|
|
336
341
|
bold?: boolean | undefined;
|
|
@@ -364,12 +369,16 @@ export declare class ChartModel extends Disposable {
|
|
|
364
369
|
length?: number | undefined;
|
|
365
370
|
position?: import("..").PieLabelPosition | undefined;
|
|
366
371
|
} | undefined;
|
|
367
|
-
min?: number | null | undefined;
|
|
368
372
|
max?: number | null | undefined;
|
|
369
373
|
format?: string | undefined;
|
|
370
374
|
} | undefined;
|
|
371
375
|
allSeriesStyle?: {
|
|
372
376
|
color?: import("@univerjs/core").Nullable<string>;
|
|
377
|
+
point?: {
|
|
378
|
+
shape?: import("..").LinePointShape | undefined;
|
|
379
|
+
size?: number | undefined;
|
|
380
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
381
|
+
} | undefined;
|
|
373
382
|
label?: {
|
|
374
383
|
contentType?: number | undefined;
|
|
375
384
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -396,11 +405,7 @@ export declare class ChartModel extends Disposable {
|
|
|
396
405
|
dashType?: import("..").ChartBorderDashType | undefined;
|
|
397
406
|
} | undefined;
|
|
398
407
|
rightYAxis?: boolean | undefined;
|
|
399
|
-
|
|
400
|
-
shape?: import("..").LinePointShape | undefined;
|
|
401
|
-
size?: number | undefined;
|
|
402
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
403
|
-
} | undefined;
|
|
408
|
+
fillOpacity?: number | undefined;
|
|
404
409
|
waterfall?: {
|
|
405
410
|
positive?: {
|
|
406
411
|
chartType?: (ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area) | undefined;
|
|
@@ -728,6 +733,12 @@ export declare class ChartModel extends Disposable {
|
|
|
728
733
|
} | undefined;
|
|
729
734
|
} | undefined;
|
|
730
735
|
} | undefined;
|
|
736
|
+
bar?: {
|
|
737
|
+
is3D?: boolean | undefined;
|
|
738
|
+
shape?: import("..").BarShape | undefined;
|
|
739
|
+
rotX?: number | undefined;
|
|
740
|
+
rotY?: number | undefined;
|
|
741
|
+
} | undefined;
|
|
731
742
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
732
743
|
pie?: {
|
|
733
744
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
@@ -751,6 +762,7 @@ export declare class ChartModel extends Disposable {
|
|
|
751
762
|
} | undefined;
|
|
752
763
|
borderColor?: string | undefined;
|
|
753
764
|
hasPaddingAngle?: boolean | undefined;
|
|
765
|
+
is3D?: boolean | undefined;
|
|
754
766
|
isHalfPie?: boolean | undefined;
|
|
755
767
|
rosePie?: boolean | undefined;
|
|
756
768
|
showLabelLine?: boolean | undefined;
|
|
@@ -791,7 +803,15 @@ export declare class ChartModel extends Disposable {
|
|
|
791
803
|
waterfall?: {
|
|
792
804
|
stackType?: import("..").WaterfallStackTypeEnum | undefined;
|
|
793
805
|
useSubtotal?: boolean | undefined;
|
|
806
|
+
pointRoles?: import("../types").IWaterfallPointRole[] | undefined;
|
|
807
|
+
connector?: boolean | {
|
|
808
|
+
color?: string | undefined;
|
|
809
|
+
width?: number | undefined;
|
|
810
|
+
opacity?: number | undefined;
|
|
811
|
+
dashType?: import("..").ChartBorderDashType | undefined;
|
|
812
|
+
} | undefined;
|
|
794
813
|
} | undefined;
|
|
814
|
+
markLines?: import("../types").IChartMarkLine[] | undefined;
|
|
795
815
|
tooltip?: {
|
|
796
816
|
indicatorLabelColor?: string | undefined;
|
|
797
817
|
indicatorLineType?: import("..").ChartBorderDashType | undefined;
|
|
@@ -1173,6 +1193,26 @@ export declare class ChartModel extends Disposable {
|
|
|
1173
1193
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
1174
1194
|
max?: number | undefined;
|
|
1175
1195
|
min?: number | undefined;
|
|
1196
|
+
unit?: string | undefined;
|
|
1197
|
+
label?: {
|
|
1198
|
+
contentType?: number | undefined;
|
|
1199
|
+
position?: import("..").SeriesLabelPosition | undefined;
|
|
1200
|
+
visible?: boolean | undefined;
|
|
1201
|
+
content?: string | undefined;
|
|
1202
|
+
fontSize?: number | undefined;
|
|
1203
|
+
color?: string | undefined;
|
|
1204
|
+
align?: import("..").LabelAlignEnum | undefined;
|
|
1205
|
+
bold?: boolean | undefined;
|
|
1206
|
+
family?: string | undefined;
|
|
1207
|
+
strikethrough?: boolean | undefined;
|
|
1208
|
+
italic?: boolean | undefined;
|
|
1209
|
+
underline?: boolean | undefined;
|
|
1210
|
+
padAngle?: boolean | undefined;
|
|
1211
|
+
axisTitleAlign?: import("..").AxisAlignEnum | undefined;
|
|
1212
|
+
showMaxLabel?: boolean | undefined;
|
|
1213
|
+
showMinLabel?: boolean | undefined;
|
|
1214
|
+
rotate?: number | undefined;
|
|
1215
|
+
} | undefined;
|
|
1176
1216
|
} | undefined;
|
|
1177
1217
|
}>;
|
|
1178
1218
|
readonly style$: Observable<{
|
|
@@ -1282,13 +1322,16 @@ export declare class ChartModel extends Disposable {
|
|
|
1282
1322
|
width?: number | undefined;
|
|
1283
1323
|
height?: number | undefined;
|
|
1284
1324
|
theme?: string | undefined;
|
|
1325
|
+
palette?: string[] | undefined;
|
|
1285
1326
|
invalidValueType?: import("..").InvalidValueType | undefined;
|
|
1286
1327
|
gradientFill?: boolean | undefined;
|
|
1287
1328
|
backgroundColor?: import("@univerjs/core").Nullable<string>;
|
|
1288
1329
|
titleFontSize?: number | undefined;
|
|
1289
1330
|
fontSize?: number | undefined;
|
|
1290
1331
|
fontColor?: string | undefined;
|
|
1332
|
+
fontFamily?: string | undefined;
|
|
1291
1333
|
borderColor?: import("@univerjs/core").Nullable<string>;
|
|
1334
|
+
borderWidth?: number | undefined;
|
|
1292
1335
|
titles?: {
|
|
1293
1336
|
title?: {
|
|
1294
1337
|
bold?: boolean | undefined;
|
|
@@ -1389,6 +1432,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1389
1432
|
showMinLabel?: boolean | undefined;
|
|
1390
1433
|
} | undefined;
|
|
1391
1434
|
selectMode?: import("..").SelectModeEnum | undefined;
|
|
1435
|
+
wrap?: boolean | undefined;
|
|
1392
1436
|
} | undefined;
|
|
1393
1437
|
xAxis?: {
|
|
1394
1438
|
lineVisible?: boolean | undefined;
|
|
@@ -1469,6 +1513,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1469
1513
|
format?: string | undefined;
|
|
1470
1514
|
} | undefined;
|
|
1471
1515
|
rightYAxis?: {
|
|
1516
|
+
min?: number | null | undefined;
|
|
1472
1517
|
lineVisible?: boolean | undefined;
|
|
1473
1518
|
label?: {
|
|
1474
1519
|
bold?: boolean | undefined;
|
|
@@ -1502,12 +1547,16 @@ export declare class ChartModel extends Disposable {
|
|
|
1502
1547
|
length?: number | undefined;
|
|
1503
1548
|
position?: import("..").PieLabelPosition | undefined;
|
|
1504
1549
|
} | undefined;
|
|
1505
|
-
min?: number | null | undefined;
|
|
1506
1550
|
max?: number | null | undefined;
|
|
1507
1551
|
format?: string | undefined;
|
|
1508
1552
|
} | undefined;
|
|
1509
1553
|
allSeriesStyle?: {
|
|
1510
1554
|
color?: import("@univerjs/core").Nullable<string>;
|
|
1555
|
+
point?: {
|
|
1556
|
+
shape?: import("..").LinePointShape | undefined;
|
|
1557
|
+
size?: number | undefined;
|
|
1558
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
1559
|
+
} | undefined;
|
|
1511
1560
|
label?: {
|
|
1512
1561
|
contentType?: number | undefined;
|
|
1513
1562
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -1534,11 +1583,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1534
1583
|
dashType?: import("..").ChartBorderDashType | undefined;
|
|
1535
1584
|
} | undefined;
|
|
1536
1585
|
rightYAxis?: boolean | undefined;
|
|
1537
|
-
|
|
1538
|
-
shape?: import("..").LinePointShape | undefined;
|
|
1539
|
-
size?: number | undefined;
|
|
1540
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
1541
|
-
} | undefined;
|
|
1586
|
+
fillOpacity?: number | undefined;
|
|
1542
1587
|
waterfall?: {
|
|
1543
1588
|
positive?: {
|
|
1544
1589
|
chartType?: (ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area) | undefined;
|
|
@@ -1866,6 +1911,12 @@ export declare class ChartModel extends Disposable {
|
|
|
1866
1911
|
} | undefined;
|
|
1867
1912
|
} | undefined;
|
|
1868
1913
|
} | undefined;
|
|
1914
|
+
bar?: {
|
|
1915
|
+
is3D?: boolean | undefined;
|
|
1916
|
+
shape?: import("..").BarShape | undefined;
|
|
1917
|
+
rotX?: number | undefined;
|
|
1918
|
+
rotY?: number | undefined;
|
|
1919
|
+
} | undefined;
|
|
1869
1920
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
1870
1921
|
pie?: {
|
|
1871
1922
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
@@ -1889,6 +1940,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1889
1940
|
} | undefined;
|
|
1890
1941
|
borderColor?: string | undefined;
|
|
1891
1942
|
hasPaddingAngle?: boolean | undefined;
|
|
1943
|
+
is3D?: boolean | undefined;
|
|
1892
1944
|
isHalfPie?: boolean | undefined;
|
|
1893
1945
|
rosePie?: boolean | undefined;
|
|
1894
1946
|
showLabelLine?: boolean | undefined;
|
|
@@ -1929,7 +1981,15 @@ export declare class ChartModel extends Disposable {
|
|
|
1929
1981
|
waterfall?: {
|
|
1930
1982
|
stackType?: import("..").WaterfallStackTypeEnum | undefined;
|
|
1931
1983
|
useSubtotal?: boolean | undefined;
|
|
1984
|
+
pointRoles?: import("../types").IWaterfallPointRole[] | undefined;
|
|
1985
|
+
connector?: boolean | {
|
|
1986
|
+
color?: string | undefined;
|
|
1987
|
+
width?: number | undefined;
|
|
1988
|
+
opacity?: number | undefined;
|
|
1989
|
+
dashType?: import("..").ChartBorderDashType | undefined;
|
|
1990
|
+
} | undefined;
|
|
1932
1991
|
} | undefined;
|
|
1992
|
+
markLines?: import("../types").IChartMarkLine[] | undefined;
|
|
1933
1993
|
tooltip?: {
|
|
1934
1994
|
indicatorLabelColor?: string | undefined;
|
|
1935
1995
|
indicatorLineType?: import("..").ChartBorderDashType | undefined;
|
|
@@ -2311,6 +2371,26 @@ export declare class ChartModel extends Disposable {
|
|
|
2311
2371
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
2312
2372
|
max?: number | undefined;
|
|
2313
2373
|
min?: number | undefined;
|
|
2374
|
+
unit?: string | undefined;
|
|
2375
|
+
label?: {
|
|
2376
|
+
contentType?: number | undefined;
|
|
2377
|
+
position?: import("..").SeriesLabelPosition | undefined;
|
|
2378
|
+
visible?: boolean | undefined;
|
|
2379
|
+
content?: string | undefined;
|
|
2380
|
+
fontSize?: number | undefined;
|
|
2381
|
+
color?: string | undefined;
|
|
2382
|
+
align?: import("..").LabelAlignEnum | undefined;
|
|
2383
|
+
bold?: boolean | undefined;
|
|
2384
|
+
family?: string | undefined;
|
|
2385
|
+
strikethrough?: boolean | undefined;
|
|
2386
|
+
italic?: boolean | undefined;
|
|
2387
|
+
underline?: boolean | undefined;
|
|
2388
|
+
padAngle?: boolean | undefined;
|
|
2389
|
+
axisTitleAlign?: import("..").AxisAlignEnum | undefined;
|
|
2390
|
+
showMaxLabel?: boolean | undefined;
|
|
2391
|
+
showMinLabel?: boolean | undefined;
|
|
2392
|
+
rotate?: number | undefined;
|
|
2393
|
+
} | undefined;
|
|
2314
2394
|
} | undefined;
|
|
2315
2395
|
}>;
|
|
2316
2396
|
get style(): {
|
|
@@ -2420,13 +2500,16 @@ export declare class ChartModel extends Disposable {
|
|
|
2420
2500
|
width?: number | undefined;
|
|
2421
2501
|
height?: number | undefined;
|
|
2422
2502
|
theme?: string | undefined;
|
|
2503
|
+
palette?: string[] | undefined;
|
|
2423
2504
|
invalidValueType?: import("..").InvalidValueType | undefined;
|
|
2424
2505
|
gradientFill?: boolean | undefined;
|
|
2425
2506
|
backgroundColor?: import("@univerjs/core").Nullable<string>;
|
|
2426
2507
|
titleFontSize?: number | undefined;
|
|
2427
2508
|
fontSize?: number | undefined;
|
|
2428
2509
|
fontColor?: string | undefined;
|
|
2510
|
+
fontFamily?: string | undefined;
|
|
2429
2511
|
borderColor?: import("@univerjs/core").Nullable<string>;
|
|
2512
|
+
borderWidth?: number | undefined;
|
|
2430
2513
|
titles?: {
|
|
2431
2514
|
title?: {
|
|
2432
2515
|
bold?: boolean | undefined;
|
|
@@ -2527,6 +2610,7 @@ export declare class ChartModel extends Disposable {
|
|
|
2527
2610
|
showMinLabel?: boolean | undefined;
|
|
2528
2611
|
} | undefined;
|
|
2529
2612
|
selectMode?: import("..").SelectModeEnum | undefined;
|
|
2613
|
+
wrap?: boolean | undefined;
|
|
2530
2614
|
} | undefined;
|
|
2531
2615
|
xAxis?: {
|
|
2532
2616
|
lineVisible?: boolean | undefined;
|
|
@@ -2607,6 +2691,7 @@ export declare class ChartModel extends Disposable {
|
|
|
2607
2691
|
format?: string | undefined;
|
|
2608
2692
|
} | undefined;
|
|
2609
2693
|
rightYAxis?: {
|
|
2694
|
+
min?: number | null | undefined;
|
|
2610
2695
|
lineVisible?: boolean | undefined;
|
|
2611
2696
|
label?: {
|
|
2612
2697
|
bold?: boolean | undefined;
|
|
@@ -2640,12 +2725,16 @@ export declare class ChartModel extends Disposable {
|
|
|
2640
2725
|
length?: number | undefined;
|
|
2641
2726
|
position?: import("..").PieLabelPosition | undefined;
|
|
2642
2727
|
} | undefined;
|
|
2643
|
-
min?: number | null | undefined;
|
|
2644
2728
|
max?: number | null | undefined;
|
|
2645
2729
|
format?: string | undefined;
|
|
2646
2730
|
} | undefined;
|
|
2647
2731
|
allSeriesStyle?: {
|
|
2648
2732
|
color?: import("@univerjs/core").Nullable<string>;
|
|
2733
|
+
point?: {
|
|
2734
|
+
shape?: import("..").LinePointShape | undefined;
|
|
2735
|
+
size?: number | undefined;
|
|
2736
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
2737
|
+
} | undefined;
|
|
2649
2738
|
label?: {
|
|
2650
2739
|
contentType?: number | undefined;
|
|
2651
2740
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -2672,11 +2761,7 @@ export declare class ChartModel extends Disposable {
|
|
|
2672
2761
|
dashType?: import("..").ChartBorderDashType | undefined;
|
|
2673
2762
|
} | undefined;
|
|
2674
2763
|
rightYAxis?: boolean | undefined;
|
|
2675
|
-
|
|
2676
|
-
shape?: import("..").LinePointShape | undefined;
|
|
2677
|
-
size?: number | undefined;
|
|
2678
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
2679
|
-
} | undefined;
|
|
2764
|
+
fillOpacity?: number | undefined;
|
|
2680
2765
|
waterfall?: {
|
|
2681
2766
|
positive?: {
|
|
2682
2767
|
chartType?: (ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area) | undefined;
|
|
@@ -3004,6 +3089,12 @@ export declare class ChartModel extends Disposable {
|
|
|
3004
3089
|
} | undefined;
|
|
3005
3090
|
} | undefined;
|
|
3006
3091
|
} | undefined;
|
|
3092
|
+
bar?: {
|
|
3093
|
+
is3D?: boolean | undefined;
|
|
3094
|
+
shape?: import("..").BarShape | undefined;
|
|
3095
|
+
rotX?: number | undefined;
|
|
3096
|
+
rotY?: number | undefined;
|
|
3097
|
+
} | undefined;
|
|
3007
3098
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
3008
3099
|
pie?: {
|
|
3009
3100
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
@@ -3027,6 +3118,7 @@ export declare class ChartModel extends Disposable {
|
|
|
3027
3118
|
} | undefined;
|
|
3028
3119
|
borderColor?: string | undefined;
|
|
3029
3120
|
hasPaddingAngle?: boolean | undefined;
|
|
3121
|
+
is3D?: boolean | undefined;
|
|
3030
3122
|
isHalfPie?: boolean | undefined;
|
|
3031
3123
|
rosePie?: boolean | undefined;
|
|
3032
3124
|
showLabelLine?: boolean | undefined;
|
|
@@ -3067,7 +3159,15 @@ export declare class ChartModel extends Disposable {
|
|
|
3067
3159
|
waterfall?: {
|
|
3068
3160
|
stackType?: import("..").WaterfallStackTypeEnum | undefined;
|
|
3069
3161
|
useSubtotal?: boolean | undefined;
|
|
3162
|
+
pointRoles?: import("../types").IWaterfallPointRole[] | undefined;
|
|
3163
|
+
connector?: boolean | {
|
|
3164
|
+
color?: string | undefined;
|
|
3165
|
+
width?: number | undefined;
|
|
3166
|
+
opacity?: number | undefined;
|
|
3167
|
+
dashType?: import("..").ChartBorderDashType | undefined;
|
|
3168
|
+
} | undefined;
|
|
3070
3169
|
} | undefined;
|
|
3170
|
+
markLines?: import("../types").IChartMarkLine[] | undefined;
|
|
3071
3171
|
tooltip?: {
|
|
3072
3172
|
indicatorLabelColor?: string | undefined;
|
|
3073
3173
|
indicatorLineType?: import("..").ChartBorderDashType | undefined;
|
|
@@ -3449,6 +3549,26 @@ export declare class ChartModel extends Disposable {
|
|
|
3449
3549
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
3450
3550
|
max?: number | undefined;
|
|
3451
3551
|
min?: number | undefined;
|
|
3552
|
+
unit?: string | undefined;
|
|
3553
|
+
label?: {
|
|
3554
|
+
contentType?: number | undefined;
|
|
3555
|
+
position?: import("..").SeriesLabelPosition | undefined;
|
|
3556
|
+
visible?: boolean | undefined;
|
|
3557
|
+
content?: string | undefined;
|
|
3558
|
+
fontSize?: number | undefined;
|
|
3559
|
+
color?: string | undefined;
|
|
3560
|
+
align?: import("..").LabelAlignEnum | undefined;
|
|
3561
|
+
bold?: boolean | undefined;
|
|
3562
|
+
family?: string | undefined;
|
|
3563
|
+
strikethrough?: boolean | undefined;
|
|
3564
|
+
italic?: boolean | undefined;
|
|
3565
|
+
underline?: boolean | undefined;
|
|
3566
|
+
padAngle?: boolean | undefined;
|
|
3567
|
+
axisTitleAlign?: import("..").AxisAlignEnum | undefined;
|
|
3568
|
+
showMaxLabel?: boolean | undefined;
|
|
3569
|
+
showMinLabel?: boolean | undefined;
|
|
3570
|
+
rotate?: number | undefined;
|
|
3571
|
+
} | undefined;
|
|
3452
3572
|
} | undefined;
|
|
3453
3573
|
};
|
|
3454
3574
|
get config(): IChartConfig | null;
|
|
@@ -3461,8 +3581,11 @@ export declare class ChartModel extends Disposable {
|
|
|
3461
3581
|
};
|
|
3462
3582
|
getRuntimeContext(direction?: ChartStyle['direction']): IChartRuntimeContext;
|
|
3463
3583
|
applyStyle(newStyle: ChartStyle): void;
|
|
3584
|
+
replaceStyle(style: ChartStyle): void;
|
|
3464
3585
|
assignChartContext(context: Partial<IChartContext>): void;
|
|
3586
|
+
replaceChartContext(context: IChartContext): void;
|
|
3465
3587
|
assignDataAggregation(config: Partial<IChartDataAggregation>): void;
|
|
3588
|
+
replaceDataAggregation(config: IChartDataAggregation): void;
|
|
3466
3589
|
setChartType(type: ChartTypeBits): void;
|
|
3467
3590
|
serialize(): IChartSnapshot;
|
|
3468
3591
|
onDispose(effect: () => void): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartStyle } from '../types';
|
|
2
|
+
interface IChartResourceSnapshot {
|
|
3
|
+
style?: ChartStyle;
|
|
4
|
+
}
|
|
5
|
+
interface IChartResourceEnvelope<TChart extends IChartResourceSnapshot> {
|
|
6
|
+
charts: Record<string, TChart>;
|
|
7
|
+
}
|
|
8
|
+
/** Serializes a host chart resource while omitting non-canonical empty chart palettes. */
|
|
9
|
+
export declare function serializeChartResource<TChart extends IChartResourceSnapshot, TResource extends IChartResourceEnvelope<TChart>>(resource: TResource): string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChartAxisBinding, IRuntimeAxis } from '../types';
|
|
2
|
+
import { ChartSemanticAxis, ChartTypeBits } from '../enum';
|
|
3
|
+
/** Maps the renderer's transient axes to stable semantic roles used by Facade readback. */
|
|
4
|
+
export declare function resolveChartSemanticAxisBindings(type: ChartTypeBits, axes: readonly IRuntimeAxis[]): Partial<Record<ChartSemanticAxis, IChartAxisBinding>> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChartStyle } from '../../types';
|
|
2
|
-
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, ChartTypeBits, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, SelectModeEnum, SeriesLabelPosition, TextAlign, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../../enum';
|
|
2
|
+
import { AreaLineStyle, AxisAlignEnum, BarShape, ChartBorderDashType, ChartTypeBits, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, SelectModeEnum, SeriesLabelPosition, TextAlign, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../../enum';
|
|
3
3
|
export declare const themeColors: string[];
|
|
4
4
|
export declare const RTLChartStyle: ChartStyle;
|
|
5
5
|
export declare const defaultChartConfig: {
|
|
@@ -47,6 +47,12 @@ export declare const defaultChartConfig: {
|
|
|
47
47
|
area: {
|
|
48
48
|
lineStyle: AreaLineStyle;
|
|
49
49
|
};
|
|
50
|
+
bar: {
|
|
51
|
+
is3D: boolean;
|
|
52
|
+
shape: BarShape;
|
|
53
|
+
rotX: number;
|
|
54
|
+
rotY: number;
|
|
55
|
+
};
|
|
50
56
|
labelContentType: LabelContentType;
|
|
51
57
|
pie: {
|
|
52
58
|
labelContentType: number;
|
|
@@ -55,6 +61,7 @@ export declare const defaultChartConfig: {
|
|
|
55
61
|
borderColor: string;
|
|
56
62
|
labelPosition: PieLabelPosition;
|
|
57
63
|
hasPaddingAngle: boolean;
|
|
64
|
+
is3D: boolean;
|
|
58
65
|
};
|
|
59
66
|
combination: {
|
|
60
67
|
firstChartType: ChartTypeBits;
|
|
@@ -76,6 +83,14 @@ export declare const defaultChartConfig: {
|
|
|
76
83
|
waterfall: {
|
|
77
84
|
stackType: WaterfallStackTypeEnum;
|
|
78
85
|
useSubtotal: boolean;
|
|
86
|
+
pointRoles: never[];
|
|
87
|
+
connector: boolean;
|
|
88
|
+
connectorStyle: {
|
|
89
|
+
color: string;
|
|
90
|
+
width: number;
|
|
91
|
+
opacity: number;
|
|
92
|
+
dashType: ChartBorderDashType;
|
|
93
|
+
};
|
|
79
94
|
subtotalColor: string;
|
|
80
95
|
};
|
|
81
96
|
trendline: {
|
|
@@ -88,6 +103,11 @@ export declare const defaultChartConfig: {
|
|
|
88
103
|
showFormula: boolean;
|
|
89
104
|
showR2: boolean;
|
|
90
105
|
};
|
|
106
|
+
semanticLine: {
|
|
107
|
+
width: number;
|
|
108
|
+
opacity: number;
|
|
109
|
+
dashType: ChartBorderDashType;
|
|
110
|
+
};
|
|
91
111
|
relation: {
|
|
92
112
|
force: {
|
|
93
113
|
gravity: number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IChartDataSeries, IWaterfallPointRole } from '../../../types';
|
|
2
|
+
import { ChartWaterfallPointRole } from '../../../enum';
|
|
3
|
+
export declare enum WaterfallPointClassification {
|
|
4
|
+
Increase = "increase",
|
|
5
|
+
Decrease = "decrease",
|
|
6
|
+
Total = "total"
|
|
7
|
+
}
|
|
8
|
+
export interface IResolvedWaterfallPoint {
|
|
9
|
+
seriesIndex: number;
|
|
10
|
+
dataPointIndex: number;
|
|
11
|
+
categoryIndex: number;
|
|
12
|
+
role: ChartWaterfallPointRole;
|
|
13
|
+
classification: WaterfallPointClassification;
|
|
14
|
+
value: number;
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
}
|
|
18
|
+
export interface IResolvedWaterfallConnector {
|
|
19
|
+
from: {
|
|
20
|
+
categoryIndex: number;
|
|
21
|
+
value: number;
|
|
22
|
+
};
|
|
23
|
+
to: {
|
|
24
|
+
categoryIndex: number;
|
|
25
|
+
value: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface IResolvedWaterfallLayout {
|
|
29
|
+
points: IResolvedWaterfallPoint[];
|
|
30
|
+
connectors: IResolvedWaterfallConnector[];
|
|
31
|
+
cumulative: number;
|
|
32
|
+
}
|
|
33
|
+
/** Resolves persisted Waterfall semantics without renderer or theme concerns. */
|
|
34
|
+
export declare function resolveArrangementWaterfallLayout(series: IChartDataSeries[], roles?: readonly IWaterfallPointRole[]): IResolvedWaterfallLayout;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { ChartStyle, EChartSeriesItem, EChartSpec,
|
|
1
|
+
import type { ChartStyle, EChartSeriesItem, EChartSpec, ILabelStyle } from '../../../types';
|
|
2
2
|
import type { ISpecGrid } from './operator-types';
|
|
3
|
-
type PartialLabelStyle = Partial<Pick<ILabelStyle, 'visible' | 'color' | 'fontSize' | 'italic' | 'bold' | 'underline' | 'strikethrough' | 'showMaxLabel' | 'showMinLabel'>>;
|
|
3
|
+
type PartialLabelStyle = Partial<Pick<ILabelStyle, 'visible' | 'color' | 'fontSize' | 'family' | 'italic' | 'bold' | 'underline' | 'strikethrough' | 'showMaxLabel' | 'showMinLabel'>>;
|
|
4
4
|
export declare function applyLabelStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
|
5
5
|
export declare function applyLineStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
|
6
6
|
export declare function toArray<T = unknown>(value: T | T[]): T[];
|
|
7
7
|
export declare function seriesForEach(series: EChartSpec['series'], func: (item: EChartSeriesItem, index: number) => void): void;
|
|
8
8
|
export declare function toPercentage(value: number, fixed?: number): string;
|
|
9
|
-
export declare const getLegendOrSeriesMaxWidth: (gridInfo: ISpecGrid, config: IChartConfig, style: ChartStyle) => number;
|
|
10
9
|
export declare const getCategoryLabelVertical: (gridInfo: ISpecGrid, style: ChartStyle) => number;
|
|
11
10
|
export declare const getCategoryLabelHorizontal: (gridInfo: ISpecGrid, style: ChartStyle, seriesCount: number, axisLabelMaxWidth?: number) => number;
|
|
12
11
|
export declare const getIntegerValue: (value: number, digit?: number) => number;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IDisposable, Nullable } from '@univerjs/core';
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
|
-
import type { AreaLineStyle, AxisAlignEnum, AxisValueType, CategoryType, ChartBorderDashType, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, DataOrientation, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from './enum';
|
|
3
|
+
import type { AreaLineStyle, AxisAlignEnum, AxisValueType, BarShape, CategoryType, ChartAxisDimension, ChartBorderDashType, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, ChartWaterfallPointRole, DataOrientation, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from './enum';
|
|
4
4
|
import type { ICartesianPointData } from './models/chart-data-operators/cartesian-point-data';
|
|
5
5
|
import type { IChartLocaleTexts } from './models/chart-locale-texts';
|
|
6
6
|
import type { IEchartTheme } from './models/constants/build-in-theme';
|
|
@@ -188,6 +188,8 @@ export interface ILegendStyle {
|
|
|
188
188
|
position?: LegendPositionEnum;
|
|
189
189
|
label?: Omit<ILabelStyle, 'visible' | 'align' | 'content'>;
|
|
190
190
|
selectMode?: SelectModeEnum;
|
|
191
|
+
/** Allow a horizontal legend to flow onto multiple rows instead of using pagination. */
|
|
192
|
+
wrap?: boolean;
|
|
191
193
|
}
|
|
192
194
|
export interface IGridLineStyle {
|
|
193
195
|
visible: boolean;
|
|
@@ -259,7 +261,7 @@ export interface ISeriesStyle {
|
|
|
259
261
|
};
|
|
260
262
|
}
|
|
261
263
|
export type RightYAxisOptions = Omit<IAxisOptions, 'reverse'>;
|
|
262
|
-
export interface IAllSeriesStyle extends Pick<ISeriesStyle, 'border' | 'label' | 'rightYAxis' | 'point' | 'color' | 'waterfall'> {
|
|
264
|
+
export interface IAllSeriesStyle extends Pick<ISeriesStyle, 'border' | 'label' | 'rightYAxis' | 'point' | 'color' | 'fillOpacity' | 'waterfall'> {
|
|
263
265
|
}
|
|
264
266
|
export interface ITrendLine {
|
|
265
267
|
seriesIndex: number;
|
|
@@ -276,6 +278,51 @@ export interface ITrendLine {
|
|
|
276
278
|
r2Color?: string;
|
|
277
279
|
formulaColor?: string;
|
|
278
280
|
}
|
|
281
|
+
export interface IWaterfallPointRole {
|
|
282
|
+
seriesIndex: number;
|
|
283
|
+
dataPointIndex: number;
|
|
284
|
+
role: ChartWaterfallPointRole;
|
|
285
|
+
}
|
|
286
|
+
export interface IWaterfallConnectorStyle {
|
|
287
|
+
color?: string;
|
|
288
|
+
width?: number;
|
|
289
|
+
opacity?: number;
|
|
290
|
+
dashType?: ChartBorderDashType;
|
|
291
|
+
}
|
|
292
|
+
export interface IChartAxisBinding {
|
|
293
|
+
dimension: ChartAxisDimension;
|
|
294
|
+
position: IRuntimeAxisPosition;
|
|
295
|
+
}
|
|
296
|
+
export interface IChartMarkLineLabel {
|
|
297
|
+
visible?: boolean;
|
|
298
|
+
text?: string;
|
|
299
|
+
position?: ChartMarkLineLabelPosition;
|
|
300
|
+
color?: string;
|
|
301
|
+
fontSize?: number;
|
|
302
|
+
bold?: boolean;
|
|
303
|
+
}
|
|
304
|
+
export type IChartMarkLine = {
|
|
305
|
+
label?: IChartMarkLineLabel;
|
|
306
|
+
color?: string;
|
|
307
|
+
width?: number;
|
|
308
|
+
opacity?: number;
|
|
309
|
+
dashType?: ChartBorderDashType;
|
|
310
|
+
} & ({
|
|
311
|
+
axis: ChartSemanticAxis.Category | ChartSemanticAxis.SecondaryCategory;
|
|
312
|
+
categoryIndex: number;
|
|
313
|
+
} | {
|
|
314
|
+
axis: ChartSemanticAxis.PrimaryValue | ChartSemanticAxis.SecondaryValue;
|
|
315
|
+
value: number;
|
|
316
|
+
});
|
|
317
|
+
export interface IBarStyle {
|
|
318
|
+
/** Exchange metadata. Renderers without 3D support may ignore these fields. */
|
|
319
|
+
is3D: boolean;
|
|
320
|
+
shape: BarShape;
|
|
321
|
+
/** OOXML view rotation around the horizontal axis, in degrees. */
|
|
322
|
+
rotX: number;
|
|
323
|
+
/** OOXML view rotation around the vertical axis, in degrees. */
|
|
324
|
+
rotY: number;
|
|
325
|
+
}
|
|
279
326
|
export interface IChartStyle {
|
|
280
327
|
runtime: IChartRuntimeContext;
|
|
281
328
|
/** Runtime-only locale direction. It must not be persisted in chart snapshots. */
|
|
@@ -283,13 +330,17 @@ export interface IChartStyle {
|
|
|
283
330
|
width: number;
|
|
284
331
|
height: number;
|
|
285
332
|
theme: string;
|
|
333
|
+
/** Persisted absolute series colors. A non-empty value overrides theme colors. */
|
|
334
|
+
palette?: string[];
|
|
286
335
|
invalidValueType: InvalidValueType;
|
|
287
336
|
gradientFill: boolean;
|
|
288
337
|
backgroundColor: Nullable<string>;
|
|
289
338
|
titleFontSize: number;
|
|
290
339
|
fontSize: number;
|
|
291
340
|
fontColor: string;
|
|
341
|
+
fontFamily: string;
|
|
292
342
|
borderColor: Nullable<string>;
|
|
343
|
+
borderWidth: number;
|
|
293
344
|
titles: {
|
|
294
345
|
title: Omit<ILabelStyle, 'visible'>;
|
|
295
346
|
subtitle: Omit<ILabelStyle, 'visible'>;
|
|
@@ -310,6 +361,7 @@ export interface IChartStyle {
|
|
|
310
361
|
seriesStyleMap: {
|
|
311
362
|
[id: string]: ISeriesStyle;
|
|
312
363
|
};
|
|
364
|
+
bar: IBarStyle;
|
|
313
365
|
trendlines: ITrendLine[];
|
|
314
366
|
pie: {
|
|
315
367
|
doughnutHole: Nullable<number>;
|
|
@@ -318,6 +370,8 @@ export interface IChartStyle {
|
|
|
318
370
|
labelStyle: IPieLabelStyle;
|
|
319
371
|
borderColor: string;
|
|
320
372
|
hasPaddingAngle: boolean;
|
|
373
|
+
/** Exchange metadata. Renderers without 3D support may ignore this field. */
|
|
374
|
+
is3D: boolean;
|
|
321
375
|
isHalfPie: boolean;
|
|
322
376
|
rosePie: boolean;
|
|
323
377
|
showLabelLine: boolean;
|
|
@@ -354,7 +408,10 @@ export interface IChartStyle {
|
|
|
354
408
|
waterfall: {
|
|
355
409
|
stackType: WaterfallStackTypeEnum;
|
|
356
410
|
useSubtotal: boolean;
|
|
411
|
+
pointRoles: IWaterfallPointRole[];
|
|
412
|
+
connector: boolean | IWaterfallConnectorStyle;
|
|
357
413
|
};
|
|
414
|
+
markLines: IChartMarkLine[];
|
|
358
415
|
tooltip: {
|
|
359
416
|
indicatorLabelColor: string;
|
|
360
417
|
indicatorLineType: ChartBorderDashType;
|
|
@@ -370,6 +427,8 @@ export interface IChartStyle {
|
|
|
370
427
|
visualMapType: 'continuous' | 'piecewise';
|
|
371
428
|
max?: number;
|
|
372
429
|
min?: number;
|
|
430
|
+
unit?: string;
|
|
431
|
+
label?: ISeriesLabelStyle;
|
|
373
432
|
};
|
|
374
433
|
}
|
|
375
434
|
export interface IRelationForceOptions {
|
package/lib/types/util.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const chartBitsUtils: {
|
|
|
5
5
|
remove(bit: number, attribute: number): number;
|
|
6
6
|
chartBitToString(bit: ChartTypeBits): "" | "line" | "bar" | "wordCloud" | "scatter" | "pie" | "radar" | "graph" | "funnel" | "sankey" | "boxplot" | "heatmap" | "combination";
|
|
7
7
|
};
|
|
8
|
+
export declare function mergeChartConfig<T extends object>(current: T | undefined, update: Partial<T>): T;
|
|
8
9
|
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
9
10
|
export declare const getProperty: <T = any>(data: Record<string, any> | undefined, propertyPath: string) => T | undefined;
|
|
10
11
|
/**
|
|
@@ -17,15 +18,12 @@ interface ISize {
|
|
|
17
18
|
width: number;
|
|
18
19
|
height: number;
|
|
19
20
|
}
|
|
20
|
-
export declare const ChartTextMeasureCache: Map<string, ISize>;
|
|
21
21
|
export declare const calcPosition: (text: string, font: string) => ISize;
|
|
22
|
-
export declare const clearChartTextMeasureCache: () => void;
|
|
23
22
|
/**
|
|
24
23
|
* We define the chart type can use trend line. In excel it also can use for combined chart ro bar chart.
|
|
25
24
|
* @param {ChartTypeBits} chartType The test chart type.
|
|
26
25
|
* @returns {boolean} If the chart type can use trend line, return true, otherwise return false.
|
|
27
26
|
*/
|
|
28
27
|
export declare const chartTypeCanUseTrendLine: (chartType: ChartTypeBits) => boolean;
|
|
29
|
-
export declare const numfmtRedCache: Map<string, boolean>;
|
|
30
28
|
export declare function isNegativeRedCached(fmt: string): boolean | undefined;
|
|
31
29
|
export {};
|