@univerjs-pro/sheets-chart 1.0.0-alpha.8 → 1.0.0-beta.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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/chart-source/source-util.d.ts +0 -20
- package/lib/types/commands/chart-persisted-context.d.ts +3 -0
- package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +7 -3
- package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +3 -3
- package/lib/types/common/util.d.ts +2 -0
- package/lib/types/config/config.d.ts +0 -2
- package/lib/types/facade/index.d.ts +2 -2
- package/lib/types/index.d.ts +10 -3
- package/lib/types/locale/en-US.d.ts +37 -2
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/chart-model.service.d.ts +12 -14
- package/lib/types/services/sheet-chart-range-watcher.d.ts +5 -5
- package/lib/types/services/sheets-chart.service.d.ts +4 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
- package/lib/types/chart-builder/index.d.ts +0 -10
- package/lib/types/facade/chart/index.d.ts +0 -2
- package/lib/types/models/chart-model.d.ts +0 -22
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4bb8e8=_0x36c9;function _0x3ab8(){const _0x1a9a95=['最大值','這個圖表類型沒有欄位使用規則。','開盤價','選取的欄位無法構成這個圖表所需的有效資料結構。','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','最小值','Category','436RbjXGF','20076oEuIbV','第三四分位數','120LxQdkD','請先添加系列開始數據可視化','12522GbNjmG','桑基圖不能包含循環數據','選取的圖表欄位已無法使用。','關係數','氣泡圖至少需要2欄,X軸、Y軸。','累積占比','最低價','Value','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','關聯值','系列\x20{0}','類別\x20{0}','250jelvmf','1207657tQYYpB','756954YMswtJ','最高價','這個圖表需要更多數值欄位。','920059bXPLeH','自身值','矩形樹圖至少需要一個階層欄位和一個數值欄位。','收盤價','階層欄位','數值欄位','5507244KXrJDi','OHLC\x20數列','中位數','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','第一四分位數','88NksvJB','2951100JGHnOu','旭日圖至少需要一個階層欄位和一個數值欄位。'];_0x3ab8=function(){return _0x1a9a95;};return _0x3ab8();}(function(_0x4a664f,_0x1b025c){const _0x55526c=_0x36c9,_0x37fca3=_0x4a664f();while(!![]){try{const _0xcf2e0c=parseInt(_0x55526c(0xde))/0x1+parseInt(_0x55526c(0xc1))/0x2+parseInt(_0x55526c(0xcf))/0x3*(parseInt(_0x55526c(0xca))/0x4)+-parseInt(_0x55526c(0xcd))/0x5*(-parseInt(_0x55526c(0xcb))/0x6)+-parseInt(_0x55526c(0xe1))/0x7*(-parseInt(_0x55526c(0xc0))/0x8)+-parseInt(_0x55526c(0xe7))/0x9+-parseInt(_0x55526c(0xdc))/0xa*(parseInt(_0x55526c(0xdd))/0xb);if(_0xcf2e0c===_0x1b025c)break;else _0x37fca3['push'](_0x37fca3['shift']());}catch(_0x301c4d){_0x37fca3['push'](_0x37fca3['shift']());}}}(_0x3ab8,0xd139e));function _0x36c9(_0x5d2415,_0x46e442){_0x5d2415=_0x5d2415-0xbd;const _0x3ab818=_0x3ab8();let _0x36c993=_0x3ab818[_0x5d2415];return _0x36c993;}const e={'sheets-chart':{'seriesDefaultName':_0x4bb8e8(0xda),'categoryDefaultName':_0x4bb8e8(0xdb),'blank':'(空)','msg':{'emptyTips':_0x4bb8e8(0xce),'sankeyCircularTips':_0x4bb8e8(0xd0)},'bubble':{'emptyTips':_0x4bb8e8(0xd3)},'relation':{'emptyTips':_0x4bb8e8(0xc7)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x4bb8e8(0xd4)},'boxplot':{'min':_0x4bb8e8(0xc8),'q1':_0x4bb8e8(0xbf),'median':_0x4bb8e8(0xbd),'q3':_0x4bb8e8(0xcc),'max':_0x4bb8e8(0xc3)},'candlestick':{'series':_0x4bb8e8(0xe8),'category':_0x4bb8e8(0xc9),'open':_0x4bb8e8(0xc5),'high':_0x4bb8e8(0xdf),'low':_0x4bb8e8(0xd5),'close':_0x4bb8e8(0xe4)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x4bb8e8(0xe5),'value':_0x4bb8e8(0xe6),'ownValue':_0x4bb8e8(0xe2),'children':'子項','diagnostic':_0x4bb8e8(0xe3)},'sunburst':{'hierarchy':'階層','value':_0x4bb8e8(0xd6),'ownValue':'自身值','children':'子項','diagnostic':_0x4bb8e8(0xc2)},'gauge':{'label':'標籤','value':_0x4bb8e8(0xd6),'emptyDiagnostic':'儀表圖至少需要一個有限數值。','mappingDiagnostic':_0x4bb8e8(0xd8),'configDiagnostic':_0x4bb8e8(0xd7)},'chord':{'emptyDiagnostic':'弦圖至少需要兩個不同節點之間的一條正權重關係。','mappingDiagnostic':_0x4bb8e8(0xbe),'configDiagnostic':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','source':'來源','target':'目標','value':_0x4bb8e8(0xd6),'count':_0x4bb8e8(0xd2),'associatedValue':_0x4bb8e8(0xd9)},'chartField':{'missingCategoryFields':'這個圖表需要更多標籤欄位。','missingSeriesFields':_0x4bb8e8(0xe0),'invalidFieldIndex':_0x4bb8e8(0xd1),'invalidValueFieldType':'選取的數值欄位不包含數值資料。','invalidDataStructure':_0x4bb8e8(0xc6),'unsupportedChartType':_0x4bb8e8(0xc4)}}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5586bc=_0x178a;(function(_0x4410bf,_0x50a183){const _0x45d63f=_0x178a,_0x43e41d=_0x4410bf();while(!![]){try{const _0x57f263=-parseInt(_0x45d63f(0xf4))/0x1+-parseInt(_0x45d63f(0xfb))/0x2+parseInt(_0x45d63f(0xdf))/0x3*(parseInt(_0x45d63f(0xe8))/0x4)+parseInt(_0x45d63f(0xe3))/0x5+-parseInt(_0x45d63f(0xd8))/0x6*(-parseInt(_0x45d63f(0xe1))/0x7)+parseInt(_0x45d63f(0xf3))/0x8+-parseInt(_0x45d63f(0xf8))/0x9;if(_0x57f263===_0x50a183)break;else _0x43e41d['push'](_0x43e41d['shift']());}catch(_0x2b58b6){_0x43e41d['push'](_0x43e41d['shift']());}}}(_0x46bb,0x5795e));import{FWorksheet as _0x2fdd14}from'@univerjs/sheets/facade';import{ChartThemeService as _0x226503,DEFAULT_CHART_TYPE as _0xdb99c0,DataOrientation as _0x1b6364,DetachedChartBuilderAdapter as _0x467ed9,IChartRenderModelManagerService as _0x4cbbfa,chartTypeToBits as _0x3ccc6c,resolveChartRenderModelImageExportInput as _0x183a1f,toChartModelConfig as _0x5a37d4}from'@univerjs-pro/engine-chart';import{FChartBuilderBase as _0x3b2230,FChartsBase as _0x4d21eb,HostBuilderComposer as _0x485146,getChartBuilderConstructor as _0x34c17c,getChartBuilderPendingConfig as _0x39f09e}from'@univerjs-pro/engine-chart/facade';import{ChartDiagnosticSeverity as _0x5626eb,ChartSourceKind as _0x610818,ChartSourceOrientation as _0x32fbb5,ChartUpdateSourceCommand as _0x1c32fd,InsertChartCommand as _0x1a19ea,SheetChartBuilder as _0x5eef78,SheetChartBuilderAdapter as _0x5310b4,SheetsChartService as _0x5c9906,resolveInitialChartPosition as _0x1564e9,resolveSourceSeries as _0x56dee6,resolveSourceSpec as _0x2a95d1,toSheetChartCreateSpec as _0x2aae71}from'@univerjs-pro/sheets-chart';import{DrawingTypeEnum as _0x55e5a0,ICommandService as _0x3683f2,LocaleService as _0x54f6fd,generateRandomId as _0x5d2fa9}from'@univerjs/core';import{ISheetDrawingService as _0x248e1d,RemoveSheetDrawingCommand as _0x345e2}from'@univerjs/sheets-drawing';import{FEnum as _0x24d80e}from'@univerjs/core/facade';function N(_0x334f91){const _0x54d327=_0x178a;return class extends _0x334f91{get[_0x54d327(0xfe)](){const _0x21faca=_0x54d327;return this[_0x21faca(0x11c)];}['setSource'](_0x115961){const _0x4986a9=_0x54d327;return this[_0x4986a9(0xfe)][_0x4986a9(0x104)](_0x115961),this;}[_0x54d327(0x11e)](){const _0x141721=_0x54d327;return this[_0x141721(0xfe)]['getSource']();}[_0x54d327(0x106)](_0x51a69d){const _0x859bd7=_0x54d327;return this[_0x859bd7(0xfe)]['setLayout']({'anchor':_0x51a69d}),this;}[_0x54d327(0x103)](_0x370952,_0x212c47){const _0x558e2a=_0x54d327;return this['_sheetBuilder'][_0x558e2a(0xd2)]({'position':{'x':_0x370952,'y':_0x212c47}}),this;}[_0x54d327(0xd1)](_0x1695dc,_0x285d11){const _0xf2344d=_0x54d327;return this[_0xf2344d(0xfe)][_0xf2344d(0xd2)]({'size':{'width':_0x1695dc,'height':_0x285d11}}),this;}};}const P=new _0x485146(_0x343384=>N(_0x343384));function _0x178a(_0x2e7da3,_0x2a6549){_0x2e7da3=_0x2e7da3-0xce;const _0x46bb1a=_0x46bb();let _0x178ac5=_0x46bb1a[_0x2e7da3];return _0x178ac5;}var F=class{constructor(_0x37fb53,_0x2a4dc1,_0x3d22c5,_0x1b087e){const _0x2018f5=_0x178a;this[_0x2018f5(0xd6)]=_0x37fb53,this[_0x2018f5(0xf9)]=_0x2a4dc1,this['chartId']=_0x3d22c5,this[_0x2018f5(0x100)]=_0x1b087e;}['getChartId'](){return this['chartId'];}[_0x5586bc(0x11d)](){const _0xce7c4b=_0x5586bc;return this[_0xce7c4b(0x112)];}['getRange'](){const _0x5e538f=_0x5586bc;var _0x6d035b;return(_0x6d035b=this[_0x5e538f(0x100)][_0x5e538f(0x10b)](_0x5c9906)[_0x5e538f(0xf6)](this['chartId']))==null?void 0x0:_0x6d035b[_0x5e538f(0xf5)][_0x5e538f(0xe0)]();}[_0x5586bc(0xf7)](_0xc914dc){const _0x5efa22=_0x5586bc;return this[_0x5efa22(0x100)][_0x5efa22(0x10b)](_0x3683f2)[_0x5efa22(0xdd)](_0x1c32fd['id'],{'unitId':this[_0x5efa22(0xd6)],'chartModelId':this[_0x5efa22(0x112)],'range':_0xc914dc});}['getSeriesData'](){const _0x139020=_0x5586bc;var _0x229588;return(_0x229588=this[_0x139020(0x100)]['get'](_0x5c9906)['getChartModel'](this[_0x139020(0x112)]))==null||(_0x229588=_0x229588[_0x139020(0xce)])==null?void 0x0:_0x229588[_0x139020(0xd5)];}[_0x5586bc(0xff)](){const _0x302b5d=_0x5586bc;var _0x5d3939;return(_0x5d3939=this[_0x302b5d(0x100)][_0x302b5d(0x10b)](_0x5c9906)['getChartModel'](this[_0x302b5d(0x112)]))==null||(_0x5d3939=_0x5d3939[_0x302b5d(0xce)])==null?void 0x0:_0x5d3939[_0x302b5d(0x10e)];}async['exportImage'](_0x404768){const _0x270ff8=_0x5586bc;var _0x358e0f,_0x5b9360,_0x31c197,_0x4fe239;let _0x4dec44=this[_0x270ff8(0x100)][_0x270ff8(0x10b)](_0x5c9906)[_0x270ff8(0xf6)](this['chartId']);if(!_0x4dec44||!this[_0x270ff8(0x100)][_0x270ff8(0x10d)](_0x248e1d))return null;let _0x1ef454=this[_0x270ff8(0x100)][_0x270ff8(0x10b)](_0x248e1d)['getDrawingByParam']({'unitId':this[_0x270ff8(0xd6)],'subUnitId':this[_0x270ff8(0xf9)],'drawingId':this[_0x270ff8(0x112)]}),_0x3c101d=_0x183a1f({'runtime':{'chartId':this[_0x270ff8(0x112)],'model':_0x4dec44},'direction':this['_injector']['get'](_0x54f6fd)['getDirection'](),'width':(_0x358e0f=_0x1ef454==null||(_0x5b9360=_0x1ef454['transform'])==null?void 0x0:_0x5b9360['width'])==null?0x0:_0x358e0f,'height':(_0x31c197=_0x1ef454==null||(_0x4fe239=_0x1ef454[_0x270ff8(0x116)])==null?void 0x0:_0x4fe239['height'])==null?0x0:_0x31c197});return _0x3c101d?this['_injector']['get'](_0x4cbbfa)[_0x270ff8(0xed)](_0x3c101d,_0x404768):null;}['remove'](){const _0x2e3422=_0x5586bc;return this[_0x2e3422(0x100)][_0x2e3422(0x10b)](_0x3683f2)[_0x2e3422(0xdd)](_0x345e2['id'],{'unitId':this['unitId'],'drawings':[{'unitId':this[_0x2e3422(0xd6)],'subUnitId':this[_0x2e3422(0xf9)],'drawingId':this[_0x2e3422(0x112)],'drawingType':_0x55e5a0['DRAWING_CHART']}]});}},I=class{constructor(_0x5b4b0a){const _0x3826c1=_0x5586bc;this[_0x3826c1(0xe7)]=_0x5b4b0a;}async[_0x5586bc(0xdb)](_0x18bcbb){const _0x13b968=_0x5586bc;var _0x232a6e,_0x481631,_0x42ca49,_0x589540,_0x53d5e0;let _0x34c4fc=this['_sourceContext'](),_0x55104c=[],_0x22b062=_0x2a95d1(_0x18bcbb[_0x13b968(0xeb)],_0x34c4fc,_0x55104c);if(!_0x22b062||_0x55104c['some'](_0x41137c=>_0x41137c['severity']===_0x5626eb[_0x13b968(0xd3)]))throw Error(_0x55104c[_0x13b968(0xe4)](_0x1177fd=>_0x1177fd[_0x13b968(0x105)])['join'](';\x20')||_0x13b968(0x110));let _0x4455b2=_0x5d2fa9(),_0x11a088=_0x5a37d4(_0x18bcbb,{'series':_0x56dee6(_0x22b062,_0x34c4fc,(_0x232a6e=(_0x481631=_0x18bcbb['mapping'])==null?void 0x0:_0x481631['categoryIndex'])==null?0x0:_0x232a6e)}),_0x315f1b=_0x1564e9({'unitId':_0x34c4fc['unitId'],'subUnitId':_0x34c4fc['subUnitId'],'injector':this[_0x13b968(0xe7)][_0x13b968(0xf1)]()},_0x18bcbb,_0x55104c),_0x231320={'unitId':_0x34c4fc[_0x13b968(0xd6)],'subUnitId':_0x34c4fc[_0x13b968(0xf9)],'chartId':_0x4455b2,'chartType':_0x3ccc6c(_0x18bcbb['type']),'source':_0x22b062['kind']===_0x610818['Range']?_0x22b062[_0x13b968(0x102)]:_0x22b062[_0x13b968(0x10c)],'position':_0x315f1b,'width':(_0x42ca49=_0x18bcbb[_0x13b968(0xfc)])==null?void 0x0:_0x42ca49['width'],'height':(_0x589540=_0x18bcbb[_0x13b968(0xfc)])==null?void 0x0:_0x589540['height'],'theme':(_0x53d5e0=_0x18bcbb[_0x13b968(0x10a)])==null?void 0x0:_0x53d5e0,'config':{'unitId':_0x34c4fc['unitId'],'chartModelId':_0x4455b2,'style':_0x11a088['style'],'context':_0x11a088[_0x13b968(0x113)],'dataAggregation':_0x11a088[_0x13b968(0x111)]}};if(!await this['_worksheet'][_0x13b968(0xf1)]()[_0x13b968(0x10b)](_0x3683f2)[_0x13b968(0xdd)](_0x1a19ea['id'],_0x231320))throw Error(_0x13b968(0x11f));return new F(_0x34c4fc['unitId'],_0x34c4fc[_0x13b968(0xf9)],_0x4455b2,this[_0x13b968(0xe7)]['getInject']());}['get'](_0xa90e82){const _0x2af316=_0x5586bc;let {unitId:_0x242f57,subUnitId:_0x44bb7c}=this[_0x2af316(0xe2)](),_0x3e651d=this['_worksheet']['getInject']()[_0x2af316(0x10b)](_0x5c9906);return _0x3e651d[_0x2af316(0xf6)](_0xa90e82)&&_0x3e651d[_0x2af316(0xcf)](_0x242f57,_0xa90e82)===_0x44bb7c?new F(_0x242f57,_0x44bb7c,_0xa90e82,this['_worksheet']['getInject']()):null;}[_0x5586bc(0xea)](){const _0x56b837=_0x5586bc;let {unitId:_0x11b5b4,subUnitId:_0x554068}=this[_0x56b837(0xe2)]();return this[_0x56b837(0xe7)][_0x56b837(0xf1)]()[_0x56b837(0x10b)](_0x5c9906)[_0x56b837(0xdc)](_0x11b5b4,_0x554068)[_0x56b837(0xfa)](Boolean)[_0x56b837(0xe4)](_0x12b0cb=>new F(_0x11b5b4,_0x554068,_0x12b0cb['id'],this['_worksheet'][_0x56b837(0xf1)]()));}[_0x5586bc(0xd7)](_0x51e81a){const _0x201feb=_0x5586bc;let _0x1655d6=typeof _0x51e81a=='string'?this[_0x201feb(0x10b)](_0x51e81a):_0x51e81a;return _0x1655d6?this[_0x201feb(0xe7)][_0x201feb(0xf1)]()[_0x201feb(0x10b)](_0x3683f2)['executeCommand'](_0x345e2['id'],{'unitId':_0x1655d6[_0x201feb(0xd6)],'drawings':[{'unitId':_0x1655d6[_0x201feb(0xd6)],'subUnitId':_0x1655d6['subUnitId'],'drawingId':_0x1655d6[_0x201feb(0x112)],'drawingType':_0x55e5a0['DRAWING_CHART']}]}):Promise[_0x201feb(0xfd)](!0x1);}[_0x5586bc(0xe2)](){const _0x5331ae=_0x5586bc;let _0x526430=this['_worksheet']['getWorkbook'](),_0x528761=this[_0x5331ae(0xe7)][_0x5331ae(0xf1)]()[_0x5331ae(0x10b)](_0x5c9906);return{'unitId':_0x526430[_0x5331ae(0xd4)](),'subUnitId':this[_0x5331ae(0xe7)][_0x5331ae(0x11a)](),'workbook':_0x526430,'resolveAutoIsRowDirection':_0xb5a343=>_0x528761['getChartSuggestion'](_0xb5a343)[_0x5331ae(0xe9)]===_0x1b6364[_0x5331ae(0x117)]};}};function L(_0x5deb30){'@babel/helpers - typeof';const _0x14aa60=_0x5586bc;return L=typeof Symbol=='function'&&typeof Symbol[_0x14aa60(0x118)]==_0x14aa60(0x108)?function(_0x4fefa3){return typeof _0x4fefa3;}:function(_0x4169d8){const _0xc81122=_0x14aa60;return _0x4169d8&&typeof Symbol==_0xc81122(0x101)&&_0x4169d8['constructor']===Symbol&&_0x4169d8!==Symbol[_0xc81122(0xda)]?_0xc81122(0x108):typeof _0x4169d8;},L(_0x5deb30);}function R(_0x526975,_0x8acd5e){const _0xc23af3=_0x5586bc;if(L(_0x526975)!='object'||!_0x526975)return _0x526975;var _0x4310bb=_0x526975[Symbol[_0xc23af3(0x11b)]];if(_0x4310bb!==void 0x0){var _0x34ee99=_0x4310bb[_0xc23af3(0xe5)](_0x526975,_0x8acd5e||'default');if(L(_0x34ee99)!=_0xc23af3(0x115))return _0x34ee99;throw TypeError(_0xc23af3(0xe6));}return(_0x8acd5e===_0xc23af3(0xf2)?String:Number)(_0x526975);}function z(_0x4fb861){const _0xd9ffd5=_0x5586bc;var _0x3c3787=R(_0x4fb861,_0xd9ffd5(0xf2));return L(_0x3c3787)==_0xd9ffd5(0x108)?_0x3c3787:_0x3c3787+'';}function B(_0x507964,_0x470fbc,_0x160099){const _0x26677c=_0x5586bc;return(_0x470fbc=z(_0x470fbc))in _0x507964?Object[_0x26677c(0xd0)](_0x507964,_0x470fbc,{'value':_0x160099,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x507964[_0x470fbc]=_0x160099,_0x507964;}var V=class extends _0x467ed9{constructor(_0x2e1806,_0x2e48e3){const _0x5e04be=_0x5586bc;super(_0x2e1806,_0x5e04be(0xf0)),this[_0x5e04be(0x107)]=_0x2e48e3;}[_0x5586bc(0xec)](_0x347382){return this['rejectCommit']();}[_0x5586bc(0xee)](_0xd2da47){const _0xa4979b=_0x5586bc;return this[_0xa4979b(0x107)](_0xd2da47);}},H=class extends _0x4d21eb{constructor(_0xfcb647){const _0x1f186f=_0x5586bc;super(),this[_0x1f186f(0xe7)]=_0xfcb647,B(this,_0x1f186f(0xde),void 0x0),this['_commands']=new I(_0xfcb647);}[_0x5586bc(0xdb)](){const _0x2af19a=_0x5586bc;let _0x53f9d8=_0x5d2fa9(),_0x52f214={'id':_0x53f9d8,'type':_0xdb99c0,'series':{}},_0x11a722=new _0x5eef78(_0x53f9d8,_0x52f214,new V(_0x52f214,_0x1c3ae1=>new _0x5310b4({'unitId':this['_worksheet']['getWorkbook']()['getUnitId'](),'subUnitId':this[_0x2af19a(0xe7)][_0x2af19a(0x11a)](),'chartId':_0x53f9d8,'injector':this[_0x2af19a(0xe7)][_0x2af19a(0xf1)]()})[_0x2af19a(0xee)](_0x1c3ae1)));return P['create'](_0x11a722,_0x3b2230);}async['insert'](_0x4fe6ea){const _0x7aadb5=_0x5586bc;let _0x1a4160=_0x4fe6ea['describe']();if(!_0x1a4160['source'])throw Error(_0x7aadb5(0xef));let _0x29445f=_0x2aae71(_0x1a4160,_0x39f09e(_0x4fe6ea)),_0x45fda5=await this['_commands'][_0x7aadb5(0xdb)](_0x29445f);return this[_0x7aadb5(0x114)](_0x45fda5);}[_0x5586bc(0x10b)](_0x2a52b6){const _0x176fbc=_0x5586bc;let _0x332ec6=this[_0x176fbc(0xde)][_0x176fbc(0x10b)](_0x2a52b6);return _0x332ec6?this[_0x176fbc(0x114)](_0x332ec6):null;}[_0x5586bc(0xea)](){const _0x1c8116=_0x5586bc;return this[_0x1c8116(0xde)][_0x1c8116(0xea)]()[_0x1c8116(0xe4)](_0xae1ce6=>this[_0x1c8116(0x114)](_0xae1ce6));}[_0x5586bc(0xd7)](_0x2a8432){const _0x387a2d=_0x5586bc;return this[_0x387a2d(0xde)][_0x387a2d(0xd7)](typeof _0x2a8432=='string'?_0x2a8432:_0x2a8432[_0x387a2d(0x11d)]());}[_0x5586bc(0xd9)](_0x2cc202,_0x440a4e){const _0xfca26=_0x5586bc;this[_0xfca26(0xe7)]['getInject']()[_0xfca26(0x10b)](_0x226503)['registerTheme'](_0x2cc202,_0x440a4e);}[_0x5586bc(0x114)](_0x414ca2){const _0x45e2e9=_0x5586bc;let _0x91a146=new _0x5310b4({'unitId':_0x414ca2[_0x45e2e9(0xd6)],'subUnitId':_0x414ca2[_0x45e2e9(0xf9)],'chartId':_0x414ca2[_0x45e2e9(0x112)],'injector':this['_worksheet'][_0x45e2e9(0xf1)]()}),_0x43ed75=_0x91a146['describe'](),_0x1eb31a=new _0x5eef78(_0x414ca2['getId'](),_0x43ed75,_0x91a146),_0x12da4e=_0x34c17c(_0x43ed75[_0x45e2e9(0x109)]);return P[_0x45e2e9(0xdb)](_0x1eb31a,_0x12da4e);}},U=class extends _0x2fdd14{get[_0x5586bc(0x10f)](){return new H(this);}};_0x2fdd14['extend'](U);var W=class extends _0x24d80e{get[_0x5586bc(0x119)](){return _0x32fbb5;}};_0x24d80e['extend'](W);function _0x46bb(){const _0x5f71f5=['chartId','context','_wrap','object','transform','Row','iterator','ChartSourceOrientation','getSheetId','toPrimitive','_builder','getId','getSource','Failed\x20to\x20create\x20Sheet\x20chart.','config','getSubUnitId','defineProperty','setSize','setLayout','Error','getUnitId','series','unitId','remove','933858FuFNar','registerTheme','prototype','create','getUnitChartModels','executeCommand','_commands','18ipgazl','getRangeInfo','7fcsqSX','_sourceContext','179780SzsIhW','map','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_worksheet','324368YLzknr','orient','list','source','commitHost','exportImage','resolveSource','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().','Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().','getInject','string','5047552gByFtB','114208xzGHYp','dataSource','getChartModel','updateRange','5316543HMLOpk','subUnitId','filter','490820UBiVwu','size','resolve','_sheetBuilder','getCategoryData','_injector','function','rangeInfo','setAbsolutePosition','setSource','message','setPosition','_resolveSource','symbol','type','theme','get','ranges','has','category','charts','Invalid\x20Sheet\x20chart\x20source.','dataAggregation'];_0x46bb=function(){return _0x5f71f5;};return _0x46bb();}export{H as FSheetCharts};
|
|
1
|
+
const _0x41b855=_0x3548;(function(_0x5d6e47,_0x2b34f3){const _0x609b28=_0x3548,_0x37812f=_0x5d6e47();while(!![]){try{const _0x65ed72=-parseInt(_0x609b28(0x200))/0x1*(parseInt(_0x609b28(0x1f3))/0x2)+-parseInt(_0x609b28(0x1c1))/0x3+-parseInt(_0x609b28(0x1c6))/0x4+-parseInt(_0x609b28(0x206))/0x5+-parseInt(_0x609b28(0x20a))/0x6*(-parseInt(_0x609b28(0x1f4))/0x7)+-parseInt(_0x609b28(0x209))/0x8*(parseInt(_0x609b28(0x1e8))/0x9)+parseInt(_0x609b28(0x20d))/0xa;if(_0x65ed72===_0x2b34f3)break;else _0x37812f['push'](_0x37812f['shift']());}catch(_0x313cf7){_0x37812f['push'](_0x37812f['shift']());}}}(_0x5c6c,0x2d250));import{FWorksheet as _0x4ddd8c}from'@univerjs/sheets/facade';import{ChartThemeService as _0x436df0,DEFAULT_CHART_TYPE as _0x27e3aa,DataOrientation as _0x326d4f,DetachedChartBuilderAdapter as _0x3137bb,chartTypeToBits as _0xeea2,toChartModelConfig as _0x59e919}from'@univerjs-pro/engine-chart';import{FChartBuilderBase as _0x5912c6,FChartsBase as _0x3e5b08,HostBuilderComposer as _0x4543ad,getChartBuilderConstructor as _0x456cd6,getChartBuilderPendingConfig as _0x24032a}from'@univerjs-pro/engine-chart/facade';import{ChartDiagnosticSeverity as _0x3c0662,ChartSourceKind as _0xda6777,ChartSourceOrientation as _0x2c334a,ChartUpdateSourceCommand as _0x531579,InsertChartCommand as _0x113ab2,SheetChartBuilder as _0x2a73df,SheetChartBuilderAdapter as _0x2f465b,SheetsChartService as _0x44c1bd,resolveInitialChartPosition as _0x589fa1,resolveSourceSeries as _0x4775b4,resolveSourceSpec as _0x3b67cc,toSheetChartCreateSpec as _0x1001f9}from'@univerjs-pro/sheets-chart';import{DrawingTypeEnum as _0xd520f9,ICommandService as _0x5ed76c,generateRandomId as _0x4922ff}from'@univerjs/core';import{RemoveSheetDrawingCommand as _0x2a6882}from'@univerjs/sheets-drawing';import{FEnum as _0x19dae6}from'@univerjs/core/facade';function k(_0x469f5b){const _0xb7b119=_0x3548;return class extends _0x469f5b{get[_0xb7b119(0x208)](){const _0x2b2086=_0xb7b119;return this[_0x2b2086(0x1e9)];}[_0xb7b119(0x1b5)](_0x21df72){return this['_sheetBuilder']['setSource'](_0x21df72),this;}['getSource'](){const _0x39d4ff=_0xb7b119;return this[_0x39d4ff(0x208)][_0x39d4ff(0x202)]();}['setPosition'](_0x2674d1){const _0x163708=_0xb7b119;return this[_0x163708(0x208)][_0x163708(0x1be)]({'anchor':_0x2674d1}),this;}[_0xb7b119(0x201)](_0x1140e4,_0x15b53c){const _0x4aabbe=_0xb7b119;return this[_0x4aabbe(0x208)][_0x4aabbe(0x1be)]({'position':{'x':_0x1140e4,'y':_0x15b53c}}),this;}[_0xb7b119(0x1fb)](_0xe20dc7,_0xa85487){const _0xab93e2=_0xb7b119;return this[_0xab93e2(0x208)]['setLayout']({'size':{'width':_0xe20dc7,'height':_0xa85487}}),this;}};}const A=new _0x4543ad(_0x4f4aaf=>k(_0x4f4aaf));var j=class{constructor(_0x2c94ef,_0x194d6e,_0x1fb81f,_0x5eaf07){const _0x2b88db=_0x3548;this[_0x2b88db(0x1ca)]=_0x2c94ef,this[_0x2b88db(0x1ec)]=_0x194d6e,this[_0x2b88db(0x1dd)]=_0x1fb81f,this[_0x2b88db(0x1d7)]=_0x5eaf07;}[_0x41b855(0x1b4)](){const _0x3743a5=_0x41b855;return this[_0x3743a5(0x1dd)];}[_0x41b855(0x204)](){const _0x204a94=_0x41b855;return this[_0x204a94(0x1dd)];}[_0x41b855(0x1e0)](){const _0x3da6ec=_0x41b855;var _0x4eae6f;return(_0x4eae6f=this['_injector'][_0x3da6ec(0x1ee)](_0x44c1bd)[_0x3da6ec(0x1f2)](this[_0x3da6ec(0x1dd)]))==null?void 0x0:_0x4eae6f[_0x3da6ec(0x1bd)]['getRangeInfo']();}['updateRange'](_0x2a0594){const _0x178355=_0x41b855;return this['_injector'][_0x178355(0x1ee)](_0x5ed76c)[_0x178355(0x1bc)](_0x531579['id'],{'unitId':this['unitId'],'chartModelId':this[_0x178355(0x1dd)],'range':_0x2a0594});}[_0x41b855(0x1cb)](){const _0x5710a2=_0x41b855;var _0x2df886;return(_0x2df886=this[_0x5710a2(0x1d7)][_0x5710a2(0x1ee)](_0x44c1bd)['getChartModel'](this['chartId']))==null||(_0x2df886=_0x2df886[_0x5710a2(0x1d6)])==null?void 0x0:_0x2df886[_0x5710a2(0x1b8)];}[_0x41b855(0x1f7)](){const _0x560ee2=_0x41b855;var _0x41a1c1;return(_0x41a1c1=this['_injector'][_0x560ee2(0x1ee)](_0x44c1bd)[_0x560ee2(0x1f2)](this[_0x560ee2(0x1dd)]))==null||(_0x41a1c1=_0x41a1c1[_0x560ee2(0x1d6)])==null?void 0x0:_0x41a1c1[_0x560ee2(0x1fe)];}async[_0x41b855(0x20b)](_0x50cc6f){const _0x2e53ad=_0x41b855;return new _0x2f465b({'unitId':this[_0x2e53ad(0x1ca)],'subUnitId':this['subUnitId'],'chartId':this[_0x2e53ad(0x1dd)],'injector':this[_0x2e53ad(0x1d7)]})[_0x2e53ad(0x20b)](_0x50cc6f);}[_0x41b855(0x205)](){const _0x1109ad=_0x41b855;return this[_0x1109ad(0x1d7)][_0x1109ad(0x1ee)](_0x5ed76c)[_0x1109ad(0x1bc)](_0x2a6882['id'],{'unitId':this[_0x1109ad(0x1ca)],'drawings':[{'unitId':this[_0x1109ad(0x1ca)],'subUnitId':this['subUnitId'],'drawingId':this[_0x1109ad(0x1dd)],'drawingType':_0xd520f9[_0x1109ad(0x1ce)]}]});}},M=class{constructor(_0x44cf97){const _0x3d083f=_0x41b855;this[_0x3d083f(0x1de)]=_0x44cf97;}async[_0x41b855(0x1d5)](_0x3521d6){const _0xe18e88=_0x41b855;var _0x6f2f7b,_0x21a808,_0x1416a0;let _0x230ab3=this['_sourceContext'](),_0x251ad9=[],_0x2a44fd=_0x3b67cc(_0x3521d6['source'],_0x230ab3,_0x251ad9);if(!_0x2a44fd||_0x251ad9[_0xe18e88(0x1d8)](_0xb9ce4a=>_0xb9ce4a[_0xe18e88(0x1e6)]===_0x3c0662['Error']))throw Error(_0x251ad9[_0xe18e88(0x1d0)](_0x3af109=>_0x3af109[_0xe18e88(0x1fc)])[_0xe18e88(0x1d9)](';\x20')||'Invalid\x20Sheet\x20chart\x20source.');let _0x349ca6=_0x4922ff(),_0x13f7fc=_0x59e919(_0x3521d6,{'series':_0x4775b4(_0x2a44fd,_0x230ab3,((_0x6f2f7b=_0x3521d6[_0xe18e88(0x1f5)])==null?void 0x0:_0x6f2f7b[_0xe18e88(0x20e)])??0x0)}),_0x11b1d9=_0x589fa1({'unitId':_0x230ab3[_0xe18e88(0x1ca)],'subUnitId':_0x230ab3[_0xe18e88(0x1ec)],'injector':this[_0xe18e88(0x1de)][_0xe18e88(0x1e4)]()},_0x3521d6,_0x251ad9),_0x19d8df={'unitId':_0x230ab3[_0xe18e88(0x1ca)],'subUnitId':_0x230ab3['subUnitId'],'chartId':_0x349ca6,'chartType':_0xeea2(_0x3521d6[_0xe18e88(0x1c7)]),'source':_0x2a44fd[_0xe18e88(0x1e5)]===_0xda6777['Range']?_0x2a44fd['rangeInfo']:_0x2a44fd[_0xe18e88(0x207)],'position':_0x11b1d9,'width':(_0x21a808=_0x3521d6[_0xe18e88(0x1db)])==null?void 0x0:_0x21a808[_0xe18e88(0x203)],'height':(_0x1416a0=_0x3521d6[_0xe18e88(0x1db)])==null?void 0x0:_0x1416a0[_0xe18e88(0x1f0)],'theme':_0x3521d6[_0xe18e88(0x1e3)]??void 0x0,'config':{'unitId':_0x230ab3[_0xe18e88(0x1ca)],'chartModelId':_0x349ca6,'style':_0x13f7fc['style'],'context':_0x13f7fc[_0xe18e88(0x1bb)],'dataAggregation':_0x13f7fc[_0xe18e88(0x1d2)]}};if(!await this['_worksheet']['getInject']()[_0xe18e88(0x1ee)](_0x5ed76c)[_0xe18e88(0x1bc)](_0x113ab2['id'],_0x19d8df))throw Error('Failed\x20to\x20create\x20Sheet\x20chart.');return new j(_0x230ab3[_0xe18e88(0x1ca)],_0x230ab3[_0xe18e88(0x1ec)],_0x349ca6,this[_0xe18e88(0x1de)][_0xe18e88(0x1e4)]());}[_0x41b855(0x1ee)](_0x1f7ba4){const _0x2c0d8a=_0x41b855;let {unitId:_0x3cc644,subUnitId:_0x354de5}=this[_0x2c0d8a(0x1ea)](),_0x21b369=this['_worksheet']['getInject']()[_0x2c0d8a(0x1ee)](_0x44c1bd);return _0x21b369['getChartModel'](_0x1f7ba4)&&_0x21b369['getSubUnitId'](_0x3cc644,_0x1f7ba4)===_0x354de5?new j(_0x3cc644,_0x354de5,_0x1f7ba4,this[_0x2c0d8a(0x1de)][_0x2c0d8a(0x1e4)]()):null;}[_0x41b855(0x1c0)](){const _0x3486c0=_0x41b855;let {unitId:_0x53f57a,subUnitId:_0x5688fa}=this[_0x3486c0(0x1ea)]();return this[_0x3486c0(0x1de)][_0x3486c0(0x1e4)]()[_0x3486c0(0x1ee)](_0x44c1bd)[_0x3486c0(0x1b7)](_0x53f57a,_0x5688fa)[_0x3486c0(0x1ed)](Boolean)[_0x3486c0(0x1d0)](_0x54603e=>new j(_0x53f57a,_0x5688fa,_0x54603e['id'],this[_0x3486c0(0x1de)][_0x3486c0(0x1e4)]()));}[_0x41b855(0x205)](_0x4de8bb){const _0x1d0825=_0x41b855;let _0x39eaa4=typeof _0x4de8bb==_0x1d0825(0x1d4)?this[_0x1d0825(0x1ee)](_0x4de8bb):_0x4de8bb;return _0x39eaa4?this[_0x1d0825(0x1de)][_0x1d0825(0x1e4)]()[_0x1d0825(0x1ee)](_0x5ed76c)[_0x1d0825(0x1bc)](_0x2a6882['id'],{'unitId':_0x39eaa4['unitId'],'drawings':[{'unitId':_0x39eaa4['unitId'],'subUnitId':_0x39eaa4[_0x1d0825(0x1ec)],'drawingId':_0x39eaa4[_0x1d0825(0x1dd)],'drawingType':_0xd520f9[_0x1d0825(0x1ce)]}]}):Promise[_0x1d0825(0x1ef)](!0x1);}[_0x41b855(0x1ea)](){const _0x1e614b=_0x41b855;let _0x2ec140=this['_worksheet']['getWorkbook'](),_0x559ecd=this[_0x1e614b(0x1de)][_0x1e614b(0x1e4)]()[_0x1e614b(0x1ee)](_0x44c1bd);return{'unitId':_0x2ec140[_0x1e614b(0x1f1)](),'subUnitId':this[_0x1e614b(0x1de)][_0x1e614b(0x1bf)](),'workbook':_0x2ec140,'resolveAutoIsRowDirection':_0xe7f427=>_0x559ecd[_0x1e614b(0x1f8)](_0xe7f427)[_0x1e614b(0x1cd)]===_0x326d4f[_0x1e614b(0x1df)]};}};function N(_0x3aff51){'@babel/helpers - typeof';const _0x1723cb=_0x41b855;return N=typeof Symbol==_0x1723cb(0x1dc)&&typeof Symbol[_0x1723cb(0x20c)]==_0x1723cb(0x1cf)?function(_0x53652b){return typeof _0x53652b;}:function(_0x507be4){const _0x38cd05=_0x1723cb;return _0x507be4&&typeof Symbol==_0x38cd05(0x1dc)&&_0x507be4['constructor']===Symbol&&_0x507be4!==Symbol[_0x38cd05(0x1b6)]?_0x38cd05(0x1cf):typeof _0x507be4;},N(_0x3aff51);}function P(_0x487388,_0x2eb90a){const _0x5e9020=_0x41b855;if(N(_0x487388)!=_0x5e9020(0x1c3)||!_0x487388)return _0x487388;var _0x45e792=_0x487388[Symbol[_0x5e9020(0x1f9)]];if(_0x45e792!==void 0x0){var _0x2197b6=_0x45e792[_0x5e9020(0x1cc)](_0x487388,_0x2eb90a||_0x5e9020(0x1d1));if(N(_0x2197b6)!=_0x5e9020(0x1c3))return _0x2197b6;throw TypeError(_0x5e9020(0x1da));}return(_0x2eb90a===_0x5e9020(0x1d4)?String:Number)(_0x487388);}function F(_0x4dfd75){const _0x1aa542=_0x41b855;var _0x2f2729=P(_0x4dfd75,_0x1aa542(0x1d4));return N(_0x2f2729)==_0x1aa542(0x1cf)?_0x2f2729:_0x2f2729+'';}function _0x3548(_0x5bee47,_0x4c24f9){_0x5bee47=_0x5bee47-0x1b4;const _0x5c6cf0=_0x5c6c();let _0x354815=_0x5c6cf0[_0x5bee47];return _0x354815;}function I(_0x18b3a1,_0x2f2fa5,_0xcaac32){const _0x5a901d=_0x41b855;return(_0x2f2fa5=F(_0x2f2fa5))in _0x18b3a1?Object[_0x5a901d(0x1e7)](_0x18b3a1,_0x2f2fa5,{'value':_0xcaac32,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18b3a1[_0x2f2fa5]=_0xcaac32,_0x18b3a1;}var L=class extends _0x3137bb{constructor(_0x21ba38,_0x108192,_0x413908){const _0x4e8f3a=_0x41b855;super(_0x21ba38,_0x4e8f3a(0x1c2),_0x413908),this[_0x4e8f3a(0x1c5)]=_0x108192;}[_0x41b855(0x1c9)](_0x226c7b){const _0x3d40e9=_0x41b855;return this[_0x3d40e9(0x1c4)]();}[_0x41b855(0x1fa)](_0x3cd2a8){const _0x2583be=_0x41b855;return this[_0x2583be(0x1c5)](_0x3cd2a8);}},R=class extends _0x3e5b08{constructor(_0x5abdf4){const _0x2c73e7=_0x41b855;super(),this[_0x2c73e7(0x1de)]=_0x5abdf4,I(this,_0x2c73e7(0x1c8),void 0x0),this[_0x2c73e7(0x1c8)]=new M(_0x5abdf4);}['create'](){const _0x3f6fa5=_0x41b855;let _0x2a3e54=_0x4922ff(),_0x2ecee2={'id':_0x2a3e54,'type':_0x27e3aa,'series':{}},_0x21f98f=this['_worksheet'][_0x3f6fa5(0x1e4)](),_0x39c8f7=new _0x2a73df(_0x2a3e54,_0x2ecee2,new L(_0x2ecee2,_0x30807e=>new _0x2f465b({'unitId':this[_0x3f6fa5(0x1de)][_0x3f6fa5(0x1ff)]()[_0x3f6fa5(0x1f1)](),'subUnitId':this[_0x3f6fa5(0x1de)][_0x3f6fa5(0x1bf)](),'chartId':_0x2a3e54,'injector':_0x21f98f})[_0x3f6fa5(0x1fa)](_0x30807e),_0x21f98f));return A[_0x3f6fa5(0x1d5)](_0x39c8f7,_0x5912c6);}async['insert'](_0x3e204e){const _0x526e05=_0x41b855;let _0x5a97fa=_0x3e204e['describe']();if(!_0x5a97fa[_0x526e05(0x1ba)])throw Error(_0x526e05(0x1d3));let _0x5dd99b=_0x1001f9(_0x5a97fa,_0x24032a(_0x3e204e)),_0x22579f=await this[_0x526e05(0x1c8)][_0x526e05(0x1d5)](_0x5dd99b);return this['_wrap'](_0x22579f);}[_0x41b855(0x1ee)](_0x4591ef){const _0x5dac32=_0x41b855;let _0x2922c5=this[_0x5dac32(0x1c8)][_0x5dac32(0x1ee)](_0x4591ef);return _0x2922c5?this['_wrap'](_0x2922c5):null;}[_0x41b855(0x1c0)](){const _0x472b7d=_0x41b855;return this[_0x472b7d(0x1c8)][_0x472b7d(0x1c0)]()[_0x472b7d(0x1d0)](_0x5a4ea8=>this[_0x472b7d(0x1b9)](_0x5a4ea8));}[_0x41b855(0x205)](_0x54f05c){const _0x3bedfc=_0x41b855;return this['_commands'][_0x3bedfc(0x205)](typeof _0x54f05c==_0x3bedfc(0x1d4)?_0x54f05c:_0x54f05c['getId']());}[_0x41b855(0x1e2)](_0xef0323,_0x12fb9a){const _0x2628cf=_0x41b855;this['_worksheet'][_0x2628cf(0x1e4)]()[_0x2628cf(0x1ee)](_0x436df0)['registerTheme'](_0xef0323,_0x12fb9a);}[_0x41b855(0x1b9)](_0x47d9c5){const _0x20609e=_0x41b855;let _0x123396=new _0x2f465b({'unitId':_0x47d9c5[_0x20609e(0x1ca)],'subUnitId':_0x47d9c5[_0x20609e(0x1ec)],'chartId':_0x47d9c5[_0x20609e(0x1dd)],'injector':this['_worksheet']['getInject']()}),_0x2f6aa9=_0x123396[_0x20609e(0x1e1)](),_0x330168=new _0x2a73df(_0x47d9c5[_0x20609e(0x204)](),_0x2f6aa9,_0x123396),_0x41b36b=_0x456cd6(_0x2f6aa9[_0x20609e(0x1c7)]);return A['create'](_0x330168,_0x41b36b);}},z=class extends _0x4ddd8c{get[_0x41b855(0x1f6)](){return new R(this);}};_0x4ddd8c[_0x41b855(0x1fd)](z);function _0x5c6c(){const _0x4ec0e2=['getId','remove','325715QsBkdP','ranges','_sheetBuilder','56leXCZC','438mRSaWQ','exportImage','iterator','5527680LoFOqm','categoryIndex','getChartId','setSource','prototype','getUnitChartModels','series','_wrap','source','context','executeCommand','dataSource','setLayout','getSheetId','list','653142LxEzcY','Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().','object','rejectCommit','_resolveSource','44072Ipjnwt','type','_commands','commitHost','unitId','getSeriesData','call','orient','DRAWING_CHART','symbol','map','default','dataAggregation','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().','string','create','config','_injector','some','join','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','size','function','chartId','_worksheet','Row','getRange','describe','registerTheme','theme','getInject','kind','severity','defineProperty','181368voNdeB','_builder','_sourceContext','ChartSourceOrientation','subUnitId','filter','get','resolve','height','getUnitId','getChartModel','122644aTrrWH','18193KiwzmO','mapping','charts','getCategoryData','getChartSuggestion','toPrimitive','resolveSource','setSize','message','extend','category','getWorkbook','2rcxULA','setAbsolutePosition','getSource','width'];_0x5c6c=function(){return _0x4ec0e2;};return _0x5c6c();}var B=class extends _0x19dae6{get[_0x41b855(0x1eb)](){return _0x2c334a;}};_0x19dae6[_0x41b855(0x1fd)](B);export{R as FSheetCharts};
|