@univerjs-pro/sheets-chart-ui 0.5.1 → 0.5.2-nightly.202412281605
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 _0x142216=_0x29a5;(function(_0x26a77c,_0xfebacc){const _0x56f872=_0x29a5,_0x2ad760=_0x26a77c();while(!![]){try{const _0x19da8c=parseInt(_0x56f872(0x14a))/0x1*(-parseInt(_0x56f872(0x1b0))/0x2)+-parseInt(_0x56f872(0x16a))/0x3*(parseInt(_0x56f872(0x102))/0x4)+parseInt(_0x56f872(0x19e))/0x5+-parseInt(_0x56f872(0x182))/0x6*(parseInt(_0x56f872(0x1c9))/0x7)+-parseInt(_0x56f872(0x170))/0x8*(parseInt(_0x56f872(0x1af))/0x9)+parseInt(_0x56f872(0x1a3))/0xa*(-parseInt(_0x56f872(0x156))/0xb)+parseInt(_0x56f872(0x138))/0xc;if(_0x19da8c===_0xfebacc)break;else _0x2ad760['push'](_0x2ad760['shift']());}catch(_0x45a4be){_0x2ad760['push'](_0x2ad760['shift']());}}}(_0x5a5e,0x5e268));function _0x29a5(_0x25452f,_0x449cda){const _0x5a5ed4=_0x5a5e();return _0x29a5=function(_0x29a59e,_0x2c9aa2){_0x29a59e=_0x29a59e-0xfb;let _0x37254b=_0x5a5ed4[_0x29a59e];return _0x37254b;},_0x29a5(_0x25452f,_0x449cda);}function _0x5a5e(){const _0x43269d=['setHeight','8913pBzNAU','ChartUpdateSourceCommand','generateRandomId','sheetName','pie.doughnutHole','tooltip.indicatorLabelTextColor','8smfSmZ','allSeriesStyle.point','DRAWING_CHART','titles.yAxisTitle.content','build','shape','titles.xAxisTitle.fontColor','top','SheetSkeletonManagerService','titles.title.fontWeight','allSeriesStyle.point.size','titles.yAxisTitle.font','dataPointSize','setShowLabelLine','tooltip.indicatorLabelColor','symbol','asLineChart','getChartModel','313404RpeGcx','IUniverInstanceService','_workbook','setOptions','dataPointShape','tooltip.indicatorLineType','fontColor','getUnitId','getChartId','legend.label.color','allSeriesStyle.point.color','map','series','setTransposeRowsAndColumns','FWorksheet','range','titles.yAxisTitle.fontColor','rightYAxis','yAxis','pie.isHalfPie','backgroundColor','dataSource','setAllSeriesStyle','setDataPointSize','SheetsChartService','updateRange','Sheet\x20','left','1415440BGQPeQ','theme','@univerjs/sheets/facade','indicatorLineColor','_commandService','90lrkvyj','length','setFill','options','CommandService','fontStyle','executeCommand','height','getRenderById','getChartType','insertChart','keys','3552669YKTLAB','8MWoich','Radar','titles.rightYAxisTitle.content','getWorkbook','pie.borderColor','getCategoryData','deserializeRangeWithSheet','Module','getSheetBySheetName','setProperty','subUnitId','setRightYAxisTitle','setBorderColor','title','chartType','ChartTypeBits','xAxisTitle','setSeriesStyle','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','addRange','setAxisPointerStyle','titles.rightYAxisTitle.alignment','extend','yRightAxis','removeChart','98GIHmpv','updateChart','unitId','fontWeight','registerTheme','asRadarChart','titles.rightYAxisTitle.fontWeight','area.lineStyle','dataPointColor','font','pie.rosePie','168LvNCmx','convertPositionCellToSheetOverGrid','sourceSheetName','yAxisTitle','legend.position','asPieChart','setDoughnutHole','legend.label.italic','@univerjs/engine-formula','radar.shape','position','getUnitChartModels','titles.rightYAxisTitle.fontStyle','seriesStyleMap','FChart','tooltip.indicatorLineColor','titles.yAxisTitle.fontWeight','content','setYAxisTitle','showLabelLine','titles.xAxisTitle.fontWeight','category','xAxis','setWidth','@univerjs/sheets-drawing-ui','titles.rightYAxisTitle.font','Line','bold','RemoveSheetDrawingCommand','UNIVER_SHEET','allSeriesStyle','getCurrentUnitForType','doughnutHole','getRange','pie.hasPaddingAngle','registerChartTheme','setRosePie','@univerjs/sheets-ui','fill','defineProperty','setChartType','hasPaddingAngle','titles.rightYAxisTitle.fontColor','fontSize','setInvalidValueStrategy','setShape','ChartThemeService','titles.yAxisTitle.fontStyle','setYAxisTextStyle','transposeRowsAndColumns','allSeriesStyle.point.shape','alignment','invalidValueType','italic','27444024tnwzoZ','getCharts','rosePie','legend.label.bold','toStringTag','lineStyle','area','getSheetId','titles.title.alignment','indicatorLabelTextColor','FBase','PieChartBuilder','point','InsertChartCommand','titles.xAxisTitle.alignment','pie.showLabelLine','\x20not\x20found','_injector','168462MVPwRG','width','with','@univerjs/engine-render','setAbsolutePosition','titles.xAxisTitle.fontSize','IRenderManagerService','ChartUpdateConfigCommand','titles.xAxisTitle.content','borderColor','Pie','RadarChartBuilder','317537XazJJI','setTheme','get','selectMode','modify','titles.xAxisTitle.font','legend.selectMode','config','rightYAxisTitle','setDataPointShape','isHalfPie','newChart','axisPointer','chartId','titles.title.fontColor','string','UniverInstanceType','LineChartBuilder','pie'];_0x5a5e=function(){return _0x43269d;};return _0x5a5e();}var k=Object[_0x142216(0x129)],_=(_0x5e4f44,_0x5a7ba8,_0x3e3174)=>_0x5a7ba8 in _0x5e4f44?k(_0x5e4f44,_0x5a7ba8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e3174}):_0x5e4f44[_0x5a7ba8]=_0x3e3174,o=(_0x109f22,_0x2de2ab,_0x172864)=>_(_0x109f22,typeof _0x2de2ab!=_0x142216(0x17f)?_0x2de2ab+'':_0x2de2ab,_0x172864);Object[_0x142216(0x129)](exports,Symbol[_0x142216(0x13c)],{'value':_0x142216(0x1b7)});const d=require('@univerjs-pro/sheets-chart'),U=require('@univerjs-pro/sheets-chart-ui'),u=require('@univerjs/core'),L=require(_0x142216(0x11a)),w=require(_0x142216(0x1a0)),M=require(_0x142216(0x10a)),j=require(_0x142216(0x14d)),C=require(_0x142216(0x127)),s=(_0x5e5352,_0x515adf,_0xcbcf0e)=>{_0xcbcf0e!==void 0x0&&d['setProperty'](_0x5e5352,_0x515adf,_0xcbcf0e);},I=(_0x392405,_0x353622,_0x496225,_0x2e4d0b={})=>{const _0x23b7e3=_0x142216,_0x199da5={},_0x160e3b={};if(_0x2e4d0b[_0x23b7e3(0x1bd)]){const _0x474871=_0x2e4d0b[_0x23b7e3(0x1bd)];s(_0x199da5,'titles.title.content',_0x474871[_0x23b7e3(0x113)]),s(_0x199da5,'titles.title.font',_0x474871[_0x23b7e3(0x100)]),s(_0x199da5,'titles.title.fontSize',_0x474871['fontSize']),s(_0x199da5,_0x23b7e3(0x164),_0x474871[_0x23b7e3(0x188)]),s(_0x199da5,'titles.title.fontStyle',_0x474871['fontStyle']),s(_0x199da5,_0x23b7e3(0x179),_0x474871[_0x23b7e3(0x1cc)]),s(_0x199da5,_0x23b7e3(0x140),_0x474871[_0x23b7e3(0x135)]),s(_0x199da5,'titles.title.titlePosition',_0x474871[_0x23b7e3(0x10c)]);}if(_0x2e4d0b['legend']){const _0x476657=_0x2e4d0b['legend'];s(_0x199da5,_0x23b7e3(0x106),_0x476657[_0x23b7e3(0x10c)]),s(_0x199da5,_0x23b7e3(0x15c),_0x476657[_0x23b7e3(0x159)]),s(_0x199da5,'legend.label.fontSize',_0x476657[_0x23b7e3(0x12d)]),s(_0x199da5,_0x23b7e3(0x18b),_0x476657['color']),s(_0x199da5,_0x23b7e3(0x13b),_0x476657[_0x23b7e3(0x11d)]),s(_0x199da5,_0x23b7e3(0x109),_0x476657[_0x23b7e3(0x137)]);}if(_0x2e4d0b[_0x23b7e3(0x168)]){const _0x4a65b6=_0x2e4d0b[_0x23b7e3(0x168)];s(_0x199da5,_0x23b7e3(0x16e),_0x4a65b6[_0x23b7e3(0x122)]),s(_0x199da5,_0x23b7e3(0x1b4),_0x4a65b6[_0x23b7e3(0x153)]),s(_0x199da5,_0x23b7e3(0x124),_0x4a65b6[_0x23b7e3(0x12b)]),s(_0x199da5,_0x23b7e3(0x195),_0x4a65b6[_0x23b7e3(0x160)]),s(_0x199da5,_0x23b7e3(0x101),_0x4a65b6['rosePie']),s(_0x199da5,'pie.showLabelLine',_0x4a65b6[_0x23b7e3(0x115)]);}if(_0x2e4d0b[_0x23b7e3(0x162)]){const _0x27ebe3=_0x2e4d0b[_0x23b7e3(0x162)];s(_0x199da5,_0x23b7e3(0x17e),_0x27ebe3['indicatorLabelColor']),s(_0x199da5,_0x23b7e3(0x187),_0x27ebe3['indicatorLineType']),s(_0x199da5,_0x23b7e3(0x111),_0x27ebe3[_0x23b7e3(0x1a1)]),s(_0x199da5,_0x23b7e3(0x16f),_0x27ebe3[_0x23b7e3(0x141)]);}if(_0x2e4d0b[_0x23b7e3(0x120)]&&s(_0x199da5,_0x23b7e3(0x171),_0x2e4d0b[_0x23b7e3(0x120)][_0x23b7e3(0x144)]),_0x2e4d0b[_0x23b7e3(0x13e)]&&s(_0x199da5,'area.lineStyle',_0x2e4d0b[_0x23b7e3(0x13e)][_0x23b7e3(0x13d)]),_0x2e4d0b[_0x23b7e3(0x19f)]&&s(_0x199da5,'theme',_0x2e4d0b[_0x23b7e3(0x19f)]),_0x2e4d0b['xAxisTitle']){const _0x5b670d=_0x2e4d0b['xAxisTitle'];s(_0x199da5,_0x23b7e3(0x152),_0x5b670d[_0x23b7e3(0x113)]),s(_0x199da5,_0x23b7e3(0x15b),_0x5b670d[_0x23b7e3(0x100)]),s(_0x199da5,_0x23b7e3(0x14f),_0x5b670d[_0x23b7e3(0x12d)]),s(_0x199da5,_0x23b7e3(0x176),_0x5b670d[_0x23b7e3(0x188)]),s(_0x199da5,'titles.xAxisTitle.fontStyle',_0x5b670d[_0x23b7e3(0x1a8)]),s(_0x199da5,_0x23b7e3(0x116),_0x5b670d[_0x23b7e3(0x1cc)]),s(_0x199da5,_0x23b7e3(0x146),_0x5b670d[_0x23b7e3(0x135)]);}if(_0x2e4d0b['yAxisTitle']){const _0x55658e=_0x2e4d0b[_0x23b7e3(0x105)];s(_0x199da5,_0x23b7e3(0x173),_0x55658e[_0x23b7e3(0x113)]),s(_0x199da5,_0x23b7e3(0x17b),_0x55658e[_0x23b7e3(0x100)]),s(_0x199da5,'titles.yAxisTitle.fontSize',_0x55658e['fontSize']),s(_0x199da5,_0x23b7e3(0x192),_0x55658e[_0x23b7e3(0x188)]),s(_0x199da5,_0x23b7e3(0x131),_0x55658e[_0x23b7e3(0x1a8)]),s(_0x199da5,_0x23b7e3(0x112),_0x55658e[_0x23b7e3(0x1cc)]),s(_0x199da5,'titles.yAxisTitle.alignment',_0x55658e[_0x23b7e3(0x135)]);}if(_0x2e4d0b[_0x23b7e3(0x15e)]){const _0x2d7b09=_0x2e4d0b[_0x23b7e3(0x15e)];s(_0x199da5,_0x23b7e3(0x1b2),_0x2d7b09['content']),s(_0x199da5,_0x23b7e3(0x11b),_0x2d7b09[_0x23b7e3(0x100)]),s(_0x199da5,'titles.rightYAxisTitle.fontSize',_0x2d7b09[_0x23b7e3(0x12d)]),s(_0x199da5,_0x23b7e3(0x12c),_0x2d7b09[_0x23b7e3(0x188)]),s(_0x199da5,_0x23b7e3(0x10e),_0x2d7b09[_0x23b7e3(0x1a8)]),s(_0x199da5,_0x23b7e3(0xfd),_0x2d7b09[_0x23b7e3(0x1cc)]),s(_0x199da5,_0x23b7e3(0x1c5),_0x2d7b09[_0x23b7e3(0x135)]);}_0x2e4d0b['xAxis']&&s(_0x199da5,_0x23b7e3(0x118),_0x2e4d0b['xAxis']),_0x2e4d0b['yAxis']&&s(_0x199da5,_0x23b7e3(0x194),_0x2e4d0b[_0x23b7e3(0x194)]),_0x2e4d0b['yRightAxis']&&s(_0x199da5,_0x23b7e3(0x193),_0x2e4d0b[_0x23b7e3(0x1c7)]),_0x2e4d0b[_0x23b7e3(0x10f)]&&s(_0x199da5,_0x23b7e3(0x10f),_0x2e4d0b[_0x23b7e3(0x10f)]);const _0x2319d7={'unitId':_0x392405,'chartModelId':_0x353622};let _0x25d53d=!0x1;if(_0x496225!==void 0x0&&(_0x2319d7['chartType']=_0x496225,_0x25d53d=!0x0),Object[_0x23b7e3(0x1ae)](_0x199da5)[_0x23b7e3(0x1a4)]>0x0&&(_0x2319d7['style']=_0x199da5,_0x25d53d=!0x0),Object['keys'](_0x160e3b)['length']>0x0&&(_0x2319d7['context']=_0x160e3b,_0x25d53d=!0x0),_0x25d53d)return _0x2319d7;};class c extends u[_0x142216(0x142)]{constructor(_0x260bfe,_0x28dda0,_0x53cfd5,_0x302adc,_0x249b63){const _0x4238bb=_0x142216;super(),o(this,_0x4238bb(0x184)),o(this,_0x4238bb(0x149)),o(this,_0x4238bb(0x1cb)),o(this,'subUnitId'),o(this,'chartId'),o(this,_0x4238bb(0x191)),o(this,'sourceSheetName'),o(this,'x'),o(this,'y'),o(this,_0x4238bb(0x14b)),o(this,_0x4238bb(0x1aa)),o(this,_0x4238bb(0x1be)),o(this,_0x4238bb(0x1a6)),o(this,'transposeRowsAndColumns'),(this['unitId']=_0x260bfe,this[_0x4238bb(0x1ba)]=_0x28dda0,this[_0x4238bb(0x184)]=_0x53cfd5,this['_injector']=_0x302adc,_0x249b63&&(this[_0x4238bb(0x163)]=_0x249b63));}[_0x142216(0x1ac)](){return this['chartType'];}[_0x142216(0x1c3)](_0x273011){const _0x44da6e=_0x142216;if(typeof _0x273011==_0x44da6e(0x165)){const _0x36a19e=M[_0x44da6e(0x1b6)](_0x273011);_0x36a19e[_0x44da6e(0x16d)]&&(this[_0x44da6e(0x104)]=_0x36a19e[_0x44da6e(0x16d)]),this[_0x44da6e(0x191)]=_0x36a19e[_0x44da6e(0x191)];}else this['range']=_0x273011;return this;}['clearRange'](){const _0x18057a=_0x142216;return this[_0x18057a(0x191)]=void 0x0,this[_0x18057a(0x104)]=void 0x0,this;}['setPosition'](_0x1499e0,_0x277262,_0x16219d,_0x21f5fe){const _0x1094ea=_0x142216,_0x3a50ff=this[_0x1094ea(0x149)][_0x1094ea(0x158)](j[_0x1094ea(0x150)])[_0x1094ea(0x1ab)](this['unitId']);if(!_0x3a50ff)throw new Error('This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.');const _0x41f6ba=_0x3a50ff[_0x1094ea(0x14c)](C['ISheetSelectionRenderService']),_0x545323=_0x3a50ff[_0x1094ea(0x14c)](C[_0x1094ea(0x178)]),{transform:_0xb3824b}=C[_0x1094ea(0x103)](this[_0x1094ea(0x1cb)],this['subUnitId'],{'row':_0x1499e0,'column':_0x277262,'rowOffset':_0x16219d,'columnOffset':_0x21f5fe},0x1,0x1,_0x41f6ba,_0x545323),_0x5db00=_0xb3824b[_0x1094ea(0x177)],_0x13ef9b=_0xb3824b[_0x1094ea(0x19d)];return this['x']=_0x13ef9b,this['y']=_0x5db00,this;}[_0x142216(0x14e)](_0x237b3d,_0x1da539){return this['x']=_0x237b3d,this['y']=_0x1da539,this;}[_0x142216(0x12a)](_0x2a2bef){return this['chartType']=_0x2a2bef,this;}[_0x142216(0x119)](_0x3438c7){const _0x5ef792=_0x142216;return this[_0x5ef792(0x14b)]=_0x3438c7,this;}[_0x142216(0x169)](_0x2d6bb3){const _0x49e82e=_0x142216;return this[_0x49e82e(0x1aa)]=_0x2d6bb3,this;}['setOptions'](_0x1307e5,_0x595a45){const _0x5cf3f5=_0x142216;return this['options']||(this['options']={}),_0x1307e5===''?(this[_0x5cf3f5(0x1a6)]={...this['options'],..._0x595a45},this):(d[_0x5cf3f5(0x1b9)](this[_0x5cf3f5(0x1a6)],_0x1307e5,_0x595a45),this);}[_0x142216(0x18f)](_0x5f42a9){const _0x16cd62=_0x142216;return this[_0x16cd62(0x133)]=_0x5f42a9,this;}[_0x142216(0x157)](_0x1a8afa){const _0x162665=_0x142216;return this[_0x162665(0x185)](_0x162665(0x19f),_0x1a8afa),this;}['setXAxisTitle'](_0x4fef8e){const _0x4e859e=_0x142216;var _0x5bc771;const _0x578834=((_0x5bc771=this[_0x4e859e(0x1a6)])==null?void 0x0:_0x5bc771[_0x4e859e(0x1c0)])||{};return _0x578834[_0x4e859e(0x113)]=_0x4fef8e,this[_0x4e859e(0x185)]('xAxisTitle',_0x578834),this;}[_0x142216(0x114)](_0x59a000){const _0x2a451a=_0x142216;var _0x450ccd;const _0x29c283=((_0x450ccd=this[_0x2a451a(0x1a6)])==null?void 0x0:_0x450ccd[_0x2a451a(0x105)])||{};return _0x29c283[_0x2a451a(0x113)]=_0x59a000,this[_0x2a451a(0x185)](_0x2a451a(0x105),_0x29c283),this;}[_0x142216(0x1bb)](_0x9774fa){const _0x446f70=_0x142216;var _0xf397da;const _0x296c00=((_0xf397da=this[_0x446f70(0x1a6)])==null?void 0x0:_0xf397da[_0x446f70(0x15e)])||{};return _0x296c00[_0x446f70(0x113)]=_0x9774fa,this[_0x446f70(0x185)](_0x446f70(0x15e),_0x296c00),this;}['setXAxisTextStyle'](_0x1219f2){const _0xacbee6=_0x142216;var _0x1fa149;const _0xcbdabe=((_0x1fa149=this[_0xacbee6(0x1a6)])==null?void 0x0:_0x1fa149[_0xacbee6(0x1c0)])||{};return this[_0xacbee6(0x185)](_0xacbee6(0x1c0),{..._0xcbdabe,..._0x1219f2}),this;}[_0x142216(0x132)](_0x259e84){const _0x1e1ee6=_0x142216;var _0x3c15ad;const _0x5fb960=((_0x3c15ad=this[_0x1e1ee6(0x1a6)])==null?void 0x0:_0x3c15ad[_0x1e1ee6(0x105)])||{};return this[_0x1e1ee6(0x185)](_0x1e1ee6(0x105),{..._0x5fb960,..._0x259e84}),this;}['setRightYAxisTextStyle'](_0x3dc93f){const _0x2d8af6=_0x142216;var _0x2ac2ed;const _0x3e9362=((_0x2ac2ed=this[_0x2d8af6(0x1a6)])==null?void 0x0:_0x2ac2ed[_0x2d8af6(0x15e)])||{};return this[_0x2d8af6(0x185)](_0x2d8af6(0x15e),{..._0x3e9362,..._0x3dc93f}),this;}[_0x142216(0x12e)](_0x24b853){const _0xa4c4f0=_0x142216;return this['setOptions'](_0xa4c4f0(0x136),_0x24b853),this;}[_0x142216(0x1c4)](_0x13646b){const _0x2647d6=_0x142216;return this[_0x2647d6(0x185)](_0x2647d6(0x162),_0x13646b),this;}[_0x142216(0x198)](_0x7ee52e){const _0x1efcf5=_0x142216;return this['setOptions'](_0x1efcf5(0x120),_0x7ee52e),this;}[_0x142216(0x1c1)](_0x142fc7,_0x129f0c){const _0x20b028=_0x142216;return this[_0x20b028(0x185)](_0x20b028(0x10f),{[_0x142fc7]:_0x129f0c}),this;}[_0x142216(0x174)](){const _0x1aca39=_0x142216;var _0xd927f;let _0xf05d08=this[_0x1aca39(0x1ba)];if(this[_0x1aca39(0x104)]){const _0x33a14a=(_0xd927f=this[_0x1aca39(0x184)][_0x1aca39(0x1b8)](this[_0x1aca39(0x104)]))==null?void 0x0:_0xd927f[_0x1aca39(0x13f)]();if(!_0x33a14a)throw new Error(_0x1aca39(0x19c)+this[_0x1aca39(0x104)]+_0x1aca39(0x148));_0xf05d08=_0x33a14a;}return{'unitId':this[_0x1aca39(0x1cb)],'subUnitId':_0xf05d08,'chartId':this['chartId'],'range':this[_0x1aca39(0x191)],'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x1aca39(0x1aa)],'chartType':this[_0x1aca39(0x1be)],'options':this[_0x1aca39(0x1a6)],'isRowDirection':this[_0x1aca39(0x133)]};}}class T{constructor(_0x401479,_0xd14a89,_0x488db4,_0x562ccf){const _0x498f8a=_0x142216;o(this,'unitId'),o(this,_0x498f8a(0x1ba)),o(this,_0x498f8a(0x163)),o(this,_0x498f8a(0x149)),(this[_0x498f8a(0x1cb)]=_0x401479,this[_0x498f8a(0x1ba)]=_0xd14a89,this[_0x498f8a(0x163)]=_0x488db4,this[_0x498f8a(0x149)]=_0x562ccf);}[_0x142216(0x18a)](){const _0x4bc440=_0x142216;return this[_0x4bc440(0x163)];}[_0x142216(0x123)](){const _0x1d09dd=_0x142216,_0x3e77f1=this[_0x1d09dd(0x149)][_0x1d09dd(0x158)](d[_0x1d09dd(0x19a)])[_0x1d09dd(0x181)](this['chartId']);if(_0x3e77f1)return _0x3e77f1[_0x1d09dd(0x197)]['getRangeInfo']();}[_0x142216(0x19b)](_0x45fae9){const _0xc2e3b6=_0x142216;return this[_0xc2e3b6(0x149)][_0xc2e3b6(0x158)](u[_0xc2e3b6(0x1a7)])['executeCommand'](d[_0xc2e3b6(0x16b)]['id'],{'unitId':this['unitId'],'chartModelId':this['chartId'],'range':_0x45fae9});}['getSeriesData'](){const _0x2db30b=_0x142216;var _0x8c88;const _0x43399e=this[_0x2db30b(0x149)][_0x2db30b(0x158)](d[_0x2db30b(0x19a)])['getChartModel'](this[_0x2db30b(0x163)]);if(_0x43399e)return(_0x8c88=_0x43399e[_0x2db30b(0x15d)])==null?void 0x0:_0x8c88[_0x2db30b(0x18e)];}[_0x142216(0x1b5)](){const _0x5adb3b=_0x142216;var _0x38cf8d;const _0x389b31=this[_0x5adb3b(0x149)][_0x5adb3b(0x158)](d[_0x5adb3b(0x19a)])['getChartModel'](this[_0x5adb3b(0x163)]);if(_0x389b31)return(_0x38cf8d=_0x389b31[_0x5adb3b(0x15d)])==null?void 0x0:_0x38cf8d[_0x5adb3b(0x117)];}[_0x142216(0x15a)](){const _0x361267=_0x142216,_0x3464e0=this['_injector'][_0x361267(0x158)](u[_0x361267(0x183)])[_0x361267(0x121)](u[_0x361267(0x166)][_0x361267(0x11f)]);return new c(this['unitId'],this[_0x361267(0x1ba)],_0x3464e0,this[_0x361267(0x149)],this['chartId']);}}class Y extends w[_0x142216(0x190)]{async[_0x142216(0x1ad)](_0x353807){const _0x41e7d4=_0x142216;var _0x32548f,_0x2c72ba,_0x153413;const _0x473262=_0x353807[_0x41e7d4(0x1cb)]||this[_0x41e7d4(0x1b3)]()[_0x41e7d4(0x189)](),_0x4a2976=_0x353807['subUnitId']||this[_0x41e7d4(0x13f)](),_0x11d0d7=_0x353807[_0x41e7d4(0x163)]||u[_0x41e7d4(0x16c)](),_0x5da6ea=_0x353807[_0x41e7d4(0x1be)],_0x1ed5d6=_0x353807[_0x41e7d4(0x191)],_0x5706d4={'x':_0x353807['x'],'y':_0x353807['y']},_0x3dd64b=_0x353807[_0x41e7d4(0x14b)],_0x9d74b=_0x353807[_0x41e7d4(0x1aa)],_0x51c877=(_0x32548f=_0x353807[_0x41e7d4(0x1a6)])==null?void 0x0:_0x32548f[_0x41e7d4(0x196)],_0x141809=(_0x2c72ba=_0x353807['options'])==null?void 0x0:_0x2c72ba['borderColor'],_0x378f01=I(_0x473262,_0x11d0d7,_0x5da6ea,_0x353807[_0x41e7d4(0x1a6)]),_0xf16356=(_0x153413=_0x353807['isRowDirection'])!=null?_0x153413:!0x0;if(!_0x1ed5d6)throw new Error(_0x41e7d4(0x1c2));return await this['_commandService'][_0x41e7d4(0x1a9)](U[_0x41e7d4(0x145)]['id'],{'unitId':_0x473262,'subUnitId':_0x4a2976,'chartId':_0x11d0d7,'chartType':_0x5da6ea,'range':_0x1ed5d6,'position':_0x5706d4,'width':_0x3dd64b,'height':_0x9d74b,'backgroundColor':_0x51c877,'borderColor':_0x141809,'config':_0x378f01,'isRowDirection':_0xf16356}),new T(_0x473262,_0x4a2976,_0x11d0d7,this[_0x41e7d4(0x149)]);}[_0x142216(0x1ca)](_0x25236b){const _0x3871ae=_0x142216,{unitId:_0x276d3a,chartId:_0x5c247a,chartType:_0x1da5b3,options:_0x99e6b4}=_0x25236b,_0x36ce4c=I(_0x276d3a,_0x5c247a,_0x1da5b3,_0x99e6b4);this[_0x3871ae(0x1a2)][_0x3871ae(0x1a9)](d[_0x3871ae(0x151)]['id'],_0x36ce4c);}[_0x142216(0x161)](_0x15fce4){const _0x21b8dd=_0x142216;if(_0x15fce4)return new c(_0x15fce4[_0x21b8dd(0x1cb)],_0x15fce4['subUnitId'],this[_0x21b8dd(0x184)],this[_0x21b8dd(0x149)],_0x15fce4[_0x21b8dd(0x163)]);const _0xa1d99a=this[_0x21b8dd(0x1b3)]()[_0x21b8dd(0x189)](),_0x2d725e=this['getSheetId']();return new c(_0xa1d99a,_0x2d725e,this['_workbook'],this[_0x21b8dd(0x149)]);}[_0x142216(0x139)](){const _0x7c1b3a=_0x142216,_0x2faafc=this[_0x7c1b3a(0x149)][_0x7c1b3a(0x158)](d['SheetsChartService']),_0x1ec7b0=this['getWorkbook']()[_0x7c1b3a(0x189)]();return _0x2faafc[_0x7c1b3a(0x10d)](_0x1ec7b0,this[_0x7c1b3a(0x13f)]())[_0x7c1b3a(0x18d)](_0x14039e=>new T(_0x1ec7b0,this[_0x7c1b3a(0x13f)](),_0x14039e['id'],this['_injector']));}[_0x142216(0x1c8)](_0x4eeb9c){const _0x324ad5=_0x142216,_0x59af8f=_0x4eeb9c[_0x324ad5(0x1cb)],_0xfe4d43=_0x4eeb9c['subUnitId'],_0x330630=_0x4eeb9c[_0x324ad5(0x163)],_0x2021cf={'unitId':_0x59af8f,'drawings':[{'unitId':_0x59af8f,'subUnitId':_0xfe4d43,'drawingId':_0x330630,'drawingType':u['DrawingTypeEnum'][_0x324ad5(0x172)]}]};return this['_commandService'][_0x324ad5(0x1a9)](L[_0x324ad5(0x11e)]['id'],_0x2021cf);}[_0x142216(0x125)](_0x3a3a4c,_0x28a001){const _0xaff70b=_0x142216;this['_injector']['get'](d[_0xaff70b(0x130)])[_0xaff70b(0xfb)](_0x3a3a4c,_0x28a001);}}w[_0x142216(0x190)]['extend'](Y);class P extends c{constructor(_0x40d3de,_0x17905e,_0x2cb897,_0x5bc2e9,_0x2ec1e1){const _0x5c6cd9=_0x142216;super(_0x40d3de,_0x17905e,_0x2cb897,_0x5bc2e9,_0x2ec1e1),o(this,_0x5c6cd9(0x13d)),o(this,'dataPointShape'),o(this,_0x5c6cd9(0xff)),o(this,_0x5c6cd9(0x17c));}['setLineStyle'](_0x166f9f){return this['lineStyle']=_0x166f9f,this;}[_0x142216(0x15f)](_0x1136d5){const _0x56d690=_0x142216;return this[_0x56d690(0x186)]=_0x1136d5,this;}['setDataPointColor'](_0x411684){return this['dataPointColor']=_0x411684,this;}[_0x142216(0x199)](_0x22692f){const _0x942008=_0x142216;return this[_0x942008(0x17c)]=_0x22692f,this;}[_0x142216(0x174)](){const _0x396b9d=_0x142216,_0x24cef1=super[_0x396b9d(0x174)]();_0x24cef1[_0x396b9d(0x1be)]=d['ChartTypeBits'][_0x396b9d(0x11c)];const _0x401a1d=_0x24cef1[_0x396b9d(0x1a6)]||{};return s(_0x401a1d,_0x396b9d(0xfe),this[_0x396b9d(0x13d)]),s(_0x401a1d,_0x396b9d(0x134),this[_0x396b9d(0x186)]),s(_0x401a1d,_0x396b9d(0x18c),this[_0x396b9d(0xff)]),s(_0x401a1d,_0x396b9d(0x17a),this[_0x396b9d(0x17c)]),_0x24cef1[_0x396b9d(0x1a6)]=_0x401a1d,_0x24cef1;}}class H extends c{[_0x142216(0x180)](){const _0x15ba96=_0x142216;return new P(this[_0x15ba96(0x1cb)],this[_0x15ba96(0x1ba)],this[_0x15ba96(0x184)],this[_0x15ba96(0x149)],this[_0x15ba96(0x163)]);}}c[_0x142216(0x1c6)](H);class v extends c{constructor(_0x27270e,_0x577b54,_0x540782,_0x2254df,_0xcfb136){const _0x20b5c1=_0x142216;super(_0x27270e,_0x577b54,_0x540782,_0x2254df,_0xcfb136),o(this,_0x20b5c1(0x122)),o(this,_0x20b5c1(0x153)),o(this,_0x20b5c1(0x12b)),o(this,'isHalfPie'),o(this,_0x20b5c1(0x13a)),o(this,'showLabelLine');}[_0x142216(0x108)](_0x47f000){const _0x19391e=_0x142216;return this[_0x19391e(0x122)]=_0x47f000,this;}[_0x142216(0x1bc)](_0x4fa338){const _0x18211b=_0x142216;return this[_0x18211b(0x153)]=_0x4fa338,this;}['setHasPaddingAngle'](_0xd49a55){const _0x146bcb=_0x142216;return this[_0x146bcb(0x12b)]=_0xd49a55,this;}['setIsHalfPie'](_0x96ab9e){const _0x43ff22=_0x142216;return this[_0x43ff22(0x160)]=_0x96ab9e,this;}[_0x142216(0x126)](_0x3ca69c){const _0x47b176=_0x142216;return this[_0x47b176(0x13a)]=_0x3ca69c,this;}[_0x142216(0x17d)](_0x3a02c0){return this['showLabelLine']=_0x3a02c0,this;}[_0x142216(0x174)](){const _0x406e4d=_0x142216,_0x452414=super['build']();_0x452414[_0x406e4d(0x1be)]=d[_0x406e4d(0x1bf)][_0x406e4d(0x154)];const _0x14f125=_0x452414[_0x406e4d(0x1a6)]||{};return s(_0x14f125,_0x406e4d(0x16e),this[_0x406e4d(0x122)]),s(_0x14f125,_0x406e4d(0x1b4),this[_0x406e4d(0x153)]),s(_0x14f125,_0x406e4d(0x124),this[_0x406e4d(0x12b)]),s(_0x14f125,_0x406e4d(0x195),this['isHalfPie']),s(_0x14f125,_0x406e4d(0x101),this[_0x406e4d(0x13a)]),s(_0x14f125,_0x406e4d(0x147),this['showLabelLine']),_0x452414[_0x406e4d(0x1a6)]=_0x14f125,_0x452414;}}class z extends c{[_0x142216(0x107)](){const _0x4492c7=_0x142216;return new v(this[_0x4492c7(0x1cb)],this['subUnitId'],this[_0x4492c7(0x184)],this[_0x4492c7(0x149)],this[_0x4492c7(0x163)]);}}c[_0x142216(0x1c6)](z);class b extends c{constructor(_0x5ad1b4,_0x343b4b,_0x40ed21,_0x404578,_0x30b228){const _0x33dc39=_0x142216;super(_0x5ad1b4,_0x343b4b,_0x40ed21,_0x404578,_0x30b228),o(this,'shape'),o(this,_0x33dc39(0x128));}[_0x142216(0x12f)](_0x361fb4){const _0x2918d6=_0x142216;return this[_0x2918d6(0x175)]=_0x361fb4,this;}[_0x142216(0x1a5)](_0x49f4d0){const _0x427f87=_0x142216;return this[_0x427f87(0x128)]=_0x49f4d0,this;}[_0x142216(0x174)](){const _0x4845b4=_0x142216,_0x12d648=super[_0x4845b4(0x174)]();_0x12d648[_0x4845b4(0x1be)]=d[_0x4845b4(0x1bf)][_0x4845b4(0x1b1)];const _0x4122ce=_0x12d648[_0x4845b4(0x1a6)]||{};return s(_0x4122ce,_0x4845b4(0x10b),this['shape']),s(_0x4122ce,'radar.fill',this['fill']),_0x12d648[_0x4845b4(0x1a6)]=_0x4122ce,_0x12d648;}}class W extends c{[_0x142216(0xfc)](){const _0x194e0c=_0x142216;return new b(this['unitId'],this[_0x194e0c(0x1ba)],this[_0x194e0c(0x184)],this[_0x194e0c(0x149)],this[_0x194e0c(0x163)]);}}c['extend'](W),exports[_0x142216(0x110)]=T,exports['FChartBuilderBase']=c,exports[_0x142216(0x167)]=P,exports[_0x142216(0x143)]=v,exports[_0x142216(0x155)]=b;
|