@univerjs-pro/sheets-shape 0.15.4 → 0.15.5
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/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x9c8bca=_0xf2c6;(function(_0x340a73,_0x35b4dd){const _0x18c451=_0xf2c6,_0x166109=_0x340a73();while(!![]){try{const _0x1c789a=parseInt(_0x18c451(0x95))/0x1*(parseInt(_0x18c451(0xd7))/0x2)+parseInt(_0x18c451(0xb2))/0x3*(parseInt(_0x18c451(0xb6))/0x4)+parseInt(_0x18c451(0xb7))/0x5+parseInt(_0x18c451(0xbe))/0x6*(-parseInt(_0x18c451(0xc6))/0x7)+parseInt(_0x18c451(0xa7))/0x8+-parseInt(_0x18c451(0xc8))/0x9+-parseInt(_0x18c451(0x97))/0xa;if(_0x1c789a===_0x35b4dd)break;else _0x166109['push'](_0x166109['shift']());}catch(_0x2d29b4){_0x166109['push'](_0x166109['shift']());}}}(_0x1474,0x29e45));var D=Object[_0x9c8bca(0xd1)],C=(_0x422c25,_0x2006de,_0x51558d)=>_0x2006de in _0x422c25?D(_0x422c25,_0x2006de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51558d}):_0x422c25[_0x2006de]=_0x51558d,S=(_0x5425e9,_0x13fe35,_0x5513d7)=>C(_0x5425e9,typeof _0x13fe35!='symbol'?_0x13fe35+'':_0x13fe35,_0x5513d7);Object[_0x9c8bca(0xd1)](exports,Symbol['toStringTag'],{'value':_0x9c8bca(0xa2)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x9c8bca(0xbb)]{constructor(){const _0x367807=_0x9c8bca;super(),S(this,'_shapes',new Map()),S(this,_0x367807(0xaa),new Set()),S(this,_0x367807(0x9a),new Set());}[_0x9c8bca(0xa3)](_0xa2974c,_0x4985a9,_0x472481){const _0x7d688a=_0x9c8bca,_0xb2d1c3=new l['ShapeModel'](_0xa2974c,_0x4985a9,_0x472481);return this[_0x7d688a(0x94)][_0x7d688a(0xbc)](_0x4985a9,_0xb2d1c3),l['isConnectorShape'](_0xa2974c)&&this['_linesIds'][_0x7d688a(0xd5)](_0x4985a9),_0xb2d1c3;}['getBasicShapeRelation'](_0x151732){const _0x1b3621=_0x9c8bca;var _0x4275cd,_0x38fcf4;const _0x46441f=[];for(const _0x8a0c97 of this[_0x1b3621(0xaa)]){const _0x312621=this[_0x1b3621(0x94)][_0x1b3621(0x9f)](_0x8a0c97);if(_0x312621){const _0x5361c5=_0x312621['getShapeRelation']();_0x5361c5&&(((_0x4275cd=_0x5361c5[_0x1b3621(0xd3)])==null?void 0x0:_0x4275cd['shapeId'])===_0x151732&&_0x46441f['push']({..._0x5361c5[_0x1b3621(0xd3)],'lineShapeId':_0x8a0c97,'isFrom':!0x0}),((_0x38fcf4=_0x5361c5['to'])==null?void 0x0:_0x38fcf4[_0x1b3621(0x9d)])===_0x151732&&_0x46441f['push']({..._0x5361c5['to'],'lineShapeId':_0x8a0c97,'isFrom':!0x1}));}}return _0x46441f;}['getLineShapeRelation'](_0x57e2f3){const _0x288f02=_0x9c8bca,_0x102938=this[_0x288f02(0x94)]['get'](_0x57e2f3);if(_0x102938)return _0x102938[_0x288f02(0xa9)]();}[_0x9c8bca(0xb3)](_0x133301){const _0x1e5bd9=_0x9c8bca,_0xae1dcc=this[_0x1e5bd9(0x94)][_0x1e5bd9(0x9f)](_0x133301);if(_0xae1dcc)return _0xae1dcc[_0x1e5bd9(0xb3)]();}['hasShape'](_0x419fb7){const _0x58e5a5=_0x9c8bca;return this[_0x58e5a5(0x94)]['has'](_0x419fb7);}[_0x9c8bca(0x8b)](_0x1aac0a){const _0x7bc4e7=_0x9c8bca,_0x4e137d=this[_0x7bc4e7(0x94)][_0x7bc4e7(0x9f)](_0x1aac0a);_0x4e137d&&(l[_0x7bc4e7(0xda)](_0x4e137d[_0x7bc4e7(0xb3)]())&&this[_0x7bc4e7(0xaa)][_0x7bc4e7(0x88)](_0x1aac0a),this['_shapes'][_0x7bc4e7(0x88)](_0x1aac0a));}[_0x9c8bca(0x80)](){const _0x4de87e=_0x9c8bca,_0x2f55fb=[];return this[_0x4de87e(0x94)][_0x4de87e(0xd2)](_0x5879fa=>{const _0x54cc98=_0x4de87e;_0x2f55fb[_0x54cc98(0xa4)](_0x5879fa[_0x54cc98(0x80)]());}),_0x2f55fb;}[_0x9c8bca(0x98)](_0x4ecefd){const _0x52880d=_0x9c8bca;for(const _0x3a81f3 of _0x4ecefd){const {id:_0x45efe2,shapeType:_0x3b8619}=_0x3a81f3,_0x92a11d=this[_0x52880d(0xa3)](_0x3b8619,_0x45efe2,_0x3a81f3['shapeData']);_0x92a11d&&_0x92a11d[_0x52880d(0x8c)]()&&this[_0x52880d(0xaa)][_0x52880d(0xd5)](_0x45efe2);}}[_0x9c8bca(0xcc)](){const _0x234f69=_0x9c8bca;this['_disposed']||(this[_0x234f69(0x94)][_0x234f69(0xd2)](_0x24e64a=>{const _0x3f8254=_0x234f69;_0x24e64a[_0x3f8254(0xcc)]();}),this[_0x234f69(0x94)]['clear'](),this[_0x234f69(0xaa)][_0x234f69(0xae)](),this['_groupIds'][_0x234f69(0xae)](),super['dispose']());}}var R=Object['getOwnPropertyDescriptor'],J=(_0x462201,_0x462dc8,_0x2f293a,_0x5f53c2)=>{const _0x328d50=_0x9c8bca;for(var _0x3f51ae=_0x5f53c2>0x1?void 0x0:_0x5f53c2?R(_0x462dc8,_0x2f293a):_0x462dc8,_0x37eb74=_0x462201[_0x328d50(0x9c)]-0x1,_0x172a67;_0x37eb74>=0x0;_0x37eb74--)(_0x172a67=_0x462201[_0x37eb74])&&(_0x3f51ae=_0x172a67(_0x3f51ae)||_0x3f51ae);return _0x3f51ae;},j=(_0x5b7858,_0x194154)=>(_0x2d1877,_0x4d292e)=>_0x194154(_0x2d1877,_0x4d292e,_0x5b7858);function _0x1474(){const _0x26d514=['ICommandService','CommandType','delete','_configService','getShapeData','removeShape','isLineShape','_ensureShapeModelManager','DependentOn','SHEET_SHAPE_PLUGIN','stringify','IUndoRedoService','registerCommand','UpdateSheetsShapeTypeCommand','_shapes','68731MCCCys','UniverInstanceType','2636570yUswMi','fromJSON','disposeWithMe','_groupIds','Inject','length','shapeId','sheet.mutation.update-shape-type','get','COMMAND','touchDependencies','Module','addShape','push','_initSnapshot','onStarting','1893784maacDI','_config','getShapeRelation','_linesIds','setConfig','insertShape','type','clear','setShapeData','UNIVER_SHEET','RemoveSheetsShapeMutation','3YwTHXz','getShapeType','_deserializeShapeForUnit','merge','610644jUsovn','1456930grkclL','assign','getShapeModel','IConfigService','Disposable','set','params','24426lhSaHF','_resourcesManagerService','_serializeShapeForUnit','onRendered','IResourceManagerService','registerPluginResource','_initCommands','pushUndoRedo','581dYMRcY','MUTATION','405837BLnHfg','sheet.command.update-shape-type','symbol','hasShape','dispose','_injector','keys','sheets-shape.config','getShapeDataById','defineProperty','forEach','from','_shapeModelManagerMap','add','_commandService','4HeJntH','SheetsShapeServices','getBasicShapeType','isConnectorShape','getLineShapeRelation','getBasicShapeRelation','toJSON','UniverSheetsShapePlugin','UpdateSheetsShapeTypeMutation','setShapeType','getShapeTypeById','sheet.mutation.update-shape-data'];_0x1474=function(){return _0x26d514;};return _0x1474();}const w='SHEET_SHAPE_PLUGIN';exports[_0x9c8bca(0xd8)]=class extends p[_0x9c8bca(0xbb)]{constructor(_0x314c35){const _0x5f3797=_0x9c8bca;super(),S(this,_0x5f3797(0xd4),new Map()),(this[_0x5f3797(0xbf)]=_0x314c35,this[_0x5f3797(0xa5)]());}[_0x9c8bca(0x8d)](_0x2dd1fe,_0x286c4b){const _0x188393=_0x9c8bca;let _0x572a7f=this[_0x188393(0xd4)][_0x188393(0x9f)](_0x2dd1fe);_0x572a7f||(_0x572a7f=new Map(),this[_0x188393(0xd4)][_0x188393(0xbc)](_0x2dd1fe,_0x572a7f));let _0x21834e=_0x572a7f[_0x188393(0x9f)](_0x286c4b);return _0x21834e||(_0x21834e=new f(),_0x572a7f['set'](_0x286c4b,_0x21834e)),_0x21834e;}[_0x9c8bca(0xac)](_0x35b3a2,_0x4bfa19,_0x226a38,_0x4bd998,_0x3b0996){const _0x5a3bd8=_0x9c8bca;this['_ensureShapeModelManager'](_0x35b3a2,_0x4bfa19)[_0x5a3bd8(0xa3)](_0x226a38,_0x4bd998,_0x3b0996);}[_0x9c8bca(0x8b)](_0x4dad7d,_0x33a37f,_0x484e28){const _0x2f3f60=_0x9c8bca;this['_ensureShapeModelManager'](_0x4dad7d,_0x33a37f)[_0x2f3f60(0x8b)](_0x484e28);}[_0x9c8bca(0xd9)](_0x467a3e,_0x49a08d,_0x4e14ef){const _0xded75=_0x9c8bca;return this[_0xded75(0x8d)](_0x467a3e,_0x49a08d)['getShapeType'](_0x4e14ef);}['getShapeType'](_0x7421ac,_0x15f38c,_0x42e2dd){return this['_ensureShapeModelManager'](_0x7421ac,_0x15f38c)['getShapeType'](_0x42e2dd);}['hasShape'](_0x3287a9,_0x8fe0bb,_0x171555){const _0x5892b2=_0x9c8bca;return this[_0x5892b2(0x8d)](_0x3287a9,_0x8fe0bb)[_0x5892b2(0xcb)](_0x171555);}[_0x9c8bca(0x84)](_0x174cff,_0x592810,_0x420bbe){const _0x15a455=_0x9c8bca;return this[_0x15a455(0x8d)](_0x174cff,_0x592810)[_0x15a455(0xb3)](_0x420bbe);}[_0x9c8bca(0xd0)](_0x5bfddd,_0x47a95e,_0x394419){const _0x5b5182=_0x9c8bca,_0x33805c=this[_0x5b5182(0x8d)](_0x5bfddd,_0x47a95e);if(!_0x33805c['getShapeType'](_0x394419))return;const _0x1ce91c=_0x33805c[_0x5b5182(0x94)][_0x5b5182(0x9f)](_0x394419);if(_0x1ce91c)return _0x1ce91c[_0x5b5182(0x8a)]();}[_0x9c8bca(0xb9)](_0x109fea,_0x137415,_0x300810){const _0x332c11=_0x9c8bca;return this[_0x332c11(0x8d)](_0x109fea,_0x137415)[_0x332c11(0x94)]['get'](_0x300810);}[_0x9c8bca(0xdc)](_0x557c4b,_0x105316,_0x122146){const _0x8e438=_0x9c8bca;return this[_0x8e438(0x8d)](_0x557c4b,_0x105316)[_0x8e438(0xdc)](_0x122146);}[_0x9c8bca(0xdb)](_0x160851,_0x279c82,_0x154e16){const _0x5e78e8=_0x9c8bca,_0x2bfc1c=this[_0x5e78e8(0x8d)](_0x160851,_0x279c82)[_0x5e78e8(0x94)][_0x5e78e8(0x9f)](_0x154e16);if(_0x2bfc1c)return _0x2bfc1c[_0x5e78e8(0xa9)]();}[_0x9c8bca(0x83)](){}[_0x9c8bca(0xc0)](_0x591400){const _0x4bd585=_0x9c8bca,_0x3fb885={},_0x3fde30=this[_0x4bd585(0xd4)][_0x4bd585(0x9f)](_0x591400);return _0x3fde30&&_0x3fde30[_0x4bd585(0xd2)]((_0x51143d,_0x2d1177)=>{const _0xe98a1f=_0x4bd585;_0x3fb885[_0x2d1177]=_0x51143d[_0xe98a1f(0x80)]();}),JSON[_0x4bd585(0x90)](_0x3fb885);}[_0x9c8bca(0xb4)](_0x4e1e87,_0x2d219f){const _0x1d4391=_0x9c8bca;Object[_0x1d4391(0xce)](_0x2d219f)[_0x1d4391(0xd2)](_0x36050c=>{const _0x3b1483=_0x1d4391;this[_0x3b1483(0x8d)](_0x4e1e87,_0x36050c)['fromJSON'](_0x2d219f[_0x36050c]);});}[_0x9c8bca(0x80)](){const _0x35e1f8=_0x9c8bca,_0x205bd0={};return this[_0x35e1f8(0xd4)][_0x35e1f8(0xd2)]((_0x405443,_0x1a3f7d)=>{const _0x3b20ae=_0x35e1f8;_0x205bd0[_0x1a3f7d]={},_0x405443[_0x3b20ae(0xd2)]((_0x1fed5f,_0x104693)=>{const _0x2e7841=_0x3b20ae;_0x205bd0[_0x1a3f7d][_0x104693]=_0x1fed5f[_0x2e7841(0x80)]();});}),_0x205bd0;}[_0x9c8bca(0x98)](_0x59f492){const _0x222616=_0x9c8bca;Object[_0x222616(0xce)](_0x59f492)[_0x222616(0xd2)](_0x4305ef=>{const _0x2a178c=_0x222616,_0x83388a=_0x59f492[_0x4305ef];Object[_0x2a178c(0xce)](_0x83388a)['forEach'](_0x34917a=>{const _0x4fab94=_0x2a178c;this[_0x4fab94(0x8d)](_0x4305ef,_0x34917a)[_0x4fab94(0x98)](_0x83388a[_0x34917a]);});});}[_0x9c8bca(0xa5)](){const _0x2fbf3b=_0x9c8bca;this['_resourcesManagerService'][_0x2fbf3b(0xc3)]({'pluginName':w,'businesses':[p[_0x2fbf3b(0x96)][_0x2fbf3b(0xb0)]],'toJson':_0x4d998e=>this[_0x2fbf3b(0xc0)](_0x4d998e),'parseJson':_0x3476b6=>JSON['parse'](_0x3476b6),'onLoad':(_0x3c230c,_0x30389d)=>{const _0x2119da=_0x2fbf3b;this[_0x2119da(0xb4)](_0x3c230c,_0x30389d);},'onUnLoad':_0x18a893=>{const _0x5919a1=_0x2fbf3b,_0x2671bb=this[_0x5919a1(0xd4)][_0x5919a1(0x9f)](_0x18a893);_0x2671bb&&(_0x2671bb[_0x5919a1(0xd2)](_0x2bf3e3=>{const _0x49eadf=_0x5919a1;_0x2bf3e3[_0x49eadf(0xcc)]();}),this[_0x5919a1(0xd4)][_0x5919a1(0x88)](_0x18a893));}});}[_0x9c8bca(0xcc)](){const _0x539686=_0x9c8bca;this[_0x539686(0xd4)]['forEach'](_0x3edaa7=>{const _0x3604db=_0x539686;_0x3edaa7[_0x3604db(0xd2)](_0x28f053=>{_0x28f053['dispose']();});});}},exports['SheetsShapeServices']=J([j(0x0,p[_0x9c8bca(0xc2)])],exports[_0x9c8bca(0xd8)]);function _0xf2c6(_0x91ab82,_0xa15704){_0x91ab82=_0x91ab82-0x80;const _0x147483=_0x1474();let _0xf2c6ec=_0x147483[_0x91ab82];return _0xf2c6ec;}const d={'id':_0x9c8bca(0x9e),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x540943,_0x308799)=>{const _0x4a1419=_0x9c8bca,{unitId:_0x1a87bb,subUnitId:_0x1b5af6,shapeType:_0x529a68,shapeId:_0x58f2b1,shapeData:_0xb027c9}=_0x308799,_0x461cab=_0x540943[_0x4a1419(0x9f)](exports['SheetsShapeServices'])[_0x4a1419(0xb9)](_0x1a87bb,_0x1b5af6,_0x58f2b1);return _0x461cab&&(_0x461cab['setShapeType'](_0x529a68),_0xb027c9&&(_0x461cab==null||_0x461cab['setShapeData'](_0xb027c9))),!0x0;}},H={'id':_0x9c8bca(0xc9),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xa0)],'handler':(_0x2185ad,_0x25bd73)=>{const _0x40e876=_0x9c8bca;if(!_0x25bd73)return!0x1;const _0x1ce69b=_0x2185ad['get'](p[_0x40e876(0x86)]),_0xc406ef=_0x2185ad[_0x40e876(0x9f)](exports[_0x40e876(0xd8)]),_0x375bc9=_0x2185ad[_0x40e876(0x9f)](p[_0x40e876(0x91)]),_0x5e56a9=[],_0x2d354f=[],{unitId:_0x269fc6,subUnitId:_0x11dae9,shapeId:_0x196075,shapeType:_0x5aaa72,shapeData:_0x2d8095}=_0x25bd73,_0x5ee0c2=_0xc406ef[_0x40e876(0xb9)](_0x269fc6,_0x11dae9,_0x196075);if(_0x5ee0c2){const _0x118e1e=_0x5ee0c2[_0x40e876(0xb3)](),_0x27d20c=Object[_0x40e876(0xb8)]({},_0x5ee0c2[_0x40e876(0x8a)]()),_0x3f8b44={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x5aaa72,'shapeData':_0x2d8095},_0x2bac91={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x118e1e,'shapeData':_0x27d20c};return _0x5e56a9[_0x40e876(0xa4)]({'id':d['id'],'params':_0x3f8b44}),_0x2d354f[_0x40e876(0xa4)]({'id':d['id'],'params':_0x2bac91}),_0x5e56a9['every'](_0x633fe3=>_0x1ce69b['syncExecuteCommand'](_0x633fe3['id'],_0x633fe3[_0x40e876(0xbd)]))&&_0x375bc9[_0x40e876(0xc5)]({'unitID':_0x269fc6,'redoMutations':[..._0x5e56a9],'undoMutations':[..._0x2d354f]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x9c8bca(0x87)]['MUTATION'],'handler':(_0x4f7fcd,_0x2ad384)=>{const _0x39a9a1=_0x9c8bca,{unitId:_0x5976d,subUnitId:_0x5fcdc9,shapeType:_0x263cf4,shapeId:_0x3f5a2f,shapeData:_0x55cac6}=_0x2ad384;return _0x4f7fcd[_0x39a9a1(0x9f)](exports[_0x39a9a1(0xd8)])[_0x39a9a1(0xac)](_0x5976d,_0x5fcdc9,_0x263cf4,_0x3f5a2f,_0x55cac6),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p['CommandType'][_0x9c8bca(0xc7)],'handler':(_0x21b94f,_0x331143)=>{const _0x17bb8c=_0x9c8bca,{unitId:_0x5bdac0,subUnitId:_0x32c06c,shapeId:_0x27f6dd}=_0x331143;return _0x21b94f[_0x17bb8c(0x9f)](exports[_0x17bb8c(0xd8)])[_0x17bb8c(0x8b)](_0x5bdac0,_0x32c06c,_0x27f6dd),!0x0;}},y={'id':_0x9c8bca(0x85),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x16a2b0,_0xa79d55)=>{const _0x27dc9d=_0x9c8bca,{unitId:_0x4dac75,subUnitId:_0x12e2c0,shapeType:_0x50193b,shapeId:_0x21b5ea,shapeData:_0x480d8a}=_0xa79d55,_0x5b92e1=_0x16a2b0[_0x27dc9d(0x9f)](exports[_0x27dc9d(0xd8)])[_0x27dc9d(0xb9)](_0x4dac75,_0x12e2c0,_0x21b5ea);return _0x5b92e1&&(_0x50193b!==void 0x0&&_0x5b92e1['setShapeType'](_0x50193b),_0x480d8a&&(_0x5b92e1==null||_0x5b92e1[_0x27dc9d(0xaf)](_0x480d8a,!0x0))),!0x0;}},A=_0x9c8bca(0xcf),_={};var L=Object[_0x9c8bca(0xd1)],F=Object['getOwnPropertyDescriptor'],B=(_0x2aafc8,_0x41ada7,_0x4e8ad4)=>_0x41ada7 in _0x2aafc8?L(_0x2aafc8,_0x41ada7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e8ad4}):_0x2aafc8[_0x41ada7]=_0x4e8ad4,G=(_0x538781,_0x3f5cc3,_0x50a63d,_0x5f133c)=>{const _0x12a4f6=_0x9c8bca;for(var _0x267fc8=_0x5f133c>0x1?void 0x0:_0x5f133c?F(_0x3f5cc3,_0x50a63d):_0x3f5cc3,_0x3e0384=_0x538781[_0x12a4f6(0x9c)]-0x1,_0x1b3684;_0x3e0384>=0x0;_0x3e0384--)(_0x1b3684=_0x538781[_0x3e0384])&&(_0x267fc8=_0x1b3684(_0x267fc8)||_0x267fc8);return _0x267fc8;},g=(_0x2f354c,_0x3b91f0)=>(_0x82276,_0x406805)=>_0x3b91f0(_0x82276,_0x406805,_0x2f354c),T=(_0x2b89a4,_0x2de6a7,_0x1f2ebd)=>B(_0x2b89a4,typeof _0x2de6a7!=_0x9c8bca(0xca)?_0x2de6a7+'':_0x2de6a7,_0x1f2ebd);const x=_0x9c8bca(0x8f);exports[_0x9c8bca(0x81)]=class extends p['Plugin']{constructor(_0x248ba0=_,_0x36c24e,_0x7cec1,_0x5a7c11){const _0x76950b=_0x9c8bca;super(),this['_config']=_0x248ba0,this[_0x76950b(0xcd)]=_0x36c24e,this[_0x76950b(0xd6)]=_0x7cec1,this[_0x76950b(0x89)]=_0x5a7c11;const {..._0x370606}=p[_0x76950b(0xb5)]({},_,this[_0x76950b(0xa8)]);this[_0x76950b(0x89)][_0x76950b(0xab)](A,_0x370606),this[_0x76950b(0xc4)]();}[_0x9c8bca(0xc1)](){const _0x4fb7fb=_0x9c8bca;p[_0x4fb7fb(0xa1)](this[_0x4fb7fb(0xcd)],[]);}[_0x9c8bca(0xa6)](){const _0x24a93a=_0x9c8bca,_0x4216a6=this[_0x24a93a(0xcd)];[[f],[exports[_0x24a93a(0xd8)]]]['forEach'](_0x15c0b3=>_0x4216a6[_0x24a93a(0xd5)](_0x15c0b3));}[_0x9c8bca(0xc4)](){const _0x21c62e=_0x9c8bca;[m,v,d,y][_0x21c62e(0xd2)](_0x3bacab=>this[_0x21c62e(0x99)](this[_0x21c62e(0xd6)][_0x21c62e(0x92)](_0x3bacab)));}},T(exports[_0x9c8bca(0x81)],_0x9c8bca(0xad),p['UniverInstanceType'][_0x9c8bca(0xb0)]),T(exports[_0x9c8bca(0x81)],'pluginName',x),exports[_0x9c8bca(0x81)]=G([p[_0x9c8bca(0x8e)](b['UniverLicensePlugin']),g(0x1,p[_0x9c8bca(0x9b)](p['Injector'])),g(0x2,p[_0x9c8bca(0x86)]),g(0x3,p[_0x9c8bca(0xba)])],exports[_0x9c8bca(0x81)]),exports['InsertSheetsShapeMutation']=m,exports[_0x9c8bca(0xb1)]=v,exports['UpdateSheetsShapeDataMutation']=y,exports[_0x9c8bca(0x93)]=H,exports[_0x9c8bca(0x82)]=d;
|
|
1
|
+
'use strict';const _0x5ac028=_0x5dec;(function(_0x148783,_0x3d02c8){const _0x61365e=_0x5dec,_0x340768=_0x148783();while(!![]){try{const _0x79d1f8=-parseInt(_0x61365e(0x8f))/0x1+-parseInt(_0x61365e(0x90))/0x2+parseInt(_0x61365e(0xb8))/0x3*(parseInt(_0x61365e(0x93))/0x4)+-parseInt(_0x61365e(0xbf))/0x5+parseInt(_0x61365e(0xc7))/0x6+parseInt(_0x61365e(0xa8))/0x7+parseInt(_0x61365e(0xb4))/0x8;if(_0x79d1f8===_0x3d02c8)break;else _0x340768['push'](_0x340768['shift']());}catch(_0x14200c){_0x340768['push'](_0x340768['shift']());}}}(_0x44af,0x8872e));var D=Object[_0x5ac028(0xcb)],C=(_0x129afa,_0x3c9e55,_0x43a49b)=>_0x3c9e55 in _0x129afa?D(_0x129afa,_0x3c9e55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43a49b}):_0x129afa[_0x3c9e55]=_0x43a49b,S=(_0x3a3ed5,_0x2ca470,_0x48ff6c)=>C(_0x3a3ed5,typeof _0x2ca470!=_0x5ac028(0xb6)?_0x2ca470+'':_0x2ca470,_0x48ff6c);Object[_0x5ac028(0xcb)](exports,Symbol[_0x5ac028(0xd3)],{'value':_0x5ac028(0xe0)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');function _0x5dec(_0x5ea418,_0x3b9629){_0x5ea418=_0x5ea418-0x8f;const _0x44af68=_0x44af();let _0x5dec21=_0x44af68[_0x5ea418];return _0x5dec21;}class f extends p[_0x5ac028(0xca)]{constructor(){const _0x40d50a=_0x5ac028;super(),S(this,_0x40d50a(0xe2),new Map()),S(this,_0x40d50a(0x9e),new Set()),S(this,_0x40d50a(0xd5),new Set());}[_0x5ac028(0x98)](_0x5e086d,_0x37ac39,_0x5d6a12){const _0x1eb9a1=_0x5ac028,_0x39d242=new l['ShapeModel'](_0x5e086d,_0x37ac39,_0x5d6a12);return this['_shapes'][_0x1eb9a1(0xe5)](_0x37ac39,_0x39d242),l['isConnectorShape'](_0x5e086d)&&this[_0x1eb9a1(0x9e)]['add'](_0x37ac39),_0x39d242;}[_0x5ac028(0xe8)](_0xa88c63){const _0x57d444=_0x5ac028;var _0x555522,_0x14f74a;const _0x149b8e=[];for(const _0x57f3d7 of this['_linesIds']){const _0x52faba=this[_0x57d444(0xe2)][_0x57d444(0xae)](_0x57f3d7);if(_0x52faba){const _0x308d89=_0x52faba['getShapeRelation']();_0x308d89&&(((_0x555522=_0x308d89[_0x57d444(0x9a)])==null?void 0x0:_0x555522[_0x57d444(0xb3)])===_0xa88c63&&_0x149b8e[_0x57d444(0xb0)]({..._0x308d89[_0x57d444(0x9a)],'lineShapeId':_0x57f3d7,'isFrom':!0x0}),((_0x14f74a=_0x308d89['to'])==null?void 0x0:_0x14f74a[_0x57d444(0xb3)])===_0xa88c63&&_0x149b8e[_0x57d444(0xb0)]({..._0x308d89['to'],'lineShapeId':_0x57f3d7,'isFrom':!0x1}));}}return _0x149b8e;}[_0x5ac028(0x97)](_0x5324b8){const _0x11a2f6=_0x5ac028,_0x17591a=this[_0x11a2f6(0xe2)][_0x11a2f6(0xae)](_0x5324b8);if(_0x17591a)return _0x17591a['getShapeRelation']();}[_0x5ac028(0x9f)](_0x412364){const _0x2a7f84=_0x5ac028,_0x4b6df7=this['_shapes'][_0x2a7f84(0xae)](_0x412364);if(_0x4b6df7)return _0x4b6df7[_0x2a7f84(0x9f)]();}['hasShape'](_0x1e377f){const _0x2e48c5=_0x5ac028;return this['_shapes'][_0x2e48c5(0xaf)](_0x1e377f);}[_0x5ac028(0xd4)](_0x58451e){const _0x3531cb=_0x5ac028,_0xe73a9e=this['_shapes']['get'](_0x58451e);_0xe73a9e&&(l[_0x3531cb(0xc0)](_0xe73a9e[_0x3531cb(0x9f)]())&&this[_0x3531cb(0x9e)][_0x3531cb(0x9d)](_0x58451e),this['_shapes']['delete'](_0x58451e));}[_0x5ac028(0xb5)](){const _0x182e01=_0x5ac028,_0x25fd2f=[];return this['_shapes'][_0x182e01(0xb2)](_0x242104=>{const _0x4c2d07=_0x182e01;_0x25fd2f['push'](_0x242104[_0x4c2d07(0xb5)]());}),_0x25fd2f;}[_0x5ac028(0xa6)](_0x1d4e86){const _0x4fec52=_0x5ac028;for(const _0x501b81 of _0x1d4e86){const {id:_0x808acc,shapeType:_0x48fb34}=_0x501b81,_0x1ea410=this[_0x4fec52(0x98)](_0x48fb34,_0x808acc,_0x501b81[_0x4fec52(0x95)]);_0x1ea410&&_0x1ea410['isLineShape']()&&this['_linesIds'][_0x4fec52(0xd2)](_0x808acc);}}['dispose'](){const _0x3da40e=_0x5ac028;this[_0x3da40e(0xe4)]||(this[_0x3da40e(0xe2)][_0x3da40e(0xb2)](_0x4e22cc=>{const _0x5ea275=_0x3da40e;_0x4e22cc[_0x5ea275(0xbe)]();}),this[_0x3da40e(0xe2)][_0x3da40e(0xab)](),this[_0x3da40e(0x9e)][_0x3da40e(0xab)](),this[_0x3da40e(0xd5)][_0x3da40e(0xab)](),super[_0x3da40e(0xbe)]());}}var R=Object['getOwnPropertyDescriptor'],J=(_0x3ef6ce,_0xa4d714,_0x4d5432,_0x1d59ca)=>{for(var _0xa866f3=_0x1d59ca>0x1?void 0x0:_0x1d59ca?R(_0xa4d714,_0x4d5432):_0xa4d714,_0x5a3789=_0x3ef6ce['length']-0x1,_0x1317f6;_0x5a3789>=0x0;_0x5a3789--)(_0x1317f6=_0x3ef6ce[_0x5a3789])&&(_0xa866f3=_0x1317f6(_0xa866f3)||_0xa866f3);return _0xa866f3;},j=(_0x29556d,_0x3048f2)=>(_0x233793,_0x57b6b1)=>_0x3048f2(_0x233793,_0x57b6b1,_0x29556d);const w=_0x5ac028(0xe9);exports[_0x5ac028(0x96)]=class extends p[_0x5ac028(0xca)]{constructor(_0x2579ae){const _0x100a7e=_0x5ac028;super(),S(this,_0x100a7e(0xc4),new Map()),(this[_0x100a7e(0xa9)]=_0x2579ae,this[_0x100a7e(0xc1)]());}['_ensureShapeModelManager'](_0x5bcb4b,_0x6cd117){const _0x2b2629=_0x5ac028;let _0x5f04db=this[_0x2b2629(0xc4)][_0x2b2629(0xae)](_0x5bcb4b);_0x5f04db||(_0x5f04db=new Map(),this[_0x2b2629(0xc4)]['set'](_0x5bcb4b,_0x5f04db));let _0x5eacc5=_0x5f04db['get'](_0x6cd117);return _0x5eacc5||(_0x5eacc5=new f(),_0x5f04db['set'](_0x6cd117,_0x5eacc5)),_0x5eacc5;}['insertShape'](_0x26d39c,_0x55f09b,_0x19b726,_0x195e93,_0x41d75a){const _0x59c9bb=_0x5ac028;this[_0x59c9bb(0xa3)](_0x26d39c,_0x55f09b)[_0x59c9bb(0x98)](_0x19b726,_0x195e93,_0x41d75a);}[_0x5ac028(0xd4)](_0x3f395d,_0x32af11,_0x37464f){const _0x79ad83=_0x5ac028;this[_0x79ad83(0xa3)](_0x3f395d,_0x32af11)['removeShape'](_0x37464f);}['getBasicShapeType'](_0x21a8d8,_0x59a809,_0x11fc52){const _0x141380=_0x5ac028;return this[_0x141380(0xa3)](_0x21a8d8,_0x59a809)['getShapeType'](_0x11fc52);}['getShapeType'](_0x34ff97,_0x4de1ab,_0x4a3f5e){const _0x47d0d8=_0x5ac028;return this[_0x47d0d8(0xa3)](_0x34ff97,_0x4de1ab)['getShapeType'](_0x4a3f5e);}[_0x5ac028(0xdd)](_0x59fd00,_0x2e7fd2,_0xbe1c82){const _0x452ad8=_0x5ac028;return this['_ensureShapeModelManager'](_0x59fd00,_0x2e7fd2)[_0x452ad8(0xdd)](_0xbe1c82);}['getShapeTypeById'](_0xb66460,_0x3fee97,_0x570bec){const _0x2f50a9=_0x5ac028;return this[_0x2f50a9(0xa3)](_0xb66460,_0x3fee97)['getShapeType'](_0x570bec);}[_0x5ac028(0xdc)](_0x1f65f9,_0x4fa392,_0x5cfdac){const _0x39053c=_0x5ac028,_0xca710f=this[_0x39053c(0xa3)](_0x1f65f9,_0x4fa392);if(!_0xca710f[_0x39053c(0x9f)](_0x5cfdac))return;const _0x3c7c5a=_0xca710f[_0x39053c(0xe2)][_0x39053c(0xae)](_0x5cfdac);if(_0x3c7c5a)return _0x3c7c5a[_0x39053c(0xe3)]();}[_0x5ac028(0xcc)](_0x1f84bc,_0x3679ff,_0x117655){const _0x4723dd=_0x5ac028;return this[_0x4723dd(0xa3)](_0x1f84bc,_0x3679ff)[_0x4723dd(0xe2)][_0x4723dd(0xae)](_0x117655);}[_0x5ac028(0xe8)](_0x2eaf32,_0x5b313f,_0x4088f9){const _0x3282f3=_0x5ac028;return this[_0x3282f3(0xa3)](_0x2eaf32,_0x5b313f)[_0x3282f3(0xe8)](_0x4088f9);}[_0x5ac028(0x97)](_0x1d9910,_0x379a64,_0x47bde0){const _0x4222be=_0x5ac028,_0x4cb61e=this[_0x4222be(0xa3)](_0x1d9910,_0x379a64)['_shapes'][_0x4222be(0xae)](_0x47bde0);if(_0x4cb61e)return _0x4cb61e[_0x4222be(0xeb)]();}[_0x5ac028(0xc8)](){}[_0x5ac028(0xde)](_0x4f754e){const _0x39ca05=_0x5ac028,_0x18dd45={},_0x4ffd4d=this[_0x39ca05(0xc4)]['get'](_0x4f754e);return _0x4ffd4d&&_0x4ffd4d[_0x39ca05(0xb2)]((_0x292e75,_0x3e3c54)=>{const _0x5f56b7=_0x39ca05;_0x18dd45[_0x3e3c54]=_0x292e75[_0x5f56b7(0xb5)]();}),JSON['stringify'](_0x18dd45);}[_0x5ac028(0xc6)](_0x53e2c9,_0x88f328){const _0x3da50b=_0x5ac028;Object['keys'](_0x88f328)[_0x3da50b(0xb2)](_0x421b78=>{const _0x115ee6=_0x3da50b;this[_0x115ee6(0xa3)](_0x53e2c9,_0x421b78)[_0x115ee6(0xa6)](_0x88f328[_0x421b78]);});}['toJSON'](){const _0x32104f=_0x5ac028,_0x25fd1a={};return this[_0x32104f(0xc4)][_0x32104f(0xb2)]((_0x24b0ae,_0x1753e0)=>{const _0x389194=_0x32104f;_0x25fd1a[_0x1753e0]={},_0x24b0ae[_0x389194(0xb2)]((_0x4e9b99,_0x6dd72a)=>{const _0x246d04=_0x389194;_0x25fd1a[_0x1753e0][_0x6dd72a]=_0x4e9b99[_0x246d04(0xb5)]();});}),_0x25fd1a;}[_0x5ac028(0xa6)](_0x52ec9e){const _0x3cae21=_0x5ac028;Object['keys'](_0x52ec9e)[_0x3cae21(0xb2)](_0x3ed5bb=>{const _0x133d57=_0x3cae21,_0x583461=_0x52ec9e[_0x3ed5bb];Object['keys'](_0x583461)[_0x133d57(0xb2)](_0x4081f3=>{const _0x81971a=_0x133d57;this[_0x81971a(0xa3)](_0x3ed5bb,_0x4081f3)[_0x81971a(0xa6)](_0x583461[_0x4081f3]);});});}['_initSnapshot'](){const _0x484d61=_0x5ac028;this['_resourcesManagerService'][_0x484d61(0xb7)]({'pluginName':w,'businesses':[p[_0x484d61(0xda)][_0x484d61(0xa4)]],'toJson':_0x4c8b68=>this[_0x484d61(0xde)](_0x4c8b68),'parseJson':_0x522c46=>JSON[_0x484d61(0xd1)](_0x522c46),'onLoad':(_0x1abc4f,_0x1dc39c)=>{this['_deserializeShapeForUnit'](_0x1abc4f,_0x1dc39c);},'onUnLoad':_0x2245bf=>{const _0xf00a0a=_0x484d61,_0x3fa437=this[_0xf00a0a(0xc4)][_0xf00a0a(0xae)](_0x2245bf);_0x3fa437&&(_0x3fa437[_0xf00a0a(0xb2)](_0x145eb4=>{_0x145eb4['dispose']();}),this['_shapeModelManagerMap'][_0xf00a0a(0x9d)](_0x2245bf));}});}[_0x5ac028(0xbe)](){const _0x2b148d=_0x5ac028;this[_0x2b148d(0xc4)][_0x2b148d(0xb2)](_0x331971=>{_0x331971['forEach'](_0x24db90=>{_0x24db90['dispose']();});});}},exports[_0x5ac028(0x96)]=J([j(0x0,p[_0x5ac028(0xe6)])],exports['SheetsShapeServices']);const d={'id':_0x5ac028(0xd0),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xc2)],'handler':(_0x5ac145,_0x120f7f)=>{const _0x2e349e=_0x5ac028,{unitId:_0x24ce31,subUnitId:_0x53dbc8,shapeType:_0x297ed6,shapeId:_0x5462b7,shapeData:_0x185509}=_0x120f7f,_0x37cec5=_0x5ac145[_0x2e349e(0xae)](exports[_0x2e349e(0x96)])['getShapeModel'](_0x24ce31,_0x53dbc8,_0x5462b7);return _0x37cec5&&(_0x37cec5[_0x2e349e(0xc8)](_0x297ed6),_0x185509&&(_0x37cec5==null||_0x37cec5[_0x2e349e(0xa5)](_0x185509))),!0x0;}},H={'id':_0x5ac028(0xdf),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xe7)],'handler':(_0x4e99c4,_0x5a93b3)=>{const _0x5ce4e8=_0x5ac028;if(!_0x5a93b3)return!0x1;const _0x54c0f1=_0x4e99c4[_0x5ce4e8(0xae)](p[_0x5ce4e8(0x94)]),_0x5a3a5c=_0x4e99c4[_0x5ce4e8(0xae)](exports['SheetsShapeServices']),_0x14c3d4=_0x4e99c4[_0x5ce4e8(0xae)](p['IUndoRedoService']),_0x543076=[],_0x2408f7=[],{unitId:_0x17c5ca,subUnitId:_0x144b52,shapeId:_0x115f28,shapeType:_0x11943f,shapeData:_0x2189e3}=_0x5a93b3,_0x3c2148=_0x5a3a5c['getShapeModel'](_0x17c5ca,_0x144b52,_0x115f28);if(_0x3c2148){const _0x2007b0=_0x3c2148[_0x5ce4e8(0x9f)](),_0x4af3a7=Object['assign']({},_0x3c2148[_0x5ce4e8(0xe3)]()),_0x1f4e52={'unitId':_0x17c5ca,'subUnitId':_0x144b52,'shapeId':_0x115f28,'shapeType':_0x11943f,'shapeData':_0x2189e3},_0x3688f8={'unitId':_0x17c5ca,'subUnitId':_0x144b52,'shapeId':_0x115f28,'shapeType':_0x2007b0,'shapeData':_0x4af3a7};return _0x543076[_0x5ce4e8(0xb0)]({'id':d['id'],'params':_0x1f4e52}),_0x2408f7[_0x5ce4e8(0xb0)]({'id':d['id'],'params':_0x3688f8}),_0x543076[_0x5ce4e8(0xbd)](_0x2acb96=>_0x54c0f1[_0x5ce4e8(0xc3)](_0x2acb96['id'],_0x2acb96[_0x5ce4e8(0xaa)]))&&_0x14c3d4[_0x5ce4e8(0xcf)]({'unitID':_0x17c5ca,'redoMutations':[..._0x543076],'undoMutations':[..._0x2408f7]}),!0x0;}return!0x1;}},m={'id':_0x5ac028(0xe1),'type':p[_0x5ac028(0xb1)]['MUTATION'],'handler':(_0x399059,_0x54c40f)=>{const _0x5e702c=_0x5ac028,{unitId:_0x556cb8,subUnitId:_0x46c33d,shapeType:_0x4113c1,shapeId:_0x36457d,shapeData:_0x26a23b}=_0x54c40f;return _0x399059['get'](exports[_0x5e702c(0x96)])[_0x5e702c(0x9c)](_0x556cb8,_0x46c33d,_0x4113c1,_0x36457d,_0x26a23b),!0x0;}},v={'id':_0x5ac028(0xdb),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xc2)],'handler':(_0x2f8bab,_0x56a513)=>{const _0x1d4786=_0x5ac028,{unitId:_0x642aab,subUnitId:_0x1f8742,shapeId:_0x3c1c1e}=_0x56a513;return _0x2f8bab[_0x1d4786(0xae)](exports[_0x1d4786(0x96)])[_0x1d4786(0xd4)](_0x642aab,_0x1f8742,_0x3c1c1e),!0x0;}},y={'id':_0x5ac028(0xbb),'type':p['CommandType'][_0x5ac028(0xc2)],'handler':(_0x1fc1ff,_0x254fd0)=>{const _0x3f6928=_0x5ac028,{unitId:_0x1f7147,subUnitId:_0x2a82e4,shapeType:_0x3e92fe,shapeId:_0x277b72,shapeData:_0xe72d5f}=_0x254fd0,_0x524367=_0x1fc1ff[_0x3f6928(0xae)](exports['SheetsShapeServices'])[_0x3f6928(0xcc)](_0x1f7147,_0x2a82e4,_0x277b72);return _0x524367&&(_0x3e92fe!==void 0x0&&_0x524367[_0x3f6928(0xc8)](_0x3e92fe),_0xe72d5f&&(_0x524367==null||_0x524367[_0x3f6928(0xa5)](_0xe72d5f,!0x0))),!0x0;}},A=_0x5ac028(0x92),_={};var L=Object[_0x5ac028(0xcb)],F=Object['getOwnPropertyDescriptor'],B=(_0xc877cd,_0x473b12,_0x16203c)=>_0x473b12 in _0xc877cd?L(_0xc877cd,_0x473b12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16203c}):_0xc877cd[_0x473b12]=_0x16203c,G=(_0x32d818,_0x477dfb,_0x252a84,_0x3c66f3)=>{for(var _0xe3c76c=_0x3c66f3>0x1?void 0x0:_0x3c66f3?F(_0x477dfb,_0x252a84):_0x477dfb,_0x39ae76=_0x32d818['length']-0x1,_0x1d2098;_0x39ae76>=0x0;_0x39ae76--)(_0x1d2098=_0x32d818[_0x39ae76])&&(_0xe3c76c=_0x1d2098(_0xe3c76c)||_0xe3c76c);return _0xe3c76c;},g=(_0x308ac4,_0x1ddc50)=>(_0x416a4b,_0x3d5048)=>_0x1ddc50(_0x416a4b,_0x3d5048,_0x308ac4),T=(_0x5d20a2,_0x5524b0,_0x56a4ae)=>B(_0x5d20a2,typeof _0x5524b0!='symbol'?_0x5524b0+'':_0x5524b0,_0x56a4ae);const x=_0x5ac028(0xe9);exports[_0x5ac028(0xd8)]=class extends p[_0x5ac028(0xa1)]{constructor(_0x465d47=_,_0x36315c,_0x170eac,_0x5260c2){const _0x318352=_0x5ac028;super(),this[_0x318352(0xc5)]=_0x465d47,this[_0x318352(0xd6)]=_0x36315c,this['_commandService']=_0x170eac,this[_0x318352(0xac)]=_0x5260c2;const {..._0x27efd9}=p['merge']({},_,this['_config']);this[_0x318352(0xac)]['setConfig'](A,_0x27efd9),this[_0x318352(0xd9)]();}[_0x5ac028(0x91)](){const _0x2d25e0=_0x5ac028;p[_0x2d25e0(0xa0)](this[_0x2d25e0(0xd6)],[]);}[_0x5ac028(0xa2)](){const _0x5c11aa=_0x5ac028,_0x157006=this[_0x5c11aa(0xd6)];[[f],[exports['SheetsShapeServices']]][_0x5c11aa(0xb2)](_0x560de8=>_0x157006[_0x5c11aa(0xd2)](_0x560de8));}[_0x5ac028(0xd9)](){const _0x1fc66b=_0x5ac028;[m,v,d,y]['forEach'](_0x94b501=>this[_0x1fc66b(0xa7)](this[_0x1fc66b(0xad)][_0x1fc66b(0xec)](_0x94b501)));}},T(exports[_0x5ac028(0xd8)],_0x5ac028(0xcd),p[_0x5ac028(0xda)]['UNIVER_SHEET']),T(exports[_0x5ac028(0xd8)],_0x5ac028(0xce),x),exports[_0x5ac028(0xd8)]=G([p['DependentOn'](b[_0x5ac028(0xc9)]),g(0x1,p[_0x5ac028(0xbc)](p['Injector'])),g(0x2,p[_0x5ac028(0x94)]),g(0x3,p[_0x5ac028(0xea)])],exports[_0x5ac028(0xd8)]),exports[_0x5ac028(0x9b)]=m,exports[_0x5ac028(0xd7)]=v,exports[_0x5ac028(0xb9)]=y,exports[_0x5ac028(0xba)]=H,exports[_0x5ac028(0x99)]=d;function _0x44af(){const _0x1d5219=['get','has','push','CommandType','forEach','shapeId','5406416ddscQE','toJSON','symbol','registerPluginResource','6LhBAgk','UpdateSheetsShapeDataMutation','UpdateSheetsShapeTypeCommand','sheet.mutation.update-shape-data','Inject','every','dispose','4066340AeJpqN','isConnectorShape','_initSnapshot','MUTATION','syncExecuteCommand','_shapeModelManagerMap','_config','_deserializeShapeForUnit','1229364bHIRvW','setShapeType','UniverLicensePlugin','Disposable','defineProperty','getShapeModel','type','pluginName','pushUndoRedo','sheet.mutation.update-shape-type','parse','add','toStringTag','removeShape','_groupIds','_injector','RemoveSheetsShapeMutation','UniverSheetsShapePlugin','_initCommands','UniverInstanceType','sheet.mutation.remove-shape','getShapeDataById','hasShape','_serializeShapeForUnit','sheet.command.update-shape-type','Module','sheet.mutation.insert-shape','_shapes','getShapeData','_disposed','set','IResourceManagerService','COMMAND','getBasicShapeRelation','SHEET_SHAPE_PLUGIN','IConfigService','getShapeRelation','registerCommand','198198WEWTsq','454088erxJkT','onRendered','sheets-shape.config','744528KKPWUl','ICommandService','shapeData','SheetsShapeServices','getLineShapeRelation','addShape','UpdateSheetsShapeTypeMutation','from','InsertSheetsShapeMutation','insertShape','delete','_linesIds','getShapeType','touchDependencies','Plugin','onStarting','_ensureShapeModelManager','UNIVER_SHEET','setShapeData','fromJSON','disposeWithMe','3811108iuEYfP','_resourcesManagerService','params','clear','_configService','_commandService'];_0x44af=function(){return _0x1d5219;};return _0x44af();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x4cc768=_0x1d7e;(function(_0x5e6635,_0x401031){const _0x2e0ec4=_0x1d7e,_0x42e4c1=_0x5e6635();while(!![]){try{const _0x1dc7f3=-parseInt(_0x2e0ec4(0x1b8))/0x1+-parseInt(_0x2e0ec4(0x1a2))/0x2+-parseInt(_0x2e0ec4(0x18c))/0x3+-parseInt(_0x2e0ec4(0x196))/0x4+-parseInt(_0x2e0ec4(0x1b1))/0x5*(-parseInt(_0x2e0ec4(0x192))/0x6)+parseInt(_0x2e0ec4(0x1a0))/0x7*(parseInt(_0x2e0ec4(0x190))/0x8)+parseInt(_0x2e0ec4(0x198))/0x9;if(_0x1dc7f3===_0x401031)break;else _0x42e4c1['push'](_0x42e4c1['shift']());}catch(_0x606fa0){_0x42e4c1['push'](_0x42e4c1['shift']());}}}(_0x221c,0x8c778));var R=Object[_0x4cc768(0x16d)],C=(_0x218ec6,_0x826148,_0x5e8f3a)=>_0x826148 in _0x218ec6?R(_0x218ec6,_0x826148,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8f3a}):_0x218ec6[_0x826148]=_0x5e8f3a,d=(_0x389ca2,_0x47c50c,_0x1eacfa)=>C(_0x389ca2,typeof _0x47c50c!=_0x4cc768(0x1ba)?_0x47c50c+'':_0x47c50c,_0x1eacfa);function _0x221c(){const _0x47d6dd=['2457444medEoG','_initSnapshot','21054078pScHzF','delete','_injector','stringify','_deserializeShapeForUnit','_linesIds','sheet.mutation.insert-shape','COMMAND','816655BXrGZC','setShapeType','337708MRPHbB','from','getShapeModel','getShapeTypeById','_ensureShapeModelManager','shapeId','isLineShape','get','onRendered','_shapes','length','toJSON','removeShape','_serializeShapeForUnit','MUTATION','555OczyOg','dispose','SHEET_SHAPE_PLUGIN','getShapeType','disposeWithMe','_groupIds','shapeData','1061231SVuuHW','pluginName','symbol','insertShape','sheet.mutation.remove-shape','defineProperty','getOwnPropertyDescriptor','_commandService','clear','_disposed','add','_resourcesManagerService','push','getShapeDataById','setShapeData','type','forEach','registerPluginResource','set','fromJSON','registerCommand','has','_configService','getLineShapeRelation','_shapeModelManagerMap','getBasicShapeRelation','parse','UNIVER_SHEET','addShape','getShapeRelation','syncExecuteCommand','getBasicShapeType','onStarting','sheet.mutation.update-shape-data','sheet.mutation.update-shape-type','getShapeData','2012721MLvdcI','keys','hasShape','_initCommands','8OtoaHF','assign','34308pIDpyZ','pushUndoRedo','sheets-shape.config','_config'];_0x221c=function(){return _0x47d6dd;};return _0x221c();}import{Disposable as _0x204338,UniverInstanceType as _0x228f81,IResourceManagerService as _0x7f9972,CommandType as _0x285e23,ICommandService as _0x217751,IUndoRedoService as _0x45cb91,DependentOn as _0x4f414d,Inject as _0x2ff514,Injector as _0x3bc1fa,Plugin as _0x281049,merge as _0x5f0e29,touchDependencies as _0x4e6c8c,IConfigService as _0x472081}from'@univerjs/core';import{ShapeModel as _0x6af823,isConnectorShape as _0x4518b0}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x2ad86e}from'@univerjs-pro/license';class T extends _0x204338{constructor(){const _0x2e022a=_0x4cc768;super(),d(this,_0x2e022a(0x1ab),new Map()),d(this,_0x2e022a(0x19d),new Set()),d(this,_0x2e022a(0x1b6),new Set());}[_0x4cc768(0x184)](_0x3bf2de,_0x170877,_0x12c087){const _0x1fe2bb=_0x4cc768,_0x307e29=new _0x6af823(_0x3bf2de,_0x170877,_0x12c087);return this[_0x1fe2bb(0x1ab)][_0x1fe2bb(0x17a)](_0x170877,_0x307e29),_0x4518b0(_0x3bf2de)&&this[_0x1fe2bb(0x19d)][_0x1fe2bb(0x172)](_0x170877),_0x307e29;}['getBasicShapeRelation'](_0x510ef9){const _0x59d8c0=_0x4cc768;var _0x19a6ba,_0x2a278d;const _0x5b3536=[];for(const _0x1712b7 of this[_0x59d8c0(0x19d)]){const _0x91a3d8=this[_0x59d8c0(0x1ab)]['get'](_0x1712b7);if(_0x91a3d8){const _0x44c148=_0x91a3d8[_0x59d8c0(0x185)]();_0x44c148&&(((_0x19a6ba=_0x44c148['from'])==null?void 0x0:_0x19a6ba[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148[_0x59d8c0(0x1a3)],'lineShapeId':_0x1712b7,'isFrom':!0x0}),((_0x2a278d=_0x44c148['to'])==null?void 0x0:_0x2a278d[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148['to'],'lineShapeId':_0x1712b7,'isFrom':!0x1}));}}return _0x5b3536;}['getLineShapeRelation'](_0x48f530){const _0x3a768c=_0x4cc768,_0x17e0c1=this[_0x3a768c(0x1ab)][_0x3a768c(0x1a9)](_0x48f530);if(_0x17e0c1)return _0x17e0c1[_0x3a768c(0x185)]();}[_0x4cc768(0x1b4)](_0x3b6e35){const _0x4d5408=_0x4cc768,_0x2c97e1=this[_0x4d5408(0x1ab)][_0x4d5408(0x1a9)](_0x3b6e35);if(_0x2c97e1)return _0x2c97e1[_0x4d5408(0x1b4)]();}[_0x4cc768(0x18e)](_0x3fe782){const _0xf7d68b=_0x4cc768;return this[_0xf7d68b(0x1ab)][_0xf7d68b(0x17d)](_0x3fe782);}[_0x4cc768(0x1ae)](_0xd329c2){const _0x2f8b19=_0x4cc768,_0x4b1bfd=this[_0x2f8b19(0x1ab)]['get'](_0xd329c2);_0x4b1bfd&&(_0x4518b0(_0x4b1bfd[_0x2f8b19(0x1b4)]())&&this[_0x2f8b19(0x19d)]['delete'](_0xd329c2),this[_0x2f8b19(0x1ab)][_0x2f8b19(0x199)](_0xd329c2));}[_0x4cc768(0x1ad)](){const _0x28e39b=_0x4cc768,_0x586e77=[];return this[_0x28e39b(0x1ab)][_0x28e39b(0x178)](_0x4cf5cf=>{const _0x16a237=_0x28e39b;_0x586e77[_0x16a237(0x174)](_0x4cf5cf[_0x16a237(0x1ad)]());}),_0x586e77;}[_0x4cc768(0x17b)](_0x1ebd37){const _0x4fa94b=_0x4cc768;for(const _0x18e710 of _0x1ebd37){const {id:_0x4076e2,shapeType:_0x1b7b81}=_0x18e710,_0x19b013=this['addShape'](_0x1b7b81,_0x4076e2,_0x18e710[_0x4fa94b(0x1b7)]);_0x19b013&&_0x19b013[_0x4fa94b(0x1a8)]()&&this[_0x4fa94b(0x19d)][_0x4fa94b(0x172)](_0x4076e2);}}['dispose'](){const _0x2447ae=_0x4cc768;this[_0x2447ae(0x171)]||(this['_shapes'][_0x2447ae(0x178)](_0x1d1dc7=>{const _0x27905=_0x2447ae;_0x1d1dc7[_0x27905(0x1b2)]();}),this[_0x2447ae(0x1ab)][_0x2447ae(0x170)](),this['_linesIds'][_0x2447ae(0x170)](),this[_0x2447ae(0x1b6)][_0x2447ae(0x170)](),super[_0x2447ae(0x1b2)]());}}var $=Object[_0x4cc768(0x16e)],V=(_0x235098,_0x4a5fdb,_0x4e0eee,_0x188e13)=>{const _0x50fd5b=_0x4cc768;for(var _0x4fa205=_0x188e13>0x1?void 0x0:_0x188e13?$(_0x4a5fdb,_0x4e0eee):_0x4a5fdb,_0x243c2d=_0x235098[_0x50fd5b(0x1ac)]-0x1,_0x4d5390;_0x243c2d>=0x0;_0x243c2d--)(_0x4d5390=_0x235098[_0x243c2d])&&(_0x4fa205=_0x4d5390(_0x4fa205)||_0x4fa205);return _0x4fa205;},K=(_0x17996a,_0x487880)=>(_0x39ecc1,_0x5cd1da)=>_0x487880(_0x39ecc1,_0x5cd1da,_0x17996a);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x204338{constructor(_0x5937c7){const _0x5f007e=_0x4cc768;super(),d(this,_0x5f007e(0x180),new Map()),(this[_0x5f007e(0x173)]=_0x5937c7,this['_initSnapshot']());}[_0x4cc768(0x1a6)](_0x3644a6,_0x585865){const _0x365134=_0x4cc768;let _0x14cddb=this[_0x365134(0x180)][_0x365134(0x1a9)](_0x3644a6);_0x14cddb||(_0x14cddb=new Map(),this[_0x365134(0x180)][_0x365134(0x17a)](_0x3644a6,_0x14cddb));let _0x4efba5=_0x14cddb[_0x365134(0x1a9)](_0x585865);return _0x4efba5||(_0x4efba5=new T(),_0x14cddb[_0x365134(0x17a)](_0x585865,_0x4efba5)),_0x4efba5;}[_0x4cc768(0x1bb)](_0xdea604,_0x129af1,_0x391c97,_0x163ac6,_0x32a945){const _0x445d37=_0x4cc768;this[_0x445d37(0x1a6)](_0xdea604,_0x129af1)[_0x445d37(0x184)](_0x391c97,_0x163ac6,_0x32a945);}['removeShape'](_0x37fe45,_0x3fb77f,_0xe306b3){const _0x1e9218=_0x4cc768;this['_ensureShapeModelManager'](_0x37fe45,_0x3fb77f)[_0x1e9218(0x1ae)](_0xe306b3);}[_0x4cc768(0x187)](_0x1735a5,_0x5ba15d,_0x4b176a){const _0x54ec7b=_0x4cc768;return this[_0x54ec7b(0x1a6)](_0x1735a5,_0x5ba15d)[_0x54ec7b(0x1b4)](_0x4b176a);}['getShapeType'](_0x1de9b0,_0x23f353,_0x45c610){const _0x4b590a=_0x4cc768;return this[_0x4b590a(0x1a6)](_0x1de9b0,_0x23f353)[_0x4b590a(0x1b4)](_0x45c610);}[_0x4cc768(0x18e)](_0x15fdb2,_0x2354c4,_0x31ec30){const _0x507a0a=_0x4cc768;return this[_0x507a0a(0x1a6)](_0x15fdb2,_0x2354c4)[_0x507a0a(0x18e)](_0x31ec30);}[_0x4cc768(0x1a5)](_0x3e8229,_0xb34123,_0xccb51e){const _0x126196=_0x4cc768;return this[_0x126196(0x1a6)](_0x3e8229,_0xb34123)[_0x126196(0x1b4)](_0xccb51e);}[_0x4cc768(0x175)](_0x4c3b67,_0xc40aee,_0x510136){const _0x45bfd9=_0x4cc768,_0x42fb88=this[_0x45bfd9(0x1a6)](_0x4c3b67,_0xc40aee);if(!_0x42fb88[_0x45bfd9(0x1b4)](_0x510136))return;const _0xcee85c=_0x42fb88[_0x45bfd9(0x1ab)]['get'](_0x510136);if(_0xcee85c)return _0xcee85c[_0x45bfd9(0x18b)]();}['getShapeModel'](_0x113551,_0x1da043,_0x426606){const _0x34d44f=_0x4cc768;return this['_ensureShapeModelManager'](_0x113551,_0x1da043)[_0x34d44f(0x1ab)][_0x34d44f(0x1a9)](_0x426606);}['getBasicShapeRelation'](_0x55ffef,_0x19f2d1,_0x5cfafc){const _0x3efef9=_0x4cc768;return this[_0x3efef9(0x1a6)](_0x55ffef,_0x19f2d1)[_0x3efef9(0x181)](_0x5cfafc);}[_0x4cc768(0x17f)](_0x2327cb,_0x9f134f,_0x1e8370){const _0x543ba4=_0x4cc768,_0xd5b384=this['_ensureShapeModelManager'](_0x2327cb,_0x9f134f)[_0x543ba4(0x1ab)][_0x543ba4(0x1a9)](_0x1e8370);if(_0xd5b384)return _0xd5b384['getShapeRelation']();}[_0x4cc768(0x1a1)](){}[_0x4cc768(0x1af)](_0x469302){const _0x5aa124=_0x4cc768,_0x5b4f32={},_0x500c05=this[_0x5aa124(0x180)][_0x5aa124(0x1a9)](_0x469302);return _0x500c05&&_0x500c05[_0x5aa124(0x178)]((_0x3d8616,_0x33f7a2)=>{_0x5b4f32[_0x33f7a2]=_0x3d8616['toJSON']();}),JSON[_0x5aa124(0x19b)](_0x5b4f32);}[_0x4cc768(0x19c)](_0x3e5eb5,_0x5788cf){const _0x58286d=_0x4cc768;Object[_0x58286d(0x18d)](_0x5788cf)[_0x58286d(0x178)](_0x288c09=>{const _0x1d001e=_0x58286d;this[_0x1d001e(0x1a6)](_0x3e5eb5,_0x288c09)['fromJSON'](_0x5788cf[_0x288c09]);});}[_0x4cc768(0x1ad)](){const _0x3abd05=_0x4cc768,_0x1fbc88={};return this[_0x3abd05(0x180)][_0x3abd05(0x178)]((_0x4745d3,_0x428fcb)=>{_0x1fbc88[_0x428fcb]={},_0x4745d3['forEach']((_0x1532e1,_0x30cdcc)=>{_0x1fbc88[_0x428fcb][_0x30cdcc]=_0x1532e1['toJSON']();});}),_0x1fbc88;}[_0x4cc768(0x17b)](_0x487028){const _0x3ae720=_0x4cc768;Object['keys'](_0x487028)[_0x3ae720(0x178)](_0x3f3aeb=>{const _0x435980=_0x3ae720,_0x425a7c=_0x487028[_0x3f3aeb];Object[_0x435980(0x18d)](_0x425a7c)[_0x435980(0x178)](_0x155d03=>{const _0x38d24b=_0x435980;this[_0x38d24b(0x1a6)](_0x3f3aeb,_0x155d03)[_0x38d24b(0x17b)](_0x425a7c[_0x155d03]);});});}[_0x4cc768(0x197)](){const _0x3b3565=_0x4cc768;this[_0x3b3565(0x173)][_0x3b3565(0x179)]({'pluginName':W,'businesses':[_0x228f81[_0x3b3565(0x183)]],'toJson':_0x27733d=>this[_0x3b3565(0x1af)](_0x27733d),'parseJson':_0x598f64=>JSON[_0x3b3565(0x182)](_0x598f64),'onLoad':(_0x3f376a,_0x5b1bc9)=>{const _0x480f99=_0x3b3565;this[_0x480f99(0x19c)](_0x3f376a,_0x5b1bc9);},'onUnLoad':_0x2aa47c=>{const _0x2996f4=_0x3b3565,_0x35d9c8=this[_0x2996f4(0x180)][_0x2996f4(0x1a9)](_0x2aa47c);_0x35d9c8&&(_0x35d9c8[_0x2996f4(0x178)](_0x2ed4df=>{const _0xe0c22e=_0x2996f4;_0x2ed4df[_0xe0c22e(0x1b2)]();}),this['_shapeModelManagerMap']['delete'](_0x2aa47c));}});}[_0x4cc768(0x1b2)](){const _0x5217d5=_0x4cc768;this[_0x5217d5(0x180)][_0x5217d5(0x178)](_0x33a67d=>{const _0x421ba1=_0x5217d5;_0x33a67d[_0x421ba1(0x178)](_0x3e1f37=>{_0x3e1f37['dispose']();});});}};i=V([K(0x0,_0x7f9972)],i);const u={'id':_0x4cc768(0x18a),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x30d073,_0x496539)=>{const _0x32af58=_0x4cc768,{unitId:_0x11c280,subUnitId:_0x373ffd,shapeType:_0x5161fe,shapeId:_0x259828,shapeData:_0x111c94}=_0x496539,_0x5321b6=_0x30d073[_0x32af58(0x1a9)](i)[_0x32af58(0x1a4)](_0x11c280,_0x373ffd,_0x259828);return _0x5321b6&&(_0x5321b6[_0x32af58(0x1a1)](_0x5161fe),_0x111c94&&(_0x5321b6==null||_0x5321b6[_0x32af58(0x176)](_0x111c94))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x285e23[_0x4cc768(0x19f)],'handler':(_0x152acf,_0xb0b4a2)=>{const _0xc59c3a=_0x4cc768;if(!_0xb0b4a2)return!0x1;const _0x5b0ca6=_0x152acf[_0xc59c3a(0x1a9)](_0x217751),_0x18d76b=_0x152acf[_0xc59c3a(0x1a9)](i),_0x14b2ea=_0x152acf['get'](_0x45cb91),_0x32f0b1=[],_0x55f419=[],{unitId:_0x13aedc,subUnitId:_0x136a87,shapeId:_0xab034f,shapeType:_0x16426a,shapeData:_0x4b0ea1}=_0xb0b4a2,_0x3fd5bd=_0x18d76b['getShapeModel'](_0x13aedc,_0x136a87,_0xab034f);if(_0x3fd5bd){const _0x52b69b=_0x3fd5bd[_0xc59c3a(0x1b4)](),_0x37397f=Object[_0xc59c3a(0x191)]({},_0x3fd5bd['getShapeData']()),_0x5450d0={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x16426a,'shapeData':_0x4b0ea1},_0x14a899={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x52b69b,'shapeData':_0x37397f};return _0x32f0b1['push']({'id':u['id'],'params':_0x5450d0}),_0x55f419[_0xc59c3a(0x174)]({'id':u['id'],'params':_0x14a899}),_0x32f0b1['every'](_0xa9b125=>_0x5b0ca6[_0xc59c3a(0x186)](_0xa9b125['id'],_0xa9b125['params']))&&_0x14b2ea[_0xc59c3a(0x193)]({'unitID':_0x13aedc,'redoMutations':[..._0x32f0b1],'undoMutations':[..._0x55f419]}),!0x0;}return!0x1;}},Y={'id':_0x4cc768(0x19e),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x566a3d,_0x17e3f4)=>{const _0x44be04=_0x4cc768,{unitId:_0x1bcbae,subUnitId:_0x10a43e,shapeType:_0x4370ca,shapeId:_0x51398b,shapeData:_0x406148}=_0x17e3f4;return _0x566a3d['get'](i)[_0x44be04(0x1bb)](_0x1bcbae,_0x10a43e,_0x4370ca,_0x51398b,_0x406148),!0x0;}},q={'id':_0x4cc768(0x1bc),'type':_0x285e23['MUTATION'],'handler':(_0x1007a4,_0x364b7a)=>{const _0x185351=_0x4cc768,{unitId:_0x33c977,subUnitId:_0x295138,shapeId:_0x34450f}=_0x364b7a;return _0x1007a4[_0x185351(0x1a9)](i)[_0x185351(0x1ae)](_0x33c977,_0x295138,_0x34450f),!0x0;}},Q={'id':_0x4cc768(0x189),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0xee9301,_0x12766d)=>{const _0x193a4c=_0x4cc768,{unitId:_0x29e808,subUnitId:_0x286936,shapeType:_0x54a1e1,shapeId:_0x41dc4d,shapeData:_0x129309}=_0x12766d,_0x47c707=_0xee9301[_0x193a4c(0x1a9)](i)[_0x193a4c(0x1a4)](_0x29e808,_0x286936,_0x41dc4d);return _0x47c707&&(_0x54a1e1!==void 0x0&&_0x47c707['setShapeType'](_0x54a1e1),_0x129309&&(_0x47c707==null||_0x47c707[_0x193a4c(0x176)](_0x129309,!0x0))),!0x0;}},X=_0x4cc768(0x194),m={};function _0x1d7e(_0x2c3938,_0x39cd34){_0x2c3938=_0x2c3938-0x16d;const _0x221c11=_0x221c();let _0x1d7eb2=_0x221c11[_0x2c3938];return _0x1d7eb2;}var Z=Object[_0x4cc768(0x16d)],k=Object['getOwnPropertyDescriptor'],ee=(_0x36b4e5,_0xcc9500,_0x28c414)=>_0xcc9500 in _0x36b4e5?Z(_0x36b4e5,_0xcc9500,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c414}):_0x36b4e5[_0xcc9500]=_0x28c414,ae=(_0x20995c,_0x24a57c,_0x1f336a,_0x13a385)=>{const _0x5d3770=_0x4cc768;for(var _0x2590a8=_0x13a385>0x1?void 0x0:_0x13a385?k(_0x24a57c,_0x1f336a):_0x24a57c,_0x93e89e=_0x20995c[_0x5d3770(0x1ac)]-0x1,_0x2a3468;_0x93e89e>=0x0;_0x93e89e--)(_0x2a3468=_0x20995c[_0x93e89e])&&(_0x2590a8=_0x2a3468(_0x2590a8)||_0x2590a8);return _0x2590a8;},g=(_0x3d27c5,_0x4e21ca)=>(_0x14da34,_0x39ef7b)=>_0x4e21ca(_0x14da34,_0x39ef7b,_0x3d27c5),E=(_0x2c9ba2,_0x15d45a,_0x541c70)=>ee(_0x2c9ba2,typeof _0x15d45a!=_0x4cc768(0x1ba)?_0x15d45a+'':_0x15d45a,_0x541c70);const se=_0x4cc768(0x1b3);let S=class extends _0x281049{constructor(_0x590bef=m,_0x5d7173,_0x59da61,_0x212fd5){const _0x5f265e=_0x4cc768;super(),this[_0x5f265e(0x195)]=_0x590bef,this[_0x5f265e(0x19a)]=_0x5d7173,this[_0x5f265e(0x16f)]=_0x59da61,this['_configService']=_0x212fd5;const {..._0x2f18e4}=_0x5f0e29({},m,this['_config']);this[_0x5f265e(0x17e)]['setConfig'](X,_0x2f18e4),this[_0x5f265e(0x18f)]();}[_0x4cc768(0x1aa)](){const _0x4cfae8=_0x4cc768;_0x4e6c8c(this[_0x4cfae8(0x19a)],[]);}[_0x4cc768(0x188)](){const _0x31c578=_0x4cc768,_0x89cd4=this[_0x31c578(0x19a)];[[T],[i]][_0x31c578(0x178)](_0xc060b5=>_0x89cd4['add'](_0xc060b5));}[_0x4cc768(0x18f)](){const _0xcb8660=_0x4cc768;[Y,q,u,Q][_0xcb8660(0x178)](_0x20c2cc=>this[_0xcb8660(0x1b5)](this[_0xcb8660(0x16f)][_0xcb8660(0x17c)](_0x20c2cc)));}};E(S,_0x4cc768(0x177),_0x228f81[_0x4cc768(0x183)]),E(S,_0x4cc768(0x1b9),se),S=ae([_0x4f414d(_0x2ad86e),g(0x1,_0x2ff514(_0x3bc1fa)),g(0x2,_0x217751),g(0x3,_0x472081)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x4cc768=_0x1d7e;(function(_0x5e6635,_0x401031){const _0x2e0ec4=_0x1d7e,_0x42e4c1=_0x5e6635();while(!![]){try{const _0x1dc7f3=-parseInt(_0x2e0ec4(0x1b8))/0x1+-parseInt(_0x2e0ec4(0x1a2))/0x2+-parseInt(_0x2e0ec4(0x18c))/0x3+-parseInt(_0x2e0ec4(0x196))/0x4+-parseInt(_0x2e0ec4(0x1b1))/0x5*(-parseInt(_0x2e0ec4(0x192))/0x6)+parseInt(_0x2e0ec4(0x1a0))/0x7*(parseInt(_0x2e0ec4(0x190))/0x8)+parseInt(_0x2e0ec4(0x198))/0x9;if(_0x1dc7f3===_0x401031)break;else _0x42e4c1['push'](_0x42e4c1['shift']());}catch(_0x606fa0){_0x42e4c1['push'](_0x42e4c1['shift']());}}}(_0x221c,0x8c778));var R=Object[_0x4cc768(0x16d)],C=(_0x218ec6,_0x826148,_0x5e8f3a)=>_0x826148 in _0x218ec6?R(_0x218ec6,_0x826148,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8f3a}):_0x218ec6[_0x826148]=_0x5e8f3a,d=(_0x389ca2,_0x47c50c,_0x1eacfa)=>C(_0x389ca2,typeof _0x47c50c!=_0x4cc768(0x1ba)?_0x47c50c+'':_0x47c50c,_0x1eacfa);function _0x221c(){const _0x47d6dd=['2457444medEoG','_initSnapshot','21054078pScHzF','delete','_injector','stringify','_deserializeShapeForUnit','_linesIds','sheet.mutation.insert-shape','COMMAND','816655BXrGZC','setShapeType','337708MRPHbB','from','getShapeModel','getShapeTypeById','_ensureShapeModelManager','shapeId','isLineShape','get','onRendered','_shapes','length','toJSON','removeShape','_serializeShapeForUnit','MUTATION','555OczyOg','dispose','SHEET_SHAPE_PLUGIN','getShapeType','disposeWithMe','_groupIds','shapeData','1061231SVuuHW','pluginName','symbol','insertShape','sheet.mutation.remove-shape','defineProperty','getOwnPropertyDescriptor','_commandService','clear','_disposed','add','_resourcesManagerService','push','getShapeDataById','setShapeData','type','forEach','registerPluginResource','set','fromJSON','registerCommand','has','_configService','getLineShapeRelation','_shapeModelManagerMap','getBasicShapeRelation','parse','UNIVER_SHEET','addShape','getShapeRelation','syncExecuteCommand','getBasicShapeType','onStarting','sheet.mutation.update-shape-data','sheet.mutation.update-shape-type','getShapeData','2012721MLvdcI','keys','hasShape','_initCommands','8OtoaHF','assign','34308pIDpyZ','pushUndoRedo','sheets-shape.config','_config'];_0x221c=function(){return _0x47d6dd;};return _0x221c();}import{Disposable as _0x204338,UniverInstanceType as _0x228f81,IResourceManagerService as _0x7f9972,CommandType as _0x285e23,ICommandService as _0x217751,IUndoRedoService as _0x45cb91,DependentOn as _0x4f414d,Inject as _0x2ff514,Injector as _0x3bc1fa,Plugin as _0x281049,merge as _0x5f0e29,touchDependencies as _0x4e6c8c,IConfigService as _0x472081}from'@univerjs/core';import{ShapeModel as _0x6af823,isConnectorShape as _0x4518b0}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x2ad86e}from'@univerjs-pro/license';class T extends _0x204338{constructor(){const _0x2e022a=_0x4cc768;super(),d(this,_0x2e022a(0x1ab),new Map()),d(this,_0x2e022a(0x19d),new Set()),d(this,_0x2e022a(0x1b6),new Set());}[_0x4cc768(0x184)](_0x3bf2de,_0x170877,_0x12c087){const _0x1fe2bb=_0x4cc768,_0x307e29=new _0x6af823(_0x3bf2de,_0x170877,_0x12c087);return this[_0x1fe2bb(0x1ab)][_0x1fe2bb(0x17a)](_0x170877,_0x307e29),_0x4518b0(_0x3bf2de)&&this[_0x1fe2bb(0x19d)][_0x1fe2bb(0x172)](_0x170877),_0x307e29;}['getBasicShapeRelation'](_0x510ef9){const _0x59d8c0=_0x4cc768;var _0x19a6ba,_0x2a278d;const _0x5b3536=[];for(const _0x1712b7 of this[_0x59d8c0(0x19d)]){const _0x91a3d8=this[_0x59d8c0(0x1ab)]['get'](_0x1712b7);if(_0x91a3d8){const _0x44c148=_0x91a3d8[_0x59d8c0(0x185)]();_0x44c148&&(((_0x19a6ba=_0x44c148['from'])==null?void 0x0:_0x19a6ba[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148[_0x59d8c0(0x1a3)],'lineShapeId':_0x1712b7,'isFrom':!0x0}),((_0x2a278d=_0x44c148['to'])==null?void 0x0:_0x2a278d[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148['to'],'lineShapeId':_0x1712b7,'isFrom':!0x1}));}}return _0x5b3536;}['getLineShapeRelation'](_0x48f530){const _0x3a768c=_0x4cc768,_0x17e0c1=this[_0x3a768c(0x1ab)][_0x3a768c(0x1a9)](_0x48f530);if(_0x17e0c1)return _0x17e0c1[_0x3a768c(0x185)]();}[_0x4cc768(0x1b4)](_0x3b6e35){const _0x4d5408=_0x4cc768,_0x2c97e1=this[_0x4d5408(0x1ab)][_0x4d5408(0x1a9)](_0x3b6e35);if(_0x2c97e1)return _0x2c97e1[_0x4d5408(0x1b4)]();}[_0x4cc768(0x18e)](_0x3fe782){const _0xf7d68b=_0x4cc768;return this[_0xf7d68b(0x1ab)][_0xf7d68b(0x17d)](_0x3fe782);}[_0x4cc768(0x1ae)](_0xd329c2){const _0x2f8b19=_0x4cc768,_0x4b1bfd=this[_0x2f8b19(0x1ab)]['get'](_0xd329c2);_0x4b1bfd&&(_0x4518b0(_0x4b1bfd[_0x2f8b19(0x1b4)]())&&this[_0x2f8b19(0x19d)]['delete'](_0xd329c2),this[_0x2f8b19(0x1ab)][_0x2f8b19(0x199)](_0xd329c2));}[_0x4cc768(0x1ad)](){const _0x28e39b=_0x4cc768,_0x586e77=[];return this[_0x28e39b(0x1ab)][_0x28e39b(0x178)](_0x4cf5cf=>{const _0x16a237=_0x28e39b;_0x586e77[_0x16a237(0x174)](_0x4cf5cf[_0x16a237(0x1ad)]());}),_0x586e77;}[_0x4cc768(0x17b)](_0x1ebd37){const _0x4fa94b=_0x4cc768;for(const _0x18e710 of _0x1ebd37){const {id:_0x4076e2,shapeType:_0x1b7b81}=_0x18e710,_0x19b013=this['addShape'](_0x1b7b81,_0x4076e2,_0x18e710[_0x4fa94b(0x1b7)]);_0x19b013&&_0x19b013[_0x4fa94b(0x1a8)]()&&this[_0x4fa94b(0x19d)][_0x4fa94b(0x172)](_0x4076e2);}}['dispose'](){const _0x2447ae=_0x4cc768;this[_0x2447ae(0x171)]||(this['_shapes'][_0x2447ae(0x178)](_0x1d1dc7=>{const _0x27905=_0x2447ae;_0x1d1dc7[_0x27905(0x1b2)]();}),this[_0x2447ae(0x1ab)][_0x2447ae(0x170)](),this['_linesIds'][_0x2447ae(0x170)](),this[_0x2447ae(0x1b6)][_0x2447ae(0x170)](),super[_0x2447ae(0x1b2)]());}}var $=Object[_0x4cc768(0x16e)],V=(_0x235098,_0x4a5fdb,_0x4e0eee,_0x188e13)=>{const _0x50fd5b=_0x4cc768;for(var _0x4fa205=_0x188e13>0x1?void 0x0:_0x188e13?$(_0x4a5fdb,_0x4e0eee):_0x4a5fdb,_0x243c2d=_0x235098[_0x50fd5b(0x1ac)]-0x1,_0x4d5390;_0x243c2d>=0x0;_0x243c2d--)(_0x4d5390=_0x235098[_0x243c2d])&&(_0x4fa205=_0x4d5390(_0x4fa205)||_0x4fa205);return _0x4fa205;},K=(_0x17996a,_0x487880)=>(_0x39ecc1,_0x5cd1da)=>_0x487880(_0x39ecc1,_0x5cd1da,_0x17996a);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x204338{constructor(_0x5937c7){const _0x5f007e=_0x4cc768;super(),d(this,_0x5f007e(0x180),new Map()),(this[_0x5f007e(0x173)]=_0x5937c7,this['_initSnapshot']());}[_0x4cc768(0x1a6)](_0x3644a6,_0x585865){const _0x365134=_0x4cc768;let _0x14cddb=this[_0x365134(0x180)][_0x365134(0x1a9)](_0x3644a6);_0x14cddb||(_0x14cddb=new Map(),this[_0x365134(0x180)][_0x365134(0x17a)](_0x3644a6,_0x14cddb));let _0x4efba5=_0x14cddb[_0x365134(0x1a9)](_0x585865);return _0x4efba5||(_0x4efba5=new T(),_0x14cddb[_0x365134(0x17a)](_0x585865,_0x4efba5)),_0x4efba5;}[_0x4cc768(0x1bb)](_0xdea604,_0x129af1,_0x391c97,_0x163ac6,_0x32a945){const _0x445d37=_0x4cc768;this[_0x445d37(0x1a6)](_0xdea604,_0x129af1)[_0x445d37(0x184)](_0x391c97,_0x163ac6,_0x32a945);}['removeShape'](_0x37fe45,_0x3fb77f,_0xe306b3){const _0x1e9218=_0x4cc768;this['_ensureShapeModelManager'](_0x37fe45,_0x3fb77f)[_0x1e9218(0x1ae)](_0xe306b3);}[_0x4cc768(0x187)](_0x1735a5,_0x5ba15d,_0x4b176a){const _0x54ec7b=_0x4cc768;return this[_0x54ec7b(0x1a6)](_0x1735a5,_0x5ba15d)[_0x54ec7b(0x1b4)](_0x4b176a);}['getShapeType'](_0x1de9b0,_0x23f353,_0x45c610){const _0x4b590a=_0x4cc768;return this[_0x4b590a(0x1a6)](_0x1de9b0,_0x23f353)[_0x4b590a(0x1b4)](_0x45c610);}[_0x4cc768(0x18e)](_0x15fdb2,_0x2354c4,_0x31ec30){const _0x507a0a=_0x4cc768;return this[_0x507a0a(0x1a6)](_0x15fdb2,_0x2354c4)[_0x507a0a(0x18e)](_0x31ec30);}[_0x4cc768(0x1a5)](_0x3e8229,_0xb34123,_0xccb51e){const _0x126196=_0x4cc768;return this[_0x126196(0x1a6)](_0x3e8229,_0xb34123)[_0x126196(0x1b4)](_0xccb51e);}[_0x4cc768(0x175)](_0x4c3b67,_0xc40aee,_0x510136){const _0x45bfd9=_0x4cc768,_0x42fb88=this[_0x45bfd9(0x1a6)](_0x4c3b67,_0xc40aee);if(!_0x42fb88[_0x45bfd9(0x1b4)](_0x510136))return;const _0xcee85c=_0x42fb88[_0x45bfd9(0x1ab)]['get'](_0x510136);if(_0xcee85c)return _0xcee85c[_0x45bfd9(0x18b)]();}['getShapeModel'](_0x113551,_0x1da043,_0x426606){const _0x34d44f=_0x4cc768;return this['_ensureShapeModelManager'](_0x113551,_0x1da043)[_0x34d44f(0x1ab)][_0x34d44f(0x1a9)](_0x426606);}['getBasicShapeRelation'](_0x55ffef,_0x19f2d1,_0x5cfafc){const _0x3efef9=_0x4cc768;return this[_0x3efef9(0x1a6)](_0x55ffef,_0x19f2d1)[_0x3efef9(0x181)](_0x5cfafc);}[_0x4cc768(0x17f)](_0x2327cb,_0x9f134f,_0x1e8370){const _0x543ba4=_0x4cc768,_0xd5b384=this['_ensureShapeModelManager'](_0x2327cb,_0x9f134f)[_0x543ba4(0x1ab)][_0x543ba4(0x1a9)](_0x1e8370);if(_0xd5b384)return _0xd5b384['getShapeRelation']();}[_0x4cc768(0x1a1)](){}[_0x4cc768(0x1af)](_0x469302){const _0x5aa124=_0x4cc768,_0x5b4f32={},_0x500c05=this[_0x5aa124(0x180)][_0x5aa124(0x1a9)](_0x469302);return _0x500c05&&_0x500c05[_0x5aa124(0x178)]((_0x3d8616,_0x33f7a2)=>{_0x5b4f32[_0x33f7a2]=_0x3d8616['toJSON']();}),JSON[_0x5aa124(0x19b)](_0x5b4f32);}[_0x4cc768(0x19c)](_0x3e5eb5,_0x5788cf){const _0x58286d=_0x4cc768;Object[_0x58286d(0x18d)](_0x5788cf)[_0x58286d(0x178)](_0x288c09=>{const _0x1d001e=_0x58286d;this[_0x1d001e(0x1a6)](_0x3e5eb5,_0x288c09)['fromJSON'](_0x5788cf[_0x288c09]);});}[_0x4cc768(0x1ad)](){const _0x3abd05=_0x4cc768,_0x1fbc88={};return this[_0x3abd05(0x180)][_0x3abd05(0x178)]((_0x4745d3,_0x428fcb)=>{_0x1fbc88[_0x428fcb]={},_0x4745d3['forEach']((_0x1532e1,_0x30cdcc)=>{_0x1fbc88[_0x428fcb][_0x30cdcc]=_0x1532e1['toJSON']();});}),_0x1fbc88;}[_0x4cc768(0x17b)](_0x487028){const _0x3ae720=_0x4cc768;Object['keys'](_0x487028)[_0x3ae720(0x178)](_0x3f3aeb=>{const _0x435980=_0x3ae720,_0x425a7c=_0x487028[_0x3f3aeb];Object[_0x435980(0x18d)](_0x425a7c)[_0x435980(0x178)](_0x155d03=>{const _0x38d24b=_0x435980;this[_0x38d24b(0x1a6)](_0x3f3aeb,_0x155d03)[_0x38d24b(0x17b)](_0x425a7c[_0x155d03]);});});}[_0x4cc768(0x197)](){const _0x3b3565=_0x4cc768;this[_0x3b3565(0x173)][_0x3b3565(0x179)]({'pluginName':W,'businesses':[_0x228f81[_0x3b3565(0x183)]],'toJson':_0x27733d=>this[_0x3b3565(0x1af)](_0x27733d),'parseJson':_0x598f64=>JSON[_0x3b3565(0x182)](_0x598f64),'onLoad':(_0x3f376a,_0x5b1bc9)=>{const _0x480f99=_0x3b3565;this[_0x480f99(0x19c)](_0x3f376a,_0x5b1bc9);},'onUnLoad':_0x2aa47c=>{const _0x2996f4=_0x3b3565,_0x35d9c8=this[_0x2996f4(0x180)][_0x2996f4(0x1a9)](_0x2aa47c);_0x35d9c8&&(_0x35d9c8[_0x2996f4(0x178)](_0x2ed4df=>{const _0xe0c22e=_0x2996f4;_0x2ed4df[_0xe0c22e(0x1b2)]();}),this['_shapeModelManagerMap']['delete'](_0x2aa47c));}});}[_0x4cc768(0x1b2)](){const _0x5217d5=_0x4cc768;this[_0x5217d5(0x180)][_0x5217d5(0x178)](_0x33a67d=>{const _0x421ba1=_0x5217d5;_0x33a67d[_0x421ba1(0x178)](_0x3e1f37=>{_0x3e1f37['dispose']();});});}};i=V([K(0x0,_0x7f9972)],i);const u={'id':_0x4cc768(0x18a),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x30d073,_0x496539)=>{const _0x32af58=_0x4cc768,{unitId:_0x11c280,subUnitId:_0x373ffd,shapeType:_0x5161fe,shapeId:_0x259828,shapeData:_0x111c94}=_0x496539,_0x5321b6=_0x30d073[_0x32af58(0x1a9)](i)[_0x32af58(0x1a4)](_0x11c280,_0x373ffd,_0x259828);return _0x5321b6&&(_0x5321b6[_0x32af58(0x1a1)](_0x5161fe),_0x111c94&&(_0x5321b6==null||_0x5321b6[_0x32af58(0x176)](_0x111c94))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x285e23[_0x4cc768(0x19f)],'handler':(_0x152acf,_0xb0b4a2)=>{const _0xc59c3a=_0x4cc768;if(!_0xb0b4a2)return!0x1;const _0x5b0ca6=_0x152acf[_0xc59c3a(0x1a9)](_0x217751),_0x18d76b=_0x152acf[_0xc59c3a(0x1a9)](i),_0x14b2ea=_0x152acf['get'](_0x45cb91),_0x32f0b1=[],_0x55f419=[],{unitId:_0x13aedc,subUnitId:_0x136a87,shapeId:_0xab034f,shapeType:_0x16426a,shapeData:_0x4b0ea1}=_0xb0b4a2,_0x3fd5bd=_0x18d76b['getShapeModel'](_0x13aedc,_0x136a87,_0xab034f);if(_0x3fd5bd){const _0x52b69b=_0x3fd5bd[_0xc59c3a(0x1b4)](),_0x37397f=Object[_0xc59c3a(0x191)]({},_0x3fd5bd['getShapeData']()),_0x5450d0={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x16426a,'shapeData':_0x4b0ea1},_0x14a899={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x52b69b,'shapeData':_0x37397f};return _0x32f0b1['push']({'id':u['id'],'params':_0x5450d0}),_0x55f419[_0xc59c3a(0x174)]({'id':u['id'],'params':_0x14a899}),_0x32f0b1['every'](_0xa9b125=>_0x5b0ca6[_0xc59c3a(0x186)](_0xa9b125['id'],_0xa9b125['params']))&&_0x14b2ea[_0xc59c3a(0x193)]({'unitID':_0x13aedc,'redoMutations':[..._0x32f0b1],'undoMutations':[..._0x55f419]}),!0x0;}return!0x1;}},Y={'id':_0x4cc768(0x19e),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x566a3d,_0x17e3f4)=>{const _0x44be04=_0x4cc768,{unitId:_0x1bcbae,subUnitId:_0x10a43e,shapeType:_0x4370ca,shapeId:_0x51398b,shapeData:_0x406148}=_0x17e3f4;return _0x566a3d['get'](i)[_0x44be04(0x1bb)](_0x1bcbae,_0x10a43e,_0x4370ca,_0x51398b,_0x406148),!0x0;}},q={'id':_0x4cc768(0x1bc),'type':_0x285e23['MUTATION'],'handler':(_0x1007a4,_0x364b7a)=>{const _0x185351=_0x4cc768,{unitId:_0x33c977,subUnitId:_0x295138,shapeId:_0x34450f}=_0x364b7a;return _0x1007a4[_0x185351(0x1a9)](i)[_0x185351(0x1ae)](_0x33c977,_0x295138,_0x34450f),!0x0;}},Q={'id':_0x4cc768(0x189),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0xee9301,_0x12766d)=>{const _0x193a4c=_0x4cc768,{unitId:_0x29e808,subUnitId:_0x286936,shapeType:_0x54a1e1,shapeId:_0x41dc4d,shapeData:_0x129309}=_0x12766d,_0x47c707=_0xee9301[_0x193a4c(0x1a9)](i)[_0x193a4c(0x1a4)](_0x29e808,_0x286936,_0x41dc4d);return _0x47c707&&(_0x54a1e1!==void 0x0&&_0x47c707['setShapeType'](_0x54a1e1),_0x129309&&(_0x47c707==null||_0x47c707[_0x193a4c(0x176)](_0x129309,!0x0))),!0x0;}},X=_0x4cc768(0x194),m={};function _0x1d7e(_0x2c3938,_0x39cd34){_0x2c3938=_0x2c3938-0x16d;const _0x221c11=_0x221c();let _0x1d7eb2=_0x221c11[_0x2c3938];return _0x1d7eb2;}var Z=Object[_0x4cc768(0x16d)],k=Object['getOwnPropertyDescriptor'],ee=(_0x36b4e5,_0xcc9500,_0x28c414)=>_0xcc9500 in _0x36b4e5?Z(_0x36b4e5,_0xcc9500,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c414}):_0x36b4e5[_0xcc9500]=_0x28c414,ae=(_0x20995c,_0x24a57c,_0x1f336a,_0x13a385)=>{const _0x5d3770=_0x4cc768;for(var _0x2590a8=_0x13a385>0x1?void 0x0:_0x13a385?k(_0x24a57c,_0x1f336a):_0x24a57c,_0x93e89e=_0x20995c[_0x5d3770(0x1ac)]-0x1,_0x2a3468;_0x93e89e>=0x0;_0x93e89e--)(_0x2a3468=_0x20995c[_0x93e89e])&&(_0x2590a8=_0x2a3468(_0x2590a8)||_0x2590a8);return _0x2590a8;},g=(_0x3d27c5,_0x4e21ca)=>(_0x14da34,_0x39ef7b)=>_0x4e21ca(_0x14da34,_0x39ef7b,_0x3d27c5),E=(_0x2c9ba2,_0x15d45a,_0x541c70)=>ee(_0x2c9ba2,typeof _0x15d45a!=_0x4cc768(0x1ba)?_0x15d45a+'':_0x15d45a,_0x541c70);const se=_0x4cc768(0x1b3);let S=class extends _0x281049{constructor(_0x590bef=m,_0x5d7173,_0x59da61,_0x212fd5){const _0x5f265e=_0x4cc768;super(),this[_0x5f265e(0x195)]=_0x590bef,this[_0x5f265e(0x19a)]=_0x5d7173,this[_0x5f265e(0x16f)]=_0x59da61,this['_configService']=_0x212fd5;const {..._0x2f18e4}=_0x5f0e29({},m,this['_config']);this[_0x5f265e(0x17e)]['setConfig'](X,_0x2f18e4),this[_0x5f265e(0x18f)]();}[_0x4cc768(0x1aa)](){const _0x4cfae8=_0x4cc768;_0x4e6c8c(this[_0x4cfae8(0x19a)],[]);}[_0x4cc768(0x188)](){const _0x31c578=_0x4cc768,_0x89cd4=this[_0x31c578(0x19a)];[[T],[i]][_0x31c578(0x178)](_0xc060b5=>_0x89cd4['add'](_0xc060b5));}[_0x4cc768(0x18f)](){const _0xcb8660=_0x4cc768;[Y,q,u,Q][_0xcb8660(0x178)](_0x20c2cc=>this[_0xcb8660(0x1b5)](this[_0xcb8660(0x16f)][_0xcb8660(0x17c)](_0x20c2cc)));}};E(S,_0x4cc768(0x177),_0x228f81[_0x4cc768(0x183)]),E(S,_0x4cc768(0x1b9),se),S=ae([_0x4f414d(_0x2ad86e),g(0x1,_0x2ff514(_0x3bc1fa)),g(0x2,_0x217751),g(0x3,_0x472081)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5c465e,_0x27b3f2){const _0x1556c5=_0x3fb4,_0x45eb1e=_0x5c465e();while(!![]){try{const _0x2b9c39=parseInt(_0x1556c5(0x138))/0x1*(parseInt(_0x1556c5(0x105))/0x2)+parseInt(_0x1556c5(0xd5))/0x3*(-parseInt(_0x1556c5(0x12d))/0x4)+-parseInt(_0x1556c5(0x119))/0x5*(-parseInt(_0x1556c5(0xeb))/0x6)+-parseInt(_0x1556c5(0x102))/0x7+-parseInt(_0x1556c5(0x11f))/0x8+parseInt(_0x1556c5(0xf5))/0x9*(parseInt(_0x1556c5(0xd6))/0xa)+-parseInt(_0x1556c5(0x108))/0xb*(-parseInt(_0x1556c5(0xff))/0xc);if(_0x2b9c39===_0x27b3f2)break;else _0x45eb1e['push'](_0x45eb1e['shift']());}catch(_0x3e5f1e){_0x45eb1e['push'](_0x45eb1e['shift']());}}}(_0xb57f,0x3ba19),function(_0x3c66f3,_0x5a7fcc){const _0x125884=_0x3fb4;typeof exports==_0x125884(0x103)&&typeof module<'u'?_0x5a7fcc(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x125884(0xf6)&&define['amd']?define([_0x125884(0x116),_0x125884(0x118),_0x125884(0x100),'@univerjs-pro/license'],_0x5a7fcc):(_0x3c66f3=typeof globalThis<'u'?globalThis:_0x3c66f3||self,_0x5a7fcc(_0x3c66f3[_0x125884(0x121)]={},_0x3c66f3[_0x125884(0x130)],_0x3c66f3['UniverProEngineShape'],_0x3c66f3[_0x125884(0x122)]));}(this,function(_0xa50417,_0x59fc20,_0x3997a4,_0x52095c){'use strict';const _0x302741=_0x3fb4;var _0x4ad5fc=Object[_0x302741(0xe1)],_0x36b9c0=(_0x23dd5f,_0x23ef4a,_0xc93af8)=>_0x23ef4a in _0x23dd5f?_0x4ad5fc(_0x23dd5f,_0x23ef4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc93af8}):_0x23dd5f[_0x23ef4a]=_0xc93af8,_0x2b15a5=(_0x85a2d6,_0x2fb4d0,_0x55e359)=>_0x36b9c0(_0x85a2d6,typeof _0x2fb4d0!=_0x302741(0xe6)?_0x2fb4d0+'':_0x2fb4d0,_0x55e359);class _0x49491e extends _0x59fc20[_0x302741(0x132)]{constructor(){const _0x39c8e2=_0x302741;super(),_0x2b15a5(this,_0x39c8e2(0x11d),new Map()),_0x2b15a5(this,_0x39c8e2(0xe0),new Set()),_0x2b15a5(this,'_groupIds',new Set());}[_0x302741(0x12b)](_0x4729ec,_0x1042ed,_0x3f2a59){const _0x1c073e=_0x302741,_0x5e860d=new _0x3997a4[(_0x1c073e(0x12e))](_0x4729ec,_0x1042ed,_0x3f2a59);return this['_shapes'][_0x1c073e(0x109)](_0x1042ed,_0x5e860d),_0x3997a4['isConnectorShape'](_0x4729ec)&&this[_0x1c073e(0xe0)][_0x1c073e(0x104)](_0x1042ed),_0x5e860d;}[_0x302741(0xdd)](_0x1d16be){const _0x5d6e25=_0x302741;var _0x49c206,_0x51ed09;const _0x3509d9=[];for(const _0x3204a9 of this[_0x5d6e25(0xe0)]){const _0xb06147=this[_0x5d6e25(0x11d)][_0x5d6e25(0xe3)](_0x3204a9);if(_0xb06147){const _0x360a96=_0xb06147[_0x5d6e25(0xef)]();_0x360a96&&(((_0x49c206=_0x360a96['from'])==null?void 0x0:_0x49c206[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9[_0x5d6e25(0x123)]({..._0x360a96[_0x5d6e25(0x136)],'lineShapeId':_0x3204a9,'isFrom':!0x0}),((_0x51ed09=_0x360a96['to'])==null?void 0x0:_0x51ed09[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9['push']({..._0x360a96['to'],'lineShapeId':_0x3204a9,'isFrom':!0x1}));}}return _0x3509d9;}[_0x302741(0x11c)](_0x4d27c6){const _0x34f0c7=_0x302741,_0x35c688=this['_shapes'][_0x34f0c7(0xe3)](_0x4d27c6);if(_0x35c688)return _0x35c688['getShapeRelation']();}[_0x302741(0x12a)](_0x103d9f){const _0x482e4b=_0x302741,_0x2c7e2c=this[_0x482e4b(0x11d)][_0x482e4b(0xe3)](_0x103d9f);if(_0x2c7e2c)return _0x2c7e2c[_0x482e4b(0x12a)]();}['hasShape'](_0x24e08c){const _0x5a2842=_0x302741;return this['_shapes'][_0x5a2842(0x113)](_0x24e08c);}[_0x302741(0xf0)](_0x5a1962){const _0x38f868=_0x302741,_0x32dee5=this[_0x38f868(0x11d)]['get'](_0x5a1962);_0x32dee5&&(_0x3997a4['isConnectorShape'](_0x32dee5[_0x38f868(0x12a)]())&&this[_0x38f868(0xe0)][_0x38f868(0xf4)](_0x5a1962),this[_0x38f868(0x11d)]['delete'](_0x5a1962));}[_0x302741(0x11e)](){const _0x265ef4=_0x302741,_0x566317=[];return this[_0x265ef4(0x11d)]['forEach'](_0x429103=>{const _0x2e4f1e=_0x265ef4;_0x566317[_0x2e4f1e(0x123)](_0x429103['toJSON']());}),_0x566317;}[_0x302741(0xd8)](_0x9b1518){const _0x26b656=_0x302741;for(const _0x4860ed of _0x9b1518){const {id:_0x4cb3e4,shapeType:_0x49a3be}=_0x4860ed,_0x56c29e=this[_0x26b656(0x12b)](_0x49a3be,_0x4cb3e4,_0x4860ed[_0x26b656(0xf7)]);_0x56c29e&&_0x56c29e[_0x26b656(0xd7)]()&&this[_0x26b656(0xe0)][_0x26b656(0x104)](_0x4cb3e4);}}[_0x302741(0x12c)](){const _0x40b319=_0x302741;this[_0x40b319(0xde)]||(this['_shapes'][_0x40b319(0xe9)](_0x3eaa40=>{const _0x5326dc=_0x40b319;_0x3eaa40[_0x5326dc(0x12c)]();}),this[_0x40b319(0x11d)][_0x40b319(0xd3)](),this[_0x40b319(0xe0)][_0x40b319(0xd3)](),this['_groupIds']['clear'](),super['dispose']());}}var _0x561b1a=Object['getOwnPropertyDescriptor'],_0x5675c8=(_0x385ad4,_0x4f0841,_0x2ccce4,_0x2880c3)=>{const _0x3445bf=_0x302741;for(var _0x3d63fa=_0x2880c3>0x1?void 0x0:_0x2880c3?_0x561b1a(_0x4f0841,_0x2ccce4):_0x4f0841,_0x56ef45=_0x385ad4[_0x3445bf(0x101)]-0x1,_0x694dd;_0x56ef45>=0x0;_0x56ef45--)(_0x694dd=_0x385ad4[_0x56ef45])&&(_0x3d63fa=_0x694dd(_0x3d63fa)||_0x3d63fa);return _0x3d63fa;},_0x359d87=(_0x371342,_0x547c2c)=>(_0x557e7d,_0x447171)=>_0x547c2c(_0x557e7d,_0x447171,_0x371342);const _0x590218='SHEET_SHAPE_PLUGIN';_0xa50417[_0x302741(0xe2)]=class extends _0x59fc20['Disposable']{constructor(_0x59e6f6){const _0xe66563=_0x302741;super(),_0x2b15a5(this,_0xe66563(0xe4),new Map()),(this['_resourcesManagerService']=_0x59e6f6,this[_0xe66563(0x133)]());}[_0x302741(0x115)](_0x1475df,_0x392832){const _0x4e67f6=_0x302741;let _0x2710f9=this[_0x4e67f6(0xe4)][_0x4e67f6(0xe3)](_0x1475df);_0x2710f9||(_0x2710f9=new Map(),this[_0x4e67f6(0xe4)][_0x4e67f6(0x109)](_0x1475df,_0x2710f9));let _0x5e46f7=_0x2710f9[_0x4e67f6(0xe3)](_0x392832);return _0x5e46f7||(_0x5e46f7=new _0x49491e(),_0x2710f9['set'](_0x392832,_0x5e46f7)),_0x5e46f7;}[_0x302741(0x11a)](_0x30727c,_0x24a095,_0x2c8afc,_0x1a9b5d,_0x2ba7dd){const _0x54f195=_0x302741;this[_0x54f195(0x115)](_0x30727c,_0x24a095)['addShape'](_0x2c8afc,_0x1a9b5d,_0x2ba7dd);}['removeShape'](_0x4f5fbc,_0x4719f7,_0x525b92){const _0xcf54e1=_0x302741;this[_0xcf54e1(0x115)](_0x4f5fbc,_0x4719f7)[_0xcf54e1(0xf0)](_0x525b92);}['getBasicShapeType'](_0x1f113c,_0x37a2a3,_0x5894d0){const _0x2e0446=_0x302741;return this[_0x2e0446(0x115)](_0x1f113c,_0x37a2a3)[_0x2e0446(0x12a)](_0x5894d0);}[_0x302741(0x12a)](_0x385086,_0x397a5c,_0x4abc32){const _0x2fb377=_0x302741;return this[_0x2fb377(0x115)](_0x385086,_0x397a5c)['getShapeType'](_0x4abc32);}[_0x302741(0x120)](_0x33c858,_0x116e6b,_0x1e01d0){const _0xa5091=_0x302741;return this[_0xa5091(0x115)](_0x33c858,_0x116e6b)[_0xa5091(0x120)](_0x1e01d0);}[_0x302741(0xdc)](_0x32e79a,_0x3015f5,_0x35c7c2){const _0x17ea3b=_0x302741;return this[_0x17ea3b(0x115)](_0x32e79a,_0x3015f5)[_0x17ea3b(0x12a)](_0x35c7c2);}[_0x302741(0x12f)](_0x6d187c,_0x29f525,_0x2b4284){const _0x51cf1a=_0x302741,_0x34de26=this[_0x51cf1a(0x115)](_0x6d187c,_0x29f525);if(!_0x34de26['getShapeType'](_0x2b4284))return;const _0x538235=_0x34de26[_0x51cf1a(0x11d)]['get'](_0x2b4284);if(_0x538235)return _0x538235[_0x51cf1a(0x111)]();}[_0x302741(0xda)](_0x343369,_0x274d3c,_0x502e29){const _0x4c492b=_0x302741;return this[_0x4c492b(0x115)](_0x343369,_0x274d3c)[_0x4c492b(0x11d)][_0x4c492b(0xe3)](_0x502e29);}[_0x302741(0xdd)](_0x430bc5,_0x2985bb,_0x3606d1){const _0x6919b9=_0x302741;return this[_0x6919b9(0x115)](_0x430bc5,_0x2985bb)[_0x6919b9(0xdd)](_0x3606d1);}[_0x302741(0x11c)](_0x133d4a,_0x29d4d9,_0x26954c){const _0x4b04d5=_0x302741,_0x48fa46=this[_0x4b04d5(0x115)](_0x133d4a,_0x29d4d9)[_0x4b04d5(0x11d)][_0x4b04d5(0xe3)](_0x26954c);if(_0x48fa46)return _0x48fa46[_0x4b04d5(0xef)]();}[_0x302741(0xd4)](){}[_0x302741(0x10f)](_0x1946e7){const _0x48c905=_0x302741,_0x74306d={},_0x7db3a7=this[_0x48c905(0xe4)][_0x48c905(0xe3)](_0x1946e7);return _0x7db3a7&&_0x7db3a7['forEach']((_0x3cf0a9,_0x121a17)=>{_0x74306d[_0x121a17]=_0x3cf0a9['toJSON']();}),JSON[_0x48c905(0xd9)](_0x74306d);}[_0x302741(0xfb)](_0x138fc5,_0x3ea9cc){const _0x4ff6b9=_0x302741;Object[_0x4ff6b9(0x13a)](_0x3ea9cc)[_0x4ff6b9(0xe9)](_0x3ffd06=>{const _0xaa7d27=_0x4ff6b9;this[_0xaa7d27(0x115)](_0x138fc5,_0x3ffd06)[_0xaa7d27(0xd8)](_0x3ea9cc[_0x3ffd06]);});}[_0x302741(0x11e)](){const _0x2add46=_0x302741,_0x2573c0={};return this[_0x2add46(0xe4)][_0x2add46(0xe9)]((_0xb358a6,_0x3ef6ce)=>{const _0x24e164=_0x2add46;_0x2573c0[_0x3ef6ce]={},_0xb358a6[_0x24e164(0xe9)]((_0x1d4471,_0x56b888)=>{const _0x1c5693=_0x24e164;_0x2573c0[_0x3ef6ce][_0x56b888]=_0x1d4471[_0x1c5693(0x11e)]();});}),_0x2573c0;}['fromJSON'](_0x8f0f4f){const _0x37c782=_0x302741;Object[_0x37c782(0x13a)](_0x8f0f4f)[_0x37c782(0xe9)](_0x13e672=>{const _0x21854a=_0x37c782,_0x3d8619=_0x8f0f4f[_0x13e672];Object[_0x21854a(0x13a)](_0x3d8619)[_0x21854a(0xe9)](_0x10e133=>{const _0x57c041=_0x21854a;this[_0x57c041(0x115)](_0x13e672,_0x10e133)[_0x57c041(0xd8)](_0x3d8619[_0x10e133]);});});}[_0x302741(0x133)](){const _0xf85df9=_0x302741;this[_0xf85df9(0x117)][_0xf85df9(0x126)]({'pluginName':_0x590218,'businesses':[_0x59fc20[_0xf85df9(0x125)][_0xf85df9(0x110)]],'toJson':_0x30c042=>this[_0xf85df9(0x10f)](_0x30c042),'parseJson':_0x51a78a=>JSON[_0xf85df9(0xec)](_0x51a78a),'onLoad':(_0xdba56a,_0xfa94ae)=>{this['_deserializeShapeForUnit'](_0xdba56a,_0xfa94ae);},'onUnLoad':_0x45085c=>{const _0x8eb7ca=_0xf85df9,_0x521738=this[_0x8eb7ca(0xe4)]['get'](_0x45085c);_0x521738&&(_0x521738[_0x8eb7ca(0xe9)](_0xb23b06=>{_0xb23b06['dispose']();}),this[_0x8eb7ca(0xe4)][_0x8eb7ca(0xf4)](_0x45085c));}});}['dispose'](){const _0x33a262=_0x302741;this[_0x33a262(0xe4)][_0x33a262(0xe9)](_0x1e41f2=>{const _0x476d0e=_0x33a262;_0x1e41f2[_0x476d0e(0xe9)](_0x3aa39c=>{const _0x3d7974=_0x476d0e;_0x3aa39c[_0x3d7974(0x12c)]();});});}},_0xa50417[_0x302741(0xe2)]=_0x5675c8([_0x359d87(0x0,_0x59fc20[_0x302741(0x112)])],_0xa50417[_0x302741(0xe2)]);const _0x4dba2d={'id':'sheet.mutation.update-shape-type','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x669cf6,_0xe805c7)=>{const _0x359006=_0x302741,{unitId:_0x534e16,subUnitId:_0x1d954e,shapeType:_0x179be0,shapeId:_0x426bdb,shapeData:_0x182b24}=_0xe805c7,_0x28eca6=_0x669cf6[_0x359006(0xe3)](_0xa50417[_0x359006(0xe2)])[_0x359006(0xda)](_0x534e16,_0x1d954e,_0x426bdb);return _0x28eca6&&(_0x28eca6[_0x359006(0xd4)](_0x179be0),_0x182b24&&(_0x28eca6==null||_0x28eca6['setShapeData'](_0x182b24))),!0x0;}},_0x196dbd={'id':'sheet.command.update-shape-type','type':_0x59fc20['CommandType']['COMMAND'],'handler':(_0x5aec38,_0x3ee364)=>{const _0x343350=_0x302741;if(!_0x3ee364)return!0x1;const _0x5903f7=_0x5aec38[_0x343350(0xe3)](_0x59fc20['ICommandService']),_0x29d3f6=_0x5aec38[_0x343350(0xe3)](_0xa50417[_0x343350(0xe2)]),_0x4f5208=_0x5aec38[_0x343350(0xe3)](_0x59fc20['IUndoRedoService']),_0x4bd48f=[],_0x378751=[],{unitId:_0x2b93b5,subUnitId:_0xbfb9ba,shapeId:_0x27bcb0,shapeType:_0x404ca9,shapeData:_0x3c581e}=_0x3ee364,_0x289c7c=_0x29d3f6[_0x343350(0xda)](_0x2b93b5,_0xbfb9ba,_0x27bcb0);if(_0x289c7c){const _0x38b18e=_0x289c7c[_0x343350(0x12a)](),_0x378023=Object[_0x343350(0x124)]({},_0x289c7c['getShapeData']()),_0x174969={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x404ca9,'shapeData':_0x3c581e},_0x1ffea9={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x38b18e,'shapeData':_0x378023};return _0x4bd48f[_0x343350(0x123)]({'id':_0x4dba2d['id'],'params':_0x174969}),_0x378751['push']({'id':_0x4dba2d['id'],'params':_0x1ffea9}),_0x4bd48f['every'](_0x448af=>_0x5903f7[_0x343350(0xe8)](_0x448af['id'],_0x448af[_0x343350(0x10c)]))&&_0x4f5208[_0x343350(0xee)]({'unitID':_0x2b93b5,'redoMutations':[..._0x4bd48f],'undoMutations':[..._0x378751]}),!0x0;}return!0x1;}},_0x58dabc={'id':_0x302741(0x131),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x1b1064,_0x4db31a)=>{const _0x39d709=_0x302741,{unitId:_0x3637b9,subUnitId:_0x47a4de,shapeType:_0x21d0c7,shapeId:_0x5ab307,shapeData:_0x37df74}=_0x4db31a;return _0x1b1064[_0x39d709(0xe3)](_0xa50417['SheetsShapeServices'])[_0x39d709(0x11a)](_0x3637b9,_0x47a4de,_0x21d0c7,_0x5ab307,_0x37df74),!0x0;}},_0x43509c={'id':_0x302741(0x10e),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x370a09,_0x3a7d1d)=>{const _0x52f6bc=_0x302741,{unitId:_0xadc44c,subUnitId:_0xdfc94d,shapeId:_0x1d5391}=_0x3a7d1d;return _0x370a09[_0x52f6bc(0xe3)](_0xa50417[_0x52f6bc(0xe2)])[_0x52f6bc(0xf0)](_0xadc44c,_0xdfc94d,_0x1d5391),!0x0;}},_0x4cee9e={'id':'sheet.mutation.update-shape-data','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x594bc5,_0x4e182b)=>{const _0x266718=_0x302741,{unitId:_0x2c1fb0,subUnitId:_0x5b34e8,shapeType:_0x44b167,shapeId:_0x48c2a7,shapeData:_0x125ce0}=_0x4e182b,_0x1303a9=_0x594bc5['get'](_0xa50417['SheetsShapeServices'])[_0x266718(0xda)](_0x2c1fb0,_0x5b34e8,_0x48c2a7);return _0x1303a9&&(_0x44b167!==void 0x0&&_0x1303a9[_0x266718(0xd4)](_0x44b167),_0x125ce0&&(_0x1303a9==null||_0x1303a9[_0x266718(0x13b)](_0x125ce0,!0x0))),!0x0;}},_0x23ecbb=_0x302741(0x139),_0x577969={};var _0x64370=Object['defineProperty'],_0x19d3f7=Object[_0x302741(0x114)],_0x20adaa=(_0x2f7251,_0x4fa94a,_0xf4f40c)=>_0x4fa94a in _0x2f7251?_0x64370(_0x2f7251,_0x4fa94a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf4f40c}):_0x2f7251[_0x4fa94a]=_0xf4f40c,_0x52b945=(_0x36dd8f,_0x5eaa11,_0x21cb86,_0x42cb52)=>{const _0x496cbe=_0x302741;for(var _0x45e4e1=_0x42cb52>0x1?void 0x0:_0x42cb52?_0x19d3f7(_0x5eaa11,_0x21cb86):_0x5eaa11,_0x3f4157=_0x36dd8f[_0x496cbe(0x101)]-0x1,_0x5e1580;_0x3f4157>=0x0;_0x3f4157--)(_0x5e1580=_0x36dd8f[_0x3f4157])&&(_0x45e4e1=_0x5e1580(_0x45e4e1)||_0x45e4e1);return _0x45e4e1;},_0x3d7e45=(_0x218751,_0x5ed25f)=>(_0x7ed982,_0x54e0f0)=>_0x5ed25f(_0x7ed982,_0x54e0f0,_0x218751),_0x4b7a2a=(_0x23b30c,_0x3a7aca,_0x331c78)=>_0x20adaa(_0x23b30c,typeof _0x3a7aca!=_0x302741(0xe6)?_0x3a7aca+'':_0x3a7aca,_0x331c78);const _0x1bb9bf=_0x302741(0x137);_0xa50417[_0x302741(0xdb)]=class extends _0x59fc20[_0x302741(0xf9)]{constructor(_0x51c342=_0x577969,_0x2c31b4,_0x1c9ce0,_0x347c3e){const _0x4889c2=_0x302741;super(),this[_0x4889c2(0x106)]=_0x51c342,this[_0x4889c2(0xfe)]=_0x2c31b4,this[_0x4889c2(0xf3)]=_0x1c9ce0,this['_configService']=_0x347c3e;const {..._0x3f245d}=_0x59fc20['merge']({},_0x577969,this[_0x4889c2(0x106)]);this[_0x4889c2(0x11b)][_0x4889c2(0x10d)](_0x23ecbb,_0x3f245d),this[_0x4889c2(0x128)]();}[_0x302741(0x10b)](){_0x59fc20['touchDependencies'](this['_injector'],[]);}[_0x302741(0xed)](){const _0x446720=_0x302741,_0x3d92e9=this[_0x446720(0xfe)];[[_0x49491e],[_0xa50417[_0x446720(0xe2)]]][_0x446720(0xe9)](_0x403ca8=>_0x3d92e9[_0x446720(0x104)](_0x403ca8));}['_initCommands'](){const _0x58b074=_0x302741;[_0x58dabc,_0x43509c,_0x4dba2d,_0x4cee9e][_0x58b074(0xe9)](_0x3c0fd7=>this[_0x58b074(0xea)](this['_commandService']['registerCommand'](_0x3c0fd7)));}},_0x4b7a2a(_0xa50417[_0x302741(0xdb)],'type',_0x59fc20['UniverInstanceType'][_0x302741(0x110)]),_0x4b7a2a(_0xa50417[_0x302741(0xdb)],_0x302741(0x135),_0x1bb9bf),_0xa50417[_0x302741(0xdb)]=_0x52b945([_0x59fc20[_0x302741(0xf1)](_0x52095c[_0x302741(0xf8)]),_0x3d7e45(0x1,_0x59fc20[_0x302741(0x127)](_0x59fc20[_0x302741(0xe5)])),_0x3d7e45(0x2,_0x59fc20[_0x302741(0xe7)]),_0x3d7e45(0x3,_0x59fc20['IConfigService'])],_0xa50417[_0x302741(0xdb)]),_0xa50417[_0x302741(0x107)]=_0x58dabc,_0xa50417[_0x302741(0x134)]=_0x43509c,_0xa50417[_0x302741(0xfd)]=_0x4cee9e,_0xa50417[_0x302741(0xfc)]=_0x196dbd,_0xa50417['UpdateSheetsShapeTypeMutation']=_0x4dba2d,Object[_0x302741(0xe1)](_0xa50417,Symbol[_0x302741(0xf2)],{'value':_0x302741(0xdf)});}));function _0x3fb4(_0x205f4e,_0x41a07b){_0x205f4e=_0x205f4e-0xd3;const _0xb57f01=_0xb57f();let _0x3fb415=_0xb57f01[_0x205f4e];return _0x3fb415;}function _0xb57f(){const _0x1d81a1=['3555YwRAwn','sheets-shape.config','keys','setShapeData','clear','setShapeType','1065027RiyWiL','30GoEAYT','isLineShape','fromJSON','stringify','getShapeModel','UniverSheetsShapePlugin','getShapeTypeById','getBasicShapeRelation','_disposed','Module','_linesIds','defineProperty','SheetsShapeServices','get','_shapeModelManagerMap','Injector','symbol','ICommandService','syncExecuteCommand','forEach','disposeWithMe','6AXlXQI','parse','onStarting','pushUndoRedo','getShapeRelation','removeShape','DependentOn','toStringTag','_commandService','delete','706032AQXSLK','function','shapeData','UniverLicensePlugin','Plugin','CommandType','_deserializeShapeForUnit','UpdateSheetsShapeTypeCommand','UpdateSheetsShapeDataMutation','_injector','720NETNaJ','@univerjs-pro/engine-shape','length','1491021lDvQJY','object','add','62vAfaLQ','_config','InsertSheetsShapeMutation','111694OFPYHX','set','shapeId','onRendered','params','setConfig','sheet.mutation.remove-shape','_serializeShapeForUnit','UNIVER_SHEET','getShapeData','IResourceManagerService','has','getOwnPropertyDescriptor','_ensureShapeModelManager','exports','_resourcesManagerService','@univerjs/core','73930dGcZum','insertShape','_configService','getLineShapeRelation','_shapes','toJSON','1258512mTZdRw','hasShape','UniverProSheetsShape','UniverProLicense','push','assign','UniverInstanceType','registerPluginResource','Inject','_initCommands','MUTATION','getShapeType','addShape','dispose','4znTWve','ShapeModel','getShapeDataById','UniverCore','sheet.mutation.insert-shape','Disposable','_initSnapshot','RemoveSheetsShapeMutation','pluginName','from','SHEET_SHAPE_PLUGIN'];_0xb57f=function(){return _0x1d81a1;};return _0xb57f();}
|
|
1
|
+
function _0x2b90(){const _0x1fae71=['getShapeModel','UniverSheetsShapePlugin','_config','_groupIds','pushUndoRedo','_initCommands','every','registerCommand','Disposable','InsertSheetsShapeMutation','getOwnPropertyDescriptor','@univerjs-pro/engine-shape','getBasicShapeRelation','IResourceManagerService','ShapeModel','MUTATION','params','1070694DygPCo','getShapeType','UniverInstanceType','getLineShapeRelation','525778OUrfdr','amd','shapeId','COMMAND','symbol','keys','1493359eiitwt','get','removeShape','has','pluginName','exports','36863210ZEXiBu','setShapeType','2338377eBAGHW','CommandType','setConfig','UniverProEngineShape','sheets-shape.config','from','sheet.mutation.update-shape-data','UniverCore','_shapes','clear','insertShape','touchDependencies','4swfWdH','SHEET_SHAPE_PLUGIN','forEach','parse','dispose','Injector','UniverLicensePlugin','18EliZmy','1779456opGISe','onStarting','UniverProSheetsShape','push','defineProperty','set','Module','toJSON','shapeData','_initSnapshot','getShapeDataById','isLineShape','UpdateSheetsShapeTypeCommand','SheetsShapeServices','toStringTag','UpdateSheetsShapeDataMutation','getShapeRelation','fromJSON','DependentOn','function','@univerjs/core','onRendered','_configService','1978700BAuonJ','hasShape','sheet.mutation.remove-shape','object','_shapeModelManagerMap','Inject','_deserializeShapeForUnit','7MFORQO','_disposed','_linesIds','isConnectorShape','length','ICommandService','_serializeShapeForUnit','getBasicShapeType','add','sheet.mutation.insert-shape','_ensureShapeModelManager','syncExecuteCommand','delete','_commandService','sheet.command.update-shape-type','_injector','merge','addShape'];_0x2b90=function(){return _0x1fae71;};return _0x2b90();}function _0xc1bf(_0x375b80,_0xf2a48c){_0x375b80=_0x375b80-0x1ed;const _0x2b9071=_0x2b90();let _0xc1bf3c=_0x2b9071[_0x375b80];return _0xc1bf3c;}(function(_0xc25661,_0x1fd32e){const _0x52e2a0=_0xc1bf,_0xe04bf7=_0xc25661();while(!![]){try{const _0x40727f=parseInt(_0x52e2a0(0x1ee))/0x1*(-parseInt(_0x52e2a0(0x215))/0x2)+parseInt(_0x52e2a0(0x223))/0x3*(-parseInt(_0x52e2a0(0x22f))/0x4)+parseInt(_0x52e2a0(0x24e))/0x5+-parseInt(_0x52e2a0(0x236))/0x6*(parseInt(_0x52e2a0(0x21b))/0x7)+parseInt(_0x52e2a0(0x237))/0x8+-parseInt(_0x52e2a0(0x211))/0x9+parseInt(_0x52e2a0(0x221))/0xa;if(_0x40727f===_0x1fd32e)break;else _0xe04bf7['push'](_0xe04bf7['shift']());}catch(_0x451053){_0xe04bf7['push'](_0xe04bf7['shift']());}}}(_0x2b90,0xe208a),function(_0x2ef0bc,_0x3cdbff){const _0x5e3030=_0xc1bf;typeof exports==_0x5e3030(0x251)&&typeof module<'u'?_0x3cdbff(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x5e3030(0x24a)&&define[_0x5e3030(0x216)]?define([_0x5e3030(0x220),_0x5e3030(0x24b),_0x5e3030(0x20b),'@univerjs-pro/license'],_0x3cdbff):(_0x2ef0bc=typeof globalThis<'u'?globalThis:_0x2ef0bc||self,_0x3cdbff(_0x2ef0bc[_0x5e3030(0x239)]={},_0x2ef0bc[_0x5e3030(0x22a)],_0x2ef0bc[_0x5e3030(0x226)],_0x2ef0bc['UniverProLicense']));}(this,function(_0x4e48d6,_0x14ac5a,_0x1920cc,_0x10fbca){'use strict';const _0x3c759a=_0xc1bf;var _0x378cfd=Object[_0x3c759a(0x23b)],_0x4d6daf=(_0x1c2040,_0x20ab99,_0x5f9e70)=>_0x20ab99 in _0x1c2040?_0x378cfd(_0x1c2040,_0x20ab99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f9e70}):_0x1c2040[_0x20ab99]=_0x5f9e70,_0x3efbfa=(_0x5d34c1,_0x369780,_0x19b735)=>_0x4d6daf(_0x5d34c1,typeof _0x369780!='symbol'?_0x369780+'':_0x369780,_0x19b735);class _0x57d9e8 extends _0x14ac5a[_0x3c759a(0x208)]{constructor(){const _0x2e91d3=_0x3c759a;super(),_0x3efbfa(this,'_shapes',new Map()),_0x3efbfa(this,_0x2e91d3(0x1f0),new Set()),_0x3efbfa(this,_0x2e91d3(0x203),new Set());}[_0x3c759a(0x1ff)](_0x40cdf6,_0x2c1ef8,_0x207ce9){const _0x3a6335=_0x3c759a,_0x55f037=new _0x1920cc[(_0x3a6335(0x20e))](_0x40cdf6,_0x2c1ef8,_0x207ce9);return this[_0x3a6335(0x22b)][_0x3a6335(0x23c)](_0x2c1ef8,_0x55f037),_0x1920cc[_0x3a6335(0x1f1)](_0x40cdf6)&&this['_linesIds'][_0x3a6335(0x1f6)](_0x2c1ef8),_0x55f037;}[_0x3c759a(0x20c)](_0x12157a){const _0x5938a9=_0x3c759a;var _0x2854f8,_0xf5104b;const _0xba4f5d=[];for(const _0x2a9a21 of this[_0x5938a9(0x1f0)]){const _0x5c634f=this[_0x5938a9(0x22b)]['get'](_0x2a9a21);if(_0x5c634f){const _0x33f6b6=_0x5c634f[_0x5938a9(0x247)]();_0x33f6b6&&(((_0x2854f8=_0x33f6b6['from'])==null?void 0x0:_0x2854f8[_0x5938a9(0x217)])===_0x12157a&&_0xba4f5d[_0x5938a9(0x23a)]({..._0x33f6b6[_0x5938a9(0x228)],'lineShapeId':_0x2a9a21,'isFrom':!0x0}),((_0xf5104b=_0x33f6b6['to'])==null?void 0x0:_0xf5104b[_0x5938a9(0x217)])===_0x12157a&&_0xba4f5d[_0x5938a9(0x23a)]({..._0x33f6b6['to'],'lineShapeId':_0x2a9a21,'isFrom':!0x1}));}}return _0xba4f5d;}[_0x3c759a(0x214)](_0x5c01fa){const _0x10d71d=_0x3c759a,_0x48cf42=this[_0x10d71d(0x22b)]['get'](_0x5c01fa);if(_0x48cf42)return _0x48cf42[_0x10d71d(0x247)]();}[_0x3c759a(0x212)](_0x10af29){const _0x27fb11=_0x3c759a,_0x1605f9=this[_0x27fb11(0x22b)][_0x27fb11(0x21c)](_0x10af29);if(_0x1605f9)return _0x1605f9['getShapeType']();}[_0x3c759a(0x24f)](_0x1e0f58){const _0x2d97e3=_0x3c759a;return this['_shapes'][_0x2d97e3(0x21e)](_0x1e0f58);}[_0x3c759a(0x21d)](_0x22951f){const _0x4ef712=_0x3c759a,_0x34c79c=this[_0x4ef712(0x22b)][_0x4ef712(0x21c)](_0x22951f);_0x34c79c&&(_0x1920cc[_0x4ef712(0x1f1)](_0x34c79c[_0x4ef712(0x212)]())&&this[_0x4ef712(0x1f0)]['delete'](_0x22951f),this[_0x4ef712(0x22b)][_0x4ef712(0x1fa)](_0x22951f));}['toJSON'](){const _0x15701c=_0x3c759a,_0x5991c6=[];return this[_0x15701c(0x22b)]['forEach'](_0x6eef66=>{const _0x1272af=_0x15701c;_0x5991c6[_0x1272af(0x23a)](_0x6eef66[_0x1272af(0x23e)]());}),_0x5991c6;}[_0x3c759a(0x248)](_0x705542){const _0x4d9b1e=_0x3c759a;for(const _0x396f80 of _0x705542){const {id:_0x1c5c37,shapeType:_0x1c0288}=_0x396f80,_0xf8d08b=this[_0x4d9b1e(0x1ff)](_0x1c0288,_0x1c5c37,_0x396f80[_0x4d9b1e(0x23f)]);_0xf8d08b&&_0xf8d08b[_0x4d9b1e(0x242)]()&&this[_0x4d9b1e(0x1f0)][_0x4d9b1e(0x1f6)](_0x1c5c37);}}[_0x3c759a(0x233)](){const _0x5a7a43=_0x3c759a;this[_0x5a7a43(0x1ef)]||(this[_0x5a7a43(0x22b)][_0x5a7a43(0x231)](_0x58936d=>{const _0x461d99=_0x5a7a43;_0x58936d[_0x461d99(0x233)]();}),this[_0x5a7a43(0x22b)][_0x5a7a43(0x22c)](),this['_linesIds'][_0x5a7a43(0x22c)](),this['_groupIds'][_0x5a7a43(0x22c)](),super['dispose']());}}var _0x59149c=Object[_0x3c759a(0x20a)],_0x2970af=(_0x27f064,_0x3641e9,_0x52056c,_0x2d9f61)=>{const _0x2bf481=_0x3c759a;for(var _0x1133b7=_0x2d9f61>0x1?void 0x0:_0x2d9f61?_0x59149c(_0x3641e9,_0x52056c):_0x3641e9,_0x2dd750=_0x27f064[_0x2bf481(0x1f2)]-0x1,_0x583f92;_0x2dd750>=0x0;_0x2dd750--)(_0x583f92=_0x27f064[_0x2dd750])&&(_0x1133b7=_0x583f92(_0x1133b7)||_0x1133b7);return _0x1133b7;},_0x54000f=(_0x38400b,_0x29b314)=>(_0x4177bf,_0x150615)=>_0x29b314(_0x4177bf,_0x150615,_0x38400b);const _0x2e5b25='SHEET_SHAPE_PLUGIN';_0x4e48d6['SheetsShapeServices']=class extends _0x14ac5a[_0x3c759a(0x208)]{constructor(_0x300108){const _0x32a7ef=_0x3c759a;super(),_0x3efbfa(this,_0x32a7ef(0x252),new Map()),(this['_resourcesManagerService']=_0x300108,this['_initSnapshot']());}[_0x3c759a(0x1f8)](_0xfa771f,_0x3bf64c){const _0x4d59de=_0x3c759a;let _0x5a4a92=this[_0x4d59de(0x252)]['get'](_0xfa771f);_0x5a4a92||(_0x5a4a92=new Map(),this[_0x4d59de(0x252)][_0x4d59de(0x23c)](_0xfa771f,_0x5a4a92));let _0xb92d7c=_0x5a4a92[_0x4d59de(0x21c)](_0x3bf64c);return _0xb92d7c||(_0xb92d7c=new _0x57d9e8(),_0x5a4a92[_0x4d59de(0x23c)](_0x3bf64c,_0xb92d7c)),_0xb92d7c;}[_0x3c759a(0x22d)](_0x10714a,_0x47f02d,_0x3d1e6e,_0x12e586,_0x4d5b8d){const _0x22b86d=_0x3c759a;this[_0x22b86d(0x1f8)](_0x10714a,_0x47f02d)[_0x22b86d(0x1ff)](_0x3d1e6e,_0x12e586,_0x4d5b8d);}[_0x3c759a(0x21d)](_0xd1c37e,_0x21b8d3,_0x481a64){const _0x3427ca=_0x3c759a;this[_0x3427ca(0x1f8)](_0xd1c37e,_0x21b8d3)['removeShape'](_0x481a64);}[_0x3c759a(0x1f5)](_0x2dcaf5,_0x56b554,_0x58b1b8){const _0x3dcdcc=_0x3c759a;return this[_0x3dcdcc(0x1f8)](_0x2dcaf5,_0x56b554)[_0x3dcdcc(0x212)](_0x58b1b8);}[_0x3c759a(0x212)](_0x2e5014,_0x86f4a1,_0x5205f7){const _0x34ed86=_0x3c759a;return this[_0x34ed86(0x1f8)](_0x2e5014,_0x86f4a1)['getShapeType'](_0x5205f7);}['hasShape'](_0x512849,_0x26a09e,_0x4758a7){const _0x385e78=_0x3c759a;return this[_0x385e78(0x1f8)](_0x512849,_0x26a09e)['hasShape'](_0x4758a7);}['getShapeTypeById'](_0x479849,_0x2399e6,_0x2f7e9d){const _0x70e1af=_0x3c759a;return this[_0x70e1af(0x1f8)](_0x479849,_0x2399e6)[_0x70e1af(0x212)](_0x2f7e9d);}[_0x3c759a(0x241)](_0x4592ee,_0x5a4bfb,_0x4ac967){const _0x25cb9f=_0x3c759a,_0x5ceb98=this['_ensureShapeModelManager'](_0x4592ee,_0x5a4bfb);if(!_0x5ceb98[_0x25cb9f(0x212)](_0x4ac967))return;const _0x20e9e6=_0x5ceb98[_0x25cb9f(0x22b)]['get'](_0x4ac967);if(_0x20e9e6)return _0x20e9e6['getShapeData']();}[_0x3c759a(0x200)](_0x1b1617,_0x2965ae,_0x1db795){const _0x35d687=_0x3c759a;return this[_0x35d687(0x1f8)](_0x1b1617,_0x2965ae)[_0x35d687(0x22b)]['get'](_0x1db795);}[_0x3c759a(0x20c)](_0x55f2f3,_0x4184fd,_0xcd03d1){const _0x3ae561=_0x3c759a;return this[_0x3ae561(0x1f8)](_0x55f2f3,_0x4184fd)[_0x3ae561(0x20c)](_0xcd03d1);}[_0x3c759a(0x214)](_0xef0cca,_0x27f0ec,_0x23364e){const _0x5ab3d4=_0x3c759a,_0xc6420b=this[_0x5ab3d4(0x1f8)](_0xef0cca,_0x27f0ec)[_0x5ab3d4(0x22b)][_0x5ab3d4(0x21c)](_0x23364e);if(_0xc6420b)return _0xc6420b['getShapeRelation']();}['setShapeType'](){}[_0x3c759a(0x1f4)](_0x6df57f){const _0x5e11e2=_0x3c759a,_0x45b45f={},_0x2a4731=this[_0x5e11e2(0x252)][_0x5e11e2(0x21c)](_0x6df57f);return _0x2a4731&&_0x2a4731[_0x5e11e2(0x231)]((_0x493fff,_0x5231b6)=>{const _0x29f489=_0x5e11e2;_0x45b45f[_0x5231b6]=_0x493fff[_0x29f489(0x23e)]();}),JSON['stringify'](_0x45b45f);}[_0x3c759a(0x1ed)](_0x2e49d3,_0x3826f7){const _0x262362=_0x3c759a;Object[_0x262362(0x21a)](_0x3826f7)[_0x262362(0x231)](_0x4d36f4=>{const _0x1afb94=_0x262362;this[_0x1afb94(0x1f8)](_0x2e49d3,_0x4d36f4)['fromJSON'](_0x3826f7[_0x4d36f4]);});}['toJSON'](){const _0x106468={};return this['_shapeModelManagerMap']['forEach']((_0x33e02d,_0x74b0d0)=>{const _0x4bd510=_0xc1bf;_0x106468[_0x74b0d0]={},_0x33e02d[_0x4bd510(0x231)]((_0x4791af,_0x412955)=>{const _0x1479ee=_0x4bd510;_0x106468[_0x74b0d0][_0x412955]=_0x4791af[_0x1479ee(0x23e)]();});}),_0x106468;}[_0x3c759a(0x248)](_0x5b3f50){const _0x184114=_0x3c759a;Object[_0x184114(0x21a)](_0x5b3f50)[_0x184114(0x231)](_0x45a475=>{const _0x2e54e6=_0x184114,_0x20d7ee=_0x5b3f50[_0x45a475];Object[_0x2e54e6(0x21a)](_0x20d7ee)[_0x2e54e6(0x231)](_0x18a4ed=>{const _0xe54df8=_0x2e54e6;this[_0xe54df8(0x1f8)](_0x45a475,_0x18a4ed)[_0xe54df8(0x248)](_0x20d7ee[_0x18a4ed]);});});}[_0x3c759a(0x240)](){const _0x5873f7=_0x3c759a;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x2e5b25,'businesses':[_0x14ac5a['UniverInstanceType']['UNIVER_SHEET']],'toJson':_0x579ccd=>this[_0x5873f7(0x1f4)](_0x579ccd),'parseJson':_0x792e1d=>JSON[_0x5873f7(0x232)](_0x792e1d),'onLoad':(_0x2fc9d6,_0x9083c8)=>{const _0x29fa3=_0x5873f7;this[_0x29fa3(0x1ed)](_0x2fc9d6,_0x9083c8);},'onUnLoad':_0xb3ace7=>{const _0x234021=_0x5873f7,_0x223d6c=this[_0x234021(0x252)][_0x234021(0x21c)](_0xb3ace7);_0x223d6c&&(_0x223d6c[_0x234021(0x231)](_0x29d194=>{const _0x34967a=_0x234021;_0x29d194[_0x34967a(0x233)]();}),this[_0x234021(0x252)][_0x234021(0x1fa)](_0xb3ace7));}});}[_0x3c759a(0x233)](){const _0x4a643d=_0x3c759a;this[_0x4a643d(0x252)]['forEach'](_0x3177f3=>{_0x3177f3['forEach'](_0x161209=>{const _0x3e1f41=_0xc1bf;_0x161209[_0x3e1f41(0x233)]();});});}},_0x4e48d6[_0x3c759a(0x244)]=_0x2970af([_0x54000f(0x0,_0x14ac5a[_0x3c759a(0x20d)])],_0x4e48d6['SheetsShapeServices']);const _0x20c071={'id':'sheet.mutation.update-shape-type','type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x1ddb02,_0x12b983)=>{const _0x27198f=_0x3c759a,{unitId:_0xb83d26,subUnitId:_0x80ff20,shapeType:_0x334b3d,shapeId:_0x5b7e32,shapeData:_0x166d9b}=_0x12b983,_0x15efda=_0x1ddb02[_0x27198f(0x21c)](_0x4e48d6[_0x27198f(0x244)])[_0x27198f(0x200)](_0xb83d26,_0x80ff20,_0x5b7e32);return _0x15efda&&(_0x15efda[_0x27198f(0x222)](_0x334b3d),_0x166d9b&&(_0x15efda==null||_0x15efda['setShapeData'](_0x166d9b))),!0x0;}},_0x5881d6={'id':_0x3c759a(0x1fc),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x218)],'handler':(_0x10ba56,_0x5dcb7d)=>{const _0xffc48f=_0x3c759a;if(!_0x5dcb7d)return!0x1;const _0x56d529=_0x10ba56[_0xffc48f(0x21c)](_0x14ac5a[_0xffc48f(0x1f3)]),_0x37eaf4=_0x10ba56[_0xffc48f(0x21c)](_0x4e48d6['SheetsShapeServices']),_0x45181e=_0x10ba56[_0xffc48f(0x21c)](_0x14ac5a['IUndoRedoService']),_0x41a866=[],_0x5dc30f=[],{unitId:_0x865cf,subUnitId:_0x13a8ab,shapeId:_0x175b4a,shapeType:_0x5653e2,shapeData:_0x47d36b}=_0x5dcb7d,_0x1a23c0=_0x37eaf4[_0xffc48f(0x200)](_0x865cf,_0x13a8ab,_0x175b4a);if(_0x1a23c0){const _0x547e7b=_0x1a23c0[_0xffc48f(0x212)](),_0x57ea04=Object['assign']({},_0x1a23c0['getShapeData']()),_0x18a2b7={'unitId':_0x865cf,'subUnitId':_0x13a8ab,'shapeId':_0x175b4a,'shapeType':_0x5653e2,'shapeData':_0x47d36b},_0x58a98c={'unitId':_0x865cf,'subUnitId':_0x13a8ab,'shapeId':_0x175b4a,'shapeType':_0x547e7b,'shapeData':_0x57ea04};return _0x41a866[_0xffc48f(0x23a)]({'id':_0x20c071['id'],'params':_0x18a2b7}),_0x5dc30f['push']({'id':_0x20c071['id'],'params':_0x58a98c}),_0x41a866[_0xffc48f(0x206)](_0x109321=>_0x56d529[_0xffc48f(0x1f9)](_0x109321['id'],_0x109321[_0xffc48f(0x210)]))&&_0x45181e[_0xffc48f(0x204)]({'unitID':_0x865cf,'redoMutations':[..._0x41a866],'undoMutations':[..._0x5dc30f]}),!0x0;}return!0x1;}},_0x4edd41={'id':_0x3c759a(0x1f7),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x593996,_0x4e41b5)=>{const _0x3d11e5=_0x3c759a,{unitId:_0x31b8ed,subUnitId:_0x34965b,shapeType:_0x43a59c,shapeId:_0x4f2a1e,shapeData:_0xd1d576}=_0x4e41b5;return _0x593996[_0x3d11e5(0x21c)](_0x4e48d6['SheetsShapeServices'])[_0x3d11e5(0x22d)](_0x31b8ed,_0x34965b,_0x43a59c,_0x4f2a1e,_0xd1d576),!0x0;}},_0x3e5228={'id':_0x3c759a(0x250),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x2255e9,_0x2e7522)=>{const {unitId:_0x4279ea,subUnitId:_0x14965e,shapeId:_0x4fb62a}=_0x2e7522;return _0x2255e9['get'](_0x4e48d6['SheetsShapeServices'])['removeShape'](_0x4279ea,_0x14965e,_0x4fb62a),!0x0;}},_0x10a071={'id':_0x3c759a(0x229),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x4117cb,_0x3e121a)=>{const _0x4cafd3=_0x3c759a,{unitId:_0x4e5127,subUnitId:_0xa19eee,shapeType:_0x44b8b6,shapeId:_0x420bef,shapeData:_0x1c515e}=_0x3e121a,_0x73f92e=_0x4117cb[_0x4cafd3(0x21c)](_0x4e48d6['SheetsShapeServices'])[_0x4cafd3(0x200)](_0x4e5127,_0xa19eee,_0x420bef);return _0x73f92e&&(_0x44b8b6!==void 0x0&&_0x73f92e[_0x4cafd3(0x222)](_0x44b8b6),_0x1c515e&&(_0x73f92e==null||_0x73f92e['setShapeData'](_0x1c515e,!0x0))),!0x0;}},_0x1063cb=_0x3c759a(0x227),_0x39b05a={};var _0x233e3f=Object['defineProperty'],_0x54fdd1=Object[_0x3c759a(0x20a)],_0x52c981=(_0x3617a9,_0x24abbb,_0x182ade)=>_0x24abbb in _0x3617a9?_0x233e3f(_0x3617a9,_0x24abbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x182ade}):_0x3617a9[_0x24abbb]=_0x182ade,_0x26d5d1=(_0x17ee35,_0x2265ed,_0x485c44,_0x3634ae)=>{const _0x2fe2ae=_0x3c759a;for(var _0x1dbef7=_0x3634ae>0x1?void 0x0:_0x3634ae?_0x54fdd1(_0x2265ed,_0x485c44):_0x2265ed,_0x4303b5=_0x17ee35[_0x2fe2ae(0x1f2)]-0x1,_0x194606;_0x4303b5>=0x0;_0x4303b5--)(_0x194606=_0x17ee35[_0x4303b5])&&(_0x1dbef7=_0x194606(_0x1dbef7)||_0x1dbef7);return _0x1dbef7;},_0x9d1371=(_0x4f4b1e,_0x23554b)=>(_0x558124,_0x5db4f9)=>_0x23554b(_0x558124,_0x5db4f9,_0x4f4b1e),_0x32efa4=(_0x17fb32,_0x139aab,_0x4cd074)=>_0x52c981(_0x17fb32,typeof _0x139aab!=_0x3c759a(0x219)?_0x139aab+'':_0x139aab,_0x4cd074);const _0x4ada2c=_0x3c759a(0x230);_0x4e48d6[_0x3c759a(0x201)]=class extends _0x14ac5a['Plugin']{constructor(_0x3fac91=_0x39b05a,_0x3b589e,_0x5aba0b,_0x5211ab){const _0x26addb=_0x3c759a;super(),this[_0x26addb(0x202)]=_0x3fac91,this['_injector']=_0x3b589e,this['_commandService']=_0x5aba0b,this[_0x26addb(0x24d)]=_0x5211ab;const {..._0x2017ef}=_0x14ac5a[_0x26addb(0x1fe)]({},_0x39b05a,this[_0x26addb(0x202)]);this[_0x26addb(0x24d)][_0x26addb(0x225)](_0x1063cb,_0x2017ef),this[_0x26addb(0x205)]();}[_0x3c759a(0x24c)](){const _0x526362=_0x3c759a;_0x14ac5a[_0x526362(0x22e)](this['_injector'],[]);}[_0x3c759a(0x238)](){const _0x37c3f2=_0x3c759a,_0x5c5c6a=this[_0x37c3f2(0x1fd)];[[_0x57d9e8],[_0x4e48d6[_0x37c3f2(0x244)]]]['forEach'](_0x287bc2=>_0x5c5c6a[_0x37c3f2(0x1f6)](_0x287bc2));}[_0x3c759a(0x205)](){const _0x202a8c=_0x3c759a;[_0x4edd41,_0x3e5228,_0x20c071,_0x10a071][_0x202a8c(0x231)](_0x4d25f7=>this['disposeWithMe'](this[_0x202a8c(0x1fb)][_0x202a8c(0x207)](_0x4d25f7)));}},_0x32efa4(_0x4e48d6[_0x3c759a(0x201)],'type',_0x14ac5a[_0x3c759a(0x213)]['UNIVER_SHEET']),_0x32efa4(_0x4e48d6[_0x3c759a(0x201)],_0x3c759a(0x21f),_0x4ada2c),_0x4e48d6[_0x3c759a(0x201)]=_0x26d5d1([_0x14ac5a[_0x3c759a(0x249)](_0x10fbca[_0x3c759a(0x235)]),_0x9d1371(0x1,_0x14ac5a[_0x3c759a(0x253)](_0x14ac5a[_0x3c759a(0x234)])),_0x9d1371(0x2,_0x14ac5a[_0x3c759a(0x1f3)]),_0x9d1371(0x3,_0x14ac5a['IConfigService'])],_0x4e48d6[_0x3c759a(0x201)]),_0x4e48d6[_0x3c759a(0x209)]=_0x4edd41,_0x4e48d6['RemoveSheetsShapeMutation']=_0x3e5228,_0x4e48d6[_0x3c759a(0x246)]=_0x10a071,_0x4e48d6[_0x3c759a(0x243)]=_0x5881d6,_0x4e48d6['UpdateSheetsShapeTypeMutation']=_0x20c071,Object[_0x3c759a(0x23b)](_0x4e48d6,Symbol[_0x3c759a(0x245)],{'value':_0x3c759a(0x23d)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "shape for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"rxjs": ">=7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/license": "0.15.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/license": "0.15.5",
|
|
61
|
+
"@univerjs/core": "0.15.5",
|
|
62
|
+
"@univerjs-pro/engine-shape": "0.15.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"rxjs": "7.8.2",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vite": "^7.3.1",
|
|
68
68
|
"vitest": "^4.0.18",
|
|
69
|
-
"@univerjs-infra/shared": "0.15.
|
|
70
|
-
"@univerjs/sheets": "0.15.
|
|
69
|
+
"@univerjs-infra/shared": "0.15.5",
|
|
70
|
+
"@univerjs/sheets": "0.15.5"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"test": "vitest run",
|