@univerjs-pro/sheets-chart 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -0
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -0
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/commands/commands/sheets-chart.command.d.ts +22 -0
  44. package/lib/types/controllers/sheets-chart.controller.d.ts +11 -0
  45. package/lib/types/facade/chart-builder/builder-util.d.ts +5 -0
  46. package/lib/types/facade/chart-builder/chart-builder-base.d.ts +899 -0
  47. package/lib/types/facade/chart-builder/line-chart-builder.d.ts +160 -0
  48. package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +189 -0
  49. package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +97 -0
  50. package/lib/types/facade/chart-builder/types.d.ts +34 -0
  51. package/lib/types/facade/f-chart.d.ts +127 -0
  52. package/lib/types/facade/f-enum.d.ts +203 -0
  53. package/lib/types/facade/f-worksheet.d.ts +199 -0
  54. package/lib/types/facade/index.d.ts +20 -0
  55. package/lib/types/index.d.ts +1 -0
  56. package/lib/types/plugin.d.ts +2 -5
  57. package/lib/types/services/chart-model.service.d.ts +2 -1
  58. package/lib/umd/facade.js +1 -0
  59. package/lib/umd/index.js +1 -1
  60. package/lib/umd/locale/ca-ES.js +1 -1
  61. package/lib/umd/locale/en-US.js +1 -1
  62. package/lib/umd/locale/es-ES.js +1 -1
  63. package/lib/umd/locale/fa-IR.js +1 -1
  64. package/lib/umd/locale/fr-FR.js +1 -1
  65. package/lib/umd/locale/ja-JP.js +1 -1
  66. package/lib/umd/locale/ko-KR.js +1 -1
  67. package/lib/umd/locale/ru-RU.js +1 -1
  68. package/lib/umd/locale/sk-SK.js +1 -1
  69. package/lib/umd/locale/vi-VN.js +1 -1
  70. package/lib/umd/locale/zh-CN.js +1 -1
  71. package/lib/umd/locale/zh-TW.js +1 -1
  72. package/package.json +19 -6
@@ -0,0 +1,203 @@
1
+ import { AxisAlignEnum, ChartBorderDashType, ChartTypeBits, LegendPositionEnum, LinePointShape, RadarShape, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/engine-chart';
2
+ /**
3
+ * @ignore
4
+ */
5
+ export interface IFSheetsChartEnumMixin {
6
+ /**
7
+ * Represents the type of the chart. {@link ChartTypeBits}
8
+ * @description This enum is used to specify the type of the chart. Which is binary-like value, each bit represents a type of the chart.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const fWorkbook = univerAPI.getActiveWorkbook();
13
+ * const fWorksheet = fWorkbook.getActiveSheet();
14
+ *
15
+ * // Create a column chart with data source A1:D6.
16
+ * // The starting position is upper-left corner of cell B2.
17
+ * const chartInfo = fWorksheet.newChart()
18
+ * .setChartType(univerAPI.Enum.ChartType.Column)
19
+ * .addRange('A1:D6')
20
+ * .setPosition(1, 1, 0, 0)
21
+ * .build();
22
+ * await fWorksheet.insertChart(chartInfo);
23
+ * ```
24
+ */
25
+ ChartType: typeof ChartTypeBits;
26
+ /**
27
+ * Represents the position of the legend in the chart. {@link LegendPositionEnum}
28
+ * The possible values are: BOTTOM, TOP, LEFT, RIGHT, HIDE.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const fWorkbook = univerAPI.getActiveWorkbook();
33
+ * const fWorksheet = fWorkbook.getActiveSheet();
34
+ *
35
+ * // Create a line chart with data source A1:D6.
36
+ * // The starting position is upper-left corner of cell B2.
37
+ * // The legend is positioned at the top of the chart.
38
+ * const chartInfo = fWorksheet.newChart()
39
+ * .asLineChart()
40
+ * .addRange('A1:D6')
41
+ * .setPosition(1, 1, 0, 0)
42
+ * .setOptions('legend.position', univerAPI.Enum.LegendPositionEnum.Top)
43
+ * .build();
44
+ * await fWorksheet.insertChart(chartInfo);
45
+ * ```
46
+ */
47
+ LegendPositionEnum: typeof LegendPositionEnum;
48
+ /**
49
+ * Represents the selection mode of the chart. {@link SelectModeEnum}
50
+ * The possible values are: SINGLE, MULTIPLE, Close. It used to specify the selection mode of the chart legend.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const fWorkbook = univerAPI.getActiveWorkbook();
55
+ * const fWorksheet = fWorkbook.getActiveSheet();
56
+ *
57
+ * // Create a line chart with data source A1:D6.
58
+ * // The starting position is upper-left corner of cell B2.
59
+ * // The legend is in single selection mode.
60
+ * const chartInfo = fWorksheet.newChart()
61
+ * .asLineChart()
62
+ * .addRange('A1:D6')
63
+ * .setPosition(1, 1, 0, 0)
64
+ * .setOptions('legend.selectMode', univerAPI.Enum.SelectModeEnum.Single)
65
+ * .build();
66
+ * await fWorksheet.insertChart(chartInfo);
67
+ * ```
68
+ */
69
+ SelectModeEnum: typeof SelectModeEnum;
70
+ /**
71
+ * Represents the alignment of the axis. {@link AxisAlignEnum}
72
+ * The possible values are: START, CENTER, END.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const fWorkbook = univerAPI.getActiveWorkbook();
77
+ * const fWorksheet = fWorkbook.getActiveSheet();
78
+ *
79
+ * // Create a line chart with data source A1:D6.
80
+ * // The starting position is upper-left corner of cell B2.
81
+ * // The x-axis title is set to 'X Axis Title' with red font color and aligned to the end of the axis.
82
+ * const chartInfo = fWorksheet.newChart()
83
+ * .asLineChart()
84
+ * .addRange('A1:D6')
85
+ * .setPosition(1, 1, 0, 0)
86
+ * .setOptions('', {
87
+ * xAxisTitle: {
88
+ * content: 'X Axis Title',
89
+ * fontColor: '#ff0000',
90
+ * axisAlignment: univerAPI.Enum.AxisAlignEnum.End,
91
+ * }
92
+ * })
93
+ * .build();
94
+ * await fWorksheet.insertChart(chartInfo);
95
+ * ```
96
+ */
97
+ AxisAlignEnum: typeof AxisAlignEnum;
98
+ /**
99
+ * Represents the type of the border dash. {@link ChartBorderDashType}
100
+ * The possible values are: SOLID, DOTTED, DASHED.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const fWorkbook = univerAPI.getActiveWorkbook();
105
+ * const fWorksheet = fWorkbook.getActiveSheet();
106
+ *
107
+ * // Create a line chart with data source A1:D6.
108
+ * // The starting position is upper-left corner of cell B2.
109
+ * // The axis pointer style is set.
110
+ * const chartInfo = fWorksheet.newChart()
111
+ * .asLineChart()
112
+ * .addRange('A1:D6')
113
+ * .setPosition(1, 1, 0, 0)
114
+ * .setAxisPointerStyle({
115
+ * indicatorLabelColor: '#ff0000',
116
+ * indicatorLineType: univerAPI.Enum.ChartBorderDashType.Solid,
117
+ * indicatorLineColor: '#00ff00',
118
+ * indicatorLabelTextColor: '#0000ff',
119
+ * })
120
+ * .build();
121
+ * await fWorksheet.insertChart(chartInfo);
122
+ * ```
123
+ */
124
+ ChartBorderDashType: typeof ChartBorderDashType;
125
+ /**
126
+ * Represents the shape of the data point in the line chart. {@link LinePointShape}
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * const fWorkbook = univerAPI.getActiveWorkbook();
131
+ * const fWorksheet = fWorkbook.getActiveSheet();
132
+ *
133
+ * // Create a line chart with data source A1:D6.
134
+ * // The starting position is upper-left corner of cell B2.
135
+ * // The data point shape is set to circle, color is red, and size is 10.
136
+ * const chartInfo = fWorksheet.newChart()
137
+ * .asLineChart()
138
+ * .addRange('A1:D6')
139
+ * .setPosition(1, 1, 0, 0)
140
+ * .setDataPointShape(univerAPI.Enum.LinePointShape.CIRCLE)
141
+ * .setDataPointColor('#ff0000')
142
+ * .setDataPointSize(10)
143
+ * .build();
144
+ * await fWorksheet.insertChart(chartInfo);
145
+ * ```
146
+ */
147
+ LinePointShape: typeof LinePointShape;
148
+ /**
149
+ * Represents the position of the title in the chart. {@link TitlePositionEnum}
150
+ *
151
+ * @example
152
+ * ```ts
153
+ * const fWorkbook = univerAPI.getActiveWorkbook();
154
+ * const fWorksheet = fWorkbook.getActiveSheet();
155
+ *
156
+ * // Create a line chart with data source A1:D6.
157
+ * // The starting position is upper-left corner of cell B2.
158
+ * // The title is positioned at the top of the chart.
159
+ * const chartInfo = fWorksheet.newChart()
160
+ * .asLineChart()
161
+ * .addRange('A1:D6')
162
+ * .setPosition(1, 1, 0, 0)
163
+ * .setOptions('', {
164
+ * title: {
165
+ * content: 'Chart Title',
166
+ * position: univerAPI.Enum.TitlePositionEnum.TOP,
167
+ * },
168
+ * })
169
+ * .build();
170
+ * await fWorksheet.insertChart(chartInfo);
171
+ * ```
172
+ */
173
+ TitlePositionEnum: typeof TitlePositionEnum;
174
+ /**
175
+ * Represents the shape of the radar chart. {@link RadarShape}
176
+ *
177
+ * @example
178
+ * ```ts
179
+ * const fWorkbook = univerAPI.getActiveWorkbook();
180
+ * const fWorksheet = fWorkbook.getActiveSheet();
181
+ *
182
+ * // Create a radar chart with data source A1:D6.
183
+ * // The starting position is upper-left corner of cell B2.
184
+ * // The shape of the radar chart is set to polygon and filled with red color.
185
+ * const chartInfo = fWorksheet.newChart()
186
+ * .asRadarChart()
187
+ * .addRange('A1:D6')
188
+ * .setPosition(1, 1, 0, 0)
189
+ * .setShape(univerAPI.Enum.RadarShape.Polygon)
190
+ * .setFill(true)
191
+ * .build();
192
+ * await fWorksheet.insertChart(chartInfo);
193
+ * ```
194
+ */
195
+ RadarShape: typeof RadarShape;
196
+ }
197
+ /**
198
+ * @ignore
199
+ */
200
+ declare module '@univerjs/core/facade' {
201
+ interface FEnum extends IFSheetsChartEnumMixin {
202
+ }
203
+ }
@@ -0,0 +1,199 @@
1
+ import type { IEchartTheme } from '@univerjs-pro/engine-chart';
2
+ import type { IChartBuilderInfo } from './chart-builder/chart-builder-base';
3
+ import { FWorksheet } from '@univerjs/sheets/facade';
4
+ import { FChartBuilderBase } from './chart-builder/chart-builder-base';
5
+ import { FChart } from './f-chart';
6
+ /**
7
+ * @ignore
8
+ */
9
+ export interface IFWorksheetChartMixin {
10
+ /**
11
+ * Adds a new chart to this sheet.
12
+ * @param {IChartBuilderInfo} chartBuildInfo - The chart builder info.
13
+ * @returns {Promise<FChart>} - The new chart.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const fWorkbook = univerAPI.getActiveWorkbook();
18
+ * const fWorksheet = fWorkbook.getActiveSheet();
19
+ *
20
+ * // Create a column chart with data source A1:D6.
21
+ * // The starting position is upper-left corner of cell B2.
22
+ * const chartInfo = fWorksheet.newChart()
23
+ * .setChartType(univerAPI.Enum.ChartType.Column)
24
+ * .addRange('A1:D6')
25
+ * .setPosition(1, 1, 0, 0)
26
+ * .build();
27
+ * await fWorksheet.insertChart(chartInfo);
28
+ * ```
29
+ */
30
+ insertChart(chartBuildInfo: IChartBuilderInfo): Promise<FChart>;
31
+ /**
32
+ * Updates the chart on this sheet. This api can not update source range, please use FChart.updateRange.
33
+ * @param {IChartBuilderInfo} chartBuildInfo - The chart builder info.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const fWorkbook = univerAPI.getActiveWorkbook();
38
+ * const fWorksheet = fWorkbook.getActiveSheet();
39
+ *
40
+ * // Create a column chart with data source A1:D6.
41
+ * // The starting position is upper-left corner of cell B2.
42
+ * const chartInfo = fWorksheet.newChart()
43
+ * .setChartType(univerAPI.Enum.ChartType.Column)
44
+ * .addRange('A1:D6')
45
+ * .setPosition(1, 1, 0, 0)
46
+ * .build();
47
+ * await fWorksheet.insertChart(chartInfo);
48
+ *
49
+ * // Get all charts on the active sheet.
50
+ * const charts = fWorksheet.getCharts();
51
+ *
52
+ * // Update the first chart after 3 seconds.
53
+ * setTimeout(() => {
54
+ * const newChartInfo = fWorksheet.newChart(charts[0])
55
+ * .asLineChart()
56
+ * .setOptions('legend.position', univerAPI.Enum.LegendPositionEnum.Right)
57
+ * .build();
58
+ * fWorksheet.updateChart(newChartInfo);
59
+ * }, 3000);
60
+ * ```
61
+ */
62
+ updateChart(chartBuildInfo: IChartBuilderInfo): void;
63
+ /**
64
+ * Returns a builder to create a new chart for this sheet.The builder will not automatically create the chart. You must call build() on the returned builder to create the chart by calling insertChart(chartBuilder).
65
+ * @description If the fChart is provided, the builder will be initialized with the existing chart's data.
66
+ * @param {FChart} [fChart] - The chart to update.
67
+ * @returns {FChartBuilderBase} - a new chart builder
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const fWorkbook = univerAPI.getActiveWorkbook();
72
+ * const fWorksheet = fWorkbook.getActiveSheet();
73
+ *
74
+ * // Create a column chart with data source A1:D6.
75
+ * // The starting position is upper-left corner of cell B2.
76
+ * // The width of the chart is 600 and the height is 400.
77
+ * const chartInfo = fWorksheet.newChart()
78
+ * .setChartType(univerAPI.Enum.ChartType.Column)
79
+ * .addRange('A1:D6')
80
+ * .setPosition(1, 1, 0, 0)
81
+ * .setWidth(600)
82
+ * .setHeight(400)
83
+ * .build();
84
+ * await fWorksheet.insertChart(chartInfo);
85
+ * ```
86
+ */
87
+ newChart(fChart?: FChart): FChartBuilderBase;
88
+ /**
89
+ * Returns an array of charts on this sheet.
90
+ * @returns {FChart[]} - An array of charts on this sheet.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const fWorkbook = univerAPI.getActiveWorkbook();
95
+ * const fWorksheet = fWorkbook.getActiveSheet();
96
+ *
97
+ * // Get all charts on the active sheet.
98
+ * const charts = fWorksheet.getCharts();
99
+ * console.log(charts);
100
+ * ```
101
+ */
102
+ getCharts(): FChart[];
103
+ /**
104
+ * Removes a chart from the parent sheet.
105
+ * @param {FChart} chart - The chart to remove.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const fWorkbook = univerAPI.getActiveWorkbook();
110
+ * const fWorksheet = fWorkbook.getActiveSheet();
111
+ *
112
+ * // Create a column chart with data source A1:D6.
113
+ * // The starting position is upper-left corner of cell B2.
114
+ * const chartInfo = fWorksheet.newChart()
115
+ * .setChartType(univerAPI.Enum.ChartType.Column)
116
+ * .addRange('A1:D6')
117
+ * .setPosition(1, 1, 0, 0)
118
+ * .build();
119
+ * await fWorksheet.insertChart(chartInfo);
120
+ *
121
+ * // Get all charts on the active sheet.
122
+ * const charts = fWorksheet.getCharts();
123
+ *
124
+ * // Remove the first chart after 3 seconds.
125
+ * setTimeout(async () => {
126
+ * await fWorksheet.removeChart(charts[0]);
127
+ * console.log(fWorksheet.getCharts());
128
+ * }, 3000);
129
+ * ```
130
+ */
131
+ removeChart(chart: FChart): Promise<boolean>;
132
+ /**
133
+ * Univer chart is base on echarts, you can register your own theme by echart theme builder.
134
+ * @description The theme object should be a valid echarts theme object.The online builder is available at https://echarts.apache.org/zh/theme-builder.html
135
+ * @param {string} themeName - The name of the theme.
136
+ * @param {IEchartTheme} theme - The theme object.
137
+ *
138
+ * @example
139
+ * ```ts
140
+ * const fWorkbook = univerAPI.getActiveWorkbook();
141
+ * const fWorksheet = fWorkbook.getActiveSheet();
142
+ *
143
+ * // register your theme
144
+ * const theme = { // your theme object
145
+ * 'version': 1,
146
+ * 'themeName': 'myTheme',
147
+ * 'theme': {
148
+ * // ... Some code is omitted for brevity
149
+ * color: [
150
+ * '#893448',
151
+ * '#d95850',
152
+ * '#eb8146',
153
+ * '#ffb248',
154
+ * '#f2d643',
155
+ * '#ebdba4'
156
+ * ],
157
+ * // ... Some code is omitted for brevity
158
+ * visualMapColor: [
159
+ * '#893448',
160
+ * '#d95850',
161
+ * '#eb8146',
162
+ * '#ffb248',
163
+ * '#f2d643',
164
+ * 'rgb(247,238,173)'
165
+ * ],
166
+ * // ... Some code is omitted for brevity
167
+ * 'axes': []
168
+ * // ... Some code is omitted for brevity
169
+ * }
170
+ * };
171
+ * fWorksheet.registerChartTheme('myTheme', theme);
172
+ *
173
+ * // use your theme for chart
174
+ * const chartInfo = fWorksheet.newChart()
175
+ * .asLineChart()
176
+ * .addRange('A1:D6')
177
+ * .setPosition(1, 1, 0, 0)
178
+ * .setTheme('myTheme')
179
+ * .build();
180
+ * await fWorksheet.insertChart(chartInfo);
181
+ * ```
182
+ */
183
+ registerChartTheme(themeName: string, theme: IEchartTheme): void;
184
+ }
185
+ export declare class FWorksheetChartMixin extends FWorksheet implements IFWorksheetChartMixin {
186
+ insertChart(chartBuildInfo: IChartBuilderInfo): Promise<FChart>;
187
+ updateChart(chartBuilder: IChartBuilderInfo): void;
188
+ newChart(fChart?: FChart): FChartBuilderBase;
189
+ getCharts(): FChart[];
190
+ removeChart(chart: FChart): Promise<boolean>;
191
+ registerChartTheme(themeName: string, theme: IEchartTheme): void;
192
+ }
193
+ /**
194
+ * @ignore
195
+ */
196
+ declare module '@univerjs/sheets/facade' {
197
+ interface FWorksheet extends IFWorksheetChartMixin {
198
+ }
199
+ }
@@ -0,0 +1,20 @@
1
+ import type { ILineChartBuilderMixin, IPieChartBuilderInfo, IPieChartBuilderMixin, IRadarChartBuilderMixin } from './chart-builder/types';
2
+ import './f-worksheet';
3
+ import './f-enum';
4
+ export { FChartBuilderBase } from './chart-builder/chart-builder-base';
5
+ export type * from './chart-builder/chart-builder-base';
6
+ export { LineChartBuilder } from './chart-builder/line-chart-builder';
7
+ export { PieChartBuilder } from './chart-builder/pie-chart-builder';
8
+ export { RadarChartBuilder } from './chart-builder/radar-chart-builder';
9
+ export { FChart } from './f-chart';
10
+ export type * from './f-chart';
11
+ export type * from './f-worksheet';
12
+ /**
13
+ * @ignore
14
+ */
15
+ declare module '@univerjs-pro/sheets-chart/facade' {
16
+ interface FChartBuilderBase extends IPieChartBuilderMixin, IRadarChartBuilderMixin, ILineChartBuilderMixin {
17
+ }
18
+ interface IChartBuildOptions extends IPieChartBuilderInfo {
19
+ }
20
+ }
@@ -1,6 +1,7 @@
1
1
  export { ChartDataSourceMulti, ChartDataSourceSingle, createChartDataSource, getCategoryData } from './chart-source/chart-source';
2
2
  export { ChartUpdateConfigCommand, type IChartUpdateConfigCommandParams } from './commands/commands/sheets-chart-update-config.command';
3
3
  export { ChartUpdateSourceCommand, type IChartUpdateSourceCommandParams } from './commands/commands/sheets-chart-update-source.command';
4
+ export { type IInsertChartCommandParams, InsertChartCommand } from './commands/commands/sheets-chart.command';
4
5
  export { ChartUpdateSourceConfigMutation, type IChartUpdateSourceConfigMutationParams } from './commands/mutations/sheet-chart-update-source.mutation';
5
6
  export { ChartUpdateConfigMutation, type IChartUpdateConfigMutationParams } from './commands/mutations/sheets-chart-update-config.mutation';
6
7
  export { type IInsertSheetsChartMutationParams, InsertSheetsChartMutation, type IRemoveSheetsChartMutationParams, RemoveSheetsChartMutation } from './commands/mutations/sheets-chart.mutation';
@@ -1,17 +1,14 @@
1
1
  import type { IUniverSheetsChartConfig } from './controllers/config.schema';
2
- import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare const SHEETS_CHART_PLUGIN_NAME = "SHEET_CHART_PLUGIN";
4
4
  export declare class UniverSheetsChartPlugin extends Plugin {
5
5
  private readonly _config;
6
6
  protected readonly _injector: Injector;
7
- private readonly _commandService;
8
7
  private readonly _configService;
9
8
  static type: UniverInstanceType;
10
9
  static pluginName: string;
11
10
  static packageName: string;
12
11
  static version: string;
13
- constructor(_config: IUniverSheetsChartConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
14
- onRendered(): void;
12
+ constructor(_config: IUniverSheetsChartConfig | undefined, _injector: Injector, _configService: IConfigService);
15
13
  onStarting(): void;
16
- private _initCommands;
17
14
  }
@@ -1,3 +1,4 @@
1
+ import type { IChartContext } from '@univerjs-pro/engine-chart';
1
2
  import type { Nullable } from '@univerjs/core';
2
3
  import type { IChartModelInit } from '../models/chart-model';
3
4
  import { Disposable, Injector } from '@univerjs/core';
@@ -21,6 +22,6 @@ export declare class ChartModelService extends Disposable {
21
22
  refreshChartModel(): void;
22
23
  createChartModel(id: string, options: IChartModelInit, isNew?: boolean): SheetChartModel;
23
24
  removeChartModel(id: string): void;
24
- generateChartModelContext(id: string): import("@univerjs-pro/engine-chart").IChartContext | null;
25
+ generateChartModelContext(id: string): IChartContext | undefined;
25
26
  dispose(): void;
26
27
  }
@@ -0,0 +1 @@
1
+ function _0xfc3a(){const _0x1e8ad4=['toPrimitive','xAxisTitle','@univerjs/engine-formula','tooltip.indicatorLabelTextColor','axisAlignment','theme','titleAlignment','5jncECd','FBase','Pie','pie.isHalfPie','titles.title.content','titles.title.bold','width','tooltip.indicatorLineColor','fill','setRightYAxisTextStyle','ChartUpdateConfigCommand','object','fontStyle','6WAMcdM','LineChartBuilder','color','FChart','function','setDataPointSize','xAxis.label.axisTitleAlign','_commandService','height','backgroundColor','map','context','legend.label.fontSize','isRowDirection','7371268KroNhJ','dataSource','lineStyle','label','LinePointShape','fontColor','@univerjs-pro/sheets-chart','setRosePie','setBorderColor','705885iWfxQG','unitId','pie.borderColor','63kFzCBq','setPosition','allSeriesStyle.point','ensureSkeleton','setSeriesStyle','pie','pie.doughnutHole','pie.showLabelLine','DRAWING_CHART','dataPointShape','1612888jkdOzP','titles.title.family','radar.fill','setRightYAxisTitle','gradientFill','RadarShape','\x20and\x20subUnitId\x20','radar','setInvalidValueStrategy','titles.title.align','hasPaddingAngle','allSeriesStyle.point.shape','chartType','left','dataPointSize','setDoughnutHole','@univerjs/core','FEnum','amd','setYAxisTitle','yAxis','UniverSheets','setChartType','UniverCoreFacade','titles.yAxisTitle.family','setLineStyle','italic','ChartTypeBits','getSheetId','tooltip.indicatorLabelColor','insertChart','legend.position','getWorkbook','title','FWorksheet','IUniverInstanceService','getChartId','config','@univerjs/core/facade','extend','UniverSheetsFacade','legend.selectMode','titles.xAxisTitle.family','@univerjs/sheets-drawing','setShowLabelLine','build','indicatorLabelTextColor','UNIVER_SHEET','toStringTag','TitlePositionEnum','newChart','getUnitChartModels','Line','top','legend.label.color','indicatorLineType','registerChartTheme','titles.title.font','iterator','UniverSheetsDrawing','ChartThemeService','_injector','995997XajZXh','transposeRowsAndColumns','140wExeIy','setOptions','deserializeRangeWithSheet','Radar','subUnitId','borderColor','rightYAxis','area.lineStyle','getUnitId','yAxis.label.axisTitleAlign','xAxis','setDataPointColor','SheetSkeletonService','titles.xAxisTitle.bold','setTransposeRowsAndColumns','doughnutHole','UniverProEngineChart','allSeriesStyle.border','rightYAxisTitle','getCurrentUnitForType','modify','getCharts','legend','sourceSheetName','border','showLabelLine','setWidth','radar.shape','length','yRightAxis','SelectModeEnum','@univerjs/sheets/facade','RadarChartBuilder','range','invalidValueType','options','executeCommand','setTheme','removeChart','ChartType','rosePie','_workbook','legend.label.italic','titles.xAxisTitle.font','dataPointColor','clearRange','pie.rosePie','area','UniverProSheetsChart','titles.xAxisTitle.content','asLineChart','ICommandService','get','titles.xAxisTitle.fontSize','position','LegendPositionEnum','Skeleton\x20for\x20unitId\x20','legend.label.bold','titles.title.fontSize','asPieChart','setFill','Module','symbol','DrawingTypeEnum','yAxisTitle','allSeriesStyle.color','allSeriesStyle.label','setDataPointShape','point','FChartBuilderBase','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','seriesStyleMap','asRadarChart','updateChart','getCategoryData','string','titles.yAxisTitle.content','titles.rightYAxisTitle.fontSize','getChartType','@univerjs/sheets','fontSize','tooltip.indicatorLineType','setHeight','setAxisPointerStyle','font','registerTheme','default','generateRandomId','SheetsChartService','ChartUpdateSourceCommand','titles.yAxisTitle.fontSize','getChartModel','titles.yAxisTitle.color','shape','getRange','InsertChartCommand','AxisAlignEnum','isHalfPie','style','indicatorLineColor','allSeriesStyle','defineProperty','getSeriesData','sheetName','content','setAbsolutePosition','axisPointer','UniverCore','2522988jgUrdv','setXAxisTitle','chartId','exports','bold','RemoveSheetDrawingCommand','3201869AsQmoy','titles.rightYAxisTitle.bold','3334686gklPQU','UniverEngineFormula','prototype','pie.hasPaddingAngle','setProperty','ChartBorderDashType'];_0xfc3a=function(){return _0x1e8ad4;};return _0xfc3a();}function _0x3286(_0x49c378,_0x11124a){_0x49c378=_0x49c378-0x116;const _0xfc3a37=_0xfc3a();let _0x3286a3=_0xfc3a37[_0x49c378];return _0x3286a3;}(function(_0x291a73,_0x1b0b84){const _0x3576de=_0x3286,_0x32f586=_0x291a73();while(!![]){try{const _0x4aea94=parseInt(_0x3576de(0x1a5))/0x1+parseInt(_0x3576de(0x143))/0x2*(-parseInt(_0x3576de(0x15a))/0x3)+-parseInt(_0x3576de(0x151))/0x4*(parseInt(_0x3576de(0x136))/0x5)+parseInt(_0x3576de(0x129))/0x6+parseInt(_0x3576de(0x15d))/0x7*(-parseInt(_0x3576de(0x167))/0x8)+-parseInt(_0x3576de(0x121))/0x9+-parseInt(_0x3576de(0x1a7))/0xa*(-parseInt(_0x3576de(0x127))/0xb);if(_0x4aea94===_0x1b0b84)break;else _0x32f586['push'](_0x32f586['shift']());}catch(_0x5d856f){_0x32f586['push'](_0x32f586['shift']());}}}(_0xfc3a,0xf0137),function(_0x3c7b01,_0x50a269){const _0x2cf341=_0x3286;typeof exports=='object'&&typeof module<'u'?_0x50a269(exports,require(`@univerjs-pro/engine-chart`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs/core`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets/facade`),require(`@univerjs/core/facade`),require(`@univerjs/engine-formula`),require(`@univerjs/sheets`)):typeof define=='function'&&define[_0x2cf341(0x179)]?define([_0x2cf341(0x124),'@univerjs-pro/engine-chart',_0x2cf341(0x157),_0x2cf341(0x177),_0x2cf341(0x192),_0x2cf341(0x1c6),_0x2cf341(0x18d),_0x2cf341(0x131),_0x2cf341(0x1f6)],_0x50a269):(_0x3c7b01=typeof globalThis<'u'?globalThis:_0x3c7b01||self,_0x50a269(_0x3c7b01['UniverProSheetsChartFacade']={},_0x3c7b01[_0x2cf341(0x1b7)],_0x3c7b01[_0x2cf341(0x1d7)],_0x3c7b01[_0x2cf341(0x120)],_0x3c7b01[_0x2cf341(0x1a2)],_0x3c7b01[_0x2cf341(0x18f)],_0x3c7b01[_0x2cf341(0x17e)],_0x3c7b01[_0x2cf341(0x12a)],_0x3c7b01[_0x2cf341(0x17c)]));}(this,function(_0x15df16,_0x1e50f6,_0x2e2612,_0x4f915e,_0x48e339,_0x30714d,_0x1f8589,_0xd5eac7,_0x36eb5d){const _0x1c1534=_0x3286;Object[_0x1c1534(0x11a)](_0x15df16,Symbol[_0x1c1534(0x197)],{'value':_0x1c1534(0x1e4)});let _0x257e3f=(_0x4ab115,_0x5dd9bc,_0x371401)=>{const _0x326c87=_0x1c1534;_0x371401!==void 0x0&&(0x0,_0x2e2612[_0x326c87(0x12d)])(_0x4ab115,_0x5dd9bc,_0x371401);},_0x188087=(_0x4dc6ef,_0x2d1aaa,_0x35c67e,_0x33f132={})=>{const _0x47772=_0x1c1534;let _0x4acbf2={},_0x28992b={};if(_0x33f132[_0x47772(0x188)]){let _0x27650d=_0x33f132['title'];_0x257e3f(_0x4acbf2,_0x47772(0x13a),_0x27650d[_0x47772(0x11d)]),_0x257e3f(_0x4acbf2,_0x47772(0x1a0),_0x27650d[_0x47772(0x1fb)]),_0x257e3f(_0x4acbf2,_0x47772(0x1e1),_0x27650d[_0x47772(0x1f7)]),_0x257e3f(_0x4acbf2,'titles.title.color',_0x27650d[_0x47772(0x156)]),_0x257e3f(_0x4acbf2,_0x47772(0x168),_0x27650d[_0x47772(0x142)]),_0x257e3f(_0x4acbf2,_0x47772(0x13b),_0x27650d[_0x47772(0x125)]),_0x257e3f(_0x4acbf2,_0x47772(0x170),_0x27650d[_0x47772(0x135)]),_0x257e3f(_0x4acbf2,'titles.titlePosition',_0x27650d['position']);}if(_0x33f132[_0x47772(0x1bd)]){let _0x2c83bb=_0x33f132[_0x47772(0x1bd)];_0x257e3f(_0x4acbf2,_0x47772(0x186),_0x2c83bb[_0x47772(0x1dd)]),_0x257e3f(_0x4acbf2,_0x47772(0x190),_0x2c83bb['selectMode']),_0x257e3f(_0x4acbf2,_0x47772(0x14f),_0x2c83bb['fontSize']),_0x257e3f(_0x4acbf2,_0x47772(0x19d),_0x2c83bb[_0x47772(0x145)]),_0x257e3f(_0x4acbf2,_0x47772(0x1e0),_0x2c83bb['bold']),_0x257e3f(_0x4acbf2,_0x47772(0x1d1),_0x2c83bb[_0x47772(0x181)]);}if(_0x33f132[_0x47772(0x162)]){let _0x20cba5=_0x33f132['pie'];_0x257e3f(_0x4acbf2,'pie.doughnutHole',_0x20cba5['doughnutHole']),_0x257e3f(_0x4acbf2,'pie.borderColor',_0x20cba5[_0x47772(0x1ac)]),_0x257e3f(_0x4acbf2,_0x47772(0x12c),_0x20cba5[_0x47772(0x171)]),_0x257e3f(_0x4acbf2,'pie.isHalfPie',_0x20cba5[_0x47772(0x116)]),_0x257e3f(_0x4acbf2,_0x47772(0x1d5),_0x20cba5[_0x47772(0x1cf)]),_0x257e3f(_0x4acbf2,_0x47772(0x164),_0x20cba5[_0x47772(0x1c0)]);}if(_0x33f132[_0x47772(0x11f)]){let _0x4cc52e=_0x33f132['axisPointer'];_0x257e3f(_0x4acbf2,_0x47772(0x184),_0x4cc52e['indicatorLabelColor']),_0x257e3f(_0x4acbf2,_0x47772(0x1f8),_0x4cc52e[_0x47772(0x19e)]),_0x257e3f(_0x4acbf2,_0x47772(0x13d),_0x4cc52e[_0x47772(0x118)]),_0x257e3f(_0x4acbf2,_0x47772(0x132),_0x4cc52e[_0x47772(0x195)]);}if(_0x33f132[_0x47772(0x119)]&&(_0x257e3f(_0x4acbf2,_0x47772(0x1b8),_0x33f132['allSeriesStyle'][_0x47772(0x1bf)]),_0x257e3f(_0x4acbf2,_0x47772(0x1e9),_0x33f132[_0x47772(0x119)][_0x47772(0x154)]),_0x257e3f(_0x4acbf2,'allSeriesStyle.rightYAxis',_0x33f132['allSeriesStyle']['rightYAxis']),_0x257e3f(_0x4acbf2,_0x47772(0x15f),_0x33f132[_0x47772(0x119)][_0x47772(0x1eb)]),_0x257e3f(_0x4acbf2,_0x47772(0x1e8),_0x33f132[_0x47772(0x119)][_0x47772(0x145)])),_0x33f132[_0x47772(0x1d6)]&&_0x257e3f(_0x4acbf2,_0x47772(0x1ae),_0x33f132['area'][_0x47772(0x153)]),_0x33f132['theme']&&_0x257e3f(_0x4acbf2,'theme',_0x33f132[_0x47772(0x134)]),_0x33f132[_0x47772(0x14c)]&&_0x257e3f(_0x4acbf2,_0x47772(0x14c),_0x33f132['backgroundColor']),_0x33f132['borderColor']&&_0x257e3f(_0x4acbf2,_0x47772(0x1ac),_0x33f132[_0x47772(0x1ac)]),_0x33f132['gradientFill']&&_0x257e3f(_0x4acbf2,'gradientFill',_0x33f132[_0x47772(0x16b)]),_0x33f132[_0x47772(0x1c9)]&&_0x257e3f(_0x4acbf2,_0x47772(0x1c9),_0x33f132[_0x47772(0x1c9)]),_0x33f132[_0x47772(0x16e)]&&_0x257e3f(_0x4acbf2,_0x47772(0x16e),_0x33f132[_0x47772(0x16e)]),_0x33f132[_0x47772(0x130)]){let _0x15ac7e=_0x33f132['xAxisTitle'];_0x257e3f(_0x4acbf2,_0x47772(0x1d8),_0x15ac7e[_0x47772(0x11d)]),_0x257e3f(_0x4acbf2,_0x47772(0x1d2),_0x15ac7e[_0x47772(0x1fb)]),_0x257e3f(_0x4acbf2,_0x47772(0x1dc),_0x15ac7e[_0x47772(0x1f7)]),_0x257e3f(_0x4acbf2,'titles.xAxisTitle.color',_0x15ac7e[_0x47772(0x156)]),_0x257e3f(_0x4acbf2,_0x47772(0x191),_0x15ac7e[_0x47772(0x142)]),_0x257e3f(_0x4acbf2,_0x47772(0x1b4),_0x15ac7e['bold']),_0x257e3f(_0x4acbf2,_0x47772(0x149),_0x15ac7e[_0x47772(0x133)]);}if(_0x33f132[_0x47772(0x1e7)]){let _0x389d51=_0x33f132[_0x47772(0x1e7)];_0x257e3f(_0x4acbf2,_0x47772(0x1f3),_0x389d51['content']),_0x257e3f(_0x4acbf2,'titles.yAxisTitle.font',_0x389d51[_0x47772(0x1fb)]),_0x257e3f(_0x4acbf2,_0x47772(0x201),_0x389d51[_0x47772(0x1f7)]),_0x257e3f(_0x4acbf2,_0x47772(0x203),_0x389d51[_0x47772(0x156)]),_0x257e3f(_0x4acbf2,_0x47772(0x17f),_0x389d51['fontStyle']),_0x257e3f(_0x4acbf2,'titles.yAxisTitle.bold',_0x389d51[_0x47772(0x125)]),_0x257e3f(_0x4acbf2,_0x47772(0x1b0),_0x389d51['axisAlignment']);}if(_0x33f132[_0x47772(0x1b9)]){let _0x27737f=_0x33f132['rightYAxisTitle'];_0x257e3f(_0x4acbf2,'titles.rightYAxisTitle.content',_0x27737f[_0x47772(0x11d)]),_0x257e3f(_0x4acbf2,'titles.rightYAxisTitle.font',_0x27737f['font']),_0x257e3f(_0x4acbf2,_0x47772(0x1f4),_0x27737f[_0x47772(0x1f7)]),_0x257e3f(_0x4acbf2,'titles.rightYAxisTitle.color',_0x27737f[_0x47772(0x156)]),_0x257e3f(_0x4acbf2,'titles.rightYAxisTitle.family',_0x27737f[_0x47772(0x142)]),_0x257e3f(_0x4acbf2,_0x47772(0x128),_0x27737f[_0x47772(0x125)]),_0x257e3f(_0x4acbf2,'rightYAxis.label.axisTitleAlign',_0x27737f[_0x47772(0x133)]);}_0x33f132[_0x47772(0x1b1)]&&_0x257e3f(_0x4acbf2,_0x47772(0x1b1),_0x33f132[_0x47772(0x1b1)]),_0x33f132['yAxis']&&_0x257e3f(_0x4acbf2,_0x47772(0x17b),_0x33f132[_0x47772(0x17b)]),_0x33f132[_0x47772(0x1c4)]&&_0x257e3f(_0x4acbf2,_0x47772(0x1ad),_0x33f132[_0x47772(0x1c4)]),_0x33f132['seriesStyleMap']&&_0x257e3f(_0x4acbf2,_0x47772(0x1ee),_0x33f132['seriesStyleMap']);let _0x15f1da={'unitId':_0x4dc6ef,'chartModelId':_0x2d1aaa},_0x3ac451=!0x1;if(_0x35c67e!==void 0x0&&(_0x15f1da['chartType']=_0x35c67e,_0x3ac451=!0x0),Object['keys'](_0x4acbf2)[_0x47772(0x1c3)]>0x0&&(_0x15f1da[_0x47772(0x117)]=_0x4acbf2,_0x3ac451=!0x0),Object['keys'](_0x28992b)['length']>0x0&&(_0x15f1da[_0x47772(0x14e)]=_0x28992b,_0x3ac451=!0x0),_0x3ac451)return _0x15f1da;};function _0x44999e(_0x4fe758){'@babel/helpers - typeof';const _0xb1f1f9=_0x1c1534;return _0x44999e=typeof Symbol==_0xb1f1f9(0x147)&&typeof Symbol[_0xb1f1f9(0x1a1)]=='symbol'?function(_0x473bfb){return typeof _0x473bfb;}:function(_0x3f40f7){const _0x5b09ad=_0xb1f1f9;return _0x3f40f7&&typeof Symbol==_0x5b09ad(0x147)&&_0x3f40f7['constructor']===Symbol&&_0x3f40f7!==Symbol[_0x5b09ad(0x12b)]?_0x5b09ad(0x1e5):typeof _0x3f40f7;},_0x44999e(_0x4fe758);}function _0x1aec48(_0x2ff83c,_0x5b1fb3){const _0x5405c1=_0x1c1534;if(_0x44999e(_0x2ff83c)!=_0x5405c1(0x141)||!_0x2ff83c)return _0x2ff83c;var _0x41d170=_0x2ff83c[Symbol[_0x5405c1(0x12f)]];if(_0x41d170!==void 0x0){var _0x2fb031=_0x41d170['call'](_0x2ff83c,_0x5b1fb3||_0x5405c1(0x1fd));if(_0x44999e(_0x2fb031)!=_0x5405c1(0x141))return _0x2fb031;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5b1fb3===_0x5405c1(0x1f2)?String:Number)(_0x2ff83c);}function _0x4d9e47(_0x33d945){const _0x5596ac=_0x1c1534;var _0x5b0166=_0x1aec48(_0x33d945,_0x5596ac(0x1f2));return _0x44999e(_0x5b0166)==_0x5596ac(0x1e5)?_0x5b0166:_0x5b0166+'';}function _0x4ebe7d(_0x6790e6,_0x116e85,_0x31c4f7){const _0x5e7109=_0x1c1534;return(_0x116e85=_0x4d9e47(_0x116e85))in _0x6790e6?Object[_0x5e7109(0x11a)](_0x6790e6,_0x116e85,{'value':_0x31c4f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6790e6[_0x116e85]=_0x31c4f7,_0x6790e6;}var _0x3b6f3a=class extends _0x1f8589[_0x1c1534(0x137)]{constructor(_0x225813,_0x6964ab,_0x5e2bae,_0x4f8211,_0x33513d){const _0x46d2fe=_0x1c1534;super(),_0x4ebe7d(this,_0x46d2fe(0x1d0),void 0x0),_0x4ebe7d(this,'_injector',void 0x0),_0x4ebe7d(this,_0x46d2fe(0x15b),void 0x0),_0x4ebe7d(this,'subUnitId',void 0x0),_0x4ebe7d(this,_0x46d2fe(0x123),void 0x0),_0x4ebe7d(this,_0x46d2fe(0x1c8),void 0x0),_0x4ebe7d(this,_0x46d2fe(0x1be),void 0x0),_0x4ebe7d(this,'x',void 0x0),_0x4ebe7d(this,'y',void 0x0),_0x4ebe7d(this,_0x46d2fe(0x13c),void 0x0),_0x4ebe7d(this,_0x46d2fe(0x14b),void 0x0),_0x4ebe7d(this,_0x46d2fe(0x173),void 0x0),_0x4ebe7d(this,'options',void 0x0),_0x4ebe7d(this,_0x46d2fe(0x1a6),void 0x0),this['unitId']=_0x225813,this[_0x46d2fe(0x1ab)]=_0x6964ab,this['_workbook']=_0x5e2bae,this[_0x46d2fe(0x1a4)]=_0x4f8211,_0x33513d&&(this['chartId']=_0x33513d);}[_0x1c1534(0x1f5)](){return this['chartType'];}['addRange'](_0x268598){const _0x3564d2=_0x1c1534;if(typeof _0x268598=='string'){let _0x4964ec=(0x0,_0xd5eac7[_0x3564d2(0x1a9)])(_0x268598);_0x4964ec[_0x3564d2(0x11c)]&&(this['sourceSheetName']=_0x4964ec[_0x3564d2(0x11c)]),this[_0x3564d2(0x1c8)]=_0x4964ec[_0x3564d2(0x1c8)];}else this[_0x3564d2(0x1c8)]=_0x268598;return this;}[_0x1c1534(0x1d4)](){const _0x325d62=_0x1c1534;return this[_0x325d62(0x1c8)]=void 0x0,this[_0x325d62(0x1be)]=void 0x0,this;}[_0x1c1534(0x15e)](_0x1eb2e9,_0x2714fd,_0x3b5b57,_0x123c09){const _0x277d7f=_0x1c1534;let _0x521ed4=this[_0x277d7f(0x1a4)][_0x277d7f(0x1db)](_0x36eb5d[_0x277d7f(0x1b3)])[_0x277d7f(0x160)](this[_0x277d7f(0x15b)],this[_0x277d7f(0x1ab)]);if(!_0x521ed4)throw Error(_0x277d7f(0x1df)+this['unitId']+_0x277d7f(0x16d)+this[_0x277d7f(0x1ab)]+'\x20not\x20found');let {transform:_0x543cea}=(0x0,_0x36eb5d['convertPositionCellToSheetOverGrid'])(this[_0x277d7f(0x15b)],this[_0x277d7f(0x1ab)],{'row':_0x1eb2e9,'column':_0x2714fd,'rowOffset':_0x3b5b57,'columnOffset':_0x123c09},0x1,0x1,_0x521ed4),_0x1c2e32=_0x543cea[_0x277d7f(0x19c)];return this['x']=_0x543cea[_0x277d7f(0x174)],this['y']=_0x1c2e32,this;}[_0x1c1534(0x11e)](_0x415ba9,_0x5a2cdc){return this['x']=_0x415ba9,this['y']=_0x5a2cdc,this;}[_0x1c1534(0x17d)](_0x5459a5){return this['chartType']=_0x5459a5,this;}[_0x1c1534(0x1c1)](_0x4bdb47){const _0x2135f3=_0x1c1534;return this[_0x2135f3(0x13c)]=_0x4bdb47,this;}[_0x1c1534(0x1f9)](_0x20d3d0){const _0x269dbc=_0x1c1534;return this[_0x269dbc(0x14b)]=_0x20d3d0,this;}[_0x1c1534(0x1a8)](_0x19ef4e,_0x28030d){const _0x269aa3=_0x1c1534;return this[_0x269aa3(0x1ca)]||(this['options']={}),_0x19ef4e===''?(this[_0x269aa3(0x1ca)]={...this[_0x269aa3(0x1ca)],..._0x28030d},this):((0x0,_0x2e2612['setProperty'])(this[_0x269aa3(0x1ca)],_0x19ef4e,_0x28030d),this);}[_0x1c1534(0x1b5)](_0x1ec3bb){return this['transposeRowsAndColumns']=_0x1ec3bb,this;}[_0x1c1534(0x1cc)](_0x59810c){const _0x177e29=_0x1c1534;return this[_0x177e29(0x1a8)](_0x177e29(0x134),_0x59810c),this;}[_0x1c1534(0x122)](_0x11a6d7){const _0x789372=_0x1c1534;var _0x5e0997;let _0x41b552=((_0x5e0997=this['options'])==null?void 0x0:_0x5e0997['xAxisTitle'])||{};return _0x41b552['content']=_0x11a6d7,this[_0x789372(0x1a8)]('xAxisTitle',_0x41b552),this;}[_0x1c1534(0x17a)](_0x2032b7){const _0x2f9deb=_0x1c1534;var _0x5481e3;let _0x2a35ae=((_0x5481e3=this[_0x2f9deb(0x1ca)])==null?void 0x0:_0x5481e3[_0x2f9deb(0x1e7)])||{};return _0x2a35ae[_0x2f9deb(0x11d)]=_0x2032b7,this[_0x2f9deb(0x1a8)]('yAxisTitle',_0x2a35ae),this;}[_0x1c1534(0x16a)](_0x952714){const _0x59ac6e=_0x1c1534;var _0x29e08f;let _0x26f117=((_0x29e08f=this['options'])==null?void 0x0:_0x29e08f[_0x59ac6e(0x1b9)])||{};return _0x26f117[_0x59ac6e(0x11d)]=_0x952714,this[_0x59ac6e(0x1a8)](_0x59ac6e(0x1b9),_0x26f117),this;}['setXAxisTextStyle'](_0x46be29){const _0x493cbd=_0x1c1534;var _0x2f8c6b;let _0x2541e7=((_0x2f8c6b=this['options'])==null?void 0x0:_0x2f8c6b[_0x493cbd(0x130)])||{};return this[_0x493cbd(0x1a8)](_0x493cbd(0x130),{..._0x2541e7,..._0x46be29}),this;}['setYAxisTextStyle'](_0x204bf5){const _0x57281e=_0x1c1534;var _0x1e4f83;let _0x5da5d7=((_0x1e4f83=this[_0x57281e(0x1ca)])==null?void 0x0:_0x1e4f83[_0x57281e(0x1e7)])||{};return this['setOptions']('yAxisTitle',{..._0x5da5d7,..._0x204bf5}),this;}[_0x1c1534(0x13f)](_0x19561a){const _0x2f0661=_0x1c1534;var _0x59a2f2;let _0x355c10=((_0x59a2f2=this[_0x2f0661(0x1ca)])==null?void 0x0:_0x59a2f2['rightYAxisTitle'])||{};return this[_0x2f0661(0x1a8)](_0x2f0661(0x1b9),{..._0x355c10,..._0x19561a}),this;}[_0x1c1534(0x16f)](_0x2be1bd){const _0x5d62d0=_0x1c1534;return this[_0x5d62d0(0x1a8)](_0x5d62d0(0x1c9),_0x2be1bd),this;}[_0x1c1534(0x1fa)](_0xbe93e){const _0x5d5a27=_0x1c1534;return this[_0x5d5a27(0x1a8)](_0x5d5a27(0x11f),_0xbe93e),this;}['setAllSeriesStyle'](_0x4e6b5a){const _0x772d91=_0x1c1534;return this[_0x772d91(0x1a8)]('allSeriesStyle',_0x4e6b5a),this;}[_0x1c1534(0x161)](_0x48c945,_0x5d8ad0){const _0x16f63d=_0x1c1534;return this['setOptions'](_0x16f63d(0x1ee),{[_0x48c945]:_0x5d8ad0}),this;}['build'](){const _0xaf22b7=_0x1c1534;return{'unitId':this[_0xaf22b7(0x15b)],'subUnitId':this[_0xaf22b7(0x1ab)],'chartId':this[_0xaf22b7(0x123)],'range':this[_0xaf22b7(0x1c8)],'sourceSheetName':this[_0xaf22b7(0x1be)],'x':this['x'],'y':this['y'],'width':this[_0xaf22b7(0x13c)],'height':this[_0xaf22b7(0x14b)],'chartType':this[_0xaf22b7(0x173)],'options':this[_0xaf22b7(0x1ca)],'isRowDirection':this[_0xaf22b7(0x1a6)]};}},_0x144eda=class{constructor(_0x58be92,_0x3a69cd,_0x5a73fb,_0x122fd7){const _0x3b089e=_0x1c1534;_0x4ebe7d(this,_0x3b089e(0x15b),void 0x0),_0x4ebe7d(this,_0x3b089e(0x1ab),void 0x0),_0x4ebe7d(this,'chartId',void 0x0),_0x4ebe7d(this,'_injector',void 0x0),this['unitId']=_0x58be92,this[_0x3b089e(0x1ab)]=_0x3a69cd,this['chartId']=_0x5a73fb,this[_0x3b089e(0x1a4)]=_0x122fd7;}[_0x1c1534(0x18b)](){return this['chartId'];}[_0x1c1534(0x205)](){const _0x41c9c8=_0x1c1534;let _0x6a0cb9=this[_0x41c9c8(0x1a4)][_0x41c9c8(0x1db)](_0x2e2612['SheetsChartService'])[_0x41c9c8(0x202)](this['chartId']);if(_0x6a0cb9)return _0x6a0cb9[_0x41c9c8(0x152)]['getRangeInfo']();}['updateRange'](_0x880fc0){const _0x50db49=_0x1c1534;return this['_injector']['get'](_0x4f915e[_0x50db49(0x1da)])[_0x50db49(0x1cb)](_0x2e2612[_0x50db49(0x200)]['id'],{'unitId':this[_0x50db49(0x15b)],'chartModelId':this[_0x50db49(0x123)],'range':_0x880fc0});}[_0x1c1534(0x11b)](){const _0x4fbc3c=_0x1c1534;let _0x2e939e=this[_0x4fbc3c(0x1a4)]['get'](_0x2e2612[_0x4fbc3c(0x1ff)])[_0x4fbc3c(0x202)](this['chartId']);if(_0x2e939e){var _0x5b1643;return(_0x5b1643=_0x2e939e[_0x4fbc3c(0x18c)])==null?void 0x0:_0x5b1643['series'];}}[_0x1c1534(0x1f1)](){const _0x26aa54=_0x1c1534;let _0x44978f=this[_0x26aa54(0x1a4)]['get'](_0x2e2612[_0x26aa54(0x1ff)])[_0x26aa54(0x202)](this[_0x26aa54(0x123)]);if(_0x44978f){var _0xa4143a;return(_0xa4143a=_0x44978f[_0x26aa54(0x18c)])==null?void 0x0:_0xa4143a['category'];}}[_0x1c1534(0x1bb)](){const _0x5abe87=_0x1c1534;let _0x33ca76=this['_injector'][_0x5abe87(0x1db)](_0x4f915e[_0x5abe87(0x18a)])[_0x5abe87(0x1ba)](_0x4f915e['UniverInstanceType'][_0x5abe87(0x196)]);return new _0x3b6f3a(this['unitId'],this[_0x5abe87(0x1ab)],_0x33ca76,this[_0x5abe87(0x1a4)],this[_0x5abe87(0x123)]);}},_0x1ef814=class extends _0x30714d[_0x1c1534(0x189)]{async[_0x1c1534(0x185)](_0x1954c7){const _0x1e4959=_0x1c1534;var _0x254605,_0x29d961,_0x473fef;let _0x4afef6=_0x1954c7['unitId']||this[_0x1e4959(0x187)]()[_0x1e4959(0x1af)](),_0x1e979f=_0x1954c7[_0x1e4959(0x1ab)]||this[_0x1e4959(0x183)](),_0x493281=_0x1954c7[_0x1e4959(0x123)]||(0x0,_0x4f915e[_0x1e4959(0x1fe)])(),_0x427a5c=_0x1954c7[_0x1e4959(0x173)],_0x1675d3=_0x1954c7[_0x1e4959(0x1c8)],_0x4dc0a6=_0x1954c7['sourceSheetName'],_0x83f47a={'x':_0x1954c7['x'],'y':_0x1954c7['y']},_0x42276f=_0x1954c7[_0x1e4959(0x13c)],_0x60b44c=_0x1954c7[_0x1e4959(0x14b)],_0xa614d0=(_0x254605=_0x1954c7[_0x1e4959(0x1ca)])==null?void 0x0:_0x254605['backgroundColor'],_0xf498d4=(_0x29d961=_0x1954c7[_0x1e4959(0x1ca)])==null?void 0x0:_0x29d961[_0x1e4959(0x1ac)],_0x461198=_0x188087(_0x4afef6,_0x493281,_0x427a5c,_0x1954c7[_0x1e4959(0x1ca)]),_0x551163=(_0x473fef=_0x1954c7[_0x1e4959(0x150)])==null?!0x0:_0x473fef;if(!_0x1675d3)throw Error(_0x1e4959(0x1ed));return await this['_commandService']['executeCommand'](_0x2e2612[_0x1e4959(0x206)]['id'],{'unitId':_0x4afef6,'subUnitId':_0x1e979f,'chartId':_0x493281,'chartType':_0x427a5c,'range':_0x1675d3,'sourceSheetName':_0x4dc0a6,'position':_0x83f47a,'width':_0x42276f,'height':_0x60b44c,'backgroundColor':_0xa614d0,'borderColor':_0xf498d4,'config':_0x461198,'isRowDirection':_0x551163}),new _0x144eda(_0x4afef6,_0x1e979f,_0x493281,this['_injector']);}[_0x1c1534(0x1f0)](_0x1e7c6a){const _0x10bda5=_0x1c1534;let {unitId:_0x38ae15,chartId:_0x4b576a,chartType:_0x16f9d7,options:_0x304872}=_0x1e7c6a,_0xf0177f=_0x188087(_0x38ae15,_0x4b576a,_0x16f9d7,_0x304872);this['_commandService']['executeCommand'](_0x2e2612[_0x10bda5(0x140)]['id'],_0xf0177f);}[_0x1c1534(0x199)](_0x1534d2){const _0x766a53=_0x1c1534;return _0x1534d2?new _0x3b6f3a(_0x1534d2[_0x766a53(0x15b)],_0x1534d2[_0x766a53(0x1ab)],this[_0x766a53(0x1d0)],this[_0x766a53(0x1a4)],_0x1534d2[_0x766a53(0x123)]):new _0x3b6f3a(this[_0x766a53(0x187)]()[_0x766a53(0x1af)](),this[_0x766a53(0x183)](),this[_0x766a53(0x1d0)],this[_0x766a53(0x1a4)]);}[_0x1c1534(0x1bc)](){const _0xedcf66=_0x1c1534;let _0xfde756=this[_0xedcf66(0x1a4)][_0xedcf66(0x1db)](_0x2e2612[_0xedcf66(0x1ff)]),_0x1c30a8=this[_0xedcf66(0x187)]()['getUnitId']();return _0xfde756[_0xedcf66(0x19a)](_0x1c30a8,this[_0xedcf66(0x183)]())[_0xedcf66(0x14d)](_0x20a470=>new _0x144eda(_0x1c30a8,this['getSheetId'](),_0x20a470['id'],this[_0xedcf66(0x1a4)]));}[_0x1c1534(0x1cd)](_0xf68b7e){const _0x30ea89=_0x1c1534;let _0x9504b6=_0xf68b7e['unitId'],_0x4c8703={'unitId':_0x9504b6,'drawings':[{'unitId':_0x9504b6,'subUnitId':_0xf68b7e[_0x30ea89(0x1ab)],'drawingId':_0xf68b7e[_0x30ea89(0x123)],'drawingType':_0x4f915e[_0x30ea89(0x1e6)][_0x30ea89(0x165)]}]};return this[_0x30ea89(0x14a)][_0x30ea89(0x1cb)](_0x48e339[_0x30ea89(0x126)]['id'],_0x4c8703);}[_0x1c1534(0x19f)](_0x62a4c8,_0xd93543){const _0x5d6d51=_0x1c1534;this['_injector']['get'](_0x1e50f6[_0x5d6d51(0x1a3)])[_0x5d6d51(0x1fc)](_0x62a4c8,_0xd93543);}};_0x30714d['FWorksheet'][_0x1c1534(0x18e)](_0x1ef814);var _0x5be891=class extends _0x1f8589[_0x1c1534(0x178)]{get[_0x1c1534(0x1ce)](){const _0xa56d8a=_0x1c1534;return _0x1e50f6[_0xa56d8a(0x182)];}get['LegendPositionEnum'](){const _0x51b381=_0x1c1534;return _0x1e50f6[_0x51b381(0x1de)];}get[_0x1c1534(0x1c5)](){const _0x364d34=_0x1c1534;return _0x1e50f6[_0x364d34(0x1c5)];}get['AxisAlignEnum'](){const _0x27a118=_0x1c1534;return _0x1e50f6[_0x27a118(0x207)];}get[_0x1c1534(0x12e)](){const _0x30b95c=_0x1c1534;return _0x1e50f6[_0x30b95c(0x12e)];}get[_0x1c1534(0x155)](){return _0x1e50f6['LinePointShape'];}get[_0x1c1534(0x198)](){return _0x1e50f6['TitlePositionEnum'];}get[_0x1c1534(0x16c)](){const _0x3297cc=_0x1c1534;return _0x1e50f6[_0x3297cc(0x16c)];}};_0x1f8589[_0x1c1534(0x178)]['extend'](_0x5be891);var _0x519476=class extends _0x3b6f3a{constructor(_0xd2999b,_0x1d80f7,_0x56a5c8,_0x1e097e,_0x33699a){const _0x474e17=_0x1c1534;super(_0xd2999b,_0x1d80f7,_0x56a5c8,_0x1e097e,_0x33699a),_0x4ebe7d(this,_0x474e17(0x153),void 0x0),_0x4ebe7d(this,_0x474e17(0x166),void 0x0),_0x4ebe7d(this,'dataPointColor',void 0x0),_0x4ebe7d(this,'dataPointSize',void 0x0);}[_0x1c1534(0x180)](_0x16ba61){const _0x1d3b56=_0x1c1534;return this[_0x1d3b56(0x153)]=_0x16ba61,this;}[_0x1c1534(0x1ea)](_0x427fd8){const _0x107071=_0x1c1534;return this[_0x107071(0x166)]=_0x427fd8,this;}[_0x1c1534(0x1b2)](_0x4c34a7){const _0x3c9fd2=_0x1c1534;return this[_0x3c9fd2(0x1d3)]=_0x4c34a7,this;}[_0x1c1534(0x148)](_0x5c0828){return this['dataPointSize']=_0x5c0828,this;}['build'](){const _0x3a3644=_0x1c1534;let _0x561b1e=super[_0x3a3644(0x194)]();_0x561b1e[_0x3a3644(0x173)]=_0x1e50f6[_0x3a3644(0x182)][_0x3a3644(0x19b)];let _0x117d35=_0x561b1e[_0x3a3644(0x1ca)]||{};return _0x257e3f(_0x117d35,_0x3a3644(0x1ae),this['lineStyle']),_0x257e3f(_0x117d35,_0x3a3644(0x172),this[_0x3a3644(0x166)]),_0x257e3f(_0x117d35,'allSeriesStyle.point.color',this[_0x3a3644(0x1d3)]),_0x257e3f(_0x117d35,'allSeriesStyle.point.size',this[_0x3a3644(0x175)]),_0x561b1e['options']=_0x117d35,_0x561b1e;}},_0x360b66=class extends _0x3b6f3a{[_0x1c1534(0x1d9)](){const _0x1be3db=_0x1c1534;return new _0x519476(this[_0x1be3db(0x15b)],this['subUnitId'],this[_0x1be3db(0x1d0)],this[_0x1be3db(0x1a4)],this[_0x1be3db(0x123)]);}};_0x3b6f3a[_0x1c1534(0x18e)](_0x360b66);var _0x1108ed=class extends _0x3b6f3a{constructor(_0x245cb9,_0x226ee4,_0x516362,_0x249efd,_0xebc4){const _0x76f0b6=_0x1c1534;super(_0x245cb9,_0x226ee4,_0x516362,_0x249efd,_0xebc4),_0x4ebe7d(this,_0x76f0b6(0x1b6),void 0x0),_0x4ebe7d(this,_0x76f0b6(0x1ac),void 0x0),_0x4ebe7d(this,_0x76f0b6(0x171),void 0x0),_0x4ebe7d(this,_0x76f0b6(0x116),void 0x0),_0x4ebe7d(this,_0x76f0b6(0x1cf),void 0x0),_0x4ebe7d(this,_0x76f0b6(0x1c0),void 0x0);}[_0x1c1534(0x176)](_0x28749b){const _0x534680=_0x1c1534;return this[_0x534680(0x1b6)]=_0x28749b,this;}[_0x1c1534(0x159)](_0x2f5fe7){const _0x1fe441=_0x1c1534;return this[_0x1fe441(0x1ac)]=_0x2f5fe7,this;}['setHasPaddingAngle'](_0x5e6be0){return this['hasPaddingAngle']=_0x5e6be0,this;}['setIsHalfPie'](_0x10437d){const _0x3eae21=_0x1c1534;return this[_0x3eae21(0x116)]=_0x10437d,this;}[_0x1c1534(0x158)](_0xb363c2){const _0x597b79=_0x1c1534;return this[_0x597b79(0x1cf)]=_0xb363c2,this;}[_0x1c1534(0x193)](_0x4e0b71){const _0x3fbc12=_0x1c1534;return this[_0x3fbc12(0x1c0)]=_0x4e0b71,this;}['build'](){const _0x2fb21f=_0x1c1534;let _0xd4a53d=super[_0x2fb21f(0x194)]();_0xd4a53d[_0x2fb21f(0x173)]=_0x1e50f6[_0x2fb21f(0x182)][_0x2fb21f(0x138)];let _0x32c091=_0xd4a53d[_0x2fb21f(0x1ca)]||{};return _0x257e3f(_0x32c091,_0x2fb21f(0x163),this[_0x2fb21f(0x1b6)]),_0x257e3f(_0x32c091,_0x2fb21f(0x15c),this[_0x2fb21f(0x1ac)]),_0x257e3f(_0x32c091,_0x2fb21f(0x12c),this['hasPaddingAngle']),_0x257e3f(_0x32c091,_0x2fb21f(0x139),this[_0x2fb21f(0x116)]),_0x257e3f(_0x32c091,'pie.rosePie',this[_0x2fb21f(0x1cf)]),_0x257e3f(_0x32c091,'pie.showLabelLine',this[_0x2fb21f(0x1c0)]),_0xd4a53d[_0x2fb21f(0x1ca)]=_0x32c091,_0xd4a53d;}},_0xfad2bd=class extends _0x3b6f3a{[_0x1c1534(0x1e2)](){const _0x11a360=_0x1c1534;return new _0x1108ed(this['unitId'],this[_0x11a360(0x1ab)],this[_0x11a360(0x1d0)],this['_injector'],this[_0x11a360(0x123)]);}};_0x3b6f3a[_0x1c1534(0x18e)](_0xfad2bd);var _0x5af39d=class extends _0x3b6f3a{constructor(_0x3e3435,_0x595572,_0x1f53a4,_0x4cf1a9,_0x5ddfc4){const _0x133dc8=_0x1c1534;super(_0x3e3435,_0x595572,_0x1f53a4,_0x4cf1a9,_0x5ddfc4),_0x4ebe7d(this,_0x133dc8(0x204),void 0x0),_0x4ebe7d(this,'fill',void 0x0);}['setShape'](_0x8b4f92){const _0x635fe6=_0x1c1534;return this[_0x635fe6(0x204)]=_0x8b4f92,this;}[_0x1c1534(0x1e3)](_0x2eb397){const _0x54af31=_0x1c1534;return this[_0x54af31(0x13e)]=_0x2eb397,this;}[_0x1c1534(0x194)](){const _0x3f6e72=_0x1c1534;let _0x499afe=super[_0x3f6e72(0x194)]();_0x499afe['chartType']=_0x1e50f6['ChartTypeBits'][_0x3f6e72(0x1aa)];let _0x457b0c=_0x499afe['options']||{};return _0x257e3f(_0x457b0c,_0x3f6e72(0x1c2),this['shape']),_0x257e3f(_0x457b0c,_0x3f6e72(0x169),this[_0x3f6e72(0x13e)]),_0x499afe[_0x3f6e72(0x1ca)]=_0x457b0c,_0x499afe;}},_0x45352c=class extends _0x3b6f3a{[_0x1c1534(0x1ef)](){const _0x53a20e=_0x1c1534;return new _0x5af39d(this['unitId'],this[_0x53a20e(0x1ab)],this[_0x53a20e(0x1d0)],this[_0x53a20e(0x1a4)],this[_0x53a20e(0x123)]);}};_0x3b6f3a[_0x1c1534(0x18e)](_0x45352c),_0x15df16[_0x1c1534(0x146)]=_0x144eda,_0x15df16[_0x1c1534(0x1ec)]=_0x3b6f3a,_0x15df16[_0x1c1534(0x144)]=_0x519476,_0x15df16['PieChartBuilder']=_0x1108ed,_0x15df16[_0x1c1534(0x1c7)]=_0x5af39d;}));