@univerjs-pro/sheets-chart 1.0.4 → 1.1.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
|
-
|
|
1
|
+
const _0x1bc8cb=_0x1884;(function(_0x356b43,_0x1c7d9b){const _0x59b933=_0x1884,_0x3468b6=_0x356b43();while(!![]){try{const _0x45b2df=parseInt(_0x59b933(0x12e))/0x1+-parseInt(_0x59b933(0x11d))/0x2*(-parseInt(_0x59b933(0x132))/0x3)+parseInt(_0x59b933(0x126))/0x4+parseInt(_0x59b933(0x134))/0x5*(-parseInt(_0x59b933(0x13e))/0x6)+-parseInt(_0x59b933(0x137))/0x7+parseInt(_0x59b933(0x110))/0x8+parseInt(_0x59b933(0xfe))/0x9;if(_0x45b2df===_0x1c7d9b)break;else _0x3468b6['push'](_0x3468b6['shift']());}catch(_0x4bd34e){_0x3468b6['push'](_0x3468b6['shift']());}}}(_0x460f,0x5feb3),Object[_0x1bc8cb(0x128)](exports,Symbol['toStringTag'],{'value':_0x1bc8cb(0x108)}));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[_0x1bc8cb(0x112)]{constructor(_0x36893d,_0x1fe990,_0x561ddf,_0x3f9216){const _0x2bc95c=_0x1bc8cb;super(_0x561ddf,()=>new n['SheetChartConfigAdapter']({'unitId':_0x36893d,'subUnitId':_0x1fe990,'chartId':_0x561ddf,'injector':_0x3f9216}),(_0x592de1,_0x135666,_0x552762)=>(0x0,t['createChartBuilder'])({'info':_0x592de1,'description':_0x135666,'type':_0x552762,'normalizeSource':_0x43841c=>_0x43841c,'extension':({setInfo:_0x4e1226})=>({'setPosition'(_0xc2658f){const _0x1c432c=_0x1884;return _0x4e1226(_0x1c432c(0xfd),_0xc2658f),this;}})}),_0x3f9216),this[_0x2bc95c(0x130)]=_0x36893d,this['subUnitId']=_0x1fe990,this['chartId']=_0x561ddf;}[_0x1bc8cb(0x123)](){let _0x3fe730=this['_injector']['get'](n['SheetsChartService'])['getChartSourceSpec'](this['chartId']);return _0x3fe730&&!Array['isArray'](_0x3fe730)?_0x3fe730:void 0x0;}['setPosition'](_0x2daa75){const _0x55f452=_0x1bc8cb;return this[_0x55f452(0x115)]()[_0x55f452(0x13d)]({'layout':{'anchor':_0x2daa75}}),this;}async[_0x1bc8cb(0x104)](_0x24bb42){const _0x506b5d=_0x1bc8cb;this[_0x506b5d(0x115)]()[_0x506b5d(0x104)](_0x24bb42);}[_0x1bc8cb(0x121)](_0x13dbe8){const _0x5ca6e7=_0x1bc8cb;return this[_0x5ca6e7(0x115)]()[_0x5ca6e7(0x111)]({'plotVisibleOnly':_0x13dbe8}),this;}[_0x1bc8cb(0xff)](){const _0x1aa52b=_0x1bc8cb;return this[_0x1aa52b(0x115)]()['getPlotVisibleOnly']();}[_0x1bc8cb(0x115)](){const _0x5a9f2d=_0x1bc8cb;return new n[(_0x5a9f2d(0x10b))]({'unitId':this[_0x5a9f2d(0x130)],'subUnitId':this[_0x5a9f2d(0x100)],'chartId':this['chartId'],'injector':this['_injector']});}},s=class extends i[_0x1bc8cb(0x12f)]{['newChart'](_0x97fe8f){const _0x89bb22=_0x1bc8cb;return(0x0,t[_0x89bb22(0x11b)])({'type':_0x97fe8f,'injector':this['_injector'],'commitError':_0x89bb22(0x116),'normalizeSource':_0x40b2da=>_0x40b2da,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x4f362c})=>({'setPosition'(_0xe48c1e){const _0x556606=_0x89bb22;return _0x4f362c(_0x556606(0xfd),_0xe48c1e),this;}})});}async[_0x1bc8cb(0x138)](_0x4e9177){const _0x422ca6=_0x1bc8cb;var _0x195f0a,_0x579a27,_0x2c6fc1;let {config:_0x102c90,dataSource:_0x266647,anchor:_0x36b90a,position:_0x340b93,size:_0x2e79eb}=_0x4e9177,_0x5ed91a={..._0x102c90,'source':_0x266647,'anchor':_0x36b90a,'position':_0x340b93,'size':_0x2e79eb},_0x596950=(0x0,e['chartTypeToBits'])(_0x5ed91a[_0x422ca6(0x11a)]),_0x595c92=this[_0x422ca6(0x139)](_0x596950),_0x4062a0=[],_0x346373=(0x0,n[_0x422ca6(0x133)])(_0x5ed91a['source'],_0x595c92,_0x4062a0);if(!_0x346373||_0x4062a0[_0x422ca6(0x10a)](_0x3f0476=>_0x3f0476[_0x422ca6(0x10f)]===n['ChartDiagnosticSeverity'][_0x422ca6(0x120)]))throw Error(_0x4062a0[_0x422ca6(0x10c)](_0x19391e=>_0x19391e[_0x422ca6(0x127)])['join'](';\x20')||_0x422ca6(0x13f));let _0xcaa5e=(0x0,r[_0x422ca6(0x107)])(),_0x12bd5e=(0x0,e[_0x422ca6(0x117)])(_0x5ed91a,{'series':(0x0,n[_0x422ca6(0x109)])(_0x346373,_0x595c92,((_0x195f0a=_0x5ed91a[_0x422ca6(0x103)])==null?void 0x0:_0x195f0a[_0x422ca6(0x129)])??0x0)}),_0x1d682a=(0x0,n['resolveInitialChartPosition'])({'unitId':_0x595c92[_0x422ca6(0x130)],'subUnitId':_0x595c92[_0x422ca6(0x100)],'injector':this[_0x422ca6(0x12d)]()},_0x5ed91a,_0x4062a0),_0x3509a7={'unitId':_0x595c92['unitId'],'subUnitId':_0x595c92[_0x422ca6(0x100)],'chartId':_0xcaa5e,'chartType':_0x596950,'source':_0x346373[_0x422ca6(0x125)]===n['ChartSourceKind'][_0x422ca6(0x13c)]?_0x346373[_0x422ca6(0x135)]:_0x346373[_0x422ca6(0x106)],'position':_0x1d682a,'width':(_0x579a27=_0x5ed91a[_0x422ca6(0x13a)])==null?void 0x0:_0x579a27['width'],'height':(_0x2c6fc1=_0x5ed91a['size'])==null?void 0x0:_0x2c6fc1['height'],'theme':_0x5ed91a['theme']??void 0x0,'config':{'unitId':_0x595c92[_0x422ca6(0x130)],'chartModelId':_0xcaa5e,'style':_0x12bd5e[_0x422ca6(0x10d)],'context':_0x12bd5e[_0x422ca6(0x105)],'dataAggregation':_0x12bd5e[_0x422ca6(0x118)]}};if(!await this['getInject']()[_0x422ca6(0x10e)](r[_0x422ca6(0x101)])[_0x422ca6(0x12b)](n[_0x422ca6(0x102)]['id'],_0x3509a7))throw Error(_0x422ca6(0x11c));return this['_injector'][_0x422ca6(0x124)](o,_0x595c92[_0x422ca6(0x130)],_0x595c92['subUnitId'],_0xcaa5e,this['_injector']);}['getChart'](_0x4da25e){const _0x3b7bc8=_0x1bc8cb;let {unitId:_0x1ce74b,subUnitId:_0x4c51ed}=this['_chartSourceContext'](),_0x2714e7=this[_0x3b7bc8(0x12d)]()[_0x3b7bc8(0x10e)](n[_0x3b7bc8(0x11f)]);return _0x2714e7['getChartModel'](_0x4da25e)&&_0x2714e7[_0x3b7bc8(0x11e)](_0x1ce74b,_0x4da25e)===_0x4c51ed?this[_0x3b7bc8(0x113)]['createInstance'](o,_0x1ce74b,_0x4c51ed,_0x4da25e,this[_0x3b7bc8(0x113)]):null;}[_0x1bc8cb(0x122)](){const _0x1b6fd9=_0x1bc8cb;let {unitId:_0x516e53,subUnitId:_0x10f4be}=this[_0x1b6fd9(0x139)]();return this['getInject']()['get'](n[_0x1b6fd9(0x11f)])[_0x1b6fd9(0x13b)](_0x516e53,_0x10f4be)[_0x1b6fd9(0x119)](Boolean)['map'](_0x1e7133=>this['_injector'][_0x1b6fd9(0x124)](o,_0x516e53,_0x10f4be,_0x1e7133['id'],this['_injector']));}[_0x1bc8cb(0x139)](_0x35138d){const _0x5b8f63=_0x1bc8cb;let _0x41ad92=this[_0x5b8f63(0x136)](),_0x16b438=this['getInject']()[_0x5b8f63(0x10e)](n[_0x5b8f63(0x11f)]);return{'unitId':_0x41ad92['getUnitId'](),'subUnitId':this['getSheetId'](),'workbook':_0x41ad92,'localeService':this[_0x5b8f63(0x113)][_0x5b8f63(0x10e)](r['LocaleService']),..._0x35138d===void 0x0?{}:{'inferInitialChartSource':_0x5ef2e5=>_0x16b438['inferInitialChartSource'](_0x5ef2e5,_0x35138d)}};}};function _0x460f(){const _0x203e49=['FEnum','503007pqThlS','resolveSourceSpec','396600FJzIcz','rangeInfo','getWorkbook','4821789FtWXUb','insertChart','_chartSourceContext','size','getUnitChartModels','Range','commitHost','24WSPLOD','Invalid\x20Sheet\x20chart\x20source.','anchor','240651SDAkeX','getPlotVisibleOnly','subUnitId','ICommandService','InsertChartCommand','mapping','setHeader','context','ranges','generateRandomId','Module','resolveSourceSeries','some','SheetChartConfigAdapter','map','style','get','severity','991040uWWeAY','commit','FChart','_injector','extend','_createSheetAdapter','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','toChartModelConfig','dataAggregation','filter','type','createChartBuilder','Failed\x20to\x20create\x20Sheet\x20chart.','6fSXCHB','getSubUnitId','SheetsChartService','Error','setPlotVisibleOnly','getCharts','getRange','createInstance','kind','827952MsbLba','message','defineProperty','categoryIndex','ChartSourceOrientation','executeCommand','FSheetChart','getInject','538376sXhSTJ','FWorksheet','unitId'];_0x460f=function(){return _0x203e49;};return _0x460f();}i[_0x1bc8cb(0x12f)][_0x1bc8cb(0x114)](s);var c=class extends a['FEnum']{get[_0x1bc8cb(0x12a)](){const _0x15f056=_0x1bc8cb;return n[_0x15f056(0x12a)];}};function _0x1884(_0x1084ec,_0x5107cb){_0x1084ec=_0x1084ec-0xfd;const _0x460f99=_0x460f();let _0x188445=_0x460f99[_0x1084ec];return _0x188445;}a[_0x1bc8cb(0x131)][_0x1bc8cb(0x114)](c),exports[_0x1bc8cb(0x12c)]=o;
|