@univerjs-pro/sheets-chart 1.0.2 → 1.0.4
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/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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1d92(_0x338147,_0x2b773b){_0x338147=_0x338147-0x1a9;const _0xed2336=_0xed23();let _0x1d92b1=_0xed2336[_0x338147];return _0x1d92b1;}const _0x272eae=_0x1d92;(function(_0x3c8560,_0x20c09c){const _0x56feb0=_0x1d92,_0x51ef4b=_0x3c8560();while(!![]){try{const _0x5441cb=-parseInt(_0x56feb0(0x1e3))/0x1*(-parseInt(_0x56feb0(0x1b9))/0x2)+parseInt(_0x56feb0(0x1ed))/0x3*(-parseInt(_0x56feb0(0x1d4))/0x4)+-parseInt(_0x56feb0(0x1cc))/0x5*(-parseInt(_0x56feb0(0x1ab))/0x6)+parseInt(_0x56feb0(0x1e4))/0x7+parseInt(_0x56feb0(0x1e1))/0x8+parseInt(_0x56feb0(0x1b6))/0x9*(-parseInt(_0x56feb0(0x1d0))/0xa)+-parseInt(_0x56feb0(0x1e0))/0xb;if(_0x5441cb===_0x20c09c)break;else _0x51ef4b['push'](_0x51ef4b['shift']());}catch(_0x28f02b){_0x51ef4b['push'](_0x51ef4b['shift']());}}}(_0xed23,0x6718f),Object[_0x272eae(0x1db)](exports,Symbol['toStringTag'],{'value':_0x272eae(0x1b0)}));let e=require('@univerjs-pro/engine-chart'),t=require('@univerjs-pro/engine-chart/facade'),n=require('@univerjs-pro/sheets-chart'),r=require('@univerjs/core'),i=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');var o=class extends t[_0x272eae(0x1ca)]{constructor(_0xa0e6b8,_0x829f3a,_0x5b3c88,_0x48244e){const _0x3741f1=_0x272eae;super(_0x5b3c88,()=>new n[(_0x3741f1(0x1b4))]({'unitId':_0xa0e6b8,'subUnitId':_0x829f3a,'chartId':_0x5b3c88,'injector':_0x48244e}),(_0x3f276a,_0x4ae8fd,_0x101679)=>(0x0,t[_0x3741f1(0x1c8)])({'info':_0x3f276a,'description':_0x4ae8fd,'type':_0x101679,'normalizeSource':_0x1a40a1=>_0x1a40a1,'extension':({setInfo:_0x120157})=>({'setPosition'(_0x5a3775){return _0x120157('anchor',_0x5a3775),this;}})}),_0x48244e),this[_0x3741f1(0x1d9)]=_0xa0e6b8,this[_0x3741f1(0x1b2)]=_0x829f3a,this['chartId']=_0x5b3c88;}[_0x272eae(0x1b3)](){const _0x422fe6=_0x272eae;let _0x178171=this[_0x422fe6(0x1c6)][_0x422fe6(0x1b8)](n['SheetsChartService'])[_0x422fe6(0x1ae)](this[_0x422fe6(0x1ec)]);return _0x178171&&!Array['isArray'](_0x178171)?_0x178171:void 0x0;}['setPosition'](_0xb55b9){const _0xe54b42=_0x272eae;return this[_0xe54b42(0x1d3)]()[_0xe54b42(0x1b1)]({'layout':{'anchor':_0xb55b9}}),this;}async['setHeader'](_0x4b9df5){const _0x1f8a99=_0x272eae;this[_0x1f8a99(0x1d3)]()['setHeader'](_0x4b9df5);}[_0x272eae(0x1b5)](_0x50d32f){const _0x477325=_0x272eae;return this['_createSheetAdapter']()[_0x477325(0x1c5)]({'plotVisibleOnly':_0x50d32f}),this;}['getPlotVisibleOnly'](){const _0x16bc25=_0x272eae;return this[_0x16bc25(0x1d3)]()['getPlotVisibleOnly']();}['_createSheetAdapter'](){const _0x262632=_0x272eae;return new n[(_0x262632(0x1b4))]({'unitId':this[_0x262632(0x1d9)],'subUnitId':this[_0x262632(0x1b2)],'chartId':this[_0x262632(0x1ec)],'injector':this[_0x262632(0x1c6)]});}},s=class extends i[_0x272eae(0x1cd)]{['newChart'](_0x11a855){const _0x4b5723=_0x272eae;return(0x0,t['createChartBuilder'])({'type':_0x11a855,'injector':this[_0x4b5723(0x1c6)],'commitError':_0x4b5723(0x1c4),'normalizeSource':_0x4c1755=>_0x4c1755,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x208be9})=>({'setPosition'(_0x234b19){return _0x208be9('anchor',_0x234b19),this;}})});}async[_0x272eae(0x1d6)](_0x50671f){const _0x1460cd=_0x272eae;var _0x23443f,_0x16ecde,_0x275d9c;let {config:_0x1e442d,dataSource:_0x1bf10b,anchor:_0x5a391a,position:_0x8d85e4,size:_0x17bf30}=_0x50671f,_0x2fd2c2={..._0x1e442d,'source':_0x1bf10b,'anchor':_0x5a391a,'position':_0x8d85e4,'size':_0x17bf30},_0x358dd4=(0x0,e[_0x1460cd(0x1bd)])(_0x2fd2c2[_0x1460cd(0x1bc)]),_0x4e932a=this[_0x1460cd(0x1c0)](_0x358dd4),_0x4c3f08=[],_0x2c5310=(0x0,n[_0x1460cd(0x1ad)])(_0x2fd2c2[_0x1460cd(0x1e2)],_0x4e932a,_0x4c3f08);if(!_0x2c5310||_0x4c3f08[_0x1460cd(0x1ac)](_0x4e12ea=>_0x4e12ea[_0x1460cd(0x1c1)]===n[_0x1460cd(0x1bb)][_0x1460cd(0x1aa)]))throw Error(_0x4c3f08['map'](_0x19a728=>_0x19a728['message'])[_0x1460cd(0x1d5)](';\x20')||_0x1460cd(0x1ce));let _0xbeed25=(0x0,r[_0x1460cd(0x1ea)])(),_0x2526e5=(0x0,e['toChartModelConfig'])(_0x2fd2c2,{'series':(0x0,n['resolveSourceSeries'])(_0x2c5310,_0x4e932a,((_0x23443f=_0x2fd2c2[_0x1460cd(0x1ba)])==null?void 0x0:_0x23443f[_0x1460cd(0x1d8)])??0x0)}),_0x301fdd=(0x0,n[_0x1460cd(0x1eb)])({'unitId':_0x4e932a[_0x1460cd(0x1d9)],'subUnitId':_0x4e932a[_0x1460cd(0x1b2)],'injector':this[_0x1460cd(0x1e5)]()},_0x2fd2c2,_0x4c3f08),_0x246659={'unitId':_0x4e932a[_0x1460cd(0x1d9)],'subUnitId':_0x4e932a['subUnitId'],'chartId':_0xbeed25,'chartType':_0x358dd4,'source':_0x2c5310['kind']===n[_0x1460cd(0x1e7)][_0x1460cd(0x1bf)]?_0x2c5310['rangeInfo']:_0x2c5310[_0x1460cd(0x1d7)],'position':_0x301fdd,'width':(_0x16ecde=_0x2fd2c2[_0x1460cd(0x1af)])==null?void 0x0:_0x16ecde[_0x1460cd(0x1c3)],'height':(_0x275d9c=_0x2fd2c2[_0x1460cd(0x1af)])==null?void 0x0:_0x275d9c[_0x1460cd(0x1c9)],'theme':_0x2fd2c2[_0x1460cd(0x1da)]??void 0x0,'config':{'unitId':_0x4e932a[_0x1460cd(0x1d9)],'chartModelId':_0xbeed25,'style':_0x2526e5[_0x1460cd(0x1e6)],'context':_0x2526e5[_0x1460cd(0x1df)],'dataAggregation':_0x2526e5['dataAggregation']}};if(!await this['getInject']()[_0x1460cd(0x1b8)](r['ICommandService'])[_0x1460cd(0x1de)](n[_0x1460cd(0x1c2)]['id'],_0x246659))throw Error(_0x1460cd(0x1dc));return this[_0x1460cd(0x1c6)][_0x1460cd(0x1d2)](o,_0x4e932a[_0x1460cd(0x1d9)],_0x4e932a[_0x1460cd(0x1b2)],_0xbeed25,this[_0x1460cd(0x1c6)]);}[_0x272eae(0x1cf)](_0x352daf){const _0x1fd91b=_0x272eae;let {unitId:_0x393c00,subUnitId:_0x485761}=this[_0x1fd91b(0x1c0)](),_0x498f64=this[_0x1fd91b(0x1e5)]()['get'](n[_0x1fd91b(0x1cb)]);return _0x498f64[_0x1fd91b(0x1be)](_0x352daf)&&_0x498f64['getSubUnitId'](_0x393c00,_0x352daf)===_0x485761?this[_0x1fd91b(0x1c6)][_0x1fd91b(0x1d2)](o,_0x393c00,_0x485761,_0x352daf,this['_injector']):null;}['getCharts'](){const _0x30880c=_0x272eae;let {unitId:_0x4b46b6,subUnitId:_0x1a993f}=this['_chartSourceContext']();return this[_0x30880c(0x1e5)]()['get'](n['SheetsChartService'])[_0x30880c(0x1e9)](_0x4b46b6,_0x1a993f)['filter'](Boolean)[_0x30880c(0x1b7)](_0x4a296f=>this[_0x30880c(0x1c6)][_0x30880c(0x1d2)](o,_0x4b46b6,_0x1a993f,_0x4a296f['id'],this[_0x30880c(0x1c6)]));}[_0x272eae(0x1c0)](_0x4294c0){const _0x262ed8=_0x272eae;let _0x1dbced=this[_0x262ed8(0x1e8)](),_0x1cc12a=this[_0x262ed8(0x1e5)]()[_0x262ed8(0x1b8)](n[_0x262ed8(0x1cb)]);return{'unitId':_0x1dbced[_0x262ed8(0x1c7)](),'subUnitId':this['getSheetId'](),'workbook':_0x1dbced,'localeService':this[_0x262ed8(0x1c6)][_0x262ed8(0x1b8)](r[_0x262ed8(0x1d1)]),..._0x4294c0===void 0x0?{}:{'inferInitialChartSource':_0x3da56f=>_0x1cc12a['inferInitialChartSource'](_0x3da56f,_0x4294c0)}};}};function _0xed23(){const _0x10e55c=['commitHost','subUnitId','getRange','SheetChartConfigAdapter','setPlotVisibleOnly','180FGOgnw','map','get','397892qedFwZ','mapping','ChartDiagnosticSeverity','type','chartTypeToBits','getChartModel','Range','_chartSourceContext','severity','InsertChartCommand','width','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','commit','_injector','getUnitId','createChartBuilder','height','FChart','SheetsChartService','142210RtvbcE','FWorksheet','Invalid\x20Sheet\x20chart\x20source.','getChart','155590GzToee','LocaleService','createInstance','_createSheetAdapter','50672BSxqYv','join','insertChart','ranges','categoryIndex','unitId','theme','defineProperty','Failed\x20to\x20create\x20Sheet\x20chart.','extend','executeCommand','context','6271958rvCSVv','4213888ClNPaM','source','3gbKrXU','5542103rBvWyn','getInject','style','ChartSourceKind','getWorkbook','getUnitChartModels','generateRandomId','resolveInitialChartPosition','chartId','192VLEqxn','FEnum','Error','42NHpnjT','some','resolveSourceSpec','getChartSourceSpec','size','Module'];_0xed23=function(){return _0x10e55c;};return _0xed23();}i['FWorksheet'][_0x272eae(0x1dd)](s);var c=class extends a[_0x272eae(0x1a9)]{get['ChartSourceOrientation'](){return n['ChartSourceOrientation'];}};a[_0x272eae(0x1a9)][_0x272eae(0x1dd)](c),exports['FSheetChart']=o;
|