@univerjs-pro/sheets-chart-ui 0.5.2 → 0.5.3-experimental.20250106-e3b7a39
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/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/index.css +1 -1
- package/lib/types/facade/chart-builder/chart-builder-base.d.ts +88 -41
- package/lib/types/facade/chart-builder/line-chart-builder.d.ts +4 -4
- package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +6 -6
- package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +24 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +16 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreaLineStyle, ChartBorderDashType, ChartTypeBits, IAllSeriesStyle, IAxisOptions, InvalidValueType, ISeriesStyle, LegendPositionEnum, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/sheets-chart';
|
|
1
|
+
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, ChartTypeBits, IAllSeriesStyle, IAxisOptions, InvalidValueType, ISeriesStyle, LabelAlignEnum, LegendPositionEnum, RadarShape, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/sheets-chart';
|
|
2
2
|
import { Injector, IRange, Workbook, FBase } from '@univerjs/core';
|
|
3
3
|
export interface IChartBuilderInfo {
|
|
4
4
|
unitId: string;
|
|
@@ -35,13 +35,13 @@ export interface IChartTextStyle {
|
|
|
35
35
|
*/
|
|
36
36
|
fontStyle?: string;
|
|
37
37
|
/**
|
|
38
|
-
* @property {
|
|
38
|
+
* @property {boolean} [bold] The font is bold.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
bold?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* @property {
|
|
42
|
+
* @property {AxisAlignEnum} [axisAlignment] The alignment of the chart axis.The possible values are 'start', 'center' & 'end'.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
axisAlignment?: AxisAlignEnum;
|
|
45
45
|
}
|
|
46
46
|
export interface IChartBuildOptions {
|
|
47
47
|
/**
|
|
@@ -52,6 +52,10 @@ export interface IChartBuildOptions {
|
|
|
52
52
|
* @property {string} [titlePosition] The position of the chart title.
|
|
53
53
|
*/
|
|
54
54
|
position?: TitlePositionEnum;
|
|
55
|
+
/**
|
|
56
|
+
* @property {string} [titleAlignment] The alignment of the chart title.The possible values are 'left', 'center' & 'right'.
|
|
57
|
+
*/
|
|
58
|
+
titleAlignment: LabelAlignEnum;
|
|
55
59
|
} & IChartTextStyle;
|
|
56
60
|
/**
|
|
57
61
|
* @property {string} [legend] The legend of the chart.
|
|
@@ -123,7 +127,7 @@ export interface IChartBuildOptions {
|
|
|
123
127
|
*/
|
|
124
128
|
indicatorLabelTextColor?: string;
|
|
125
129
|
};
|
|
126
|
-
allSeriesStyle?: IAllSeriesStyle
|
|
130
|
+
allSeriesStyle?: Partial<IAllSeriesStyle>;
|
|
127
131
|
seriesStyleMap?: {
|
|
128
132
|
[id: string]: ISeriesStyle;
|
|
129
133
|
};
|
|
@@ -138,6 +142,10 @@ export interface IChartBuildOptions {
|
|
|
138
142
|
gradientFill?: boolean;
|
|
139
143
|
theme?: string;
|
|
140
144
|
invalidValueType?: InvalidValueType;
|
|
145
|
+
radar?: {
|
|
146
|
+
shape?: RadarShape;
|
|
147
|
+
fill?: boolean;
|
|
148
|
+
};
|
|
141
149
|
}
|
|
142
150
|
export declare class FChartBuilderBase extends FBase {
|
|
143
151
|
protected readonly _workbook: Workbook;
|
|
@@ -160,19 +168,43 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
160
168
|
* @description The chart type of the chart this builder modifies. The chart type (ChartTypeBits) can be found from package @univerjs-pro/sheets-chart.
|
|
161
169
|
* Please pay attention to the type of the chart you are creating, a Pie chart have a property of Doughnut is donut chart, and a Pie chart have a property of Rose is rose pie chart.But the chart builder will not change the chart type to the corresponding chart type.
|
|
162
170
|
* @returns {ChartTypeBits} ChartType - The chart type of the chart this builder modifies.
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
174
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
175
|
+
* const charts = fSheet.getCharts();
|
|
176
|
+
* if(charts.length > 0) {
|
|
177
|
+
* const chart = charts[0];
|
|
178
|
+
* const chartBuilder = chart.getChartBuilder();
|
|
179
|
+
* const chartType = chartBuilder.getChartType();
|
|
180
|
+
* console.log(chartType); // The chart type of first chart.
|
|
181
|
+
* }
|
|
163
182
|
*/
|
|
164
183
|
getChartType(): ChartTypeBits;
|
|
165
184
|
/**
|
|
166
185
|
* Adds a range to the chart this builder modifies
|
|
167
|
-
* @param {IRange | string} range The range string or object to add for chart source data.
|
|
186
|
+
* @param {IRange | string} range The range string or object to add for chart source data.The should be not a single cell.
|
|
168
187
|
* @returns {FChartBuilderBase} -this builder, for chaining
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
191
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
192
|
+
* const chartBuilder = fSheet.newChart();
|
|
193
|
+
* const chartInfo = chartBuilder
|
|
194
|
+
* // set the source data range of the chart
|
|
195
|
+
* .addRange('A1:D6')
|
|
196
|
+
* .setChartType(ChartTypeBits.Column)
|
|
197
|
+
* .setPosition(1, 1, 0, 0)
|
|
198
|
+
* .build();
|
|
199
|
+
* fSheet.insertChart(chartInfo);
|
|
200
|
+
* ```
|
|
169
201
|
*/
|
|
170
|
-
addRange(range: IRange | string):
|
|
202
|
+
addRange(range: IRange | string): this;
|
|
171
203
|
/**
|
|
172
204
|
* Clears the range from the chart this builder modifies
|
|
173
205
|
* @returns {FChartBuilderBase} -this builder, for chaining
|
|
174
206
|
*/
|
|
175
|
-
clearRange():
|
|
207
|
+
clearRange(): this;
|
|
176
208
|
/**
|
|
177
209
|
* Sets the position, changing where the chart appears on the sheet. anchorRowPos and anchorColPos are 0-indexed.This api can only work in the active sheet.
|
|
178
210
|
* @description The chart's start anchor position is the top left-hand corner of the chart. The rowOffset and columnOffset are the pixel offsets from the anchor position.
|
|
@@ -194,7 +226,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
194
226
|
* fSheet.insertChart(chartInfo);
|
|
195
227
|
* ```
|
|
196
228
|
*/
|
|
197
|
-
setPosition(anchorRowPos: number, anchorColPos: number, rowOffset: number, columnOffset: number):
|
|
229
|
+
setPosition(anchorRowPos: number, anchorColPos: number, rowOffset: number, columnOffset: number): this;
|
|
198
230
|
/**
|
|
199
231
|
* Sets the position, changing where the chart appears on the sheet by pixel.
|
|
200
232
|
* @description The chart's start anchor position is the top left-hand corner of the chart. This api is opposite to setPosition.
|
|
@@ -214,7 +246,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
214
246
|
* fSheet.insertChart(chartInfo);
|
|
215
247
|
* ```
|
|
216
248
|
*/
|
|
217
|
-
setAbsolutePosition(x: number, y: number):
|
|
249
|
+
setAbsolutePosition(x: number, y: number): this;
|
|
218
250
|
/**
|
|
219
251
|
* The type of chart to create.
|
|
220
252
|
* @param {ChartTypeBits} chartType The type of chart to create.Which can be found from package @univerjs-pro/sheets-chart.
|
|
@@ -236,23 +268,23 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
236
268
|
* fSheet.updateChart(updateChartInfo);
|
|
237
269
|
* ```
|
|
238
270
|
*/
|
|
239
|
-
setChartType(chartType: ChartTypeBits):
|
|
271
|
+
setChartType(chartType: ChartTypeBits): this;
|
|
240
272
|
/**
|
|
241
273
|
* Sets the width of the chart in pixels.
|
|
242
274
|
* @param {number} width The width of the chart in pixels.
|
|
243
275
|
* @returns -this builder, for chaining.
|
|
244
276
|
*/
|
|
245
|
-
setWidth(width: number):
|
|
277
|
+
setWidth(width: number): this;
|
|
246
278
|
/**
|
|
247
279
|
* Sets the height of the chart in pixels.
|
|
248
280
|
* @param {number} height The height of the chart in pixels.
|
|
249
281
|
* @returns -this builder, for chaining.
|
|
250
282
|
*/
|
|
251
|
-
setHeight(height: number):
|
|
283
|
+
setHeight(height: number): this;
|
|
252
284
|
/**
|
|
253
285
|
* The options for the chart. This function will overwrite existing options and merge new options property.
|
|
254
286
|
* @param {string} optionPath The path of the option to set. A '' path means the root of the options object.
|
|
255
|
-
* @param
|
|
287
|
+
* @param optionVal The value to set. Undefined value will be ignore , and null means delete the property.If a path is '', the value must be the whole options object.
|
|
256
288
|
* @returns The builder, for chaining.
|
|
257
289
|
* @example
|
|
258
290
|
* ```ts
|
|
@@ -262,7 +294,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
262
294
|
*
|
|
263
295
|
* const chartBuilderInfo1 = chartBuilder
|
|
264
296
|
* .addRange('A1:D6')
|
|
265
|
-
* .setOptions('title.content', '
|
|
297
|
+
* .setOptions('title.content', 'Chart Title')
|
|
266
298
|
* .setOptions('legend.position', 'right')
|
|
267
299
|
* .setDoughnutHole(0.5)
|
|
268
300
|
* .setHasPaddingAngle(true)
|
|
@@ -274,7 +306,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
274
306
|
* .addRange('A1:D6')
|
|
275
307
|
* .setOptions('', {
|
|
276
308
|
* "title": {
|
|
277
|
-
* "content": "
|
|
309
|
+
* "content": "Chart Title"
|
|
278
310
|
* },
|
|
279
311
|
* "legend": {
|
|
280
312
|
* "position": "right"
|
|
@@ -289,14 +321,28 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
289
321
|
* fWorkSheet.insertChart(chartBuilderInfo1);
|
|
290
322
|
* // or they are same effect
|
|
291
323
|
* // fWorkSheet.insertChart(chartBuilderInfo2);
|
|
324
|
+
* ```
|
|
292
325
|
*/
|
|
293
|
-
setOptions
|
|
326
|
+
setOptions(optionPath: string, optionVal: unknown): this;
|
|
294
327
|
/**
|
|
295
328
|
* Sets whether to transpose the rows and columns of the chart.
|
|
296
329
|
* @param {boolean} transposeRowsAndColumns Whether to transpose the rows and columns of the chart.The default value is false.
|
|
297
330
|
* @returns -this builder, for chaining.
|
|
331
|
+
* @example
|
|
332
|
+
* ```ts
|
|
333
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
334
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
335
|
+
* const chartBuilder = fSheet.newChart();
|
|
336
|
+
* const chartInfo = chartBuilder.addRange('A1:D6')
|
|
337
|
+
* .setChartType(ChartTypeBits.Column)
|
|
338
|
+
* .setPosition(1, 1, 0, 0)
|
|
339
|
+
* // the chart will transpose the rows and columns
|
|
340
|
+
* .setTransposeRowsAndColumns(true)
|
|
341
|
+
* .build();
|
|
342
|
+
* fSheet.insertChart(chartInfo);
|
|
343
|
+
* ```
|
|
298
344
|
*/
|
|
299
|
-
setTransposeRowsAndColumns(transposeRowsAndColumns: boolean):
|
|
345
|
+
setTransposeRowsAndColumns(transposeRowsAndColumns: boolean): this;
|
|
300
346
|
/**
|
|
301
347
|
* Sets the theme of the chart. If the theme name not registered, a default theme will be used.
|
|
302
348
|
* @param {string} theme The theme name of the chart.
|
|
@@ -314,7 +360,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
314
360
|
* fSheet.insertChart(chartInfo);
|
|
315
361
|
* ```
|
|
316
362
|
*/
|
|
317
|
-
setTheme(theme: string):
|
|
363
|
+
setTheme(theme: string): this;
|
|
318
364
|
/**
|
|
319
365
|
* Sets the title of the chart x-axis.
|
|
320
366
|
* @param {string} title The title of the chart x-axis.
|
|
@@ -332,7 +378,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
332
378
|
* fSheet.insertChart(chartInfo);
|
|
333
379
|
* ```
|
|
334
380
|
*/
|
|
335
|
-
setXAxisTitle(title: string):
|
|
381
|
+
setXAxisTitle(title: string): this;
|
|
336
382
|
/**
|
|
337
383
|
* Sets the title of the chart y-axis.
|
|
338
384
|
* @param {string} title The title of the chart y-axis.
|
|
@@ -350,7 +396,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
350
396
|
* fSheet.insertChart(chartInfo);
|
|
351
397
|
* ```
|
|
352
398
|
*/
|
|
353
|
-
setYAxisTitle(title: string):
|
|
399
|
+
setYAxisTitle(title: string): this;
|
|
354
400
|
/**
|
|
355
401
|
* Sets the title of the chart right y-axis.
|
|
356
402
|
* @param {string} title The title of the chart right y-axis.
|
|
@@ -368,7 +414,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
368
414
|
* fSheet.insertChart(chartInfo);
|
|
369
415
|
* ```
|
|
370
416
|
*/
|
|
371
|
-
setRightYAxisTitle(title: string):
|
|
417
|
+
setRightYAxisTitle(title: string): this;
|
|
372
418
|
/**
|
|
373
419
|
* Sets the text style for the chart x-axis.
|
|
374
420
|
* @param {IChartTextStyle} textStyle The text style for the chart x-axis.
|
|
@@ -386,7 +432,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
386
432
|
* fSheet.insertChart(chartInfo);
|
|
387
433
|
* ```
|
|
388
434
|
*/
|
|
389
|
-
setXAxisTextStyle(textStyle: IChartTextStyle):
|
|
435
|
+
setXAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
390
436
|
/**
|
|
391
437
|
* Sets the text style for the chart y-axis.
|
|
392
438
|
* @param {IChartTextStyle} textStyle The text style for the chart y-axis.
|
|
@@ -404,7 +450,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
404
450
|
* fSheet.insertChart(chartInfo);
|
|
405
451
|
* ```
|
|
406
452
|
*/
|
|
407
|
-
setYAxisTextStyle(textStyle: IChartTextStyle):
|
|
453
|
+
setYAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
408
454
|
/**
|
|
409
455
|
* Sets the text style for the chart right y-axis. Only works in charts have right y-axis.
|
|
410
456
|
* @param {IChartTextStyle} textStyle The text style for the chart right y-axis.
|
|
@@ -422,7 +468,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
422
468
|
* fSheet.insertChart(chartInfo);
|
|
423
469
|
* ```
|
|
424
470
|
*/
|
|
425
|
-
setRightYAxisTextStyle(textStyle: IChartTextStyle):
|
|
471
|
+
setRightYAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
426
472
|
/**
|
|
427
473
|
* Sets how to handle invalid data in the chart.The possible values are 'zero', 'break' & 'link'.
|
|
428
474
|
* @description The default value is 'zero'. It means that invalid data will be treated as zero. 'break' means that the chart will have a gap where the invalid data is. 'link' means that the chart will connect the data points on either side of the invalid data.
|
|
@@ -441,7 +487,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
441
487
|
* fSheet.insertChart(chartInfo);
|
|
442
488
|
* ```
|
|
443
489
|
*/
|
|
444
|
-
setInvalidValueStrategy(invalidValueType: InvalidValueType):
|
|
490
|
+
setInvalidValueStrategy(invalidValueType: InvalidValueType): this;
|
|
445
491
|
/**
|
|
446
492
|
* Sets the axis pointer style
|
|
447
493
|
* @param {IChartBuildOptions['axisPointer']} style The style for the axis pointer.
|
|
@@ -476,21 +522,22 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
476
522
|
* .build();
|
|
477
523
|
* ```
|
|
478
524
|
*/
|
|
479
|
-
setAxisPointerStyle(style: IChartBuildOptions['axisPointer']):
|
|
525
|
+
setAxisPointerStyle(style: IChartBuildOptions['axisPointer']): this;
|
|
480
526
|
/**
|
|
481
527
|
* Sets styles for all series.
|
|
482
528
|
* @typedef allSeriesStyle
|
|
483
|
-
* @property {ChartTypeBits} chartType The chart type of the series.It only works in combination chart, and the value must be one of ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area;
|
|
484
|
-
* @property {boolean} rightYAxis Use the right y-axis for the series.
|
|
485
|
-
* @property {string} color The color of the series.
|
|
486
|
-
* @property {number} fillOpacity The opacity of the series fill.
|
|
487
|
-
* @property {
|
|
488
|
-
* @property {
|
|
489
|
-
* @property {number} border.
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {
|
|
492
|
-
* @property {
|
|
493
|
-
* @property {
|
|
529
|
+
* @property {ChartTypeBits} [chartType] The chart type of the series.It only works in combination chart, and the value must be one of ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area;
|
|
530
|
+
* @property {boolean} [rightYAxis] Use the right y-axis for the series.
|
|
531
|
+
* @property {string} [color] The color of the series.
|
|
532
|
+
* @property {number} [fillOpacity] The opacity of the series fill.
|
|
533
|
+
* @property {object} [border] The border style of the series.
|
|
534
|
+
* @property {string} [border.color] The color of the series border.
|
|
535
|
+
* @property {number} [border.opacity] The opacity of the series border.
|
|
536
|
+
* @property {number} [border.width] The width of the series border.
|
|
537
|
+
* @property {ChartBorderDashType} [border.dashType] The dash type of the series border.
|
|
538
|
+
* @property {ISeriesLabelStyle} [label] The label style of the series.
|
|
539
|
+
* @property {IPointStyle} [point] The point style of the series.
|
|
540
|
+
* @property {IDataPointStyle} [dataPoints] The data point style of the series.Radar chart does not support this property.
|
|
494
541
|
* @param {allSeriesStyle} allSeriesStyle The style for all series.
|
|
495
542
|
* @returns {FChartBuilderBase} -this builder, for chaining.
|
|
496
543
|
* @example
|
|
@@ -516,7 +563,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
516
563
|
* fSheet.insertChart(chartInfo);
|
|
517
564
|
* ```
|
|
518
565
|
*/
|
|
519
|
-
setAllSeriesStyle(allSeriesStyle: IAllSeriesStyle):
|
|
566
|
+
setAllSeriesStyle(allSeriesStyle: Partial<IAllSeriesStyle>): this;
|
|
520
567
|
/**
|
|
521
568
|
* Sets the series style by series index.
|
|
522
569
|
* @description Like setALLSeriesStyle, this difference is the style only set for the provide sty
|
|
@@ -545,7 +592,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
545
592
|
* , 1000);
|
|
546
593
|
* ```
|
|
547
594
|
*/
|
|
548
|
-
setSeriesStyle(index: number | string, seriesStyle: ISeriesStyle):
|
|
595
|
+
setSeriesStyle(index: number | string, seriesStyle: ISeriesStyle): this;
|
|
549
596
|
/**
|
|
550
597
|
* Builds the chart to reflect all changes made to it.
|
|
551
598
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -12,25 +12,25 @@ export declare class LineChartBuilder extends FChartBuilderBase {
|
|
|
12
12
|
* @param lineStyle
|
|
13
13
|
* @returns - The builder, for chaining.
|
|
14
14
|
*/
|
|
15
|
-
setLineStyle(lineStyle: AreaLineStyle):
|
|
15
|
+
setLineStyle(lineStyle: AreaLineStyle): this;
|
|
16
16
|
/**
|
|
17
17
|
* The shape of the data point in the line chart.
|
|
18
18
|
* @param dataPointShape
|
|
19
19
|
* @returns - The builder, for chaining.
|
|
20
20
|
*/
|
|
21
|
-
setDataPointShape(dataPointShape: LinePointShape):
|
|
21
|
+
setDataPointShape(dataPointShape: LinePointShape): this;
|
|
22
22
|
/**
|
|
23
23
|
* The color of the data point in the line chart.
|
|
24
24
|
* @param dataPointColor
|
|
25
25
|
* @returns - The builder, for chaining.
|
|
26
26
|
*/
|
|
27
|
-
setDataPointColor(dataPointColor: string):
|
|
27
|
+
setDataPointColor(dataPointColor: string): this;
|
|
28
28
|
/**
|
|
29
29
|
* The size of the data point in the line chart.
|
|
30
30
|
* @param dataPointSize
|
|
31
31
|
* @returns - The builder, for chaining.
|
|
32
32
|
*/
|
|
33
|
-
setDataPointSize(dataPointSize: number):
|
|
33
|
+
setDataPointSize(dataPointSize: number): this;
|
|
34
34
|
/**
|
|
35
35
|
* Builds the chart to reflect all changes made to it.
|
|
36
36
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -13,37 +13,37 @@ export declare class PieChartBuilder extends FChartBuilderBase {
|
|
|
13
13
|
* @param {number} doughnutHole The size of the hole in the center of the pie chart as a percentage of the chart size.
|
|
14
14
|
* @returns this builder, for chaining.
|
|
15
15
|
*/
|
|
16
|
-
setDoughnutHole(doughnutHole: number):
|
|
16
|
+
setDoughnutHole(doughnutHole: number): this;
|
|
17
17
|
/**
|
|
18
18
|
* Sets the color of the border around the pie chart.
|
|
19
19
|
* @param {string} borderColor The color of the border around the pie chart.
|
|
20
20
|
* @returns this builder, for chaining.
|
|
21
21
|
*/
|
|
22
|
-
setBorderColor(borderColor: string):
|
|
22
|
+
setBorderColor(borderColor: string): this;
|
|
23
23
|
/**
|
|
24
24
|
* Sets whether the pie chart has a padding angle.
|
|
25
25
|
* @param {boolean} hasPaddingAngle True if the pie chart has a padding angle; false otherwise.
|
|
26
26
|
* @returns this builder, for chaining.
|
|
27
27
|
*/
|
|
28
|
-
setHasPaddingAngle(hasPaddingAngle: boolean):
|
|
28
|
+
setHasPaddingAngle(hasPaddingAngle: boolean): this;
|
|
29
29
|
/**
|
|
30
30
|
* Sets whether the pie chart is a half pie chart.
|
|
31
31
|
* @param {boolean} isHalfPie True if the pie chart is a half pie chart; false otherwise.
|
|
32
32
|
* @returns this builder, for chaining.
|
|
33
33
|
*/
|
|
34
|
-
setIsHalfPie(isHalfPie: boolean):
|
|
34
|
+
setIsHalfPie(isHalfPie: boolean): this;
|
|
35
35
|
/**
|
|
36
36
|
* Sets whether the pie chart is a rose pie chart.
|
|
37
37
|
* @param {boolean} rosePie True if the pie chart is a rose pie chart; false otherwise.
|
|
38
38
|
* @returns this builder, for chaining.
|
|
39
39
|
*/
|
|
40
|
-
setRosePie(rosePie: boolean):
|
|
40
|
+
setRosePie(rosePie: boolean): this;
|
|
41
41
|
/**
|
|
42
42
|
* Sets whether the pie chart shows label lines.
|
|
43
43
|
* @param {boolean} showLabelLine True if the pie chart shows label lines; false otherwise.
|
|
44
44
|
* @returns this builder, for chaining.
|
|
45
45
|
*/
|
|
46
|
-
setShowLabelLine(showLabelLine: boolean):
|
|
46
|
+
setShowLabelLine(showLabelLine: boolean): this;
|
|
47
47
|
/**
|
|
48
48
|
* Builds the chart to reflect all changes made to it.
|
|
49
49
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -9,14 +9,36 @@ export declare class RadarChartBuilder extends FChartBuilderBase {
|
|
|
9
9
|
* Sets the shape of the radar chart.
|
|
10
10
|
* @param {RadarShape} shape The shape of the radar chart.
|
|
11
11
|
* @returns this builder, for chaining.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // import { ChartTypeBits, RadarShape } from '@univerjs-pro/sheets-chart';
|
|
15
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
16
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
17
|
+
* const chartBuilder = fSheet.newChart().asRadarChart();
|
|
18
|
+
* const chartInfo = chartBuilder.addRange('A1:B8')
|
|
19
|
+
* .setShape(RadarShape.Polygon)
|
|
20
|
+
* .build();
|
|
21
|
+
* fSheet.insertChart(chartInfo);
|
|
22
|
+
* ```
|
|
12
23
|
*/
|
|
13
|
-
setShape(shape: RadarShape):
|
|
24
|
+
setShape(shape: RadarShape): this;
|
|
14
25
|
/**
|
|
15
26
|
* Sets whether the radar chart is filled.
|
|
16
27
|
* @param {boolean} fill True if the radar chart is filled; false otherwise.
|
|
17
28
|
* @returns this builder, for chaining.
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // import { ChartTypeBits } from '@univerjs-pro/sheets-chart';
|
|
32
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
33
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
34
|
+
* const chartBuilder = fSheet.newChart().asRadarChart();
|
|
35
|
+
* const chartInfo = chartBuilder.addRange('A1:B8')
|
|
36
|
+
* .setFill(true)
|
|
37
|
+
* .build();
|
|
38
|
+
* fSheet.insertChart(chartInfo);
|
|
39
|
+
* ```
|
|
18
40
|
*/
|
|
19
|
-
setFill(fill: boolean):
|
|
41
|
+
setFill(fill: boolean): this;
|
|
20
42
|
/**
|
|
21
43
|
* Builds the chart to reflect all changes made to it.
|
|
22
44
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1f03(){const _0x569dc0=['titles.xAxisTitle.fontSize','titles.xAxisTitle.alignment','setRightYAxisTextStyle','xAxisTitle','fontSize','convertPositionCellToSheetOverGrid','setLineStyle','RemoveSheetDrawingCommand','fontWeight','pie.rosePie','titles.title.titlePosition','setYAxisTextStyle','bold','getCharts','tooltip.indicatorLineColor','6OVAwUo','pie.borderColor','6250937OZqYBC','indicatorLineColor','setDataPointShape','ChartThemeService','getChartModel','symbol','setSeriesStyle','with','2074960fTIsNw','getUnitId','updateRange','chartType','setChartType','dataPointShape','titles.title.alignment','sourceSheetName','926141ExoLVr','config','color','titles.yAxisTitle.alignment','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','setPosition','getRange','setBorderColor','UniverProSheetsChartUiFacade','ChartUpdateSourceCommand','titles.rightYAxisTitle.fontWeight','setXAxisTextStyle','IUniverInstanceService','subUnitId','2275230rznZSz','xAxis','setDataPointSize','getWorkbook','UNIVER_SHEET','pie','titles.xAxisTitle.fontColor','borderColor','alignment','UniverEngineRender','position','radar.fill','Radar','setHeight','range','ChartTypeBits','dataPointSize','generateRandomId','sheetName','area.lineStyle','RadarChartBuilder','removeChart','seriesStyleMap','8705484xjukzr','registerTheme','titles.title.font','theme','UniverSheetsDrawingUi','setProperty','titles.rightYAxisTitle.content','fontStyle','UniverInstanceType','titles.title.fontSize','asRadarChart','getChartType','area','setTheme','chartId','UniverEngineFormula','title','indicatorLineType','shape','italic','titles.xAxisTitle.fontStyle','setAllSeriesStyle','setTransposeRowsAndColumns','titles.title.content','rightYAxisTitle','Line','@univerjs/sheets-drawing-ui','tooltip.indicatorLineType','options','legend.label.color','titles.yAxisTitle.content','function','titles.title.fontWeight','rightYAxis','showLabelLine','keys','getCategoryData','context','getSeriesData','legend','dataPointColor','string','732120WcHSnY','Module','@univerjs/sheets-ui','font','setDataPointColor','hasPaddingAngle','clearRange','defineProperty','radar.shape','setDoughnutHole','titles.xAxisTitle.content','height','deserializeRangeWithSheet','length','extend','get','8jqvnMb','allSeriesStyle.point.color','getSheetId','titles.yAxisTitle.fontSize','content','getChartId','yAxisTitle','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','asPieChart','dataSource','width','@univerjs/engine-render','setAxisPointerStyle','isHalfPie','Sheet\x20','getRenderById','indicatorLabelTextColor','yRightAxis','legend.label.bold','pie.hasPaddingAngle','@univerjs/engine-formula','titles.title.fontStyle','4939760bsBiqV','fill','fontColor','DRAWING_CHART','addRange','legend.position','newChart','titles.rightYAxisTitle.fontColor','CommandService','getCurrentUnitForType','@univerjs/sheets/facade','axisPointer','pie.doughnutHole','point','invalidValueType','isRowDirection','UniverSheetsFacade','tooltip.indicatorLabelColor','UniverSheetsUi','@univerjs/core','setShowLabelLine','tooltip.indicatorLabelTextColor','ISheetSelectionRenderService','legend.label.italic','ChartUpdateConfigCommand','lineStyle','PieChartBuilder','_commandService','build','titles.yAxisTitle.fontColor','titles.rightYAxisTitle.fontStyle','backgroundColor','object','SheetsChartService','registerChartTheme','FBase','setOptions','titles.xAxisTitle.font','_workbook','allSeriesStyle','_injector','setShape','setAbsolutePosition','indicatorLabelColor','executeCommand','unitId','toStringTag','@univerjs-pro/sheets-chart','transposeRowsAndColumns','\x20not\x20found','yAxis','legend.label.fontSize','pie.showLabelLine','rosePie','DrawingTypeEnum','FChart','doughnutHole'];_0x1f03=function(){return _0x569dc0;};return _0x1f03();}function _0x1d32(_0x143941,_0x102d7b){const _0x1f03b5=_0x1f03();return _0x1d32=function(_0x1d3208,_0x34de4e){_0x1d3208=_0x1d3208-0x1cd;let _0x5769aa=_0x1f03b5[_0x1d3208];return _0x5769aa;},_0x1d32(_0x143941,_0x102d7b);}(function(_0x300258,_0x10a4d8){const _0x3e24dd=_0x1d32,_0x542925=_0x300258();while(!![]){try{const _0xb6c08e=-parseInt(_0x3e24dd(0x290))/0x1+parseInt(_0x3e24dd(0x210))/0x2+parseInt(_0x3e24dd(0x1cf))/0x3+-parseInt(_0x3e24dd(0x220))/0x4*(parseInt(_0x3e24dd(0x288))/0x5)+-parseInt(_0x3e24dd(0x27e))/0x6*(-parseInt(_0x3e24dd(0x280))/0x7)+-parseInt(_0x3e24dd(0x236))/0x8+parseInt(_0x3e24dd(0x1e6))/0x9;if(_0xb6c08e===_0x10a4d8)break;else _0x542925['push'](_0x542925['shift']());}catch(_0x3a32b8){_0x542925['push'](_0x542925['shift']());}}}(_0x1f03,0x95346),function(_0x566f63,_0xfc7e81){const _0x3c0aab=_0x1d32;typeof exports==_0x3c0aab(0x256)&&typeof module<'u'?_0xfc7e81(exports,require(_0x3c0aab(0x265)),require('@univerjs-pro/sheets-chart-ui'),require(_0x3c0aab(0x249)),require(_0x3c0aab(0x200)),require(_0x3c0aab(0x240)),require(_0x3c0aab(0x234)),require(_0x3c0aab(0x22b)),require(_0x3c0aab(0x212))):typeof define==_0x3c0aab(0x205)&&define['amd']?define(['exports',_0x3c0aab(0x265),'@univerjs-pro/sheets-chart-ui','@univerjs/core',_0x3c0aab(0x200),_0x3c0aab(0x240),'@univerjs/engine-formula',_0x3c0aab(0x22b),_0x3c0aab(0x212)],_0xfc7e81):(_0x566f63=typeof globalThis<'u'?globalThis:_0x566f63||self,_0xfc7e81(_0x566f63[_0x3c0aab(0x298)]={},_0x566f63['UniverProSheetsChart'],_0x566f63['UniverProSheetsChartUi'],_0x566f63['UniverCore'],_0x566f63[_0x3c0aab(0x1ea)],_0x566f63[_0x3c0aab(0x246)],_0x566f63[_0x3c0aab(0x1f5)],_0x566f63[_0x3c0aab(0x1d8)],_0x566f63[_0x3c0aab(0x248)]));}(this,function(_0x343f69,_0x28f2fb,_0x3faa1e,_0x28ac5e,_0x109214,_0x51d57a,_0x255e30,_0x5adb08,_0x307e37){'use strict';const _0x468c49=_0x1d32;var _0x2298ad=Object[_0x468c49(0x217)],_0xa758aa=(_0x7d91b3,_0x17abb8,_0x4083c0)=>_0x17abb8 in _0x7d91b3?_0x2298ad(_0x7d91b3,_0x17abb8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4083c0}):_0x7d91b3[_0x17abb8]=_0x4083c0,_0x4a73e7=(_0x1a6689,_0x18e0fc,_0x25e5e7)=>_0xa758aa(_0x1a6689,typeof _0x18e0fc!=_0x468c49(0x285)?_0x18e0fc+'':_0x18e0fc,_0x25e5e7);const _0x49b778=(_0x50ebe4,_0x3678f9,_0xe81329)=>{const _0x14222f=_0x468c49;_0xe81329!==void 0x0&&_0x28f2fb[_0x14222f(0x1eb)](_0x50ebe4,_0x3678f9,_0xe81329);},_0x4b385a=(_0xa40633,_0x57c6ec,_0x12d468,_0xd7a133={})=>{const _0x57ecf4=_0x468c49,_0x1f2f17={},_0x4eb846={};if(_0xd7a133[_0x57ecf4(0x1f6)]){const _0x18ed8f=_0xd7a133[_0x57ecf4(0x1f6)];_0x49b778(_0x1f2f17,_0x57ecf4(0x1fd),_0x18ed8f[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1e8),_0x18ed8f['font']),_0x49b778(_0x1f2f17,_0x57ecf4(0x1ef),_0x18ed8f[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,'titles.title.fontColor',_0x18ed8f['fontColor']),_0x49b778(_0x1f2f17,_0x57ecf4(0x235),_0x18ed8f['fontStyle']),_0x49b778(_0x1f2f17,_0x57ecf4(0x206),_0x18ed8f[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x28e),_0x18ed8f[_0x57ecf4(0x1d7)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x279),_0x18ed8f[_0x57ecf4(0x1d9)]);}if(_0xd7a133[_0x57ecf4(0x20d)]){const _0x266315=_0xd7a133[_0x57ecf4(0x20d)];_0x49b778(_0x1f2f17,_0x57ecf4(0x23b),_0x266315['position']),_0x49b778(_0x1f2f17,'legend.selectMode',_0x266315['selectMode']),_0x49b778(_0x1f2f17,_0x57ecf4(0x269),_0x266315[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x203),_0x266315[_0x57ecf4(0x292)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x232),_0x266315[_0x57ecf4(0x27b)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x24d),_0x266315[_0x57ecf4(0x1f9)]);}if(_0xd7a133[_0x57ecf4(0x1d4)]){const _0x76e37b=_0xd7a133[_0x57ecf4(0x1d4)];_0x49b778(_0x1f2f17,_0x57ecf4(0x242),_0x76e37b[_0x57ecf4(0x26e)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x27f),_0x76e37b[_0x57ecf4(0x1d6)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x233),_0x76e37b[_0x57ecf4(0x215)]),_0x49b778(_0x1f2f17,'pie.isHalfPie',_0x76e37b['isHalfPie']),_0x49b778(_0x1f2f17,_0x57ecf4(0x278),_0x76e37b['rosePie']),_0x49b778(_0x1f2f17,_0x57ecf4(0x26a),_0x76e37b[_0x57ecf4(0x208)]);}if(_0xd7a133[_0x57ecf4(0x241)]){const _0x16316d=_0xd7a133[_0x57ecf4(0x241)];_0x49b778(_0x1f2f17,_0x57ecf4(0x247),_0x16316d[_0x57ecf4(0x261)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x201),_0x16316d[_0x57ecf4(0x1f7)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x27d),_0x16316d[_0x57ecf4(0x281)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x24b),_0x16316d[_0x57ecf4(0x230)]);}if(_0xd7a133[_0x57ecf4(0x25d)]&&_0x49b778(_0x1f2f17,'allSeriesStyle.point',_0xd7a133[_0x57ecf4(0x25d)][_0x57ecf4(0x243)]),_0xd7a133[_0x57ecf4(0x1f2)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e2),_0xd7a133[_0x57ecf4(0x1f2)][_0x57ecf4(0x24f)]),_0xd7a133[_0x57ecf4(0x1e9)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e9),_0xd7a133['theme']),_0xd7a133[_0x57ecf4(0x272)]){const _0x4d4404=_0xd7a133[_0x57ecf4(0x272)];_0x49b778(_0x1f2f17,_0x57ecf4(0x21a),_0x4d4404['content']),_0x49b778(_0x1f2f17,_0x57ecf4(0x25b),_0x4d4404[_0x57ecf4(0x213)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x26f),_0x4d4404[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1d5),_0x4d4404[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1fa),_0x4d4404['fontStyle']),_0x49b778(_0x1f2f17,'titles.xAxisTitle.fontWeight',_0x4d4404['fontWeight']),_0x49b778(_0x1f2f17,_0x57ecf4(0x270),_0x4d4404['alignment']);}if(_0xd7a133[_0x57ecf4(0x226)]){const _0x3f9227=_0xd7a133[_0x57ecf4(0x226)];_0x49b778(_0x1f2f17,_0x57ecf4(0x204),_0x3f9227[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.font',_0x3f9227[_0x57ecf4(0x213)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x223),_0x3f9227[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x253),_0x3f9227[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.fontStyle',_0x3f9227[_0x57ecf4(0x1ed)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.fontWeight',_0x3f9227[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x293),_0x3f9227['alignment']);}if(_0xd7a133[_0x57ecf4(0x1fe)]){const _0x44c343=_0xd7a133[_0x57ecf4(0x1fe)];_0x49b778(_0x1f2f17,_0x57ecf4(0x1ec),_0x44c343[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.font',_0x44c343['font']),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.fontSize',_0x44c343[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x23d),_0x44c343[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x254),_0x44c343[_0x57ecf4(0x1ed)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x29a),_0x44c343[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.alignment',_0x44c343[_0x57ecf4(0x1d7)]);}_0xd7a133[_0x57ecf4(0x1d0)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1d0),_0xd7a133['xAxis']),_0xd7a133[_0x57ecf4(0x268)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x268),_0xd7a133[_0x57ecf4(0x268)]),_0xd7a133['yRightAxis']&&_0x49b778(_0x1f2f17,_0x57ecf4(0x207),_0xd7a133[_0x57ecf4(0x231)]),_0xd7a133['seriesStyleMap']&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e5),_0xd7a133[_0x57ecf4(0x1e5)]);const _0x51a0d9={'unitId':_0xa40633,'chartModelId':_0x57c6ec};let _0x5d7ee5=!0x1;if(_0x12d468!==void 0x0&&(_0x51a0d9[_0x57ecf4(0x28b)]=_0x12d468,_0x5d7ee5=!0x0),Object[_0x57ecf4(0x209)](_0x1f2f17)[_0x57ecf4(0x21d)]>0x0&&(_0x51a0d9['style']=_0x1f2f17,_0x5d7ee5=!0x0),Object['keys'](_0x4eb846)[_0x57ecf4(0x21d)]>0x0&&(_0x51a0d9[_0x57ecf4(0x20b)]=_0x4eb846,_0x5d7ee5=!0x0),_0x5d7ee5)return _0x51a0d9;};class _0x4c7cb0 extends _0x28ac5e[_0x468c49(0x259)]{constructor(_0x80f9e,_0x2f48dc,_0x19a489,_0x307f73,_0x2801fd){const _0x52a6ae=_0x468c49;super(),_0x4a73e7(this,_0x52a6ae(0x25c)),_0x4a73e7(this,'_injector'),_0x4a73e7(this,_0x52a6ae(0x263)),_0x4a73e7(this,_0x52a6ae(0x1ce)),_0x4a73e7(this,_0x52a6ae(0x1f4)),_0x4a73e7(this,_0x52a6ae(0x1dd)),_0x4a73e7(this,'sourceSheetName'),_0x4a73e7(this,'x'),_0x4a73e7(this,'y'),_0x4a73e7(this,_0x52a6ae(0x22a)),_0x4a73e7(this,'height'),_0x4a73e7(this,_0x52a6ae(0x28b)),_0x4a73e7(this,_0x52a6ae(0x202)),_0x4a73e7(this,_0x52a6ae(0x266)),(this[_0x52a6ae(0x263)]=_0x80f9e,this['subUnitId']=_0x2f48dc,this['_workbook']=_0x19a489,this[_0x52a6ae(0x25e)]=_0x307f73,_0x2801fd&&(this[_0x52a6ae(0x1f4)]=_0x2801fd));}[_0x468c49(0x1f1)](){const _0x1acf42=_0x468c49;return this[_0x1acf42(0x28b)];}[_0x468c49(0x23a)](_0x509470){const _0x4491b7=_0x468c49;if(typeof _0x509470==_0x4491b7(0x20f)){const _0x4032ab=_0x255e30[_0x4491b7(0x21c)](_0x509470);_0x4032ab[_0x4491b7(0x1e1)]&&(this[_0x4491b7(0x28f)]=_0x4032ab[_0x4491b7(0x1e1)]),this[_0x4491b7(0x1dd)]=_0x4032ab[_0x4491b7(0x1dd)];}else this[_0x4491b7(0x1dd)]=_0x509470;return this;}[_0x468c49(0x216)](){const _0x21fedb=_0x468c49;return this[_0x21fedb(0x1dd)]=void 0x0,this['sourceSheetName']=void 0x0,this;}[_0x468c49(0x295)](_0x1c8f47,_0xef008a,_0x404253,_0x4756cb){const _0x2a952a=_0x468c49,_0x1b7fdf=this[_0x2a952a(0x25e)][_0x2a952a(0x21f)](_0x5adb08['IRenderManagerService'])[_0x2a952a(0x22f)](this[_0x2a952a(0x263)]);if(!_0x1b7fdf)throw new Error(_0x2a952a(0x294));const _0x4657a0=_0x1b7fdf['with'](_0x307e37[_0x2a952a(0x24c)]),_0x400eab=_0x1b7fdf[_0x2a952a(0x287)](_0x307e37['SheetSkeletonManagerService']),{transform:_0x73c0a8}=_0x307e37[_0x2a952a(0x274)](this[_0x2a952a(0x263)],this['subUnitId'],{'row':_0x1c8f47,'column':_0xef008a,'rowOffset':_0x404253,'columnOffset':_0x4756cb},0x1,0x1,_0x4657a0,_0x400eab),_0x3c6d45=_0x73c0a8['top'],_0x9b1715=_0x73c0a8['left'];return this['x']=_0x9b1715,this['y']=_0x3c6d45,this;}[_0x468c49(0x260)](_0x50cf07,_0x5b32c0){return this['x']=_0x50cf07,this['y']=_0x5b32c0,this;}[_0x468c49(0x28c)](_0x443a4e){const _0xfaba61=_0x468c49;return this[_0xfaba61(0x28b)]=_0x443a4e,this;}['setWidth'](_0x58546d){const _0x4a7956=_0x468c49;return this[_0x4a7956(0x22a)]=_0x58546d,this;}[_0x468c49(0x1dc)](_0x1da3ae){const _0x3ee41f=_0x468c49;return this[_0x3ee41f(0x21b)]=_0x1da3ae,this;}[_0x468c49(0x25a)](_0x2a0d4f,_0x2420e5){const _0x482d21=_0x468c49;return this[_0x482d21(0x202)]||(this[_0x482d21(0x202)]={}),_0x2a0d4f===''?(this[_0x482d21(0x202)]={...this['options'],..._0x2420e5},this):(_0x28f2fb['setProperty'](this[_0x482d21(0x202)],_0x2a0d4f,_0x2420e5),this);}[_0x468c49(0x1fc)](_0xfb2025){const _0x10b938=_0x468c49;return this[_0x10b938(0x266)]=_0xfb2025,this;}[_0x468c49(0x1f3)](_0xdc276f){const _0x465ec0=_0x468c49;return this[_0x465ec0(0x25a)](_0x465ec0(0x1e9),_0xdc276f),this;}['setXAxisTitle'](_0x123a83){const _0x230c8e=_0x468c49;var _0x55fa87;const _0x55955d=((_0x55fa87=this[_0x230c8e(0x202)])==null?void 0x0:_0x55fa87[_0x230c8e(0x272)])||{};return _0x55955d[_0x230c8e(0x224)]=_0x123a83,this[_0x230c8e(0x25a)](_0x230c8e(0x272),_0x55955d),this;}['setYAxisTitle'](_0x13b72e){const _0x2fcb08=_0x468c49;var _0x57d19e;const _0x5db899=((_0x57d19e=this[_0x2fcb08(0x202)])==null?void 0x0:_0x57d19e['yAxisTitle'])||{};return _0x5db899[_0x2fcb08(0x224)]=_0x13b72e,this['setOptions'](_0x2fcb08(0x226),_0x5db899),this;}['setRightYAxisTitle'](_0x3db479){const _0x1ba4af=_0x468c49;var _0xab6f7e;const _0x121d86=((_0xab6f7e=this[_0x1ba4af(0x202)])==null?void 0x0:_0xab6f7e[_0x1ba4af(0x1fe)])||{};return _0x121d86[_0x1ba4af(0x224)]=_0x3db479,this['setOptions'](_0x1ba4af(0x1fe),_0x121d86),this;}[_0x468c49(0x29b)](_0x182d7b){const _0x356886=_0x468c49;var _0x15b679;const _0x3f2c19=((_0x15b679=this[_0x356886(0x202)])==null?void 0x0:_0x15b679['xAxisTitle'])||{};return this['setOptions'](_0x356886(0x272),{..._0x3f2c19,..._0x182d7b}),this;}[_0x468c49(0x27a)](_0x4602b2){const _0x399347=_0x468c49;var _0x1ae5f7;const _0x1257ee=((_0x1ae5f7=this['options'])==null?void 0x0:_0x1ae5f7[_0x399347(0x226)])||{};return this[_0x399347(0x25a)](_0x399347(0x226),{..._0x1257ee,..._0x4602b2}),this;}[_0x468c49(0x271)](_0x2a0502){const _0x3c8994=_0x468c49;var _0x22c2dc;const _0x4c6e0f=((_0x22c2dc=this['options'])==null?void 0x0:_0x22c2dc[_0x3c8994(0x1fe)])||{};return this[_0x3c8994(0x25a)](_0x3c8994(0x1fe),{..._0x4c6e0f,..._0x2a0502}),this;}['setInvalidValueStrategy'](_0x44bb09){const _0x5389aa=_0x468c49;return this['setOptions'](_0x5389aa(0x244),_0x44bb09),this;}[_0x468c49(0x22c)](_0x264aab){const _0x117a2c=_0x468c49;return this[_0x117a2c(0x25a)](_0x117a2c(0x241),_0x264aab),this;}[_0x468c49(0x1fb)](_0x4481ed){const _0x40c7f=_0x468c49;return this[_0x40c7f(0x25a)](_0x40c7f(0x25d),_0x4481ed),this;}[_0x468c49(0x286)](_0x1974b1,_0x292903){const _0x2868f2=_0x468c49;return this[_0x2868f2(0x25a)](_0x2868f2(0x1e5),{[_0x1974b1]:_0x292903}),this;}['build'](){const _0x4adfab=_0x468c49;var _0x26ffa6;let _0x5b3ac6=this[_0x4adfab(0x1ce)];if(this[_0x4adfab(0x28f)]){const _0x24f2d5=(_0x26ffa6=this[_0x4adfab(0x25c)]['getSheetBySheetName'](this[_0x4adfab(0x28f)]))==null?void 0x0:_0x26ffa6[_0x4adfab(0x222)]();if(!_0x24f2d5)throw new Error(_0x4adfab(0x22e)+this['sourceSheetName']+_0x4adfab(0x267));_0x5b3ac6=_0x24f2d5;}return{'unitId':this[_0x4adfab(0x263)],'subUnitId':_0x5b3ac6,'chartId':this['chartId'],'range':this['range'],'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x4adfab(0x21b)],'chartType':this[_0x4adfab(0x28b)],'options':this[_0x4adfab(0x202)],'isRowDirection':this[_0x4adfab(0x266)]};}}class _0x2fd813{constructor(_0x364893,_0x13b7f3,_0x233886,_0x4c1f5c){const _0x493c82=_0x468c49;_0x4a73e7(this,_0x493c82(0x263)),_0x4a73e7(this,_0x493c82(0x1ce)),_0x4a73e7(this,_0x493c82(0x1f4)),_0x4a73e7(this,_0x493c82(0x25e)),(this[_0x493c82(0x263)]=_0x364893,this['subUnitId']=_0x13b7f3,this[_0x493c82(0x1f4)]=_0x233886,this[_0x493c82(0x25e)]=_0x4c1f5c);}[_0x468c49(0x225)](){return this['chartId'];}[_0x468c49(0x296)](){const _0x38ff12=_0x468c49,_0x9b0885=this['_injector'][_0x38ff12(0x21f)](_0x28f2fb[_0x38ff12(0x257)])[_0x38ff12(0x284)](this[_0x38ff12(0x1f4)]);if(_0x9b0885)return _0x9b0885[_0x38ff12(0x229)]['getRangeInfo']();}[_0x468c49(0x28a)](_0x4b09e2){const _0x58d072=_0x468c49;return this['_injector']['get'](_0x28ac5e[_0x58d072(0x23e)])[_0x58d072(0x262)](_0x28f2fb[_0x58d072(0x299)]['id'],{'unitId':this[_0x58d072(0x263)],'chartModelId':this['chartId'],'range':_0x4b09e2});}[_0x468c49(0x20c)](){const _0x551f84=_0x468c49;var _0x16a507;const _0x18666c=this[_0x551f84(0x25e)][_0x551f84(0x21f)](_0x28f2fb[_0x551f84(0x257)])[_0x551f84(0x284)](this['chartId']);if(_0x18666c)return(_0x16a507=_0x18666c[_0x551f84(0x291)])==null?void 0x0:_0x16a507['series'];}[_0x468c49(0x20a)](){const _0x1f2f6b=_0x468c49;var _0x28f02f;const _0x417732=this[_0x1f2f6b(0x25e)][_0x1f2f6b(0x21f)](_0x28f2fb[_0x1f2f6b(0x257)])[_0x1f2f6b(0x284)](this[_0x1f2f6b(0x1f4)]);if(_0x417732)return(_0x28f02f=_0x417732[_0x1f2f6b(0x291)])==null?void 0x0:_0x28f02f['category'];}['modify'](){const _0x634578=_0x468c49,_0x25b374=this[_0x634578(0x25e)][_0x634578(0x21f)](_0x28ac5e[_0x634578(0x1cd)])[_0x634578(0x23f)](_0x28ac5e[_0x634578(0x1ee)][_0x634578(0x1d3)]);return new _0x4c7cb0(this[_0x634578(0x263)],this[_0x634578(0x1ce)],_0x25b374,this[_0x634578(0x25e)],this[_0x634578(0x1f4)]);}}class _0x3164b9 extends _0x51d57a['FWorksheet']{async['insertChart'](_0xf293ae){const _0x18192c=_0x468c49;var _0x4cace3,_0x11d704,_0x1ca12a;const _0x1aba19=_0xf293ae[_0x18192c(0x263)]||this[_0x18192c(0x1d2)]()[_0x18192c(0x289)](),_0x3d87db=_0xf293ae[_0x18192c(0x1ce)]||this[_0x18192c(0x222)](),_0x1f3bac=_0xf293ae[_0x18192c(0x1f4)]||_0x28ac5e[_0x18192c(0x1e0)](),_0x9c4ffc=_0xf293ae[_0x18192c(0x28b)],_0x42be21=_0xf293ae[_0x18192c(0x1dd)],_0x19b6ee={'x':_0xf293ae['x'],'y':_0xf293ae['y']},_0x4a91c7=_0xf293ae[_0x18192c(0x22a)],_0x1574c7=_0xf293ae[_0x18192c(0x21b)],_0x35844c=(_0x4cace3=_0xf293ae[_0x18192c(0x202)])==null?void 0x0:_0x4cace3[_0x18192c(0x255)],_0x355bfe=(_0x11d704=_0xf293ae[_0x18192c(0x202)])==null?void 0x0:_0x11d704[_0x18192c(0x1d6)],_0x32179d=_0x4b385a(_0x1aba19,_0x1f3bac,_0x9c4ffc,_0xf293ae[_0x18192c(0x202)]),_0x54cbf0=(_0x1ca12a=_0xf293ae[_0x18192c(0x245)])!=null?_0x1ca12a:!0x0;if(!_0x42be21)throw new Error(_0x18192c(0x227));return await this[_0x18192c(0x251)][_0x18192c(0x262)](_0x3faa1e['InsertChartCommand']['id'],{'unitId':_0x1aba19,'subUnitId':_0x3d87db,'chartId':_0x1f3bac,'chartType':_0x9c4ffc,'range':_0x42be21,'position':_0x19b6ee,'width':_0x4a91c7,'height':_0x1574c7,'backgroundColor':_0x35844c,'borderColor':_0x355bfe,'config':_0x32179d,'isRowDirection':_0x54cbf0}),new _0x2fd813(_0x1aba19,_0x3d87db,_0x1f3bac,this[_0x18192c(0x25e)]);}['updateChart'](_0x4751f8){const _0x1cf9b6=_0x468c49,{unitId:_0x41572d,chartId:_0x2f2f7c,chartType:_0x4a14a8,options:_0x4a7473}=_0x4751f8,_0x436880=_0x4b385a(_0x41572d,_0x2f2f7c,_0x4a14a8,_0x4a7473);this[_0x1cf9b6(0x251)][_0x1cf9b6(0x262)](_0x28f2fb[_0x1cf9b6(0x24e)]['id'],_0x436880);}[_0x468c49(0x23c)](_0x312421){const _0x48aa76=_0x468c49;if(_0x312421)return new _0x4c7cb0(_0x312421[_0x48aa76(0x263)],_0x312421['subUnitId'],this[_0x48aa76(0x25c)],this[_0x48aa76(0x25e)],_0x312421[_0x48aa76(0x1f4)]);const _0x1c02ca=this[_0x48aa76(0x1d2)]()[_0x48aa76(0x289)](),_0x34dccc=this[_0x48aa76(0x222)]();return new _0x4c7cb0(_0x1c02ca,_0x34dccc,this['_workbook'],this[_0x48aa76(0x25e)]);}[_0x468c49(0x27c)](){const _0x4bd14f=_0x468c49,_0x434e6e=this['_injector'][_0x4bd14f(0x21f)](_0x28f2fb[_0x4bd14f(0x257)]),_0x5d2ebc=this['getWorkbook']()['getUnitId']();return _0x434e6e['getUnitChartModels'](_0x5d2ebc,this[_0x4bd14f(0x222)]())['map'](_0x174f7e=>new _0x2fd813(_0x5d2ebc,this['getSheetId'](),_0x174f7e['id'],this[_0x4bd14f(0x25e)]));}[_0x468c49(0x1e4)](_0x2b9a4b){const _0x2f9809=_0x468c49,_0x4e6bcd=_0x2b9a4b['unitId'],_0x48e970=_0x2b9a4b[_0x2f9809(0x1ce)],_0x53aaad=_0x2b9a4b[_0x2f9809(0x1f4)],_0x1f71bf={'unitId':_0x4e6bcd,'drawings':[{'unitId':_0x4e6bcd,'subUnitId':_0x48e970,'drawingId':_0x53aaad,'drawingType':_0x28ac5e[_0x2f9809(0x26c)][_0x2f9809(0x239)]}]};return this[_0x2f9809(0x251)]['executeCommand'](_0x109214[_0x2f9809(0x276)]['id'],_0x1f71bf);}[_0x468c49(0x258)](_0x37e776,_0x5f0840){const _0x4f3f1e=_0x468c49;this[_0x4f3f1e(0x25e)][_0x4f3f1e(0x21f)](_0x28f2fb[_0x4f3f1e(0x283)])[_0x4f3f1e(0x1e7)](_0x37e776,_0x5f0840);}}_0x51d57a['FWorksheet'][_0x468c49(0x21e)](_0x3164b9);class _0x2bbdd4 extends _0x4c7cb0{constructor(_0x4d8a5e,_0x5bbc5e,_0x4271f6,_0x1da10e,_0x40a5f7){const _0x8e712d=_0x468c49;super(_0x4d8a5e,_0x5bbc5e,_0x4271f6,_0x1da10e,_0x40a5f7),_0x4a73e7(this,_0x8e712d(0x24f)),_0x4a73e7(this,'dataPointShape'),_0x4a73e7(this,_0x8e712d(0x20e)),_0x4a73e7(this,'dataPointSize');}[_0x468c49(0x275)](_0x5e3b91){const _0x4b3e78=_0x468c49;return this[_0x4b3e78(0x24f)]=_0x5e3b91,this;}[_0x468c49(0x282)](_0x5ba01b){const _0x405f7c=_0x468c49;return this[_0x405f7c(0x28d)]=_0x5ba01b,this;}[_0x468c49(0x214)](_0x58e043){const _0x4d87bf=_0x468c49;return this[_0x4d87bf(0x20e)]=_0x58e043,this;}[_0x468c49(0x1d1)](_0x36205c){const _0x4142cc=_0x468c49;return this[_0x4142cc(0x1df)]=_0x36205c,this;}[_0x468c49(0x252)](){const _0x57187f=_0x468c49,_0x1e4f77=super['build']();_0x1e4f77[_0x57187f(0x28b)]=_0x28f2fb[_0x57187f(0x1de)][_0x57187f(0x1ff)];const _0x34d77c=_0x1e4f77[_0x57187f(0x202)]||{};return _0x49b778(_0x34d77c,_0x57187f(0x1e2),this[_0x57187f(0x24f)]),_0x49b778(_0x34d77c,'allSeriesStyle.point.shape',this[_0x57187f(0x28d)]),_0x49b778(_0x34d77c,_0x57187f(0x221),this['dataPointColor']),_0x49b778(_0x34d77c,'allSeriesStyle.point.size',this[_0x57187f(0x1df)]),_0x1e4f77[_0x57187f(0x202)]=_0x34d77c,_0x1e4f77;}}class _0x573466 extends _0x4c7cb0{['asLineChart'](){const _0x77df73=_0x468c49;return new _0x2bbdd4(this['unitId'],this[_0x77df73(0x1ce)],this['_workbook'],this[_0x77df73(0x25e)],this[_0x77df73(0x1f4)]);}}_0x4c7cb0['extend'](_0x573466);class _0x2bd7da extends _0x4c7cb0{constructor(_0x1f511b,_0x52663a,_0x25bb80,_0x29d22d,_0x3077b7){const _0x4bdd37=_0x468c49;super(_0x1f511b,_0x52663a,_0x25bb80,_0x29d22d,_0x3077b7),_0x4a73e7(this,_0x4bdd37(0x26e)),_0x4a73e7(this,_0x4bdd37(0x1d6)),_0x4a73e7(this,_0x4bdd37(0x215)),_0x4a73e7(this,_0x4bdd37(0x22d)),_0x4a73e7(this,_0x4bdd37(0x26b)),_0x4a73e7(this,'showLabelLine');}[_0x468c49(0x219)](_0x3b29f3){const _0x227549=_0x468c49;return this[_0x227549(0x26e)]=_0x3b29f3,this;}[_0x468c49(0x297)](_0x249120){const _0x509dcd=_0x468c49;return this[_0x509dcd(0x1d6)]=_0x249120,this;}['setHasPaddingAngle'](_0x3406ff){const _0x467ae6=_0x468c49;return this[_0x467ae6(0x215)]=_0x3406ff,this;}['setIsHalfPie'](_0x3e1501){const _0x4b9650=_0x468c49;return this[_0x4b9650(0x22d)]=_0x3e1501,this;}['setRosePie'](_0x4d6799){const _0x5d8529=_0x468c49;return this[_0x5d8529(0x26b)]=_0x4d6799,this;}[_0x468c49(0x24a)](_0x47c048){return this['showLabelLine']=_0x47c048,this;}['build'](){const _0x56c492=_0x468c49,_0x183eee=super[_0x56c492(0x252)]();_0x183eee['chartType']=_0x28f2fb[_0x56c492(0x1de)]['Pie'];const _0x307041=_0x183eee[_0x56c492(0x202)]||{};return _0x49b778(_0x307041,_0x56c492(0x242),this['doughnutHole']),_0x49b778(_0x307041,_0x56c492(0x27f),this[_0x56c492(0x1d6)]),_0x49b778(_0x307041,_0x56c492(0x233),this[_0x56c492(0x215)]),_0x49b778(_0x307041,'pie.isHalfPie',this[_0x56c492(0x22d)]),_0x49b778(_0x307041,_0x56c492(0x278),this[_0x56c492(0x26b)]),_0x49b778(_0x307041,_0x56c492(0x26a),this[_0x56c492(0x208)]),_0x183eee[_0x56c492(0x202)]=_0x307041,_0x183eee;}}class _0x3a50d0 extends _0x4c7cb0{[_0x468c49(0x228)](){const _0x2af971=_0x468c49;return new _0x2bd7da(this[_0x2af971(0x263)],this[_0x2af971(0x1ce)],this[_0x2af971(0x25c)],this[_0x2af971(0x25e)],this['chartId']);}}_0x4c7cb0[_0x468c49(0x21e)](_0x3a50d0);class _0x4e41c8 extends _0x4c7cb0{constructor(_0x3f9909,_0x1fe264,_0x2d436a,_0x19214d,_0x1a9968){const _0x391122=_0x468c49;super(_0x3f9909,_0x1fe264,_0x2d436a,_0x19214d,_0x1a9968),_0x4a73e7(this,_0x391122(0x1f8)),_0x4a73e7(this,_0x391122(0x237));}[_0x468c49(0x25f)](_0xafae98){const _0x2334ba=_0x468c49;return this[_0x2334ba(0x1f8)]=_0xafae98,this;}['setFill'](_0x238d8e){const _0x3f453d=_0x468c49;return this[_0x3f453d(0x237)]=_0x238d8e,this;}[_0x468c49(0x252)](){const _0xf3b7c4=_0x468c49,_0x33381a=super['build']();_0x33381a['chartType']=_0x28f2fb[_0xf3b7c4(0x1de)][_0xf3b7c4(0x1db)];const _0x5132ea=_0x33381a[_0xf3b7c4(0x202)]||{};return _0x49b778(_0x5132ea,_0xf3b7c4(0x218),this[_0xf3b7c4(0x1f8)]),_0x49b778(_0x5132ea,_0xf3b7c4(0x1da),this[_0xf3b7c4(0x237)]),_0x33381a['options']=_0x5132ea,_0x33381a;}}class _0x2b07df extends _0x4c7cb0{[_0x468c49(0x1f0)](){const _0x1e2c14=_0x468c49;return new _0x4e41c8(this['unitId'],this[_0x1e2c14(0x1ce)],this[_0x1e2c14(0x25c)],this[_0x1e2c14(0x25e)],this['chartId']);}}_0x4c7cb0['extend'](_0x2b07df),_0x343f69[_0x468c49(0x26d)]=_0x2fd813,_0x343f69['FChartBuilderBase']=_0x4c7cb0,_0x343f69['LineChartBuilder']=_0x2bbdd4,_0x343f69[_0x468c49(0x250)]=_0x2bd7da,_0x343f69[_0x468c49(0x1e3)]=_0x4e41c8,Object[_0x468c49(0x217)](_0x343f69,Symbol[_0x468c49(0x264)],{'value':_0x468c49(0x211)});}));
|
|
1
|
+
function _0x120d(_0x435011,_0x3c461d){const _0x182149=_0x1821();return _0x120d=function(_0x120db3,_0x391aa5){_0x120db3=_0x120db3-0x105;let _0x2e93d1=_0x182149[_0x120db3];return _0x2e93d1;},_0x120d(_0x435011,_0x3c461d);}(function(_0x509c94,_0x1b2cc3){const _0x1ee0bd=_0x120d,_0x4a1c1d=_0x509c94();while(!![]){try{const _0xa273fc=parseInt(_0x1ee0bd(0x1d2))/0x1*(-parseInt(_0x1ee0bd(0x13e))/0x2)+-parseInt(_0x1ee0bd(0x19e))/0x3*(-parseInt(_0x1ee0bd(0x12f))/0x4)+-parseInt(_0x1ee0bd(0x1bc))/0x5+-parseInt(_0x1ee0bd(0x1ba))/0x6+parseInt(_0x1ee0bd(0x15d))/0x7+parseInt(_0x1ee0bd(0x16e))/0x8+-parseInt(_0x1ee0bd(0x116))/0x9*(-parseInt(_0x1ee0bd(0x1c6))/0xa);if(_0xa273fc===_0x1b2cc3)break;else _0x4a1c1d['push'](_0x4a1c1d['shift']());}catch(_0x4f45c0){_0x4a1c1d['push'](_0x4a1c1d['shift']());}}}(_0x1821,0xe8998),function(_0x1b31fa,_0x4a80a1){const _0x56fadc=_0x120d;typeof exports==_0x56fadc(0x182)&&typeof module<'u'?_0x4a80a1(exports,require(_0x56fadc(0x1aa)),require('@univerjs-pro/sheets-chart-ui'),require(_0x56fadc(0x123)),require(_0x56fadc(0x10f)),require(_0x56fadc(0x198)),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require(_0x56fadc(0x163))):typeof define==_0x56fadc(0x19f)&&define[_0x56fadc(0x1b9)]?define([_0x56fadc(0x12b),'@univerjs-pro/sheets-chart','@univerjs-pro/sheets-chart-ui','@univerjs/core',_0x56fadc(0x10f),_0x56fadc(0x198),_0x56fadc(0x113),_0x56fadc(0x144),_0x56fadc(0x163)],_0x4a80a1):(_0x1b31fa=typeof globalThis<'u'?globalThis:_0x1b31fa||self,_0x4a80a1(_0x1b31fa[_0x56fadc(0x117)]={},_0x1b31fa['UniverProSheetsChart'],_0x1b31fa['UniverProSheetsChartUi'],_0x1b31fa['UniverCore'],_0x1b31fa[_0x56fadc(0x141)],_0x1b31fa[_0x56fadc(0x118)],_0x1b31fa['UniverEngineFormula'],_0x1b31fa['UniverEngineRender'],_0x1b31fa[_0x56fadc(0x197)]));}(this,function(_0x26a883,_0x30936b,_0x33346a,_0x50ae3f,_0x1198dd,_0x3a0eb8,_0x5d723b,_0x3194c6,_0x5168d0){'use strict';const _0x5af836=_0x120d;var _0x3e7bd5=Object[_0x5af836(0x143)],_0x38809b=(_0x1f8d35,_0x4ed785,_0x2e1ff9)=>_0x4ed785 in _0x1f8d35?_0x3e7bd5(_0x1f8d35,_0x4ed785,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e1ff9}):_0x1f8d35[_0x4ed785]=_0x2e1ff9,_0x2da6bf=(_0x5b4c64,_0x3ffc71,_0x3d9cfe)=>_0x38809b(_0x5b4c64,typeof _0x3ffc71!=_0x5af836(0x154)?_0x3ffc71+'':_0x3ffc71,_0x3d9cfe);const _0x20b926=(_0x2067fc,_0x4e38bf,_0x207508)=>{_0x207508!==void 0x0&&_0x30936b['setProperty'](_0x2067fc,_0x4e38bf,_0x207508);},_0xd3f0c5=(_0x3e5c87,_0x54f282,_0x18c53d,_0x2d1e21={})=>{const _0x493e94=_0x5af836,_0x4b022c={},_0x5511a0={};if(_0x2d1e21[_0x493e94(0x18d)]){const _0x514b34=_0x2d1e21[_0x493e94(0x18d)];_0x20b926(_0x4b022c,_0x493e94(0x146),_0x514b34[_0x493e94(0x134)]),_0x20b926(_0x4b022c,_0x493e94(0x167),_0x514b34[_0x493e94(0x1a7)]),_0x20b926(_0x4b022c,'titles.title.fontSize',_0x514b34[_0x493e94(0x1d6)]),_0x20b926(_0x4b022c,_0x493e94(0x1c5),_0x514b34[_0x493e94(0x16d)]),_0x20b926(_0x4b022c,'titles.title.family',_0x514b34['fontStyle']),_0x20b926(_0x4b022c,_0x493e94(0x1d4),_0x514b34[_0x493e94(0x137)]),_0x20b926(_0x4b022c,_0x493e94(0x11b),_0x514b34[_0x493e94(0x140)]),_0x20b926(_0x4b022c,_0x493e94(0x1b6),_0x514b34[_0x493e94(0x176)]);}if(_0x2d1e21[_0x493e94(0x18b)]){const _0x3b2758=_0x2d1e21['legend'];_0x20b926(_0x4b022c,_0x493e94(0x10a),_0x3b2758['position']),_0x20b926(_0x4b022c,_0x493e94(0x12c),_0x3b2758[_0x493e94(0x1cf)]),_0x20b926(_0x4b022c,_0x493e94(0x13d),_0x3b2758[_0x493e94(0x1d6)]),_0x20b926(_0x4b022c,'legend.label.color',_0x3b2758[_0x493e94(0x11a)]),_0x20b926(_0x4b022c,_0x493e94(0x173),_0x3b2758[_0x493e94(0x137)]),_0x20b926(_0x4b022c,'legend.label.italic',_0x3b2758['italic']);}if(_0x2d1e21[_0x493e94(0x1ce)]){const _0x49660f=_0x2d1e21[_0x493e94(0x1ce)];_0x20b926(_0x4b022c,_0x493e94(0x1c2),_0x49660f[_0x493e94(0x14e)]),_0x20b926(_0x4b022c,_0x493e94(0x107),_0x49660f['borderColor']),_0x20b926(_0x4b022c,_0x493e94(0x19c),_0x49660f['hasPaddingAngle']),_0x20b926(_0x4b022c,'pie.isHalfPie',_0x49660f['isHalfPie']),_0x20b926(_0x4b022c,_0x493e94(0x1cd),_0x49660f[_0x493e94(0x1ca)]),_0x20b926(_0x4b022c,'pie.showLabelLine',_0x49660f[_0x493e94(0x12e)]);}if(_0x2d1e21[_0x493e94(0x1bf)]){const _0x3e2761=_0x2d1e21[_0x493e94(0x1bf)];_0x20b926(_0x4b022c,'tooltip.indicatorLabelColor',_0x3e2761[_0x493e94(0x149)]),_0x20b926(_0x4b022c,_0x493e94(0x121),_0x3e2761['indicatorLineType']),_0x20b926(_0x4b022c,'tooltip.indicatorLineColor',_0x3e2761[_0x493e94(0x1cb)]),_0x20b926(_0x4b022c,_0x493e94(0x147),_0x3e2761[_0x493e94(0x18c)]);}if(_0x2d1e21['allSeriesStyle']&&_0x20b926(_0x4b022c,_0x493e94(0x132),_0x2d1e21[_0x493e94(0x1a5)]['point']),_0x2d1e21[_0x493e94(0x128)]&&_0x20b926(_0x4b022c,_0x493e94(0x1d8),_0x2d1e21['area'][_0x493e94(0x1b4)]),_0x2d1e21[_0x493e94(0x19a)]&&_0x20b926(_0x4b022c,_0x493e94(0x19a),_0x2d1e21[_0x493e94(0x19a)]),_0x2d1e21[_0x493e94(0x133)]&&_0x20b926(_0x4b022c,'radar',_0x2d1e21[_0x493e94(0x133)]),_0x2d1e21[_0x493e94(0x138)]){const _0x3a9991=_0x2d1e21[_0x493e94(0x138)];_0x20b926(_0x4b022c,_0x493e94(0x1af),_0x3a9991[_0x493e94(0x134)]),_0x20b926(_0x4b022c,_0x493e94(0x16c),_0x3a9991[_0x493e94(0x1a7)]),_0x20b926(_0x4b022c,_0x493e94(0x1d3),_0x3a9991[_0x493e94(0x1d6)]),_0x20b926(_0x4b022c,_0x493e94(0x12a),_0x3a9991[_0x493e94(0x16d)]),_0x20b926(_0x4b022c,_0x493e94(0x15e),_0x3a9991[_0x493e94(0x1c3)]),_0x20b926(_0x4b022c,_0x493e94(0x1b1),_0x3a9991['bold']),_0x20b926(_0x4b022c,_0x493e94(0x120),_0x3a9991['axisAlignment']);}if(_0x2d1e21[_0x493e94(0x190)]){const _0x3eaaef=_0x2d1e21[_0x493e94(0x190)];_0x20b926(_0x4b022c,_0x493e94(0x1b5),_0x3eaaef['content']),_0x20b926(_0x4b022c,_0x493e94(0x17c),_0x3eaaef[_0x493e94(0x1a7)]),_0x20b926(_0x4b022c,_0x493e94(0x142),_0x3eaaef[_0x493e94(0x1d6)]),_0x20b926(_0x4b022c,_0x493e94(0x1a9),_0x3eaaef[_0x493e94(0x16d)]),_0x20b926(_0x4b022c,_0x493e94(0x188),_0x3eaaef[_0x493e94(0x1c3)]),_0x20b926(_0x4b022c,'titles.yAxisTitle.bold',_0x3eaaef['bold']),_0x20b926(_0x4b022c,_0x493e94(0x1b3),_0x3eaaef['axisAlignment']);}if(_0x2d1e21[_0x493e94(0x14b)]){const _0x56452b=_0x2d1e21[_0x493e94(0x14b)];_0x20b926(_0x4b022c,'titles.rightYAxisTitle.content',_0x56452b[_0x493e94(0x134)]),_0x20b926(_0x4b022c,_0x493e94(0x161),_0x56452b[_0x493e94(0x1a7)]),_0x20b926(_0x4b022c,_0x493e94(0x15f),_0x56452b[_0x493e94(0x1d6)]),_0x20b926(_0x4b022c,'titles.rightYAxisTitle.color',_0x56452b[_0x493e94(0x16d)]),_0x20b926(_0x4b022c,_0x493e94(0x127),_0x56452b[_0x493e94(0x1c3)]),_0x20b926(_0x4b022c,_0x493e94(0x1d0),_0x56452b[_0x493e94(0x137)]),_0x20b926(_0x4b022c,_0x493e94(0x13f),_0x56452b[_0x493e94(0x166)]);}_0x2d1e21[_0x493e94(0x112)]&&_0x20b926(_0x4b022c,_0x493e94(0x112),_0x2d1e21['xAxis']),_0x2d1e21['yAxis']&&_0x20b926(_0x4b022c,_0x493e94(0x122),_0x2d1e21[_0x493e94(0x122)]),_0x2d1e21[_0x493e94(0x1a6)]&&_0x20b926(_0x4b022c,'rightYAxis',_0x2d1e21[_0x493e94(0x1a6)]),_0x2d1e21[_0x493e94(0x187)]&&_0x20b926(_0x4b022c,_0x493e94(0x187),_0x2d1e21[_0x493e94(0x187)]);const _0xe5e370={'unitId':_0x3e5c87,'chartModelId':_0x54f282};let _0x1a1edc=!0x1;if(_0x18c53d!==void 0x0&&(_0xe5e370[_0x493e94(0x156)]=_0x18c53d,_0x1a1edc=!0x0),Object[_0x493e94(0x178)](_0x4b022c)['length']>0x0&&(_0xe5e370['style']=_0x4b022c,_0x1a1edc=!0x0),Object[_0x493e94(0x178)](_0x5511a0)[_0x493e94(0x195)]>0x0&&(_0xe5e370['context']=_0x5511a0,_0x1a1edc=!0x0),_0x1a1edc)return _0xe5e370;};class _0x3daa1e extends _0x50ae3f['FBase']{constructor(_0x156c74,_0x57c8a3,_0x23d78e,_0x1e2be6,_0x339623){const _0x48ac0b=_0x5af836;super(),_0x2da6bf(this,_0x48ac0b(0x193)),_0x2da6bf(this,_0x48ac0b(0x145)),_0x2da6bf(this,_0x48ac0b(0x115)),_0x2da6bf(this,_0x48ac0b(0x1ac)),_0x2da6bf(this,_0x48ac0b(0x10d)),_0x2da6bf(this,_0x48ac0b(0x186)),_0x2da6bf(this,_0x48ac0b(0x1a3)),_0x2da6bf(this,'x'),_0x2da6bf(this,'y'),_0x2da6bf(this,'width'),_0x2da6bf(this,_0x48ac0b(0x1c9)),_0x2da6bf(this,_0x48ac0b(0x156)),_0x2da6bf(this,_0x48ac0b(0x1d1)),_0x2da6bf(this,_0x48ac0b(0x10c)),(this[_0x48ac0b(0x115)]=_0x156c74,this[_0x48ac0b(0x1ac)]=_0x57c8a3,this[_0x48ac0b(0x193)]=_0x23d78e,this[_0x48ac0b(0x145)]=_0x1e2be6,_0x339623&&(this[_0x48ac0b(0x10d)]=_0x339623));}[_0x5af836(0x1b7)](){const _0x248207=_0x5af836;return this[_0x248207(0x156)];}[_0x5af836(0x169)](_0x115c4d){const _0xcafe59=_0x5af836;if(typeof _0x115c4d==_0xcafe59(0x15c)){const _0x34aaa8=_0x5d723b[_0xcafe59(0x183)](_0x115c4d);_0x34aaa8['sheetName']&&(this[_0xcafe59(0x1a3)]=_0x34aaa8[_0xcafe59(0x1a1)]),this['range']=_0x34aaa8[_0xcafe59(0x186)];}else this[_0xcafe59(0x186)]=_0x115c4d;return this;}[_0x5af836(0x160)](){const _0x4fa88f=_0x5af836;return this['range']=void 0x0,this[_0x4fa88f(0x1a3)]=void 0x0,this;}[_0x5af836(0x171)](_0x14ef92,_0x3df1ea,_0xde8a67,_0x2f51f4){const _0x215d0a=_0x5af836,_0x554d2e=this[_0x215d0a(0x145)][_0x215d0a(0x162)](_0x3194c6[_0x215d0a(0x11c)])[_0x215d0a(0x199)](this[_0x215d0a(0x115)]);if(!_0x554d2e)throw new Error('This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.');const _0xa19b4=_0x554d2e[_0x215d0a(0x1b8)](_0x5168d0[_0x215d0a(0x16f)]),_0x532028=_0x554d2e[_0x215d0a(0x1b8)](_0x5168d0[_0x215d0a(0x180)]),{transform:_0xa832e5}=_0x5168d0['convertPositionCellToSheetOverGrid'](this[_0x215d0a(0x115)],this[_0x215d0a(0x1ac)],{'row':_0x14ef92,'column':_0x3df1ea,'rowOffset':_0xde8a67,'columnOffset':_0x2f51f4},0x1,0x1,_0xa19b4,_0x532028),_0x13bada=_0xa832e5['top'],_0x577c84=_0xa832e5[_0x215d0a(0x185)];return this['x']=_0x577c84,this['y']=_0x13bada,this;}[_0x5af836(0x191)](_0x43476c,_0x11b7f2){return this['x']=_0x43476c,this['y']=_0x11b7f2,this;}[_0x5af836(0x19d)](_0xc10c0e){const _0x4fe789=_0x5af836;return this[_0x4fe789(0x156)]=_0xc10c0e,this;}[_0x5af836(0x110)](_0xab22e3){const _0x5cf10a=_0x5af836;return this[_0x5cf10a(0x119)]=_0xab22e3,this;}[_0x5af836(0x17d)](_0x3bbd35){const _0x11be06=_0x5af836;return this[_0x11be06(0x1c9)]=_0x3bbd35,this;}[_0x5af836(0x1c7)](_0x192255,_0x536c09){const _0x19a6b5=_0x5af836;return this[_0x19a6b5(0x1d1)]||(this[_0x19a6b5(0x1d1)]={}),_0x192255===''?(this[_0x19a6b5(0x1d1)]={...this['options'],..._0x536c09},this):(_0x30936b[_0x19a6b5(0x152)](this['options'],_0x192255,_0x536c09),this);}[_0x5af836(0x14f)](_0x12ba77){const _0x366352=_0x5af836;return this[_0x366352(0x10c)]=_0x12ba77,this;}[_0x5af836(0x155)](_0x3fddb5){const _0x1c9d2b=_0x5af836;return this['setOptions'](_0x1c9d2b(0x19a),_0x3fddb5),this;}[_0x5af836(0x1ad)](_0x235726){const _0x5973cc=_0x5af836;var _0x259c69;const _0xee15e5=((_0x259c69=this[_0x5973cc(0x1d1)])==null?void 0x0:_0x259c69[_0x5973cc(0x138)])||{};return _0xee15e5[_0x5973cc(0x134)]=_0x235726,this['setOptions']('xAxisTitle',_0xee15e5),this;}['setYAxisTitle'](_0x4b6756){const _0x3b3484=_0x5af836;var _0x408961;const _0x16406b=((_0x408961=this[_0x3b3484(0x1d1)])==null?void 0x0:_0x408961[_0x3b3484(0x190)])||{};return _0x16406b['content']=_0x4b6756,this[_0x3b3484(0x1c7)](_0x3b3484(0x190),_0x16406b),this;}[_0x5af836(0x15b)](_0x3a724e){const _0x31bbbe=_0x5af836;var _0x184bce;const _0x161d44=((_0x184bce=this[_0x31bbbe(0x1d1)])==null?void 0x0:_0x184bce[_0x31bbbe(0x14b)])||{};return _0x161d44['content']=_0x3a724e,this[_0x31bbbe(0x1c7)](_0x31bbbe(0x14b),_0x161d44),this;}[_0x5af836(0x1c8)](_0x359a49){const _0x2a1bce=_0x5af836;var _0x1d476c;const _0x53c126=((_0x1d476c=this[_0x2a1bce(0x1d1)])==null?void 0x0:_0x1d476c[_0x2a1bce(0x138)])||{};return this[_0x2a1bce(0x1c7)](_0x2a1bce(0x138),{..._0x53c126,..._0x359a49}),this;}[_0x5af836(0x179)](_0x3bf980){const _0x6aecef=_0x5af836;var _0x39ebf5;const _0x54cbd4=((_0x39ebf5=this[_0x6aecef(0x1d1)])==null?void 0x0:_0x39ebf5['yAxisTitle'])||{};return this[_0x6aecef(0x1c7)]('yAxisTitle',{..._0x54cbd4,..._0x3bf980}),this;}[_0x5af836(0x165)](_0x844843){const _0x359583=_0x5af836;var _0x27697c;const _0x4309c4=((_0x27697c=this[_0x359583(0x1d1)])==null?void 0x0:_0x27697c[_0x359583(0x14b)])||{};return this[_0x359583(0x1c7)](_0x359583(0x14b),{..._0x4309c4,..._0x844843}),this;}[_0x5af836(0x158)](_0x4009b1){const _0xc4cfd6=_0x5af836;return this['setOptions'](_0xc4cfd6(0x17b),_0x4009b1),this;}[_0x5af836(0x126)](_0x230797){const _0x5d91af=_0x5af836;return this[_0x5d91af(0x1c7)](_0x5d91af(0x1bf),_0x230797),this;}[_0x5af836(0x10e)](_0xe20280){const _0x5716b5=_0x5af836;return this[_0x5716b5(0x1c7)]('allSeriesStyle',_0xe20280),this;}[_0x5af836(0x192)](_0x11dad5,_0x485737){const _0x494b85=_0x5af836;return this[_0x494b85(0x1c7)](_0x494b85(0x187),{[_0x11dad5]:_0x485737}),this;}[_0x5af836(0x130)](){const _0x22041e=_0x5af836;var _0x4406af;let _0x36d15e=this[_0x22041e(0x1ac)];if(this[_0x22041e(0x1a3)]){const _0x27abde=(_0x4406af=this[_0x22041e(0x193)][_0x22041e(0x150)](this['sourceSheetName']))==null?void 0x0:_0x4406af[_0x22041e(0x1c0)]();if(!_0x27abde)throw new Error(_0x22041e(0x13b)+this['sourceSheetName']+_0x22041e(0x16b));_0x36d15e=_0x27abde;}return{'unitId':this[_0x22041e(0x115)],'subUnitId':_0x36d15e,'chartId':this[_0x22041e(0x10d)],'range':this[_0x22041e(0x186)],'x':this['x'],'y':this['y'],'width':this[_0x22041e(0x119)],'height':this['height'],'chartType':this[_0x22041e(0x156)],'options':this[_0x22041e(0x1d1)],'isRowDirection':this[_0x22041e(0x10c)]};}}class _0x1e75c0{constructor(_0x18feb4,_0x2ec7c0,_0x3592eb,_0x31bc84){const _0x4b0d26=_0x5af836;_0x2da6bf(this,_0x4b0d26(0x115)),_0x2da6bf(this,_0x4b0d26(0x1ac)),_0x2da6bf(this,_0x4b0d26(0x10d)),_0x2da6bf(this,'_injector'),(this[_0x4b0d26(0x115)]=_0x18feb4,this['subUnitId']=_0x2ec7c0,this['chartId']=_0x3592eb,this[_0x4b0d26(0x145)]=_0x31bc84);}['getChartId'](){const _0x2e182c=_0x5af836;return this[_0x2e182c(0x10d)];}['getRange'](){const _0x5b8406=_0x5af836,_0x45bd4b=this[_0x5b8406(0x145)][_0x5b8406(0x162)](_0x30936b[_0x5b8406(0x1cc)])[_0x5b8406(0x177)](this[_0x5b8406(0x10d)]);if(_0x45bd4b)return _0x45bd4b[_0x5b8406(0x175)][_0x5b8406(0x1a2)]();}['updateRange'](_0x4202da){const _0x16824f=_0x5af836;return this['_injector'][_0x16824f(0x162)](_0x50ae3f[_0x16824f(0x13a)])[_0x16824f(0x184)](_0x30936b['ChartUpdateSourceCommand']['id'],{'unitId':this['unitId'],'chartModelId':this['chartId'],'range':_0x4202da});}['getSeriesData'](){const _0x2a8343=_0x5af836;var _0x4ddc1a;const _0x397b34=this[_0x2a8343(0x145)][_0x2a8343(0x162)](_0x30936b['SheetsChartService'])[_0x2a8343(0x177)](this[_0x2a8343(0x10d)]);if(_0x397b34)return(_0x4ddc1a=_0x397b34[_0x2a8343(0x129)])==null?void 0x0:_0x4ddc1a[_0x2a8343(0x1a0)];}[_0x5af836(0x11d)](){const _0x255044=_0x5af836;var _0x556f4b;const _0x20b890=this[_0x255044(0x145)][_0x255044(0x162)](_0x30936b[_0x255044(0x1cc)])['getChartModel'](this[_0x255044(0x10d)]);if(_0x20b890)return(_0x556f4b=_0x20b890[_0x255044(0x129)])==null?void 0x0:_0x556f4b[_0x255044(0x1a8)];}['modify'](){const _0x352d42=_0x5af836,_0x586c67=this[_0x352d42(0x145)][_0x352d42(0x162)](_0x50ae3f[_0x352d42(0x189)])[_0x352d42(0x1bb)](_0x50ae3f['UniverInstanceType'][_0x352d42(0x124)]);return new _0x3daa1e(this[_0x352d42(0x115)],this['subUnitId'],_0x586c67,this['_injector'],this[_0x352d42(0x10d)]);}}class _0x3b1115 extends _0x3a0eb8['FWorksheet']{async[_0x5af836(0x11e)](_0x588494){const _0x428808=_0x5af836;var _0x24de1a,_0x4514e6,_0x4db992;const _0x552217=_0x588494[_0x428808(0x115)]||this[_0x428808(0x17f)]()[_0x428808(0x164)](),_0xd34de6=_0x588494[_0x428808(0x1ac)]||this['getSheetId'](),_0x87d4b9=_0x588494[_0x428808(0x10d)]||_0x50ae3f[_0x428808(0x19b)](),_0x54cfba=_0x588494['chartType'],_0x42e136=_0x588494[_0x428808(0x186)],_0x4c6752={'x':_0x588494['x'],'y':_0x588494['y']},_0x57030b=_0x588494[_0x428808(0x119)],_0x135b53=_0x588494[_0x428808(0x1c9)],_0x3b1d68=(_0x24de1a=_0x588494[_0x428808(0x1d1)])==null?void 0x0:_0x24de1a[_0x428808(0x114)],_0x458f24=(_0x4514e6=_0x588494['options'])==null?void 0x0:_0x4514e6[_0x428808(0x106)],_0x38c4c1=_0xd3f0c5(_0x552217,_0x87d4b9,_0x54cfba,_0x588494[_0x428808(0x1d1)]),_0x1975fb=(_0x4db992=_0x588494[_0x428808(0x17a)])!=null?_0x4db992:!0x0;if(!_0x42e136)throw new Error(_0x428808(0x159));return await this['_commandService'][_0x428808(0x184)](_0x33346a[_0x428808(0x111)]['id'],{'unitId':_0x552217,'subUnitId':_0xd34de6,'chartId':_0x87d4b9,'chartType':_0x54cfba,'range':_0x42e136,'position':_0x4c6752,'width':_0x57030b,'height':_0x135b53,'backgroundColor':_0x3b1d68,'borderColor':_0x458f24,'config':_0x38c4c1,'isRowDirection':_0x1975fb}),new _0x1e75c0(_0x552217,_0xd34de6,_0x87d4b9,this[_0x428808(0x145)]);}['updateChart'](_0x3d5841){const {unitId:_0x23396b,chartId:_0x3a282c,chartType:_0x27f2e3,options:_0x2b8137}=_0x3d5841,_0x1c9bf2=_0xd3f0c5(_0x23396b,_0x3a282c,_0x27f2e3,_0x2b8137);this['_commandService']['executeCommand'](_0x30936b['ChartUpdateConfigCommand']['id'],_0x1c9bf2);}['newChart'](_0x9e0037){const _0x2090f6=_0x5af836;if(_0x9e0037)return new _0x3daa1e(_0x9e0037[_0x2090f6(0x115)],_0x9e0037[_0x2090f6(0x1ac)],this[_0x2090f6(0x193)],this[_0x2090f6(0x145)],_0x9e0037[_0x2090f6(0x10d)]);const _0x44ae69=this[_0x2090f6(0x17f)]()[_0x2090f6(0x164)](),_0x1181d5=this[_0x2090f6(0x1c0)]();return new _0x3daa1e(_0x44ae69,_0x1181d5,this[_0x2090f6(0x193)],this[_0x2090f6(0x145)]);}[_0x5af836(0x1d5)](){const _0x5a1d2a=_0x5af836,_0x269784=this[_0x5a1d2a(0x145)][_0x5a1d2a(0x162)](_0x30936b[_0x5a1d2a(0x1cc)]),_0x5309f1=this['getWorkbook']()[_0x5a1d2a(0x164)]();return _0x269784[_0x5a1d2a(0x151)](_0x5309f1,this[_0x5a1d2a(0x1c0)]())[_0x5a1d2a(0x10b)](_0x6ad0f1=>new _0x1e75c0(_0x5309f1,this['getSheetId'](),_0x6ad0f1['id'],this[_0x5a1d2a(0x145)]));}[_0x5af836(0x196)](_0x570824){const _0x4e852d=_0x5af836,_0xd4a62c=_0x570824['unitId'],_0x46c632=_0x570824[_0x4e852d(0x1ac)],_0x53de56=_0x570824[_0x4e852d(0x10d)],_0x504045={'unitId':_0xd4a62c,'drawings':[{'unitId':_0xd4a62c,'subUnitId':_0x46c632,'drawingId':_0x53de56,'drawingType':_0x50ae3f[_0x4e852d(0x1ae)][_0x4e852d(0x1a4)]}]};return this[_0x4e852d(0x1d7)]['executeCommand'](_0x1198dd['RemoveSheetDrawingCommand']['id'],_0x504045);}[_0x5af836(0x157)](_0x315c52,_0x325019){const _0x1bca6b=_0x5af836;this[_0x1bca6b(0x145)]['get'](_0x30936b['ChartThemeService'])[_0x1bca6b(0x11f)](_0x315c52,_0x325019);}}_0x3a0eb8[_0x5af836(0x18f)][_0x5af836(0x1b0)](_0x3b1115);class _0xa6a064 extends _0x3daa1e{constructor(_0x298875,_0x5d91b8,_0x1d2e8a,_0x4e204a,_0xf2c984){const _0x5e198e=_0x5af836;super(_0x298875,_0x5d91b8,_0x1d2e8a,_0x4e204a,_0xf2c984),_0x2da6bf(this,'lineStyle'),_0x2da6bf(this,_0x5e198e(0x139)),_0x2da6bf(this,_0x5e198e(0x13c)),_0x2da6bf(this,'dataPointSize');}['setLineStyle'](_0x372069){return this['lineStyle']=_0x372069,this;}[_0x5af836(0x153)](_0x35c617){const _0x59cd1d=_0x5af836;return this[_0x59cd1d(0x139)]=_0x35c617,this;}[_0x5af836(0x136)](_0x2f7af5){const _0x34f0e4=_0x5af836;return this[_0x34f0e4(0x13c)]=_0x2f7af5,this;}['setDataPointSize'](_0x3436a3){const _0x9f8613=_0x5af836;return this[_0x9f8613(0x1be)]=_0x3436a3,this;}[_0x5af836(0x130)](){const _0x96c1a3=_0x5af836,_0x872df9=super[_0x96c1a3(0x130)]();_0x872df9['chartType']=_0x30936b['ChartTypeBits'][_0x96c1a3(0x181)];const _0x31efba=_0x872df9[_0x96c1a3(0x1d1)]||{};return _0x20b926(_0x31efba,_0x96c1a3(0x1d8),this[_0x96c1a3(0x1b4)]),_0x20b926(_0x31efba,_0x96c1a3(0x170),this[_0x96c1a3(0x139)]),_0x20b926(_0x31efba,_0x96c1a3(0x1ab),this[_0x96c1a3(0x13c)]),_0x20b926(_0x31efba,'allSeriesStyle.point.size',this[_0x96c1a3(0x1be)]),_0x872df9[_0x96c1a3(0x1d1)]=_0x31efba,_0x872df9;}}class _0x19625a extends _0x3daa1e{['asLineChart'](){const _0x5dec4c=_0x5af836;return new _0xa6a064(this[_0x5dec4c(0x115)],this[_0x5dec4c(0x1ac)],this[_0x5dec4c(0x193)],this[_0x5dec4c(0x145)],this['chartId']);}}_0x3daa1e[_0x5af836(0x1b0)](_0x19625a);class _0x148416 extends _0x3daa1e{constructor(_0x14419e,_0x5dd65f,_0x4d4798,_0x588c53,_0x234f94){const _0x228411=_0x5af836;super(_0x14419e,_0x5dd65f,_0x4d4798,_0x588c53,_0x234f94),_0x2da6bf(this,_0x228411(0x14e)),_0x2da6bf(this,'borderColor'),_0x2da6bf(this,_0x228411(0x14d)),_0x2da6bf(this,_0x228411(0x109)),_0x2da6bf(this,_0x228411(0x1ca)),_0x2da6bf(this,'showLabelLine');}[_0x5af836(0x172)](_0x27c0aa){return this['doughnutHole']=_0x27c0aa,this;}[_0x5af836(0x18e)](_0x27613d){return this['borderColor']=_0x27613d,this;}['setHasPaddingAngle'](_0x269692){return this['hasPaddingAngle']=_0x269692,this;}[_0x5af836(0x108)](_0x23209d){const _0x1a842e=_0x5af836;return this[_0x1a842e(0x109)]=_0x23209d,this;}['setRosePie'](_0x4fcc38){const _0x5154b9=_0x5af836;return this[_0x5154b9(0x1ca)]=_0x4fcc38,this;}[_0x5af836(0x125)](_0x9fed54){const _0x3af8ae=_0x5af836;return this[_0x3af8ae(0x12e)]=_0x9fed54,this;}[_0x5af836(0x130)](){const _0x3cf174=_0x5af836,_0x1e5c7d=super['build']();_0x1e5c7d[_0x3cf174(0x156)]=_0x30936b['ChartTypeBits'][_0x3cf174(0x174)];const _0x5b9415=_0x1e5c7d[_0x3cf174(0x1d1)]||{};return _0x20b926(_0x5b9415,'pie.doughnutHole',this[_0x3cf174(0x14e)]),_0x20b926(_0x5b9415,_0x3cf174(0x107),this['borderColor']),_0x20b926(_0x5b9415,_0x3cf174(0x19c),this['hasPaddingAngle']),_0x20b926(_0x5b9415,_0x3cf174(0x1bd),this['isHalfPie']),_0x20b926(_0x5b9415,'pie.rosePie',this[_0x3cf174(0x1ca)]),_0x20b926(_0x5b9415,_0x3cf174(0x148),this[_0x3cf174(0x12e)]),_0x1e5c7d['options']=_0x5b9415,_0x1e5c7d;}}class _0x1820eb extends _0x3daa1e{[_0x5af836(0x131)](){const _0xba45f1=_0x5af836;return new _0x148416(this[_0xba45f1(0x115)],this['subUnitId'],this[_0xba45f1(0x193)],this[_0xba45f1(0x145)],this[_0xba45f1(0x10d)]);}}_0x3daa1e[_0x5af836(0x1b0)](_0x1820eb);class _0x5aa493 extends _0x3daa1e{constructor(_0x3238da,_0xf6bd19,_0x417fc4,_0x1bb5f9,_0x114738){super(_0x3238da,_0xf6bd19,_0x417fc4,_0x1bb5f9,_0x114738),_0x2da6bf(this,'shape'),_0x2da6bf(this,'fill');}[_0x5af836(0x18a)](_0xf93731){const _0x5f0ca7=_0x5af836;return this[_0x5f0ca7(0x135)]=_0xf93731,this;}[_0x5af836(0x194)](_0x491eba){const _0x3ca3ea=_0x5af836;return this[_0x3ca3ea(0x16a)]=_0x491eba,this;}['build'](){const _0xad067c=_0x5af836,_0x3b1e9a=super[_0xad067c(0x130)]();_0x3b1e9a[_0xad067c(0x156)]=_0x30936b[_0xad067c(0x1c1)][_0xad067c(0x15a)];const _0x5a514a=_0x3b1e9a[_0xad067c(0x1d1)]||{};return _0x20b926(_0x5a514a,_0xad067c(0x12d),this['shape']),_0x20b926(_0x5a514a,_0xad067c(0x14a),this[_0xad067c(0x16a)]),_0x3b1e9a[_0xad067c(0x1d1)]=_0x5a514a,_0x3b1e9a;}}class _0x1c9237 extends _0x3daa1e{[_0x5af836(0x17e)](){const _0x2eafd8=_0x5af836;return new _0x5aa493(this[_0x2eafd8(0x115)],this['subUnitId'],this[_0x2eafd8(0x193)],this[_0x2eafd8(0x145)],this[_0x2eafd8(0x10d)]);}}_0x3daa1e[_0x5af836(0x1b0)](_0x1c9237),_0x26a883[_0x5af836(0x168)]=_0x1e75c0,_0x26a883[_0x5af836(0x14c)]=_0x3daa1e,_0x26a883['LineChartBuilder']=_0xa6a064,_0x26a883[_0x5af836(0x1c4)]=_0x148416,_0x26a883['RadarChartBuilder']=_0x5aa493,Object[_0x5af836(0x143)](_0x26a883,Symbol[_0x5af836(0x105)],{'value':_0x5af836(0x1b2)});}));function _0x1821(){const _0x565674=['setDoughnutHole','legend.label.bold','Pie','dataSource','position','getChartModel','keys','setYAxisTextStyle','isRowDirection','invalidValueType','titles.yAxisTitle.font','setHeight','asRadarChart','getWorkbook','SheetSkeletonManagerService','Line','object','deserializeRangeWithSheet','executeCommand','left','range','seriesStyleMap','titles.yAxisTitle.family','IUniverInstanceService','setShape','legend','indicatorLabelTextColor','title','setBorderColor','FWorksheet','yAxisTitle','setAbsolutePosition','setSeriesStyle','_workbook','setFill','length','removeChart','UniverSheetsUi','@univerjs/sheets/facade','getRenderById','theme','generateRandomId','pie.hasPaddingAngle','setChartType','1381551DJzroy','function','series','sheetName','getRangeInfo','sourceSheetName','DRAWING_CHART','allSeriesStyle','yRightAxis','font','category','titles.yAxisTitle.color','@univerjs-pro/sheets-chart','allSeriesStyle.point.color','subUnitId','setXAxisTitle','DrawingTypeEnum','titles.xAxisTitle.content','extend','titles.xAxisTitle.bold','Module','yAxis.label.axisTitleAlign','lineStyle','titles.yAxisTitle.content','titles.titlePosition','getChartType','with','amd','8092920sXmTfq','getCurrentUnitForType','1630095wXjozR','pie.isHalfPie','dataPointSize','axisPointer','getSheetId','ChartTypeBits','pie.doughnutHole','fontStyle','PieChartBuilder','titles.title.color','16696870tfCODp','setOptions','setXAxisTextStyle','height','rosePie','indicatorLineColor','SheetsChartService','pie.rosePie','pie','selectMode','titles.rightYAxisTitle.bold','options','8nuiiOt','titles.xAxisTitle.fontSize','titles.title.bold','getCharts','fontSize','_commandService','area.lineStyle','toStringTag','borderColor','pie.borderColor','setIsHalfPie','isHalfPie','legend.position','map','transposeRowsAndColumns','chartId','setAllSeriesStyle','@univerjs/sheets-drawing-ui','setWidth','InsertChartCommand','xAxis','@univerjs/engine-formula','backgroundColor','unitId','9AyVSnU','UniverProSheetsChartUiFacade','UniverSheetsFacade','width','color','titles.title.align','IRenderManagerService','getCategoryData','insertChart','registerTheme','xAxis.label.axisTitleAlign','tooltip.indicatorLineType','yAxis','@univerjs/core','UNIVER_SHEET','setShowLabelLine','setAxisPointerStyle','titles.rightYAxisTitle.family','area','config','titles.xAxisTitle.color','exports','legend.selectMode','radar.shape','showLabelLine','4VuKlRH','build','asPieChart','allSeriesStyle.point','radar','content','shape','setDataPointColor','bold','xAxisTitle','dataPointShape','CommandService','Sheet\x20','dataPointColor','legend.label.fontSize','338038gcXHYx','rightYAxis.label.axisTitleAlign','titleAlignment','UniverSheetsDrawingUi','titles.yAxisTitle.fontSize','defineProperty','@univerjs/engine-render','_injector','titles.title.content','tooltip.indicatorLabelTextColor','pie.showLabelLine','indicatorLabelColor','radar.fill','rightYAxisTitle','FChartBuilderBase','hasPaddingAngle','doughnutHole','setTransposeRowsAndColumns','getSheetBySheetName','getUnitChartModels','setProperty','setDataPointShape','symbol','setTheme','chartType','registerChartTheme','setInvalidValueStrategy','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','Radar','setRightYAxisTitle','string','9019171QRhGFM','titles.xAxisTitle.family','titles.rightYAxisTitle.fontSize','clearRange','titles.rightYAxisTitle.font','get','@univerjs/sheets-ui','getUnitId','setRightYAxisTextStyle','axisAlignment','titles.title.font','FChart','addRange','fill','\x20not\x20found','titles.xAxisTitle.font','fontColor','4488496qTdjwG','ISheetSelectionRenderService','allSeriesStyle.point.shape','setPosition'];_0x1821=function(){return _0x565674;};return _0x1821();}
|