@univerjs-pro/sheets-chart-ui 0.5.1 → 0.5.2
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/README.md +40 -7
- package/lib/cjs/facade.js +1 -0
- 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 -0
- 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/commands/commands/sheets-chart.command.d.ts +11 -1
- package/lib/types/const.d.ts +1 -0
- package/lib/types/facade/chart-builder/builder-util.d.ts +4 -0
- package/lib/types/facade/chart-builder/chart-builder-base.d.ts +568 -0
- package/lib/types/facade/chart-builder/line-chart-builder.d.ts +55 -0
- package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +70 -0
- package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +42 -0
- package/lib/types/facade/chart-builder/types.d.ts +22 -0
- package/lib/types/facade/f-chart.d.ts +86 -0
- package/lib/types/facade/f-worksheet.d.ts +120 -0
- package/lib/types/facade/index.d.ts +16 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/zh-CN.d.ts +19 -0
- package/lib/types/models/echart-render-engine.d.ts +2 -0
- package/lib/types/models/echart-render-model.d.ts +1 -1
- package/lib/types/models/render-spec-operators/axis-title.operator.d.ts +2 -0
- package/lib/types/models/render-spec-operators/index.d.ts +2 -1
- package/lib/types/models/render-spec-operators/title-style.operator.d.ts +1 -1
- package/lib/types/models/render-spec-operators/tools.d.ts +4 -2
- package/lib/types/services/sheets-chart-ui.service.d.ts +2 -1
- package/lib/types/views/chart-edit-panel/options.d.ts +5 -5
- package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +19 -0
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +2 -2
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/const.d.ts +2 -0
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/widgets.d.ts +3 -6
- package/lib/umd/facade.js +1 -0
- 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 +29 -17
package/README.md
CHANGED
|
@@ -1,16 +1,49 @@
|
|
|
1
1
|
# ChartPlugin
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/packages/@univerjs-pro/sheets-chart-ui)
|
|
4
|
+
[](https://img.shields.io/npm/l/@univerjs-pro/sheets-chart-ui)
|
|
5
|
+

|
|
6
|
+

|
|
5
7
|
|
|
6
|
-
## Introduction
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
### Installation
|
|
10
|
+
|
|
11
|
+
Chart Feature provide the ability to insert floating charts based on range data in spreadsheets.
|
|
12
|
+
|
|
13
|
+
This feature includes the following plugin packages:
|
|
14
|
+
|
|
15
|
+
- `@univerjs-pro/sheets-chart` - Chart plugin
|
|
16
|
+
- `@univerjs-pro/sheets-chart-ui` - Chart UI plugin
|
|
17
|
+
|
|
18
|
+
```shell npm2yarn
|
|
19
|
+
npm install @univerjs-pro/sheets-chart @univerjs-pro/sheets-chart-ui
|
|
20
|
+
```
|
|
21
|
+
|
|
9
22
|
|
|
10
23
|
## Usage
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
```typescript
|
|
26
|
+
import { LocaleType, merge, Univer } from '@univerjs/core';
|
|
27
|
+
import { defaultTheme } from "@univerjs/design";
|
|
28
|
+
import { UniverSheetsChartPlugin } from '@univerjs-pro/sheets-chart';
|
|
29
|
+
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
|
|
30
|
+
import SheetsChartZhCN from '@univerjs-pro/sheets-chart/locale/zh-CN';
|
|
31
|
+
import SheetsChartUIZhCN from '@univerjs-pro/sheets-chart-ui/locale/zh-CN';
|
|
32
|
+
|
|
33
|
+
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
|
|
34
|
+
|
|
35
|
+
const univer = new Univer({
|
|
36
|
+
theme: defaultTheme,
|
|
37
|
+
locale: LocaleType.ZH_CN,
|
|
38
|
+
locales: {
|
|
39
|
+
[LocaleType.ZH_CN]: merge(
|
|
40
|
+
{},
|
|
41
|
+
SheetsChartZhCN,
|
|
42
|
+
SheetsChartUIZhCN
|
|
43
|
+
),
|
|
44
|
+
},
|
|
45
|
+
});
|
|
13
46
|
|
|
14
|
-
|
|
15
|
-
|
|
47
|
+
univer.registerPlugin(UniverSheetsChartPlugin);
|
|
48
|
+
univer.registerPlugin(UniverSheetsChartUIPlugin);
|
|
16
49
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x2c7191=_0x1832;(function(_0x1a3d40,_0x233560){const _0x52adc1=_0x1832,_0x2303b4=_0x1a3d40();while(!![]){try{const _0x13c381=-parseInt(_0x52adc1(0x15c))/0x1*(-parseInt(_0x52adc1(0x152))/0x2)+-parseInt(_0x52adc1(0x14b))/0x3*(parseInt(_0x52adc1(0x115))/0x4)+parseInt(_0x52adc1(0x183))/0x5*(-parseInt(_0x52adc1(0x180))/0x6)+-parseInt(_0x52adc1(0x17f))/0x7*(parseInt(_0x52adc1(0xdf))/0x8)+-parseInt(_0x52adc1(0xec))/0x9+-parseInt(_0x52adc1(0x156))/0xa+-parseInt(_0x52adc1(0xfd))/0xb*(-parseInt(_0x52adc1(0x119))/0xc);if(_0x13c381===_0x233560)break;else _0x2303b4['push'](_0x2303b4['shift']());}catch(_0x274700){_0x2303b4['push'](_0x2303b4['shift']());}}}(_0x454c,0xc32f6));function _0x1832(_0x79b6ee,_0x4e5c2f){const _0x454cb6=_0x454c();return _0x1832=function(_0x1832f9,_0x432d79){_0x1832f9=_0x1832f9-0xcf;let _0x57de6b=_0x454cb6[_0x1832f9];return _0x57de6b;},_0x1832(_0x79b6ee,_0x4e5c2f);}var k=Object['defineProperty'],_=(_0x24bc25,_0x42273e,_0x38170d)=>_0x42273e in _0x24bc25?k(_0x24bc25,_0x42273e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38170d}):_0x24bc25[_0x42273e]=_0x38170d,o=(_0x2c483c,_0x5b898d,_0x100dd1)=>_(_0x2c483c,typeof _0x5b898d!=_0x2c7191(0x128)?_0x5b898d+'':_0x5b898d,_0x100dd1);Object['defineProperty'](exports,Symbol[_0x2c7191(0x158)],{'value':_0x2c7191(0x101)});const d=require('@univerjs-pro/sheets-chart'),U=require(_0x2c7191(0x16c)),u=require(_0x2c7191(0x12b)),L=require(_0x2c7191(0x185)),w=require(_0x2c7191(0x13a)),M=require(_0x2c7191(0x165)),j=require(_0x2c7191(0x150)),C=require(_0x2c7191(0xe6)),s=(_0x2dc60a,_0x30cde7,_0x21d522)=>{const _0x3d3d37=_0x2c7191;_0x21d522!==void 0x0&&d[_0x3d3d37(0x179)](_0x2dc60a,_0x30cde7,_0x21d522);},I=(_0x68756c,_0x4030d8,_0x25ff84,_0x295504={})=>{const _0x388d40=_0x2c7191,_0x59a917={},_0xd92f24={};if(_0x295504['title']){const _0x267296=_0x295504['title'];s(_0x59a917,_0x388d40(0x174),_0x267296[_0x388d40(0xe8)]),s(_0x59a917,_0x388d40(0x13e),_0x267296[_0x388d40(0x147)]),s(_0x59a917,'titles.title.fontSize',_0x267296['fontSize']),s(_0x59a917,_0x388d40(0x110),_0x267296[_0x388d40(0x162)]),s(_0x59a917,_0x388d40(0x191),_0x267296['fontStyle']),s(_0x59a917,_0x388d40(0x155),_0x267296[_0x388d40(0x107)]),s(_0x59a917,_0x388d40(0xf7),_0x267296[_0x388d40(0xe2)]),s(_0x59a917,_0x388d40(0x112),_0x267296[_0x388d40(0x15e)]);}if(_0x295504[_0x388d40(0xf3)]){const _0x4308e1=_0x295504[_0x388d40(0xf3)];s(_0x59a917,_0x388d40(0x145),_0x4308e1[_0x388d40(0x15e)]),s(_0x59a917,_0x388d40(0xf4),_0x4308e1[_0x388d40(0x17c)]),s(_0x59a917,_0x388d40(0x16a),_0x4308e1['fontSize']),s(_0x59a917,_0x388d40(0x157),_0x4308e1[_0x388d40(0x10b)]),s(_0x59a917,'legend.label.bold',_0x4308e1[_0x388d40(0x103)]),s(_0x59a917,_0x388d40(0x151),_0x4308e1[_0x388d40(0x12d)]);}if(_0x295504[_0x388d40(0xd8)]){const _0x56406a=_0x295504[_0x388d40(0xd8)];s(_0x59a917,'pie.doughnutHole',_0x56406a[_0x388d40(0x148)]),s(_0x59a917,_0x388d40(0x190),_0x56406a[_0x388d40(0x160)]),s(_0x59a917,'pie.hasPaddingAngle',_0x56406a[_0x388d40(0x18e)]),s(_0x59a917,_0x388d40(0x14a),_0x56406a[_0x388d40(0x189)]),s(_0x59a917,_0x388d40(0x120),_0x56406a[_0x388d40(0xe1)]),s(_0x59a917,_0x388d40(0x18b),_0x56406a[_0x388d40(0x172)]);}if(_0x295504[_0x388d40(0x193)]){const _0x4956ee=_0x295504['axisPointer'];s(_0x59a917,_0x388d40(0x12a),_0x4956ee['indicatorLabelColor']),s(_0x59a917,'tooltip.indicatorLineType',_0x4956ee['indicatorLineType']),s(_0x59a917,_0x388d40(0x11b),_0x4956ee[_0x388d40(0xdb)]),s(_0x59a917,'tooltip.indicatorLabelTextColor',_0x4956ee['indicatorLabelTextColor']);}if(_0x295504[_0x388d40(0x187)]&&s(_0x59a917,_0x388d40(0x129),_0x295504[_0x388d40(0x187)]['point']),_0x295504[_0x388d40(0x116)]&&s(_0x59a917,_0x388d40(0x14d),_0x295504[_0x388d40(0x116)][_0x388d40(0x136)]),_0x295504['theme']&&s(_0x59a917,_0x388d40(0x135),_0x295504['theme']),_0x295504[_0x388d40(0xe3)]){const _0x7b0fae=_0x295504[_0x388d40(0xe3)];s(_0x59a917,_0x388d40(0xde),_0x7b0fae['content']),s(_0x59a917,_0x388d40(0x143),_0x7b0fae[_0x388d40(0x147)]),s(_0x59a917,_0x388d40(0x144),_0x7b0fae[_0x388d40(0x141)]),s(_0x59a917,_0x388d40(0xf1),_0x7b0fae[_0x388d40(0x162)]),s(_0x59a917,_0x388d40(0xf8),_0x7b0fae['fontStyle']),s(_0x59a917,'titles.xAxisTitle.fontWeight',_0x7b0fae[_0x388d40(0x107)]),s(_0x59a917,_0x388d40(0xee),_0x7b0fae[_0x388d40(0xe2)]);}if(_0x295504['yAxisTitle']){const _0x533b18=_0x295504[_0x388d40(0xcf)];s(_0x59a917,_0x388d40(0x15a),_0x533b18[_0x388d40(0xe8)]),s(_0x59a917,'titles.yAxisTitle.font',_0x533b18['font']),s(_0x59a917,'titles.yAxisTitle.fontSize',_0x533b18[_0x388d40(0x141)]),s(_0x59a917,_0x388d40(0xda),_0x533b18[_0x388d40(0x162)]),s(_0x59a917,_0x388d40(0x11e),_0x533b18[_0x388d40(0x12f)]),s(_0x59a917,'titles.yAxisTitle.fontWeight',_0x533b18[_0x388d40(0x107)]),s(_0x59a917,_0x388d40(0x154),_0x533b18[_0x388d40(0xe2)]);}if(_0x295504[_0x388d40(0x113)]){const _0x27f81a=_0x295504['rightYAxisTitle'];s(_0x59a917,'titles.rightYAxisTitle.content',_0x27f81a[_0x388d40(0xe8)]),s(_0x59a917,_0x388d40(0x17d),_0x27f81a[_0x388d40(0x147)]),s(_0x59a917,'titles.rightYAxisTitle.fontSize',_0x27f81a[_0x388d40(0x141)]),s(_0x59a917,'titles.rightYAxisTitle.fontColor',_0x27f81a[_0x388d40(0x162)]),s(_0x59a917,'titles.rightYAxisTitle.fontStyle',_0x27f81a[_0x388d40(0x12f)]),s(_0x59a917,_0x388d40(0xfc),_0x27f81a[_0x388d40(0x107)]),s(_0x59a917,'titles.rightYAxisTitle.alignment',_0x27f81a[_0x388d40(0xe2)]);}_0x295504[_0x388d40(0x108)]&&s(_0x59a917,'xAxis',_0x295504['xAxis']),_0x295504[_0x388d40(0x175)]&&s(_0x59a917,'yAxis',_0x295504[_0x388d40(0x175)]),_0x295504[_0x388d40(0xd2)]&&s(_0x59a917,_0x388d40(0xf0),_0x295504[_0x388d40(0xd2)]),_0x295504[_0x388d40(0x14f)]&&s(_0x59a917,_0x388d40(0x14f),_0x295504['seriesStyleMap']);const _0x2ff57d={'unitId':_0x68756c,'chartModelId':_0x4030d8};let _0x123575=!0x1;if(_0x25ff84!==void 0x0&&(_0x2ff57d[_0x388d40(0x126)]=_0x25ff84,_0x123575=!0x0),Object[_0x388d40(0xe7)](_0x59a917)[_0x388d40(0x16f)]>0x0&&(_0x2ff57d['style']=_0x59a917,_0x123575=!0x0),Object[_0x388d40(0xe7)](_0xd92f24)[_0x388d40(0x16f)]>0x0&&(_0x2ff57d['context']=_0xd92f24,_0x123575=!0x0),_0x123575)return _0x2ff57d;};class c extends u[_0x2c7191(0x12c)]{constructor(_0x58c530,_0x5cc7d3,_0x1179b,_0x2a0d04,_0x41b33d){const _0x21f059=_0x2c7191;super(),o(this,'_workbook'),o(this,_0x21f059(0x166)),o(this,_0x21f059(0xf5)),o(this,_0x21f059(0x10f)),o(this,_0x21f059(0xf9)),o(this,_0x21f059(0x181)),o(this,'sourceSheetName'),o(this,'x'),o(this,'y'),o(this,_0x21f059(0x161)),o(this,'height'),o(this,_0x21f059(0x126)),o(this,_0x21f059(0x171)),o(this,_0x21f059(0x16d)),(this[_0x21f059(0xf5)]=_0x58c530,this[_0x21f059(0x10f)]=_0x5cc7d3,this['_workbook']=_0x1179b,this[_0x21f059(0x166)]=_0x2a0d04,_0x41b33d&&(this[_0x21f059(0xf9)]=_0x41b33d));}['getChartType'](){const _0x23db28=_0x2c7191;return this[_0x23db28(0x126)];}[_0x2c7191(0x10d)](_0x20f0e4){const _0xc3dcd2=_0x2c7191;if(typeof _0x20f0e4==_0xc3dcd2(0xf6)){const _0x196dff=M[_0xc3dcd2(0x149)](_0x20f0e4);_0x196dff['sheetName']&&(this[_0xc3dcd2(0x153)]=_0x196dff[_0xc3dcd2(0xd4)]),this['range']=_0x196dff['range'];}else this[_0xc3dcd2(0x181)]=_0x20f0e4;return this;}[_0x2c7191(0x15f)](){const _0x49a96e=_0x2c7191;return this['range']=void 0x0,this[_0x49a96e(0x153)]=void 0x0,this;}[_0x2c7191(0x131)](_0x51db05,_0x11e61c,_0x32abe7,_0x187716){const _0x1371a1=_0x2c7191,_0xa286c4=this['_injector'][_0x1371a1(0x18f)](j['IRenderManagerService'])[_0x1371a1(0xff)](this[_0x1371a1(0xf5)]);if(!_0xa286c4)throw new Error(_0x1371a1(0x164));const _0x53d848=_0xa286c4[_0x1371a1(0x10c)](C['ISheetSelectionRenderService']),_0x5cd705=_0xa286c4[_0x1371a1(0x10c)](C[_0x1371a1(0x134)]),{transform:_0x5e39ee}=C[_0x1371a1(0x124)](this[_0x1371a1(0xf5)],this[_0x1371a1(0x10f)],{'row':_0x51db05,'column':_0x11e61c,'rowOffset':_0x32abe7,'columnOffset':_0x187716},0x1,0x1,_0x53d848,_0x5cd705),_0x541081=_0x5e39ee[_0x1371a1(0x111)],_0x5cf724=_0x5e39ee[_0x1371a1(0xd0)];return this['x']=_0x5cf724,this['y']=_0x541081,this;}[_0x2c7191(0x137)](_0x2c9539,_0x24dedc){return this['x']=_0x2c9539,this['y']=_0x24dedc,this;}['setChartType'](_0x5e6a5d){const _0x313195=_0x2c7191;return this[_0x313195(0x126)]=_0x5e6a5d,this;}[_0x2c7191(0xfe)](_0x297636){const _0x5805df=_0x2c7191;return this[_0x5805df(0x161)]=_0x297636,this;}[_0x2c7191(0x17e)](_0x28c56e){const _0x3c8c3b=_0x2c7191;return this[_0x3c8c3b(0xe4)]=_0x28c56e,this;}[_0x2c7191(0x188)](_0x3721a2,_0x5ee4dc){const _0x55af4a=_0x2c7191;return this[_0x55af4a(0x171)]||(this[_0x55af4a(0x171)]={}),_0x3721a2===''?(this[_0x55af4a(0x171)]={...this['options'],..._0x5ee4dc},this):(d[_0x55af4a(0x179)](this[_0x55af4a(0x171)],_0x3721a2,_0x5ee4dc),this);}[_0x2c7191(0xe0)](_0x53cabb){const _0x49925e=_0x2c7191;return this[_0x49925e(0x16d)]=_0x53cabb,this;}[_0x2c7191(0xd9)](_0x187516){const _0x2d5312=_0x2c7191;return this[_0x2d5312(0x188)](_0x2d5312(0x135),_0x187516),this;}['setXAxisTitle'](_0x1bf067){const _0xc6fed9=_0x2c7191;var _0x2f65c3;const _0x399275=((_0x2f65c3=this[_0xc6fed9(0x171)])==null?void 0x0:_0x2f65c3[_0xc6fed9(0xe3)])||{};return _0x399275['content']=_0x1bf067,this[_0xc6fed9(0x188)]('xAxisTitle',_0x399275),this;}[_0x2c7191(0x118)](_0x4b933d){const _0x2a7445=_0x2c7191;var _0x129dd0;const _0x50bb23=((_0x129dd0=this['options'])==null?void 0x0:_0x129dd0['yAxisTitle'])||{};return _0x50bb23[_0x2a7445(0xe8)]=_0x4b933d,this[_0x2a7445(0x188)](_0x2a7445(0xcf),_0x50bb23),this;}[_0x2c7191(0x13c)](_0x4a9905){const _0x361f80=_0x2c7191;var _0x36d55c;const _0xd5f556=((_0x36d55c=this[_0x361f80(0x171)])==null?void 0x0:_0x36d55c['rightYAxisTitle'])||{};return _0xd5f556[_0x361f80(0xe8)]=_0x4a9905,this[_0x361f80(0x188)](_0x361f80(0x113),_0xd5f556),this;}['setXAxisTextStyle'](_0x3b897b){const _0x462a40=_0x2c7191;var _0x55ac53;const _0x799fba=((_0x55ac53=this[_0x462a40(0x171)])==null?void 0x0:_0x55ac53[_0x462a40(0xe3)])||{};return this[_0x462a40(0x188)](_0x462a40(0xe3),{..._0x799fba,..._0x3b897b}),this;}[_0x2c7191(0x139)](_0x291e2f){const _0x1c6666=_0x2c7191;var _0xee589c;const _0x37c490=((_0xee589c=this['options'])==null?void 0x0:_0xee589c['yAxisTitle'])||{};return this[_0x1c6666(0x188)](_0x1c6666(0xcf),{..._0x37c490,..._0x291e2f}),this;}[_0x2c7191(0x10e)](_0x28691b){const _0xd1673b=_0x2c7191;var _0x239bc7;const _0x29135c=((_0x239bc7=this['options'])==null?void 0x0:_0x239bc7['rightYAxisTitle'])||{};return this[_0xd1673b(0x188)](_0xd1673b(0x113),{..._0x29135c,..._0x28691b}),this;}['setInvalidValueStrategy'](_0x48fb08){const _0x2f2757=_0x2c7191;return this[_0x2f2757(0x188)](_0x2f2757(0xfa),_0x48fb08),this;}[_0x2c7191(0x11d)](_0x1ed0d5){const _0xa11a48=_0x2c7191;return this[_0xa11a48(0x188)](_0xa11a48(0x193),_0x1ed0d5),this;}[_0x2c7191(0x122)](_0x4e6005){return this['setOptions']('allSeriesStyle',_0x4e6005),this;}[_0x2c7191(0xdd)](_0x3827d3,_0x2ed188){const _0x279994=_0x2c7191;return this[_0x279994(0x188)]('seriesStyleMap',{[_0x3827d3]:_0x2ed188}),this;}[_0x2c7191(0xd5)](){const _0xbfba26=_0x2c7191;var _0x5c4c6c;let _0x5bff9f=this[_0xbfba26(0x10f)];if(this[_0xbfba26(0x153)]){const _0xc23843=(_0x5c4c6c=this[_0xbfba26(0x114)][_0xbfba26(0x194)](this[_0xbfba26(0x153)]))==null?void 0x0:_0x5c4c6c['getSheetId']();if(!_0xc23843)throw new Error(_0xbfba26(0x13f)+this[_0xbfba26(0x153)]+'\x20not\x20found');_0x5bff9f=_0xc23843;}return{'unitId':this['unitId'],'subUnitId':_0x5bff9f,'chartId':this[_0xbfba26(0xf9)],'range':this[_0xbfba26(0x181)],'x':this['x'],'y':this['y'],'width':this[_0xbfba26(0x161)],'height':this[_0xbfba26(0xe4)],'chartType':this[_0xbfba26(0x126)],'options':this['options'],'isRowDirection':this[_0xbfba26(0x16d)]};}}class T{constructor(_0x34f4ca,_0x2dc896,_0x443bf6,_0x35cc80){const _0x2d0ffa=_0x2c7191;o(this,_0x2d0ffa(0xf5)),o(this,_0x2d0ffa(0x10f)),o(this,'chartId'),o(this,_0x2d0ffa(0x166)),(this[_0x2d0ffa(0xf5)]=_0x34f4ca,this[_0x2d0ffa(0x10f)]=_0x2dc896,this[_0x2d0ffa(0xf9)]=_0x443bf6,this[_0x2d0ffa(0x166)]=_0x35cc80);}[_0x2c7191(0x16b)](){const _0x20e39d=_0x2c7191;return this[_0x20e39d(0xf9)];}['getRange'](){const _0x12e447=_0x2c7191,_0x2868ee=this[_0x12e447(0x166)]['get'](d['SheetsChartService'])[_0x12e447(0x146)](this['chartId']);if(_0x2868ee)return _0x2868ee[_0x12e447(0x17b)][_0x12e447(0x11a)]();}['updateRange'](_0x32fbae){const _0x58de1a=_0x2c7191;return this[_0x58de1a(0x166)][_0x58de1a(0x18f)](u[_0x58de1a(0xd6)])[_0x58de1a(0x13d)](d[_0x58de1a(0x17a)]['id'],{'unitId':this['unitId'],'chartModelId':this[_0x58de1a(0xf9)],'range':_0x32fbae});}[_0x2c7191(0x140)](){const _0x3cc60c=_0x2c7191;var _0x3acdfa;const _0x11c541=this[_0x3cc60c(0x166)][_0x3cc60c(0x18f)](d['SheetsChartService'])[_0x3cc60c(0x146)](this[_0x3cc60c(0xf9)]);if(_0x11c541)return(_0x3acdfa=_0x11c541['config'])==null?void 0x0:_0x3acdfa['series'];}['getCategoryData'](){const _0x1e7996=_0x2c7191;var _0x27431e;const _0x40f99f=this[_0x1e7996(0x166)]['get'](d[_0x1e7996(0x127)])['getChartModel'](this['chartId']);if(_0x40f99f)return(_0x27431e=_0x40f99f[_0x1e7996(0x184)])==null?void 0x0:_0x27431e[_0x1e7996(0x138)];}[_0x2c7191(0x123)](){const _0x4f8525=_0x2c7191,_0x294a60=this[_0x4f8525(0x166)]['get'](u[_0x4f8525(0x18c)])[_0x4f8525(0xe9)](u['UniverInstanceType'][_0x4f8525(0x11f)]);return new c(this[_0x4f8525(0xf5)],this['subUnitId'],_0x294a60,this['_injector'],this[_0x4f8525(0xf9)]);}}class Y extends w[_0x2c7191(0x125)]{async['insertChart'](_0x1036ec){const _0x2e23b6=_0x2c7191;var _0x4f048,_0x3bed58,_0x113730;const _0x1d63d3=_0x1036ec[_0x2e23b6(0xf5)]||this[_0x2e23b6(0x106)]()[_0x2e23b6(0x192)](),_0x5c69ae=_0x1036ec['subUnitId']||this[_0x2e23b6(0x195)](),_0x45f794=_0x1036ec[_0x2e23b6(0xf9)]||u['generateRandomId'](),_0xefcac5=_0x1036ec['chartType'],_0x4f9c46=_0x1036ec[_0x2e23b6(0x181)],_0x18e34b={'x':_0x1036ec['x'],'y':_0x1036ec['y']},_0x6c883a=_0x1036ec[_0x2e23b6(0x161)],_0x1b7298=_0x1036ec['height'],_0x52cf8b=(_0x4f048=_0x1036ec[_0x2e23b6(0x171)])==null?void 0x0:_0x4f048[_0x2e23b6(0x102)],_0x52f4d3=(_0x3bed58=_0x1036ec[_0x2e23b6(0x171)])==null?void 0x0:_0x3bed58['borderColor'],_0x540142=I(_0x1d63d3,_0x45f794,_0xefcac5,_0x1036ec[_0x2e23b6(0x171)]),_0x4414f2=(_0x113730=_0x1036ec['isRowDirection'])!=null?_0x113730:!0x0;if(!_0x4f9c46)throw new Error(_0x2e23b6(0xe5));return await this[_0x2e23b6(0x132)][_0x2e23b6(0x13d)](U['InsertChartCommand']['id'],{'unitId':_0x1d63d3,'subUnitId':_0x5c69ae,'chartId':_0x45f794,'chartType':_0xefcac5,'range':_0x4f9c46,'position':_0x18e34b,'width':_0x6c883a,'height':_0x1b7298,'backgroundColor':_0x52cf8b,'borderColor':_0x52f4d3,'config':_0x540142,'isRowDirection':_0x4414f2}),new T(_0x1d63d3,_0x5c69ae,_0x45f794,this[_0x2e23b6(0x166)]);}['updateChart'](_0x507ce5){const _0x198dc4=_0x2c7191,{unitId:_0x2cb099,chartId:_0x1e32cb,chartType:_0x13565b,options:_0x43ee79}=_0x507ce5,_0x3ed459=I(_0x2cb099,_0x1e32cb,_0x13565b,_0x43ee79);this['_commandService']['executeCommand'](d[_0x198dc4(0x159)]['id'],_0x3ed459);}[_0x2c7191(0x10a)](_0x49691f){const _0x266e9c=_0x2c7191;if(_0x49691f)return new c(_0x49691f[_0x266e9c(0xf5)],_0x49691f[_0x266e9c(0x10f)],this[_0x266e9c(0x114)],this[_0x266e9c(0x166)],_0x49691f[_0x266e9c(0xf9)]);const _0x3eb3c4=this['getWorkbook']()['getUnitId'](),_0x2ba567=this[_0x266e9c(0x195)]();return new c(_0x3eb3c4,_0x2ba567,this[_0x266e9c(0x114)],this[_0x266e9c(0x166)]);}[_0x2c7191(0x11c)](){const _0x3a6fdf=_0x2c7191,_0x32a792=this[_0x3a6fdf(0x166)][_0x3a6fdf(0x18f)](d['SheetsChartService']),_0x23699d=this[_0x3a6fdf(0x106)]()[_0x3a6fdf(0x192)]();return _0x32a792['getUnitChartModels'](_0x23699d,this['getSheetId']())[_0x3a6fdf(0x133)](_0x317bef=>new T(_0x23699d,this[_0x3a6fdf(0x195)](),_0x317bef['id'],this[_0x3a6fdf(0x166)]));}[_0x2c7191(0x18a)](_0x4c56ca){const _0x3ae20c=_0x2c7191,_0x11711f=_0x4c56ca[_0x3ae20c(0xf5)],_0x34ecd7=_0x4c56ca[_0x3ae20c(0x10f)],_0x4ff1de=_0x4c56ca['chartId'],_0x369bce={'unitId':_0x11711f,'drawings':[{'unitId':_0x11711f,'subUnitId':_0x34ecd7,'drawingId':_0x4ff1de,'drawingType':u[_0x3ae20c(0x121)]['DRAWING_CHART']}]};return this[_0x3ae20c(0x132)][_0x3ae20c(0x13d)](L[_0x3ae20c(0x105)]['id'],_0x369bce);}[_0x2c7191(0x130)](_0x3822dd,_0x180ce0){const _0x48d174=_0x2c7191;this[_0x48d174(0x166)][_0x48d174(0x18f)](d[_0x48d174(0xfb)])[_0x48d174(0x178)](_0x3822dd,_0x180ce0);}}w['FWorksheet'][_0x2c7191(0x15b)](Y);class P extends c{constructor(_0x49f381,_0x288b0d,_0x2bfe05,_0x4df3a9,_0x3eadc2){const _0x5d67b4=_0x2c7191;super(_0x49f381,_0x288b0d,_0x2bfe05,_0x4df3a9,_0x3eadc2),o(this,_0x5d67b4(0x136)),o(this,_0x5d67b4(0x169)),o(this,_0x5d67b4(0xd3)),o(this,_0x5d67b4(0x117));}['setLineStyle'](_0x55aee3){const _0x145584=_0x2c7191;return this[_0x145584(0x136)]=_0x55aee3,this;}[_0x2c7191(0x14e)](_0x26b16b){const _0x16c143=_0x2c7191;return this[_0x16c143(0x169)]=_0x26b16b,this;}[_0x2c7191(0xef)](_0x5cb349){const _0x54b76c=_0x2c7191;return this[_0x54b76c(0xd3)]=_0x5cb349,this;}[_0x2c7191(0x177)](_0x2d2103){const _0x74e1dc=_0x2c7191;return this[_0x74e1dc(0x117)]=_0x2d2103,this;}[_0x2c7191(0xd5)](){const _0x1a90f0=_0x2c7191,_0x42c470=super[_0x1a90f0(0xd5)]();_0x42c470['chartType']=d[_0x1a90f0(0xed)][_0x1a90f0(0x173)];const _0x359e7b=_0x42c470[_0x1a90f0(0x171)]||{};return s(_0x359e7b,_0x1a90f0(0x14d),this[_0x1a90f0(0x136)]),s(_0x359e7b,_0x1a90f0(0x100),this['dataPointShape']),s(_0x359e7b,_0x1a90f0(0x18d),this[_0x1a90f0(0xd3)]),s(_0x359e7b,_0x1a90f0(0x170),this[_0x1a90f0(0x117)]),_0x42c470[_0x1a90f0(0x171)]=_0x359e7b,_0x42c470;}}class H extends c{[_0x2c7191(0x109)](){const _0x12ecef=_0x2c7191;return new P(this[_0x12ecef(0xf5)],this[_0x12ecef(0x10f)],this[_0x12ecef(0x114)],this[_0x12ecef(0x166)],this[_0x12ecef(0xf9)]);}}c[_0x2c7191(0x15b)](H);class v extends c{constructor(_0x51081c,_0x462fc4,_0x1773e6,_0x1c5ef0,_0x45ef0b){const _0x3422e0=_0x2c7191;super(_0x51081c,_0x462fc4,_0x1773e6,_0x1c5ef0,_0x45ef0b),o(this,_0x3422e0(0x148)),o(this,_0x3422e0(0x160)),o(this,_0x3422e0(0x18e)),o(this,_0x3422e0(0x189)),o(this,_0x3422e0(0xe1)),o(this,_0x3422e0(0x172));}[_0x2c7191(0x182)](_0x47cfd7){const _0x47c58f=_0x2c7191;return this[_0x47c58f(0x148)]=_0x47cfd7,this;}[_0x2c7191(0xf2)](_0x53cd83){const _0x23da39=_0x2c7191;return this[_0x23da39(0x160)]=_0x53cd83,this;}[_0x2c7191(0x16e)](_0x5eb2ea){const _0x1270a4=_0x2c7191;return this[_0x1270a4(0x18e)]=_0x5eb2ea,this;}[_0x2c7191(0x13b)](_0x3f178a){const _0x4922e6=_0x2c7191;return this[_0x4922e6(0x189)]=_0x3f178a,this;}['setRosePie'](_0x4a2fa2){const _0x38a049=_0x2c7191;return this[_0x38a049(0xe1)]=_0x4a2fa2,this;}[_0x2c7191(0xdc)](_0x32f78c){const _0x248922=_0x2c7191;return this[_0x248922(0x172)]=_0x32f78c,this;}[_0x2c7191(0xd5)](){const _0x539828=_0x2c7191,_0x213635=super[_0x539828(0xd5)]();_0x213635['chartType']=d[_0x539828(0xed)][_0x539828(0x167)];const _0x3ab78d=_0x213635['options']||{};return s(_0x3ab78d,_0x539828(0xd7),this[_0x539828(0x148)]),s(_0x3ab78d,_0x539828(0x190),this[_0x539828(0x160)]),s(_0x3ab78d,'pie.hasPaddingAngle',this[_0x539828(0x18e)]),s(_0x3ab78d,_0x539828(0x14a),this['isHalfPie']),s(_0x3ab78d,_0x539828(0x120),this[_0x539828(0xe1)]),s(_0x3ab78d,_0x539828(0x18b),this['showLabelLine']),_0x213635['options']=_0x3ab78d,_0x213635;}}function _0x454c(){const _0x355391=['fontStyle','registerChartTheme','setPosition','_commandService','map','SheetSkeletonManagerService','theme','lineStyle','setAbsolutePosition','category','setYAxisTextStyle','@univerjs/sheets/facade','setIsHalfPie','setRightYAxisTitle','executeCommand','titles.title.font','Sheet\x20','getSeriesData','fontSize','setShape','titles.xAxisTitle.font','titles.xAxisTitle.fontSize','legend.position','getChartModel','font','doughnutHole','deserializeRangeWithSheet','pie.isHalfPie','51eCQnhA','radar.shape','area.lineStyle','setDataPointShape','seriesStyleMap','@univerjs/engine-render','legend.label.italic','2uUlqgG','sourceSheetName','titles.yAxisTitle.alignment','titles.title.fontWeight','351840HRsobF','legend.label.color','toStringTag','ChartUpdateConfigCommand','titles.yAxisTitle.content','extend','1318159LBZrOL','RadarChartBuilder','position','clearRange','borderColor','width','fontColor','shape','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','@univerjs/engine-formula','_injector','Pie','Radar','dataPointShape','legend.label.fontSize','getChartId','@univerjs-pro/sheets-chart-ui','transposeRowsAndColumns','setHasPaddingAngle','length','allSeriesStyle.point.size','options','showLabelLine','Line','titles.title.content','yAxis','setFill','setDataPointSize','registerTheme','setProperty','ChartUpdateSourceCommand','dataSource','selectMode','titles.rightYAxisTitle.font','setHeight','2961994ZqDnVP','278904RBDeET','range','setDoughnutHole','10somwRg','config','@univerjs/sheets-drawing-ui','LineChartBuilder','allSeriesStyle','setOptions','isHalfPie','removeChart','pie.showLabelLine','IUniverInstanceService','allSeriesStyle.point.color','hasPaddingAngle','get','pie.borderColor','titles.title.fontStyle','getUnitId','axisPointer','getSheetBySheetName','getSheetId','yAxisTitle','left','asRadarChart','yRightAxis','dataPointColor','sheetName','build','CommandService','pie.doughnutHole','pie','setTheme','titles.yAxisTitle.fontColor','indicatorLineColor','setShowLabelLine','setSeriesStyle','titles.xAxisTitle.content','8rzTUxb','setTransposeRowsAndColumns','rosePie','alignment','xAxisTitle','height','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','@univerjs/sheets-ui','keys','content','getCurrentUnitForType','radar.fill','PieChartBuilder','5865885yQDwrG','ChartTypeBits','titles.xAxisTitle.alignment','setDataPointColor','rightYAxis','titles.xAxisTitle.fontColor','setBorderColor','legend','legend.selectMode','unitId','string','titles.title.alignment','titles.xAxisTitle.fontStyle','chartId','invalidValueType','ChartThemeService','titles.rightYAxisTitle.fontWeight','11rQhoig','setWidth','getRenderById','allSeriesStyle.point.shape','Module','backgroundColor','bold','fill','RemoveSheetDrawingCommand','getWorkbook','fontWeight','xAxis','asLineChart','newChart','color','with','addRange','setRightYAxisTextStyle','subUnitId','titles.title.fontColor','top','titles.title.titlePosition','rightYAxisTitle','_workbook','169132KCYTqT','area','dataPointSize','setYAxisTitle','16838268TujUeN','getRangeInfo','tooltip.indicatorLineColor','getCharts','setAxisPointerStyle','titles.yAxisTitle.fontStyle','UNIVER_SHEET','pie.rosePie','DrawingTypeEnum','setAllSeriesStyle','modify','convertPositionCellToSheetOverGrid','FWorksheet','chartType','SheetsChartService','symbol','allSeriesStyle.point','tooltip.indicatorLabelColor','@univerjs/core','FBase','italic','FChart'];_0x454c=function(){return _0x355391;};return _0x454c();}class z extends c{['asPieChart'](){const _0xa4d2be=_0x2c7191;return new v(this[_0xa4d2be(0xf5)],this[_0xa4d2be(0x10f)],this[_0xa4d2be(0x114)],this[_0xa4d2be(0x166)],this['chartId']);}}c['extend'](z);class b extends c{constructor(_0x253e36,_0x1e076c,_0x3961c6,_0xe8569b,_0xa1c5ca){const _0x1a868d=_0x2c7191;super(_0x253e36,_0x1e076c,_0x3961c6,_0xe8569b,_0xa1c5ca),o(this,_0x1a868d(0x163)),o(this,_0x1a868d(0x104));}[_0x2c7191(0x142)](_0x474d09){return this['shape']=_0x474d09,this;}[_0x2c7191(0x176)](_0x1667eb){const _0x4c3289=_0x2c7191;return this[_0x4c3289(0x104)]=_0x1667eb,this;}['build'](){const _0xb1ee5a=_0x2c7191,_0x38330c=super[_0xb1ee5a(0xd5)]();_0x38330c[_0xb1ee5a(0x126)]=d[_0xb1ee5a(0xed)][_0xb1ee5a(0x168)];const _0x39d4fa=_0x38330c[_0xb1ee5a(0x171)]||{};return s(_0x39d4fa,_0xb1ee5a(0x14c),this[_0xb1ee5a(0x163)]),s(_0x39d4fa,_0xb1ee5a(0xea),this[_0xb1ee5a(0x104)]),_0x38330c[_0xb1ee5a(0x171)]=_0x39d4fa,_0x38330c;}}class W extends c{[_0x2c7191(0xd1)](){const _0x5c7b2c=_0x2c7191;return new b(this[_0x5c7b2c(0xf5)],this['subUnitId'],this[_0x5c7b2c(0x114)],this[_0x5c7b2c(0x166)],this[_0x5c7b2c(0xf9)]);}}c[_0x2c7191(0x15b)](W),exports[_0x2c7191(0x12e)]=T,exports['FChartBuilderBase']=c,exports[_0x2c7191(0x186)]=P,exports[_0x2c7191(0xeb)]=v,exports[_0x2c7191(0x15d)]=b;
|