@univerjs-pro/sheets-shape 0.17.0 → 0.18.0-insiders.20260328-0842384
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/command/update-shape-type.command.d.ts +3 -3
- package/lib/types/commands/mutation/add-shape.mutation.d.ts +3 -3
- package/lib/types/commands/mutation/remove-shape.mutation.d.ts +2 -2
- package/lib/types/commands/mutation/update-shape-data.mutation.d.ts +3 -3
- package/lib/types/commands/mutation/update-shape-type.mutation.d.ts +3 -3
- package/lib/types/model/shape-manager.d.ts +2 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/sheet-shape-services.d.ts +4 -4
- package/lib/umd/index.js +1 -1
- package/package.json +13 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x220968=_0x243d;function _0x3f0f(){const _0x5af29e=['Inject','getBasicShapeType','Plugin','syncExecuteCommand','disposeWithMe','Injector','_ensureShapeModelManager','CommandType','insertShape','name','onRendered','_config','ShapeModel','removeShape','UpdateSheetsShapeTypeCommand','_deserializeShapeForUnit','UniverInstanceType','sheet.mutation.remove-shape','IResourceManagerService','2643378XkkndF','getShapeRelation','@univerjs-pro/sheets-shape','registerPluginResource','SHEET_SHAPE_PLUGIN','type','_groupIds','1136749IegzHo','onStarting','getShapeTypeById','clear','setShapeType','registerCommand','length','pluginName','1392560XSENhT','_injector','SheetsShapeService','delete','shapeId','sheet.mutation.insert-shape','packageName','_shapeModelManagerMap','defineProperty','6014005KWwxeR','toStringTag','0.17.0','RemoveSheetsShapeMutation','set','171328LCNNiR','_shapes','get','MUTATION','_linesIds','getShapeModel','keys','getLineShapeRelation','forEach','1997128WlGnrV','hasShape','2456774PJuUpi','UniverLicensePlugin','dispose','_serializeShapeForUnit','Disposable','ICommandService','UpdateSheetsShapeTypeMutation','_resourcesManagerService','_initSnapshot','add','from','_configService','symbol','params','UniverSheetsShapePlugin','setConfig','addShape','_initCommands','getShapeData','getOwnPropertyDescriptor','isConnectorShape','getBasicShapeRelation','every','75mXFvsa','shapeData','setShapeData','touchDependencies','sheet.mutation.update-shape-data','IConfigService','has','parse','getShapeType','fromJSON','push','_commandService','toJSON','version','UpdateSheetsShapeDataMutation'];_0x3f0f=function(){return _0x5af29e;};return _0x3f0f();}(function(_0x1065d3,_0x21052c){const _0x43d821=_0x243d,_0x391d07=_0x1065d3();while(!![]){try{const _0xfba8db=-parseInt(_0x43d821(0x144))/0x1+parseInt(_0x43d821(0x104))/0x2+parseInt(_0x43d821(0x11b))/0x3*(-parseInt(_0x43d821(0xf9))/0x4)+parseInt(_0x43d821(0xf4))/0x5+parseInt(_0x43d821(0x13d))/0x6+parseInt(_0x43d821(0x102))/0x7+-parseInt(_0x43d821(0x14c))/0x8;if(_0xfba8db===_0x21052c)break;else _0x391d07['push'](_0x391d07['shift']());}catch(_0x442460){_0x391d07['push'](_0x391d07['shift']());}}}(_0x3f0f,0xbd50c));var C=Object['defineProperty'],b=(_0x3360cf,_0x4c8cca,_0x2216df)=>_0x4c8cca in _0x3360cf?C(_0x3360cf,_0x4c8cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2216df}):_0x3360cf[_0x4c8cca]=_0x2216df,S=(_0x3be945,_0x4cf841,_0x209f21)=>b(_0x3be945,typeof _0x4cf841!=_0x220968(0x110)?_0x4cf841+'':_0x4cf841,_0x209f21);Object[_0x220968(0xf3)](exports,Symbol[_0x220968(0xf5)],{'value':'Module'});const p=require('@univerjs/core'),g=require('@univerjs-pro/engine-shape'),R=require('@univerjs-pro/license');class m extends p[_0x220968(0x108)]{constructor(){const _0x197004=_0x220968;super(),S(this,'_shapes',new Map()),S(this,_0x197004(0xfd),new Set()),S(this,'_groupIds',new Set());}['addShape'](_0x44521d,_0x5c7d55,_0x548cf6){const _0x341538=_0x220968,_0x5b8144=new g[(_0x341538(0x136))](_0x44521d,_0x5c7d55,_0x548cf6);return this[_0x341538(0xfa)][_0x341538(0xf8)](_0x5c7d55,_0x5b8144),g['isConnectorShape'](_0x44521d)&&this[_0x341538(0xfd)][_0x341538(0x10d)](_0x5c7d55),_0x5b8144;}['getBasicShapeRelation'](_0x34a1af){const _0x3fc021=_0x220968;var _0x588421,_0x552e3c;const _0x3787a5=[];for(const _0xb403f5 of this['_linesIds']){const _0x1e0e35=this[_0x3fc021(0xfa)]['get'](_0xb403f5);if(_0x1e0e35){const _0x2dc9e4=_0x1e0e35[_0x3fc021(0x13e)]();_0x2dc9e4&&(((_0x588421=_0x2dc9e4['from'])==null?void 0x0:_0x588421[_0x3fc021(0x150)])===_0x34a1af&&_0x3787a5['push']({..._0x2dc9e4[_0x3fc021(0x10e)],'lineShapeId':_0xb403f5,'isFrom':!0x0}),((_0x552e3c=_0x2dc9e4['to'])==null?void 0x0:_0x552e3c[_0x3fc021(0x150)])===_0x34a1af&&_0x3787a5[_0x3fc021(0x125)]({..._0x2dc9e4['to'],'lineShapeId':_0xb403f5,'isFrom':!0x1}));}}return _0x3787a5;}[_0x220968(0x100)](_0x145c97){const _0x300739=_0x220968,_0x28b91a=this['_shapes'][_0x300739(0xfb)](_0x145c97);if(_0x28b91a)return _0x28b91a[_0x300739(0x13e)]();}[_0x220968(0x123)](_0x1ca59c){const _0x427182=_0x220968,_0x12c024=this['_shapes'][_0x427182(0xfb)](_0x1ca59c);if(_0x12c024)return _0x12c024[_0x427182(0x123)]();}['hasShape'](_0x3f0fc8){const _0x11d3f8=_0x220968;return this[_0x11d3f8(0xfa)][_0x11d3f8(0x121)](_0x3f0fc8);}[_0x220968(0x137)](_0x148394){const _0x35506e=_0x220968,_0x51a98d=this[_0x35506e(0xfa)]['get'](_0x148394);_0x51a98d&&(g[_0x35506e(0x118)](_0x51a98d['getShapeType']())&&this[_0x35506e(0xfd)][_0x35506e(0x14f)](_0x148394),this[_0x35506e(0xfa)]['delete'](_0x148394));}['toJSON'](){const _0x8cdec9=_0x220968,_0x24b20b=[];return this[_0x8cdec9(0xfa)][_0x8cdec9(0x101)](_0x81b104=>{const _0x539dd3=_0x8cdec9;_0x24b20b[_0x539dd3(0x125)](_0x81b104[_0x539dd3(0x127)]());}),_0x24b20b;}[_0x220968(0x124)](_0x34c42b){const _0x14042a=_0x220968;for(const _0x4b0367 of _0x34c42b){const {id:_0x3ade2b,shapeType:_0x2950c3}=_0x4b0367,_0x52d890=this[_0x14042a(0x114)](_0x2950c3,_0x3ade2b,_0x4b0367[_0x14042a(0x11c)]);_0x52d890&&_0x52d890['isLineShape']()&&this[_0x14042a(0xfd)][_0x14042a(0x10d)](_0x3ade2b);}}[_0x220968(0x106)](){const _0x4814bd=_0x220968;this['_disposed']||(this['_shapes']['forEach'](_0x54c7de=>{const _0x2f6e9a=_0x243d;_0x54c7de[_0x2f6e9a(0x106)]();}),this[_0x4814bd(0xfa)][_0x4814bd(0x147)](),this[_0x4814bd(0xfd)][_0x4814bd(0x147)](),this[_0x4814bd(0x143)]['clear'](),super[_0x4814bd(0x106)]());}}var j=Object[_0x220968(0x117)],J=(_0x5d7467,_0x1fc328,_0x3f1bd8,_0x303263)=>{const _0x1cba7d=_0x220968;for(var _0x58eec9=_0x303263>0x1?void 0x0:_0x303263?j(_0x1fc328,_0x3f1bd8):_0x1fc328,_0x467898=_0x5d7467[_0x1cba7d(0x14a)]-0x1,_0x50454a;_0x467898>=0x0;_0x467898--)(_0x50454a=_0x5d7467[_0x467898])&&(_0x58eec9=_0x50454a(_0x58eec9)||_0x58eec9);return _0x58eec9;},w=(_0x3cb17f,_0x1432d1)=>(_0x3334d5,_0x2ada9e)=>_0x1432d1(_0x3334d5,_0x2ada9e,_0x3cb17f);const H=_0x220968(0x141);exports['SheetsShapeService']=class extends p[_0x220968(0x108)]{constructor(_0x4964dd){const _0x44aa05=_0x220968;super(),S(this,_0x44aa05(0xf2),new Map()),(this[_0x44aa05(0x10b)]=_0x4964dd,this[_0x44aa05(0x10c)]());}[_0x220968(0x130)](_0x12fb9d,_0x1cfed0){const _0x15627d=_0x220968;let _0x5bf6d0=this[_0x15627d(0xf2)][_0x15627d(0xfb)](_0x12fb9d);_0x5bf6d0||(_0x5bf6d0=new Map(),this['_shapeModelManagerMap'][_0x15627d(0xf8)](_0x12fb9d,_0x5bf6d0));let _0x568a0b=_0x5bf6d0[_0x15627d(0xfb)](_0x1cfed0);return _0x568a0b||(_0x568a0b=new m(),_0x5bf6d0['set'](_0x1cfed0,_0x568a0b)),_0x568a0b;}['insertShape'](_0x4f5f5b,_0xa4530c,_0x584fff,_0xbfaa7b,_0x20356a){const _0x3e99c2=_0x220968;this[_0x3e99c2(0x130)](_0x4f5f5b,_0xa4530c)['addShape'](_0x584fff,_0xbfaa7b,_0x20356a);}[_0x220968(0x137)](_0x23ae40,_0x7832dc,_0x279390){const _0x25f4f2=_0x220968;this[_0x25f4f2(0x130)](_0x23ae40,_0x7832dc)[_0x25f4f2(0x137)](_0x279390);}[_0x220968(0x12b)](_0x49e653,_0x2382d8,_0x131b11){const _0x437a1f=_0x220968;return this[_0x437a1f(0x130)](_0x49e653,_0x2382d8)[_0x437a1f(0x123)](_0x131b11);}[_0x220968(0x123)](_0x48571b,_0x3c63ca,_0x9fffdf){const _0x20c8a3=_0x220968;return this[_0x20c8a3(0x130)](_0x48571b,_0x3c63ca)['getShapeType'](_0x9fffdf);}[_0x220968(0x103)](_0x304f13,_0x3968f0,_0x272d13){const _0x53079c=_0x220968;return this[_0x53079c(0x130)](_0x304f13,_0x3968f0)[_0x53079c(0x103)](_0x272d13);}[_0x220968(0x146)](_0x266c15,_0x4e4e48,_0x50a3ea){const _0x284b7b=_0x220968;return this[_0x284b7b(0x130)](_0x266c15,_0x4e4e48)[_0x284b7b(0x123)](_0x50a3ea);}['getShapeDataById'](_0x5902a1,_0x1ab034,_0x1e1504){const _0x7a742d=_0x220968,_0x5399f7=this['_ensureShapeModelManager'](_0x5902a1,_0x1ab034);if(!_0x5399f7[_0x7a742d(0x123)](_0x1e1504))return;const _0x10ccc8=_0x5399f7[_0x7a742d(0xfa)][_0x7a742d(0xfb)](_0x1e1504);if(_0x10ccc8)return _0x10ccc8[_0x7a742d(0x116)]();}[_0x220968(0xfe)](_0x54dc9e,_0x252635,_0x47d1c2){return this['_ensureShapeModelManager'](_0x54dc9e,_0x252635)['_shapes']['get'](_0x47d1c2);}['getBasicShapeRelation'](_0x8b4e0d,_0x168592,_0xdc2af){const _0x5edbad=_0x220968;return this['_ensureShapeModelManager'](_0x8b4e0d,_0x168592)[_0x5edbad(0x119)](_0xdc2af);}['getLineShapeRelation'](_0x67c82,_0x5bd46b,_0x102a5f){const _0x1d75fa=_0x220968,_0x96806=this['_ensureShapeModelManager'](_0x67c82,_0x5bd46b)[_0x1d75fa(0xfa)][_0x1d75fa(0xfb)](_0x102a5f);if(_0x96806)return _0x96806['getShapeRelation']();}[_0x220968(0x148)](){}['_serializeShapeForUnit'](_0x5f06df){const _0xb0ccd=_0x220968,_0x47a9e4={},_0x5d05f1=this['_shapeModelManagerMap'][_0xb0ccd(0xfb)](_0x5f06df);return _0x5d05f1&&_0x5d05f1[_0xb0ccd(0x101)]((_0x108cc0,_0x566504)=>{const _0x8229f0=_0xb0ccd,_0x41384d=_0x108cc0[_0x8229f0(0x127)]();_0x41384d[_0x8229f0(0x14a)]>0x0&&(_0x47a9e4[_0x566504]=_0x41384d);}),JSON['stringify'](_0x47a9e4);}[_0x220968(0x139)](_0x49238a,_0xbdde56){Object['keys'](_0xbdde56)['forEach'](_0x3bb05f=>{const _0x3aa835=_0x243d;this[_0x3aa835(0x130)](_0x49238a,_0x3bb05f)[_0x3aa835(0x124)](_0xbdde56[_0x3bb05f]);});}['toJSON'](){const _0x2b3495=_0x220968,_0x4ce9e0={};return this['_shapeModelManagerMap'][_0x2b3495(0x101)]((_0x5227e3,_0x27b09b)=>{_0x4ce9e0[_0x27b09b]={},_0x5227e3['forEach']((_0x4781d0,_0x24daff)=>{_0x4ce9e0[_0x27b09b][_0x24daff]=_0x4781d0['toJSON']();});}),_0x4ce9e0;}[_0x220968(0x124)](_0x16ca66){const _0x1f658a=_0x220968;Object[_0x1f658a(0xff)](_0x16ca66)['forEach'](_0x39578f=>{const _0xaabc94=_0x1f658a,_0x4d6ce8=_0x16ca66[_0x39578f];Object[_0xaabc94(0xff)](_0x4d6ce8)['forEach'](_0x53a13b=>{const _0x46e07f=_0xaabc94;this[_0x46e07f(0x130)](_0x39578f,_0x53a13b)['fromJSON'](_0x4d6ce8[_0x53a13b]);});});}['_initSnapshot'](){const _0x2484f4=_0x220968;this['_resourcesManagerService'][_0x2484f4(0x140)]({'pluginName':H,'businesses':[p[_0x2484f4(0x13a)]['UNIVER_SHEET']],'toJson':_0x3105b5=>this[_0x2484f4(0x107)](_0x3105b5),'parseJson':_0x4ac885=>JSON[_0x2484f4(0x122)](_0x4ac885),'onLoad':(_0x35a294,_0x5021d2)=>{this['_deserializeShapeForUnit'](_0x35a294,_0x5021d2);},'onUnLoad':_0x1e0717=>{const _0x17d73c=_0x2484f4,_0x5d1c5e=this[_0x17d73c(0xf2)][_0x17d73c(0xfb)](_0x1e0717);_0x5d1c5e&&(_0x5d1c5e[_0x17d73c(0x101)](_0xcd846e=>{const _0x27f398=_0x17d73c;_0xcd846e[_0x27f398(0x106)]();}),this[_0x17d73c(0xf2)][_0x17d73c(0x14f)](_0x1e0717));}});}['dispose'](){const _0x43e4da=_0x220968;this[_0x43e4da(0xf2)][_0x43e4da(0x101)](_0x169692=>{const _0x579ed2=_0x43e4da;_0x169692[_0x579ed2(0x101)](_0x1e5ef9=>{const _0x15f819=_0x579ed2;_0x1e5ef9[_0x15f819(0x106)]();});});}},exports[_0x220968(0x14e)]=J([w(0x0,p[_0x220968(0x13c)])],exports['SheetsShapeService']);const d={'id':'sheet.mutation.update-shape-type','type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x464060,_0xd933b2)=>{const _0x334e38=_0x220968,{unitId:_0x54a9c4,subUnitId:_0x3cd1ac,shapeType:_0x338891,shapeId:_0x4b85c3,shapeData:_0x46be97}=_0xd933b2,_0x3df25e=_0x464060[_0x334e38(0xfb)](exports[_0x334e38(0x14e)])['getShapeModel'](_0x54a9c4,_0x3cd1ac,_0x4b85c3);return _0x3df25e&&(_0x3df25e[_0x334e38(0x148)](_0x338891),_0x46be97&&(_0x3df25e==null||_0x3df25e[_0x334e38(0x11d)](_0x46be97))),!0x0;}},L={'id':'sheet.command.update-shape-type','type':p[_0x220968(0x131)]['COMMAND'],'handler':(_0x638f9e,_0x5769fb)=>{const _0x55fb00=_0x220968;if(!_0x5769fb)return!0x1;const _0xce43ec=_0x638f9e[_0x55fb00(0xfb)](p[_0x55fb00(0x109)]),_0x4c3256=_0x638f9e[_0x55fb00(0xfb)](exports[_0x55fb00(0x14e)]),_0x5bde0b=_0x638f9e['get'](p['IUndoRedoService']),_0x26a943=[],_0xd19028=[],{unitId:_0x2433e1,subUnitId:_0x35f3ab,shapeId:_0x2a216b,shapeType:_0x543082,shapeData:_0x45670e}=_0x5769fb,_0x1d7d44=_0x4c3256[_0x55fb00(0xfe)](_0x2433e1,_0x35f3ab,_0x2a216b);if(_0x1d7d44){const _0x4ec7e6=_0x1d7d44[_0x55fb00(0x123)](),_0x23f128=Object['assign']({},_0x1d7d44[_0x55fb00(0x116)]()),_0x5e2fd6={'unitId':_0x2433e1,'subUnitId':_0x35f3ab,'shapeId':_0x2a216b,'shapeType':_0x543082,'shapeData':_0x45670e},_0x5d02a4={'unitId':_0x2433e1,'subUnitId':_0x35f3ab,'shapeId':_0x2a216b,'shapeType':_0x4ec7e6,'shapeData':_0x23f128};return _0x26a943[_0x55fb00(0x125)]({'id':d['id'],'params':_0x5e2fd6}),_0xd19028['push']({'id':d['id'],'params':_0x5d02a4}),_0x26a943[_0x55fb00(0x11a)](_0x340927=>_0xce43ec[_0x55fb00(0x12d)](_0x340927['id'],_0x340927[_0x55fb00(0x111)]))&&_0x5bde0b['pushUndoRedo']({'unitID':_0x2433e1,'redoMutations':[..._0x26a943],'undoMutations':[..._0xd19028]}),!0x0;}return!0x1;}},v={'id':_0x220968(0x151),'type':p['CommandType'][_0x220968(0xfc)],'handler':(_0x23aa57,_0x515890)=>{const _0x2cc897=_0x220968,{unitId:_0x15af6e,subUnitId:_0x38571f,shapeType:_0x27b9ad,shapeId:_0x581a09,shapeData:_0x41017a}=_0x515890;return _0x23aa57[_0x2cc897(0xfb)](exports[_0x2cc897(0x14e)])[_0x2cc897(0x132)](_0x15af6e,_0x38571f,_0x27b9ad,_0x581a09,_0x41017a),!0x0;}},y={'id':_0x220968(0x13b),'type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x1d0ef1,_0x27ded0)=>{const _0x3b478c=_0x220968,{unitId:_0x51846a,subUnitId:_0x447835,shapeId:_0x411b92}=_0x27ded0;return _0x1d0ef1[_0x3b478c(0xfb)](exports[_0x3b478c(0x14e)])[_0x3b478c(0x137)](_0x51846a,_0x447835,_0x411b92),!0x0;}},T={'id':_0x220968(0x11f),'type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x331ade,_0x521390)=>{const _0x123b9e=_0x220968,{unitId:_0x4cd69f,subUnitId:_0x389aed,shapeType:_0x2d2186,shapeId:_0x192bd2,shapeData:_0x5be0dd}=_0x521390,_0x1d418b=_0x331ade[_0x123b9e(0xfb)](exports[_0x123b9e(0x14e)])[_0x123b9e(0xfe)](_0x4cd69f,_0x389aed,_0x192bd2);return _0x1d418b&&(_0x2d2186!==void 0x0&&_0x1d418b[_0x123b9e(0x148)](_0x2d2186),_0x5be0dd&&(_0x1d418b==null||_0x1d418b[_0x123b9e(0x11d)](_0x5be0dd,!0x0))),!0x0;}},A=_0x220968(0x13f),F=_0x220968(0xf6),I={'name':A,'version':F},B='sheets-shape.config',f={};var G=Object['defineProperty'],x=Object[_0x220968(0x117)],z=(_0x528143,_0x281c44,_0x25c707)=>_0x281c44 in _0x528143?G(_0x528143,_0x281c44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25c707}):_0x528143[_0x281c44]=_0x25c707,q=(_0x4a0a4c,_0x2cedd4,_0x3de807,_0x4572be)=>{const _0x1158c4=_0x220968;for(var _0xed71fe=_0x4572be>0x1?void 0x0:_0x4572be?x(_0x2cedd4,_0x3de807):_0x2cedd4,_0x369ca4=_0x4a0a4c[_0x1158c4(0x14a)]-0x1,_0xf4e008;_0x369ca4>=0x0;_0x369ca4--)(_0xf4e008=_0x4a0a4c[_0x369ca4])&&(_0xed71fe=_0xf4e008(_0xed71fe)||_0xed71fe);return _0xed71fe;},u=(_0x403fb5,_0x4d614f)=>(_0x87d44a,_0x2fdc32)=>_0x4d614f(_0x87d44a,_0x2fdc32,_0x403fb5),c=(_0xa044f7,_0x4bcee1,_0x336f92)=>z(_0xa044f7,typeof _0x4bcee1!=_0x220968(0x110)?_0x4bcee1+'':_0x4bcee1,_0x336f92);function _0x243d(_0x5b4aec,_0x362d49){_0x5b4aec=_0x5b4aec-0xf2;const _0x3f0f64=_0x3f0f();let _0x243d2e=_0x3f0f64[_0x5b4aec];return _0x243d2e;}exports[_0x220968(0x112)]=class extends p[_0x220968(0x12c)]{constructor(_0x3f6dc6=f,_0x3ce594,_0x371a0d,_0x1cba2e){const _0x3db141=_0x220968;super(),this[_0x3db141(0x135)]=_0x3f6dc6,this[_0x3db141(0x14d)]=_0x3ce594,this[_0x3db141(0x126)]=_0x371a0d,this[_0x3db141(0x10f)]=_0x1cba2e;const {..._0x1f2a57}=p['merge']({},f,this[_0x3db141(0x135)]);this[_0x3db141(0x10f)][_0x3db141(0x113)](B,_0x1f2a57),this['_initCommands']();}[_0x220968(0x134)](){const _0x56916b=_0x220968;p[_0x56916b(0x11e)](this[_0x56916b(0x14d)],[]);}[_0x220968(0x145)](){const _0x3de68a=_0x220968,_0x28847a=this[_0x3de68a(0x14d)];[[m],[exports[_0x3de68a(0x14e)]]][_0x3de68a(0x101)](_0x28cc4b=>_0x28847a[_0x3de68a(0x10d)](_0x28cc4b));}[_0x220968(0x115)](){const _0x4f89dd=_0x220968;[v,y,d,T]['forEach'](_0x22cc2a=>this[_0x4f89dd(0x12e)](this['_commandService'][_0x4f89dd(0x149)](_0x22cc2a)));}},c(exports[_0x220968(0x112)],_0x220968(0x142),p[_0x220968(0x13a)]['UNIVER_SHEET']),c(exports[_0x220968(0x112)],_0x220968(0x14b),'SHEET_SHAPE_PLUGIN'),c(exports[_0x220968(0x112)],_0x220968(0x152),I[_0x220968(0x133)]),c(exports[_0x220968(0x112)],_0x220968(0x128),I['version']),exports['UniverSheetsShapePlugin']=q([p['DependentOn'](R[_0x220968(0x105)]),u(0x1,p[_0x220968(0x12a)](p[_0x220968(0x12f)])),u(0x2,p['ICommandService']),u(0x3,p[_0x220968(0x120)])],exports[_0x220968(0x112)]),exports['InsertSheetsShapeMutation']=v,exports[_0x220968(0xf7)]=y,exports[_0x220968(0x129)]=T,exports[_0x220968(0x138)]=L,exports[_0x220968(0x10a)]=d;
|
|
1
|
+
const _0x2d5dc0=_0x1401;(function(_0x2f3d65,_0x510d0c){const _0x31d6fb=_0x1401,_0x406630=_0x2f3d65();while(!![]){try{const _0x18af90=parseInt(_0x31d6fb(0x11e))/0x1*(parseInt(_0x31d6fb(0x138))/0x2)+parseInt(_0x31d6fb(0x10d))/0x3+parseInt(_0x31d6fb(0xf5))/0x4*(parseInt(_0x31d6fb(0x144))/0x5)+-parseInt(_0x31d6fb(0x103))/0x6*(-parseInt(_0x31d6fb(0xf9))/0x7)+-parseInt(_0x31d6fb(0x128))/0x8+parseInt(_0x31d6fb(0xf7))/0x9+parseInt(_0x31d6fb(0x129))/0xa*(-parseInt(_0x31d6fb(0x104))/0xb);if(_0x18af90===_0x510d0c)break;else _0x406630['push'](_0x406630['shift']());}catch(_0x47e2f2){_0x406630['push'](_0x406630['shift']());}}}(_0x4ae4,0x24d0d),Object['defineProperty'](exports,Symbol[_0x2d5dc0(0x140)],{'value':_0x2d5dc0(0x120)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/engine-shape`),n=require(`@univerjs-pro/license`);function _0x1401(_0x1ae15a,_0x2252d9){_0x1ae15a=_0x1ae15a-0xee;const _0x4ae4d=_0x4ae4();let _0x14013f=_0x4ae4d[_0x1ae15a];return _0x14013f;}function r(_0x36e5ae){'@babel/helpers - typeof';const _0x3911fc=_0x2d5dc0;return r=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3911fc(0x11b)?function(_0x3f8008){return typeof _0x3f8008;}:function(_0xca159){const _0x5ac026=_0x3911fc;return _0xca159&&typeof Symbol==_0x5ac026(0x12e)&&_0xca159[_0x5ac026(0x134)]===Symbol&&_0xca159!==Symbol[_0x5ac026(0x125)]?_0x5ac026(0x11b):typeof _0xca159;},r(_0x36e5ae);}function i(_0x4695e8,_0x43f875){const _0x11c1fa=_0x2d5dc0;if(r(_0x4695e8)!=_0x11c1fa(0x14c)||!_0x4695e8)return _0x4695e8;var _0x598d55=_0x4695e8[Symbol[_0x11c1fa(0x14b)]];if(_0x598d55!==void 0x0){var _0x266998=_0x598d55['call'](_0x4695e8,_0x43f875||_0x11c1fa(0x14f));if(r(_0x266998)!='object')return _0x266998;throw TypeError(_0x11c1fa(0x139));}return(_0x43f875==='string'?String:Number)(_0x4695e8);}function a(_0x292a62){const _0x24457a=_0x2d5dc0;var _0x305537=i(_0x292a62,_0x24457a(0x137));return r(_0x305537)==_0x24457a(0x11b)?_0x305537:_0x305537+'';}function o(_0xbe06b1,_0xbd8ad5,_0x1e38db){return(_0xbd8ad5=a(_0xbd8ad5))in _0xbe06b1?Object['defineProperty'](_0xbe06b1,_0xbd8ad5,{'value':_0x1e38db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbe06b1[_0xbd8ad5]=_0x1e38db,_0xbe06b1;}var s=class extends e[_0x2d5dc0(0x13a)]{constructor(){const _0xb36592=_0x2d5dc0;super(),o(this,_0xb36592(0x123),new Map()),o(this,'_linesIds',new Set()),o(this,_0xb36592(0x154),new Set());}[_0x2d5dc0(0xfd)](_0x8ac4c0,_0x497c7e,_0x1e49f5){const _0x44d3ff=_0x2d5dc0;let _0x2d0829=new t[(_0x44d3ff(0x141))](_0x8ac4c0,_0x497c7e,_0x1e49f5);return this['_shapes'][_0x44d3ff(0x11f)](_0x497c7e,_0x2d0829),(0x0,t[_0x44d3ff(0x110)])(_0x8ac4c0)&&this[_0x44d3ff(0xee)]['add'](_0x497c7e),_0x2d0829;}[_0x2d5dc0(0x147)](_0x121563){const _0x24467d=_0x2d5dc0;let _0x42dc74=[];for(let _0xa5cd42 of this[_0x24467d(0xee)]){let _0x717c11=this[_0x24467d(0x123)][_0x24467d(0x10f)](_0xa5cd42);if(_0x717c11){let _0x1a0295=_0x717c11['getShapeRelation']();if(_0x1a0295){var _0x1fc372,_0x5e67bf;((_0x1fc372=_0x1a0295[_0x24467d(0x102)])==null?void 0x0:_0x1fc372[_0x24467d(0x13d)])===_0x121563&&_0x42dc74['push']({..._0x1a0295['from'],'lineShapeId':_0xa5cd42,'isFrom':!0x0}),((_0x5e67bf=_0x1a0295['to'])==null?void 0x0:_0x5e67bf[_0x24467d(0x13d)])===_0x121563&&_0x42dc74['push']({..._0x1a0295['to'],'lineShapeId':_0xa5cd42,'isFrom':!0x1});}}}return _0x42dc74;}[_0x2d5dc0(0x14d)](_0x1e2471){const _0x56cb87=_0x2d5dc0;let _0x445c80=this[_0x56cb87(0x123)][_0x56cb87(0x10f)](_0x1e2471);if(_0x445c80)return _0x445c80[_0x56cb87(0x13e)]();}[_0x2d5dc0(0xfb)](_0xed6ad0){const _0x9fa87d=_0x2d5dc0;let _0xf758c1=this[_0x9fa87d(0x123)][_0x9fa87d(0x10f)](_0xed6ad0);if(_0xf758c1)return _0xf758c1[_0x9fa87d(0xfb)]();}[_0x2d5dc0(0xff)](_0x347401){const _0x5ec620=_0x2d5dc0;return this[_0x5ec620(0x123)][_0x5ec620(0x111)](_0x347401);}[_0x2d5dc0(0x13f)](_0x450fc2){const _0x3cfbdd=_0x2d5dc0;let _0x3f1134=this[_0x3cfbdd(0x123)]['get'](_0x450fc2);_0x3f1134&&((0x0,t['isConnectorShape'])(_0x3f1134[_0x3cfbdd(0xfb)]())&&this['_linesIds']['delete'](_0x450fc2),this['_shapes']['delete'](_0x450fc2));}[_0x2d5dc0(0x152)](){const _0x36415=_0x2d5dc0;let _0x4a2a7a=[];return this[_0x36415(0x123)][_0x36415(0x145)](_0x6efe29=>{const _0x3bee62=_0x36415;_0x4a2a7a[_0x3bee62(0x11d)](_0x6efe29['toJSON']());}),_0x4a2a7a;}[_0x2d5dc0(0xfe)](_0x466dc1){const _0x710662=_0x2d5dc0;for(let _0x5c1fd9 of _0x466dc1){let {id:_0x4d3b15,shapeType:_0xa0e6a3}=_0x5c1fd9,_0x212aba=this[_0x710662(0xfd)](_0xa0e6a3,_0x4d3b15,_0x5c1fd9['shapeData']);_0x212aba&&_0x212aba['isLineShape']()&&this['_linesIds']['add'](_0x4d3b15);}}['dispose'](){const _0x4ff4e4=_0x2d5dc0;this[_0x4ff4e4(0x118)]||(this[_0x4ff4e4(0x123)][_0x4ff4e4(0x145)](_0x4e0ab2=>{const _0x5dd9cb=_0x4ff4e4;_0x4e0ab2[_0x5dd9cb(0x124)]();}),this[_0x4ff4e4(0x123)]['clear'](),this[_0x4ff4e4(0xee)][_0x4ff4e4(0x109)](),this[_0x4ff4e4(0x154)][_0x4ff4e4(0x109)](),super[_0x4ff4e4(0x124)]());}};function c(_0x2bb271,_0x476115){return function(_0x1fee5f,_0x43aee5){_0x476115(_0x1fee5f,_0x43aee5,_0x2bb271);};}function l(_0x4c89a0,_0x42a131,_0x11dd48,_0x3c3fcc){const _0x54d34f=_0x2d5dc0;var _0x54abe2=arguments['length'],_0x5a5532=_0x54abe2<0x3?_0x42a131:_0x3c3fcc===null?_0x3c3fcc=Object[_0x54d34f(0x101)](_0x42a131,_0x11dd48):_0x3c3fcc,_0x4e12c7;if(typeof Reflect==_0x54d34f(0x14c)&&typeof Reflect[_0x54d34f(0x106)]==_0x54d34f(0x12e))_0x5a5532=Reflect[_0x54d34f(0x106)](_0x4c89a0,_0x42a131,_0x11dd48,_0x3c3fcc);else{for(var _0x31b440=_0x4c89a0['length']-0x1;_0x31b440>=0x0;_0x31b440--)(_0x4e12c7=_0x4c89a0[_0x31b440])&&(_0x5a5532=(_0x54abe2<0x3?_0x4e12c7(_0x5a5532):_0x54abe2>0x3?_0x4e12c7(_0x42a131,_0x11dd48,_0x5a5532):_0x4e12c7(_0x42a131,_0x11dd48))||_0x5a5532);}return _0x54abe2>0x3&&_0x5a5532&&Object['defineProperty'](_0x42a131,_0x11dd48,_0x5a5532),_0x5a5532;}let u=class extends e['Disposable']{constructor(_0x36c610){const _0x31efe4=_0x2d5dc0;super(),this['_resourcesManagerService']=_0x36c610,o(this,_0x31efe4(0x116),new Map()),this[_0x31efe4(0x12a)]();}['_ensureShapeModelManager'](_0x54533d,_0x22fa69){const _0x4b24a0=_0x2d5dc0;let _0x33f710=this[_0x4b24a0(0x116)][_0x4b24a0(0x10f)](_0x54533d);_0x33f710||(_0x33f710=new Map(),this[_0x4b24a0(0x116)][_0x4b24a0(0x11f)](_0x54533d,_0x33f710));let _0x11e8ee=_0x33f710[_0x4b24a0(0x10f)](_0x22fa69);return _0x11e8ee||(_0x11e8ee=new s(),_0x33f710[_0x4b24a0(0x11f)](_0x22fa69,_0x11e8ee)),_0x11e8ee;}[_0x2d5dc0(0x113)](_0x49fcf0,_0x59b094,_0x27658b,_0x4cfdd4,_0x3bcef0){const _0x54b6e6=_0x2d5dc0;this[_0x54b6e6(0x119)](_0x49fcf0,_0x59b094)[_0x54b6e6(0xfd)](_0x27658b,_0x4cfdd4,_0x3bcef0);}[_0x2d5dc0(0x13f)](_0x2a3bd4,_0x12f52b,_0x1eac28){const _0x575717=_0x2d5dc0;this['_ensureShapeModelManager'](_0x2a3bd4,_0x12f52b)[_0x575717(0x13f)](_0x1eac28);}[_0x2d5dc0(0x126)](_0x12bf2d,_0x246174,_0x1bbd41){const _0x1aeb0b=_0x2d5dc0;return this[_0x1aeb0b(0x119)](_0x12bf2d,_0x246174)[_0x1aeb0b(0xfb)](_0x1bbd41);}[_0x2d5dc0(0xfb)](_0x1ecbaa,_0x4a1013,_0x497ac1){const _0x2486f2=_0x2d5dc0;return this[_0x2486f2(0x119)](_0x1ecbaa,_0x4a1013)['getShapeType'](_0x497ac1);}[_0x2d5dc0(0xff)](_0x3de9de,_0x20565d,_0xee58c0){const _0x29df68=_0x2d5dc0;return this[_0x29df68(0x119)](_0x3de9de,_0x20565d)['hasShape'](_0xee58c0);}[_0x2d5dc0(0x13b)](_0x27dcba,_0x4893c9,_0x1fdebe){const _0x63a085=_0x2d5dc0;return this['_ensureShapeModelManager'](_0x27dcba,_0x4893c9)[_0x63a085(0xfb)](_0x1fdebe);}[_0x2d5dc0(0x155)](_0x36ac73,_0x1d1060,_0x475a5f){const _0x8a634a=_0x2d5dc0;let _0x1d1eb2=this['_ensureShapeModelManager'](_0x36ac73,_0x1d1060);if(!_0x1d1eb2[_0x8a634a(0xfb)](_0x475a5f))return;let _0x6caa26=_0x1d1eb2['_shapes'][_0x8a634a(0x10f)](_0x475a5f);if(_0x6caa26)return _0x6caa26[_0x8a634a(0x132)]();}[_0x2d5dc0(0x143)](_0x20fc28,_0x2ea7c1,_0xe6d8a6){const _0x5702a6=_0x2d5dc0;return this['_ensureShapeModelManager'](_0x20fc28,_0x2ea7c1)[_0x5702a6(0x123)][_0x5702a6(0x10f)](_0xe6d8a6);}[_0x2d5dc0(0x147)](_0x4e4724,_0x261f8e,_0x238f59){const _0x27d23d=_0x2d5dc0;return this[_0x27d23d(0x119)](_0x4e4724,_0x261f8e)[_0x27d23d(0x147)](_0x238f59);}['getLineShapeRelation'](_0x17d061,_0x430a74,_0x7404cc){const _0x154888=_0x2d5dc0;let _0x3e1a20=this[_0x154888(0x119)](_0x17d061,_0x430a74)[_0x154888(0x123)][_0x154888(0x10f)](_0x7404cc);if(_0x3e1a20)return _0x3e1a20[_0x154888(0x13e)]();}[_0x2d5dc0(0xf8)](){}['_serializeShapeForUnit'](_0x594604){const _0x38c636=_0x2d5dc0;let _0x1a3105={},_0x5eddd5=this['_shapeModelManagerMap'][_0x38c636(0x10f)](_0x594604);return _0x5eddd5&&_0x5eddd5[_0x38c636(0x145)]((_0x4118ef,_0x45e9a8)=>{const _0x7ad048=_0x38c636;let _0x1f4e37=_0x4118ef[_0x7ad048(0x152)]();_0x1f4e37[_0x7ad048(0x14e)]>0x0&&(_0x1a3105[_0x45e9a8]=_0x1f4e37);}),JSON[_0x38c636(0x14a)](_0x1a3105);}['_deserializeShapeForUnit'](_0x5b6490,_0x36a33b){const _0x293736=_0x2d5dc0;Object['keys'](_0x36a33b)[_0x293736(0x145)](_0x5f0fcf=>{const _0x14d3a9=_0x293736;this[_0x14d3a9(0x119)](_0x5b6490,_0x5f0fcf)[_0x14d3a9(0xfe)](_0x36a33b[_0x5f0fcf]);});}[_0x2d5dc0(0x152)](){const _0x2db6e2=_0x2d5dc0;let _0x266a5c={};return this[_0x2db6e2(0x116)][_0x2db6e2(0x145)]((_0x3dd964,_0xa1b82)=>{const _0x37c46d=_0x2db6e2;_0x266a5c[_0xa1b82]={},_0x3dd964[_0x37c46d(0x145)]((_0x35edf0,_0x291e47)=>{const _0x136559=_0x37c46d;_0x266a5c[_0xa1b82][_0x291e47]=_0x35edf0[_0x136559(0x152)]();});}),_0x266a5c;}[_0x2d5dc0(0xfe)](_0x1dae9a){const _0x506460=_0x2d5dc0;Object[_0x506460(0x131)](_0x1dae9a)[_0x506460(0x145)](_0x468574=>{const _0x4cbb0b=_0x506460;let _0xd0ba28=_0x1dae9a[_0x468574];Object[_0x4cbb0b(0x131)](_0xd0ba28)[_0x4cbb0b(0x145)](_0x2a1208=>{const _0x7ba996=_0x4cbb0b;this['_ensureShapeModelManager'](_0x468574,_0x2a1208)[_0x7ba996(0xfe)](_0xd0ba28[_0x2a1208]);});});}[_0x2d5dc0(0x12a)](){const _0x17cdaa=_0x2d5dc0;this[_0x17cdaa(0x142)]['registerPluginResource']({'pluginName':_0x17cdaa(0x12d),'businesses':[e[_0x17cdaa(0x157)]['UNIVER_SHEET']],'toJson':_0x5c6292=>this[_0x17cdaa(0x12c)](_0x5c6292),'parseJson':_0x49b7b3=>JSON[_0x17cdaa(0xf1)](_0x49b7b3),'onLoad':(_0x3ac14c,_0x5b2953)=>{this['_deserializeShapeForUnit'](_0x3ac14c,_0x5b2953);},'onUnLoad':_0x1230eb=>{const _0x59b1eb=_0x17cdaa;let _0x5089a0=this[_0x59b1eb(0x116)]['get'](_0x1230eb);_0x5089a0&&(_0x5089a0[_0x59b1eb(0x145)](_0x22073f=>{const _0x182d61=_0x59b1eb;_0x22073f[_0x182d61(0x124)]();}),this['_shapeModelManagerMap']['delete'](_0x1230eb));}});}['dispose'](){const _0x92f51d=_0x2d5dc0;this[_0x92f51d(0x116)][_0x92f51d(0x145)](_0x53eddc=>{const _0x269577=_0x92f51d;_0x53eddc[_0x269577(0x145)](_0x3ddde5=>{const _0x2d9e39=_0x269577;_0x3ddde5[_0x2d9e39(0x124)]();});});}};u=l([c(0x0,e[_0x2d5dc0(0xfc)])],u);const d={'id':_0x2d5dc0(0x149),'type':e[_0x2d5dc0(0x107)]['MUTATION'],'handler':(_0x38c658,_0x582b28)=>{const _0xa4831d=_0x2d5dc0;let {unitId:_0x4dc6fc,subUnitId:_0xa00994,shapeType:_0x5e5229,shapeId:_0x3e3490,shapeData:_0x4b2e8f}=_0x582b28,_0x73c515=_0x38c658['get'](u)['getShapeModel'](_0x4dc6fc,_0xa00994,_0x3e3490);return _0x73c515&&(_0x73c515[_0xa4831d(0xf8)](_0x5e5229),_0x4b2e8f&&(_0x73c515==null||_0x73c515[_0xa4831d(0x146)](_0x4b2e8f))),!0x0;}},f={'id':_0x2d5dc0(0x13c),'type':e[_0x2d5dc0(0x107)][_0x2d5dc0(0x10e)],'handler':(_0x4be6e0,_0xdbf0dc)=>{const _0x5b2673=_0x2d5dc0;if(!_0xdbf0dc)return!0x1;let _0x77627f=_0x4be6e0['get'](e[_0x5b2673(0x133)]),_0x483149=_0x4be6e0[_0x5b2673(0x10f)](u),_0xb0018c=_0x4be6e0[_0x5b2673(0x10f)](e[_0x5b2673(0x112)]),_0x45de52=[],_0x1b61c3=[],{unitId:_0x38f37c,subUnitId:_0x14df7b,shapeId:_0x30be73,shapeType:_0x522cb6,shapeData:_0xb1a1c4}=_0xdbf0dc,_0xfcb0b1=_0x483149[_0x5b2673(0x143)](_0x38f37c,_0x14df7b,_0x30be73);if(_0xfcb0b1){let _0x1ef018=_0xfcb0b1[_0x5b2673(0xfb)](),_0x145fa9=Object['assign']({},_0xfcb0b1[_0x5b2673(0x132)]()),_0x455ac9={'unitId':_0x38f37c,'subUnitId':_0x14df7b,'shapeId':_0x30be73,'shapeType':_0x522cb6,'shapeData':_0xb1a1c4},_0x51a888={'unitId':_0x38f37c,'subUnitId':_0x14df7b,'shapeId':_0x30be73,'shapeType':_0x1ef018,'shapeData':_0x145fa9};return _0x45de52['push']({'id':d['id'],'params':_0x455ac9}),_0x1b61c3[_0x5b2673(0x11d)]({'id':d['id'],'params':_0x51a888}),_0x45de52['every'](_0x20720d=>_0x77627f[_0x5b2673(0x10c)](_0x20720d['id'],_0x20720d[_0x5b2673(0xf3)]))&&_0xb0018c['pushUndoRedo']({'unitID':_0x38f37c,'redoMutations':[..._0x45de52],'undoMutations':[..._0x1b61c3]}),!0x0;}return!0x1;}},p={'id':'sheet.mutation.insert-shape','type':e[_0x2d5dc0(0x107)][_0x2d5dc0(0xf4)],'handler':(_0x24f3de,_0x336343)=>{const _0x4e9b58=_0x2d5dc0;let {unitId:_0x2ce6e8,subUnitId:_0xf4a7db,shapeType:_0xf9bdca,shapeId:_0x3eb538,shapeData:_0x4f0d30}=_0x336343;return _0x24f3de[_0x4e9b58(0x10f)](u)[_0x4e9b58(0x113)](_0x2ce6e8,_0xf4a7db,_0xf9bdca,_0x3eb538,_0x4f0d30),!0x0;}},m={'id':_0x2d5dc0(0xf2),'type':e[_0x2d5dc0(0x107)][_0x2d5dc0(0xf4)],'handler':(_0x1bb049,_0x4860e3)=>{const _0xe14ef4=_0x2d5dc0;let {unitId:_0x44a690,subUnitId:_0x43bad7,shapeId:_0x3e4d2c}=_0x4860e3;return _0x1bb049[_0xe14ef4(0x10f)](u)[_0xe14ef4(0x13f)](_0x44a690,_0x43bad7,_0x3e4d2c),!0x0;}},h={'id':'sheet.mutation.update-shape-data','type':e['CommandType']['MUTATION'],'handler':(_0x464dbd,_0x14cc54)=>{const _0x2da6ab=_0x2d5dc0;let {unitId:_0x1fe660,subUnitId:_0x2a6f35,shapeType:_0x1fdc51,shapeId:_0x1cd0b9,shapeData:_0x1a43d3}=_0x14cc54,_0x4c0eee=_0x464dbd[_0x2da6ab(0x10f)](u)[_0x2da6ab(0x143)](_0x1fe660,_0x2a6f35,_0x1cd0b9);return _0x4c0eee&&(_0x1fdc51!==void 0x0&&_0x4c0eee[_0x2da6ab(0xf8)](_0x1fdc51),_0x1a43d3&&(_0x4c0eee==null||_0x4c0eee[_0x2da6ab(0x146)](_0x1a43d3,!0x0))),!0x0;}};var g=_0x2d5dc0(0x153),_=_0x2d5dc0(0x135);function _0x4ae4(){const _0x54771e=['862284lpRZPl','COMMAND','get','isConnectorShape','has','IUndoRedoService','insertShape','_configService','UpdateSheetsShapeTypeMutation','_shapeModelManagerMap','UpdateSheetsShapeDataMutation','_disposed','_ensureShapeModelManager','Plugin','symbol','_commandService','push','1OwspKR','set','Module','onRendered','_initCommands','_shapes','dispose','prototype','getBasicShapeType','IConfigService','218320PeQkSo','10570cgkMsJ','_initSnapshot','disposeWithMe','_serializeShapeForUnit','SHEET_SHAPE_PLUGIN','function','type','RemoveSheetsShapeMutation','keys','getShapeData','ICommandService','constructor','0.18.0-insiders.20260328-0842384','registerCommand','string','231310aYZvly','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Disposable','getShapeTypeById','sheet.command.update-shape-type','shapeId','getShapeRelation','removeShape','toStringTag','ShapeModel','_resourcesManagerService','getShapeModel','25XkQKKO','forEach','setShapeData','getBasicShapeRelation','add','sheet.mutation.update-shape-type','stringify','toPrimitive','object','getLineShapeRelation','length','default','touchDependencies','_injector','toJSON','@univerjs-pro/sheets-shape','_groupIds','getShapeDataById','defineProperty','UniverInstanceType','_linesIds','sheets-shape.config','merge','parse','sheet.mutation.remove-shape','params','MUTATION','197324NQtabH','_config','1223856HXMBKj','setShapeType','196mNosab','UpdateSheetsShapeTypeCommand','getShapeType','IResourceManagerService','addShape','fromJSON','hasShape','UniverSheetsShapePlugin','getOwnPropertyDescriptor','from','2748nFDOkz','6457ssHBic','UNIVER_SHEET','decorate','CommandType','Inject','clear','Injector','DependentOn','syncExecuteCommand'];_0x4ae4=function(){return _0x54771e;};return _0x4ae4();}const v=_0x2d5dc0(0xef);Symbol(v);const y={};let b=class extends e[_0x2d5dc0(0x11a)]{constructor(_0x4979ce=y,_0x3f519c,_0x43f3bf,_0x1b82b9){const _0x40cfcb=_0x2d5dc0;super(),this[_0x40cfcb(0xf6)]=_0x4979ce,this[_0x40cfcb(0x151)]=_0x3f519c,this['_commandService']=_0x43f3bf,this[_0x40cfcb(0x114)]=_0x1b82b9;let {..._0x29ff54}=(0x0,e[_0x40cfcb(0xf0)])({},y,this[_0x40cfcb(0xf6)]);this[_0x40cfcb(0x114)]['setConfig'](v,_0x29ff54),this[_0x40cfcb(0x122)]();}[_0x2d5dc0(0x121)](){const _0x1a6e6e=_0x2d5dc0;(0x0,e[_0x1a6e6e(0x150)])(this[_0x1a6e6e(0x151)],[]);}['onStarting'](){const _0x30da64=_0x2d5dc0;let _0xe1fa8=this[_0x30da64(0x151)];[[s],[u]][_0x30da64(0x145)](_0x432fbd=>_0xe1fa8[_0x30da64(0x148)](_0x432fbd));}[_0x2d5dc0(0x122)](){const _0x11229d=_0x2d5dc0;[p,m,d,h]['forEach'](_0x4aab2a=>this[_0x11229d(0x12b)](this[_0x11229d(0x11c)][_0x11229d(0x136)](_0x4aab2a)));}};o(b,_0x2d5dc0(0x12f),e[_0x2d5dc0(0x157)][_0x2d5dc0(0x105)]),o(b,'pluginName','SHEET_SHAPE_PLUGIN'),o(b,'packageName',g),o(b,'version',_),b=l([(0x0,e[_0x2d5dc0(0x10b)])(n['UniverLicensePlugin']),c(0x1,(0x0,e[_0x2d5dc0(0x108)])(e[_0x2d5dc0(0x10a)])),c(0x2,e[_0x2d5dc0(0x133)]),c(0x3,e[_0x2d5dc0(0x127)])],b),exports['InsertSheetsShapeMutation']=p,exports[_0x2d5dc0(0x130)]=m,Object[_0x2d5dc0(0x156)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return u;}}),Object[_0x2d5dc0(0x156)](exports,_0x2d5dc0(0x100),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x2d5dc0(0x117)]=h,exports[_0x2d5dc0(0xfa)]=f,exports[_0x2d5dc0(0x115)]=d;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x166d1f=_0x5854;function _0x28e8(){const _0x851f03=['keys','0.17.0','_serializeShapeForUnit','448634FrvuGl','setShapeData','10nymXnM','_commandService','getShapeData','_shapes','getShapeType','packageName','pluginName','assign','SHEET_SHAPE_PLUGIN','846964tDWyTM','type','1938180fOlHjB','defineProperty','onStarting','syncExecuteCommand','sheet.command.update-shape-type','dispose','setConfig','addShape','has','length','sheet.mutation.update-shape-data','_initCommands','getShapeModel','forEach','set','delete','174974SBgjVt','toJSON','_linesIds','COMMAND','_initSnapshot','_injector','getShapeDataById','hasShape','setShapeType','every','getBasicShapeType','56fgPksU','@univerjs-pro/sheets-shape','get','getBasicShapeRelation','clear','registerCommand','push','12728592ZUvugl','registerPluginResource','getShapeRelation','version','1321650YRJKYj','_groupIds','_shapeModelManagerMap','_configService','_config','_ensureShapeModelManager','from','145558CByfrB','stringify','fromJSON','parse','_resourcesManagerService','MUTATION','_deserializeShapeForUnit','UNIVER_SHEET','sheet.mutation.update-shape-type','pushUndoRedo','getOwnPropertyDescriptor','insertShape','add','_disposed'];_0x28e8=function(){return _0x851f03;};return _0x28e8();}(function(_0x3df8d1,_0x4757fe){const _0x3e9968=_0x5854,_0x51b447=_0x3df8d1();while(!![]){try{const _0x317f33=parseInt(_0x3e9968(0x1b9))/0x1+-parseInt(_0x3e9968(0x19c))/0x2+-parseInt(_0x3e9968(0x1cf))/0x3+parseInt(_0x3e9968(0x1a7))/0x4*(-parseInt(_0x3e9968(0x19e))/0x5)+-parseInt(_0x3e9968(0x1a9))/0x6+-parseInt(_0x3e9968(0x1d6))/0x7*(-parseInt(_0x3e9968(0x1c4))/0x8)+parseInt(_0x3e9968(0x1cb))/0x9;if(_0x317f33===_0x4757fe)break;else _0x51b447['push'](_0x51b447['shift']());}catch(_0x42f99d){_0x51b447['push'](_0x51b447['shift']());}}}(_0x28e8,0x4ef71));var C=Object[_0x166d1f(0x1aa)],j=(_0x2dcce8,_0x1820ec,_0x55445f)=>_0x1820ec in _0x2dcce8?C(_0x2dcce8,_0x1820ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55445f}):_0x2dcce8[_0x1820ec]=_0x55445f,c=(_0x4c0707,_0x2afaba,_0x377de4)=>j(_0x4c0707,typeof _0x2afaba!='symbol'?_0x2afaba+'':_0x2afaba,_0x377de4);import{Disposable as _0x3b9272,UniverInstanceType as _0xa31f1a,IResourceManagerService as _0x266c4d,CommandType as _0x57565f,ICommandService as _0x165bcf,IUndoRedoService as _0x41c357,DependentOn as _0x13c40b,Inject as _0x878c89,Injector as _0x25ab9b,Plugin as _0x3be3a3,merge as _0x4bc9ae,touchDependencies as _0x5e86ea,IConfigService as _0x340db0}from'@univerjs/core';import{ShapeModel as _0x14170d,isConnectorShape as _0x413840}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f3d2a}from'@univerjs-pro/license';function _0x5854(_0x5a9a1f,_0x6e1b19){_0x5a9a1f=_0x5a9a1f-0x18c;const _0x28e8af=_0x28e8();let _0x58544e=_0x28e8af[_0x5a9a1f];return _0x58544e;}class E extends _0x3b9272{constructor(){const _0x4ba07b=_0x166d1f;super(),c(this,_0x4ba07b(0x1a1),new Map()),c(this,'_linesIds',new Set()),c(this,_0x4ba07b(0x1d0),new Set());}[_0x166d1f(0x1b0)](_0x28de22,_0x4ebf75,_0x58b775){const _0x2d5b64=_0x166d1f,_0x55fb78=new _0x14170d(_0x28de22,_0x4ebf75,_0x58b775);return this['_shapes'][_0x2d5b64(0x1b7)](_0x4ebf75,_0x55fb78),_0x413840(_0x28de22)&&this[_0x2d5b64(0x1bb)]['add'](_0x4ebf75),_0x55fb78;}[_0x166d1f(0x1c7)](_0x378b83){const _0x4e1ca5=_0x166d1f;var _0x3428e3,_0x3a8a3b;const _0x22662c=[];for(const _0x374203 of this[_0x4e1ca5(0x1bb)]){const _0x56c7ea=this[_0x4e1ca5(0x1a1)]['get'](_0x374203);if(_0x56c7ea){const _0xbaec4f=_0x56c7ea[_0x4e1ca5(0x1cd)]();_0xbaec4f&&(((_0x3428e3=_0xbaec4f[_0x4e1ca5(0x1d5)])==null?void 0x0:_0x3428e3['shapeId'])===_0x378b83&&_0x22662c[_0x4e1ca5(0x1ca)]({..._0xbaec4f[_0x4e1ca5(0x1d5)],'lineShapeId':_0x374203,'isFrom':!0x0}),((_0x3a8a3b=_0xbaec4f['to'])==null?void 0x0:_0x3a8a3b['shapeId'])===_0x378b83&&_0x22662c['push']({..._0xbaec4f['to'],'lineShapeId':_0x374203,'isFrom':!0x1}));}}return _0x22662c;}['getLineShapeRelation'](_0x466493){const _0x1c4b53=_0x166d1f,_0x50d019=this['_shapes'][_0x1c4b53(0x1c6)](_0x466493);if(_0x50d019)return _0x50d019[_0x1c4b53(0x1cd)]();}[_0x166d1f(0x1a2)](_0x20ca08){const _0x3f8c35=_0x166d1f,_0x32b12f=this['_shapes'][_0x3f8c35(0x1c6)](_0x20ca08);if(_0x32b12f)return _0x32b12f['getShapeType']();}[_0x166d1f(0x1c0)](_0x1d270c){const _0x45a30b=_0x166d1f;return this['_shapes'][_0x45a30b(0x1b1)](_0x1d270c);}['removeShape'](_0x1aaa79){const _0x3f7966=_0x166d1f,_0x8657ce=this[_0x3f7966(0x1a1)][_0x3f7966(0x1c6)](_0x1aaa79);_0x8657ce&&(_0x413840(_0x8657ce[_0x3f7966(0x1a2)]())&&this[_0x3f7966(0x1bb)][_0x3f7966(0x1b8)](_0x1aaa79),this[_0x3f7966(0x1a1)][_0x3f7966(0x1b8)](_0x1aaa79));}[_0x166d1f(0x1ba)](){const _0x55fab6=[];return this['_shapes']['forEach'](_0x280290=>{const _0x473e58=_0x5854;_0x55fab6['push'](_0x280290[_0x473e58(0x1ba)]());}),_0x55fab6;}['fromJSON'](_0x4c8930){const _0x3949a6=_0x166d1f;for(const _0x2c2718 of _0x4c8930){const {id:_0x5937fb,shapeType:_0x27b2e4}=_0x2c2718,_0xe32c7e=this['addShape'](_0x27b2e4,_0x5937fb,_0x2c2718['shapeData']);_0xe32c7e&&_0xe32c7e['isLineShape']()&&this[_0x3949a6(0x1bb)]['add'](_0x5937fb);}}[_0x166d1f(0x1ae)](){const _0x2cfba9=_0x166d1f;this[_0x2cfba9(0x198)]||(this[_0x2cfba9(0x1a1)]['forEach'](_0x20b58f=>{const _0x4a77b8=_0x2cfba9;_0x20b58f[_0x4a77b8(0x1ae)]();}),this[_0x2cfba9(0x1a1)]['clear'](),this['_linesIds'][_0x2cfba9(0x1c8)](),this[_0x2cfba9(0x1d0)][_0x2cfba9(0x1c8)](),super[_0x2cfba9(0x1ae)]());}}var V=Object[_0x166d1f(0x195)],K=(_0x4fe105,_0x4a1b94,_0x16578b,_0x318468)=>{const _0x59898f=_0x166d1f;for(var _0x386371=_0x318468>0x1?void 0x0:_0x318468?V(_0x4a1b94,_0x16578b):_0x4a1b94,_0x57276d=_0x4fe105[_0x59898f(0x1b2)]-0x1,_0x58bf75;_0x57276d>=0x0;_0x57276d--)(_0x58bf75=_0x4fe105[_0x57276d])&&(_0x386371=_0x58bf75(_0x386371)||_0x386371);return _0x386371;},W=(_0xbc996e,_0x4c0e48)=>(_0x42a778,_0x1652ef)=>_0x4c0e48(_0x42a778,_0x1652ef,_0xbc996e);const Y=_0x166d1f(0x1a6);let i=class extends _0x3b9272{constructor(_0x4be3e3){const _0x49e741=_0x166d1f;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x49e741(0x18f)]=_0x4be3e3,this['_initSnapshot']());}[_0x166d1f(0x1d4)](_0x3a1f05,_0x5e27c2){const _0x341f54=_0x166d1f;let _0x4bca6d=this[_0x341f54(0x1d1)][_0x341f54(0x1c6)](_0x3a1f05);_0x4bca6d||(_0x4bca6d=new Map(),this['_shapeModelManagerMap'][_0x341f54(0x1b7)](_0x3a1f05,_0x4bca6d));let _0x4f5c90=_0x4bca6d[_0x341f54(0x1c6)](_0x5e27c2);return _0x4f5c90||(_0x4f5c90=new E(),_0x4bca6d[_0x341f54(0x1b7)](_0x5e27c2,_0x4f5c90)),_0x4f5c90;}[_0x166d1f(0x196)](_0x1f1e72,_0x23fa18,_0x295f1f,_0x4b0dc6,_0x3cd301){const _0x191789=_0x166d1f;this['_ensureShapeModelManager'](_0x1f1e72,_0x23fa18)[_0x191789(0x1b0)](_0x295f1f,_0x4b0dc6,_0x3cd301);}['removeShape'](_0x4f0461,_0x3d9bdc,_0x41abeb){const _0x3416a9=_0x166d1f;this[_0x3416a9(0x1d4)](_0x4f0461,_0x3d9bdc)['removeShape'](_0x41abeb);}[_0x166d1f(0x1c3)](_0x507ebd,_0x1a20f0,_0xd666dc){const _0x488ea2=_0x166d1f;return this[_0x488ea2(0x1d4)](_0x507ebd,_0x1a20f0)[_0x488ea2(0x1a2)](_0xd666dc);}[_0x166d1f(0x1a2)](_0x319bcc,_0x85ecb4,_0x2fee70){const _0x359d4d=_0x166d1f;return this[_0x359d4d(0x1d4)](_0x319bcc,_0x85ecb4)[_0x359d4d(0x1a2)](_0x2fee70);}['hasShape'](_0x57d67a,_0x342643,_0xac9f54){const _0x3d2e45=_0x166d1f;return this[_0x3d2e45(0x1d4)](_0x57d67a,_0x342643)[_0x3d2e45(0x1c0)](_0xac9f54);}['getShapeTypeById'](_0x35e53d,_0x564684,_0x1467cf){const _0x4383b8=_0x166d1f;return this[_0x4383b8(0x1d4)](_0x35e53d,_0x564684)[_0x4383b8(0x1a2)](_0x1467cf);}[_0x166d1f(0x1bf)](_0x491f6b,_0x426f9f,_0x250bef){const _0x176450=_0x166d1f,_0x6cd587=this['_ensureShapeModelManager'](_0x491f6b,_0x426f9f);if(!_0x6cd587[_0x176450(0x1a2)](_0x250bef))return;const _0x153f3f=_0x6cd587[_0x176450(0x1a1)][_0x176450(0x1c6)](_0x250bef);if(_0x153f3f)return _0x153f3f[_0x176450(0x1a0)]();}[_0x166d1f(0x1b5)](_0x3ca1d9,_0x1a1e69,_0xf83b26){const _0x9dd8ff=_0x166d1f;return this[_0x9dd8ff(0x1d4)](_0x3ca1d9,_0x1a1e69)[_0x9dd8ff(0x1a1)][_0x9dd8ff(0x1c6)](_0xf83b26);}['getBasicShapeRelation'](_0xfca483,_0x307968,_0x20beac){return this['_ensureShapeModelManager'](_0xfca483,_0x307968)['getBasicShapeRelation'](_0x20beac);}['getLineShapeRelation'](_0x13eba9,_0x3e6a20,_0x228104){const _0x23cc57=_0x166d1f,_0x1be474=this[_0x23cc57(0x1d4)](_0x13eba9,_0x3e6a20)[_0x23cc57(0x1a1)][_0x23cc57(0x1c6)](_0x228104);if(_0x1be474)return _0x1be474[_0x23cc57(0x1cd)]();}['setShapeType'](){}[_0x166d1f(0x19b)](_0xd79395){const _0x1daab7=_0x166d1f,_0x5f214e={},_0x24d47b=this[_0x1daab7(0x1d1)][_0x1daab7(0x1c6)](_0xd79395);return _0x24d47b&&_0x24d47b[_0x1daab7(0x1b6)]((_0x1d3738,_0x246a80)=>{const _0x281e09=_0x1daab7,_0x392631=_0x1d3738[_0x281e09(0x1ba)]();_0x392631[_0x281e09(0x1b2)]>0x0&&(_0x5f214e[_0x246a80]=_0x392631);}),JSON[_0x1daab7(0x18c)](_0x5f214e);}[_0x166d1f(0x191)](_0x1900d4,_0x34f3f6){const _0x33d945=_0x166d1f;Object[_0x33d945(0x199)](_0x34f3f6)[_0x33d945(0x1b6)](_0x45bf94=>{const _0x42fd0f=_0x33d945;this[_0x42fd0f(0x1d4)](_0x1900d4,_0x45bf94)[_0x42fd0f(0x18d)](_0x34f3f6[_0x45bf94]);});}[_0x166d1f(0x1ba)](){const _0x13bad8=_0x166d1f,_0x18be98={};return this[_0x13bad8(0x1d1)][_0x13bad8(0x1b6)]((_0x4d0e7e,_0x10f2b9)=>{const _0x71fba=_0x13bad8;_0x18be98[_0x10f2b9]={},_0x4d0e7e[_0x71fba(0x1b6)]((_0x2f7f31,_0x3ac202)=>{_0x18be98[_0x10f2b9][_0x3ac202]=_0x2f7f31['toJSON']();});}),_0x18be98;}['fromJSON'](_0x46f812){const _0x59ebe0=_0x166d1f;Object[_0x59ebe0(0x199)](_0x46f812)[_0x59ebe0(0x1b6)](_0x559d3f=>{const _0x20610b=_0x59ebe0,_0x272e51=_0x46f812[_0x559d3f];Object[_0x20610b(0x199)](_0x272e51)[_0x20610b(0x1b6)](_0x27f93a=>{const _0x2762e4=_0x20610b;this['_ensureShapeModelManager'](_0x559d3f,_0x27f93a)[_0x2762e4(0x18d)](_0x272e51[_0x27f93a]);});});}[_0x166d1f(0x1bd)](){const _0x45eb9a=_0x166d1f;this['_resourcesManagerService'][_0x45eb9a(0x1cc)]({'pluginName':Y,'businesses':[_0xa31f1a[_0x45eb9a(0x192)]],'toJson':_0x4681ba=>this['_serializeShapeForUnit'](_0x4681ba),'parseJson':_0x504335=>JSON[_0x45eb9a(0x18e)](_0x504335),'onLoad':(_0x51c5c4,_0x1359c3)=>{this['_deserializeShapeForUnit'](_0x51c5c4,_0x1359c3);},'onUnLoad':_0x32b534=>{const _0x54d29e=_0x45eb9a,_0x68d429=this['_shapeModelManagerMap'][_0x54d29e(0x1c6)](_0x32b534);_0x68d429&&(_0x68d429[_0x54d29e(0x1b6)](_0x32d4ce=>{_0x32d4ce['dispose']();}),this[_0x54d29e(0x1d1)]['delete'](_0x32b534));}});}['dispose'](){this['_shapeModelManagerMap']['forEach'](_0x3c423e=>{const _0x56d5a5=_0x5854;_0x3c423e[_0x56d5a5(0x1b6)](_0x30c0fe=>{_0x30c0fe['dispose']();});});}};i=K([W(0x0,_0x266c4d)],i);const _={'id':_0x166d1f(0x193),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x49a88f,_0x3ac100)=>{const _0x5025ee=_0x166d1f,{unitId:_0x26d063,subUnitId:_0x5926de,shapeType:_0x5bd4f6,shapeId:_0x33e85e,shapeData:_0x46f6e}=_0x3ac100,_0x29ee30=_0x49a88f[_0x5025ee(0x1c6)](i)[_0x5025ee(0x1b5)](_0x26d063,_0x5926de,_0x33e85e);return _0x29ee30&&(_0x29ee30[_0x5025ee(0x1c1)](_0x5bd4f6),_0x46f6e&&(_0x29ee30==null||_0x29ee30[_0x5025ee(0x19d)](_0x46f6e))),!0x0;}},de={'id':_0x166d1f(0x1ad),'type':_0x57565f[_0x166d1f(0x1bc)],'handler':(_0x2547f2,_0x195d2d)=>{const _0x5f2ab6=_0x166d1f;if(!_0x195d2d)return!0x1;const _0x8f1180=_0x2547f2['get'](_0x165bcf),_0x52d3db=_0x2547f2[_0x5f2ab6(0x1c6)](i),_0x1bfa45=_0x2547f2[_0x5f2ab6(0x1c6)](_0x41c357),_0x30dd24=[],_0xfe3978=[],{unitId:_0x16d1f0,subUnitId:_0x549bcd,shapeId:_0x536a09,shapeType:_0x30efb9,shapeData:_0x4b170a}=_0x195d2d,_0x3fda8c=_0x52d3db[_0x5f2ab6(0x1b5)](_0x16d1f0,_0x549bcd,_0x536a09);if(_0x3fda8c){const _0x94c1ef=_0x3fda8c[_0x5f2ab6(0x1a2)](),_0x3e2692=Object[_0x5f2ab6(0x1a5)]({},_0x3fda8c['getShapeData']()),_0x2362bb={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x30efb9,'shapeData':_0x4b170a},_0x257654={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x94c1ef,'shapeData':_0x3e2692};return _0x30dd24[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x2362bb}),_0xfe3978[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x257654}),_0x30dd24[_0x5f2ab6(0x1c2)](_0x51bb1=>_0x8f1180[_0x5f2ab6(0x1ac)](_0x51bb1['id'],_0x51bb1['params']))&&_0x1bfa45[_0x5f2ab6(0x194)]({'unitID':_0x16d1f0,'redoMutations':[..._0x30dd24],'undoMutations':[..._0xfe3978]}),!0x0;}return!0x1;}},q={'id':'sheet.mutation.insert-shape','type':_0x57565f['MUTATION'],'handler':(_0x34117c,_0x59c807)=>{const _0x33ba1a=_0x166d1f,{unitId:_0x5cb846,subUnitId:_0x1ace1d,shapeType:_0x75fb1f,shapeId:_0x14db89,shapeData:_0x47bbb5}=_0x59c807;return _0x34117c[_0x33ba1a(0x1c6)](i)[_0x33ba1a(0x196)](_0x5cb846,_0x1ace1d,_0x75fb1f,_0x14db89,_0x47bbb5),!0x0;}},Q={'id':'sheet.mutation.remove-shape','type':_0x57565f['MUTATION'],'handler':(_0x55850b,_0xa0f6ba)=>{const {unitId:_0x2641c9,subUnitId:_0x513dbb,shapeId:_0xf3f018}=_0xa0f6ba;return _0x55850b['get'](i)['removeShape'](_0x2641c9,_0x513dbb,_0xf3f018),!0x0;}},X={'id':_0x166d1f(0x1b3),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x5b77ec,_0x205a62)=>{const _0x2e8cb9=_0x166d1f,{unitId:_0xe315b7,subUnitId:_0x16715a,shapeType:_0x1066dd,shapeId:_0x48c828,shapeData:_0x371b50}=_0x205a62,_0xf3d248=_0x5b77ec['get'](i)['getShapeModel'](_0xe315b7,_0x16715a,_0x48c828);return _0xf3d248&&(_0x1066dd!==void 0x0&&_0xf3d248[_0x2e8cb9(0x1c1)](_0x1066dd),_0x371b50&&(_0xf3d248==null||_0xf3d248[_0x2e8cb9(0x19d)](_0x371b50,!0x0))),!0x0;}},Z=_0x166d1f(0x1c5),k=_0x166d1f(0x19a),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],te=(_0x64e1f2,_0x211fff,_0x95300)=>_0x211fff in _0x64e1f2?ae(_0x64e1f2,_0x211fff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x95300}):_0x64e1f2[_0x211fff]=_0x95300,ne=(_0x394c21,_0x12d862,_0x521883,_0x589ddd)=>{const _0x1a5ab5=_0x166d1f;for(var _0x499e74=_0x589ddd>0x1?void 0x0:_0x589ddd?se(_0x12d862,_0x521883):_0x12d862,_0x378eee=_0x394c21[_0x1a5ab5(0x1b2)]-0x1,_0x1c4b97;_0x378eee>=0x0;_0x378eee--)(_0x1c4b97=_0x394c21[_0x378eee])&&(_0x499e74=_0x1c4b97(_0x499e74)||_0x499e74);return _0x499e74;},u=(_0x4223d2,_0x233277)=>(_0x481f0a,_0x3c49bf)=>_0x233277(_0x481f0a,_0x3c49bf,_0x4223d2),M=(_0x825a34,_0xef644f,_0xaf425c)=>te(_0x825a34,typeof _0xef644f!='symbol'?_0xef644f+'':_0xef644f,_0xaf425c);let d=class extends _0x3be3a3{constructor(_0x59c0e5=v,_0x472f62,_0x1e1bd5,_0x2b4c44){const _0x357cfa=_0x166d1f;super(),this[_0x357cfa(0x1d3)]=_0x59c0e5,this['_injector']=_0x472f62,this[_0x357cfa(0x19f)]=_0x1e1bd5,this[_0x357cfa(0x1d2)]=_0x2b4c44;const {..._0x181ecd}=_0x4bc9ae({},v,this['_config']);this[_0x357cfa(0x1d2)][_0x357cfa(0x1af)](ee,_0x181ecd),this[_0x357cfa(0x1b4)]();}['onRendered'](){const _0x704c5=_0x166d1f;_0x5e86ea(this[_0x704c5(0x1be)],[]);}[_0x166d1f(0x1ab)](){const _0x382e7b=_0x166d1f,_0x103665=this['_injector'];[[E],[i]][_0x382e7b(0x1b6)](_0x185ffe=>_0x103665[_0x382e7b(0x197)](_0x185ffe));}[_0x166d1f(0x1b4)](){const _0xe8a744=_0x166d1f;[q,Q,_,X][_0xe8a744(0x1b6)](_0x45ff82=>this['disposeWithMe'](this[_0xe8a744(0x19f)][_0xe8a744(0x1c9)](_0x45ff82)));}};M(d,_0x166d1f(0x1a8),_0xa31f1a[_0x166d1f(0x192)]),M(d,_0x166d1f(0x1a4),_0x166d1f(0x1a6)),M(d,_0x166d1f(0x1a3),O['name']),M(d,_0x166d1f(0x1ce),O[_0x166d1f(0x1ce)]),d=ne([_0x13c40b(_0x3f3d2a),u(0x1,_0x878c89(_0x25ab9b)),u(0x2,_0x165bcf),u(0x3,_0x340db0)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
function _0x4a39(_0xf09c84,_0x41d3fb){_0xf09c84=_0xf09c84-0xf7;const _0x3e0a2c=_0x3e0a();let _0x4a3940=_0x3e0a2c[_0xf09c84];return _0x4a3940;}const _0x1a85a6=_0x4a39;(function(_0x3e2e04,_0x3edb32){const _0x305296=_0x4a39,_0x42e9c7=_0x3e2e04();while(!![]){try{const _0x545d0f=parseInt(_0x305296(0x14a))/0x1*(parseInt(_0x305296(0x14b))/0x2)+-parseInt(_0x305296(0x136))/0x3*(parseInt(_0x305296(0x11a))/0x4)+parseInt(_0x305296(0x10e))/0x5*(-parseInt(_0x305296(0x109))/0x6)+-parseInt(_0x305296(0x107))/0x7*(parseInt(_0x305296(0xfa))/0x8)+-parseInt(_0x305296(0x142))/0x9+parseInt(_0x305296(0x118))/0xa+parseInt(_0x305296(0x104))/0xb;if(_0x545d0f===_0x3edb32)break;else _0x42e9c7['push'](_0x42e9c7['shift']());}catch(_0x2b9678){_0x42e9c7['push'](_0x42e9c7['shift']());}}}(_0x3e0a,0xa000e));import{CommandType as _0x1b86b5,DependentOn as _0x5de875,Disposable as _0x216056,ICommandService as _0x2caded,IConfigService as _0x242623,IResourceManagerService as _0x2cc90d,IUndoRedoService as _0x55df66,Inject as _0x32fbec,Injector as _0x1f0e5c,Plugin as _0x5786ba,UniverInstanceType as _0x553e50,merge as _0x91ce1f,touchDependencies as _0x468807}from'@univerjs/core';import{ShapeModel as _0x380646,isConnectorShape as _0x5e5cf2}from'@univerjs-pro/engine-shape';function _0x3e0a(){const _0x584f84=['getBasicShapeRelation','@univerjs-pro/sheets-shape','params','getShapeTypeById','stringify','9dIoTzA','getShapeDataById','sheet.mutation.update-shape-type','function','_deserializeShapeForUnit','syncExecuteCommand','UNIVER_SHEET','set','constructor','MUTATION','from','object','704691vaiewP','insertShape','_disposed','string','onRendered','0.18.0-insiders.20260328-0842384','_injector','delete','88807uHOoYd','12nmRoKb','symbol','forEach','sheet.mutation.remove-shape','toPrimitive','toJSON','getLineShapeRelation','dispose','onStarting','addShape','16bDQEfU','clear','defineProperty','_serializeShapeForUnit','decorate','parse','getBasicShapeType','call','sheet.mutation.insert-shape','sheets-shape.config','11527824KXGabG','removeShape','_ensureShapeModelManager','286853yrwmQW','packageName','6PRNrTY','registerPluginResource','getShapeRelation','_configService','getShapeType','3331340fmlgKZ','pluginName','setConfig','_initCommands','COMMAND','assign','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','shapeId','3313420myLkdY','every','573692qgWUMj','getShapeModel','setShapeData','_initSnapshot','getOwnPropertyDescriptor','setShapeType','get','getShapeData','registerCommand','fromJSON','sheet.mutation.update-shape-data','add','_shapeModelManagerMap','keys','_resourcesManagerService','_linesIds','SHEET_SHAPE_PLUGIN','push','_commandService','hasShape','prototype','_shapes','length'];_0x3e0a=function(){return _0x584f84;};return _0x3e0a();}import{UniverLicensePlugin as _0x162275}from'@univerjs-pro/license';function g(_0x4938ee){'@babel/helpers - typeof';const _0x464ccd=_0x4a39;return g=typeof Symbol==_0x464ccd(0x139)&&typeof Symbol[_0x464ccd(0x116)]==_0x464ccd(0x14c)?function(_0x1bceb4){return typeof _0x1bceb4;}:function(_0x410a20){const _0x49a02b=_0x464ccd;return _0x410a20&&typeof Symbol=='function'&&_0x410a20[_0x49a02b(0x13e)]===Symbol&&_0x410a20!==Symbol[_0x49a02b(0x12e)]?'symbol':typeof _0x410a20;},g(_0x4938ee);}function _(_0x5366e4,_0x518fc4){const _0x30da7b=_0x4a39;if(g(_0x5366e4)!='object'||!_0x5366e4)return _0x5366e4;var _0x4928e5=_0x5366e4[Symbol[_0x30da7b(0x14f)]];if(_0x4928e5!==void 0x0){var _0x605717=_0x4928e5[_0x30da7b(0x101)](_0x5366e4,_0x518fc4||'default');if(g(_0x605717)!=_0x30da7b(0x141))return _0x605717;throw TypeError(_0x30da7b(0x115));}return(_0x518fc4===_0x30da7b(0x145)?String:Number)(_0x5366e4);}function v(_0x16c92e){const _0x1b156a=_0x4a39;var _0x4f1f09=_(_0x16c92e,_0x1b156a(0x145));return g(_0x4f1f09)==_0x1b156a(0x14c)?_0x4f1f09:_0x4f1f09+'';}function y(_0x589355,_0x4b6588,_0x1f903b){const _0x3f66e0=_0x4a39;return(_0x4b6588=v(_0x4b6588))in _0x589355?Object[_0x3f66e0(0xfc)](_0x589355,_0x4b6588,{'value':_0x1f903b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589355[_0x4b6588]=_0x1f903b,_0x589355;}var b=class extends _0x216056{constructor(){const _0x2f714e=_0x4a39;super(),y(this,_0x2f714e(0x12f),new Map()),y(this,'_linesIds',new Set()),y(this,'_groupIds',new Set());}[_0x1a85a6(0xf9)](_0x4e78de,_0x4e9ef1,_0x3a24a5){const _0x5e873f=_0x1a85a6;let _0x26b88b=new _0x380646(_0x4e78de,_0x4e9ef1,_0x3a24a5);return this[_0x5e873f(0x12f)][_0x5e873f(0x13d)](_0x4e9ef1,_0x26b88b),_0x5e5cf2(_0x4e78de)&&this[_0x5e873f(0x129)][_0x5e873f(0x125)](_0x4e9ef1),_0x26b88b;}[_0x1a85a6(0x131)](_0x21c7f9){const _0x5a6059=_0x1a85a6;let _0x5d11c4=[];for(let _0x527ff8 of this['_linesIds']){let _0x46b598=this[_0x5a6059(0x12f)][_0x5a6059(0x120)](_0x527ff8);if(_0x46b598){let _0x38e08b=_0x46b598[_0x5a6059(0x10b)]();if(_0x38e08b){var _0x148588,_0x47e95b;((_0x148588=_0x38e08b[_0x5a6059(0x140)])==null?void 0x0:_0x148588[_0x5a6059(0x117)])===_0x21c7f9&&_0x5d11c4[_0x5a6059(0x12b)]({..._0x38e08b[_0x5a6059(0x140)],'lineShapeId':_0x527ff8,'isFrom':!0x0}),((_0x47e95b=_0x38e08b['to'])==null?void 0x0:_0x47e95b['shapeId'])===_0x21c7f9&&_0x5d11c4[_0x5a6059(0x12b)]({..._0x38e08b['to'],'lineShapeId':_0x527ff8,'isFrom':!0x1});}}}return _0x5d11c4;}[_0x1a85a6(0x151)](_0x3f4654){const _0x19dd1c=_0x1a85a6;let _0x12331a=this['_shapes'][_0x19dd1c(0x120)](_0x3f4654);if(_0x12331a)return _0x12331a[_0x19dd1c(0x10b)]();}[_0x1a85a6(0x10d)](_0x55e724){const _0x611989=_0x1a85a6;let _0x498026=this[_0x611989(0x12f)][_0x611989(0x120)](_0x55e724);if(_0x498026)return _0x498026['getShapeType']();}['hasShape'](_0x2da3d7){const _0x281625=_0x1a85a6;return this[_0x281625(0x12f)]['has'](_0x2da3d7);}[_0x1a85a6(0x105)](_0x14834b){const _0x93c43d=_0x1a85a6;let _0x3887aa=this[_0x93c43d(0x12f)]['get'](_0x14834b);_0x3887aa&&(_0x5e5cf2(_0x3887aa[_0x93c43d(0x10d)]())&&this[_0x93c43d(0x129)][_0x93c43d(0x149)](_0x14834b),this['_shapes'][_0x93c43d(0x149)](_0x14834b));}['toJSON'](){const _0x433814=_0x1a85a6;let _0x212589=[];return this[_0x433814(0x12f)][_0x433814(0x14d)](_0x1e03f3=>{const _0x34aaf9=_0x433814;_0x212589[_0x34aaf9(0x12b)](_0x1e03f3[_0x34aaf9(0x150)]());}),_0x212589;}[_0x1a85a6(0x123)](_0x559f91){const _0xef7c96=_0x1a85a6;for(let _0x1ba343 of _0x559f91){let {id:_0x1b3a0f,shapeType:_0x4ca7ff}=_0x1ba343,_0x5a4e83=this['addShape'](_0x4ca7ff,_0x1b3a0f,_0x1ba343['shapeData']);_0x5a4e83&&_0x5a4e83['isLineShape']()&&this[_0xef7c96(0x129)][_0xef7c96(0x125)](_0x1b3a0f);}}[_0x1a85a6(0xf7)](){const _0x3fb6e7=_0x1a85a6;this[_0x3fb6e7(0x144)]||(this[_0x3fb6e7(0x12f)]['forEach'](_0x513584=>{_0x513584['dispose']();}),this[_0x3fb6e7(0x12f)][_0x3fb6e7(0xfb)](),this[_0x3fb6e7(0x129)]['clear'](),this['_groupIds'][_0x3fb6e7(0xfb)](),super['dispose']());}};function x(_0x4e2eb8,_0x1c6f49){return function(_0x57c8ce,_0x391cd3){_0x1c6f49(_0x57c8ce,_0x391cd3,_0x4e2eb8);};}function S(_0x45ca21,_0x533e23,_0x3e8792,_0x34629c){const _0x4b2d1a=_0x1a85a6;var _0x354ca0=arguments[_0x4b2d1a(0x130)],_0x313da5=_0x354ca0<0x3?_0x533e23:_0x34629c===null?_0x34629c=Object[_0x4b2d1a(0x11e)](_0x533e23,_0x3e8792):_0x34629c,_0x180b8d;if(typeof Reflect==_0x4b2d1a(0x141)&&typeof Reflect[_0x4b2d1a(0xfe)]==_0x4b2d1a(0x139))_0x313da5=Reflect[_0x4b2d1a(0xfe)](_0x45ca21,_0x533e23,_0x3e8792,_0x34629c);else{for(var _0x3a894d=_0x45ca21[_0x4b2d1a(0x130)]-0x1;_0x3a894d>=0x0;_0x3a894d--)(_0x180b8d=_0x45ca21[_0x3a894d])&&(_0x313da5=(_0x354ca0<0x3?_0x180b8d(_0x313da5):_0x354ca0>0x3?_0x180b8d(_0x533e23,_0x3e8792,_0x313da5):_0x180b8d(_0x533e23,_0x3e8792))||_0x313da5);}return _0x354ca0>0x3&&_0x313da5&&Object[_0x4b2d1a(0xfc)](_0x533e23,_0x3e8792,_0x313da5),_0x313da5;}let C=class extends _0x216056{constructor(_0x21fe77){const _0x3853cc=_0x1a85a6;super(),this[_0x3853cc(0x128)]=_0x21fe77,y(this,_0x3853cc(0x126),new Map()),this['_initSnapshot']();}[_0x1a85a6(0x106)](_0x17aeda,_0x3fec78){const _0x2119c0=_0x1a85a6;let _0x3fcfba=this[_0x2119c0(0x126)][_0x2119c0(0x120)](_0x17aeda);_0x3fcfba||(_0x3fcfba=new Map(),this[_0x2119c0(0x126)][_0x2119c0(0x13d)](_0x17aeda,_0x3fcfba));let _0x1cd0a9=_0x3fcfba[_0x2119c0(0x120)](_0x3fec78);return _0x1cd0a9||(_0x1cd0a9=new b(),_0x3fcfba[_0x2119c0(0x13d)](_0x3fec78,_0x1cd0a9)),_0x1cd0a9;}[_0x1a85a6(0x143)](_0x4ec3cb,_0x33a674,_0x18615c,_0x532507,_0x598b4c){const _0x33ed39=_0x1a85a6;this['_ensureShapeModelManager'](_0x4ec3cb,_0x33a674)[_0x33ed39(0xf9)](_0x18615c,_0x532507,_0x598b4c);}[_0x1a85a6(0x105)](_0x460fbf,_0x68d524,_0x1dcc20){const _0x2b5c93=_0x1a85a6;this[_0x2b5c93(0x106)](_0x460fbf,_0x68d524)['removeShape'](_0x1dcc20);}[_0x1a85a6(0x100)](_0x291dad,_0x3a1a06,_0xfb52d2){return this['_ensureShapeModelManager'](_0x291dad,_0x3a1a06)['getShapeType'](_0xfb52d2);}[_0x1a85a6(0x10d)](_0x4ba653,_0xbab38,_0x21b65e){const _0x94eb9b=_0x1a85a6;return this['_ensureShapeModelManager'](_0x4ba653,_0xbab38)[_0x94eb9b(0x10d)](_0x21b65e);}[_0x1a85a6(0x12d)](_0x2b1ebf,_0xbaaabf,_0x53f8c7){const _0x587ae3=_0x1a85a6;return this[_0x587ae3(0x106)](_0x2b1ebf,_0xbaaabf)[_0x587ae3(0x12d)](_0x53f8c7);}[_0x1a85a6(0x134)](_0x44e18d,_0x4a740f,_0x242fec){const _0x485264=_0x1a85a6;return this[_0x485264(0x106)](_0x44e18d,_0x4a740f)[_0x485264(0x10d)](_0x242fec);}[_0x1a85a6(0x137)](_0x2d57ec,_0x20a199,_0x59a670){const _0x1fc3ff=_0x1a85a6;let _0x524f9d=this[_0x1fc3ff(0x106)](_0x2d57ec,_0x20a199);if(!_0x524f9d[_0x1fc3ff(0x10d)](_0x59a670))return;let _0x1e1eb0=_0x524f9d[_0x1fc3ff(0x12f)]['get'](_0x59a670);if(_0x1e1eb0)return _0x1e1eb0[_0x1fc3ff(0x121)]();}['getShapeModel'](_0x5a9a7f,_0x2ca9ff,_0x2640d7){const _0x5a23cf=_0x1a85a6;return this[_0x5a23cf(0x106)](_0x5a9a7f,_0x2ca9ff)[_0x5a23cf(0x12f)][_0x5a23cf(0x120)](_0x2640d7);}['getBasicShapeRelation'](_0x503815,_0x4a619b,_0x418a03){return this['_ensureShapeModelManager'](_0x503815,_0x4a619b)['getBasicShapeRelation'](_0x418a03);}[_0x1a85a6(0x151)](_0x1dd49b,_0x1ed7af,_0x4db473){const _0x4bdd9c=_0x1a85a6;let _0x4fa1e8=this['_ensureShapeModelManager'](_0x1dd49b,_0x1ed7af)[_0x4bdd9c(0x12f)][_0x4bdd9c(0x120)](_0x4db473);if(_0x4fa1e8)return _0x4fa1e8[_0x4bdd9c(0x10b)]();}[_0x1a85a6(0x11f)](){}[_0x1a85a6(0xfd)](_0x2d05ea){const _0x5ac5bd=_0x1a85a6;let _0x2e4bc5={},_0x2c78e5=this[_0x5ac5bd(0x126)][_0x5ac5bd(0x120)](_0x2d05ea);return _0x2c78e5&&_0x2c78e5[_0x5ac5bd(0x14d)]((_0x359ee2,_0x2027eb)=>{const _0x48eca0=_0x5ac5bd;let _0x1c3268=_0x359ee2[_0x48eca0(0x150)]();_0x1c3268[_0x48eca0(0x130)]>0x0&&(_0x2e4bc5[_0x2027eb]=_0x1c3268);}),JSON[_0x5ac5bd(0x135)](_0x2e4bc5);}[_0x1a85a6(0x13a)](_0x33666e,_0xda6d3f){const _0x47eedd=_0x1a85a6;Object[_0x47eedd(0x127)](_0xda6d3f)['forEach'](_0x5e5db0=>{const _0x4c3ed1=_0x47eedd;this[_0x4c3ed1(0x106)](_0x33666e,_0x5e5db0)['fromJSON'](_0xda6d3f[_0x5e5db0]);});}['toJSON'](){const _0x203486=_0x1a85a6;let _0x4212ab={};return this[_0x203486(0x126)]['forEach']((_0x57dca6,_0x5e3117)=>{_0x4212ab[_0x5e3117]={},_0x57dca6['forEach']((_0x26d5ce,_0x23ac7f)=>{_0x4212ab[_0x5e3117][_0x23ac7f]=_0x26d5ce['toJSON']();});}),_0x4212ab;}[_0x1a85a6(0x123)](_0x55afbc){const _0x5e6c4b=_0x1a85a6;Object[_0x5e6c4b(0x127)](_0x55afbc)[_0x5e6c4b(0x14d)](_0x2725b5=>{const _0x2d465b=_0x5e6c4b;let _0x2a1f9a=_0x55afbc[_0x2725b5];Object['keys'](_0x2a1f9a)[_0x2d465b(0x14d)](_0x5b40b9=>{const _0x6a412a=_0x2d465b;this[_0x6a412a(0x106)](_0x2725b5,_0x5b40b9)[_0x6a412a(0x123)](_0x2a1f9a[_0x5b40b9]);});});}[_0x1a85a6(0x11d)](){const _0x36d4e0=_0x1a85a6;this[_0x36d4e0(0x128)][_0x36d4e0(0x10a)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x553e50[_0x36d4e0(0x13c)]],'toJson':_0x591170=>this['_serializeShapeForUnit'](_0x591170),'parseJson':_0x5ce6e7=>JSON[_0x36d4e0(0xff)](_0x5ce6e7),'onLoad':(_0x40456f,_0x14ee5f)=>{this['_deserializeShapeForUnit'](_0x40456f,_0x14ee5f);},'onUnLoad':_0xbf036d=>{const _0x359523=_0x36d4e0;let _0x19638a=this[_0x359523(0x126)]['get'](_0xbf036d);_0x19638a&&(_0x19638a[_0x359523(0x14d)](_0x1c1e95=>{const _0x1b992d=_0x359523;_0x1c1e95[_0x1b992d(0xf7)]();}),this[_0x359523(0x126)]['delete'](_0xbf036d));}});}[_0x1a85a6(0xf7)](){const _0xfbc0d6=_0x1a85a6;this[_0xfbc0d6(0x126)][_0xfbc0d6(0x14d)](_0x1b1a17=>{const _0x54dd21=_0xfbc0d6;_0x1b1a17[_0x54dd21(0x14d)](_0x31b779=>{_0x31b779['dispose']();});});}};C=S([x(0x0,_0x2cc90d)],C);const w={'id':_0x1a85a6(0x138),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x323801,_0x22920c)=>{const _0x1fd01e=_0x1a85a6;let {unitId:_0x4ebf34,subUnitId:_0x30ef52,shapeType:_0x2c0a9e,shapeId:_0x461791,shapeData:_0x1e1a0b}=_0x22920c,_0x34723f=_0x323801['get'](C)[_0x1fd01e(0x11b)](_0x4ebf34,_0x30ef52,_0x461791);return _0x34723f&&(_0x34723f[_0x1fd01e(0x11f)](_0x2c0a9e),_0x1e1a0b&&(_0x34723f==null||_0x34723f[_0x1fd01e(0x11c)](_0x1e1a0b))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':_0x1b86b5[_0x1a85a6(0x112)],'handler':(_0x459897,_0x7cdb1b)=>{const _0x34d96f=_0x1a85a6;if(!_0x7cdb1b)return!0x1;let _0x1de157=_0x459897[_0x34d96f(0x120)](_0x2caded),_0x56bf66=_0x459897[_0x34d96f(0x120)](C),_0x3011a1=_0x459897[_0x34d96f(0x120)](_0x55df66),_0x938eeb=[],_0x3385c9=[],{unitId:_0x4db0d9,subUnitId:_0x3ebd97,shapeId:_0x32223e,shapeType:_0x24b0c9,shapeData:_0x3763fb}=_0x7cdb1b,_0x2b96bf=_0x56bf66[_0x34d96f(0x11b)](_0x4db0d9,_0x3ebd97,_0x32223e);if(_0x2b96bf){let _0x51c838=_0x2b96bf[_0x34d96f(0x10d)](),_0x197db3=Object[_0x34d96f(0x113)]({},_0x2b96bf[_0x34d96f(0x121)]()),_0x301f68={'unitId':_0x4db0d9,'subUnitId':_0x3ebd97,'shapeId':_0x32223e,'shapeType':_0x24b0c9,'shapeData':_0x3763fb},_0x433351={'unitId':_0x4db0d9,'subUnitId':_0x3ebd97,'shapeId':_0x32223e,'shapeType':_0x51c838,'shapeData':_0x197db3};return _0x938eeb[_0x34d96f(0x12b)]({'id':w['id'],'params':_0x301f68}),_0x3385c9[_0x34d96f(0x12b)]({'id':w['id'],'params':_0x433351}),_0x938eeb[_0x34d96f(0x119)](_0x36ac7c=>_0x1de157[_0x34d96f(0x13b)](_0x36ac7c['id'],_0x36ac7c[_0x34d96f(0x133)]))&&_0x3011a1['pushUndoRedo']({'unitID':_0x4db0d9,'redoMutations':[..._0x938eeb],'undoMutations':[..._0x3385c9]}),!0x0;}return!0x1;}},E={'id':_0x1a85a6(0x102),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x5868ca,_0x19f639)=>{const _0x8dbbb0=_0x1a85a6;let {unitId:_0x4ab96f,subUnitId:_0x5e2480,shapeType:_0x424efd,shapeId:_0x2f41f1,shapeData:_0x502704}=_0x19f639;return _0x5868ca['get'](C)[_0x8dbbb0(0x143)](_0x4ab96f,_0x5e2480,_0x424efd,_0x2f41f1,_0x502704),!0x0;}},D={'id':_0x1a85a6(0x14e),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x4b070b,_0x1019b6)=>{const _0x1c4b36=_0x1a85a6;let {unitId:_0x332317,subUnitId:_0x5b989c,shapeId:_0x557370}=_0x1019b6;return _0x4b070b['get'](C)[_0x1c4b36(0x105)](_0x332317,_0x5b989c,_0x557370),!0x0;}},O={'id':_0x1a85a6(0x124),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x1f89d9,_0x3ad911)=>{const _0x2b9dae=_0x1a85a6;let {unitId:_0x11a1f2,subUnitId:_0x23a1eb,shapeType:_0x14a842,shapeId:_0x5b5ea7,shapeData:_0x546019}=_0x3ad911,_0x5b1cb8=_0x1f89d9['get'](C)[_0x2b9dae(0x11b)](_0x11a1f2,_0x23a1eb,_0x5b5ea7);return _0x5b1cb8&&(_0x14a842!==void 0x0&&_0x5b1cb8[_0x2b9dae(0x11f)](_0x14a842),_0x546019&&(_0x5b1cb8==null||_0x5b1cb8[_0x2b9dae(0x11c)](_0x546019,!0x0))),!0x0;}};var k=_0x1a85a6(0x132),A=_0x1a85a6(0x147);const j=_0x1a85a6(0x103);Symbol(j);const M={};let N=class extends _0x5786ba{constructor(_0x12700c=M,_0x26c1d9,_0x489df9,_0x9580bc){const _0x37043b=_0x1a85a6;super(),this[_0x37043b(0x114)]=_0x12700c,this['_injector']=_0x26c1d9,this[_0x37043b(0x12c)]=_0x489df9,this[_0x37043b(0x10c)]=_0x9580bc;let {..._0x26bcc5}=_0x91ce1f({},M,this[_0x37043b(0x114)]);this[_0x37043b(0x10c)][_0x37043b(0x110)](j,_0x26bcc5),this['_initCommands']();}[_0x1a85a6(0x146)](){const _0x4c4203=_0x1a85a6;_0x468807(this[_0x4c4203(0x148)],[]);}[_0x1a85a6(0xf8)](){const _0x3b3bed=_0x1a85a6;let _0x2d705b=this[_0x3b3bed(0x148)];[[b],[C]][_0x3b3bed(0x14d)](_0xad0436=>_0x2d705b[_0x3b3bed(0x125)](_0xad0436));}[_0x1a85a6(0x111)](){const _0x475603=_0x1a85a6;[E,D,w,O][_0x475603(0x14d)](_0x2e4928=>this['disposeWithMe'](this['_commandService'][_0x475603(0x122)](_0x2e4928)));}};y(N,'type',_0x553e50[_0x1a85a6(0x13c)]),y(N,_0x1a85a6(0x10f),_0x1a85a6(0x12a)),y(N,_0x1a85a6(0x108),k),y(N,'version',A),N=S([_0x5de875(_0x162275),x(0x1,_0x32fbec(_0x1f0e5c)),x(0x2,_0x2caded),x(0x3,_0x242623)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x166d1f=_0x5854;function _0x28e8(){const _0x851f03=['keys','0.17.0','_serializeShapeForUnit','448634FrvuGl','setShapeData','10nymXnM','_commandService','getShapeData','_shapes','getShapeType','packageName','pluginName','assign','SHEET_SHAPE_PLUGIN','846964tDWyTM','type','1938180fOlHjB','defineProperty','onStarting','syncExecuteCommand','sheet.command.update-shape-type','dispose','setConfig','addShape','has','length','sheet.mutation.update-shape-data','_initCommands','getShapeModel','forEach','set','delete','174974SBgjVt','toJSON','_linesIds','COMMAND','_initSnapshot','_injector','getShapeDataById','hasShape','setShapeType','every','getBasicShapeType','56fgPksU','@univerjs-pro/sheets-shape','get','getBasicShapeRelation','clear','registerCommand','push','12728592ZUvugl','registerPluginResource','getShapeRelation','version','1321650YRJKYj','_groupIds','_shapeModelManagerMap','_configService','_config','_ensureShapeModelManager','from','145558CByfrB','stringify','fromJSON','parse','_resourcesManagerService','MUTATION','_deserializeShapeForUnit','UNIVER_SHEET','sheet.mutation.update-shape-type','pushUndoRedo','getOwnPropertyDescriptor','insertShape','add','_disposed'];_0x28e8=function(){return _0x851f03;};return _0x28e8();}(function(_0x3df8d1,_0x4757fe){const _0x3e9968=_0x5854,_0x51b447=_0x3df8d1();while(!![]){try{const _0x317f33=parseInt(_0x3e9968(0x1b9))/0x1+-parseInt(_0x3e9968(0x19c))/0x2+-parseInt(_0x3e9968(0x1cf))/0x3+parseInt(_0x3e9968(0x1a7))/0x4*(-parseInt(_0x3e9968(0x19e))/0x5)+-parseInt(_0x3e9968(0x1a9))/0x6+-parseInt(_0x3e9968(0x1d6))/0x7*(-parseInt(_0x3e9968(0x1c4))/0x8)+parseInt(_0x3e9968(0x1cb))/0x9;if(_0x317f33===_0x4757fe)break;else _0x51b447['push'](_0x51b447['shift']());}catch(_0x42f99d){_0x51b447['push'](_0x51b447['shift']());}}}(_0x28e8,0x4ef71));var C=Object[_0x166d1f(0x1aa)],j=(_0x2dcce8,_0x1820ec,_0x55445f)=>_0x1820ec in _0x2dcce8?C(_0x2dcce8,_0x1820ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55445f}):_0x2dcce8[_0x1820ec]=_0x55445f,c=(_0x4c0707,_0x2afaba,_0x377de4)=>j(_0x4c0707,typeof _0x2afaba!='symbol'?_0x2afaba+'':_0x2afaba,_0x377de4);import{Disposable as _0x3b9272,UniverInstanceType as _0xa31f1a,IResourceManagerService as _0x266c4d,CommandType as _0x57565f,ICommandService as _0x165bcf,IUndoRedoService as _0x41c357,DependentOn as _0x13c40b,Inject as _0x878c89,Injector as _0x25ab9b,Plugin as _0x3be3a3,merge as _0x4bc9ae,touchDependencies as _0x5e86ea,IConfigService as _0x340db0}from'@univerjs/core';import{ShapeModel as _0x14170d,isConnectorShape as _0x413840}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f3d2a}from'@univerjs-pro/license';function _0x5854(_0x5a9a1f,_0x6e1b19){_0x5a9a1f=_0x5a9a1f-0x18c;const _0x28e8af=_0x28e8();let _0x58544e=_0x28e8af[_0x5a9a1f];return _0x58544e;}class E extends _0x3b9272{constructor(){const _0x4ba07b=_0x166d1f;super(),c(this,_0x4ba07b(0x1a1),new Map()),c(this,'_linesIds',new Set()),c(this,_0x4ba07b(0x1d0),new Set());}[_0x166d1f(0x1b0)](_0x28de22,_0x4ebf75,_0x58b775){const _0x2d5b64=_0x166d1f,_0x55fb78=new _0x14170d(_0x28de22,_0x4ebf75,_0x58b775);return this['_shapes'][_0x2d5b64(0x1b7)](_0x4ebf75,_0x55fb78),_0x413840(_0x28de22)&&this[_0x2d5b64(0x1bb)]['add'](_0x4ebf75),_0x55fb78;}[_0x166d1f(0x1c7)](_0x378b83){const _0x4e1ca5=_0x166d1f;var _0x3428e3,_0x3a8a3b;const _0x22662c=[];for(const _0x374203 of this[_0x4e1ca5(0x1bb)]){const _0x56c7ea=this[_0x4e1ca5(0x1a1)]['get'](_0x374203);if(_0x56c7ea){const _0xbaec4f=_0x56c7ea[_0x4e1ca5(0x1cd)]();_0xbaec4f&&(((_0x3428e3=_0xbaec4f[_0x4e1ca5(0x1d5)])==null?void 0x0:_0x3428e3['shapeId'])===_0x378b83&&_0x22662c[_0x4e1ca5(0x1ca)]({..._0xbaec4f[_0x4e1ca5(0x1d5)],'lineShapeId':_0x374203,'isFrom':!0x0}),((_0x3a8a3b=_0xbaec4f['to'])==null?void 0x0:_0x3a8a3b['shapeId'])===_0x378b83&&_0x22662c['push']({..._0xbaec4f['to'],'lineShapeId':_0x374203,'isFrom':!0x1}));}}return _0x22662c;}['getLineShapeRelation'](_0x466493){const _0x1c4b53=_0x166d1f,_0x50d019=this['_shapes'][_0x1c4b53(0x1c6)](_0x466493);if(_0x50d019)return _0x50d019[_0x1c4b53(0x1cd)]();}[_0x166d1f(0x1a2)](_0x20ca08){const _0x3f8c35=_0x166d1f,_0x32b12f=this['_shapes'][_0x3f8c35(0x1c6)](_0x20ca08);if(_0x32b12f)return _0x32b12f['getShapeType']();}[_0x166d1f(0x1c0)](_0x1d270c){const _0x45a30b=_0x166d1f;return this['_shapes'][_0x45a30b(0x1b1)](_0x1d270c);}['removeShape'](_0x1aaa79){const _0x3f7966=_0x166d1f,_0x8657ce=this[_0x3f7966(0x1a1)][_0x3f7966(0x1c6)](_0x1aaa79);_0x8657ce&&(_0x413840(_0x8657ce[_0x3f7966(0x1a2)]())&&this[_0x3f7966(0x1bb)][_0x3f7966(0x1b8)](_0x1aaa79),this[_0x3f7966(0x1a1)][_0x3f7966(0x1b8)](_0x1aaa79));}[_0x166d1f(0x1ba)](){const _0x55fab6=[];return this['_shapes']['forEach'](_0x280290=>{const _0x473e58=_0x5854;_0x55fab6['push'](_0x280290[_0x473e58(0x1ba)]());}),_0x55fab6;}['fromJSON'](_0x4c8930){const _0x3949a6=_0x166d1f;for(const _0x2c2718 of _0x4c8930){const {id:_0x5937fb,shapeType:_0x27b2e4}=_0x2c2718,_0xe32c7e=this['addShape'](_0x27b2e4,_0x5937fb,_0x2c2718['shapeData']);_0xe32c7e&&_0xe32c7e['isLineShape']()&&this[_0x3949a6(0x1bb)]['add'](_0x5937fb);}}[_0x166d1f(0x1ae)](){const _0x2cfba9=_0x166d1f;this[_0x2cfba9(0x198)]||(this[_0x2cfba9(0x1a1)]['forEach'](_0x20b58f=>{const _0x4a77b8=_0x2cfba9;_0x20b58f[_0x4a77b8(0x1ae)]();}),this[_0x2cfba9(0x1a1)]['clear'](),this['_linesIds'][_0x2cfba9(0x1c8)](),this[_0x2cfba9(0x1d0)][_0x2cfba9(0x1c8)](),super[_0x2cfba9(0x1ae)]());}}var V=Object[_0x166d1f(0x195)],K=(_0x4fe105,_0x4a1b94,_0x16578b,_0x318468)=>{const _0x59898f=_0x166d1f;for(var _0x386371=_0x318468>0x1?void 0x0:_0x318468?V(_0x4a1b94,_0x16578b):_0x4a1b94,_0x57276d=_0x4fe105[_0x59898f(0x1b2)]-0x1,_0x58bf75;_0x57276d>=0x0;_0x57276d--)(_0x58bf75=_0x4fe105[_0x57276d])&&(_0x386371=_0x58bf75(_0x386371)||_0x386371);return _0x386371;},W=(_0xbc996e,_0x4c0e48)=>(_0x42a778,_0x1652ef)=>_0x4c0e48(_0x42a778,_0x1652ef,_0xbc996e);const Y=_0x166d1f(0x1a6);let i=class extends _0x3b9272{constructor(_0x4be3e3){const _0x49e741=_0x166d1f;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x49e741(0x18f)]=_0x4be3e3,this['_initSnapshot']());}[_0x166d1f(0x1d4)](_0x3a1f05,_0x5e27c2){const _0x341f54=_0x166d1f;let _0x4bca6d=this[_0x341f54(0x1d1)][_0x341f54(0x1c6)](_0x3a1f05);_0x4bca6d||(_0x4bca6d=new Map(),this['_shapeModelManagerMap'][_0x341f54(0x1b7)](_0x3a1f05,_0x4bca6d));let _0x4f5c90=_0x4bca6d[_0x341f54(0x1c6)](_0x5e27c2);return _0x4f5c90||(_0x4f5c90=new E(),_0x4bca6d[_0x341f54(0x1b7)](_0x5e27c2,_0x4f5c90)),_0x4f5c90;}[_0x166d1f(0x196)](_0x1f1e72,_0x23fa18,_0x295f1f,_0x4b0dc6,_0x3cd301){const _0x191789=_0x166d1f;this['_ensureShapeModelManager'](_0x1f1e72,_0x23fa18)[_0x191789(0x1b0)](_0x295f1f,_0x4b0dc6,_0x3cd301);}['removeShape'](_0x4f0461,_0x3d9bdc,_0x41abeb){const _0x3416a9=_0x166d1f;this[_0x3416a9(0x1d4)](_0x4f0461,_0x3d9bdc)['removeShape'](_0x41abeb);}[_0x166d1f(0x1c3)](_0x507ebd,_0x1a20f0,_0xd666dc){const _0x488ea2=_0x166d1f;return this[_0x488ea2(0x1d4)](_0x507ebd,_0x1a20f0)[_0x488ea2(0x1a2)](_0xd666dc);}[_0x166d1f(0x1a2)](_0x319bcc,_0x85ecb4,_0x2fee70){const _0x359d4d=_0x166d1f;return this[_0x359d4d(0x1d4)](_0x319bcc,_0x85ecb4)[_0x359d4d(0x1a2)](_0x2fee70);}['hasShape'](_0x57d67a,_0x342643,_0xac9f54){const _0x3d2e45=_0x166d1f;return this[_0x3d2e45(0x1d4)](_0x57d67a,_0x342643)[_0x3d2e45(0x1c0)](_0xac9f54);}['getShapeTypeById'](_0x35e53d,_0x564684,_0x1467cf){const _0x4383b8=_0x166d1f;return this[_0x4383b8(0x1d4)](_0x35e53d,_0x564684)[_0x4383b8(0x1a2)](_0x1467cf);}[_0x166d1f(0x1bf)](_0x491f6b,_0x426f9f,_0x250bef){const _0x176450=_0x166d1f,_0x6cd587=this['_ensureShapeModelManager'](_0x491f6b,_0x426f9f);if(!_0x6cd587[_0x176450(0x1a2)](_0x250bef))return;const _0x153f3f=_0x6cd587[_0x176450(0x1a1)][_0x176450(0x1c6)](_0x250bef);if(_0x153f3f)return _0x153f3f[_0x176450(0x1a0)]();}[_0x166d1f(0x1b5)](_0x3ca1d9,_0x1a1e69,_0xf83b26){const _0x9dd8ff=_0x166d1f;return this[_0x9dd8ff(0x1d4)](_0x3ca1d9,_0x1a1e69)[_0x9dd8ff(0x1a1)][_0x9dd8ff(0x1c6)](_0xf83b26);}['getBasicShapeRelation'](_0xfca483,_0x307968,_0x20beac){return this['_ensureShapeModelManager'](_0xfca483,_0x307968)['getBasicShapeRelation'](_0x20beac);}['getLineShapeRelation'](_0x13eba9,_0x3e6a20,_0x228104){const _0x23cc57=_0x166d1f,_0x1be474=this[_0x23cc57(0x1d4)](_0x13eba9,_0x3e6a20)[_0x23cc57(0x1a1)][_0x23cc57(0x1c6)](_0x228104);if(_0x1be474)return _0x1be474[_0x23cc57(0x1cd)]();}['setShapeType'](){}[_0x166d1f(0x19b)](_0xd79395){const _0x1daab7=_0x166d1f,_0x5f214e={},_0x24d47b=this[_0x1daab7(0x1d1)][_0x1daab7(0x1c6)](_0xd79395);return _0x24d47b&&_0x24d47b[_0x1daab7(0x1b6)]((_0x1d3738,_0x246a80)=>{const _0x281e09=_0x1daab7,_0x392631=_0x1d3738[_0x281e09(0x1ba)]();_0x392631[_0x281e09(0x1b2)]>0x0&&(_0x5f214e[_0x246a80]=_0x392631);}),JSON[_0x1daab7(0x18c)](_0x5f214e);}[_0x166d1f(0x191)](_0x1900d4,_0x34f3f6){const _0x33d945=_0x166d1f;Object[_0x33d945(0x199)](_0x34f3f6)[_0x33d945(0x1b6)](_0x45bf94=>{const _0x42fd0f=_0x33d945;this[_0x42fd0f(0x1d4)](_0x1900d4,_0x45bf94)[_0x42fd0f(0x18d)](_0x34f3f6[_0x45bf94]);});}[_0x166d1f(0x1ba)](){const _0x13bad8=_0x166d1f,_0x18be98={};return this[_0x13bad8(0x1d1)][_0x13bad8(0x1b6)]((_0x4d0e7e,_0x10f2b9)=>{const _0x71fba=_0x13bad8;_0x18be98[_0x10f2b9]={},_0x4d0e7e[_0x71fba(0x1b6)]((_0x2f7f31,_0x3ac202)=>{_0x18be98[_0x10f2b9][_0x3ac202]=_0x2f7f31['toJSON']();});}),_0x18be98;}['fromJSON'](_0x46f812){const _0x59ebe0=_0x166d1f;Object[_0x59ebe0(0x199)](_0x46f812)[_0x59ebe0(0x1b6)](_0x559d3f=>{const _0x20610b=_0x59ebe0,_0x272e51=_0x46f812[_0x559d3f];Object[_0x20610b(0x199)](_0x272e51)[_0x20610b(0x1b6)](_0x27f93a=>{const _0x2762e4=_0x20610b;this['_ensureShapeModelManager'](_0x559d3f,_0x27f93a)[_0x2762e4(0x18d)](_0x272e51[_0x27f93a]);});});}[_0x166d1f(0x1bd)](){const _0x45eb9a=_0x166d1f;this['_resourcesManagerService'][_0x45eb9a(0x1cc)]({'pluginName':Y,'businesses':[_0xa31f1a[_0x45eb9a(0x192)]],'toJson':_0x4681ba=>this['_serializeShapeForUnit'](_0x4681ba),'parseJson':_0x504335=>JSON[_0x45eb9a(0x18e)](_0x504335),'onLoad':(_0x51c5c4,_0x1359c3)=>{this['_deserializeShapeForUnit'](_0x51c5c4,_0x1359c3);},'onUnLoad':_0x32b534=>{const _0x54d29e=_0x45eb9a,_0x68d429=this['_shapeModelManagerMap'][_0x54d29e(0x1c6)](_0x32b534);_0x68d429&&(_0x68d429[_0x54d29e(0x1b6)](_0x32d4ce=>{_0x32d4ce['dispose']();}),this[_0x54d29e(0x1d1)]['delete'](_0x32b534));}});}['dispose'](){this['_shapeModelManagerMap']['forEach'](_0x3c423e=>{const _0x56d5a5=_0x5854;_0x3c423e[_0x56d5a5(0x1b6)](_0x30c0fe=>{_0x30c0fe['dispose']();});});}};i=K([W(0x0,_0x266c4d)],i);const _={'id':_0x166d1f(0x193),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x49a88f,_0x3ac100)=>{const _0x5025ee=_0x166d1f,{unitId:_0x26d063,subUnitId:_0x5926de,shapeType:_0x5bd4f6,shapeId:_0x33e85e,shapeData:_0x46f6e}=_0x3ac100,_0x29ee30=_0x49a88f[_0x5025ee(0x1c6)](i)[_0x5025ee(0x1b5)](_0x26d063,_0x5926de,_0x33e85e);return _0x29ee30&&(_0x29ee30[_0x5025ee(0x1c1)](_0x5bd4f6),_0x46f6e&&(_0x29ee30==null||_0x29ee30[_0x5025ee(0x19d)](_0x46f6e))),!0x0;}},de={'id':_0x166d1f(0x1ad),'type':_0x57565f[_0x166d1f(0x1bc)],'handler':(_0x2547f2,_0x195d2d)=>{const _0x5f2ab6=_0x166d1f;if(!_0x195d2d)return!0x1;const _0x8f1180=_0x2547f2['get'](_0x165bcf),_0x52d3db=_0x2547f2[_0x5f2ab6(0x1c6)](i),_0x1bfa45=_0x2547f2[_0x5f2ab6(0x1c6)](_0x41c357),_0x30dd24=[],_0xfe3978=[],{unitId:_0x16d1f0,subUnitId:_0x549bcd,shapeId:_0x536a09,shapeType:_0x30efb9,shapeData:_0x4b170a}=_0x195d2d,_0x3fda8c=_0x52d3db[_0x5f2ab6(0x1b5)](_0x16d1f0,_0x549bcd,_0x536a09);if(_0x3fda8c){const _0x94c1ef=_0x3fda8c[_0x5f2ab6(0x1a2)](),_0x3e2692=Object[_0x5f2ab6(0x1a5)]({},_0x3fda8c['getShapeData']()),_0x2362bb={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x30efb9,'shapeData':_0x4b170a},_0x257654={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x94c1ef,'shapeData':_0x3e2692};return _0x30dd24[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x2362bb}),_0xfe3978[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x257654}),_0x30dd24[_0x5f2ab6(0x1c2)](_0x51bb1=>_0x8f1180[_0x5f2ab6(0x1ac)](_0x51bb1['id'],_0x51bb1['params']))&&_0x1bfa45[_0x5f2ab6(0x194)]({'unitID':_0x16d1f0,'redoMutations':[..._0x30dd24],'undoMutations':[..._0xfe3978]}),!0x0;}return!0x1;}},q={'id':'sheet.mutation.insert-shape','type':_0x57565f['MUTATION'],'handler':(_0x34117c,_0x59c807)=>{const _0x33ba1a=_0x166d1f,{unitId:_0x5cb846,subUnitId:_0x1ace1d,shapeType:_0x75fb1f,shapeId:_0x14db89,shapeData:_0x47bbb5}=_0x59c807;return _0x34117c[_0x33ba1a(0x1c6)](i)[_0x33ba1a(0x196)](_0x5cb846,_0x1ace1d,_0x75fb1f,_0x14db89,_0x47bbb5),!0x0;}},Q={'id':'sheet.mutation.remove-shape','type':_0x57565f['MUTATION'],'handler':(_0x55850b,_0xa0f6ba)=>{const {unitId:_0x2641c9,subUnitId:_0x513dbb,shapeId:_0xf3f018}=_0xa0f6ba;return _0x55850b['get'](i)['removeShape'](_0x2641c9,_0x513dbb,_0xf3f018),!0x0;}},X={'id':_0x166d1f(0x1b3),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x5b77ec,_0x205a62)=>{const _0x2e8cb9=_0x166d1f,{unitId:_0xe315b7,subUnitId:_0x16715a,shapeType:_0x1066dd,shapeId:_0x48c828,shapeData:_0x371b50}=_0x205a62,_0xf3d248=_0x5b77ec['get'](i)['getShapeModel'](_0xe315b7,_0x16715a,_0x48c828);return _0xf3d248&&(_0x1066dd!==void 0x0&&_0xf3d248[_0x2e8cb9(0x1c1)](_0x1066dd),_0x371b50&&(_0xf3d248==null||_0xf3d248[_0x2e8cb9(0x19d)](_0x371b50,!0x0))),!0x0;}},Z=_0x166d1f(0x1c5),k=_0x166d1f(0x19a),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],te=(_0x64e1f2,_0x211fff,_0x95300)=>_0x211fff in _0x64e1f2?ae(_0x64e1f2,_0x211fff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x95300}):_0x64e1f2[_0x211fff]=_0x95300,ne=(_0x394c21,_0x12d862,_0x521883,_0x589ddd)=>{const _0x1a5ab5=_0x166d1f;for(var _0x499e74=_0x589ddd>0x1?void 0x0:_0x589ddd?se(_0x12d862,_0x521883):_0x12d862,_0x378eee=_0x394c21[_0x1a5ab5(0x1b2)]-0x1,_0x1c4b97;_0x378eee>=0x0;_0x378eee--)(_0x1c4b97=_0x394c21[_0x378eee])&&(_0x499e74=_0x1c4b97(_0x499e74)||_0x499e74);return _0x499e74;},u=(_0x4223d2,_0x233277)=>(_0x481f0a,_0x3c49bf)=>_0x233277(_0x481f0a,_0x3c49bf,_0x4223d2),M=(_0x825a34,_0xef644f,_0xaf425c)=>te(_0x825a34,typeof _0xef644f!='symbol'?_0xef644f+'':_0xef644f,_0xaf425c);let d=class extends _0x3be3a3{constructor(_0x59c0e5=v,_0x472f62,_0x1e1bd5,_0x2b4c44){const _0x357cfa=_0x166d1f;super(),this[_0x357cfa(0x1d3)]=_0x59c0e5,this['_injector']=_0x472f62,this[_0x357cfa(0x19f)]=_0x1e1bd5,this[_0x357cfa(0x1d2)]=_0x2b4c44;const {..._0x181ecd}=_0x4bc9ae({},v,this['_config']);this[_0x357cfa(0x1d2)][_0x357cfa(0x1af)](ee,_0x181ecd),this[_0x357cfa(0x1b4)]();}['onRendered'](){const _0x704c5=_0x166d1f;_0x5e86ea(this[_0x704c5(0x1be)],[]);}[_0x166d1f(0x1ab)](){const _0x382e7b=_0x166d1f,_0x103665=this['_injector'];[[E],[i]][_0x382e7b(0x1b6)](_0x185ffe=>_0x103665[_0x382e7b(0x197)](_0x185ffe));}[_0x166d1f(0x1b4)](){const _0xe8a744=_0x166d1f;[q,Q,_,X][_0xe8a744(0x1b6)](_0x45ff82=>this['disposeWithMe'](this[_0xe8a744(0x19f)][_0xe8a744(0x1c9)](_0x45ff82)));}};M(d,_0x166d1f(0x1a8),_0xa31f1a[_0x166d1f(0x192)]),M(d,_0x166d1f(0x1a4),_0x166d1f(0x1a6)),M(d,_0x166d1f(0x1a3),O['name']),M(d,_0x166d1f(0x1ce),O[_0x166d1f(0x1ce)]),d=ne([_0x13c40b(_0x3f3d2a),u(0x1,_0x878c89(_0x25ab9b)),u(0x2,_0x165bcf),u(0x3,_0x340db0)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
function _0x4a39(_0xf09c84,_0x41d3fb){_0xf09c84=_0xf09c84-0xf7;const _0x3e0a2c=_0x3e0a();let _0x4a3940=_0x3e0a2c[_0xf09c84];return _0x4a3940;}const _0x1a85a6=_0x4a39;(function(_0x3e2e04,_0x3edb32){const _0x305296=_0x4a39,_0x42e9c7=_0x3e2e04();while(!![]){try{const _0x545d0f=parseInt(_0x305296(0x14a))/0x1*(parseInt(_0x305296(0x14b))/0x2)+-parseInt(_0x305296(0x136))/0x3*(parseInt(_0x305296(0x11a))/0x4)+parseInt(_0x305296(0x10e))/0x5*(-parseInt(_0x305296(0x109))/0x6)+-parseInt(_0x305296(0x107))/0x7*(parseInt(_0x305296(0xfa))/0x8)+-parseInt(_0x305296(0x142))/0x9+parseInt(_0x305296(0x118))/0xa+parseInt(_0x305296(0x104))/0xb;if(_0x545d0f===_0x3edb32)break;else _0x42e9c7['push'](_0x42e9c7['shift']());}catch(_0x2b9678){_0x42e9c7['push'](_0x42e9c7['shift']());}}}(_0x3e0a,0xa000e));import{CommandType as _0x1b86b5,DependentOn as _0x5de875,Disposable as _0x216056,ICommandService as _0x2caded,IConfigService as _0x242623,IResourceManagerService as _0x2cc90d,IUndoRedoService as _0x55df66,Inject as _0x32fbec,Injector as _0x1f0e5c,Plugin as _0x5786ba,UniverInstanceType as _0x553e50,merge as _0x91ce1f,touchDependencies as _0x468807}from'@univerjs/core';import{ShapeModel as _0x380646,isConnectorShape as _0x5e5cf2}from'@univerjs-pro/engine-shape';function _0x3e0a(){const _0x584f84=['getBasicShapeRelation','@univerjs-pro/sheets-shape','params','getShapeTypeById','stringify','9dIoTzA','getShapeDataById','sheet.mutation.update-shape-type','function','_deserializeShapeForUnit','syncExecuteCommand','UNIVER_SHEET','set','constructor','MUTATION','from','object','704691vaiewP','insertShape','_disposed','string','onRendered','0.18.0-insiders.20260328-0842384','_injector','delete','88807uHOoYd','12nmRoKb','symbol','forEach','sheet.mutation.remove-shape','toPrimitive','toJSON','getLineShapeRelation','dispose','onStarting','addShape','16bDQEfU','clear','defineProperty','_serializeShapeForUnit','decorate','parse','getBasicShapeType','call','sheet.mutation.insert-shape','sheets-shape.config','11527824KXGabG','removeShape','_ensureShapeModelManager','286853yrwmQW','packageName','6PRNrTY','registerPluginResource','getShapeRelation','_configService','getShapeType','3331340fmlgKZ','pluginName','setConfig','_initCommands','COMMAND','assign','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','shapeId','3313420myLkdY','every','573692qgWUMj','getShapeModel','setShapeData','_initSnapshot','getOwnPropertyDescriptor','setShapeType','get','getShapeData','registerCommand','fromJSON','sheet.mutation.update-shape-data','add','_shapeModelManagerMap','keys','_resourcesManagerService','_linesIds','SHEET_SHAPE_PLUGIN','push','_commandService','hasShape','prototype','_shapes','length'];_0x3e0a=function(){return _0x584f84;};return _0x3e0a();}import{UniverLicensePlugin as _0x162275}from'@univerjs-pro/license';function g(_0x4938ee){'@babel/helpers - typeof';const _0x464ccd=_0x4a39;return g=typeof Symbol==_0x464ccd(0x139)&&typeof Symbol[_0x464ccd(0x116)]==_0x464ccd(0x14c)?function(_0x1bceb4){return typeof _0x1bceb4;}:function(_0x410a20){const _0x49a02b=_0x464ccd;return _0x410a20&&typeof Symbol=='function'&&_0x410a20[_0x49a02b(0x13e)]===Symbol&&_0x410a20!==Symbol[_0x49a02b(0x12e)]?'symbol':typeof _0x410a20;},g(_0x4938ee);}function _(_0x5366e4,_0x518fc4){const _0x30da7b=_0x4a39;if(g(_0x5366e4)!='object'||!_0x5366e4)return _0x5366e4;var _0x4928e5=_0x5366e4[Symbol[_0x30da7b(0x14f)]];if(_0x4928e5!==void 0x0){var _0x605717=_0x4928e5[_0x30da7b(0x101)](_0x5366e4,_0x518fc4||'default');if(g(_0x605717)!=_0x30da7b(0x141))return _0x605717;throw TypeError(_0x30da7b(0x115));}return(_0x518fc4===_0x30da7b(0x145)?String:Number)(_0x5366e4);}function v(_0x16c92e){const _0x1b156a=_0x4a39;var _0x4f1f09=_(_0x16c92e,_0x1b156a(0x145));return g(_0x4f1f09)==_0x1b156a(0x14c)?_0x4f1f09:_0x4f1f09+'';}function y(_0x589355,_0x4b6588,_0x1f903b){const _0x3f66e0=_0x4a39;return(_0x4b6588=v(_0x4b6588))in _0x589355?Object[_0x3f66e0(0xfc)](_0x589355,_0x4b6588,{'value':_0x1f903b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589355[_0x4b6588]=_0x1f903b,_0x589355;}var b=class extends _0x216056{constructor(){const _0x2f714e=_0x4a39;super(),y(this,_0x2f714e(0x12f),new Map()),y(this,'_linesIds',new Set()),y(this,'_groupIds',new Set());}[_0x1a85a6(0xf9)](_0x4e78de,_0x4e9ef1,_0x3a24a5){const _0x5e873f=_0x1a85a6;let _0x26b88b=new _0x380646(_0x4e78de,_0x4e9ef1,_0x3a24a5);return this[_0x5e873f(0x12f)][_0x5e873f(0x13d)](_0x4e9ef1,_0x26b88b),_0x5e5cf2(_0x4e78de)&&this[_0x5e873f(0x129)][_0x5e873f(0x125)](_0x4e9ef1),_0x26b88b;}[_0x1a85a6(0x131)](_0x21c7f9){const _0x5a6059=_0x1a85a6;let _0x5d11c4=[];for(let _0x527ff8 of this['_linesIds']){let _0x46b598=this[_0x5a6059(0x12f)][_0x5a6059(0x120)](_0x527ff8);if(_0x46b598){let _0x38e08b=_0x46b598[_0x5a6059(0x10b)]();if(_0x38e08b){var _0x148588,_0x47e95b;((_0x148588=_0x38e08b[_0x5a6059(0x140)])==null?void 0x0:_0x148588[_0x5a6059(0x117)])===_0x21c7f9&&_0x5d11c4[_0x5a6059(0x12b)]({..._0x38e08b[_0x5a6059(0x140)],'lineShapeId':_0x527ff8,'isFrom':!0x0}),((_0x47e95b=_0x38e08b['to'])==null?void 0x0:_0x47e95b['shapeId'])===_0x21c7f9&&_0x5d11c4[_0x5a6059(0x12b)]({..._0x38e08b['to'],'lineShapeId':_0x527ff8,'isFrom':!0x1});}}}return _0x5d11c4;}[_0x1a85a6(0x151)](_0x3f4654){const _0x19dd1c=_0x1a85a6;let _0x12331a=this['_shapes'][_0x19dd1c(0x120)](_0x3f4654);if(_0x12331a)return _0x12331a[_0x19dd1c(0x10b)]();}[_0x1a85a6(0x10d)](_0x55e724){const _0x611989=_0x1a85a6;let _0x498026=this[_0x611989(0x12f)][_0x611989(0x120)](_0x55e724);if(_0x498026)return _0x498026['getShapeType']();}['hasShape'](_0x2da3d7){const _0x281625=_0x1a85a6;return this[_0x281625(0x12f)]['has'](_0x2da3d7);}[_0x1a85a6(0x105)](_0x14834b){const _0x93c43d=_0x1a85a6;let _0x3887aa=this[_0x93c43d(0x12f)]['get'](_0x14834b);_0x3887aa&&(_0x5e5cf2(_0x3887aa[_0x93c43d(0x10d)]())&&this[_0x93c43d(0x129)][_0x93c43d(0x149)](_0x14834b),this['_shapes'][_0x93c43d(0x149)](_0x14834b));}['toJSON'](){const _0x433814=_0x1a85a6;let _0x212589=[];return this[_0x433814(0x12f)][_0x433814(0x14d)](_0x1e03f3=>{const _0x34aaf9=_0x433814;_0x212589[_0x34aaf9(0x12b)](_0x1e03f3[_0x34aaf9(0x150)]());}),_0x212589;}[_0x1a85a6(0x123)](_0x559f91){const _0xef7c96=_0x1a85a6;for(let _0x1ba343 of _0x559f91){let {id:_0x1b3a0f,shapeType:_0x4ca7ff}=_0x1ba343,_0x5a4e83=this['addShape'](_0x4ca7ff,_0x1b3a0f,_0x1ba343['shapeData']);_0x5a4e83&&_0x5a4e83['isLineShape']()&&this[_0xef7c96(0x129)][_0xef7c96(0x125)](_0x1b3a0f);}}[_0x1a85a6(0xf7)](){const _0x3fb6e7=_0x1a85a6;this[_0x3fb6e7(0x144)]||(this[_0x3fb6e7(0x12f)]['forEach'](_0x513584=>{_0x513584['dispose']();}),this[_0x3fb6e7(0x12f)][_0x3fb6e7(0xfb)](),this[_0x3fb6e7(0x129)]['clear'](),this['_groupIds'][_0x3fb6e7(0xfb)](),super['dispose']());}};function x(_0x4e2eb8,_0x1c6f49){return function(_0x57c8ce,_0x391cd3){_0x1c6f49(_0x57c8ce,_0x391cd3,_0x4e2eb8);};}function S(_0x45ca21,_0x533e23,_0x3e8792,_0x34629c){const _0x4b2d1a=_0x1a85a6;var _0x354ca0=arguments[_0x4b2d1a(0x130)],_0x313da5=_0x354ca0<0x3?_0x533e23:_0x34629c===null?_0x34629c=Object[_0x4b2d1a(0x11e)](_0x533e23,_0x3e8792):_0x34629c,_0x180b8d;if(typeof Reflect==_0x4b2d1a(0x141)&&typeof Reflect[_0x4b2d1a(0xfe)]==_0x4b2d1a(0x139))_0x313da5=Reflect[_0x4b2d1a(0xfe)](_0x45ca21,_0x533e23,_0x3e8792,_0x34629c);else{for(var _0x3a894d=_0x45ca21[_0x4b2d1a(0x130)]-0x1;_0x3a894d>=0x0;_0x3a894d--)(_0x180b8d=_0x45ca21[_0x3a894d])&&(_0x313da5=(_0x354ca0<0x3?_0x180b8d(_0x313da5):_0x354ca0>0x3?_0x180b8d(_0x533e23,_0x3e8792,_0x313da5):_0x180b8d(_0x533e23,_0x3e8792))||_0x313da5);}return _0x354ca0>0x3&&_0x313da5&&Object[_0x4b2d1a(0xfc)](_0x533e23,_0x3e8792,_0x313da5),_0x313da5;}let C=class extends _0x216056{constructor(_0x21fe77){const _0x3853cc=_0x1a85a6;super(),this[_0x3853cc(0x128)]=_0x21fe77,y(this,_0x3853cc(0x126),new Map()),this['_initSnapshot']();}[_0x1a85a6(0x106)](_0x17aeda,_0x3fec78){const _0x2119c0=_0x1a85a6;let _0x3fcfba=this[_0x2119c0(0x126)][_0x2119c0(0x120)](_0x17aeda);_0x3fcfba||(_0x3fcfba=new Map(),this[_0x2119c0(0x126)][_0x2119c0(0x13d)](_0x17aeda,_0x3fcfba));let _0x1cd0a9=_0x3fcfba[_0x2119c0(0x120)](_0x3fec78);return _0x1cd0a9||(_0x1cd0a9=new b(),_0x3fcfba[_0x2119c0(0x13d)](_0x3fec78,_0x1cd0a9)),_0x1cd0a9;}[_0x1a85a6(0x143)](_0x4ec3cb,_0x33a674,_0x18615c,_0x532507,_0x598b4c){const _0x33ed39=_0x1a85a6;this['_ensureShapeModelManager'](_0x4ec3cb,_0x33a674)[_0x33ed39(0xf9)](_0x18615c,_0x532507,_0x598b4c);}[_0x1a85a6(0x105)](_0x460fbf,_0x68d524,_0x1dcc20){const _0x2b5c93=_0x1a85a6;this[_0x2b5c93(0x106)](_0x460fbf,_0x68d524)['removeShape'](_0x1dcc20);}[_0x1a85a6(0x100)](_0x291dad,_0x3a1a06,_0xfb52d2){return this['_ensureShapeModelManager'](_0x291dad,_0x3a1a06)['getShapeType'](_0xfb52d2);}[_0x1a85a6(0x10d)](_0x4ba653,_0xbab38,_0x21b65e){const _0x94eb9b=_0x1a85a6;return this['_ensureShapeModelManager'](_0x4ba653,_0xbab38)[_0x94eb9b(0x10d)](_0x21b65e);}[_0x1a85a6(0x12d)](_0x2b1ebf,_0xbaaabf,_0x53f8c7){const _0x587ae3=_0x1a85a6;return this[_0x587ae3(0x106)](_0x2b1ebf,_0xbaaabf)[_0x587ae3(0x12d)](_0x53f8c7);}[_0x1a85a6(0x134)](_0x44e18d,_0x4a740f,_0x242fec){const _0x485264=_0x1a85a6;return this[_0x485264(0x106)](_0x44e18d,_0x4a740f)[_0x485264(0x10d)](_0x242fec);}[_0x1a85a6(0x137)](_0x2d57ec,_0x20a199,_0x59a670){const _0x1fc3ff=_0x1a85a6;let _0x524f9d=this[_0x1fc3ff(0x106)](_0x2d57ec,_0x20a199);if(!_0x524f9d[_0x1fc3ff(0x10d)](_0x59a670))return;let _0x1e1eb0=_0x524f9d[_0x1fc3ff(0x12f)]['get'](_0x59a670);if(_0x1e1eb0)return _0x1e1eb0[_0x1fc3ff(0x121)]();}['getShapeModel'](_0x5a9a7f,_0x2ca9ff,_0x2640d7){const _0x5a23cf=_0x1a85a6;return this[_0x5a23cf(0x106)](_0x5a9a7f,_0x2ca9ff)[_0x5a23cf(0x12f)][_0x5a23cf(0x120)](_0x2640d7);}['getBasicShapeRelation'](_0x503815,_0x4a619b,_0x418a03){return this['_ensureShapeModelManager'](_0x503815,_0x4a619b)['getBasicShapeRelation'](_0x418a03);}[_0x1a85a6(0x151)](_0x1dd49b,_0x1ed7af,_0x4db473){const _0x4bdd9c=_0x1a85a6;let _0x4fa1e8=this['_ensureShapeModelManager'](_0x1dd49b,_0x1ed7af)[_0x4bdd9c(0x12f)][_0x4bdd9c(0x120)](_0x4db473);if(_0x4fa1e8)return _0x4fa1e8[_0x4bdd9c(0x10b)]();}[_0x1a85a6(0x11f)](){}[_0x1a85a6(0xfd)](_0x2d05ea){const _0x5ac5bd=_0x1a85a6;let _0x2e4bc5={},_0x2c78e5=this[_0x5ac5bd(0x126)][_0x5ac5bd(0x120)](_0x2d05ea);return _0x2c78e5&&_0x2c78e5[_0x5ac5bd(0x14d)]((_0x359ee2,_0x2027eb)=>{const _0x48eca0=_0x5ac5bd;let _0x1c3268=_0x359ee2[_0x48eca0(0x150)]();_0x1c3268[_0x48eca0(0x130)]>0x0&&(_0x2e4bc5[_0x2027eb]=_0x1c3268);}),JSON[_0x5ac5bd(0x135)](_0x2e4bc5);}[_0x1a85a6(0x13a)](_0x33666e,_0xda6d3f){const _0x47eedd=_0x1a85a6;Object[_0x47eedd(0x127)](_0xda6d3f)['forEach'](_0x5e5db0=>{const _0x4c3ed1=_0x47eedd;this[_0x4c3ed1(0x106)](_0x33666e,_0x5e5db0)['fromJSON'](_0xda6d3f[_0x5e5db0]);});}['toJSON'](){const _0x203486=_0x1a85a6;let _0x4212ab={};return this[_0x203486(0x126)]['forEach']((_0x57dca6,_0x5e3117)=>{_0x4212ab[_0x5e3117]={},_0x57dca6['forEach']((_0x26d5ce,_0x23ac7f)=>{_0x4212ab[_0x5e3117][_0x23ac7f]=_0x26d5ce['toJSON']();});}),_0x4212ab;}[_0x1a85a6(0x123)](_0x55afbc){const _0x5e6c4b=_0x1a85a6;Object[_0x5e6c4b(0x127)](_0x55afbc)[_0x5e6c4b(0x14d)](_0x2725b5=>{const _0x2d465b=_0x5e6c4b;let _0x2a1f9a=_0x55afbc[_0x2725b5];Object['keys'](_0x2a1f9a)[_0x2d465b(0x14d)](_0x5b40b9=>{const _0x6a412a=_0x2d465b;this[_0x6a412a(0x106)](_0x2725b5,_0x5b40b9)[_0x6a412a(0x123)](_0x2a1f9a[_0x5b40b9]);});});}[_0x1a85a6(0x11d)](){const _0x36d4e0=_0x1a85a6;this[_0x36d4e0(0x128)][_0x36d4e0(0x10a)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x553e50[_0x36d4e0(0x13c)]],'toJson':_0x591170=>this['_serializeShapeForUnit'](_0x591170),'parseJson':_0x5ce6e7=>JSON[_0x36d4e0(0xff)](_0x5ce6e7),'onLoad':(_0x40456f,_0x14ee5f)=>{this['_deserializeShapeForUnit'](_0x40456f,_0x14ee5f);},'onUnLoad':_0xbf036d=>{const _0x359523=_0x36d4e0;let _0x19638a=this[_0x359523(0x126)]['get'](_0xbf036d);_0x19638a&&(_0x19638a[_0x359523(0x14d)](_0x1c1e95=>{const _0x1b992d=_0x359523;_0x1c1e95[_0x1b992d(0xf7)]();}),this[_0x359523(0x126)]['delete'](_0xbf036d));}});}[_0x1a85a6(0xf7)](){const _0xfbc0d6=_0x1a85a6;this[_0xfbc0d6(0x126)][_0xfbc0d6(0x14d)](_0x1b1a17=>{const _0x54dd21=_0xfbc0d6;_0x1b1a17[_0x54dd21(0x14d)](_0x31b779=>{_0x31b779['dispose']();});});}};C=S([x(0x0,_0x2cc90d)],C);const w={'id':_0x1a85a6(0x138),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x323801,_0x22920c)=>{const _0x1fd01e=_0x1a85a6;let {unitId:_0x4ebf34,subUnitId:_0x30ef52,shapeType:_0x2c0a9e,shapeId:_0x461791,shapeData:_0x1e1a0b}=_0x22920c,_0x34723f=_0x323801['get'](C)[_0x1fd01e(0x11b)](_0x4ebf34,_0x30ef52,_0x461791);return _0x34723f&&(_0x34723f[_0x1fd01e(0x11f)](_0x2c0a9e),_0x1e1a0b&&(_0x34723f==null||_0x34723f[_0x1fd01e(0x11c)](_0x1e1a0b))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':_0x1b86b5[_0x1a85a6(0x112)],'handler':(_0x459897,_0x7cdb1b)=>{const _0x34d96f=_0x1a85a6;if(!_0x7cdb1b)return!0x1;let _0x1de157=_0x459897[_0x34d96f(0x120)](_0x2caded),_0x56bf66=_0x459897[_0x34d96f(0x120)](C),_0x3011a1=_0x459897[_0x34d96f(0x120)](_0x55df66),_0x938eeb=[],_0x3385c9=[],{unitId:_0x4db0d9,subUnitId:_0x3ebd97,shapeId:_0x32223e,shapeType:_0x24b0c9,shapeData:_0x3763fb}=_0x7cdb1b,_0x2b96bf=_0x56bf66[_0x34d96f(0x11b)](_0x4db0d9,_0x3ebd97,_0x32223e);if(_0x2b96bf){let _0x51c838=_0x2b96bf[_0x34d96f(0x10d)](),_0x197db3=Object[_0x34d96f(0x113)]({},_0x2b96bf[_0x34d96f(0x121)]()),_0x301f68={'unitId':_0x4db0d9,'subUnitId':_0x3ebd97,'shapeId':_0x32223e,'shapeType':_0x24b0c9,'shapeData':_0x3763fb},_0x433351={'unitId':_0x4db0d9,'subUnitId':_0x3ebd97,'shapeId':_0x32223e,'shapeType':_0x51c838,'shapeData':_0x197db3};return _0x938eeb[_0x34d96f(0x12b)]({'id':w['id'],'params':_0x301f68}),_0x3385c9[_0x34d96f(0x12b)]({'id':w['id'],'params':_0x433351}),_0x938eeb[_0x34d96f(0x119)](_0x36ac7c=>_0x1de157[_0x34d96f(0x13b)](_0x36ac7c['id'],_0x36ac7c[_0x34d96f(0x133)]))&&_0x3011a1['pushUndoRedo']({'unitID':_0x4db0d9,'redoMutations':[..._0x938eeb],'undoMutations':[..._0x3385c9]}),!0x0;}return!0x1;}},E={'id':_0x1a85a6(0x102),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x5868ca,_0x19f639)=>{const _0x8dbbb0=_0x1a85a6;let {unitId:_0x4ab96f,subUnitId:_0x5e2480,shapeType:_0x424efd,shapeId:_0x2f41f1,shapeData:_0x502704}=_0x19f639;return _0x5868ca['get'](C)[_0x8dbbb0(0x143)](_0x4ab96f,_0x5e2480,_0x424efd,_0x2f41f1,_0x502704),!0x0;}},D={'id':_0x1a85a6(0x14e),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x4b070b,_0x1019b6)=>{const _0x1c4b36=_0x1a85a6;let {unitId:_0x332317,subUnitId:_0x5b989c,shapeId:_0x557370}=_0x1019b6;return _0x4b070b['get'](C)[_0x1c4b36(0x105)](_0x332317,_0x5b989c,_0x557370),!0x0;}},O={'id':_0x1a85a6(0x124),'type':_0x1b86b5[_0x1a85a6(0x13f)],'handler':(_0x1f89d9,_0x3ad911)=>{const _0x2b9dae=_0x1a85a6;let {unitId:_0x11a1f2,subUnitId:_0x23a1eb,shapeType:_0x14a842,shapeId:_0x5b5ea7,shapeData:_0x546019}=_0x3ad911,_0x5b1cb8=_0x1f89d9['get'](C)[_0x2b9dae(0x11b)](_0x11a1f2,_0x23a1eb,_0x5b5ea7);return _0x5b1cb8&&(_0x14a842!==void 0x0&&_0x5b1cb8[_0x2b9dae(0x11f)](_0x14a842),_0x546019&&(_0x5b1cb8==null||_0x5b1cb8[_0x2b9dae(0x11c)](_0x546019,!0x0))),!0x0;}};var k=_0x1a85a6(0x132),A=_0x1a85a6(0x147);const j=_0x1a85a6(0x103);Symbol(j);const M={};let N=class extends _0x5786ba{constructor(_0x12700c=M,_0x26c1d9,_0x489df9,_0x9580bc){const _0x37043b=_0x1a85a6;super(),this[_0x37043b(0x114)]=_0x12700c,this['_injector']=_0x26c1d9,this[_0x37043b(0x12c)]=_0x489df9,this[_0x37043b(0x10c)]=_0x9580bc;let {..._0x26bcc5}=_0x91ce1f({},M,this[_0x37043b(0x114)]);this[_0x37043b(0x10c)][_0x37043b(0x110)](j,_0x26bcc5),this['_initCommands']();}[_0x1a85a6(0x146)](){const _0x4c4203=_0x1a85a6;_0x468807(this[_0x4c4203(0x148)],[]);}[_0x1a85a6(0xf8)](){const _0x3b3bed=_0x1a85a6;let _0x2d705b=this[_0x3b3bed(0x148)];[[b],[C]][_0x3b3bed(0x14d)](_0xad0436=>_0x2d705b[_0x3b3bed(0x125)](_0xad0436));}[_0x1a85a6(0x111)](){const _0x475603=_0x1a85a6;[E,D,w,O][_0x475603(0x14d)](_0x2e4928=>this['disposeWithMe'](this['_commandService'][_0x475603(0x122)](_0x2e4928)));}};y(N,'type',_0x553e50[_0x1a85a6(0x13c)]),y(N,_0x1a85a6(0x10f),_0x1a85a6(0x12a)),y(N,_0x1a85a6(0x108),k),y(N,'version',A),N=S([_0x5de875(_0x162275),x(0x1,_0x32fbec(_0x1f0e5c)),x(0x2,_0x2caded),x(0x3,_0x242623)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { ICommand } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeTypeCommandParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMutation } from '@univerjs/core';
|
|
2
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
3
|
export interface IRemoveSheetsShapeMutationParams extends ISheetCommandSharedParams {
|
|
4
4
|
shapeId: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeDataMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeTypeMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum
|
|
1
|
+
import type { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import { ShapeModel } from '@univerjs-pro/engine-shape';
|
|
2
3
|
import { Disposable } from '@univerjs/core';
|
|
3
4
|
export type IShapeRelationItemWithLineId = IShapeRelationItem & {
|
|
4
5
|
lineShapeId: string;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniverSheetsShapeConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
|
|
2
2
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsShapePlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
1
|
+
import type { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
2
|
import { Disposable, IResourceManagerService } from '@univerjs/core';
|
|
3
3
|
export interface ISheetsShapeResource {
|
|
4
4
|
[subUnitId: string]: IShapeJSONData[];
|
|
@@ -16,9 +16,9 @@ export declare class SheetsShapeService extends Disposable {
|
|
|
16
16
|
hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
|
|
17
17
|
getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
|
|
18
18
|
getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
|
|
19
|
-
getShapeModel(unitId: string, subUnitId: string, shapeId: string): import(
|
|
20
|
-
getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import(
|
|
21
|
-
getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import(
|
|
19
|
+
getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
|
|
20
|
+
getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
|
|
21
|
+
getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
|
|
22
22
|
setShapeType(): void;
|
|
23
23
|
private _serializeShapeForUnit;
|
|
24
24
|
private _deserializeShapeForUnit;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1a0e(_0x14930f,_0x17bae7){_0x14930f=_0x14930f-0x1f2;const _0x1e5285=_0x1e52();let _0x1a0e98=_0x1e5285[_0x14930f];return _0x1a0e98;}(function(_0x4cf8d9,_0xa2e791){const _0x3ca624=_0x1a0e,_0x1f0943=_0x4cf8d9();while(!![]){try{const _0x4a7519=-parseInt(_0x3ca624(0x237))/0x1*(-parseInt(_0x3ca624(0x21c))/0x2)+parseInt(_0x3ca624(0x231))/0x3+-parseInt(_0x3ca624(0x211))/0x4*(-parseInt(_0x3ca624(0x20a))/0x5)+-parseInt(_0x3ca624(0x255))/0x6+parseInt(_0x3ca624(0x248))/0x7+-parseInt(_0x3ca624(0x22f))/0x8*(-parseInt(_0x3ca624(0x23d))/0x9)+-parseInt(_0x3ca624(0x202))/0xa;if(_0x4a7519===_0xa2e791)break;else _0x1f0943['push'](_0x1f0943['shift']());}catch(_0x4289d2){_0x1f0943['push'](_0x1f0943['shift']());}}}(_0x1e52,0xf168b),function(_0x3e63ce,_0x41f468){const _0x4ca16c=_0x1a0e;typeof exports==_0x4ca16c(0x238)&&typeof module<'u'?_0x41f468(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x4ca16c(0x1f3)&&define[_0x4ca16c(0x24a)]?define(['exports','@univerjs/core',_0x4ca16c(0x228),_0x4ca16c(0x217)],_0x41f468):(_0x3e63ce=typeof globalThis<'u'?globalThis:_0x3e63ce||self,_0x41f468(_0x3e63ce[_0x4ca16c(0x21f)]={},_0x3e63ce[_0x4ca16c(0x1f2)],_0x3e63ce[_0x4ca16c(0x233)],_0x3e63ce['UniverProLicense']));}(this,function(_0x7e63bb,_0x4bc444,_0xeb7de0,_0x34050b){'use strict';const _0x2e73d4=_0x1a0e;var _0x5e53cf=Object[_0x2e73d4(0x200)],_0x2703a7=(_0x48a578,_0x55e4c6,_0x57bd5d)=>_0x55e4c6 in _0x48a578?_0x5e53cf(_0x48a578,_0x55e4c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57bd5d}):_0x48a578[_0x55e4c6]=_0x57bd5d,_0x1b3a0b=(_0x203b5b,_0x2fd0f2,_0x2ed60f)=>_0x2703a7(_0x203b5b,typeof _0x2fd0f2!='symbol'?_0x2fd0f2+'':_0x2fd0f2,_0x2ed60f);class _0x488540 extends _0x4bc444[_0x2e73d4(0x20e)]{constructor(){const _0x11e645=_0x2e73d4;super(),_0x1b3a0b(this,_0x11e645(0x22e),new Map()),_0x1b3a0b(this,_0x11e645(0x210),new Set()),_0x1b3a0b(this,'_groupIds',new Set());}['addShape'](_0x54f232,_0x5edec7,_0x2fffac){const _0x2edcc2=_0x2e73d4,_0x393355=new _0xeb7de0[(_0x2edcc2(0x23c))](_0x54f232,_0x5edec7,_0x2fffac);return this[_0x2edcc2(0x22e)]['set'](_0x5edec7,_0x393355),_0xeb7de0[_0x2edcc2(0x206)](_0x54f232)&&this[_0x2edcc2(0x210)][_0x2edcc2(0x22c)](_0x5edec7),_0x393355;}[_0x2e73d4(0x250)](_0x414371){const _0x238ef3=_0x2e73d4;var _0x43c953,_0x2287d2;const _0xd38241=[];for(const _0x1f0fda of this['_linesIds']){const _0x288891=this['_shapes'][_0x238ef3(0x229)](_0x1f0fda);if(_0x288891){const _0x211f7d=_0x288891[_0x238ef3(0x201)]();_0x211f7d&&(((_0x43c953=_0x211f7d[_0x238ef3(0x203)])==null?void 0x0:_0x43c953[_0x238ef3(0x243)])===_0x414371&&_0xd38241[_0x238ef3(0x1f7)]({..._0x211f7d[_0x238ef3(0x203)],'lineShapeId':_0x1f0fda,'isFrom':!0x0}),((_0x2287d2=_0x211f7d['to'])==null?void 0x0:_0x2287d2[_0x238ef3(0x243)])===_0x414371&&_0xd38241[_0x238ef3(0x1f7)]({..._0x211f7d['to'],'lineShapeId':_0x1f0fda,'isFrom':!0x1}));}}return _0xd38241;}[_0x2e73d4(0x23e)](_0x3d39b5){const _0x195bdf=_0x2e73d4,_0x3eb669=this[_0x195bdf(0x22e)][_0x195bdf(0x229)](_0x3d39b5);if(_0x3eb669)return _0x3eb669[_0x195bdf(0x201)]();}[_0x2e73d4(0x22a)](_0x2fa552){const _0x440e91=_0x2e73d4,_0x14a02f=this[_0x440e91(0x22e)]['get'](_0x2fa552);if(_0x14a02f)return _0x14a02f[_0x440e91(0x22a)]();}[_0x2e73d4(0x207)](_0xe9acd0){const _0xf2be01=_0x2e73d4;return this[_0xf2be01(0x22e)][_0xf2be01(0x253)](_0xe9acd0);}['removeShape'](_0x150d0e){const _0x48f634=_0x2e73d4,_0x4d779e=this[_0x48f634(0x22e)][_0x48f634(0x229)](_0x150d0e);_0x4d779e&&(_0xeb7de0[_0x48f634(0x206)](_0x4d779e[_0x48f634(0x22a)]())&&this['_linesIds'][_0x48f634(0x247)](_0x150d0e),this[_0x48f634(0x22e)][_0x48f634(0x247)](_0x150d0e));}['toJSON'](){const _0x1d9bdc=_0x2e73d4,_0x525e5f=[];return this['_shapes'][_0x1d9bdc(0x24e)](_0x578bc3=>{const _0x4dc910=_0x1d9bdc;_0x525e5f[_0x4dc910(0x1f7)](_0x578bc3[_0x4dc910(0x24f)]());}),_0x525e5f;}[_0x2e73d4(0x258)](_0x112168){const _0x15810d=_0x2e73d4;for(const _0x45e65a of _0x112168){const {id:_0x1efe67,shapeType:_0x599454}=_0x45e65a,_0x56f6cc=this['addShape'](_0x599454,_0x1efe67,_0x45e65a['shapeData']);_0x56f6cc&&_0x56f6cc['isLineShape']()&&this['_linesIds'][_0x15810d(0x22c)](_0x1efe67);}}['dispose'](){const _0x29daa4=_0x2e73d4;this[_0x29daa4(0x1fb)]||(this[_0x29daa4(0x22e)][_0x29daa4(0x24e)](_0x56d582=>{const _0x3433d0=_0x29daa4;_0x56d582[_0x3433d0(0x1f9)]();}),this[_0x29daa4(0x22e)][_0x29daa4(0x25b)](),this['_linesIds'][_0x29daa4(0x25b)](),this[_0x29daa4(0x225)][_0x29daa4(0x25b)](),super[_0x29daa4(0x1f9)]());}}var _0x2f8882=Object[_0x2e73d4(0x20d)],_0x24f2f4=(_0x4ac376,_0x267da0,_0x16a24a,_0x34d726)=>{const _0x7c922f=_0x2e73d4;for(var _0x3bb647=_0x34d726>0x1?void 0x0:_0x34d726?_0x2f8882(_0x267da0,_0x16a24a):_0x267da0,_0xc5b162=_0x4ac376[_0x7c922f(0x244)]-0x1,_0x45c42b;_0xc5b162>=0x0;_0xc5b162--)(_0x45c42b=_0x4ac376[_0xc5b162])&&(_0x3bb647=_0x45c42b(_0x3bb647)||_0x3bb647);return _0x3bb647;},_0x51b95c=(_0x58907b,_0x58d257)=>(_0x5bbdb8,_0x7ca0c0)=>_0x58d257(_0x5bbdb8,_0x7ca0c0,_0x58907b);const _0x14fc02=_0x2e73d4(0x209);_0x7e63bb[_0x2e73d4(0x205)]=class extends _0x4bc444[_0x2e73d4(0x20e)]{constructor(_0x5b1341){const _0x5e78fe=_0x2e73d4;super(),_0x1b3a0b(this,_0x5e78fe(0x21b),new Map()),(this['_resourcesManagerService']=_0x5b1341,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x2978ec,_0x291b0e){const _0x344a48=_0x2e73d4;let _0x5b09a0=this[_0x344a48(0x21b)][_0x344a48(0x229)](_0x2978ec);_0x5b09a0||(_0x5b09a0=new Map(),this['_shapeModelManagerMap']['set'](_0x2978ec,_0x5b09a0));let _0x46746e=_0x5b09a0['get'](_0x291b0e);return _0x46746e||(_0x46746e=new _0x488540(),_0x5b09a0['set'](_0x291b0e,_0x46746e)),_0x46746e;}[_0x2e73d4(0x254)](_0x1300be,_0x4e3678,_0x5f485e,_0x3eb7ed,_0x4254dc){const _0x591aaa=_0x2e73d4;this[_0x591aaa(0x219)](_0x1300be,_0x4e3678)['addShape'](_0x5f485e,_0x3eb7ed,_0x4254dc);}[_0x2e73d4(0x24d)](_0xd93fdb,_0x47905a,_0x2dab0c){const _0x3999c0=_0x2e73d4;this[_0x3999c0(0x219)](_0xd93fdb,_0x47905a)[_0x3999c0(0x24d)](_0x2dab0c);}[_0x2e73d4(0x256)](_0x4cfde4,_0x4e013b,_0x1c673d){const _0x9258fd=_0x2e73d4;return this[_0x9258fd(0x219)](_0x4cfde4,_0x4e013b)['getShapeType'](_0x1c673d);}[_0x2e73d4(0x22a)](_0x5599f6,_0x5377ad,_0x5a38c2){const _0x4fa210=_0x2e73d4;return this['_ensureShapeModelManager'](_0x5599f6,_0x5377ad)[_0x4fa210(0x22a)](_0x5a38c2);}['hasShape'](_0x3d67ab,_0x176693,_0x384a3a){return this['_ensureShapeModelManager'](_0x3d67ab,_0x176693)['hasShape'](_0x384a3a);}[_0x2e73d4(0x224)](_0x3740e8,_0x3d362d,_0x349936){const _0x43a69d=_0x2e73d4;return this['_ensureShapeModelManager'](_0x3740e8,_0x3d362d)[_0x43a69d(0x22a)](_0x349936);}[_0x2e73d4(0x1f6)](_0x45d585,_0x3445f9,_0x5826f9){const _0x3d9b8c=_0x2e73d4,_0x3514c1=this['_ensureShapeModelManager'](_0x45d585,_0x3445f9);if(!_0x3514c1[_0x3d9b8c(0x22a)](_0x5826f9))return;const _0x5a9121=_0x3514c1[_0x3d9b8c(0x22e)][_0x3d9b8c(0x229)](_0x5826f9);if(_0x5a9121)return _0x5a9121[_0x3d9b8c(0x20f)]();}[_0x2e73d4(0x21e)](_0x116b3d,_0x5dc818,_0x1a793e){const _0x1770d2=_0x2e73d4;return this[_0x1770d2(0x219)](_0x116b3d,_0x5dc818)[_0x1770d2(0x22e)][_0x1770d2(0x229)](_0x1a793e);}[_0x2e73d4(0x250)](_0x2c4092,_0x4c2d29,_0x5c2a0d){const _0x5ad79a=_0x2e73d4;return this[_0x5ad79a(0x219)](_0x2c4092,_0x4c2d29)[_0x5ad79a(0x250)](_0x5c2a0d);}['getLineShapeRelation'](_0xb475a3,_0x27e7a7,_0x29f0c3){const _0x553d29=_0x2e73d4,_0x32f263=this[_0x553d29(0x219)](_0xb475a3,_0x27e7a7)[_0x553d29(0x22e)]['get'](_0x29f0c3);if(_0x32f263)return _0x32f263[_0x553d29(0x201)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x42c4e6){const _0x2b6aec=_0x2e73d4,_0x1c566e={},_0x41bc2d=this[_0x2b6aec(0x21b)][_0x2b6aec(0x229)](_0x42c4e6);return _0x41bc2d&&_0x41bc2d[_0x2b6aec(0x24e)]((_0xd16015,_0x2b7a12)=>{const _0x25153d=_0x2b6aec,_0x455ad5=_0xd16015[_0x25153d(0x24f)]();_0x455ad5[_0x25153d(0x244)]>0x0&&(_0x1c566e[_0x2b7a12]=_0x455ad5);}),JSON[_0x2b6aec(0x234)](_0x1c566e);}['_deserializeShapeForUnit'](_0x2f880a,_0x1aa254){const _0x30da8e=_0x2e73d4;Object['keys'](_0x1aa254)[_0x30da8e(0x24e)](_0x2dfc29=>{const _0x3b77d1=_0x30da8e;this[_0x3b77d1(0x219)](_0x2f880a,_0x2dfc29)[_0x3b77d1(0x258)](_0x1aa254[_0x2dfc29]);});}[_0x2e73d4(0x24f)](){const _0x1cb3d1=_0x2e73d4,_0x455402={};return this[_0x1cb3d1(0x21b)][_0x1cb3d1(0x24e)]((_0x173294,_0x20cffc)=>{const _0x3ac61f=_0x1cb3d1;_0x455402[_0x20cffc]={},_0x173294[_0x3ac61f(0x24e)]((_0x29af85,_0x5a4ea1)=>{const _0x13aec7=_0x3ac61f;_0x455402[_0x20cffc][_0x5a4ea1]=_0x29af85[_0x13aec7(0x24f)]();});}),_0x455402;}[_0x2e73d4(0x258)](_0x44e25a){const _0x3f1bbd=_0x2e73d4;Object[_0x3f1bbd(0x220)](_0x44e25a)[_0x3f1bbd(0x24e)](_0x4661ac=>{const _0xd6d5b8=_0x3f1bbd,_0x510149=_0x44e25a[_0x4661ac];Object[_0xd6d5b8(0x220)](_0x510149)[_0xd6d5b8(0x24e)](_0x5bd484=>{const _0x17fd59=_0xd6d5b8;this[_0x17fd59(0x219)](_0x4661ac,_0x5bd484)[_0x17fd59(0x258)](_0x510149[_0x5bd484]);});});}['_initSnapshot'](){const _0x3180fa=_0x2e73d4;this['_resourcesManagerService'][_0x3180fa(0x22d)]({'pluginName':_0x14fc02,'businesses':[_0x4bc444['UniverInstanceType'][_0x3180fa(0x227)]],'toJson':_0x3c97a3=>this[_0x3180fa(0x230)](_0x3c97a3),'parseJson':_0x2e2116=>JSON[_0x3180fa(0x1ff)](_0x2e2116),'onLoad':(_0x4f7bdc,_0x22f5f3)=>{const _0x106b21=_0x3180fa;this[_0x106b21(0x251)](_0x4f7bdc,_0x22f5f3);},'onUnLoad':_0x19222b=>{const _0x484a92=_0x3180fa,_0x230fb3=this[_0x484a92(0x21b)]['get'](_0x19222b);_0x230fb3&&(_0x230fb3['forEach'](_0x37db0e=>{const _0x47a9a0=_0x484a92;_0x37db0e[_0x47a9a0(0x1f9)]();}),this['_shapeModelManagerMap'][_0x484a92(0x247)](_0x19222b));}});}['dispose'](){const _0x3c5e58=_0x2e73d4;this[_0x3c5e58(0x21b)][_0x3c5e58(0x24e)](_0x5cec76=>{const _0x4fd454=_0x3c5e58;_0x5cec76[_0x4fd454(0x24e)](_0x440ca8=>{const _0x26328b=_0x4fd454;_0x440ca8[_0x26328b(0x1f9)]();});});}},_0x7e63bb['SheetsShapeService']=_0x24f2f4([_0x51b95c(0x0,_0x4bc444[_0x2e73d4(0x21d)])],_0x7e63bb[_0x2e73d4(0x205)]);const _0x58a784={'id':_0x2e73d4(0x226),'type':_0x4bc444[_0x2e73d4(0x257)]['MUTATION'],'handler':(_0x2a17d7,_0x5dd055)=>{const _0x377190=_0x2e73d4,{unitId:_0x2b2be2,subUnitId:_0x400009,shapeType:_0x46533e,shapeId:_0x3a1121,shapeData:_0x412deb}=_0x5dd055,_0x312a91=_0x2a17d7[_0x377190(0x229)](_0x7e63bb[_0x377190(0x205)])['getShapeModel'](_0x2b2be2,_0x400009,_0x3a1121);return _0x312a91&&(_0x312a91['setShapeType'](_0x46533e),_0x412deb&&(_0x312a91==null||_0x312a91[_0x377190(0x23f)](_0x412deb))),!0x0;}},_0x3f2453={'id':_0x2e73d4(0x1f4),'type':_0x4bc444['CommandType'][_0x2e73d4(0x246)],'handler':(_0x5e4adc,_0x183cc2)=>{const _0x3d9902=_0x2e73d4;if(!_0x183cc2)return!0x1;const _0x16054e=_0x5e4adc['get'](_0x4bc444[_0x3d9902(0x259)]),_0x314a15=_0x5e4adc['get'](_0x7e63bb[_0x3d9902(0x205)]),_0x17a99c=_0x5e4adc[_0x3d9902(0x229)](_0x4bc444[_0x3d9902(0x242)]),_0x294c25=[],_0x47a63e=[],{unitId:_0x505287,subUnitId:_0x5c4edd,shapeId:_0x1b4ae0,shapeType:_0x57a8a4,shapeData:_0x26acbb}=_0x183cc2,_0x368987=_0x314a15[_0x3d9902(0x21e)](_0x505287,_0x5c4edd,_0x1b4ae0);if(_0x368987){const _0x45bee8=_0x368987[_0x3d9902(0x22a)](),_0xb2e1bf=Object['assign']({},_0x368987[_0x3d9902(0x20f)]()),_0x30fa2d={'unitId':_0x505287,'subUnitId':_0x5c4edd,'shapeId':_0x1b4ae0,'shapeType':_0x57a8a4,'shapeData':_0x26acbb},_0x18144e={'unitId':_0x505287,'subUnitId':_0x5c4edd,'shapeId':_0x1b4ae0,'shapeType':_0x45bee8,'shapeData':_0xb2e1bf};return _0x294c25['push']({'id':_0x58a784['id'],'params':_0x30fa2d}),_0x47a63e[_0x3d9902(0x1f7)]({'id':_0x58a784['id'],'params':_0x18144e}),_0x294c25[_0x3d9902(0x24b)](_0x1aa22f=>_0x16054e[_0x3d9902(0x235)](_0x1aa22f['id'],_0x1aa22f[_0x3d9902(0x245)]))&&_0x17a99c['pushUndoRedo']({'unitID':_0x505287,'redoMutations':[..._0x294c25],'undoMutations':[..._0x47a63e]}),!0x0;}return!0x1;}},_0x38ca88={'id':_0x2e73d4(0x236),'type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0xd75e3a,_0x380e1e)=>{const _0x1d8e49=_0x2e73d4,{unitId:_0x4fc45d,subUnitId:_0x2fd2db,shapeType:_0xfb1b8c,shapeId:_0xa62d41,shapeData:_0x458642}=_0x380e1e;return _0xd75e3a[_0x1d8e49(0x229)](_0x7e63bb[_0x1d8e49(0x205)])['insertShape'](_0x4fc45d,_0x2fd2db,_0xfb1b8c,_0xa62d41,_0x458642),!0x0;}},_0x4c7393={'id':'sheet.mutation.remove-shape','type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0x2b1e57,_0x412ce7)=>{const _0x24575c=_0x2e73d4,{unitId:_0x4508e5,subUnitId:_0x4ac58e,shapeId:_0x419bd3}=_0x412ce7;return _0x2b1e57[_0x24575c(0x229)](_0x7e63bb['SheetsShapeService'])[_0x24575c(0x24d)](_0x4508e5,_0x4ac58e,_0x419bd3),!0x0;}},_0x2f2a9a={'id':'sheet.mutation.update-shape-data','type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0x2eee09,_0x3b9fc0)=>{const _0x43d56a=_0x2e73d4,{unitId:_0x69a6fa,subUnitId:_0x47a311,shapeType:_0x1a2f36,shapeId:_0x4ec13c,shapeData:_0x1b2eaa}=_0x3b9fc0,_0x82b9ae=_0x2eee09[_0x43d56a(0x229)](_0x7e63bb[_0x43d56a(0x205)])[_0x43d56a(0x21e)](_0x69a6fa,_0x47a311,_0x4ec13c);return _0x82b9ae&&(_0x1a2f36!==void 0x0&&_0x82b9ae[_0x43d56a(0x214)](_0x1a2f36),_0x1b2eaa&&(_0x82b9ae==null||_0x82b9ae[_0x43d56a(0x23f)](_0x1b2eaa,!0x0))),!0x0;}},_0x3b1ec6={'name':_0x2e73d4(0x25c),'version':_0x2e73d4(0x241)},_0x5e2ec5=_0x2e73d4(0x20c),_0x43b191={};var _0x7f33eb=Object[_0x2e73d4(0x200)],_0x1d2b9c=Object['getOwnPropertyDescriptor'],_0x9708ee=(_0x4325f1,_0x3dcd0d,_0x7cb181)=>_0x3dcd0d in _0x4325f1?_0x7f33eb(_0x4325f1,_0x3dcd0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7cb181}):_0x4325f1[_0x3dcd0d]=_0x7cb181,_0x45eb28=(_0x38c1bf,_0x211082,_0x2e9262,_0x19ed31)=>{const _0x297c4f=_0x2e73d4;for(var _0x3c7949=_0x19ed31>0x1?void 0x0:_0x19ed31?_0x1d2b9c(_0x211082,_0x2e9262):_0x211082,_0x33b9fb=_0x38c1bf[_0x297c4f(0x244)]-0x1,_0x53cc3b;_0x33b9fb>=0x0;_0x33b9fb--)(_0x53cc3b=_0x38c1bf[_0x33b9fb])&&(_0x3c7949=_0x53cc3b(_0x3c7949)||_0x3c7949);return _0x3c7949;},_0x16177d=(_0x349dfb,_0x4797eb)=>(_0x414028,_0x4e9562)=>_0x4797eb(_0x414028,_0x4e9562,_0x349dfb),_0x5bd3bc=(_0x306cb1,_0x377541,_0x24f59e)=>_0x9708ee(_0x306cb1,typeof _0x377541!=_0x2e73d4(0x22b)?_0x377541+'':_0x377541,_0x24f59e);_0x7e63bb[_0x2e73d4(0x222)]=class extends _0x4bc444[_0x2e73d4(0x232)]{constructor(_0x3befee=_0x43b191,_0x329039,_0x2d1745,_0x53ea61){const _0x247742=_0x2e73d4;super(),this[_0x247742(0x24c)]=_0x3befee,this[_0x247742(0x1fd)]=_0x329039,this['_commandService']=_0x2d1745,this[_0x247742(0x212)]=_0x53ea61;const {..._0x3df20f}=_0x4bc444[_0x247742(0x221)]({},_0x43b191,this[_0x247742(0x24c)]);this[_0x247742(0x212)]['setConfig'](_0x5e2ec5,_0x3df20f),this[_0x247742(0x213)]();}[_0x2e73d4(0x223)](){_0x4bc444['touchDependencies'](this['_injector'],[]);}[_0x2e73d4(0x1fa)](){const _0x571ee8=_0x2e73d4,_0x25bd16=this['_injector'];[[_0x488540],[_0x7e63bb[_0x571ee8(0x205)]]][_0x571ee8(0x24e)](_0x23dd45=>_0x25bd16[_0x571ee8(0x22c)](_0x23dd45));}[_0x2e73d4(0x213)](){const _0x120cb0=_0x2e73d4;[_0x38ca88,_0x4c7393,_0x58a784,_0x2f2a9a][_0x120cb0(0x24e)](_0x5c0dbb=>this[_0x120cb0(0x23a)](this[_0x120cb0(0x249)][_0x120cb0(0x21a)](_0x5c0dbb)));}},_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x1f8),_0x4bc444[_0x2e73d4(0x218)][_0x2e73d4(0x227)]),_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x1fc),_0x2e73d4(0x209)),_0x5bd3bc(_0x7e63bb['UniverSheetsShapePlugin'],_0x2e73d4(0x252),_0x3b1ec6[_0x2e73d4(0x240)]),_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x25a),_0x3b1ec6[_0x2e73d4(0x25a)]),_0x7e63bb[_0x2e73d4(0x222)]=_0x45eb28([_0x4bc444[_0x2e73d4(0x1f5)](_0x34050b[_0x2e73d4(0x208)]),_0x16177d(0x1,_0x4bc444[_0x2e73d4(0x215)](_0x4bc444['Injector'])),_0x16177d(0x2,_0x4bc444[_0x2e73d4(0x259)]),_0x16177d(0x3,_0x4bc444[_0x2e73d4(0x239)])],_0x7e63bb['UniverSheetsShapePlugin']),_0x7e63bb[_0x2e73d4(0x25d)]=_0x38ca88,_0x7e63bb[_0x2e73d4(0x20b)]=_0x4c7393,_0x7e63bb['UpdateSheetsShapeDataMutation']=_0x2f2a9a,_0x7e63bb[_0x2e73d4(0x204)]=_0x3f2453,_0x7e63bb[_0x2e73d4(0x1fe)]=_0x58a784,Object[_0x2e73d4(0x200)](_0x7e63bb,Symbol[_0x2e73d4(0x216)],{'value':'Module'});}));function _0x1e52(){const _0x457096=['sheet.mutation.update-shape-type','UNIVER_SHEET','@univerjs-pro/engine-shape','get','getShapeType','symbol','add','registerPluginResource','_shapes','2504ewUodP','_serializeShapeForUnit','1872615rLhGuw','Plugin','UniverProEngineShape','stringify','syncExecuteCommand','sheet.mutation.insert-shape','30553exUalJ','object','IConfigService','disposeWithMe','MUTATION','ShapeModel','55881zBIDbq','getLineShapeRelation','setShapeData','name','0.17.0','IUndoRedoService','shapeId','length','params','COMMAND','delete','613242TWHtSR','_commandService','amd','every','_config','removeShape','forEach','toJSON','getBasicShapeRelation','_deserializeShapeForUnit','packageName','has','insertShape','9239472wSxtDr','getBasicShapeType','CommandType','fromJSON','ICommandService','version','clear','@univerjs-pro/sheets-shape','InsertSheetsShapeMutation','UniverCore','function','sheet.command.update-shape-type','DependentOn','getShapeDataById','push','type','dispose','onStarting','_disposed','pluginName','_injector','UpdateSheetsShapeTypeMutation','parse','defineProperty','getShapeRelation','26524230ITQHIS','from','UpdateSheetsShapeTypeCommand','SheetsShapeService','isConnectorShape','hasShape','UniverLicensePlugin','SHEET_SHAPE_PLUGIN','4925dYDPjO','RemoveSheetsShapeMutation','sheets-shape.config','getOwnPropertyDescriptor','Disposable','getShapeData','_linesIds','7652hUDxGw','_configService','_initCommands','setShapeType','Inject','toStringTag','@univerjs-pro/license','UniverInstanceType','_ensureShapeModelManager','registerCommand','_shapeModelManagerMap','42CpTgJU','IResourceManagerService','getShapeModel','UniverProSheetsShape','keys','merge','UniverSheetsShapePlugin','onRendered','getShapeTypeById','_groupIds'];_0x1e52=function(){return _0x457096;};return _0x1e52();}
|
|
1
|
+
(function(_0x4c0687,_0x2afc5e){const _0x2ef8ce=_0x20ce,_0x38ea01=_0x4c0687();while(!![]){try{const _0x10bb77=parseInt(_0x2ef8ce(0x21a))/0x1+-parseInt(_0x2ef8ce(0x243))/0x2*(-parseInt(_0x2ef8ce(0x214))/0x3)+parseInt(_0x2ef8ce(0x1d9))/0x4*(parseInt(_0x2ef8ce(0x238))/0x5)+-parseInt(_0x2ef8ce(0x1f2))/0x6*(parseInt(_0x2ef8ce(0x1ee))/0x7)+parseInt(_0x2ef8ce(0x204))/0x8*(-parseInt(_0x2ef8ce(0x244))/0x9)+parseInt(_0x2ef8ce(0x1d1))/0xa+parseInt(_0x2ef8ce(0x1e0))/0xb*(-parseInt(_0x2ef8ce(0x20b))/0xc);if(_0x10bb77===_0x2afc5e)break;else _0x38ea01['push'](_0x38ea01['shift']());}catch(_0x1678cd){_0x38ea01['push'](_0x38ea01['shift']());}}}(_0x5a82,0xecc76),function(_0x4dc3be,_0x179c4c){const _0x19e529=_0x20ce;typeof exports=='object'&&typeof module<'u'?_0x179c4c(exports,require(`@univerjs/core`),require(`@univerjs-pro/engine-shape`),require(`@univerjs-pro/license`)):typeof define==_0x19e529(0x209)&&define[_0x19e529(0x23b)]?define([_0x19e529(0x1fb),_0x19e529(0x232),_0x19e529(0x240),_0x19e529(0x22f)],_0x179c4c):(_0x4dc3be=typeof globalThis<'u'?globalThis:_0x4dc3be||self,_0x179c4c(_0x4dc3be['UniverProSheetsShape']={},_0x4dc3be[_0x19e529(0x231)],_0x4dc3be[_0x19e529(0x1ef)],_0x4dc3be[_0x19e529(0x1f0)]));}(this,function(_0x1fc798,_0x3ea596,_0x1f6217,_0x1eee32){const _0x3f0b3a=_0x20ce;Object[_0x3f0b3a(0x1da)](_0x1fc798,Symbol[_0x3f0b3a(0x1e7)],{'value':_0x3f0b3a(0x20a)});function _0x5b09fb(_0x3d0606){'@babel/helpers - typeof';const _0x132793=_0x3f0b3a;return _0x5b09fb=typeof Symbol==_0x132793(0x209)&&typeof Symbol[_0x132793(0x22d)]==_0x132793(0x219)?function(_0x32ef89){return typeof _0x32ef89;}:function(_0x48aac5){const _0x180932=_0x132793;return _0x48aac5&&typeof Symbol==_0x180932(0x209)&&_0x48aac5[_0x180932(0x23a)]===Symbol&&_0x48aac5!==Symbol[_0x180932(0x23f)]?'symbol':typeof _0x48aac5;},_0x5b09fb(_0x3d0606);}function _0x5db08a(_0x132966,_0x149d68){const _0x23fd5e=_0x3f0b3a;if(_0x5b09fb(_0x132966)!=_0x23fd5e(0x1dd)||!_0x132966)return _0x132966;var _0x36051d=_0x132966[Symbol[_0x23fd5e(0x237)]];if(_0x36051d!==void 0x0){var _0x4777cf=_0x36051d[_0x23fd5e(0x1f4)](_0x132966,_0x149d68||'default');if(_0x5b09fb(_0x4777cf)!='object')return _0x4777cf;throw TypeError(_0x23fd5e(0x213));}return(_0x149d68===_0x23fd5e(0x216)?String:Number)(_0x132966);}function _0x14d1c2(_0x5e6d6b){const _0x62330f=_0x3f0b3a;var _0x5c7ff7=_0x5db08a(_0x5e6d6b,'string');return _0x5b09fb(_0x5c7ff7)==_0x62330f(0x219)?_0x5c7ff7:_0x5c7ff7+'';}function _0x165ff6(_0x530aa7,_0x3d9ef2,_0x1e7263){const _0xd34b14=_0x3f0b3a;return(_0x3d9ef2=_0x14d1c2(_0x3d9ef2))in _0x530aa7?Object[_0xd34b14(0x1da)](_0x530aa7,_0x3d9ef2,{'value':_0x1e7263,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x530aa7[_0x3d9ef2]=_0x1e7263,_0x530aa7;}var _0x1dbccf=class extends _0x3ea596[_0x3f0b3a(0x1f3)]{constructor(){const _0x324cea=_0x3f0b3a;super(),_0x165ff6(this,_0x324cea(0x202),new Map()),_0x165ff6(this,_0x324cea(0x22b),new Set()),_0x165ff6(this,_0x324cea(0x22c),new Set());}[_0x3f0b3a(0x23d)](_0x13b94b,_0x323d70,_0x3166cc){const _0x5a5b75=_0x3f0b3a;let _0x38bec5=new _0x1f6217[(_0x5a5b75(0x1e8))](_0x13b94b,_0x323d70,_0x3166cc);return this['_shapes'][_0x5a5b75(0x234)](_0x323d70,_0x38bec5),(0x0,_0x1f6217[_0x5a5b75(0x1ff)])(_0x13b94b)&&this[_0x5a5b75(0x22b)][_0x5a5b75(0x239)](_0x323d70),_0x38bec5;}['getBasicShapeRelation'](_0x2edf7f){const _0x13445c=_0x3f0b3a;let _0x5dabc7=[];for(let _0x5128fb of this[_0x13445c(0x22b)]){let _0x3a21ca=this[_0x13445c(0x202)]['get'](_0x5128fb);if(_0x3a21ca){let _0x5f56f0=_0x3a21ca[_0x13445c(0x206)]();if(_0x5f56f0){var _0x592328,_0x156d1d;((_0x592328=_0x5f56f0[_0x13445c(0x21c)])==null?void 0x0:_0x592328[_0x13445c(0x207)])===_0x2edf7f&&_0x5dabc7['push']({..._0x5f56f0['from'],'lineShapeId':_0x5128fb,'isFrom':!0x0}),((_0x156d1d=_0x5f56f0['to'])==null?void 0x0:_0x156d1d[_0x13445c(0x207)])===_0x2edf7f&&_0x5dabc7[_0x13445c(0x225)]({..._0x5f56f0['to'],'lineShapeId':_0x5128fb,'isFrom':!0x1});}}}return _0x5dabc7;}[_0x3f0b3a(0x200)](_0x46669a){const _0x4ae798=_0x3f0b3a;let _0x3b8690=this[_0x4ae798(0x202)][_0x4ae798(0x1eb)](_0x46669a);if(_0x3b8690)return _0x3b8690[_0x4ae798(0x206)]();}[_0x3f0b3a(0x1d6)](_0x2ac984){const _0x1a92fe=_0x3f0b3a;let _0x4ae067=this[_0x1a92fe(0x202)][_0x1a92fe(0x1eb)](_0x2ac984);if(_0x4ae067)return _0x4ae067[_0x1a92fe(0x1d6)]();}['hasShape'](_0x17e962){const _0x2495b9=_0x3f0b3a;return this[_0x2495b9(0x202)][_0x2495b9(0x20c)](_0x17e962);}[_0x3f0b3a(0x236)](_0x5c5dc1){const _0x5f2b92=_0x3f0b3a;let _0x29d7a9=this[_0x5f2b92(0x202)][_0x5f2b92(0x1eb)](_0x5c5dc1);_0x29d7a9&&((0x0,_0x1f6217['isConnectorShape'])(_0x29d7a9[_0x5f2b92(0x1d6)]())&&this[_0x5f2b92(0x22b)]['delete'](_0x5c5dc1),this[_0x5f2b92(0x202)][_0x5f2b92(0x1fc)](_0x5c5dc1));}[_0x3f0b3a(0x1f9)](){const _0x3a7f16=_0x3f0b3a;let _0x477db8=[];return this['_shapes'][_0x3a7f16(0x222)](_0x50bf50=>{const _0x34d9a7=_0x3a7f16;_0x477db8[_0x34d9a7(0x225)](_0x50bf50[_0x34d9a7(0x1f9)]());}),_0x477db8;}['fromJSON'](_0x34a3d4){const _0x1df5ea=_0x3f0b3a;for(let _0x386d8d of _0x34a3d4){let {id:_0xd528d9,shapeType:_0x4f2a0e}=_0x386d8d,_0x54a2fa=this[_0x1df5ea(0x23d)](_0x4f2a0e,_0xd528d9,_0x386d8d[_0x1df5ea(0x203)]);_0x54a2fa&&_0x54a2fa['isLineShape']()&&this[_0x1df5ea(0x22b)]['add'](_0xd528d9);}}[_0x3f0b3a(0x1e2)](){const _0x71fda=_0x3f0b3a;this['_disposed']||(this[_0x71fda(0x202)]['forEach'](_0x2983e8=>{const _0x26b0b1=_0x71fda;_0x2983e8[_0x26b0b1(0x1e2)]();}),this['_shapes'][_0x71fda(0x215)](),this[_0x71fda(0x22b)][_0x71fda(0x215)](),this[_0x71fda(0x22c)][_0x71fda(0x215)](),super[_0x71fda(0x1e2)]());}};function _0x1dea4b(_0x2ada89,_0x77cd16){return function(_0x23957d,_0xc54dd5){_0x77cd16(_0x23957d,_0xc54dd5,_0x2ada89);};}function _0x1a2c08(_0x209e8c,_0x146e22,_0x10eb4b,_0xed3429){const _0x5a3851=_0x3f0b3a;var _0x2b6863=arguments['length'],_0x117072=_0x2b6863<0x3?_0x146e22:_0xed3429===null?_0xed3429=Object[_0x5a3851(0x233)](_0x146e22,_0x10eb4b):_0xed3429,_0x469ee9;if(typeof Reflect==_0x5a3851(0x1dd)&&typeof Reflect[_0x5a3851(0x21f)]==_0x5a3851(0x209))_0x117072=Reflect[_0x5a3851(0x21f)](_0x209e8c,_0x146e22,_0x10eb4b,_0xed3429);else{for(var _0x87f804=_0x209e8c[_0x5a3851(0x1d5)]-0x1;_0x87f804>=0x0;_0x87f804--)(_0x469ee9=_0x209e8c[_0x87f804])&&(_0x117072=(_0x2b6863<0x3?_0x469ee9(_0x117072):_0x2b6863>0x3?_0x469ee9(_0x146e22,_0x10eb4b,_0x117072):_0x469ee9(_0x146e22,_0x10eb4b))||_0x117072);}return _0x2b6863>0x3&&_0x117072&&Object[_0x5a3851(0x1da)](_0x146e22,_0x10eb4b,_0x117072),_0x117072;}let _0x40006f=class extends _0x3ea596[_0x3f0b3a(0x1f3)]{constructor(_0x4a1277){const _0x30891a=_0x3f0b3a;super(),this[_0x30891a(0x1e4)]=_0x4a1277,_0x165ff6(this,_0x30891a(0x1dc),new Map()),this[_0x30891a(0x1db)]();}['_ensureShapeModelManager'](_0x3e018a,_0x3eeb0e){const _0x35efd1=_0x3f0b3a;let _0x402c2d=this[_0x35efd1(0x1dc)][_0x35efd1(0x1eb)](_0x3e018a);_0x402c2d||(_0x402c2d=new Map(),this['_shapeModelManagerMap'][_0x35efd1(0x234)](_0x3e018a,_0x402c2d));let _0x59ca9a=_0x402c2d[_0x35efd1(0x1eb)](_0x3eeb0e);return _0x59ca9a||(_0x59ca9a=new _0x1dbccf(),_0x402c2d[_0x35efd1(0x234)](_0x3eeb0e,_0x59ca9a)),_0x59ca9a;}[_0x3f0b3a(0x211)](_0xcf304e,_0x2c095d,_0x32d128,_0x37665f,_0x1b01ee){const _0x46355a=_0x3f0b3a;this['_ensureShapeModelManager'](_0xcf304e,_0x2c095d)[_0x46355a(0x23d)](_0x32d128,_0x37665f,_0x1b01ee);}[_0x3f0b3a(0x236)](_0x2b517e,_0x5525a8,_0x169cb1){const _0x38e4cd=_0x3f0b3a;this[_0x38e4cd(0x20d)](_0x2b517e,_0x5525a8)['removeShape'](_0x169cb1);}[_0x3f0b3a(0x1d8)](_0x4633c5,_0x13eb7d,_0x1584dd){const _0xc6dc2=_0x3f0b3a;return this['_ensureShapeModelManager'](_0x4633c5,_0x13eb7d)[_0xc6dc2(0x1d6)](_0x1584dd);}[_0x3f0b3a(0x1d6)](_0x523ad6,_0x285224,_0x26de98){const _0x4cf80f=_0x3f0b3a;return this[_0x4cf80f(0x20d)](_0x523ad6,_0x285224)['getShapeType'](_0x26de98);}[_0x3f0b3a(0x201)](_0x3b6df5,_0x550669,_0x5f0b62){const _0xa9fa39=_0x3f0b3a;return this['_ensureShapeModelManager'](_0x3b6df5,_0x550669)[_0xa9fa39(0x201)](_0x5f0b62);}[_0x3f0b3a(0x21e)](_0x55bea9,_0x44ef3d,_0x51391f){const _0x18dcc9=_0x3f0b3a;return this[_0x18dcc9(0x20d)](_0x55bea9,_0x44ef3d)[_0x18dcc9(0x1d6)](_0x51391f);}[_0x3f0b3a(0x1e5)](_0x5c1f7f,_0x28901e,_0x465c33){const _0x1ca113=_0x3f0b3a;let _0x5c4a29=this['_ensureShapeModelManager'](_0x5c1f7f,_0x28901e);if(!_0x5c4a29[_0x1ca113(0x1d6)](_0x465c33))return;let _0x471ba2=_0x5c4a29[_0x1ca113(0x202)][_0x1ca113(0x1eb)](_0x465c33);if(_0x471ba2)return _0x471ba2[_0x1ca113(0x23c)]();}[_0x3f0b3a(0x247)](_0x2a3e7d,_0xada322,_0x187a25){const _0x52646d=_0x3f0b3a;return this[_0x52646d(0x20d)](_0x2a3e7d,_0xada322)[_0x52646d(0x202)][_0x52646d(0x1eb)](_0x187a25);}[_0x3f0b3a(0x21b)](_0x269aec,_0x976774,_0x94433a){const _0x59b6b3=_0x3f0b3a;return this['_ensureShapeModelManager'](_0x269aec,_0x976774)[_0x59b6b3(0x21b)](_0x94433a);}[_0x3f0b3a(0x200)](_0x180bef,_0x2ca306,_0x461d24){const _0x2ef459=_0x3f0b3a;let _0x206744=this[_0x2ef459(0x20d)](_0x180bef,_0x2ca306)[_0x2ef459(0x202)][_0x2ef459(0x1eb)](_0x461d24);if(_0x206744)return _0x206744['getShapeRelation']();}[_0x3f0b3a(0x246)](){}[_0x3f0b3a(0x245)](_0x260171){const _0x5086e5=_0x3f0b3a;let _0x116f37={},_0x119b49=this['_shapeModelManagerMap'][_0x5086e5(0x1eb)](_0x260171);return _0x119b49&&_0x119b49[_0x5086e5(0x222)]((_0x515022,_0x396f29)=>{const _0x16de18=_0x5086e5;let _0x48e0f1=_0x515022[_0x16de18(0x1f9)]();_0x48e0f1[_0x16de18(0x1d5)]>0x0&&(_0x116f37[_0x396f29]=_0x48e0f1);}),JSON[_0x5086e5(0x1e9)](_0x116f37);}['_deserializeShapeForUnit'](_0x2029e7,_0x425dd0){const _0x81b59a=_0x3f0b3a;Object[_0x81b59a(0x1d4)](_0x425dd0)[_0x81b59a(0x222)](_0x42d3b7=>{const _0x170758=_0x81b59a;this[_0x170758(0x20d)](_0x2029e7,_0x42d3b7)[_0x170758(0x22e)](_0x425dd0[_0x42d3b7]);});}[_0x3f0b3a(0x1f9)](){const _0x3d74b9=_0x3f0b3a;let _0x56bbf4={};return this[_0x3d74b9(0x1dc)]['forEach']((_0x4f6a8e,_0x2d93be)=>{const _0x1c4dff=_0x3d74b9;_0x56bbf4[_0x2d93be]={},_0x4f6a8e[_0x1c4dff(0x222)]((_0x2d24cd,_0x148aae)=>{const _0x3cf16e=_0x1c4dff;_0x56bbf4[_0x2d93be][_0x148aae]=_0x2d24cd[_0x3cf16e(0x1f9)]();});}),_0x56bbf4;}[_0x3f0b3a(0x22e)](_0x57736e){const _0x29d5c8=_0x3f0b3a;Object[_0x29d5c8(0x1d4)](_0x57736e)['forEach'](_0x20fb00=>{const _0x3606e7=_0x29d5c8;let _0x25305b=_0x57736e[_0x20fb00];Object[_0x3606e7(0x1d4)](_0x25305b)[_0x3606e7(0x222)](_0x22b760=>{const _0x353395=_0x3606e7;this['_ensureShapeModelManager'](_0x20fb00,_0x22b760)[_0x353395(0x22e)](_0x25305b[_0x22b760]);});});}[_0x3f0b3a(0x1db)](){const _0x14406b=_0x3f0b3a;this[_0x14406b(0x1e4)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x3ea596[_0x14406b(0x229)][_0x14406b(0x241)]],'toJson':_0x2da04b=>this[_0x14406b(0x245)](_0x2da04b),'parseJson':_0x415769=>JSON[_0x14406b(0x208)](_0x415769),'onLoad':(_0x1e9efb,_0x41ef1c)=>{const _0x2b52a7=_0x14406b;this[_0x2b52a7(0x22a)](_0x1e9efb,_0x41ef1c);},'onUnLoad':_0x4dc1fa=>{const _0x190fbc=_0x14406b;let _0x5d9dd9=this[_0x190fbc(0x1dc)][_0x190fbc(0x1eb)](_0x4dc1fa);_0x5d9dd9&&(_0x5d9dd9['forEach'](_0xe97440=>{_0xe97440['dispose']();}),this[_0x190fbc(0x1dc)]['delete'](_0x4dc1fa));}});}[_0x3f0b3a(0x1e2)](){this['_shapeModelManagerMap']['forEach'](_0x5a9f79=>{const _0xfb126=_0x20ce;_0x5a9f79[_0xfb126(0x222)](_0x19966c=>{const _0x503a19=_0xfb126;_0x19966c[_0x503a19(0x1e2)]();});});}};_0x40006f=_0x1a2c08([_0x1dea4b(0x0,_0x3ea596[_0x3f0b3a(0x1fd)])],_0x40006f);let _0x395d1c={'id':'sheet.mutation.update-shape-type','type':_0x3ea596[_0x3f0b3a(0x224)][_0x3f0b3a(0x230)],'handler':(_0x2db3fd,_0x399d88)=>{const _0x157feb=_0x3f0b3a;let {unitId:_0xf6ff16,subUnitId:_0x55edde,shapeType:_0x206c2a,shapeId:_0x36f13d,shapeData:_0x577e04}=_0x399d88,_0x41a89e=_0x2db3fd['get'](_0x40006f)['getShapeModel'](_0xf6ff16,_0x55edde,_0x36f13d);return _0x41a89e&&(_0x41a89e['setShapeType'](_0x206c2a),_0x577e04&&(_0x41a89e==null||_0x41a89e[_0x157feb(0x1d2)](_0x577e04))),!0x0;}},_0x560613={'id':_0x3f0b3a(0x226),'type':_0x3ea596[_0x3f0b3a(0x224)][_0x3f0b3a(0x205)],'handler':(_0x338dd3,_0x5cbb4a)=>{const _0x35f25f=_0x3f0b3a;if(!_0x5cbb4a)return!0x1;let _0x205838=_0x338dd3['get'](_0x3ea596[_0x35f25f(0x1e3)]),_0xfb46d0=_0x338dd3[_0x35f25f(0x1eb)](_0x40006f),_0x520ac5=_0x338dd3[_0x35f25f(0x1eb)](_0x3ea596[_0x35f25f(0x221)]),_0x43e427=[],_0x4738c0=[],{unitId:_0x6612a6,subUnitId:_0x3a9687,shapeId:_0x5cc38f,shapeType:_0x24f5ef,shapeData:_0x33f57c}=_0x5cbb4a,_0xfcbce=_0xfb46d0[_0x35f25f(0x247)](_0x6612a6,_0x3a9687,_0x5cc38f);if(_0xfcbce){let _0x2b6f8b=_0xfcbce['getShapeType'](),_0x271065=Object['assign']({},_0xfcbce[_0x35f25f(0x23c)]()),_0x5ec3fe={'unitId':_0x6612a6,'subUnitId':_0x3a9687,'shapeId':_0x5cc38f,'shapeType':_0x24f5ef,'shapeData':_0x33f57c},_0x39e0b1={'unitId':_0x6612a6,'subUnitId':_0x3a9687,'shapeId':_0x5cc38f,'shapeType':_0x2b6f8b,'shapeData':_0x271065};return _0x43e427[_0x35f25f(0x225)]({'id':_0x395d1c['id'],'params':_0x5ec3fe}),_0x4738c0['push']({'id':_0x395d1c['id'],'params':_0x39e0b1}),_0x43e427[_0x35f25f(0x223)](_0x31ac23=>_0x205838[_0x35f25f(0x212)](_0x31ac23['id'],_0x31ac23[_0x35f25f(0x1de)]))&&_0x520ac5['pushUndoRedo']({'unitID':_0x6612a6,'redoMutations':[..._0x43e427],'undoMutations':[..._0x4738c0]}),!0x0;}return!0x1;}},_0x110799={'id':_0x3f0b3a(0x21d),'type':_0x3ea596['CommandType'][_0x3f0b3a(0x230)],'handler':(_0x5bc173,_0x30732b)=>{const _0x1cc111=_0x3f0b3a;let {unitId:_0x5b6229,subUnitId:_0x49b93e,shapeType:_0xe88b81,shapeId:_0x5f1d5f,shapeData:_0x1b5e46}=_0x30732b;return _0x5bc173['get'](_0x40006f)[_0x1cc111(0x211)](_0x5b6229,_0x49b93e,_0xe88b81,_0x5f1d5f,_0x1b5e46),!0x0;}},_0x3c1e69={'id':'sheet.mutation.remove-shape','type':_0x3ea596['CommandType'][_0x3f0b3a(0x230)],'handler':(_0x578f8d,_0x23d504)=>{const _0x5d6167=_0x3f0b3a;let {unitId:_0x3876fe,subUnitId:_0x48b6aa,shapeId:_0x5dc723}=_0x23d504;return _0x578f8d[_0x5d6167(0x1eb)](_0x40006f)[_0x5d6167(0x236)](_0x3876fe,_0x48b6aa,_0x5dc723),!0x0;}},_0xa6cf72={'id':_0x3f0b3a(0x220),'type':_0x3ea596[_0x3f0b3a(0x224)][_0x3f0b3a(0x230)],'handler':(_0x14546e,_0x4fefb0)=>{const _0x381af3=_0x3f0b3a;let {unitId:_0x2e190e,subUnitId:_0xd8f2b5,shapeType:_0x3a900a,shapeId:_0x46c525,shapeData:_0x1d6510}=_0x4fefb0,_0x5983c8=_0x14546e[_0x381af3(0x1eb)](_0x40006f)[_0x381af3(0x247)](_0x2e190e,_0xd8f2b5,_0x46c525);return _0x5983c8&&(_0x3a900a!==void 0x0&&_0x5983c8[_0x381af3(0x246)](_0x3a900a),_0x1d6510&&(_0x5983c8==null||_0x5983c8[_0x381af3(0x1d2)](_0x1d6510,!0x0))),!0x0;}};var _0x1934ac=_0x3f0b3a(0x1ec),_0x7122e0=_0x3f0b3a(0x1f7);let _0x395413=_0x3f0b3a(0x1fa);Symbol(_0x395413);let _0x150740={},_0x418578=class extends _0x3ea596[_0x3f0b3a(0x1ea)]{constructor(_0x59ff45=_0x150740,_0x1f7949,_0x5cb364,_0x3db939){const _0x3184bc=_0x3f0b3a;super(),this[_0x3184bc(0x242)]=_0x59ff45,this[_0x3184bc(0x227)]=_0x1f7949,this[_0x3184bc(0x235)]=_0x5cb364,this['_configService']=_0x3db939;let {..._0x4fb387}=(0x0,_0x3ea596[_0x3184bc(0x1df)])({},_0x150740,this[_0x3184bc(0x242)]);this[_0x3184bc(0x1f6)]['setConfig'](_0x395413,_0x4fb387),this[_0x3184bc(0x1d3)]();}[_0x3f0b3a(0x1f5)](){const _0x59485e=_0x3f0b3a;(0x0,_0x3ea596['touchDependencies'])(this[_0x59485e(0x227)],[]);}[_0x3f0b3a(0x1fe)](){const _0x213ee7=_0x3f0b3a;let _0x58ba92=this[_0x213ee7(0x227)];[[_0x1dbccf],[_0x40006f]][_0x213ee7(0x222)](_0x36b21d=>_0x58ba92[_0x213ee7(0x239)](_0x36b21d));}[_0x3f0b3a(0x1d3)](){const _0x41bc12=_0x3f0b3a;[_0x110799,_0x3c1e69,_0x395d1c,_0xa6cf72][_0x41bc12(0x222)](_0x16ff0e=>this['disposeWithMe'](this[_0x41bc12(0x235)]['registerCommand'](_0x16ff0e)));}};_0x165ff6(_0x418578,_0x3f0b3a(0x218),_0x3ea596['UniverInstanceType'][_0x3f0b3a(0x241)]),_0x165ff6(_0x418578,_0x3f0b3a(0x217),'SHEET_SHAPE_PLUGIN'),_0x165ff6(_0x418578,_0x3f0b3a(0x1e1),_0x1934ac),_0x165ff6(_0x418578,_0x3f0b3a(0x210),_0x7122e0),_0x418578=_0x1a2c08([(0x0,_0x3ea596[_0x3f0b3a(0x23e)])(_0x1eee32[_0x3f0b3a(0x228)]),_0x1dea4b(0x1,(0x0,_0x3ea596['Inject'])(_0x3ea596[_0x3f0b3a(0x20e)])),_0x1dea4b(0x2,_0x3ea596['ICommandService']),_0x1dea4b(0x3,_0x3ea596[_0x3f0b3a(0x1f8)])],_0x418578),_0x1fc798[_0x3f0b3a(0x1ed)]=_0x110799,_0x1fc798['RemoveSheetsShapeMutation']=_0x3c1e69,Object[_0x3f0b3a(0x1da)](_0x1fc798,_0x3f0b3a(0x1d7),{'enumerable':!0x0,'get':function(){return _0x40006f;}}),Object[_0x3f0b3a(0x1da)](_0x1fc798,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0x418578;}}),_0x1fc798[_0x3f0b3a(0x20f)]=_0xa6cf72,_0x1fc798[_0x3f0b3a(0x1e6)]=_0x560613,_0x1fc798[_0x3f0b3a(0x1f1)]=_0x395d1c;}));function _0x20ce(_0x1fb21d,_0x420ab1){_0x1fb21d=_0x1fb21d-0x1d1;const _0x5a825e=_0x5a82();let _0x20cea6=_0x5a825e[_0x1fb21d];return _0x20cea6;}function _0x5a82(){const _0x14714e=['packageName','dispose','ICommandService','_resourcesManagerService','getShapeDataById','UpdateSheetsShapeTypeCommand','toStringTag','ShapeModel','stringify','Plugin','get','@univerjs-pro/sheets-shape','InsertSheetsShapeMutation','176141tBLHng','UniverProEngineShape','UniverProLicense','UpdateSheetsShapeTypeMutation','48qeldyj','Disposable','call','onRendered','_configService','0.18.0-insiders.20260328-0842384','IConfigService','toJSON','sheets-shape.config','exports','delete','IResourceManagerService','onStarting','isConnectorShape','getLineShapeRelation','hasShape','_shapes','shapeData','4088EtjZRj','COMMAND','getShapeRelation','shapeId','parse','function','Module','17730132RNhRBy','has','_ensureShapeModelManager','Injector','UpdateSheetsShapeDataMutation','version','insertShape','syncExecuteCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','849tvMmRi','clear','string','pluginName','type','symbol','1264665BTTRpZ','getBasicShapeRelation','from','sheet.mutation.insert-shape','getShapeTypeById','decorate','sheet.mutation.update-shape-data','IUndoRedoService','forEach','every','CommandType','push','sheet.command.update-shape-type','_injector','UniverLicensePlugin','UniverInstanceType','_deserializeShapeForUnit','_linesIds','_groupIds','iterator','fromJSON','@univerjs-pro/license','MUTATION','UniverCore','@univerjs/core','getOwnPropertyDescriptor','set','_commandService','removeShape','toPrimitive','75585vYfRFK','add','constructor','amd','getShapeData','addShape','DependentOn','prototype','@univerjs-pro/engine-shape','UNIVER_SHEET','_config','2722nQeRHG','7407ebvnVs','_serializeShapeForUnit','setShapeType','getShapeModel','14607820hDSRpM','setShapeData','_initCommands','keys','length','getShapeType','SheetsShapeService','getBasicShapeType','380QZNQco','defineProperty','_initSnapshot','_shapeModelManagerMap','object','params','merge','22duOAjy'];_0x5a82=function(){return _0x14714e;};return _0x5a82();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-insiders.20260328-0842384",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "shape for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"./lib/*": "./lib/*"
|
|
39
39
|
},
|
|
40
40
|
"main": "./lib/es/index.js",
|
|
41
|
-
"module": "./lib/es/index.js",
|
|
42
41
|
"types": "./lib/types/index.d.ts",
|
|
43
42
|
"publishConfig": {
|
|
44
43
|
"access": "public"
|
|
@@ -53,27 +52,25 @@
|
|
|
53
52
|
"node": ">=16.0.0",
|
|
54
53
|
"npm": ">=8.0.0"
|
|
55
54
|
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"rxjs": ">=7.0.0"
|
|
58
|
-
},
|
|
59
55
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/
|
|
61
|
-
"@univerjs/core": "0.
|
|
62
|
-
"@univerjs-pro/
|
|
56
|
+
"@univerjs-pro/license": "0.18.0-insiders.20260328-0842384",
|
|
57
|
+
"@univerjs/core": "0.18.0-insiders.20260328-0842384",
|
|
58
|
+
"@univerjs-pro/engine-shape": "0.18.0-insiders.20260328-0842384"
|
|
63
59
|
},
|
|
64
60
|
"devDependencies": {
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"@univerjs-infra/shared": "0.17.0",
|
|
70
|
-
"@univerjs/sheets": "0.17.0"
|
|
61
|
+
"typescript": "^6.0.2",
|
|
62
|
+
"vitest": "^4.1.1",
|
|
63
|
+
"@univerjs-infra/shared": "0.18.0",
|
|
64
|
+
"@univerjs/sheets": "0.18.0-insiders.20260328-0842384"
|
|
71
65
|
},
|
|
72
66
|
"scripts": {
|
|
73
67
|
"test": "vitest run",
|
|
74
68
|
"test:watch": "vitest",
|
|
75
69
|
"coverage": "vitest run --coverage",
|
|
76
70
|
"typecheck": "tsc --noEmit",
|
|
77
|
-
"build": "univer-cli build"
|
|
78
|
-
|
|
71
|
+
"build:bundle": "univer-cli build",
|
|
72
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
73
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
74
|
+
},
|
|
75
|
+
"module": "./lib/es/index.js"
|
|
79
76
|
}
|