@univerjs-pro/sheets-chart 1.0.4 → 1.2.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/facade/f-worksheet.d.ts +42 -0
- 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 +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1886(_0xc8ba4e,_0x2c26b8){_0xc8ba4e=_0xc8ba4e-0x91;const _0x262307=_0x2623();let _0x1886c1=_0x262307[_0xc8ba4e];return _0x1886c1;}const _0x48d260=_0x1886;(function(_0x67b1a7,_0x3c1a3d){const _0x39b51d=_0x1886,_0x3aae84=_0x67b1a7();while(!![]){try{const _0x3ebcec=-parseInt(_0x39b51d(0x91))/0x1+-parseInt(_0x39b51d(0xb8))/0x2+-parseInt(_0x39b51d(0xd7))/0x3*(-parseInt(_0x39b51d(0xad))/0x4)+-parseInt(_0x39b51d(0xc5))/0x5*(-parseInt(_0x39b51d(0x93))/0x6)+parseInt(_0x39b51d(0x9d))/0x7+parseInt(_0x39b51d(0xcd))/0x8+parseInt(_0x39b51d(0xae))/0x9*(-parseInt(_0x39b51d(0xb7))/0xa);if(_0x3ebcec===_0x3c1a3d)break;else _0x3aae84['push'](_0x3aae84['shift']());}catch(_0x19dd1b){_0x3aae84['push'](_0x3aae84['shift']());}}}(_0x2623,0x71fc5),Object['defineProperty'](exports,Symbol[_0x48d260(0x9f)],{'value':_0x48d260(0xd5)}));function _0x2623(){const _0x5d2359=['getInject','createInstance','chartId','map','unitId','setPosition','InsertChartCommand','ICommandService','message','517170PwEXde','FWorksheet','severity','getChartModel','insertChart','chartTypeToBits','join','executeCommand','5538384eGseRd','getChart','getUnitId','resolveInitialChartPosition','_injector','mapping','get','type','Module','createChartBuilder','12NLAXgY','750241yMJUwG','Range','54MVYWFP','ChartSourceOrientation','_chartSourceContext','getRange','resolveSourceSeries','commitHost','setHeader','toChartModelConfig','FSheetChart','ChartSourceKind','2028579oVUhfK','getSubUnitId','toStringTag','SheetChartConfigAdapter','Failed\x20to\x20create\x20Sheet\x20chart.','getCharts','extend','getChartSourceSpec','getWorkbook','style','newChart','FEnum','source','_createSheetAdapter','SheetsChartService','rangeInfo','284668URjFFM','117obHleF','anchor','Invalid\x20Sheet\x20chart\x20source.','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','size','ChartDiagnosticSeverity','categoryIndex','getPlotVisibleOnly','getSheetId','615710ZffRyV','360240gFKEYD','kind','Error','subUnitId'];_0x2623=function(){return _0x5d2359;};return _0x2623();}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['FChart']{constructor(_0x5beb52,_0xe0a1ae,_0x3a16f6,_0x1c30c7){const _0x52d6d3=_0x48d260;super(_0x3a16f6,()=>new n[(_0x52d6d3(0xa0))]({'unitId':_0x5beb52,'subUnitId':_0xe0a1ae,'chartId':_0x3a16f6,'injector':_0x1c30c7}),(_0x2a03cf,_0x1844f5,_0x33b13f)=>(0x0,t[_0x52d6d3(0xd6)])({'info':_0x2a03cf,'description':_0x1844f5,'type':_0x33b13f,'normalizeSource':_0x367245=>_0x367245,'extension':({setInfo:_0x3b841c})=>({'setPosition'(_0x418271){const _0xc7171f=_0x52d6d3;return _0x3b841c(_0xc7171f(0xaf),_0x418271),this;}})}),_0x1c30c7),this[_0x52d6d3(0xc0)]=_0x5beb52,this['subUnitId']=_0xe0a1ae,this[_0x52d6d3(0xbe)]=_0x3a16f6;}[_0x48d260(0x96)](){const _0x11661b=_0x48d260;let _0x3ab220=this[_0x11661b(0xd1)][_0x11661b(0xd3)](n[_0x11661b(0xab)])[_0x11661b(0xa4)](this[_0x11661b(0xbe)]);return _0x3ab220&&!Array['isArray'](_0x3ab220)?_0x3ab220:void 0x0;}[_0x48d260(0xc1)](_0x7dbfeb){const _0x4768c5=_0x48d260;return this[_0x4768c5(0xaa)]()[_0x4768c5(0x98)]({'layout':{'anchor':_0x7dbfeb}}),this;}async[_0x48d260(0x99)](_0x52772e){const _0x3b5530=_0x48d260;this['_createSheetAdapter']()[_0x3b5530(0x99)](_0x52772e);}['setPlotVisibleOnly'](_0x47d113){const _0x3d4dcf=_0x48d260;return this[_0x3d4dcf(0xaa)]()['commit']({'plotVisibleOnly':_0x47d113}),this;}[_0x48d260(0xb5)](){const _0x109706=_0x48d260;return this[_0x109706(0xaa)]()[_0x109706(0xb5)]();}[_0x48d260(0xaa)](){const _0x18021d=_0x48d260;return new n[(_0x18021d(0xa0))]({'unitId':this['unitId'],'subUnitId':this[_0x18021d(0xbb)],'chartId':this[_0x18021d(0xbe)],'injector':this[_0x18021d(0xd1)]});}},s=class extends i[_0x48d260(0xc6)]{[_0x48d260(0xa7)](_0x17ea56){const _0x39be5a=_0x48d260;return(0x0,t[_0x39be5a(0xd6)])({'type':_0x17ea56,'injector':this[_0x39be5a(0xd1)],'commitError':_0x39be5a(0xb1),'normalizeSource':_0x371d04=>_0x371d04,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x245132})=>({'setPosition'(_0x6b760a){const _0x4b84ef=_0x39be5a;return _0x245132(_0x4b84ef(0xaf),_0x6b760a),this;}})});}async[_0x48d260(0xc9)](_0x72b5d6){const _0x2fe73a=_0x48d260;var _0x1530b0,_0x3ecdd9,_0x3876bc;let {config:_0x39597e,dataSource:_0x1cfc9b,anchor:_0x255c5f,position:_0x1112ee,size:_0x3d83fc}=_0x72b5d6,_0x1eef05={..._0x39597e,'source':_0x1cfc9b,'anchor':_0x255c5f,'position':_0x1112ee,'size':_0x3d83fc},_0x2b57c8=(0x0,e[_0x2fe73a(0xca)])(_0x1eef05[_0x2fe73a(0xd4)]),_0x273dbd=this[_0x2fe73a(0x95)](_0x2b57c8),_0x41902c=[],_0x25878c=(0x0,n['resolveSourceSpec'])(_0x1eef05[_0x2fe73a(0xa9)],_0x273dbd,_0x41902c);if(!_0x25878c||_0x41902c['some'](_0x4ec800=>_0x4ec800[_0x2fe73a(0xc7)]===n[_0x2fe73a(0xb3)][_0x2fe73a(0xba)]))throw Error(_0x41902c[_0x2fe73a(0xbf)](_0x3106f7=>_0x3106f7[_0x2fe73a(0xc4)])[_0x2fe73a(0xcb)](';\x20')||_0x2fe73a(0xb0));let _0x495e7a=(0x0,r['generateRandomId'])(),_0x4156ae=(0x0,e[_0x2fe73a(0x9a)])(_0x1eef05,{'series':(0x0,n[_0x2fe73a(0x97)])(_0x25878c,_0x273dbd,((_0x1530b0=_0x1eef05[_0x2fe73a(0xd2)])==null?void 0x0:_0x1530b0[_0x2fe73a(0xb4)])??0x0)}),_0x1748ee=(0x0,n[_0x2fe73a(0xd0)])({'unitId':_0x273dbd['unitId'],'subUnitId':_0x273dbd['subUnitId'],'injector':this[_0x2fe73a(0xbc)]()},_0x1eef05,_0x41902c),_0x49eb08={'unitId':_0x273dbd[_0x2fe73a(0xc0)],'subUnitId':_0x273dbd[_0x2fe73a(0xbb)],'chartId':_0x495e7a,'chartType':_0x2b57c8,'source':_0x25878c[_0x2fe73a(0xb9)]===n[_0x2fe73a(0x9c)][_0x2fe73a(0x92)]?_0x25878c[_0x2fe73a(0xac)]:_0x25878c['ranges'],'position':_0x1748ee,'width':(_0x3ecdd9=_0x1eef05[_0x2fe73a(0xb2)])==null?void 0x0:_0x3ecdd9['width'],'height':(_0x3876bc=_0x1eef05[_0x2fe73a(0xb2)])==null?void 0x0:_0x3876bc['height'],'theme':_0x1eef05['theme']??void 0x0,'config':{'unitId':_0x273dbd[_0x2fe73a(0xc0)],'chartModelId':_0x495e7a,'style':_0x4156ae[_0x2fe73a(0xa6)],'context':_0x4156ae['context'],'dataAggregation':_0x4156ae['dataAggregation']}};if(!await this[_0x2fe73a(0xbc)]()[_0x2fe73a(0xd3)](r[_0x2fe73a(0xc3)])[_0x2fe73a(0xcc)](n[_0x2fe73a(0xc2)]['id'],_0x49eb08))throw Error(_0x2fe73a(0xa1));return this[_0x2fe73a(0xd1)][_0x2fe73a(0xbd)](o,_0x273dbd[_0x2fe73a(0xc0)],_0x273dbd[_0x2fe73a(0xbb)],_0x495e7a,this[_0x2fe73a(0xd1)]);}[_0x48d260(0xce)](_0x4bc28b){const _0x2be338=_0x48d260;let {unitId:_0x25e15b,subUnitId:_0x44343d}=this['_chartSourceContext'](),_0x430461=this[_0x2be338(0xbc)]()[_0x2be338(0xd3)](n[_0x2be338(0xab)]);return _0x430461[_0x2be338(0xc8)](_0x4bc28b)&&_0x430461[_0x2be338(0x9e)](_0x25e15b,_0x4bc28b)===_0x44343d?this[_0x2be338(0xd1)][_0x2be338(0xbd)](o,_0x25e15b,_0x44343d,_0x4bc28b,this[_0x2be338(0xd1)]):null;}[_0x48d260(0xa2)](){const _0x4167af=_0x48d260;let {unitId:_0x678d6b,subUnitId:_0xbdd346}=this[_0x4167af(0x95)]();return this[_0x4167af(0xbc)]()[_0x4167af(0xd3)](n[_0x4167af(0xab)])['getUnitChartModels'](_0x678d6b,_0xbdd346)['filter'](Boolean)[_0x4167af(0xbf)](_0x2ddda7=>this[_0x4167af(0xd1)][_0x4167af(0xbd)](o,_0x678d6b,_0xbdd346,_0x2ddda7['id'],this[_0x4167af(0xd1)]));}['_chartSourceContext'](_0x4b29dd){const _0x4361cd=_0x48d260;let _0x41eac8=this[_0x4361cd(0xa5)](),_0x4862f1=this[_0x4361cd(0xbc)]()[_0x4361cd(0xd3)](n[_0x4361cd(0xab)]);return{'unitId':_0x41eac8[_0x4361cd(0xcf)](),'subUnitId':this[_0x4361cd(0xb6)](),'workbook':_0x41eac8,'localeService':this[_0x4361cd(0xd1)][_0x4361cd(0xd3)](r['LocaleService']),..._0x4b29dd===void 0x0?{}:{'inferInitialChartSource':_0x3284bf=>_0x4862f1['inferInitialChartSource'](_0x3284bf,_0x4b29dd)}};}};i['FWorksheet'][_0x48d260(0xa3)](s);var c=class extends a[_0x48d260(0xa8)]{get[_0x48d260(0x94)](){const _0x2a4f14=_0x48d260;return n[_0x2a4f14(0x94)];}};a[_0x48d260(0xa8)][_0x48d260(0xa3)](c),exports[_0x48d260(0x9b)]=o;
|