@univerjs-pro/engine-chart 1.0.0-alpha.7 → 1.0.0-alpha.8
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/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/chart-builder/candlestick-inline-table.d.ts +4 -0
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +3 -3
- package/lib/types/chart-builder/chart-builder.d.ts +3 -3
- package/lib/types/chart-builder/chart-starter-data.d.ts +3 -0
- package/lib/types/chart-builder/chart-types.d.ts +71 -57
- package/lib/types/chart-builder/configuration/assertions.d.ts +1 -0
- package/lib/types/chart-builder/configuration/candlestick.d.ts +9 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +3 -0
- package/lib/types/chart-builder/configuration/histogram.d.ts +11 -0
- package/lib/types/chart-builder/configuration/index.d.ts +4 -0
- package/lib/types/chart-builder/configuration/point-mapping.d.ts +3 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +8 -0
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +7 -3
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +5 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +6 -0
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +3 -3
- package/lib/types/chart-builder/index.d.ts +4 -1
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -2
- package/lib/types/chart-text-measure-canvas.d.ts +6 -0
- package/lib/types/enum.d.ts +34 -1
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +133 -0
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +74 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +34 -0
- package/lib/types/facade/builders/index.d.ts +3 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +4 -1
- package/lib/types/facade/f-chart-base.d.ts +2 -2
- package/lib/types/index.d.ts +9 -8
- package/lib/types/models/chart-data-operators/histogram-data.d.ts +10 -0
- package/lib/types/models/chart-data-operators/index.d.ts +1 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +7 -1
- package/lib/types/models/chart-data-operators/treemap-data.d.ts +3 -0
- package/lib/types/models/chart-locale-texts.d.ts +15 -1
- package/lib/types/models/chart-model.d.ts +215 -29
- package/lib/types/models/constants/default-chart-style.d.ts +43 -0
- package/lib/types/models/constants/histogram-defaults.d.ts +4 -0
- package/lib/types/models/constants/treemap.d.ts +1 -0
- package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +4 -0
- package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +7 -0
- package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +11 -0
- package/lib/types/models/echart-render-model.d.ts +10 -7
- package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +5 -0
- package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/histogram-chart-converter.d.ts +4 -0
- package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +4 -0
- package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/render-spec-operators/tool-tip-operator.d.ts +8 -2
- package/lib/types/models/mode-converter/render-spec-operators/tools.d.ts +3 -2
- package/lib/types/types.d.ts +133 -8
- package/lib/types/util.d.ts +1 -7
- package/lib/types/wordcloud-chart/canvas.d.ts +3 -3
- package/lib/types/wordcloud-chart/core/layout/word-shrink.d.ts +5 -8
- package/lib/types/wordcloud-chart/core/text/formatter.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/text/normalize.d.ts +2 -2
- package/lib/types/wordcloud-chart/defaults.d.ts +2 -2
- package/lib/types/wordcloud-chart/index.d.ts +1 -1
- package/lib/types/wordcloud-chart/types.d.ts +0 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ export interface IChartModelInit {
|
|
|
10
10
|
chartType?: ChartTypeBits;
|
|
11
11
|
dataSource: IChartDataSource;
|
|
12
12
|
dataAggregation?: IChartDataAggregation;
|
|
13
|
-
context?: Pick<IChartContext, 'categoryIndex' | 'seriesIndexes' | 'transform'>;
|
|
13
|
+
context?: Pick<IChartContext, 'categoryIndex' | 'hierarchyIndexes' | 'seriesIndexes' | 'transform' | 'candlestick' | 'histogram'>;
|
|
14
14
|
style?: ChartStyle;
|
|
15
15
|
localeTexts?: IChartLocaleTexts;
|
|
16
16
|
}
|
|
@@ -138,6 +138,18 @@ export declare class ChartModel extends Disposable {
|
|
|
138
138
|
waterfallPositive?: string | undefined;
|
|
139
139
|
waterfallNegative?: string | undefined;
|
|
140
140
|
waterfallSubtotal?: string | undefined;
|
|
141
|
+
candlestickSeries?: string | undefined;
|
|
142
|
+
candlestickCategory?: string | undefined;
|
|
143
|
+
candlestickOpen?: string | undefined;
|
|
144
|
+
candlestickHigh?: string | undefined;
|
|
145
|
+
candlestickLow?: string | undefined;
|
|
146
|
+
candlestickClose?: string | undefined;
|
|
147
|
+
histogramFrequency?: string | undefined;
|
|
148
|
+
treemapEmptyTips?: string | undefined;
|
|
149
|
+
treemapHierarchy?: string | undefined;
|
|
150
|
+
treemapValue?: string | undefined;
|
|
151
|
+
treemapOwnValue?: string | undefined;
|
|
152
|
+
treemapChildren?: string | undefined;
|
|
141
153
|
} | undefined;
|
|
142
154
|
} | undefined;
|
|
143
155
|
direction?: import("..").ChartDirection | undefined;
|
|
@@ -335,8 +347,6 @@ export declare class ChartModel extends Disposable {
|
|
|
335
347
|
format?: string | undefined;
|
|
336
348
|
} | undefined;
|
|
337
349
|
rightYAxis?: {
|
|
338
|
-
min?: number | null | undefined;
|
|
339
|
-
lineVisible?: boolean | undefined;
|
|
340
350
|
label?: {
|
|
341
351
|
bold?: boolean | undefined;
|
|
342
352
|
italic?: boolean | undefined;
|
|
@@ -352,6 +362,8 @@ export declare class ChartModel extends Disposable {
|
|
|
352
362
|
showMaxLabel?: boolean | undefined;
|
|
353
363
|
showMinLabel?: boolean | undefined;
|
|
354
364
|
} | undefined;
|
|
365
|
+
min?: number | null | undefined;
|
|
366
|
+
lineVisible?: boolean | undefined;
|
|
355
367
|
lineStyle?: {
|
|
356
368
|
visible?: boolean | undefined;
|
|
357
369
|
color?: string | undefined;
|
|
@@ -373,12 +385,6 @@ export declare class ChartModel extends Disposable {
|
|
|
373
385
|
format?: string | undefined;
|
|
374
386
|
} | undefined;
|
|
375
387
|
allSeriesStyle?: {
|
|
376
|
-
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
377
|
-
point?: {
|
|
378
|
-
shape?: import("..").LinePointShape | undefined;
|
|
379
|
-
size?: number | undefined;
|
|
380
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
381
|
-
} | undefined;
|
|
382
388
|
label?: {
|
|
383
389
|
contentType?: number | undefined;
|
|
384
390
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -398,6 +404,12 @@ export declare class ChartModel extends Disposable {
|
|
|
398
404
|
showMinLabel?: boolean | undefined;
|
|
399
405
|
rotate?: number | undefined;
|
|
400
406
|
} | undefined;
|
|
407
|
+
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
408
|
+
point?: {
|
|
409
|
+
shape?: import("..").LinePointShape | undefined;
|
|
410
|
+
size?: number | undefined;
|
|
411
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
412
|
+
} | undefined;
|
|
401
413
|
border?: {
|
|
402
414
|
opacity?: number | undefined;
|
|
403
415
|
color?: import("@univerjs/core").Nullable<string>;
|
|
@@ -1220,6 +1232,54 @@ export declare class ChartModel extends Disposable {
|
|
|
1220
1232
|
rotate?: number | undefined;
|
|
1221
1233
|
} | undefined;
|
|
1222
1234
|
} | undefined;
|
|
1235
|
+
candlestick?: {
|
|
1236
|
+
rising?: {
|
|
1237
|
+
color?: string | undefined;
|
|
1238
|
+
fillOpacity?: number | undefined;
|
|
1239
|
+
border?: {
|
|
1240
|
+
color?: string | undefined;
|
|
1241
|
+
width?: number | undefined;
|
|
1242
|
+
opacity?: number | undefined;
|
|
1243
|
+
} | undefined;
|
|
1244
|
+
hollow?: boolean | undefined;
|
|
1245
|
+
} | undefined;
|
|
1246
|
+
falling?: {
|
|
1247
|
+
color?: string | undefined;
|
|
1248
|
+
fillOpacity?: number | undefined;
|
|
1249
|
+
border?: {
|
|
1250
|
+
color?: string | undefined;
|
|
1251
|
+
width?: number | undefined;
|
|
1252
|
+
opacity?: number | undefined;
|
|
1253
|
+
} | undefined;
|
|
1254
|
+
hollow?: boolean | undefined;
|
|
1255
|
+
} | undefined;
|
|
1256
|
+
doji?: {
|
|
1257
|
+
color?: string | undefined;
|
|
1258
|
+
fillOpacity?: number | undefined;
|
|
1259
|
+
border?: {
|
|
1260
|
+
color?: string | undefined;
|
|
1261
|
+
width?: number | undefined;
|
|
1262
|
+
opacity?: number | undefined;
|
|
1263
|
+
} | undefined;
|
|
1264
|
+
hollow?: boolean | undefined;
|
|
1265
|
+
} | undefined;
|
|
1266
|
+
candleWidth?: number | undefined;
|
|
1267
|
+
} | undefined;
|
|
1268
|
+
histogram?: {
|
|
1269
|
+
binGap?: number | undefined;
|
|
1270
|
+
} | undefined;
|
|
1271
|
+
treemap?: {
|
|
1272
|
+
parentLabelLayout?: import("..").TreemapParentLabelLayout | undefined;
|
|
1273
|
+
label?: {
|
|
1274
|
+
visible?: boolean | undefined;
|
|
1275
|
+
contentType?: import("..").LabelContentType | undefined;
|
|
1276
|
+
color?: string | undefined;
|
|
1277
|
+
fontSize?: number | undefined;
|
|
1278
|
+
bold?: boolean | undefined;
|
|
1279
|
+
italic?: boolean | undefined;
|
|
1280
|
+
family?: string | undefined;
|
|
1281
|
+
} | undefined;
|
|
1282
|
+
} | undefined;
|
|
1223
1283
|
}>;
|
|
1224
1284
|
readonly style$: Observable<{
|
|
1225
1285
|
runtime?: {
|
|
@@ -1322,6 +1382,18 @@ export declare class ChartModel extends Disposable {
|
|
|
1322
1382
|
waterfallPositive?: string | undefined;
|
|
1323
1383
|
waterfallNegative?: string | undefined;
|
|
1324
1384
|
waterfallSubtotal?: string | undefined;
|
|
1385
|
+
candlestickSeries?: string | undefined;
|
|
1386
|
+
candlestickCategory?: string | undefined;
|
|
1387
|
+
candlestickOpen?: string | undefined;
|
|
1388
|
+
candlestickHigh?: string | undefined;
|
|
1389
|
+
candlestickLow?: string | undefined;
|
|
1390
|
+
candlestickClose?: string | undefined;
|
|
1391
|
+
histogramFrequency?: string | undefined;
|
|
1392
|
+
treemapEmptyTips?: string | undefined;
|
|
1393
|
+
treemapHierarchy?: string | undefined;
|
|
1394
|
+
treemapValue?: string | undefined;
|
|
1395
|
+
treemapOwnValue?: string | undefined;
|
|
1396
|
+
treemapChildren?: string | undefined;
|
|
1325
1397
|
} | undefined;
|
|
1326
1398
|
} | undefined;
|
|
1327
1399
|
direction?: import("..").ChartDirection | undefined;
|
|
@@ -1519,8 +1591,6 @@ export declare class ChartModel extends Disposable {
|
|
|
1519
1591
|
format?: string | undefined;
|
|
1520
1592
|
} | undefined;
|
|
1521
1593
|
rightYAxis?: {
|
|
1522
|
-
min?: number | null | undefined;
|
|
1523
|
-
lineVisible?: boolean | undefined;
|
|
1524
1594
|
label?: {
|
|
1525
1595
|
bold?: boolean | undefined;
|
|
1526
1596
|
italic?: boolean | undefined;
|
|
@@ -1536,6 +1606,8 @@ export declare class ChartModel extends Disposable {
|
|
|
1536
1606
|
showMaxLabel?: boolean | undefined;
|
|
1537
1607
|
showMinLabel?: boolean | undefined;
|
|
1538
1608
|
} | undefined;
|
|
1609
|
+
min?: number | null | undefined;
|
|
1610
|
+
lineVisible?: boolean | undefined;
|
|
1539
1611
|
lineStyle?: {
|
|
1540
1612
|
visible?: boolean | undefined;
|
|
1541
1613
|
color?: string | undefined;
|
|
@@ -1557,12 +1629,6 @@ export declare class ChartModel extends Disposable {
|
|
|
1557
1629
|
format?: string | undefined;
|
|
1558
1630
|
} | undefined;
|
|
1559
1631
|
allSeriesStyle?: {
|
|
1560
|
-
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
1561
|
-
point?: {
|
|
1562
|
-
shape?: import("..").LinePointShape | undefined;
|
|
1563
|
-
size?: number | undefined;
|
|
1564
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
1565
|
-
} | undefined;
|
|
1566
1632
|
label?: {
|
|
1567
1633
|
contentType?: number | undefined;
|
|
1568
1634
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -1582,6 +1648,12 @@ export declare class ChartModel extends Disposable {
|
|
|
1582
1648
|
showMinLabel?: boolean | undefined;
|
|
1583
1649
|
rotate?: number | undefined;
|
|
1584
1650
|
} | undefined;
|
|
1651
|
+
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
1652
|
+
point?: {
|
|
1653
|
+
shape?: import("..").LinePointShape | undefined;
|
|
1654
|
+
size?: number | undefined;
|
|
1655
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
1656
|
+
} | undefined;
|
|
1585
1657
|
border?: {
|
|
1586
1658
|
opacity?: number | undefined;
|
|
1587
1659
|
color?: import("@univerjs/core").Nullable<string>;
|
|
@@ -2404,6 +2476,54 @@ export declare class ChartModel extends Disposable {
|
|
|
2404
2476
|
rotate?: number | undefined;
|
|
2405
2477
|
} | undefined;
|
|
2406
2478
|
} | undefined;
|
|
2479
|
+
candlestick?: {
|
|
2480
|
+
rising?: {
|
|
2481
|
+
color?: string | undefined;
|
|
2482
|
+
fillOpacity?: number | undefined;
|
|
2483
|
+
border?: {
|
|
2484
|
+
color?: string | undefined;
|
|
2485
|
+
width?: number | undefined;
|
|
2486
|
+
opacity?: number | undefined;
|
|
2487
|
+
} | undefined;
|
|
2488
|
+
hollow?: boolean | undefined;
|
|
2489
|
+
} | undefined;
|
|
2490
|
+
falling?: {
|
|
2491
|
+
color?: string | undefined;
|
|
2492
|
+
fillOpacity?: number | undefined;
|
|
2493
|
+
border?: {
|
|
2494
|
+
color?: string | undefined;
|
|
2495
|
+
width?: number | undefined;
|
|
2496
|
+
opacity?: number | undefined;
|
|
2497
|
+
} | undefined;
|
|
2498
|
+
hollow?: boolean | undefined;
|
|
2499
|
+
} | undefined;
|
|
2500
|
+
doji?: {
|
|
2501
|
+
color?: string | undefined;
|
|
2502
|
+
fillOpacity?: number | undefined;
|
|
2503
|
+
border?: {
|
|
2504
|
+
color?: string | undefined;
|
|
2505
|
+
width?: number | undefined;
|
|
2506
|
+
opacity?: number | undefined;
|
|
2507
|
+
} | undefined;
|
|
2508
|
+
hollow?: boolean | undefined;
|
|
2509
|
+
} | undefined;
|
|
2510
|
+
candleWidth?: number | undefined;
|
|
2511
|
+
} | undefined;
|
|
2512
|
+
histogram?: {
|
|
2513
|
+
binGap?: number | undefined;
|
|
2514
|
+
} | undefined;
|
|
2515
|
+
treemap?: {
|
|
2516
|
+
parentLabelLayout?: import("..").TreemapParentLabelLayout | undefined;
|
|
2517
|
+
label?: {
|
|
2518
|
+
visible?: boolean | undefined;
|
|
2519
|
+
contentType?: import("..").LabelContentType | undefined;
|
|
2520
|
+
color?: string | undefined;
|
|
2521
|
+
fontSize?: number | undefined;
|
|
2522
|
+
bold?: boolean | undefined;
|
|
2523
|
+
italic?: boolean | undefined;
|
|
2524
|
+
family?: string | undefined;
|
|
2525
|
+
} | undefined;
|
|
2526
|
+
} | undefined;
|
|
2407
2527
|
}>;
|
|
2408
2528
|
get style(): {
|
|
2409
2529
|
runtime?: {
|
|
@@ -2506,6 +2626,18 @@ export declare class ChartModel extends Disposable {
|
|
|
2506
2626
|
waterfallPositive?: string | undefined;
|
|
2507
2627
|
waterfallNegative?: string | undefined;
|
|
2508
2628
|
waterfallSubtotal?: string | undefined;
|
|
2629
|
+
candlestickSeries?: string | undefined;
|
|
2630
|
+
candlestickCategory?: string | undefined;
|
|
2631
|
+
candlestickOpen?: string | undefined;
|
|
2632
|
+
candlestickHigh?: string | undefined;
|
|
2633
|
+
candlestickLow?: string | undefined;
|
|
2634
|
+
candlestickClose?: string | undefined;
|
|
2635
|
+
histogramFrequency?: string | undefined;
|
|
2636
|
+
treemapEmptyTips?: string | undefined;
|
|
2637
|
+
treemapHierarchy?: string | undefined;
|
|
2638
|
+
treemapValue?: string | undefined;
|
|
2639
|
+
treemapOwnValue?: string | undefined;
|
|
2640
|
+
treemapChildren?: string | undefined;
|
|
2509
2641
|
} | undefined;
|
|
2510
2642
|
} | undefined;
|
|
2511
2643
|
direction?: import("..").ChartDirection | undefined;
|
|
@@ -2703,8 +2835,6 @@ export declare class ChartModel extends Disposable {
|
|
|
2703
2835
|
format?: string | undefined;
|
|
2704
2836
|
} | undefined;
|
|
2705
2837
|
rightYAxis?: {
|
|
2706
|
-
min?: number | null | undefined;
|
|
2707
|
-
lineVisible?: boolean | undefined;
|
|
2708
2838
|
label?: {
|
|
2709
2839
|
bold?: boolean | undefined;
|
|
2710
2840
|
italic?: boolean | undefined;
|
|
@@ -2720,6 +2850,8 @@ export declare class ChartModel extends Disposable {
|
|
|
2720
2850
|
showMaxLabel?: boolean | undefined;
|
|
2721
2851
|
showMinLabel?: boolean | undefined;
|
|
2722
2852
|
} | undefined;
|
|
2853
|
+
min?: number | null | undefined;
|
|
2854
|
+
lineVisible?: boolean | undefined;
|
|
2723
2855
|
lineStyle?: {
|
|
2724
2856
|
visible?: boolean | undefined;
|
|
2725
2857
|
color?: string | undefined;
|
|
@@ -2741,12 +2873,6 @@ export declare class ChartModel extends Disposable {
|
|
|
2741
2873
|
format?: string | undefined;
|
|
2742
2874
|
} | undefined;
|
|
2743
2875
|
allSeriesStyle?: {
|
|
2744
|
-
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
2745
|
-
point?: {
|
|
2746
|
-
shape?: import("..").LinePointShape | undefined;
|
|
2747
|
-
size?: number | undefined;
|
|
2748
|
-
color?: import("@univerjs/core").Nullable<string>;
|
|
2749
|
-
} | undefined;
|
|
2750
2876
|
label?: {
|
|
2751
2877
|
contentType?: number | undefined;
|
|
2752
2878
|
position?: import("..").SeriesLabelPosition | undefined;
|
|
@@ -2766,6 +2892,12 @@ export declare class ChartModel extends Disposable {
|
|
|
2766
2892
|
showMinLabel?: boolean | undefined;
|
|
2767
2893
|
rotate?: number | undefined;
|
|
2768
2894
|
} | undefined;
|
|
2895
|
+
color?: import("@univerjs/core").Nullable<import("..").ChartColor>;
|
|
2896
|
+
point?: {
|
|
2897
|
+
shape?: import("..").LinePointShape | undefined;
|
|
2898
|
+
size?: number | undefined;
|
|
2899
|
+
color?: import("@univerjs/core").Nullable<string>;
|
|
2900
|
+
} | undefined;
|
|
2769
2901
|
border?: {
|
|
2770
2902
|
opacity?: number | undefined;
|
|
2771
2903
|
color?: import("@univerjs/core").Nullable<string>;
|
|
@@ -3588,6 +3720,54 @@ export declare class ChartModel extends Disposable {
|
|
|
3588
3720
|
rotate?: number | undefined;
|
|
3589
3721
|
} | undefined;
|
|
3590
3722
|
} | undefined;
|
|
3723
|
+
candlestick?: {
|
|
3724
|
+
rising?: {
|
|
3725
|
+
color?: string | undefined;
|
|
3726
|
+
fillOpacity?: number | undefined;
|
|
3727
|
+
border?: {
|
|
3728
|
+
color?: string | undefined;
|
|
3729
|
+
width?: number | undefined;
|
|
3730
|
+
opacity?: number | undefined;
|
|
3731
|
+
} | undefined;
|
|
3732
|
+
hollow?: boolean | undefined;
|
|
3733
|
+
} | undefined;
|
|
3734
|
+
falling?: {
|
|
3735
|
+
color?: string | undefined;
|
|
3736
|
+
fillOpacity?: number | undefined;
|
|
3737
|
+
border?: {
|
|
3738
|
+
color?: string | undefined;
|
|
3739
|
+
width?: number | undefined;
|
|
3740
|
+
opacity?: number | undefined;
|
|
3741
|
+
} | undefined;
|
|
3742
|
+
hollow?: boolean | undefined;
|
|
3743
|
+
} | undefined;
|
|
3744
|
+
doji?: {
|
|
3745
|
+
color?: string | undefined;
|
|
3746
|
+
fillOpacity?: number | undefined;
|
|
3747
|
+
border?: {
|
|
3748
|
+
color?: string | undefined;
|
|
3749
|
+
width?: number | undefined;
|
|
3750
|
+
opacity?: number | undefined;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
hollow?: boolean | undefined;
|
|
3753
|
+
} | undefined;
|
|
3754
|
+
candleWidth?: number | undefined;
|
|
3755
|
+
} | undefined;
|
|
3756
|
+
histogram?: {
|
|
3757
|
+
binGap?: number | undefined;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
treemap?: {
|
|
3760
|
+
parentLabelLayout?: import("..").TreemapParentLabelLayout | undefined;
|
|
3761
|
+
label?: {
|
|
3762
|
+
visible?: boolean | undefined;
|
|
3763
|
+
contentType?: import("..").LabelContentType | undefined;
|
|
3764
|
+
color?: string | undefined;
|
|
3765
|
+
fontSize?: number | undefined;
|
|
3766
|
+
bold?: boolean | undefined;
|
|
3767
|
+
italic?: boolean | undefined;
|
|
3768
|
+
family?: string | undefined;
|
|
3769
|
+
} | undefined;
|
|
3770
|
+
} | undefined;
|
|
3591
3771
|
};
|
|
3592
3772
|
get config(): IChartConfig | null;
|
|
3593
3773
|
protected _configSubscription: Subscription;
|
|
@@ -3598,12 +3778,18 @@ export declare class ChartModel extends Disposable {
|
|
|
3598
3778
|
chartThemeService: ChartThemeService;
|
|
3599
3779
|
};
|
|
3600
3780
|
getRuntimeContext(direction?: ChartStyle['direction']): IChartRuntimeContext;
|
|
3601
|
-
|
|
3602
|
-
|
|
3781
|
+
/** Deep-merges the supplied style patch into the current style. Unspecified fields are preserved. */
|
|
3782
|
+
assignStyle(newStyle: ChartStyle): void;
|
|
3783
|
+
/** Replaces the complete style group with a cloned value. */
|
|
3784
|
+
setStyle(style: ChartStyle): void;
|
|
3785
|
+
/** Deep-merges the supplied context patch into the current context. Unspecified fields are preserved. */
|
|
3603
3786
|
assignChartContext(context: Partial<IChartContext>): void;
|
|
3604
|
-
|
|
3787
|
+
/** Replaces the complete chart context with a cloned value. */
|
|
3788
|
+
setChartContext(context: IChartContext): void;
|
|
3789
|
+
/** Deep-merges the supplied aggregation patch into the current aggregation config. */
|
|
3605
3790
|
assignDataAggregation(config: Partial<IChartDataAggregation>): void;
|
|
3606
|
-
|
|
3791
|
+
/** Replaces the complete aggregation config with a cloned value. */
|
|
3792
|
+
setDataAggregation(config: IChartDataAggregation): void;
|
|
3607
3793
|
setChartType(type: ChartTypeBits): void;
|
|
3608
3794
|
serialize(): IChartSnapshot;
|
|
3609
3795
|
onDispose(effect: () => void): void;
|
|
@@ -135,4 +135,47 @@ export declare const defaultChartConfig: {
|
|
|
135
135
|
heatmap: {
|
|
136
136
|
visualMapType: string;
|
|
137
137
|
};
|
|
138
|
+
candlestick: {
|
|
139
|
+
rising: {
|
|
140
|
+
color: string;
|
|
141
|
+
fillOpacity: number;
|
|
142
|
+
border: {
|
|
143
|
+
color: string;
|
|
144
|
+
width: number;
|
|
145
|
+
opacity: number;
|
|
146
|
+
};
|
|
147
|
+
hollow: boolean;
|
|
148
|
+
};
|
|
149
|
+
falling: {
|
|
150
|
+
color: string;
|
|
151
|
+
fillOpacity: number;
|
|
152
|
+
border: {
|
|
153
|
+
color: string;
|
|
154
|
+
width: number;
|
|
155
|
+
opacity: number;
|
|
156
|
+
};
|
|
157
|
+
hollow: boolean;
|
|
158
|
+
};
|
|
159
|
+
doji: {
|
|
160
|
+
color: string;
|
|
161
|
+
fillOpacity: number;
|
|
162
|
+
border: {
|
|
163
|
+
color: string;
|
|
164
|
+
width: number;
|
|
165
|
+
opacity: number;
|
|
166
|
+
};
|
|
167
|
+
hollow: boolean;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
histogram: {
|
|
171
|
+
binGap: number;
|
|
172
|
+
legendVisible: boolean;
|
|
173
|
+
};
|
|
174
|
+
treemap: {
|
|
175
|
+
parentLabelLayout: "banner";
|
|
176
|
+
label: {
|
|
177
|
+
visible: boolean;
|
|
178
|
+
contentType: LabelContentType;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
138
181
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Ratio of each category band reserved as the default separator between Histogram bins. */
|
|
2
|
+
export declare const DEFAULT_HISTOGRAM_BIN_GAP = 0.007;
|
|
3
|
+
/** Largest supported ratio of a category band reserved between Histogram bins. */
|
|
4
|
+
export declare const MAX_HISTOGRAM_BIN_GAP = 0.9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TREEMAP_MAPPING_DIAGNOSTIC = "Treemap requires at least one hierarchy field and one numeric value field.";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChartModel } from '../chart-model';
|
|
2
|
+
import { ChartTypeBits } from '../../enum';
|
|
3
|
+
/** Transforms canonical context when entering or leaving the Candlestick type. */
|
|
4
|
+
export declare function candlestickDataContextTransformer(fromType: ChartTypeBits, toType: ChartTypeBits, model: ChartModel): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IChartContext, IChartDataSource } from '../../types';
|
|
2
|
+
import type { ChartModel } from '../chart-model';
|
|
3
|
+
import { ChartTypeBits } from '../../enum';
|
|
4
|
+
/** Selects the first finite-numeric source field without using header text. */
|
|
5
|
+
export declare function resolveHistogramField(dataSource: IChartDataSource, context: IChartContext): number | undefined;
|
|
6
|
+
/** Stashes normal mappings while Histogram owns exactly one active value field. */
|
|
7
|
+
export declare function histogramDataContextTransformer(fromType: ChartTypeBits, toType: ChartTypeBits, model: ChartModel): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IChartDataSource } from '../../types';
|
|
2
|
+
import type { ChartModel } from '../chart-model';
|
|
3
|
+
import { ChartTypeBits } from '../../enum';
|
|
4
|
+
export interface IResolvedTreemapMapping {
|
|
5
|
+
hierarchyIndexes: number[];
|
|
6
|
+
seriesIndexes: [number];
|
|
7
|
+
}
|
|
8
|
+
/** Infers the last field containing finite numeric data as value and all preceding fields as hierarchy. */
|
|
9
|
+
export declare function resolveTreemapMapping(dataSource: IChartDataSource): IResolvedTreemapMapping | undefined;
|
|
10
|
+
/** Stashes ordinary category/series mapping while Treemap owns hierarchy plus one value. */
|
|
11
|
+
export declare function treemapDataContextTransformer(fromType: ChartTypeBits, toType: ChartTypeBits, model: ChartModel): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChartElementEventHandler, ChartElementEventType, ChartImageSource, ChartStyle, EChartInstance,
|
|
1
|
+
import type { ChartElementEventHandler, ChartElementEventType, ChartImageSource, ChartStyle, EChartInstance, IChartConfig, IChartElementHit, IChartHostRect, IChartInstance, IChartRenderAsImageOptions, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderModelStylizeInit, IChartRenderRuntimeOptions } from '../types';
|
|
2
|
+
import type { EChartsOption } from '../utils/echarts';
|
|
2
3
|
import type { IWordCloudRenderConfig } from '../wordcloud-chart/word-cloud-render-config';
|
|
3
4
|
import { Disposable } from '@univerjs/core';
|
|
4
5
|
import { ChartHostRenderMode } from '../types';
|
|
@@ -14,17 +15,19 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
14
15
|
updateWatermark(addWatermark: boolean): void;
|
|
15
16
|
private _addSpecConverters;
|
|
16
17
|
private _addSpecOperators;
|
|
17
|
-
createChartInstance(): IChartInstance<
|
|
18
|
-
createChartInstance(mode: ChartHostRenderMode, context?: IChartRenderInstanceCreateContext<
|
|
18
|
+
createChartInstance(): IChartInstance<EChartsOption>;
|
|
19
|
+
createChartInstance(mode: ChartHostRenderMode, context?: IChartRenderInstanceCreateContext<EChartsOption>): IChartRenderInstance;
|
|
19
20
|
clearRuntimeCache(chartId: string): void;
|
|
20
21
|
clearAllRuntimeCache(): void;
|
|
21
22
|
dispose(): void;
|
|
22
|
-
toSpec(config: IChartConfig, style: ChartStyle):
|
|
23
|
-
stylizeSpec(spec:
|
|
23
|
+
toSpec(config: IChartConfig, style: ChartStyle): EChartsOption;
|
|
24
|
+
stylizeSpec(spec: EChartsOption, stylizeInit: IChartRenderModelStylizeInit<EChartsOption>, rect: IChartHostRect): EChartsOption | {
|
|
24
25
|
backgroundColor: string;
|
|
25
26
|
};
|
|
26
27
|
exportImage(input: IChartRenderModelImageExportInput, options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult>;
|
|
27
28
|
}
|
|
29
|
+
/** Normalizes renderer-private marks, including Treemap residual leaves, to their semantic identity. */
|
|
30
|
+
export declare function resolveEChartSeriesIdentity(spec: EChartsOption | null, seriesIndex: number | undefined, params?: any): Pick<IChartElementHit, 'seriesId' | 'seriesName' | 'baseSeriesIndex' | 'waterfallSeriesType'>;
|
|
28
31
|
export declare class EChartRenderEngine extends Disposable implements EChartInstance {
|
|
29
32
|
static engineName: string;
|
|
30
33
|
private _instance;
|
|
@@ -47,8 +50,8 @@ export declare class EChartRenderEngine extends Disposable implements EChartInst
|
|
|
47
50
|
resize(echartsProviderOrOptions?: any | IChartRenderRuntimeOptions): void;
|
|
48
51
|
private _ensureChartInstance;
|
|
49
52
|
get containerElement(): HTMLElement | null;
|
|
50
|
-
render(spec:
|
|
51
|
-
renderAsImage(spec:
|
|
53
|
+
render(spec: EChartsOption, echartsProviderOrOptions?: any | IChartRenderRuntimeOptions): void;
|
|
54
|
+
renderAsImage(spec: EChartsOption, options: IChartRenderAsImageOptions): Promise<ChartImageSource>;
|
|
52
55
|
on(type: ChartElementEventType, handler: ChartElementEventHandler): {
|
|
53
56
|
dispose: () => void;
|
|
54
57
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const boxplotChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const bubbleChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IChartCandlestickPoint, IChartRenderSpecConverter } from '../../../types';
|
|
2
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
3
|
+
import { ChartCandlestickState } from '../../../enum';
|
|
4
|
+
export declare function classifyCandlestickPoint(point: Pick<IChartCandlestickPoint, 'open' | 'close'>): ChartCandlestickState;
|
|
5
|
+
export declare const candlestickChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const combinationChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const funnelChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const heatmapChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartHistogramBin, IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare function createHistogramIntervalFormatter(bins: readonly IChartHistogramBin[], pattern?: string): (bin: IChartHistogramBin, index: number) => string;
|
|
4
|
+
export declare const histogramChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const paretoChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const pieChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const radarChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const relationChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const sankeyChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const scatterChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const TREEMAP_RESIDUAL_ID_PREFIX = "__univer_treemap_residual__:";
|
|
4
|
+
export declare const treemapChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
2
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
3
|
+
export declare const waterfallChartConverter: IChartRenderSpecConverter<EChartsOption>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EChartsOption } from '../../../utils/echarts';
|
|
2
|
+
import type { IChartRenderSpecConverter } from '../../../types';
|
|
3
|
+
export declare const wordCloudChartConverter: IChartRenderSpecConverter<EChartsOption>;
|